diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 4ad19c0..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,415 +0,0 @@ -# 情绪博物馆全栈项目 - Claude 开发指南 - -## 项目概述 - -这是一个情绪博物馆全栈项目,包含iOS客户端、Spring Boot微服务后端和Vue.js Web管理界面。项目采用现代化技术栈,实现情绪记录、AI对话、成长陪伴等核心功能。 - -### 项目结构 -- **EmotionMuseum/**: iOS SwiftUI客户端应用 -- **backend/**: Spring Cloud Alibaba微服务后端 -- **web/**: Vue.js + Vite Web管理界面 -- **mysql_*.sql**: 数据库脚本文件 -- ***.md**: 项目文档和需求规格书 - -## 技术栈 - -### iOS客户端 (SwiftUI) -- **SwiftUI**: 声明式UI框架 -- **Core Data**: 本地数据存储 -- **Combine**: 响应式编程 -- **MapKit**: 地图功能 (高德地图集成) -- **UIKit**: 部分复杂UI组件 - -### 后端微服务 (Spring Boot) -- **Spring Boot**: 3.0.2 (主框架) -- **Spring Cloud**: 2022.0.0 (微服务支持) -- **Spring Cloud Alibaba**: 2022.0.0.0 (微服务生态) -- **Java**: 17+ (编程语言) -- **Maven**: 3.6+ (依赖管理) - -### Web前端 (Vue.js) -- **Vue.js**: 3.x (前端框架) -- **Vite**: 构建工具 -- **Pinia**: 状态管理 -- **Vue Router**: 路由管理 -- **SCSS**: 样式预处理器 - -### 数据存储 -- **MySQL**: 8.0+ (主数据库) -- **Redis**: 7.0+ (缓存) -- **MyBatis Plus**: 3.5.3.1 (ORM框架) -- **Druid**: 1.2.16 (数据库连接池) - -### 微服务基础设施 -- **Nacos**: 2.2.0+ (服务注册发现和配置中心) -- **Gateway**: Spring Cloud Gateway (API网关) - -### 工具和库 -- **Lombok**: 代码简化 -- **Hutool**: 工具类库 -- **FastJSON2**: JSON处理 -- **JWT**: 认证授权 -- **Knife4j**: API文档 -- **MapStruct**: 对象映射 - -## 微服务架构 - -### 服务列表 -| 服务名称 | 端口 | 描述 | 包路径 | -|---------|------|------|--------| -| emotion-gateway | 9000 | API网关 | com.emotionmuseum.gateway | -| emotion-user | 9001 | 用户服务 | com.emotionmuseum.user | -| emotion-ai | 9002 | AI对话服务 | com.emotionmuseum.ai | -| emotion-record | 9003 | 情绪记录服务 | com.emotionmuseum.record | -| emotion-growth | 9004 | 成长课题服务 | com.emotionmuseum.growth | -| emotion-explore | 9005 | 地图探索服务 | com.emotionmuseum.explore | -| emotion-reward | 9006 | 成就奖励服务 | com.emotionmuseum.reward | -| emotion-stats | 9007 | 统计分析服务 | com.emotionmuseum.stats | -| emotion-common | - | 公共模块 | com.emotionmuseum.common | - -## 开发规范 - -### 代码结构约定 - -每个微服务模块遵循标准的MVC分层架构: -``` -emotion-[service]/ -├── sql # 数据库脚本 -├── src/main/java/com/emotionmuseum/[service]/ -│ ├── [Service]Application.java # 启动类 -│ ├── controller/ # 控制器层 -│ ├── service/ # 服务层 -│ │ └── impl/ # 服务实现 -│ ├── mapper/ # 数据访问层 -│ ├── constants/ # 常量类 -│ ├── enums/ # 枚举类 -│ ├── entity/ # 实体类 -│ ├── request/ # 请求体 -│ ├── response/ # 响应体 -│ ├── dto/ # 数据传输对象 -│ ├── vo/ # 视图对象 -│ └── config/ # 配置类 -├── src/main/resources/ -│ ├── application.yml # 配置文件 -│ └── mapper/ # MyBatis XML文件 -└── pom.xml # 依赖配置 -``` - -### 命名规范 - -1. **包命名**: 全小写,使用点分隔 -2. **类命名**: 驼峰命名法,首字母大写 -3. **方法命名**: 驼峰命名法,首字母小写 -4. **常量命名**: 全大写,下划线分隔 -5. **数据库表名**: 小写,下划线分隔 -6. **字段命名**: 小写,下划线分隔 - -### API设计规范 - -1. **RESTful风格**: 使用标准HTTP方法(GET/POST/PUT/DELETE) -2. **URL路径**: `/api/{service}/{resource}` -3. **统一响应**: 使用`Result`包装所有API响应 -4. **状态码**: 使用`ResultCode`枚举定义业务状态码 -5. **分页**: 使用`PageQuery`进行分页查询 -6. **请求体**: 所有请求封装在request中 -7. **响应体**: 所有响应封装在response中 - -### 数据库规范 - -1. **表命名**: 使用模块前缀,如`user_info`、`ai_conversation` -2. **字段命名**: 全小写,下划线分隔 -3. **主键**: 统一使用`id`,使用雪花算法生成,类型为varchar(36) UUID -4. **公共字段**: 继承`BaseEntity`,包含创建时间、更新时间、逻辑删除等 -5. **逻辑删除**: 使用`deleted`字段,0=未删除,1=已删除 - -### 异常处理 - -1. **全局异常处理**: 在公共模块统一处理 -2. **业务异常**: 继承`RuntimeException` -3. **异常响应**: 统一返回`Result.error()`格式 - -## 开发工具指令 - -### 自动化开发环境 (推荐) - -```bash -# 启动所有服务并监控文件变化 -./dev-auto.sh - -# 查看服务状态 -./dev-auto.sh status - -# 停止所有服务 -./dev-auto.sh stop - -# 查看实时日志 -./dev-auto.sh logs -``` - -**自动化开发环境特性:** -- **自动编译**: 检测Java/YAML/XML文件变化时自动重新编译 -- **热重载**: 使用Spring Boot DevTools实现代码变更后自动重启 -- **服务监控**: 实时监控所有微服务的健康状态 -- **统一日志**: 所有服务日志统一存储在`dev-logs/`目录 -- **一键管理**: 支持启动、停止、状态查看、日志查看等操作 - -建议安装`fswatch`以获得更好的文件监控体验: -```bash -brew install fswatch # macOS -apt-get install inotify-tools # Ubuntu -``` - -### 手动构建和启动 - -```bash -# 清理编译 -mvn clean compile -DskipTests - -# 编译所有模块 -mvn clean install -DskipTests - -# 启动单个服务 -cd emotion-[service] && mvn spring-boot:run -``` - -### 服务操作 - -```bash -# 健康检查 -curl http://localhost:808[x]/actuator/health - -# 查看服务日志 (手动启动) -tail -f logs/emotion-[service].log - -# 查看服务日志 (自动化环境) -tail -f dev-logs/emotion-[service].log -``` - -### iOS开发工具指令 - -```bash -# 在Xcode中打开项目 -open EmotionMuseum/EmotionMuseum.xcodeproj - -# 构建iOS应用 -xcodebuild -project EmotionMuseum/EmotionMuseum.xcodeproj -scheme EmotionMuseum -configuration Debug - -# 运行iOS模拟器 -xcrun simctl boot "iPhone 15 Pro" -``` - -### Web前端工具指令 - -```bash -# 进入web目录 -cd web - -# 安装依赖 -npm install - -# 启动开发服务器 -npm run dev - -# 构建生产版本 -npm run build -``` - -### 数据库操作 - -```bash -# 导入数据库结构 -mysql -u root -p emotion_museum < mysql_deploy_database.sql - -# 执行迁移脚本 -mysql -u root -p emotion_museum < [migration_file].sql -``` - -## 测试规范 - -### 单元测试 -- 使用JUnit 5和Spring Boot Test -- 测试覆盖率要求:控制器层>80%,服务层>90% -- Mock外部依赖 - -### 集成测试 -- 使用TestContainers进行数据库测试 -- 测试完整的API调用链路 - -### API测试 -- 使用脚本文件测试API端点 -- 参考`test-api.sh`、`test-coze-api.sh` - -## 配置管理 - -### Nacos配置 -- 环境: `emotion-dev` (开发环境) -- 配置文件: `common-mysql.yml`、`common-redis.yml`、`coze-config.yml` -- 各服务配置: `emotion-[service].yml` - -### 敏感信息 -- 数据库密码存储在Nacos配置中心 -- API密钥使用环境变量或配置中心管理 -- 生产环境配置独立管理 - -## 代码提交规范 - -### 提交信息格式 -``` -type(scope): description - -[optional body] - -[optional footer] -``` - -### 类型说明 -- `feat`: 新功能 -- `fix`: 修复bug -- `docs`: 文档修改 -- `style`: 代码格式 -- `refactor`: 重构 -- `test`: 测试相关 -- `chore`: 构建工具 - -### 示例 -``` -feat(user): add user registration API - -- Add user registration endpoint -- Implement email validation -- Add password encryption - -Closes #123 -``` - -## 安全要求 - -1. **认证授权**: 使用JWT token进行用户认证 -2. **数据加密**: 敏感数据加密存储 -3. **SQL注入**: 使用参数化查询防止SQL注入 -4. **XSS防护**: 对用户输入进行过滤和转义 -5. **CORS配置**: 限制跨域访问 - -## 性能优化 - -1. **数据库优化**: 合理使用索引,避免N+1查询 -2. **缓存策略**: 热点数据使用Redis缓存 -3. **连接池**: 合理配置数据库连接池参数 -4. **异步处理**: 耗时操作使用异步执行 - -## 监控和日志 - -1. **健康检查**: 所有服务提供`/actuator/health`端点 -2. **Prometheus指标**: 通过`/actuator/prometheus`暴露指标 -3. **日志级别**: 开发环境使用DEBUG,生产环境使用INFO -4. **日志格式**: 统一使用结构化日志 - -## 常见问题处理 - -### 服务启动失败 -1. 检查Nacos服务是否启动 -2. 检查数据库连接配置 -3. 检查端口是否被占用 -4. 查看服务日志定位错误 - -### 数据库问题 -1. 确认数据库服务状态 -2. 检查连接参数配置 -3. 验证数据库权限 -4. 查看慢查询日志 - -### 缓存问题 -1. 检查Redis服务状态 -2. 验证缓存配置 -3. 清理过期缓存数据 - -## 扩展开发 - -### 添加新微服务 -1. 复制现有服务模块结构 -2. 修改包名和端口配置 -3. 添加到父工程pom.xml -4. 更新启动脚本 -5. 配置Nacos注册信息 - -### 添加新API -1. 在对应服务的controller包下创建控制器 -2. 定义DTO和VO对象 -3. 实现服务层逻辑 -4. 添加数据访问层 -5. 编写单元测试 -6. 更新API文档 - -## 部署说明 - -### 开发环境 -- 本地启动:使用Maven插件 -- Docker部署:提供Dockerfile和docker-compose.yml - -### 生产环境 -- 容器化部署:使用Kubernetes -- 配置管理:环境变量和配置中心 -- 服务监控:Prometheus + Grafana - -## Claude 开发助手指南 - -### 任务执行原则 - -1. **准确性第一**: 在执行任何任务前,必须先分析项目结构和现有代码,确保理解正确 -2. **规范性约束**: 严格遵循项目的代码规范、命名约定和架构模式 -3. **功能完整性**: 确保所有修改不会破坏现有功能,新增功能要完整实现 -4. **测试验证**: 重要修改后需要运行相关测试,确保代码质量 - -### 文件操作规范 - -1. **iOS项目 (SwiftUI)** - - 修改前先读取 `EmotionMuseum/EmotionMuseum.xcodeproj/project.pbxproj` 了解项目结构 - - 遵循SwiftUI声明式编程范式 - - 使用现有的颜色主题和组件样式 - - 新增文件要正确添加到Xcode项目中 - -2. **后端微服务 (Spring Boot)** - - 修改前检查 `backend/pom.xml` 了解模块依赖 - - 遵循MVC分层架构 - - 使用统一的Result响应格式 - - 数据库操作使用MyBatis Plus - -3. **Web前端 (Vue.js)** - - 修改前检查 `web/package.json` 了解依赖版本 - - 使用Vue 3 Composition API - - 遵循组件化开发模式 - - 样式使用SCSS预处理器 - -### 常用检查清单 - -#### 开始任务前 -- [ ] 读取相关文档 (*.md 文件) 了解需求 -- [ ] 分析现有代码结构和实现模式 -- [ ] 确认修改范围和影响面 -- [ ] 检查是否有相关测试需要更新 - -#### 完成任务后 -- [ ] 代码符合项目规范 -- [ ] 新增功能完整可用 -- [ ] 没有破坏现有功能 -- [ ] 相关文档已更新 -- [ ] 提交信息规范 - -### 错误预防 - -1. **避免盲目修改**: 不要在不了解项目结构的情况下直接修改代码 -2. **保持一致性**: 新增代码要与现有代码风格保持一致 -3. **完整实现**: 不要留下未完成的功能或空实现 -4. **谨慎删除**: 删除代码前确认没有其他地方在使用 - -### 紧急情况处理 - -如果在开发过程中遇到以下情况,需要立即停止并寻求确认: -- 发现代码存在安全风险 -- 修改可能影响核心业务逻辑 -- 需要修改数据库结构 -- 涉及第三方API集成 - ---- - -以上是情绪博物馆全栈项目的完整开发指南,请在开发过程中严格遵循相关规范,确保代码质量和项目的可维护性。 \ No newline at end of file diff --git a/CUSTOM_DEPLOYMENT.md b/CUSTOM_DEPLOYMENT.md deleted file mode 100644 index 41ab17d..0000000 --- a/CUSTOM_DEPLOYMENT.md +++ /dev/null @@ -1,342 +0,0 @@ -# 情绪博物馆自定义目录部署指南 - -## 📋 部署架构 - -根据您的要求,本部署方案采用以下目录结构: - -``` -/data/ -├── www/emotion-museum/ # 前端静态文件目录 -│ ├── index.html -│ ├── assets/ -│ └── ... -├── builds/ # 后端JAR文件目录 -│ ├── emotion-gateway.jar -│ ├── emotion-ai.jar -│ └── emotion-user.jar -└── logs/emotion-museum/ # 日志目录 - ├── nginx/ - ├── gateway/ - ├── ai/ - ├── user/ - ├── mysql/ - ├── redis/ - └── nacos/ -``` - -## 🏗️ 服务架构 - -``` -┌─────────────┐ ┌─────────────┐ ┌─────────────┐ -│ 用户访问 │───▶│ Nginx │───▶│ 静态文件 │ -└─────────────┘ │ (80/443) │ │ /data/www/ │ - └─────────────┘ └─────────────┘ - │ - ▼ - ┌─────────────┐ ┌─────────────┐ - │ API代理 │───▶│ Gateway │ - │ /api/* │ │ (9000) │ - └─────────────┘ └─────────────┘ - │ - ▼ - ┌─────────────┐ ┌─────────────┐ - │ 微服务集群 │ │ JAR文件 │ - │ AI/User/... │ │ /data/builds│ - └─────────────┘ └─────────────┘ -``` - -## 🚀 快速部署 - -### 1. 准备环境 - -```bash -# 确保Docker和Docker Compose已安装 -docker --version -docker-compose --version - -# 创建必要目录 -sudo mkdir -p /data/www/emotion-museum -sudo mkdir -p /data/builds -sudo mkdir -p /data/logs/emotion-museum -``` - -### 2. 配置环境变量 - -```bash -# 编辑环境变量文件 -vim .env -``` - -**配置说明**: -```bash -# Coze API配置(已配置为与开发环境一致) -COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO - -# 数据库密码(可根据需要修改) -MYSQL_ROOT_PASSWORD=123456 -MYSQL_PASSWORD=emotion123 -``` - -### 3. 一键部署 - -```bash -# 给脚本执行权限 -chmod +x deploy-custom.sh - -# 执行自定义部署 -./deploy-custom.sh -``` - -## 📁 文件说明 - -### 新增配置文件 - -1. **`docker-compose.custom.yml`** - 自定义Docker配置 - - 前端文件直接从宿主机目录提供 - - 后端JAR文件挂载到容器 - - 日志统一保存到指定目录 - -2. **`deploy-custom.sh`** - 自定义部署脚本 - - 自动检查和构建前后端 - - 部署文件到指定目录 - - 启动Docker服务 - -3. **`manage-custom.sh`** - 自定义管理脚本 - - 服务管理和监控 - - 日志查看和健康检查 - - 数据备份和恢复 - -### 修改的配置文件 - -1. **`deploy/nginx/conf.d/emotion-museum.conf`** - Nginx配置 - - 前端文件直接从 `/data/www/emotion-museum` 提供 - - API请求代理到Docker容器内的服务 - - 日志保存到 `/data/logs/emotion-museum/nginx/` - -2. **`deploy/nginx/nginx.conf`** - Nginx主配置 - - 更新上游服务器定义 - - 支持容器间通信 - -## 🔧 端口配置 - -| 服务 | 容器端口 | 宿主机端口 | 说明 | -|------|----------|------------|------| -| Nginx | 80/443 | 80/443 | Web访问 | -| Gateway | 9000 | 9000 | API网关 | -| AI Service | 9002 | 9002 | AI服务 | -| User Service | 9001 | 9001 | 用户服务 | -| MySQL | 3306 | 3306 | 数据库 | -| Redis | 6379 | 6379 | 缓存 | -| Nacos | 8848 | 8848 | 注册中心 | - -## 🛠️ 管理命令 - -### 服务管理 -```bash -# 启动所有服务 -./manage-custom.sh start - -# 停止所有服务 -./manage-custom.sh stop - -# 重启所有服务 -./manage-custom.sh restart - -# 重启指定服务 -./manage-custom.sh restart emotion-ai - -# 查看服务状态 -./manage-custom.sh status -``` - -### 日志管理 -```bash -# 查看所有日志 -./manage-custom.sh logs - -# 跟踪日志输出 -./manage-custom.sh logs -f - -# 查看指定服务日志 -./manage-custom.sh logs -s nginx -./manage-custom.sh logs -s emotion-gateway -``` - -### 健康检查 -```bash -# 执行健康检查 -./manage-custom.sh health - -# 实时监控 -./manage-custom.sh monitor -``` - -### 数据管理 -```bash -# 备份数据 -./manage-custom.sh backup - -# 更新服务 -./manage-custom.sh update - -# 清理资源 -./manage-custom.sh clean -``` - -## 📊 目录详情 - -### 前端目录 `/data/www/emotion-museum/` -``` -/data/www/emotion-museum/ -├── index.html # 主页面 -├── assets/ # 静态资源 -│ ├── css/ # 样式文件 -│ ├── js/ # JavaScript文件 -│ └── images/ # 图片文件 -└── favicon.ico # 网站图标 -``` - -### 后端目录 `/data/builds/` -``` -/data/builds/ -├── emotion-gateway.jar # 网关服务JAR -├── emotion-ai.jar # AI服务JAR -└── emotion-user.jar # 用户服务JAR -``` - -### 日志目录 `/data/logs/emotion-museum/` -``` -/data/logs/emotion-museum/ -├── nginx/ # Nginx日志 -│ ├── access.log -│ └── error.log -├── gateway/ # 网关服务日志 -├── ai/ # AI服务日志 -├── user/ # 用户服务日志 -├── mysql/ # MySQL日志 -├── redis/ # Redis日志 -└── nacos/ # Nacos日志 -``` - -## 🔄 更新流程 - -### 更新前端 -```bash -# 1. 重新构建前端 -cd web -npm run build - -# 2. 部署到目标目录 -sudo rm -rf /data/www/emotion-museum/* -sudo cp -r dist/* /data/www/emotion-museum/ -sudo chown -R www-data:www-data /data/www/emotion-museum - -# 3. 重启Nginx(可选) -./manage-custom.sh restart nginx -``` - -### 更新后端 -```bash -# 1. 重新构建后端 -cd backend -mvn clean package -DskipTests - -# 2. 部署JAR文件 -sudo cp emotion-gateway/target/emotion-gateway-1.0.0.jar /data/builds/emotion-gateway.jar -sudo cp emotion-ai/target/emotion-ai-1.0.0.jar /data/builds/emotion-ai.jar -sudo cp emotion-user/target/emotion-user-1.0.0.jar /data/builds/emotion-user.jar - -# 3. 重启相关服务 -./manage-custom.sh restart emotion-gateway -./manage-custom.sh restart emotion-ai -./manage-custom.sh restart emotion-user -``` - -### 一键更新 -```bash -# 自动构建和部署 -./manage-custom.sh update -``` - -## 🚨 故障排除 - -### 常见问题 - -#### 1. 前端访问404 -```bash -# 检查前端文件是否存在 -ls -la /data/www/emotion-museum/ - -# 检查Nginx配置 -./manage-custom.sh logs -s nginx - -# 检查文件权限 -sudo chown -R www-data:www-data /data/www/emotion-museum -``` - -#### 2. API调用失败 -```bash -# 检查网关服务状态 -./manage-custom.sh logs -s emotion-gateway - -# 检查服务健康状态 -curl http://localhost:9000/actuator/health -``` - -#### 3. 服务启动失败 -```bash -# 检查JAR文件是否存在 -ls -la /data/builds/ - -# 检查服务日志 -./manage-custom.sh logs -s emotion-ai - -# 检查容器状态 -docker-compose -f docker-compose.custom.yml ps -``` - -#### 4. 日志文件过大 -```bash -# 清理日志文件 -sudo find /data/logs/emotion-museum -name "*.log" -size +100M -delete - -# 设置日志轮转 -sudo logrotate -f /etc/logrotate.conf -``` - -## 📞 技术支持 - -### 快速诊断 -```bash -# 执行健康检查 -./manage-custom.sh health - -# 查看服务状态 -./manage-custom.sh status - -# 查看实时监控 -./manage-custom.sh monitor -``` - -### 获取帮助 -```bash -# 查看管理命令帮助 -./manage-custom.sh --help - -# 查看部署脚本帮助 -./deploy-custom.sh --help -``` - ---- - -## ✅ 部署检查清单 - -- [ ] **目录创建**: `/data/www/emotion-museum`, `/data/builds`, `/data/logs/emotion-museum` -- [ ] **环境配置**: `COZE_API_TOKEN` 已配置为与开发环境一致 -- [ ] **前端部署**: 静态文件已复制到 `/data/www/emotion-museum/` -- [ ] **后端部署**: JAR文件已复制到 `/data/builds/` -- [ ] **服务启动**: 所有Docker容器正常运行 -- [ ] **访问测试**: 前端页面和API接口正常访问 -- [ ] **日志检查**: 日志文件正常生成到 `/data/logs/emotion-museum/` - -**🎉 恭喜!您的情绪博物馆项目已成功部署到自定义目录结构!** diff --git a/DEPLOY.md b/DEPLOY.md deleted file mode 100644 index 8aa403a..0000000 --- a/DEPLOY.md +++ /dev/null @@ -1,313 +0,0 @@ -# 情绪博物馆容器部署指南 - -## 📋 概述 - -本文档提供了情绪博物馆项目的完整容器化部署方案,支持开发环境和生产环境的快速部署。 - -## 🏗️ 架构说明 - -### 服务组件 -- **前端应用** (Vue3 + Ant Design) - 端口: 80/3000 -- **API网关** (Spring Cloud Gateway) - 端口: 9000 -- **AI服务** (Spring Boot + Coze API) - 端口: 9002 -- **用户服务** (Spring Boot) - 端口: 9001 -- **MySQL数据库** - 端口: 3306 -- **Redis缓存** - 端口: 6379 -- **Nacos注册中心** - 端口: 8848 -- **Nginx反向代理** - 端口: 80/443 - -### 网络架构 -``` -Internet → Nginx → Frontend/Gateway → Microservices → Database -``` - -## 🚀 快速开始 - -### 1. 系统要求 -- **操作系统**: Linux/macOS/Windows -- **Docker**: 20.10+ -- **Docker Compose**: 1.29+ -- **内存**: 最少4GB,推荐8GB+ -- **磁盘**: 最少10GB可用空间 - -### 2. 一键部署 -```bash -# 克隆项目 -git clone -cd EmotionMuseum - -# 快速部署(自动安装依赖) -chmod +x quick-deploy.sh -./quick-deploy.sh - -# 或者手动部署 -chmod +x deploy.sh -./deploy.sh -``` - -### 3. 访问应用 -- **前端应用**: http://localhost -- **API文档**: http://localhost:9000/doc.html -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) - -## 📁 文件结构 - -``` -EmotionMuseum/ -├── docker-compose.yml # 开发环境配置 -├── docker-compose.prod.yml # 生产环境配置 -├── deploy.sh # 部署脚本 -├── quick-deploy.sh # 快速部署脚本 -├── manage.sh # 管理脚本 -├── .env # 环境变量 -├── deploy/ # 部署配置 -│ ├── nginx/ # Nginx配置 -│ │ ├── nginx.conf -│ │ ├── conf.d/ -│ │ └── ssl/ -│ ├── mysql/ # MySQL配置 -│ └── redis/ # Redis配置 -├── backend/ # 后端服务 -│ ├── emotion-gateway/ -│ │ └── Dockerfile -│ ├── emotion-ai/ -│ │ └── Dockerfile -│ └── emotion-user/ -│ └── Dockerfile -└── web/ # 前端应用 - ├── Dockerfile - └── nginx.conf -``` - -## ⚙️ 配置说明 - -### 环境变量配置 -编辑 `.env` 文件: -```bash -# 数据库配置 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_DATABASE=emotion_museum -MYSQL_USER=emotion -MYSQL_PASSWORD=emotion123 - -# Coze API配置 -COZE_API_TOKEN=your-coze-api-token - -# 时区设置 -TZ=Asia/Shanghai -``` - -### Nginx配置 -- **主配置**: `deploy/nginx/nginx.conf` -- **站点配置**: `deploy/nginx/conf.d/emotion-museum.conf` -- **SSL证书**: `deploy/nginx/ssl/` - -### 数据库配置 -- **MySQL配置**: `deploy/mysql/conf.d/my.cnf` -- **初始化脚本**: `backend/mysql_emotion_museum_final.sql` - -## 🛠️ 管理命令 - -### 基础操作 -```bash -# 启动所有服务 -./manage.sh start - -# 停止所有服务 -./manage.sh stop - -# 重启所有服务 -./manage.sh restart - -# 查看服务状态 -./manage.sh status -``` - -### 日志管理 -```bash -# 查看所有服务日志 -./manage.sh logs - -# 跟踪日志输出 -./manage.sh logs -f - -# 查看特定服务日志 -./manage.sh logs -s gateway -./manage.sh logs -s ai-service -``` - -### 服务管理 -```bash -# 重启特定服务 -./manage.sh restart gateway -./manage.sh restart ai-service - -# 健康检查 -./manage.sh health - -# 监控面板 -./manage.sh monitor -``` - -### 数据管理 -```bash -# 备份数据 -./manage.sh backup - -# 恢复数据 -./manage.sh restore backup_file.tar.gz - -# 更新服务 -./manage.sh update - -# 清理资源 -./manage.sh clean -``` - -## 🔧 生产环境部署 - -### 1. 使用生产配置 -```bash -# 使用生产环境配置文件 -docker-compose -f docker-compose.prod.yml up -d -``` - -### 2. SSL证书配置 -```bash -# 放置SSL证书 -cp your-domain.crt deploy/nginx/ssl/emotion-museum.crt -cp your-domain.key deploy/nginx/ssl/emotion-museum.key - -# 修改Nginx配置启用HTTPS -vim deploy/nginx/conf.d/emotion-museum.conf -``` - -### 3. 域名配置 -修改 `deploy/nginx/conf.d/emotion-museum.conf`: -```nginx -server_name your-domain.com www.your-domain.com; -``` - -### 4. 防火墙配置 -```bash -# Ubuntu/Debian -sudo ufw allow 80/tcp -sudo ufw allow 443/tcp - -# CentOS/RHEL -sudo firewall-cmd --permanent --add-port=80/tcp -sudo firewall-cmd --permanent --add-port=443/tcp -sudo firewall-cmd --reload -``` - -## 📊 监控和维护 - -### 服务监控 -```bash -# 实时监控 -./manage.sh monitor - -# 资源使用情况 -docker stats - -# 服务状态 -docker-compose ps -``` - -### 日志查看 -```bash -# 应用日志 -./manage.sh logs -f - -# 系统日志 -tail -f logs/nginx/access.log -tail -f logs/mysql/error.log -``` - -### 性能优化 -1. **数据库优化**: 调整 `deploy/mysql/conf.d/my.cnf` -2. **Redis优化**: 调整 `deploy/redis/redis.conf` -3. **Nginx优化**: 调整 `deploy/nginx/nginx.conf` -4. **JVM优化**: 修改Dockerfile中的JVM参数 - -## 🔒 安全配置 - -### 1. 数据库安全 -- 修改默认密码 -- 限制访问IP -- 启用SSL连接 - -### 2. Redis安全 -- 设置密码认证 -- 绑定特定IP -- 禁用危险命令 - -### 3. Nginx安全 -- 启用HTTPS -- 配置安全头 -- 限制请求频率 - -### 4. 应用安全 -- 配置JWT密钥 -- 启用CORS限制 -- 设置API限流 - -## 🚨 故障排除 - -### 常见问题 - -#### 1. 服务启动失败 -```bash -# 查看服务日志 -./manage.sh logs -s service-name - -# 检查端口占用 -netstat -tlnp | grep :port - -# 重启服务 -./manage.sh restart service-name -``` - -#### 2. 数据库连接失败 -```bash -# 检查MySQL状态 -docker-compose exec mysql mysqladmin ping -u root -p - -# 查看数据库日志 -./manage.sh logs -s mysql -``` - -#### 3. 前端访问异常 -```bash -# 检查Nginx配置 -nginx -t - -# 查看Nginx日志 -./manage.sh logs -s nginx -``` - -#### 4. API调用失败 -```bash -# 检查网关状态 -curl http://localhost:9000/actuator/health - -# 查看网关日志 -./manage.sh logs -s gateway -``` - -### 性能问题 -1. **内存不足**: 增加服务器内存或调整JVM参数 -2. **磁盘空间**: 清理日志文件和Docker镜像 -3. **网络延迟**: 检查服务间网络连接 - -## 📞 技术支持 - -如遇到问题,请: -1. 查看相关服务日志 -2. 检查配置文件 -3. 参考故障排除指南 -4. 联系技术支持团队 - ---- - -**部署完成后,请及时修改默认密码和配置文件中的敏感信息!** diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md deleted file mode 100644 index 04bbd34..0000000 --- a/DEPLOYMENT.md +++ /dev/null @@ -1,256 +0,0 @@ -# 情绪博物馆项目部署指南 - -## 概述 - -本文档提供了情绪博物馆项目的完整部署指南,包括一键部署脚本的使用方法和手动部署步骤。 - -## 系统要求 - -### 本地开发环境 -- Java 17+ -- Maven 3.6+ -- Node.js 18+ -- SSH客户端 - -### 服务器环境 -- CentOS 7/8 或 RHEL 7/8 -- 最小 4GB RAM,推荐 8GB+ -- 最小 50GB 磁盘空间 -- Docker 支持 - -## 快速部署 - -### 1. 一键部署(推荐) - -```bash -# 克隆项目 -git clone -cd EmotionMuseum - -# 执行一键部署 -./deploy-final.sh all -``` - -### 2. 分步部署 - -```bash -# 1. 构建项目 -./deploy-final.sh build - -# 2. 配置服务器环境 -./deploy-final.sh env - -# 3. 配置数据库 -./deploy-final.sh mysql - -# 4. 配置Redis -./deploy-final.sh redis - -# 5. 配置Nacos -./deploy-final.sh nacos - -# 6. 上传构建产物 -./deploy-final.sh upload - -# 7. 导入数据库 -./deploy-final.sh import-db - -# 8. 部署应用服务 -./deploy-final.sh deploy - -# 9. 配置Nginx -./deploy-final.sh nginx - -# 10. 创建密码记录 -./deploy-final.sh passwords - -# 11. 健康检查 -./deploy-final.sh health -``` - -## 服务管理 - -### 启动/停止服务 - -```bash -# 查看服务状态 -./deploy-final.sh status - -# 启动服务 -./deploy-final.sh start - -# 停止服务 -./deploy-final.sh stop - -# 重启服务 -./deploy-final.sh restart -``` - -### 查看日志 - -```bash -# 查看网关服务日志 -./deploy-final.sh logs gateway - -# 查看AI服务日志 -./deploy-final.sh logs ai - -# 查看用户服务日志 -./deploy-final.sh logs user -``` - -## 配置说明 - -### 环境变量配置 - -主要配置文件: -- `.env.prod` - 生产环境配置 -- `web/.env.production` - 前端生产环境配置 - -### 服务器配置 - -默认配置: -- 服务器IP: 47.111.10.27 -- MySQL端口: 3306 -- Redis端口: 6379 -- Nacos端口: 8848 -- 网关端口: 9000 -- AI服务端口: 9002 -- 用户服务端口: 9001 - -### 目录结构 - -``` -/data/ -├── builds/ # 应用JAR文件 -├── www/ # 前端文件 -│ └── emotion-museum/ -│ └── web/ -├── logs/ # 日志文件 -│ └── emotion-museum/ -│ ├── gateway/ -│ ├── ai/ -│ └── user/ -└── programs/ # 其他程序文件 -``` - -## 访问地址 - -部署完成后的访问地址: - -- **前端应用**: http://47.111.10.27/emotion-museum/ -- **API网关**: http://47.111.10.27:9000 -- **Nacos控制台**: http://47.111.10.27:8848/nacos - -## 故障排除 - -### 常见问题 - -1. **服务无法启动** - ```bash - # 检查服务状态 - ./deploy-final.sh status - - # 查看日志 - ./deploy-final.sh logs - ``` - -2. **数据库连接失败** - ```bash - # 检查MySQL容器状态 - ssh root@47.111.10.27 "docker ps | grep mysql" - - # 检查数据库连接 - ssh root@47.111.10.27 "docker exec emotion-mysql-prod mysql -uemotion -pEmotionDB2024! -e 'SELECT 1;'" - ``` - -3. **前端页面无法访问** - ```bash - # 检查Nginx状态 - ssh root@47.111.10.27 "systemctl status nginx" - - # 检查前端文件 - ssh root@47.111.10.27 "ls -la /data/www/emotion-museum/web/" - ``` - -### 日志位置 - -- 应用日志: `/data/logs/emotion-museum/*/app.log` -- Nginx日志: `/var/log/nginx/` -- Docker日志: `docker logs ` - -## 安全建议 - -1. **修改默认密码** - - MySQL root密码 - - 应用数据库密码 - - 服务器SSH密钥 - -2. **配置防火墙** - ```bash - # 只开放必要端口 - firewall-cmd --permanent --add-port=80/tcp - firewall-cmd --permanent --add-port=8848/tcp - firewall-cmd --reload - ``` - -3. **定期备份** - ```bash - # 数据库备份 - docker exec emotion-mysql-prod mysqldump -uemotion -pEmotionDB2024! emotion_museum > backup.sql - ``` - -## 更新部署 - -### 应用更新 - -```bash -# 1. 构建新版本 -./deploy-final.sh build - -# 2. 停止服务 -./deploy-final.sh stop - -# 3. 上传新文件 -./deploy-final.sh upload - -# 4. 启动服务 -./deploy-final.sh start -``` - -### 配置更新 - -```bash -# 重新配置Nginx -./deploy-final.sh nginx - -# 重启服务 -./deploy-final.sh restart -``` - -## 监控和维护 - -### 健康检查 - -```bash -# 执行完整健康检查 -./deploy-final.sh health -``` - -### 性能监控 - -建议使用以下工具进行监控: -- Prometheus + Grafana -- ELK Stack (日志分析) -- Docker监控 - -## 联系支持 - -如遇到部署问题,请提供以下信息: -1. 错误日志 -2. 系统环境信息 -3. 部署步骤和配置 - ---- - -**注意**: 请确保在生产环境中修改默认密码和配置,并定期进行安全更新。 diff --git a/DEPLOYMENT_FINAL.md b/DEPLOYMENT_FINAL.md new file mode 100644 index 0000000..ff4d922 --- /dev/null +++ b/DEPLOYMENT_FINAL.md @@ -0,0 +1,253 @@ +# 情感博物馆 - 最终部署指南 + +## 🎯 项目概述 + +情感博物馆是一个基于Spring Cloud Alibaba微服务架构的情感AI应用,包含10个微服务模块和Vue前端。 + +## 🏗️ 系统架构 + +### 后端微服务 (Spring Cloud Alibaba) +- **emotion-gateway** (19000) - API网关,统一入口 +- **emotion-user** (19001) - 用户管理服务 +- **emotion-ai** (19002) - AI聊天服务,集成Coze平台 +- **emotion-record** (19003) - 记录管理服务 +- **emotion-growth** (19004) - 成长跟踪服务 +- **emotion-explore** (19005) - 探索服务 +- **emotion-reward** (19006) - 奖励服务 +- **emotion-websocket** (19007) - WebSocket实时通信 +- **emotion-auth** (19008) - 认证授权服务 +- **emotion-stats** (19009) - 统计分析服务 + +### 前端 (Vue + Ant Design) +- 基于Vue 3 + TypeScript + Ant Design +- 响应式设计,支持移动端 +- WebSocket实时通信 +- 集成AI聊天功能 + +### 中间件 +- **MySQL 8.0** (3306) - 主数据库 +- **Redis 7** (6379) - 缓存和会话存储 +- **Nacos 2.2.0** (8848) - 服务注册发现和配置中心 + +## 🚀 快速部署 + +### 1. 一键部署(推荐) +```bash +# 完整部署前后端 +./one-click-deploy.sh + +# 仅部署后端 +./one-click-deploy.sh backend + +# 仅部署前端 +./one-click-deploy.sh frontend + +# 健康检查 +./one-click-deploy.sh check +``` + +### 2. 中间件管理 +```bash +# 重启中间件(MySQL, Redis, Nacos) +./restart-middleware.sh +``` + +### 3. Nginx配置 +```bash +# 配置Nginx反向代理 +./setup-nginx.sh +``` + +## 📋 分步部署 + +### 步骤1: 准备环境 +确保本地环境已安装: +- Java 17+ +- Maven 3.6+ +- Node.js 16+ +- Docker (远程服务器) + +### 步骤2: 启动中间件 +```bash +./restart-middleware.sh +``` + +### 步骤3: 构建后端 +```bash +cd backend +./build-all.sh +``` + +### 步骤4: 部署后端 +```bash +cd backend +./deploy-remote.sh +``` + +### 步骤5: 部署前端 +```bash +cd web-flowith +./deploy.sh +``` + +### 步骤6: 配置Nginx +```bash +./setup-nginx.sh +``` + +## 🌐 访问地址 + +### 生产环境 +- **前端应用**: http://47.111.10.27/emotion-museum +- **API网关**: http://47.111.10.27/api/ +- **WebSocket**: ws://47.111.10.27/ws/ +- **健康检查**: http://47.111.10.27/health + +### 管理后台 +- **Nacos控制台**: http://47.111.10.27:8848/nacos + - 用户名: nacos + - 密码: Peanut2817*# + +### 数据库连接 +- **MySQL**: 47.111.10.27:3306 + - 用户名: root + - 密码: EmotionMuseum2025*# + - 数据库: emotion_museum + +- **Redis**: 47.111.10.27:6379 + +## 🔧 运维管理 + +### 查看服务状态 +```bash +# 查看所有容器 +ssh root@47.111.10.27 "docker ps" + +# 查看特定服务日志 +ssh root@47.111.10.27 "docker logs emotion-gateway --tail 50" + +# 查看服务健康状态 +curl http://47.111.10.27:19000/actuator/health +``` + +### 重启服务 +```bash +# 重启单个服务 +ssh root@47.111.10.27 "docker restart emotion-gateway" + +# 重启所有微服务 +ssh root@47.111.10.27 "docker restart \$(docker ps -q --filter name=emotion-)" +``` + +### 更新部署 +```bash +# 更新后端服务 +cd backend && ./deploy-remote.sh + +# 更新前端 +cd web-flowith && ./deploy.sh + +# 完整更新 +./one-click-deploy.sh +``` + +## 📊 监控和日志 + +### 应用日志 +- 容器日志: `docker logs ` +- 应用日志: `/data/logs/emotion-museum/` + +### Nginx日志 +- 访问日志: `/var/log/nginx/emotion-museum.access.log` +- 错误日志: `/var/log/nginx/emotion-museum.error.log` + +### 健康检查端点 +- 网关: http://47.111.10.27:19000/actuator/health +- 用户服务: http://47.111.10.27:19001/actuator/health +- AI服务: http://47.111.10.27:19002/actuator/health + +## 🛠️ 故障排查 + +### 常见问题 + +#### 1. 服务启动失败 +```bash +# 查看容器日志 +docker logs --tail 50 + +# 检查端口占用 +netstat -tlnp | grep + +# 重启服务 +docker restart +``` + +#### 2. 数据库连接失败 +```bash +# 检查MySQL状态 +docker exec emotion-mysql mysqladmin ping + +# 检查数据库连接 +mysql -h 47.111.10.27 -u root -p +``` + +#### 3. Nacos连接失败 +```bash +# 检查Nacos状态 +curl http://47.111.10.27:8848/nacos/v1/console/health + +# 重启Nacos +docker restart emotion-nacos +``` + +#### 4. 前端访问404 +```bash +# 检查Nginx配置 +nginx -t + +# 检查前端文件 +ls -la /data/www/emotion-museum/ + +# 重载Nginx +systemctl reload nginx +``` + +## 📁 项目结构 + +``` +emotion-museum/ +├── 📁 backend/ # 后端微服务 +├── 📁 web-flowith/ # 前端Vue项目 +├── 📁 docs/ # 项目文档 +├── 📁 configs/ # 配置文件 +├── 🔧 one-click-deploy.sh # 一键部署脚本 +├── 🔧 restart-middleware.sh # 中间件重启脚本 +├── 🔧 setup-nginx.sh # Nginx配置脚本 +└── 📄 DEPLOYMENT_FINAL.md # 部署指南 +``` + +## 🔐 安全配置 + +### 密码管理 +- MySQL root密码: EmotionMuseum2025*# +- Nacos密码: Peanut2817*# +- 所有密码已在配置文件中统一 + +### 网络安全 +- 所有服务运行在Docker网络中 +- Nginx反向代理保护内部服务 +- 仅必要端口对外开放 + +## 📞 技术支持 + +如遇到问题,请: +1. 查看相关日志文件 +2. 检查服务健康状态 +3. 参考故障排查章节 +4. 联系开发团队并提供完整日志 + +--- + +**版本**: v2.0 +**更新时间**: 2025-07-21 +**维护团队**: 情感博物馆开发团队 diff --git a/DEPLOYMENT_GUIDE.md b/DEPLOYMENT_GUIDE.md deleted file mode 100644 index 9e01895..0000000 --- a/DEPLOYMENT_GUIDE.md +++ /dev/null @@ -1,371 +0,0 @@ -# 情绪博物馆完整部署指南 - -## 📦 部署包信息 - -**包名称**: `emotion-museum-1.0.0-20250713_111829.tar.gz` -**包大小**: 680KB -**SHA256**: `900d585f575b1619e74296496e2fe22f2c2e71b6ad8901d7cab82634765cc10d` -**构建时间**: 2025-07-13 11:18:29 - -## 🎯 部署概述 - -本部署包包含了情绪博物馆项目的完整容器化部署方案,支持: -- ✅ 前端Vue3应用(已构建) -- ✅ 后端微服务(Gateway、AI、User) -- ✅ 数据库脚本(MySQL) -- ✅ 完整的Docker配置 -- ✅ 自动化部署脚本 -- ✅ 监控和管理工具 - -## 🏗️ 系统架构 - -``` -┌─────────────┐ ┌─────────────┐ ┌─────────────┐ -│ 用户访问 │───▶│ Nginx │───▶│ 前端应用 │ -└─────────────┘ │ (80/443) │ │ (3000) │ - └─────────────┘ └─────────────┘ - │ - ▼ - ┌─────────────┐ ┌─────────────┐ - │ API网关 │───▶│ 微服务集群 │ - │ (9000) │ │ AI/User/... │ - └─────────────┘ └─────────────┘ - │ - ▼ - ┌─────────────┐ ┌─────────────┐ - │ MySQL │ │ Redis │ - │ (3306) │ │ (6379) │ - └─────────────┘ └─────────────┘ -``` - -## 🚀 快速部署(推荐) - -### 1. 下载和解压 -```bash -# 下载部署包到服务器 -wget https://your-domain.com/emotion-museum-1.0.0-20250713_111829.tar.gz - -# 验证文件完整性 -echo "900d585f575b1619e74296496e2fe22f2c2e71b6ad8901d7cab82634765cc10d emotion-museum-1.0.0-20250713_111829.tar.gz" | sha256sum -c - -# 解压部署包 -tar -xzf emotion-museum-1.0.0-20250713_111829.tar.gz -cd emotion-museum-1.0.0-20250713_111829 -``` - -### 2. 配置环境变量 -```bash -# 复制环境变量模板 -cp .env .env.local - -# 编辑配置文件 -vim .env.local -``` - -**必须配置的项目**: -```bash -# Coze API配置(必须修改) -COZE_API_TOKEN=your-actual-coze-api-token - -# 数据库密码(建议修改) -MYSQL_ROOT_PASSWORD=your-secure-password -MYSQL_PASSWORD=your-secure-password - -# 时区设置 -TZ=Asia/Shanghai -``` - -### 3. 一键部署 -```bash -# 给脚本执行权限 -chmod +x quick-deploy.sh - -# 执行一键部署(自动安装Docker等依赖) -./quick-deploy.sh -``` - -### 4. 验证部署 -```bash -# 查看服务状态 -./manage.sh status - -# 健康检查 -./manage.sh health - -# 查看日志 -./manage.sh logs -``` - -## 🔧 手动部署(高级用户) - -### 1. 环境准备 -```bash -# 安装Docker -curl -fsSL https://get.docker.com | sh -sudo systemctl start docker -sudo systemctl enable docker - -# 安装Docker Compose -sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose -sudo chmod +x /usr/local/bin/docker-compose - -# 添加用户到docker组 -sudo usermod -aG docker $USER -``` - -### 2. 配置防火墙 -```bash -# Ubuntu/Debian -sudo ufw allow 80/tcp -sudo ufw allow 443/tcp -sudo ufw allow 8848/tcp # Nacos(可选) - -# CentOS/RHEL -sudo firewall-cmd --permanent --add-port=80/tcp -sudo firewall-cmd --permanent --add-port=443/tcp -sudo firewall-cmd --permanent --add-port=8848/tcp -sudo firewall-cmd --reload -``` - -### 3. 部署服务 -```bash -# 开发环境部署 -./deploy.sh - -# 或生产环境部署 -docker-compose -f docker-compose.prod.yml up -d -``` - -## ⚙️ 配置说明 - -### 环境变量配置 -| 变量名 | 说明 | 默认值 | 是否必须 | -|--------|------|--------|----------| -| `COZE_API_TOKEN` | Coze API令牌 | - | ✅ 必须 | -| `MYSQL_ROOT_PASSWORD` | MySQL root密码 | 123456 | 🔶 建议修改 | -| `MYSQL_PASSWORD` | MySQL用户密码 | emotion123 | 🔶 建议修改 | -| `TZ` | 时区设置 | Asia/Shanghai | ⭕ 可选 | -| `DOMAIN_NAME` | 域名(生产环境) | localhost | ⭕ 可选 | - -### 端口配置 -| 服务 | 端口 | 说明 | -|------|------|------| -| Nginx | 80, 443 | Web访问端口 | -| Gateway | 9000 | API网关 | -| AI Service | 9002 | AI服务 | -| User Service | 9001 | 用户服务 | -| MySQL | 3306 | 数据库 | -| Redis | 6379 | 缓存 | -| Nacos | 8848 | 注册中心 | - -## 🌐 生产环境配置 - -### 1. HTTPS配置 -```bash -# 1. 准备SSL证书 -mkdir -p deploy/nginx/ssl -cp your-domain.crt deploy/nginx/ssl/emotion-museum.crt -cp your-domain.key deploy/nginx/ssl/emotion-museum.key - -# 2. 修改Nginx配置 -vim deploy/nginx/conf.d/emotion-museum.conf -# 取消HTTPS相关配置的注释 - -# 3. 重启Nginx -docker-compose restart nginx -``` - -### 2. 域名配置 -```bash -# 修改Nginx配置中的域名 -vim deploy/nginx/conf.d/emotion-museum.conf -# 将 localhost 替换为您的实际域名 -``` - -### 3. 性能优化 -```bash -# 1. 调整MySQL配置 -vim deploy/mysql/conf.d/my.cnf - -# 2. 调整Redis配置 -vim deploy/redis/redis.conf - -# 3. 调整JVM参数(在Dockerfile中) -# -Xms512m -Xmx1024m -``` - -## 🛠️ 管理命令 - -### 服务管理 -```bash -./manage.sh start # 启动所有服务 -./manage.sh stop # 停止所有服务 -./manage.sh restart # 重启所有服务 -./manage.sh restart gateway # 重启指定服务 -./manage.sh status # 查看服务状态 -``` - -### 日志管理 -```bash -./manage.sh logs # 查看所有日志 -./manage.sh logs -f # 跟踪日志输出 -./manage.sh logs -s gateway # 查看网关日志 -./manage.sh logs -s ai-service # 查看AI服务日志 -``` - -### 数据管理 -```bash -./manage.sh backup # 备份数据 -./manage.sh restore backup.tar.gz # 恢复数据 -./manage.sh update # 更新服务 -./manage.sh clean # 清理资源 -``` - -### 监控工具 -```bash -./manage.sh monitor # 实时监控面板 -./manage.sh health # 健康检查 -``` - -## 📊 访问地址 - -部署完成后,您可以通过以下地址访问: - -| 服务 | 地址 | 说明 | -|------|------|------| -| 前端应用 | http://localhost | 主要访问入口 | -| API文档 | http://localhost:9000/doc.html | Swagger文档 | -| Nacos控制台 | http://localhost:8848/nacos | 服务注册中心 | -| 网关健康检查 | http://localhost:9000/actuator/health | 服务状态 | - -**默认账号**: -- Nacos: nacos / nacos - -## 🚨 故障排除 - -### 常见问题 - -#### 1. 端口冲突 -```bash -# 检查端口占用 -netstat -tlnp | grep :80 -netstat -tlnp | grep :3306 - -# 解决方案:修改docker-compose.yml中的端口映射 -``` - -#### 2. 服务启动失败 -```bash -# 查看具体错误 -./manage.sh logs -s service-name - -# 常见原因: -# - 内存不足 -# - 端口被占用 -# - 配置文件错误 -# - 依赖服务未启动 -``` - -#### 3. 数据库连接失败 -```bash -# 检查MySQL状态 -docker-compose exec mysql mysqladmin ping -u root -p - -# 检查网络连接 -docker network ls -docker network inspect emotion-network -``` - -#### 4. 前端访问404 -```bash -# 检查Nginx配置 -docker-compose exec nginx nginx -t - -# 检查前端容器状态 -docker-compose ps web -``` - -#### 5. API调用失败 -```bash -# 检查网关状态 -curl http://localhost:9000/actuator/health - -# 检查服务注册 -curl http://localhost:8848/nacos/v1/ns/instance/list?serviceName=emotion-ai -``` - -### 性能问题 - -#### 1. 内存不足 -```bash -# 查看内存使用 -free -h -docker stats - -# 解决方案: -# - 增加服务器内存 -# - 调整JVM参数 -# - 减少并发连接数 -``` - -#### 2. 磁盘空间不足 -```bash -# 查看磁盘使用 -df -h - -# 清理Docker资源 -./manage.sh clean -docker system prune -a -``` - -#### 3. 网络延迟 -```bash -# 检查服务间网络 -docker-compose exec gateway ping mysql -docker-compose exec gateway ping redis - -# 优化网络配置 -# 使用自定义网络 -# 调整网络参数 -``` - -## 🔒 安全建议 - -### 1. 密码安全 -- ✅ 修改所有默认密码 -- ✅ 使用强密码策略 -- ✅ 定期更换密码 - -### 2. 网络安全 -- ✅ 配置防火墙规则 -- ✅ 使用HTTPS加密 -- ✅ 限制不必要的端口访问 - -### 3. 数据安全 -- ✅ 定期备份数据 -- ✅ 启用数据库SSL -- ✅ 配置访问控制 - -### 4. 应用安全 -- ✅ 配置JWT密钥 -- ✅ 启用API限流 -- ✅ 监控异常访问 - -## 📞 技术支持 - -### 获取帮助 -1. **查看文档**: 包内的 `DEPLOY.md` 和 `QUICK_START.md` -2. **查看日志**: `./manage.sh logs -f` -3. **健康检查**: `./manage.sh health` -4. **查看版本**: `cat VERSION.txt` - -### 联系方式 -- 📧 技术支持邮箱: support@emotion-museum.com -- 📱 技术支持QQ群: 123456789 -- 🌐 官方网站: https://emotion-museum.com - ---- - -**🎉 恭喜!您已成功部署情绪博物馆项目!** - -**⚠️ 重要提醒:部署完成后请及时修改默认密码和敏感配置!** diff --git a/EmotionMuseum/EmotionMuseum.xcodeproj/project.pbxproj b/EmotionMuseum/EmotionMuseum.xcodeproj/project.pbxproj deleted file mode 100644 index 38fdd5e..0000000 --- a/EmotionMuseum/EmotionMuseum.xcodeproj/project.pbxproj +++ /dev/null @@ -1,575 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 77; - objects = { - -/* Begin PBXContainerItemProxy section */ - 2FB3451A2DFBE273001A8A67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2FB344FF2DFBE270001A8A67 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2FB345062DFBE270001A8A67; - remoteInfo = EmotionMuseum; - }; - 2FB345242DFBE273001A8A67 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 2FB344FF2DFBE270001A8A67 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 2FB345062DFBE270001A8A67; - remoteInfo = EmotionMuseum; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 2FB345072DFBE270001A8A67 /* EmotionMuseum.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EmotionMuseum.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 2FB345192DFBE273001A8A67 /* EmotionMuseumTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EmotionMuseumTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; - 2FB345232DFBE273001A8A67 /* EmotionMuseumUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EmotionMuseumUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFileSystemSynchronizedRootGroup section */ - 2FB345092DFBE270001A8A67 /* EmotionMuseum */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = EmotionMuseum; - sourceTree = ""; - }; - 2FB3451C2DFBE273001A8A67 /* EmotionMuseumTests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = EmotionMuseumTests; - sourceTree = ""; - }; - 2FB345262DFBE273001A8A67 /* EmotionMuseumUITests */ = { - isa = PBXFileSystemSynchronizedRootGroup; - path = EmotionMuseumUITests; - sourceTree = ""; - }; -/* End PBXFileSystemSynchronizedRootGroup section */ - -/* Begin PBXFrameworksBuildPhase section */ - 2FB345042DFBE270001A8A67 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB345162DFBE273001A8A67 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB345202DFBE273001A8A67 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 2FB344FE2DFBE270001A8A67 = { - isa = PBXGroup; - children = ( - 2FB345092DFBE270001A8A67 /* EmotionMuseum */, - 2FB3451C2DFBE273001A8A67 /* EmotionMuseumTests */, - 2FB345262DFBE273001A8A67 /* EmotionMuseumUITests */, - 2FB345082DFBE270001A8A67 /* Products */, - ); - sourceTree = ""; - }; - 2FB345082DFBE270001A8A67 /* Products */ = { - isa = PBXGroup; - children = ( - 2FB345072DFBE270001A8A67 /* EmotionMuseum.app */, - 2FB345192DFBE273001A8A67 /* EmotionMuseumTests.xctest */, - 2FB345232DFBE273001A8A67 /* EmotionMuseumUITests.xctest */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 2FB345062DFBE270001A8A67 /* EmotionMuseum */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2FB3452D2DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseum" */; - buildPhases = ( - 2FB345032DFBE270001A8A67 /* Sources */, - 2FB345042DFBE270001A8A67 /* Frameworks */, - 2FB345052DFBE270001A8A67 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - fileSystemSynchronizedGroups = ( - 2FB345092DFBE270001A8A67 /* EmotionMuseum */, - ); - name = EmotionMuseum; - packageProductDependencies = ( - ); - productName = EmotionMuseum; - productReference = 2FB345072DFBE270001A8A67 /* EmotionMuseum.app */; - productType = "com.apple.product-type.application"; - }; - 2FB345182DFBE273001A8A67 /* EmotionMuseumTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2FB345302DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseumTests" */; - buildPhases = ( - 2FB345152DFBE273001A8A67 /* Sources */, - 2FB345162DFBE273001A8A67 /* Frameworks */, - 2FB345172DFBE273001A8A67 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2FB3451B2DFBE273001A8A67 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 2FB3451C2DFBE273001A8A67 /* EmotionMuseumTests */, - ); - name = EmotionMuseumTests; - packageProductDependencies = ( - ); - productName = EmotionMuseumTests; - productReference = 2FB345192DFBE273001A8A67 /* EmotionMuseumTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 2FB345222DFBE273001A8A67 /* EmotionMuseumUITests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2FB345332DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseumUITests" */; - buildPhases = ( - 2FB3451F2DFBE273001A8A67 /* Sources */, - 2FB345202DFBE273001A8A67 /* Frameworks */, - 2FB345212DFBE273001A8A67 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 2FB345252DFBE273001A8A67 /* PBXTargetDependency */, - ); - fileSystemSynchronizedGroups = ( - 2FB345262DFBE273001A8A67 /* EmotionMuseumUITests */, - ); - name = EmotionMuseumUITests; - packageProductDependencies = ( - ); - productName = EmotionMuseumUITests; - productReference = 2FB345232DFBE273001A8A67 /* EmotionMuseumUITests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 2FB344FF2DFBE270001A8A67 /* Project object */ = { - isa = PBXProject; - attributes = { - BuildIndependentTargetsInParallel = 1; - LastSwiftUpdateCheck = 1640; - LastUpgradeCheck = 1640; - TargetAttributes = { - 2FB345062DFBE270001A8A67 = { - CreatedOnToolsVersion = 16.4; - }; - 2FB345182DFBE273001A8A67 = { - CreatedOnToolsVersion = 16.4; - TestTargetID = 2FB345062DFBE270001A8A67; - }; - 2FB345222DFBE273001A8A67 = { - CreatedOnToolsVersion = 16.4; - TestTargetID = 2FB345062DFBE270001A8A67; - }; - }; - }; - buildConfigurationList = 2FB345022DFBE270001A8A67 /* Build configuration list for PBXProject "EmotionMuseum" */; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 2FB344FE2DFBE270001A8A67; - minimizedProjectReferenceProxies = 1; - preferredProjectObjectVersion = 77; - productRefGroup = 2FB345082DFBE270001A8A67 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 2FB345062DFBE270001A8A67 /* EmotionMuseum */, - 2FB345182DFBE273001A8A67 /* EmotionMuseumTests */, - 2FB345222DFBE273001A8A67 /* EmotionMuseumUITests */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2FB345052DFBE270001A8A67 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB345172DFBE273001A8A67 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB345212DFBE273001A8A67 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 2FB345032DFBE270001A8A67 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB345152DFBE273001A8A67 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 2FB3451F2DFBE273001A8A67 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 2FB3451B2DFBE273001A8A67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2FB345062DFBE270001A8A67 /* EmotionMuseum */; - targetProxy = 2FB3451A2DFBE273001A8A67 /* PBXContainerItemProxy */; - }; - 2FB345252DFBE273001A8A67 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 2FB345062DFBE270001A8A67 /* EmotionMuseum */; - targetProxy = 2FB345242DFBE273001A8A67 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin XCBuildConfiguration section */ - 2FB3452B2DFBE273001A8A67 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_TEAM = JA6T4PANZM; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.5; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - }; - name = Debug; - }; - 2FB3452C2DFBE273001A8A67 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_TEAM = JA6T4PANZM; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_USER_SCRIPT_SANDBOXING = YES; - GCC_C_LANGUAGE_STANDARD = gnu17; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 18.5; - LOCALIZATION_PREFERS_STRING_CATALOGS = YES; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 2FB3452E2DFBE273001A8A67 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - ENABLE_PREVIEWS = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_LSApplicationQueriesSchemes = iosamap; - INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; - INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; - INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseum; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 2FB3452F2DFBE273001A8A67 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - ENABLE_PREVIEWS = YES; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_LSApplicationQueriesSchemes = iosamap; - INFOPLIST_KEY_NSLocationAlwaysAndWhenInUseUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_NSLocationAlwaysUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_NSLocationWhenInUseUsageDescription = "需要使用您的位置信息来为您提供地图服务"; - INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; - INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; - INFOPLIST_KEY_UILaunchScreen_Generation = YES; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseum; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; - 2FB345312DFBE273001A8A67 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = EmotionMuseumTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 18.5; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseumTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EmotionMuseum.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/EmotionMuseum"; - }; - name = Debug; - }; - 2FB345322DFBE273001A8A67 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - BUNDLE_LOADER = "$(TEST_HOST)"; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = EmotionMuseumTests/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 18.5; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseumTests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EmotionMuseum.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/EmotionMuseum"; - }; - name = Release; - }; - 2FB345342DFBE273001A8A67 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = EmotionMuseumUITests/Info.plist; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseumUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = EmotionMuseum; - }; - name = Debug; - }; - 2FB345352DFBE273001A8A67 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = JA6T4PANZM; - GENERATE_INFOPLIST_FILE = NO; - INFOPLIST_FILE = EmotionMuseumUITests/Info.plist; - MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.dolphin.EmotionMuseumUITests; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_EMIT_LOC_STRINGS = NO; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - TEST_TARGET_NAME = EmotionMuseum; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2FB345022DFBE270001A8A67 /* Build configuration list for PBXProject "EmotionMuseum" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FB3452B2DFBE273001A8A67 /* Debug */, - 2FB3452C2DFBE273001A8A67 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2FB3452D2DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseum" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FB3452E2DFBE273001A8A67 /* Debug */, - 2FB3452F2DFBE273001A8A67 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2FB345302DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseumTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FB345312DFBE273001A8A67 /* Debug */, - 2FB345322DFBE273001A8A67 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 2FB345332DFBE273001A8A67 /* Build configuration list for PBXNativeTarget "EmotionMuseumUITests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FB345342DFBE273001A8A67 /* Debug */, - 2FB345352DFBE273001A8A67 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 2FB344FF2DFBE270001A8A67 /* Project object */; -} diff --git a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings deleted file mode 100644 index 0c67376..0000000 --- a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcuserdata/huazhongmin.xcuserdatad/WorkspaceSettings.xcsettings b/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcuserdata/huazhongmin.xcuserdatad/WorkspaceSettings.xcsettings deleted file mode 100644 index bbfef02..0000000 --- a/EmotionMuseum/EmotionMuseum.xcodeproj/project.xcworkspace/xcuserdata/huazhongmin.xcuserdatad/WorkspaceSettings.xcsettings +++ /dev/null @@ -1,14 +0,0 @@ - - - - - BuildLocationStyle - UseAppPreferences - CustomBuildLocationType - RelativeToDerivedData - DerivedDataLocationStyle - Default - ShowSharedSchemesAutomaticallyEnabled - - - diff --git a/EmotionMuseum/EmotionMuseum.xcodeproj/xcuserdata/huazhongmin.xcuserdatad/xcschemes/xcschememanagement.plist b/EmotionMuseum/EmotionMuseum.xcodeproj/xcuserdata/huazhongmin.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index 63d2463..0000000 --- a/EmotionMuseum/EmotionMuseum.xcodeproj/xcuserdata/huazhongmin.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - SchemeUserState - - EmotionMuseum.xcscheme_^#shared#^_ - - orderHint - 0 - - - - diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/AccentColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index cf2908c..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "0.573", - "red" : "0.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "0.678", - "red" : "0.196" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/AppIcon.appiconset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 2305880..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "tinted" - } - ], - "idiom" : "universal", - "platform" : "ios", - "size" : "1024x1024" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/BackgroundColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/BackgroundColor.colorset/Contents.json deleted file mode 100644 index 67bb90d..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/BackgroundColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.118", - "green" : "0.118", - "red" : "0.118" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/BorderColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/BorderColor.colorset/Contents.json deleted file mode 100644 index ac0b1eb..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/BorderColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.700", - "green" : "0.700", - "red" : "0.700" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.600", - "green" : "0.600", - "red" : "0.600" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/CardBackground.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/CardBackground.colorset/Contents.json deleted file mode 100644 index 65cc941..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/CardBackground.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.196", - "green" : "0.196", - "red" : "0.196" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/DividerColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/DividerColor.colorset/Contents.json deleted file mode 100644 index 9e7fef4..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/DividerColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.788", - "green" : "0.780", - "red" : "0.776" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.329", - "green" : "0.310", - "red" : "0.298" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/ErrorColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/ErrorColor.colorset/Contents.json deleted file mode 100644 index d74a7cb..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/ErrorColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.300", - "green" : "0.200", - "red" : "0.900" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.400", - "green" : "0.300", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryColor.colorset/Contents.json deleted file mode 100644 index f533814..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.929", - "green" : "0.569", - "red" : "0.416" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.929", - "green" : "0.569", - "red" : "0.416" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryText.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryText.colorset/Contents.json deleted file mode 100644 index ff1f1ac..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/PrimaryText.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.000", - "green" : "0.000", - "red" : "0.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "1.000", - "green" : "1.000", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryColor.colorset/Contents.json deleted file mode 100644 index 885ed56..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.980", - "green" : "0.780", - "red" : "0.310" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.780", - "green" : "0.580", - "red" : "0.210" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryText.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryText.colorset/Contents.json deleted file mode 100644 index 9419960..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SecondaryText.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.600", - "green" : "0.600", - "red" : "0.600" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.780", - "green" : "0.780", - "red" : "0.780" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonColor.colorset/Contents.json deleted file mode 100644 index 3eeea39..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.925", - "green" : "0.925", - "red" : "0.925" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.294", - "green" : "0.294", - "red" : "0.294" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonHighlight.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonHighlight.colorset/Contents.json deleted file mode 100644 index 545bc7a..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SkeletonHighlight.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.980", - "green" : "0.980", - "red" : "0.980" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.392", - "green" : "0.392", - "red" : "0.392" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SuccessColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SuccessColor.colorset/Contents.json deleted file mode 100644 index 47441ec..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SuccessColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.380", - "green" : "0.780", - "red" : "0.200" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.480", - "green" : "0.880", - "red" : "0.300" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SurfaceBackground.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/SurfaceBackground.colorset/Contents.json deleted file mode 100644 index c72e2c4..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/SurfaceBackground.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.961", - "green" : "0.961", - "red" : "0.961" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.173", - "green" : "0.169", - "red" : "0.165" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/TertiaryText.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/TertiaryText.colorset/Contents.json deleted file mode 100644 index ac0b1eb..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/TertiaryText.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.700", - "green" : "0.700", - "red" : "0.700" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.600", - "green" : "0.600", - "red" : "0.600" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/Assets.xcassets/WarningColor.colorset/Contents.json b/EmotionMuseum/EmotionMuseum/Assets.xcassets/WarningColor.colorset/Contents.json deleted file mode 100644 index 274039c..0000000 --- a/EmotionMuseum/EmotionMuseum/Assets.xcassets/WarningColor.colorset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "colors" : [ - { - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.200", - "green" : "0.700", - "red" : "1.000" - } - }, - "idiom" : "universal" - }, - { - "appearances" : [ - { - "appearance" : "luminosity", - "value" : "dark" - } - ], - "color" : { - "color-space" : "srgb", - "components" : { - "alpha" : "1.000", - "blue" : "0.300", - "green" : "0.800", - "red" : "1.000" - } - }, - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/EmotionMuseum/EmotionMuseum/ContentView.swift b/EmotionMuseum/EmotionMuseum/ContentView.swift deleted file mode 100644 index 653d7e3..0000000 --- a/EmotionMuseum/EmotionMuseum/ContentView.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// ContentView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI -import CoreData - -struct ContentView: View { - @EnvironmentObject var themeManager: ThemeManager - @EnvironmentObject var mockDataManager: MockDataManager - @EnvironmentObject var navigationManager: NavigationManager - @Environment(\.managedObjectContext) private var viewContext - - var body: some View { - ZStack { - // 主要内容 - TabView(selection: $navigationManager.currentTab) { - RecordView() - .tabItem { - Image(systemName: "heart.text.square") - Text("记录") - } - .tag(MainTab.record) - - GrowthView() - .tabItem { - Image(systemName: "leaf.arrow.circlepath") - Text("治愈") - } - .tag(MainTab.growth) - - ExploreView() - .tabItem { - Image(systemName: "map") - Text("探索") - } - .tag(MainTab.explore) - - UniverseView() - .tabItem { - Image(systemName: "person.circle") - Text("我的") - } - .tag(MainTab.insight) - } - .accentColor(Color("AccentColor")) - - // 全局加载覆盖层 - if navigationManager.isLoading { - LoadingOverlay(message: navigationManager.loadingMessage) - } - } - .preferredColorScheme(themeManager.isDarkMode ? .dark : .light) - .onAppear { - // 初始化应用状态 - setupInitialState() - } - } - - private func setupInitialState() { - // 设置初始状态 - navigationManager.currentTab = .record - } -} - -#Preview { - ContentView() - .environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) - .environmentObject(ThemeManager()) - .environmentObject(MockDataManager.shared) - .environmentObject(NavigationManager()) -} diff --git a/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/.xccurrentversion b/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/.xccurrentversion deleted file mode 100644 index 9fd55d4..0000000 --- a/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/.xccurrentversion +++ /dev/null @@ -1,8 +0,0 @@ - - - - - _XCCurrentVersionName - EmotionMuseum.xcdatamodel - - diff --git a/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/EmotionMuseum.xcdatamodel/contents b/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/EmotionMuseum.xcdatamodel/contents deleted file mode 100644 index 9ed2921..0000000 --- a/EmotionMuseum/EmotionMuseum/EmotionMuseum.xcdatamodeld/EmotionMuseum.xcdatamodel/contents +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/EmotionMuseumApp.swift b/EmotionMuseum/EmotionMuseum/EmotionMuseumApp.swift deleted file mode 100644 index f3dd733..0000000 --- a/EmotionMuseum/EmotionMuseum/EmotionMuseumApp.swift +++ /dev/null @@ -1,31 +0,0 @@ -// -// EmotionMuseumApp.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -@main -struct EmotionMuseumApp: App { - let persistenceController = PersistenceController.shared - @StateObject private var navigationManager = NavigationManager() - @StateObject private var themeManager = ThemeManager() - @StateObject private var mockDataManager = MockDataManager.shared - - init() { - // 初始化高德地图SDK - MapManager.shared.configure() - } - - var body: some Scene { - WindowGroup { - ContentView() - .environment(\.managedObjectContext, persistenceController.container.viewContext) - .environmentObject(navigationManager) - .environmentObject(themeManager) - .environmentObject(mockDataManager) - } - } -} diff --git a/EmotionMuseum/EmotionMuseum/Models/ChakraType.swift b/EmotionMuseum/EmotionMuseum/Models/ChakraType.swift deleted file mode 100644 index 26fadfd..0000000 --- a/EmotionMuseum/EmotionMuseum/Models/ChakraType.swift +++ /dev/null @@ -1,189 +0,0 @@ -// -// ChakraType.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -enum ChakraType: String, CaseIterable { - case root = "海底轮" - case sacral = "脐轮" - case solarPlexus = "太阳轮" - case heart = "心轮" - case throat = "喉轮" - case thirdEye = "眉心轮" - case crown = "顶轮" - - var color: Color { - switch self { - case .root: - return .red - case .sacral: - return .orange - case .solarPlexus: - return .yellow - case .heart: - return .green - case .throat: - return .blue - case .thirdEye: - return .indigo - case .crown: - return .purple - } - } - - var position: CGPoint { - switch self { - case .root: - return CGPoint(x: 0.5, y: 0.9) - case .sacral: - return CGPoint(x: 0.5, y: 0.8) - case .solarPlexus: - return CGPoint(x: 0.5, y: 0.65) - case .heart: - return CGPoint(x: 0.5, y: 0.5) - case .throat: - return CGPoint(x: 0.5, y: 0.35) - case .thirdEye: - return CGPoint(x: 0.5, y: 0.2) - case .crown: - return CGPoint(x: 0.5, y: 0.05) - } - } - - var description: String { - switch self { - case .root: - return "安全感、稳定性、生存本能" - case .sacral: - return "创造力、性能量、情感流动" - case .solarPlexus: - return "个人力量、自信、意志力" - case .heart: - return "爱、同情心、人际关系" - case .throat: - return "沟通、表达、真实性" - case .thirdEye: - return "直觉、洞察力、智慧" - case .crown: - return "灵性连接、觉知、超越" - } - } - - var audioFileName: String { - switch self { - case .root: - return "root_chakra_healing" - case .sacral: - return "sacral_chakra_healing" - case .solarPlexus: - return "solar_plexus_chakra_healing" - case .heart: - return "heart_chakra_healing" - case .throat: - return "throat_chakra_healing" - case .thirdEye: - return "third_eye_chakra_healing" - case .crown: - return "crown_chakra_healing" - } - } - - var frequency: String { - switch self { - case .root: - return "396 Hz" - case .sacral: - return "417 Hz" - case .solarPlexus: - return "528 Hz" - case .heart: - return "639 Hz" - case .throat: - return "741 Hz" - case .thirdEye: - return "852 Hz" - case .crown: - return "963 Hz" - } - } - - var mantra: String { - switch self { - case .root: - return "LAM" - case .sacral: - return "VAM" - case .solarPlexus: - return "RAM" - case .heart: - return "YAM" - case .throat: - return "HAM" - case .thirdEye: - return "OM" - case .crown: - return "AH" - } - } - - var element: String { - switch self { - case .root: - return "土" - case .sacral: - return "水" - case .solarPlexus: - return "火" - case .heart: - return "风" - case .throat: - return "空" - case .thirdEye: - return "光" - case .crown: - return "思想" - } - } - - var keywords: [String] { - switch self { - case .root: - return ["安全感", "稳定", "生存", "根基", "物质"] - case .sacral: - return ["创造力", "性能量", "情感", "流动", "享受"] - case .solarPlexus: - return ["自信", "力量", "意志", "控制", "个性"] - case .heart: - return ["爱", "同情", "宽恕", "连接", "和谐"] - case .throat: - return ["表达", "沟通", "真实", "创意", "声音"] - case .thirdEye: - return ["直觉", "洞察", "智慧", "想象", "觉知"] - case .crown: - return ["灵性", "觉醒", "超越", "统一", "神圣"] - } - } - - var healingBenefits: [String] { - switch self { - case .root: - return ["增强安全感", "改善焦虑", "提升专注力", "增强体力"] - case .sacral: - return ["激发创造力", "改善人际关系", "增强活力", "平衡情绪"] - case .solarPlexus: - return ["提升自信", "增强意志力", "改善消化", "释放压力"] - case .heart: - return ["开放心扉", "增强同理心", "改善关系", "释放怨恨"] - case .throat: - return ["提升表达能力", "增强创造力", "改善沟通", "释放恐惧"] - case .thirdEye: - return ["增强直觉", "提升洞察力", "改善专注", "开发智慧"] - case .crown: - return ["提升觉知", "增强灵性连接", "获得内在平静", "超越自我"] - } - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Models/DataModels.swift b/EmotionMuseum/EmotionMuseum/Models/DataModels.swift deleted file mode 100644 index eb18881..0000000 --- a/EmotionMuseum/EmotionMuseum/Models/DataModels.swift +++ /dev/null @@ -1,1081 +0,0 @@ -// -// DataModels.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import Foundation -import CoreLocation -import SwiftUI - -// MARK: - 用户相关模型 - -struct User: Identifiable, Codable { - let id: UUID - let username: String - let email: String - let avatar: String? - var profile: UserProfile - let createdAt: Date - var lastActiveAt: Date - - init(id: UUID = UUID(), username: String, email: String, avatar: String? = nil, profile: UserProfile, createdAt: Date = Date(), lastActiveAt: Date = Date()) { - self.id = id - self.username = username - self.email = email - self.avatar = avatar - self.profile = profile - self.createdAt = createdAt - self.lastActiveAt = lastActiveAt - } -} - -struct UserProfile: Codable { - var nickname: String - var birthDate: Date? - var location: String? - var bio: String? - var memberLevel: MemberLevel - var totalDays: Int - var growthStats: GrowthStats - - init(nickname: String, birthDate: Date? = nil, location: String? = nil, bio: String? = nil, memberLevel: MemberLevel = .free, totalDays: Int = 0, growthStats: GrowthStats = GrowthStats()) { - self.nickname = nickname - self.birthDate = birthDate - self.location = location - self.bio = bio - self.memberLevel = memberLevel - self.totalDays = totalDays - self.growthStats = growthStats - } -} - -enum MemberLevel: String, Codable, CaseIterable { - case free = "免费会员" - case premium = "高级会员" - case vip = "VIP会员" - - var color: Color { - switch self { - case .free: return .gray - case .premium: return .blue - case .vip: return .orange - } - } -} - -struct GrowthStats: Codable { - var selfAwareness: Float // 自我感知 0-100 - var emotionalResilience: Float // 情绪韧性 0-100 - var actionPower: Float // 行动力 0-100 - var empathy: Float // 共情力 0-100 - var lifeEnthusiasm: Float // 生活热度 0-100 - - init(selfAwareness: Float = 50, emotionalResilience: Float = 50, actionPower: Float = 50, empathy: Float = 50, lifeEnthusiasm: Float = 50) { - self.selfAwareness = selfAwareness - self.emotionalResilience = emotionalResilience - self.actionPower = actionPower - self.empathy = empathy - self.lifeEnthusiasm = lifeEnthusiasm - } - - var average: Float { - (selfAwareness + emotionalResilience + actionPower + empathy + lifeEnthusiasm) / 5 - } - - var dataPoints: [(String, Float)] { - [ - ("自我感知", selfAwareness), - ("情绪韧性", emotionalResilience), - ("行动力", actionPower), - ("共情力", empathy), - ("生活热度", lifeEnthusiasm) - ] - } -} - -// MARK: - 对话系统模型 - -struct Conversation: Identifiable, Codable { - let id: UUID - let userId: UUID - var title: String - var messages: [Message] - let startTime: Date - var endTime: Date? - var emotionAnalysis: EmotionAnalysis? - var summary: String? - var tags: [String] - - init(id: UUID = UUID(), userId: UUID, title: String, messages: [Message] = [], startTime: Date = Date(), endTime: Date? = nil, emotionAnalysis: EmotionAnalysis? = nil, summary: String? = nil, tags: [String] = []) { - self.id = id - self.userId = userId - self.title = title - self.messages = messages - self.startTime = startTime - self.endTime = endTime - self.emotionAnalysis = emotionAnalysis - self.summary = summary - self.tags = tags - } - - var duration: TimeInterval? { - guard let endTime = endTime else { return nil } - return endTime.timeIntervalSince(startTime) - } - - var lastMessage: Message? { - messages.last - } - - var messageCount: Int { - messages.count - } -} - -struct Message: Identifiable, Codable { - let id: UUID - let conversationId: UUID - let content: String - let type: MessageType - let sender: MessageSender - let timestamp: Date - var emotionScore: Float? - var isRead: Bool - - init(id: UUID = UUID(), conversationId: UUID, content: String, type: MessageType, sender: MessageSender, timestamp: Date = Date(), emotionScore: Float? = nil, isRead: Bool = true) { - self.id = id - self.conversationId = conversationId - self.content = content - self.type = type - self.sender = sender - self.timestamp = timestamp - self.emotionScore = emotionScore - self.isRead = isRead - } -} - -enum MessageType: String, Codable, CaseIterable { - case text = "文字" - case voice = "语音" - case image = "图片" - case system = "系统" - - var icon: String { - switch self { - case .text: return "text.bubble" - case .voice: return "mic.circle" - case .image: return "photo" - case .system: return "gear" - } - } -} - -enum MessageSender: String, Codable { - case user = "用户" - case ai = "AI助手" -} - -struct EmotionAnalysis: Codable { - let primaryEmotion: EmotionType - let emotionIntensity: Float // 0-1 - let emotionTrend: EmotionTrend - let keywords: [String] - let aiInsights: String - let confidence: Float // 分析置信度 0-1 - - init(primaryEmotion: EmotionType, emotionIntensity: Float, emotionTrend: EmotionTrend, keywords: [String], aiInsights: String, confidence: Float = 0.8) { - self.primaryEmotion = primaryEmotion - self.emotionIntensity = emotionIntensity - self.emotionTrend = emotionTrend - self.keywords = keywords - self.aiInsights = aiInsights - self.confidence = confidence - } -} - -enum EmotionType: String, Codable, CaseIterable { - case joy = "喜悦" - case sadness = "悲伤" - case anger = "愤怒" - case fear = "恐惧" - case surprise = "惊讶" - case neutral = "平静" - case anxiety = "焦虑" - case excitement = "兴奋" - case contentment = "满足" - case confusion = "困惑" - case melancholy = "忧郁" // 添加缺失的枚举值 - - var emoji: String { - switch self { - case .joy: return "😊" - case .sadness: return "😢" - case .anger: return "😡" - case .fear: return "😨" - case .surprise: return "😲" - case .neutral: return "😐" - case .anxiety: return "😰" - case .excitement: return "🤩" - case .contentment: return "😌" - case .confusion: return "🤔" - case .melancholy: return "😔" - } - } - - var color: Color { - switch self { - case .joy: return .yellow - case .sadness: return .blue - case .anger: return .red - case .fear: return .purple - case .surprise: return .orange - case .neutral: return .gray - case .anxiety: return .pink - case .excitement: return .green - case .contentment: return .mint - case .confusion: return .brown - case .melancholy: return .indigo - } - } - - var displayName: String { // 添加displayName属性 - rawValue - } -} - -enum EmotionTrend: String, Codable, CaseIterable { - case improving = "改善中" - case stable = "稳定" - case declining = "下降中" - case fluctuating = "波动中" - - var icon: String { - switch self { - case .improving: return "arrow.up.circle" - case .stable: return "minus.circle" - case .declining: return "arrow.down.circle" - case .fluctuating: return "arrow.up.arrow.down.circle" - } - } - - var color: Color { - switch self { - case .improving: return .green - case .stable: return .blue - case .declining: return .red - case .fluctuating: return .orange - } - } -} - -// MARK: - 情绪记录模型 - -struct EmotionRecord: Identifiable, Codable { - let id: UUID - let userId: UUID - let date: Date - let emotionType: EmotionType - let intensity: Float // 0-1 - let context: String - let triggers: [String] // 触发因素 - let location: String? - let weather: String? - let notes: String? - - init(id: UUID = UUID(), userId: UUID, date: Date = Date(), emotionType: EmotionType, intensity: Float, context: String, triggers: [String] = [], location: String? = nil, weather: String? = nil, notes: String? = nil) { - self.id = id - self.userId = userId - self.date = date - self.emotionType = emotionType - self.intensity = intensity - self.context = context - self.triggers = triggers - self.location = location - self.weather = weather - self.notes = notes - } -} - -// MARK: - 成长课题模型 - -struct GrowthTopic: Identifiable, Codable, Hashable { - let id: UUID - let title: String - let description: String - let category: TopicCategory - let difficulty: Difficulty - var progress: Float // 0-1 - var level: Int - let totalLevels: Int - var isUnlocked: Bool - var completedAt: Date? - var rewards: [Reward] - var interactions: [TopicInteraction] - let estimatedDuration: TimeInterval // 预估完成时间(秒) - let prerequisites: [UUID] // 前置课题ID - var content: TopicContent // 添加内容属性 - - init(id: UUID = UUID(), title: String, description: String, category: TopicCategory, difficulty: Difficulty, progress: Float = 0, level: Int = 1, totalLevels: Int = 5, isUnlocked: Bool = true, completedAt: Date? = nil, rewards: [Reward] = [], interactions: [TopicInteraction] = [], estimatedDuration: TimeInterval = 3600, prerequisites: [UUID] = [], content: TopicContent? = nil) { - self.id = id - self.title = title - self.description = description - self.category = category - self.difficulty = difficulty - self.progress = progress - self.level = level - self.totalLevels = totalLevels - self.isUnlocked = isUnlocked - self.completedAt = completedAt - self.rewards = rewards - self.interactions = interactions - self.estimatedDuration = estimatedDuration - self.prerequisites = prerequisites - self.content = content ?? TopicContent() // 提供默认值 - } - - var isCompleted: Bool { - progress >= 1.0 - } - - var progressPercentage: Int { - Int(progress * 100) - } - - static func == (lhs: GrowthTopic, rhs: GrowthTopic) -> Bool { - lhs.id == rhs.id - } - - func hash(into hasher: inout Hasher) { - hasher.combine(id) - } -} - -enum TopicCategory: String, Codable, CaseIterable { - case selfAwareness = "自我认知" - case emotionRegulation = "情绪调节" - case socialSkills = "社交技能" - case stressManagement = "压力管理" - case lifeGoals = "人生目标" - case mindfulness = "正念冥想" - case relationships = "人际关系" - case creativity = "创造力" - - var icon: String { - switch self { - case .selfAwareness: return "person.circle" - case .emotionRegulation: return "heart.circle" - case .socialSkills: return "person.2.circle" - case .stressManagement: return "leaf.circle" - case .lifeGoals: return "target" - case .mindfulness: return "brain.head.profile" - case .relationships: return "heart.text.square" - case .creativity: return "paintbrush.pointed" - } - } - - var color: Color { - switch self { - case .selfAwareness: return .blue - case .emotionRegulation: return .pink - case .socialSkills: return .green - case .stressManagement: return .purple - case .lifeGoals: return .orange - case .mindfulness: return .indigo - case .relationships: return .red - case .creativity: return .yellow - } - } -} - -enum Difficulty: String, Codable, CaseIterable { - case beginner = "初级" - case intermediate = "中级" - case advanced = "高级" - case expert = "专家" - - var color: Color { - switch self { - case .beginner: return .green - case .intermediate: return .blue - case .advanced: return .orange - case .expert: return .red - } - } - - var stars: Int { - switch self { - case .beginner: return 1 - case .intermediate: return 2 - case .advanced: return 3 - case .expert: return 4 - } - } -} - -struct TopicInteraction: Identifiable, Codable { - let id: UUID - let topicId: UUID - let type: InteractionType - let title: String - let content: String - let completedAt: Date? - var reward: Reward? - let duration: TimeInterval? - var rating: Int? // 1-5星评分 - - init(id: UUID = UUID(), topicId: UUID, type: InteractionType, title: String, content: String, completedAt: Date? = nil, reward: Reward? = nil, duration: TimeInterval? = nil, rating: Int? = nil) { - self.id = id - self.topicId = topicId - self.type = type - self.title = title - self.content = content - self.completedAt = completedAt - self.reward = reward - self.duration = duration - self.rating = rating - } - - var isCompleted: Bool { - completedAt != nil - } -} - -enum InteractionType: String, Codable, CaseIterable { - case aiChat = "AI对话" - case article = "知识文章" - case exercise = "练习活动" - case reflection = "反思日记" - case meditation = "冥想练习" - case quiz = "小测验" - - var icon: String { - switch self { - case .aiChat: return "message.circle" - case .article: return "doc.text" - case .exercise: return "figure.walk" - case .reflection: return "book.circle" - case .meditation: return "leaf" - case .quiz: return "questionmark.circle" - } - } - - var color: Color { - switch self { - case .aiChat: return .blue - case .article: return .green - case .exercise: return .orange - case .reflection: return .purple - case .meditation: return .mint - case .quiz: return .pink - } - } -} - -// MARK: - 奖励系统模型 - -struct Reward: Identifiable, Codable { - let id: UUID - let type: RewardType - let title: String - let description: String - let value: Int // 积分值或其他数值 - let rarity: RewardRarity - let earnedAt: Date - var isNew: Bool // 是否为新获得 - - init(id: UUID = UUID(), type: RewardType, title: String, description: String, value: Int, rarity: RewardRarity, earnedAt: Date = Date(), isNew: Bool = true) { - self.id = id - self.type = type - self.title = title - self.description = description - self.value = value - self.rarity = rarity - self.earnedAt = earnedAt - self.isNew = isNew - } -} - -enum RewardType: String, Codable, CaseIterable { - case points = "积分" - case badge = "徽章" - case title = "称号" - case skin = "皮肤" - case item = "道具" - - var icon: String { - switch self { - case .points: return "star.circle" - case .badge: return "shield.circle" - case .title: return "crown.circle" - case .skin: return "paintpalette.circle" - case .item: return "gift.circle" - } - } -} - -enum RewardRarity: String, Codable, CaseIterable { - case common = "普通" - case rare = "稀有" - case epic = "史诗" - case legendary = "传说" - - var color: Color { - switch self { - case .common: return .gray - case .rare: return .blue - case .epic: return .purple - case .legendary: return .orange - } - } -} - -// MARK: - 地图和位置模型 - -struct Coordinate: Codable { - let latitude: Double - let longitude: Double - - var clLocationCoordinate2D: CLLocationCoordinate2D { - CLLocationCoordinate2D(latitude: latitude, longitude: longitude) - } - - init(latitude: Double, longitude: Double) { - self.latitude = latitude - self.longitude = longitude - } - - init(from coordinate: CLLocationCoordinate2D) { - self.latitude = coordinate.latitude - self.longitude = coordinate.longitude - } -} - -struct LocationPin: Identifiable, Codable, Hashable { - let id: UUID - let coordinate: Coordinate - let title: String - let description: String - let type: LocationType - let emotionTags: [EmotionType] - let photos: [String] // 图片URL数组 - let createdBy: UUID? - let createdAt: Date - var likes: Int - var visits: Int - let address: String? - let category: LocationCategory - var isBookmarked: Bool - - // 添加缺失的属性 - var name: String { title } // 提供name属性作为title的别名 - var tags: [String] { emotionTags.map { $0.rawValue } } // 提供tags属性 - var visitCount: Int { visits } // 提供visitCount属性作为visits的别名 - var lastVisitAt: Date? // 最后访问时间 - var emotion: EmotionType { emotionTags.first ?? .neutral } // 主要情绪 - - init(id: UUID = UUID(), coordinate: Coordinate, title: String, description: String, type: LocationType, emotionTags: [EmotionType] = [], photos: [String] = [], createdBy: UUID? = nil, createdAt: Date = Date(), likes: Int = 0, visits: Int = 0, address: String? = nil, category: LocationCategory = .other, isBookmarked: Bool = false, lastVisitAt: Date? = nil) { - self.id = id - self.coordinate = coordinate - self.title = title - self.description = description - self.type = type - self.emotionTags = emotionTags - self.photos = photos - self.createdBy = createdBy - self.createdAt = createdAt - self.likes = likes - self.visits = visits - self.address = address - self.category = category - self.isBookmarked = isBookmarked - self.lastVisitAt = lastVisitAt - } - - static func == (lhs: LocationPin, rhs: LocationPin) -> Bool { - lhs.id == rhs.id - } - - func hash(into hasher: inout Hasher) { - hasher.combine(id) - } -} - -enum LocationType: String, Codable, CaseIterable { - case personal = "个人收藏" - case aiRecommended = "AI推荐" - case community = "社区分享" - case popular = "热门地点" - - var icon: String { - switch self { - case .personal: return "heart.fill" - case .aiRecommended: return "brain.head.profile" - case .community: return "person.3.fill" - case .popular: return "flame.fill" - } - } - - var color: Color { - switch self { - case .personal: return .red - case .aiRecommended: return .blue - case .community: return .green - case .popular: return .orange - } - } -} - -enum LocationCategory: String, Codable, CaseIterable { - case park = "公园" - case cafe = "咖啡厅" - case museum = "博物馆" - case library = "图书馆" - case beach = "海滩" - case mountain = "山景" - case temple = "寺庙" - case garden = "花园" - case lake = "湖泊" - case other = "其他" - // 添加缺失的枚举值 - case restaurant = "餐厅" - case gym = "健身房" - case lookout = "观景台" - case bookstore = "书店" - case bar = "酒吧" - case shop = "商店" - case home = "家" - case work = "工作" - case school = "学校" - case shopping = "购物" - case travel = "旅行" - case nature = "自然" - case entertainment = "娱乐" - - var icon: String { - switch self { - case .park: return "tree" - case .cafe: return "cup.and.saucer" - case .museum: return "building.columns" - case .library: return "books.vertical" - case .beach: return "water.waves" - case .mountain: return "mountain.2" - case .temple: return "building" - case .garden: return "leaf" - case .lake: return "drop" - case .other: return "mappin" - case .restaurant: return "fork.knife" - case .gym: return "dumbbell" - case .lookout: return "binoculars" - case .bookstore: return "book" - case .bar: return "wineglass" - case .shop: return "bag" - case .home: return "house" - case .work: return "briefcase" - case .school: return "graduationcap" - case .shopping: return "cart" - case .travel: return "airplane" - case .nature: return "tree.fill" - case .entertainment: return "tv" - } - } -} - -// MARK: - 社区模型 - -struct CommunityPost: Identifiable, Codable, Hashable { - let id: UUID - let userId: UUID - let locationId: UUID? - let content: String - let photos: [String] - let tags: [String] - var likes: Int - var comments: [Comment] - let createdAt: Date - var isPrivate: Bool - var viewCount: Int - let type: PostType - var isLikedByCurrentUser: Bool - var authorName: String // 添加作者名称属性 - - init(id: UUID = UUID(), userId: UUID, locationId: UUID? = nil, content: String, photos: [String] = [], tags: [String] = [], likes: Int = 0, comments: [Comment] = [], createdAt: Date = Date(), isPrivate: Bool = false, viewCount: Int = 0, type: PostType = .general, isLikedByCurrentUser: Bool = false, authorName: String = "匿名用户") { - self.id = id - self.userId = userId - self.locationId = locationId - self.content = content - self.photos = photos - self.tags = tags - self.likes = likes - self.comments = comments - self.createdAt = createdAt - self.isPrivate = isPrivate - self.viewCount = viewCount - self.type = type - self.isLikedByCurrentUser = isLikedByCurrentUser - self.authorName = authorName - } - - var commentCount: Int { - comments.count - } - - static func == (lhs: CommunityPost, rhs: CommunityPost) -> Bool { - lhs.id == rhs.id - } - - func hash(into hasher: inout Hasher) { - hasher.combine(id) - } -} - -enum PostType: String, Codable, CaseIterable { - case general = "一般分享" - case emotion = "情绪记录" - case growth = "成长感悟" - case location = "地点推荐" - case achievement = "成就展示" - - var icon: String { - switch self { - case .general: return "text.bubble" - case .emotion: return "heart" - case .growth: return "arrow.up.circle" - case .location: return "mappin" - case .achievement: return "trophy" - } - } - - var color: Color { - switch self { - case .general: return .blue - case .emotion: return .pink - case .growth: return .green - case .location: return .orange - case .achievement: return .yellow - } - } -} - -struct Comment: Identifiable, Codable { - let id: UUID - let postId: UUID - let userId: UUID - let content: String - let createdAt: Date - var likes: Int - let replyToId: UUID? // 回复的评论ID - var isLikedByCurrentUser: Bool - - init(id: UUID = UUID(), postId: UUID, userId: UUID, content: String, createdAt: Date = Date(), likes: Int = 0, replyToId: UUID? = nil, isLikedByCurrentUser: Bool = false) { - self.id = id - self.postId = postId - self.userId = userId - self.content = content - self.createdAt = createdAt - self.likes = likes - self.replyToId = replyToId - self.isLikedByCurrentUser = isLikedByCurrentUser - } -} - -// MARK: - 成就系统模型 - -struct Achievement: Identifiable, Codable { - let id: UUID - let title: String - let description: String - let category: AchievementCategory - let icon: String - let rarity: RewardRarity - let requirement: AchievementRequirement - var progress: Int - let targetValue: Int - var unlockedAt: Date? - var isHidden: Bool // 是否为隐藏成就 - - init(id: UUID = UUID(), title: String, description: String, category: AchievementCategory, icon: String, rarity: RewardRarity, requirement: AchievementRequirement, progress: Int = 0, targetValue: Int, unlockedAt: Date? = nil, isHidden: Bool = false) { - self.id = id - self.title = title - self.description = description - self.category = category - self.icon = icon - self.rarity = rarity - self.requirement = requirement - self.progress = progress - self.targetValue = targetValue - self.unlockedAt = unlockedAt - self.isHidden = isHidden - } - - var isUnlocked: Bool { - unlockedAt != nil - } - - var progressPercentage: Float { - Float(progress) / Float(targetValue) - } -} - -enum AchievementCategory: String, Codable, CaseIterable { - case conversation = "对话交流" - case emotion = "情绪管理" - case growth = "个人成长" - case social = "社交互动" - case exploration = "探索发现" - case consistency = "坚持习惯" - case milestone = "里程碑" - case special = "特殊成就" - case all = "全部" - - var icon: String { - switch self { - case .conversation: return "message.circle" - case .emotion: return "heart.circle" - case .growth: return "arrow.up.circle" - case .social: return "person.2.circle" - case .exploration: return "map.circle" - case .consistency: return "calendar.circle" - case .milestone: return "flag.circle" - case .special: return "star.circle" - case .all: return "circle.grid.3x3" - } - } -} - -enum AchievementRequirement: Codable { - case conversationCount(Int) - case emotionRecordCount(Int) - case topicCompletion(Int) - case socialInteraction(Int) - case locationVisit(Int) - case consecutiveDays(Int) - case totalPoints(Int) - case special(String) - - var description: String { - switch self { - case .conversationCount(let count): - return "完成\(count)次对话" - case .emotionRecordCount(let count): - return "记录\(count)次情绪" - case .topicCompletion(let count): - return "完成\(count)个成长课题" - case .socialInteraction(let count): - return "进行\(count)次社交互动" - case .locationVisit(let count): - return "访问\(count)个地点" - case .consecutiveDays(let days): - return "连续使用\(days)天" - case .totalPoints(let points): - return "获得\(points)积分" - case .special(let desc): - return desc - } - } -} - -// MARK: - 统计数据模型 - -struct UserStats: Codable { - var totalConversations: Int - var totalMessages: Int - var totalEmotionRecords: Int - var completedTopics: Int - var totalPoints: Int - var consecutiveDays: Int - var maxConsecutiveDays: Int - var socialInteractions: Int - var locationsVisited: Int - var postsCreated: Int - var likesReceived: Int - var commentsReceived: Int - - init() { - self.totalConversations = 0 - self.totalMessages = 0 - self.totalEmotionRecords = 0 - self.completedTopics = 0 - self.totalPoints = 0 - self.consecutiveDays = 0 - self.maxConsecutiveDays = 0 - self.socialInteractions = 0 - self.locationsVisited = 0 - self.postsCreated = 0 - self.likesReceived = 0 - self.commentsReceived = 0 - } -} - -struct WeeklyStats: Codable { - let weekStartDate: Date - var emotionRecords: [EmotionRecord] - var conversations: [Conversation] - var topicInteractions: [TopicInteraction] - var moodTrend: EmotionTrend - var averageMoodScore: Float - var mostActiveDay: Date? - var dominantEmotion: EmotionType? - - init(weekStartDate: Date) { - self.weekStartDate = weekStartDate - self.emotionRecords = [] - self.conversations = [] - self.topicInteractions = [] - self.moodTrend = .stable - self.averageMoodScore = 0.5 - self.mostActiveDay = nil - self.dominantEmotion = nil - } - - var weekEndDate: Date { - Calendar.current.date(byAdding: .day, value: 6, to: weekStartDate) ?? weekStartDate - } -} - -// MARK: - 扩展方法 - -extension Date { - var timeAgo: String { - let formatter = RelativeDateTimeFormatter() - formatter.unitsStyle = .short - formatter.locale = Locale(identifier: "zh_CN") - return formatter.localizedString(for: self, relativeTo: Date()) - } - - var shortFormat: String { - let formatter = DateFormatter() - formatter.dateStyle = .short - formatter.timeStyle = .short - formatter.locale = Locale(identifier: "zh_CN") - return formatter.string(from: self) - } - - var dayFormat: String { - let formatter = DateFormatter() - formatter.dateFormat = "MM月dd日" - formatter.locale = Locale(identifier: "zh_CN") - return formatter.string(from: self) - } -} - -extension Array where Element == EmotionRecord { - func averageIntensity() -> Float { - guard !isEmpty else { return 0 } - let sum = reduce(0) { $0 + $1.intensity } - return sum / Float(count) - } - - func dominantEmotion() -> EmotionType? { - guard !isEmpty else { return nil } - let emotionCounts = Dictionary(grouping: self, by: { $0.emotionType }) - return emotionCounts.max(by: { $0.value.count < $1.value.count })?.key - } -} - -extension Array where Element == GrowthTopic { - func averageProgress() -> Float { - guard !isEmpty else { return 0 } - let sum = reduce(0) { $0 + $1.progress } - return sum / Float(count) - } - - func completedCount() -> Int { - filter { $0.isCompleted }.count - } -} - -// MARK: - 筛选和排序枚举 - -enum ConversationFilter: String, CaseIterable { - case all = "全部" - case recent = "最近" - case emotional = "情绪相关" - case growth = "成长相关" - case unread = "未读" - - var icon: String { - switch self { - case .all: return "list.bullet" - case .recent: return "clock" - case .emotional: return "heart" - case .growth: return "arrow.up" - case .unread: return "circle.fill" - } - } -} - -enum PostSortType: String, CaseIterable { - case latest = "最新" - case popular = "热门" - case nearby = "附近" - case liked = "点赞最多" - - var icon: String { - switch self { - case .latest: return "clock" - case .popular: return "flame" - case .nearby: return "location" - case .liked: return "heart" - } - } -} - -// MARK: - 文章和行动建议模型 - -struct Article: Identifiable, Codable { - let id: UUID - let title: String - let content: String - let readTime: String - let tags: [String] - let difficulty: Difficulty - let createdAt: Date - - init(id: UUID = UUID(), title: String, content: String, readTime: String, tags: [String] = [], difficulty: Difficulty = .beginner, createdAt: Date = Date()) { - self.id = id - self.title = title - self.content = content - self.readTime = readTime - self.tags = tags - self.difficulty = difficulty - self.createdAt = createdAt - } -} - -struct ActionSuggestion: Identifiable, Codable { - let id: UUID - let title: String - let description: String - let duration: String - let difficulty: String - let category: String - var isCompleted: Bool - let createdAt: Date - - init(id: UUID = UUID(), title: String, description: String, duration: String, difficulty: String, category: String, isCompleted: Bool = false, createdAt: Date = Date()) { - self.id = id - self.title = title - self.description = description - self.duration = duration - self.difficulty = difficulty - self.category = category - self.isCompleted = isCompleted - self.createdAt = createdAt - } -} - -struct TopicContent: Codable { - let knowledgeArticles: [Article] - let actionSuggestions: [ActionSuggestion] - let aiGuidance: String - - init(knowledgeArticles: [Article] = [], actionSuggestions: [ActionSuggestion] = [], aiGuidance: String = "") { - self.knowledgeArticles = knowledgeArticles - self.actionSuggestions = actionSuggestions - self.aiGuidance = aiGuidance - } -} - - \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Models/MapManager.swift b/EmotionMuseum/EmotionMuseum/Models/MapManager.swift deleted file mode 100644 index 78abc06..0000000 --- a/EmotionMuseum/EmotionMuseum/Models/MapManager.swift +++ /dev/null @@ -1,23 +0,0 @@ -import Foundation -// import AMapFoundationKit // 临时注释,需要安装CocoaPods依赖 -import CoreLocation - -/// 地图管理器 -/// @Author huazhongmin -/// @Time 2024-03-24 -/// @Description 管理高德地图SDK的配置和初始化 -class MapManager { - static let shared = MapManager() - - private init() {} - - func configure() { - // TODO: 安装CocoaPods依赖后取消注释 - // 设置高德地图的AppKey - // AMapServices.shared().apiKey = "bb63ae64d651624f3673d61b47b45435" - - // 配置定位权限说明 - let locationManager = CLLocationManager() - locationManager.requestWhenInUseAuthorization() - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Persistence.swift b/EmotionMuseum/EmotionMuseum/Persistence.swift deleted file mode 100644 index 2526695..0000000 --- a/EmotionMuseum/EmotionMuseum/Persistence.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// Persistence.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import CoreData - -struct PersistenceController { - static let shared = PersistenceController() - - @MainActor - static let preview: PersistenceController = { - let result = PersistenceController(inMemory: true) - let viewContext = result.container.viewContext - for _ in 0..<10 { - let newItem = Item(context: viewContext) - newItem.timestamp = Date() - } - do { - try viewContext.save() - } catch { - // Replace this implementation with code to handle the error appropriately. - // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - let nsError = error as NSError - fatalError("Unresolved error \(nsError), \(nsError.userInfo)") - } - return result - }() - - let container: NSPersistentContainer - - init(inMemory: Bool = false) { - container = NSPersistentContainer(name: "EmotionMuseum") - if inMemory { - container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null") - } - container.loadPersistentStores(completionHandler: { (storeDescription, error) in - if let error = error as NSError? { - // Replace this implementation with code to handle the error appropriately. - // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - - /* - Typical reasons for an error here include: - * The parent directory does not exist, cannot be created, or disallows writing. - * The persistent store is not accessible, due to permissions or data protection when the device is locked. - * The device is out of space. - * The store could not be migrated to the current model version. - Check the error message to determine what the actual problem was. - */ - fatalError("Unresolved error \(error), \(error.userInfo)") - } - }) - container.viewContext.automaticallyMergesChangesFromParent = true - } -} diff --git a/EmotionMuseum/EmotionMuseum/Podfile b/EmotionMuseum/EmotionMuseum/Podfile deleted file mode 100644 index 572db27..0000000 --- a/EmotionMuseum/EmotionMuseum/Podfile +++ /dev/null @@ -1,11 +0,0 @@ -platform :ios, '14.0' - -target 'EmotionMuseum' do - use_frameworks! - - # 高德地图SDK - pod 'AMap3DMap' - pod 'AMapLocation' - pod 'AMapSearch' - -end \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Services/AIService.swift b/EmotionMuseum/EmotionMuseum/Services/AIService.swift deleted file mode 100644 index c942041..0000000 --- a/EmotionMuseum/EmotionMuseum/Services/AIService.swift +++ /dev/null @@ -1,549 +0,0 @@ -// -// AIService.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import Foundation -import Combine - -// MARK: - AI服务协议 -protocol AIServiceProtocol { - func sendMessage(_ message: String, userId: UUID) async throws -> AIResponse - func analyzeEmotion(_ text: String) async throws -> EmotionAnalysis - func generateGrowthSuggestions(for stats: GrowthStats) async throws -> [GrowthTopic] -} - -// MARK: - AI响应模型 -struct AIResponse: Codable { - let messageId: UUID - let content: String - let emotionAnalysis: EmotionAnalysis - let suggestions: [String] - let followUpQuestions: [String] - let confidence: Float - let processingTime: TimeInterval - - struct EmotionAnalysis: Codable { - let detectedEmotion: EmotionType - let intensity: Float - let triggers: [String] - let context: String - let recommendations: [String] - } -} - -// MARK: - AI服务实现 -class AIService: AIServiceProtocol, ObservableObject { - static let shared = AIService() - - private let baseURL = "https://api.openai.com/v1" - private let apiKey: String - - @Published var isLoading = false - @Published var lastError: Error? - - private init() { - // 在实际应用中,应该从安全配置文件或环境变量中读取API密钥 - self.apiKey = Bundle.main.infoDictionary?["OPENAI_API_KEY"] as? String ?? "" - } - - // MARK: - 发送消息 - func sendMessage(_ message: String, userId: UUID) async throws -> AIResponse { - let startTime = Date() - isLoading = true - defer { isLoading = false } - - let prompt = buildEmotionAnalysisPrompt(message: message) - let requestBody = OpenAIRequest( - model: "gpt-4", - messages: [ - OpenAIMessage(role: "system", content: getSystemPrompt()), - OpenAIMessage(role: "user", content: prompt) - ], - temperature: 0.7, - maxTokens: 500 - ) - - do { - let response = try await sendOpenAIRequest(requestBody) - let processingTime = Date().timeIntervalSince(startTime) - - return try parseAIResponse(response, messageId: UUID(), processingTime: processingTime) - } catch { - lastError = error - throw error - } - } - - // MARK: - 情绪分析 - func analyzeEmotion(_ text: String) async throws -> EmotionAnalysis { - let prompt = """ - 分析以下文本的情绪:"\(text)" - - 请返回JSON格式的分析结果,包含: - - summary: 简要总结 - - keywords: 关键词数组 - - suggestions: 建议数组 - - moodPattern: 情绪模式 - - confidence: 置信度(0-1) - """ - - let requestBody = OpenAIRequest( - model: "gpt-4", - messages: [ - OpenAIMessage(role: "system", content: "你是一个专业的情绪分析师,请用中文回答。"), - OpenAIMessage(role: "user", content: prompt) - ], - temperature: 0.3, - maxTokens: 300 - ) - - let response = try await sendOpenAIRequest(requestBody) - return try parseEmotionAnalysis(response) - } - - // MARK: - 生成成长建议 - func generateGrowthSuggestions(for stats: GrowthStats) async throws -> [GrowthTopic] { - let prompt = """ - 基于用户的五维人格画像生成个性化成长建议: - - 自我感知: \(stats.selfAwareness) - - 情绪韧性: \(stats.emotionalResilience) - - 行动力: \(stats.actionPower) - - 共情力: \(stats.empathy) - - 生活热度: \(stats.lifeEnthusiasm) - - 请推荐3个最适合的成长课题,返回JSON格式。 - """ - - let requestBody = OpenAIRequest( - model: "gpt-4", - messages: [ - OpenAIMessage(role: "system", content: "你是一个专业的心理成长顾问。"), - OpenAIMessage(role: "user", content: prompt) - ], - temperature: 0.5, - maxTokens: 400 - ) - - let response = try await sendOpenAIRequest(requestBody) - return try parseGrowthTopics(response) - } - - // MARK: - 私有方法 - - private func getSystemPrompt() -> String { - return """ - 你是情绪博物馆的AI情绪陪伴师,具有以下特质: - - 1. 专业且温暖:具备心理学知识,但表达温和亲切 - 2. 情绪敏感:能准确识别和回应用户的情绪状态 - 3. 个性化关怀:根据用户的话语提供针对性建议 - 4. 积极导向:引导用户朝着更健康的情绪状态发展 - 5. 边界清晰:不提供医疗建议,必要时建议寻求专业帮助 - - 请用中文回答,保持对话自然流畅。 - """ - } - - private func buildEmotionAnalysisPrompt(message: String) -> String { - return """ - 用户消息:"\(message)" - - 请分析这条消息的情绪状态,并提供适当的回应。包含: - 1. 检测到的主要情绪 - 2. 情绪强度(0-1) - 3. 可能的触发因素 - 4. 温暖的回应内容 - 5. 具体的情绪调节建议 - 6. 后续探索问题 - - 请以JSON格式返回分析结果。 - """ - } - - private func sendOpenAIRequest(_ request: OpenAIRequest) async throws -> OpenAIResponse { - guard !apiKey.isEmpty else { - throw AIServiceError.missingAPIKey - } - - let url = URL(string: "\(baseURL)/chat/completions")! - var urlRequest = URLRequest(url: url) - urlRequest.httpMethod = "POST" - urlRequest.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization") - urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type") - - let encoder = JSONEncoder() - urlRequest.httpBody = try encoder.encode(request) - - let (data, response) = try await URLSession.shared.data(for: urlRequest) - - guard let httpResponse = response as? HTTPURLResponse, - httpResponse.statusCode == 200 else { - throw AIServiceError.apiError("请求失败") - } - - let decoder = JSONDecoder() - return try decoder.decode(OpenAIResponse.self, from: data) - } - - private func parseAIResponse(_ response: OpenAIResponse, messageId: UUID, processingTime: TimeInterval) throws -> AIResponse { - guard let choice = response.choices.first else { - throw AIServiceError.parseError("无法解析AI响应") - } - - let content = choice.message.content - - // 尝试解析JSON格式的响应 - if let jsonData = content.data(using: .utf8), - let parsed = try? JSONSerialization.jsonObject(with: jsonData) as? [String: Any] { - - let emotion = parseEmotionFromString(parsed["emotion"] as? String ?? "neutral") - let intensity = parsed["intensity"] as? Float ?? 0.5 - let triggers = parsed["triggers"] as? [String] ?? [] - let context = parsed["context"] as? String ?? "" - let recommendations = parsed["recommendations"] as? [String] ?? [] - let suggestions = parsed["suggestions"] as? [String] ?? [] - let followUpQuestions = parsed["followUpQuestions"] as? [String] ?? [] - let responseContent = parsed["response"] as? String ?? content - - let emotionAnalysis = AIResponse.EmotionAnalysis( - detectedEmotion: emotion, - intensity: intensity, - triggers: triggers, - context: context, - recommendations: recommendations - ) - - return AIResponse( - messageId: messageId, - content: responseContent, - emotionAnalysis: emotionAnalysis, - suggestions: suggestions, - followUpQuestions: followUpQuestions, - confidence: 0.8, - processingTime: processingTime - ) - } else { - // 如果不是JSON格式,返回基础响应 - return AIResponse( - messageId: messageId, - content: content, - emotionAnalysis: AIResponse.EmotionAnalysis( - detectedEmotion: .neutral, - intensity: 0.5, - triggers: [], - context: "基础对话", - recommendations: ["继续分享您的感受"] - ), - suggestions: ["继续对话"], - followUpQuestions: ["还有什么想分享的吗?"], - confidence: 0.6, - processingTime: processingTime - ) - } - } - - private func parseEmotionAnalysis(_ response: OpenAIResponse) throws -> EmotionAnalysis { - guard response.choices.first != nil else { - throw AIServiceError.parseError("无法解析情绪分析响应") - } - - // 模拟解析,实际应用中需要更复杂的JSON解析 - return EmotionAnalysis( - primaryEmotion: .neutral, - emotionIntensity: 0.5, - emotionTrend: .stable, - keywords: ["关键词1", "关键词2"], - aiInsights: "情绪分析摘要", - confidence: 0.75 - ) - } - - private func parseGrowthTopics(_ response: OpenAIResponse) throws -> [GrowthTopic] { - // 模拟返回成长课题,实际应用中需要解析AI响应 - return [ - GrowthTopic( - title: "增强自我认知", - description: "通过反思练习提高自我觉察能力", - category: .selfAwareness, - difficulty: .beginner, - progress: 0.0 - ), - GrowthTopic( - title: "情绪调节技巧", - description: "学习有效的情绪管理方法", - category: .emotionRegulation, - difficulty: .intermediate, - progress: 0.0 - ), - GrowthTopic( - title: "提升沟通能力", - description: "改善人际关系和沟通技巧", - category: .relationships, - difficulty: .beginner, - progress: 0.0 - ) - ] - } - - private func parseEmotionFromString(_ emotionString: String) -> EmotionType { - switch emotionString.lowercased() { - case "joy", "happy", "开心", "喜悦": return .joy - case "sad", "sadness", "悲伤", "难过": return .sadness - case "angry", "anger", "愤怒", "生气": return .anger - case "fear", "scared", "恐惧", "害怕": return .fear - case "surprise", "surprised", "惊讶", "意外": return .surprise - default: return .neutral - } - } -} - -// MARK: - OpenAI API模型 -private struct OpenAIRequest: Codable { - let model: String - let messages: [OpenAIMessage] - let temperature: Float - let maxTokens: Int? - - enum CodingKeys: String, CodingKey { - case model, messages, temperature - case maxTokens = "max_tokens" - } -} - -private struct OpenAIMessage: Codable { - let role: String - let content: String -} - -private struct OpenAIResponse: Codable { - let choices: [OpenAIChoice] -} - -private struct OpenAIChoice: Codable { - let message: OpenAIMessage -} - -// MARK: - 错误类型 -enum AIServiceError: LocalizedError { - case missingAPIKey - case apiError(String) - case parseError(String) - case networkError(Error) - - var errorDescription: String? { - switch self { - case .missingAPIKey: - return "缺少API密钥" - case .apiError(let message): - return "API错误: \(message)" - case .parseError(let message): - return "解析错误: \(message)" - case .networkError(let error): - return "网络错误: \(error.localizedDescription)" - } - } -} - -// MARK: - 模拟AI服务(用于开发和测试) -class MockAIService: AIServiceProtocol, ObservableObject { - @Published var isLoading = false - - func sendMessage(_ message: String, userId: UUID) async throws -> AIResponse { - isLoading = true - - // 模拟网络延迟 - try await Task.sleep(nanoseconds: 1_000_000_000) // 1秒 - - isLoading = false - - let emotion = analyzeEmotionFromMessage(message) - let response = generateMockResponse(for: emotion, message: message) - - return AIResponse( - messageId: UUID(), - content: response, - emotionAnalysis: AIResponse.EmotionAnalysis( - detectedEmotion: emotion, - intensity: Float.random(in: 0.3...0.9), - triggers: extractTriggers(from: message), - context: "日常对话", - recommendations: generateRecommendations(for: emotion) - ), - suggestions: generateSuggestions(for: emotion), - followUpQuestions: generateFollowUpQuestions(for: emotion), - confidence: Float.random(in: 0.6...0.9), - processingTime: 1.0 - ) - } - - func analyzeEmotion(_ text: String) async throws -> EmotionAnalysis { - try await Task.sleep(nanoseconds: 500_000_000) // 0.5秒 - - return EmotionAnalysis( - primaryEmotion: analyzeEmotionFromMessage(text), - emotionIntensity: Float.random(in: 0.3...0.9), - emotionTrend: .stable, - keywords: ["情绪", "感受", "心情"], - aiInsights: "检测到\(analyzeEmotionFromMessage(text).rawValue)情绪", - confidence: Float.random(in: 0.7...0.95) - ) - } - - func generateGrowthSuggestions(for stats: GrowthStats) async throws -> [GrowthTopic] { - try await Task.sleep(nanoseconds: 800_000_000) // 0.8秒 - - return [ - GrowthTopic( - title: "自我认知提升", - description: "通过日记和反思提高自我觉察", - category: .selfAwareness, - difficulty: .beginner, - progress: 0.0 - ), - GrowthTopic( - title: "情绪管理训练", - description: "学习情绪调节和压力缓解技巧", - category: .emotionRegulation, - difficulty: .intermediate, - progress: 0.0 - ) - ] - } - - // MARK: - 私有辅助方法 - - private func analyzeEmotionFromMessage(_ message: String) -> EmotionType { - let lowerMessage = message.lowercased() - - if lowerMessage.contains("开心") || lowerMessage.contains("高兴") || lowerMessage.contains("快乐") { - return .joy - } else if lowerMessage.contains("难过") || lowerMessage.contains("悲伤") || lowerMessage.contains("伤心") { - return .sadness - } else if lowerMessage.contains("生气") || lowerMessage.contains("愤怒") || lowerMessage.contains("烦躁") { - return .anger - } else if lowerMessage.contains("害怕") || lowerMessage.contains("恐惧") || lowerMessage.contains("紧张") { - return .fear - } else if lowerMessage.contains("惊讶") || lowerMessage.contains("意外") { - return .surprise - } else { - return .neutral - } - } - - private func generateMockResponse(for emotion: EmotionType, message: String) -> String { - switch emotion { - case .joy: - return "我能感受到你的开心!这种积极的情绪很珍贵,记得把这份快乐分享给身边的人。是什么让你感到如此愉悦呢?" - case .sadness: - return "我理解你现在的感受,难过是正常的情绪反应。允许自己感受这些情绪,同时也要温柔地照顾自己。你愿意分享更多吗?" - case .anger: - return "我能察觉到你的愤怒情绪。愤怒往往是其他情绪的表达,比如受伤或失望。深呼吸一下,我们一起探索这种感受的根源。" - case .fear: - return "恐惧感让人不安,这是很自然的反应。记住,你有能力面对困难。让我们一起分析一下你担心的事情,也许并不像想象中那么可怕。" - case .surprise: - return "意外的事情总是让人印象深刻!无论是好的惊喜还是让人措手不及的情况,都是生活的一部分。告诉我更多细节吧。" - case .neutral: - return "我在聆听你的分享。有时候平静也是一种很好的状态。如果你想深入探讨任何感受或想法,我都愿意陪伴你。" - case .anxiety: - return "我能感受到你的焦虑情绪。焦虑是很常见的感受,让我们一起找到缓解的方法。" - case .excitement: - return "你的兴奋情绪很有感染力!这种充满活力的状态真的很棒。告诉我是什么让你如此激动,我也想分享你的喜悦!" - case .contentment: - return "你的满足感让我很欣慰。这种内心的平和与充实是生活中最珍贵的状态之一。珍惜这份宁静,它会给你力量。" - case .confusion: - return "我感受到你内心的困惑。困惑是思考和成长的开始,让我们一起理清思路。" - case .melancholy: - return "我感受到你内心的忧郁。这种淡淡的愁绪有时候也是一种美,它让我们更深刻地感受生活。愿意和我分享你的思绪吗?" - } - } - - private func extractTriggers(from message: String) -> [String] { - // 简单的关键词提取 - let keywords = ["工作", "家庭", "朋友", "健康", "学习", "感情", "压力", "变化"] - return keywords.filter { message.contains($0) } - } - - private func generateRecommendations(for emotion: EmotionType) -> [String] { - switch emotion { - case .joy: - return ["记录这个美好时刻", "分享你的快乐", "感恩当下"] - case .sadness: - return ["允许自己哭泣", "寻求朋友支持", "进行轻柔运动"] - case .anger: - return ["深呼吸放松", "写下愤怒的原因", "进行体力活动"] - case .fear: - return ["面对恐惧", "寻求专业建议", "制定应对计划"] - case .surprise: - return ["接受变化", "保持开放心态", "记录感受"] - case .neutral: - return ["享受平静", "进行自我反思", "设定新目标"] - case .anxiety: - return ["深呼吸练习", "寻求支持", "制定应对计划"] - case .excitement: - return ["合理安排时间", "保持专注", "与他人分享喜悦"] - case .contentment: - return ["珍惜当下", "保持感恩心", "分享你的平和"] - case .confusion: - return ["整理思路", "寻求建议", "分步骤思考"] - case .melancholy: - return ["接受这种情绪", "寻找美好的事物", "与朋友交流"] - } - } - - private func generateSuggestions(for emotion: EmotionType) -> [String] { - switch emotion { - case .joy: - return ["继续保持积极心态", "做些让你快乐的事"] - case .sadness: - return ["给自己一些时间", "考虑专业帮助"] - case .anger: - return ["找到健康的发泄方式", "思考问题的解决方案"] - case .fear: - return ["一步步面对恐惧", "建立支持系统"] - case .surprise: - return ["适应新情况", "保持灵活性"] - case .neutral: - return ["探索新的兴趣", "建立日常习惯"] - case .anxiety: - return ["学习放松技巧", "寻求专业帮助"] - case .excitement: - return ["制定行动计划", "保持理性思考"] - case .contentment: - return ["维持内心平衡", "继续当前的生活方式"] - case .confusion: - return ["寻找清晰的方向", "与他人交流想法"] - case .melancholy: - return ["接受当下的感受", "寻找内心的平静"] - } - } - - private func generateFollowUpQuestions(for emotion: EmotionType) -> [String] { - switch emotion { - case .joy: - return ["是什么特别的事情让你如此开心?", "你想如何延续这种快乐?"] - case .sadness: - return ["这种感受持续多久了?", "有什么可以帮助你感觉好一些?"] - case .anger: - return ["什么事情触发了这种愤怒?", "你通常如何处理愤怒情绪?"] - case .fear: - return ["你最担心的是什么?", "有什么可以让你感到更安全?"] - case .surprise: - return ["这个意外对你意味着什么?", "你如何适应这个变化?"] - case .neutral: - return ["最近有什么新的想法吗?", "有什么目标想要实现?"] - case .anxiety: - return ["这种焦虑从什么时候开始的?", "有什么特别担心的事情吗?"] - case .excitement: - return ["是什么让你如此兴奋?", "你计划如何行动?"] - case .contentment: - return ["是什么让你感到如此满足?", "这种状态对你意味着什么?"] - case .confusion: - return ["什么让你感到困惑?", "需要帮助理清哪些思路?"] - case .melancholy: - return ["这种忧郁感从何而来?", "有什么特别的回忆或想法吗?"] - } - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Services/MockDataManager.swift b/EmotionMuseum/EmotionMuseum/Services/MockDataManager.swift deleted file mode 100644 index 422ad9c..0000000 --- a/EmotionMuseum/EmotionMuseum/Services/MockDataManager.swift +++ /dev/null @@ -1,701 +0,0 @@ -// -// MockDataManager.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/7/5. -// - -import Foundation -import SwiftUI - -class MockDataManager: ObservableObject { - static let shared = MockDataManager() - - // MARK: - Published Properties - @Published var currentUser: User - @Published var conversations: [Conversation] = [] - @Published var growthTopics: [GrowthTopic] = [] - @Published var locationPins: [LocationPin] = [] - @Published var communityPosts: [CommunityPost] = [] - @Published var emotionRecords: [EmotionRecord] = [] - @Published var achievements: [Achievement] = [] - @Published var userStats: UserStats = UserStats() - @Published var weeklyStats: WeeklyStats - - private init() { - // 初始化当前用户 - self.currentUser = User( - username: "emotion_explorer", - email: "user@example.com", - profile: UserProfile( - nickname: "情绪探索者", - birthDate: Calendar.current.date(byAdding: .year, value: -25, to: Date()), - location: "北京市", - bio: "在情绪的海洋中寻找内心的平静", - memberLevel: .premium, - totalDays: 127, - growthStats: GrowthStats( - selfAwareness: 78.5, - emotionalResilience: 65.2, - actionPower: 72.8, - empathy: 85.3, - lifeEnthusiasm: 69.7 - ) - ), - createdAt: Calendar.current.date(byAdding: .day, value: -127, to: Date()) ?? Date() - ) - - // 初始化本周统计 - let weekStart = Calendar.current.dateInterval(of: .weekOfYear, for: Date())?.start ?? Date() - self.weeklyStats = WeeklyStats(weekStartDate: weekStart) - - // 生成所有模拟数据 - generateAllMockData() - } - - // MARK: - Public Methods - - func generateAllMockData() { - generateMockEmotionRecords() - generateMockConversations() - generateMockGrowthTopics() - generateMockLocationPins() - generateMockCommunityPosts() - generateMockAchievements() - updateUserStats() - updateWeeklyStats() - } - - func refreshData() async { - await MainActor.run { - generateAllMockData() - } - } - - // MARK: - Conversation Methods - - func addMessage(to conversationId: UUID, content: String, sender: MessageSender) { - if let index = conversations.firstIndex(where: { $0.id == conversationId }) { - let message = Message( - conversationId: conversationId, - content: content, - type: .text, - sender: sender, - emotionScore: sender == .user ? Float.random(in: 0.3...0.9) : nil - ) - conversations[index].messages.append(message) - - if sender == .user { - // 模拟AI回复 - DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) { - let aiResponse = self.generateAIResponse(for: content) - self.addMessage(to: conversationId, content: aiResponse, sender: .ai) - } - } - } - } - - func createNewConversation() -> Conversation { - let conversation = Conversation( - userId: currentUser.id, - title: "新对话 \(Date().shortFormat)" - ) - conversations.insert(conversation, at: 0) - return conversation - } - - // MARK: - Growth Topic Methods - - func updateTopicProgress(_ topicId: UUID, progress: Float) { - if let index = growthTopics.firstIndex(where: { $0.id == topicId }) { - growthTopics[index].progress = min(1.0, progress) - if growthTopics[index].progress >= 1.0 { - growthTopics[index].completedAt = Date() - // 解锁奖励 - let reward = Reward( - type: .points, - title: "课题完成", - description: "完成了\(growthTopics[index].title)", - value: 100, - rarity: .common - ) - growthTopics[index].rewards.append(reward) - } - } - } - - func addTopicInteraction(_ topicId: UUID, type: InteractionType, title: String, content: String) { - if let index = growthTopics.firstIndex(where: { $0.id == topicId }) { - let interaction = TopicInteraction( - topicId: topicId, - type: type, - title: title, - content: content, - completedAt: Date(), - duration: TimeInterval.random(in: 300...1800) - ) - growthTopics[index].interactions.append(interaction) - - // 更新进度 - let progressIncrease: Float = 0.2 - updateTopicProgress(topicId, progress: growthTopics[index].progress + progressIncrease) - } - } - - // MARK: - Location Methods - - func toggleLocationBookmark(_ locationId: UUID) { - if let index = locationPins.firstIndex(where: { $0.id == locationId }) { - locationPins[index].isBookmarked.toggle() - } - } - - func addLocationVisit(_ locationId: UUID) { - if let index = locationPins.firstIndex(where: { $0.id == locationId }) { - locationPins[index].visits += 1 - } - } - - // MARK: - Community Methods - - func togglePostLike(_ postId: UUID) { - if let index = communityPosts.firstIndex(where: { $0.id == postId }) { - communityPosts[index].isLikedByCurrentUser.toggle() - if communityPosts[index].isLikedByCurrentUser { - communityPosts[index].likes += 1 - } else { - communityPosts[index].likes = max(0, communityPosts[index].likes - 1) - } - } - } - - func addComment(to postId: UUID, content: String) { - if let index = communityPosts.firstIndex(where: { $0.id == postId }) { - let comment = Comment( - postId: postId, - userId: currentUser.id, - content: content - ) - communityPosts[index].comments.append(comment) - } - } - - // MARK: - Private Data Generation Methods - - private func generateMockEmotionRecords() { - emotionRecords.removeAll() - - // 生成过去30天的情绪记录 - for i in 0..<30 { - let date = Calendar.current.date(byAdding: .day, value: -i, to: Date()) ?? Date() - let recordCount = Int.random(in: 1...3) // 每天1-3条记录 - - for _ in 0.. $1.date } - } - - private func generateMockConversations() { - conversations.removeAll() - - // 生成过去30天的对话记录 - for i in 0..<15 { - let startDate = Calendar.current.date(byAdding: .day, value: -i*2, to: Date()) ?? Date() - let conversation = createMockConversation(for: startDate, index: i) - conversations.append(conversation) - } - - conversations.sort { $0.startTime > $1.startTime } - } - - private func generateMockGrowthTopics() { - growthTopics.removeAll() - - // 为每个分类生成3-4个课题 - for category in TopicCategory.allCases { - for i in 1...4 { - let topic = createMockTopic(category: category, index: i) - growthTopics.append(topic) - } - } - } - - private func generateMockLocationPins() { - locationPins.removeAll() - - // 北京地区的知名地点 - let beijingLocations = [ - (39.9042, 116.4074, "天安门广场", "北京的心脏,见证历史的地方"), - (39.9163, 116.3972, "故宫博物院", "明清两代的皇家宫殿,文化瑰宝"), - (40.0031, 116.3272, "颐和园", "清代皇家园林,山水如画"), - (39.8844, 116.5564, "798艺术区", "现代艺术的聚集地,创意无限"), - (39.9389, 116.3467, "什刹海", "老北京的韵味,夜晚格外美丽"), - (39.9056, 116.3913, "南锣鼓巷", "胡同文化的代表,小资情调"), - (40.0090, 116.2755, "香山公园", "秋天赏红叶的绝佳去处"), - (39.8838, 116.4649, "朝阳公园", "都市中的绿洲,休闲好去处"), - (39.9280, 116.3835, "后海", "酒吧一条街,夜生活的天堂"), - (39.9170, 116.3970, "景山公园", "俯瞰紫禁城的最佳位置") - ] - - for (_, location) in beijingLocations.enumerated() { - let pin = LocationPin( - coordinate: Coordinate(latitude: location.0, longitude: location.1), - title: location.2, - description: location.3, - type: LocationType.allCases.randomElement() ?? .community, - emotionTags: Array(EmotionType.allCases.shuffled().prefix(Int.random(in: 1...3))), - photos: generateLocationPhotos(), - createdBy: Bool.random() ? currentUser.id : UUID(), - createdAt: Calendar.current.date(byAdding: .day, value: -Int.random(in: 1...90), to: Date()) ?? Date(), - likes: Int.random(in: 5...200), - visits: Int.random(in: 10...500), - address: "北京市" + ["东城区", "西城区", "朝阳区", "海淀区"].randomElement()!, - category: LocationCategory.allCases.randomElement() ?? .other, - isBookmarked: Bool.random() - ) - locationPins.append(pin) - } - } - - private func generateMockCommunityPosts() { - communityPosts.removeAll() - - for _ in 0..<20 { - let post = CommunityPost( - userId: Bool.random() ? currentUser.id : UUID(), - locationId: locationPins.randomElement()?.id, - content: generatePostContent(), - photos: generatePostPhotos(), - tags: generatePostTags(), - likes: Int.random(in: 0...100), - comments: generatePostComments(), - createdAt: Calendar.current.date(byAdding: .hour, value: -Int.random(in: 1...168), to: Date()) ?? Date(), - isPrivate: Bool.random(), - viewCount: Int.random(in: 10...1000), - type: PostType.allCases.randomElement() ?? .general, - isLikedByCurrentUser: Bool.random() - ) - communityPosts.append(post) - } - - communityPosts.sort { $0.createdAt > $1.createdAt } - } - - private func generateMockAchievements() { - achievements.removeAll() - - let achievementData: [(String, String, AchievementCategory, String, RewardRarity, AchievementRequirement, Int, Bool)] = [ - ("初次对话", "完成第一次AI对话", .conversation, "message.circle", .common, .conversationCount(1), 1, false), - ("话痨达人", "累计对话100次", .conversation, "message.badge", .rare, .conversationCount(100), 45, false), - ("情绪记录者", "记录50次情绪", .emotion, "heart.circle", .common, .emotionRecordCount(50), 32, false), - ("成长新手", "完成第一个成长课题", .growth, "arrow.up.circle", .common, .topicCompletion(1), 1, false), - ("社交达人", "获得100个点赞", .social, "heart.badge", .rare, .socialInteraction(100), 67, false), - ("探索者", "访问10个地点", .exploration, "map.circle", .common, .locationVisit(10), 8, false), - ("坚持不懈", "连续使用30天", .consistency, "calendar.badge", .epic, .consecutiveDays(30), 25, false), - ("积分大户", "累计获得1000积分", .milestone, "star.badge", .rare, .totalPoints(1000), 750, false), - ("神秘成就", "发现隐藏彩蛋", .special, "sparkles", .legendary, .special("发现应用中的隐藏彩蛋"), 0, true) - ] - - for data in achievementData { - let achievement = Achievement( - title: data.0, - description: data.1, - category: data.2, - icon: data.3, - rarity: data.4, - requirement: data.5, - progress: data.6, - targetValue: getTargetValue(for: data.5), - unlockedAt: data.6 >= getTargetValue(for: data.5) ? Date() : nil, - isHidden: data.7 - ) - achievements.append(achievement) - } - } - - // MARK: - Helper Methods - - private func createMockConversation(for date: Date, index: Int) -> Conversation { - let conversation = Conversation( - userId: currentUser.id, - title: generateConversationTitle(index: index), - startTime: date, - endTime: Calendar.current.date(byAdding: .minute, value: Int.random(in: 5...60), to: date), - tags: generateConversationTags() - ) - - // 添加消息 - var messages: [Message] = [] - let messageCount = Int.random(in: 4...12) - - for i in 0.. GrowthTopic { - let topicTitles = getTopicTitles(for: category) - let title = topicTitles[min(index - 1, topicTitles.count - 1)] - - return GrowthTopic( - title: title, - description: generateTopicDescription(for: title), - category: category, - difficulty: Difficulty.allCases.randomElement() ?? .beginner, - progress: Float.random(in: 0...1), - level: Int.random(in: 1...5), - totalLevels: 5, - isUnlocked: index <= 2 || Bool.random(), // 前两个总是解锁的 - completedAt: Float.random(in: 0...1) > 0.7 ? Date() : nil, - rewards: generateTopicRewards(), - interactions: generateTopicInteractions(), - estimatedDuration: TimeInterval.random(in: 1800...7200), // 30分钟到2小时 - prerequisites: index > 1 ? [UUID()] : [] - ) - } - - private func generateAIResponse(for userMessage: String) -> String { - let responses = [ - "我理解你的感受,这确实是一个值得思考的问题。", - "你提到的这个情况很常见,让我们一起来分析一下。", - "从你的描述中,我感受到了你的情绪变化。", - "这是一个很好的观察,你有什么想法吗?", - "我听到了你的担忧,我们可以一步步来解决。", - "你的感受是完全可以理解的,很多人都会有类似的经历。", - "让我们换个角度来看这个问题,可能会有新的发现。", - "你已经很勇敢地表达了自己的想法,这很棒。", - "我注意到你提到了一些关键词,我们可以深入探讨一下。", - "你的情绪管理能力在不断提升,继续保持。" - ] - return responses.randomElement() ?? "谢谢你的分享。" - } - - // MARK: - Content Generation Methods - - private func generateEmotionContext() -> String { - let contexts = [ - "工作压力让我感到疲惫", - "和朋友聊天后心情变好了", - "看到美丽的日落感到平静", - "遇到挫折时感到沮丧", - "完成任务后有成就感", - "听音乐时情绪放松", - "运动后感到充满活力", - "独处时思考人生", - "与家人团聚很温暖", - "面对未知感到紧张" - ] - return contexts.randomElement() ?? "日常生活中的情绪体验" - } - - private func generateEmotionTriggers() -> [String] { - let allTriggers = ["工作", "人际关系", "健康", "家庭", "学习", "金钱", "未来", "过去", "天气", "音乐"] - return Array(allTriggers.shuffled().prefix(Int.random(in: 1...3))) - } - - private func generateEmotionNotes() -> String? { - let notes = [ - "今天的情绪比昨天好一些", - "需要更多的休息时间", - "和朋友的谈话很有帮助", - "运动确实能改善心情", - "要学会接受自己的情绪", - nil, nil // 有些记录没有备注 - ] - return notes.randomElement() ?? nil - } - - private func generateConversationTitle(index: Int) -> String { - let titles = [ - "今天的心情分享", - "关于压力管理的讨论", - "人际关系的困惑", - "职场焦虑的缓解", - "自我成长的反思", - "情绪调节的方法", - "生活目标的规划", - "内心平静的追求", - "人生意义的探索", - "幸福感的提升" - ] - return titles[index % titles.count] - } - - private func generateConversationTags() -> [String] { - let allTags = ["情绪管理", "压力缓解", "人际关系", "自我成长", "生活规划", "心理健康"] - return Array(allTags.shuffled().prefix(Int.random(in: 1...3))) - } - - private func generateUserMessage() -> String { - let messages = [ - "我最近感到有些焦虑,不知道该怎么办。", - "工作压力很大,总是担心做不好。", - "和朋友的关系出现了一些问题。", - "我想要改变现在的生活状态。", - "有时候感到很孤独,需要有人倾听。", - "对未来感到不确定,有些迷茫。", - "今天心情不错,想分享一下。", - "我在思考人生的意义是什么。", - "想要培养一些新的习惯。", - "感觉自己需要更多的自信。" - ] - return messages.randomElement() ?? "你好" - } - - private func generateAIMessage() -> String { - let messages = [ - "我理解你的感受,焦虑是很正常的情绪反应。", - "工作压力确实会影响我们的心情,不妨试试放松技巧。", - "人际关系需要时间和耐心来维护,你做得很好。", - "改变需要勇气,你已经迈出了第一步。", - "孤独感是人类共同的体验,你并不孤单。", - "对未来的不确定感是成长的一部分。", - "很高兴听到你今天心情不错!", - "人生意义的探索是一个持续的过程。", - "培养新习惯需要时间,要对自己有耐心。", - "自信是可以通过练习来培养的。" - ] - return messages.randomElement() ?? "谢谢你的分享" - } - - private func generateEmotionKeywords() -> [String] { - let keywords = ["压力", "焦虑", "快乐", "悲伤", "希望", "困惑", "平静", "兴奋", "担忧", "满足"] - return Array(keywords.shuffled().prefix(Int.random(in: 2...4))) - } - - private func generateAIInsights() -> String { - let insights = [ - "你的情绪表达能力在不断提升,这是很好的进步。", - "从对话中可以看出你对自我成长很有意识。", - "你善于反思,这有助于情绪的自我调节。", - "你的积极态度值得赞赏,继续保持。", - "建议多关注自己的情绪变化模式。", - "你的表达很真诚,这有助于深入的自我探索。" - ] - return insights.randomElement() ?? "继续保持这种开放的态度" - } - - private func getTopicTitles(for category: TopicCategory) -> [String] { - switch category { - case .selfAwareness: - return ["认识真实的自己", "探索内在价值观", "发现个人优势", "理解情绪模式"] - case .emotionRegulation: - return ["压力管理技巧", "愤怒情绪调节", "焦虑缓解方法", "悲伤情绪处理"] - case .socialSkills: - return ["有效沟通技巧", "建立良好关系", "冲突解决能力", "团队合作精神"] - case .stressManagement: - return ["工作压力应对", "时间管理技能", "放松训练方法", "心理韧性建设"] - case .lifeGoals: - return ["目标设定方法", "人生规划技巧", "价值观澄清", "意义感培养"] - case .mindfulness: - return ["正念冥想入门", "专注力训练", "当下觉察练习", "内心平静修炼"] - case .relationships: - return ["亲密关系维护", "友谊经营之道", "家庭和谐相处", "社交边界设定"] - case .creativity: - return ["创意思维开发", "艺术表达练习", "问题解决创新", "想象力激发"] - } - } - - private func generateTopicDescription(for title: String) -> String { - return "通过系统化的学习和练习,帮助你在\(title)方面获得提升。包含理论知识、实践练习和个人反思,让你在成长的道路上更进一步。" - } - - private func generateTopicRewards() -> [Reward] { - let rewardCount = Int.random(in: 0...2) - var rewards: [Reward] = [] - - for _ in 0.. [TopicInteraction] { - let interactionCount = Int.random(in: 0...3) - var interactions: [TopicInteraction] = [] - - for i in 0.. [String] { - let photoCount = Int.random(in: 1...4) - return Array(repeating: "location_photo", count: photoCount) - } - - private func generatePostContent() -> String { - let contents = [ - "今天在这个美丽的地方找到了内心的平静 ✨", - "和朋友一起度过了愉快的下午时光 😊", - "这里的风景让我想起了童年的回忆", - "在这个安静的角落里思考人生的意义", - "发现了一个治愈心灵的好地方", - "阳光透过树叶洒下来,心情瞬间明亮了", - "和陌生人的一次偶遇,让我对生活有了新的感悟", - "在这里感受到了城市中难得的宁静", - "每次来这里都能获得新的启发", - "分享一个让我感到温暖的瞬间" - ] - return contents.randomElement() ?? "分享今天的美好时光" - } - - private func generatePostPhotos() -> [String] { - let photoCount = Int.random(in: 0...3) - return Array(repeating: "post_photo", count: photoCount) - } - - private func generatePostTags() -> [String] { - let allTags = ["治愈", "美好", "分享", "生活", "感悟", "风景", "友谊", "成长", "平静", "温暖"] - return Array(allTags.shuffled().prefix(Int.random(in: 1...3))) - } - - private func generatePostComments() -> [Comment] { - let commentCount = Int.random(in: 0...5) - var comments: [Comment] = [] - - let commentContents = [ - "太美了!", - "我也想去这个地方", - "感谢分享 ❤️", - "很有感触", - "下次一起去吧", - "照片拍得很棒", - "这个地方我也去过", - "很治愈的分享" - ] - - for _ in 0.. Int { - switch requirement { - case .conversationCount(let count): return count - case .emotionRecordCount(let count): return count - case .topicCompletion(let count): return count - case .socialInteraction(let count): return count - case .locationVisit(let count): return count - case .consecutiveDays(let days): return days - case .totalPoints(let points): return points - case .special(_): return 1 - } - } - - private func updateUserStats() { - userStats.totalConversations = conversations.count - userStats.totalMessages = conversations.reduce(0) { $0 + $1.messageCount } - userStats.totalEmotionRecords = emotionRecords.count - userStats.completedTopics = growthTopics.filter { $0.isCompleted }.count - userStats.totalPoints = achievements.reduce(0) { $0 + ($1.isUnlocked ? 100 : 0) } - userStats.consecutiveDays = 25 // 模拟连续使用天数 - userStats.maxConsecutiveDays = 30 - userStats.socialInteractions = communityPosts.reduce(0) { $0 + $1.likes + $1.commentCount } - userStats.locationsVisited = locationPins.filter { $0.visits > 0 }.count - userStats.postsCreated = communityPosts.filter { $0.userId == currentUser.id }.count - userStats.likesReceived = communityPosts.filter { $0.userId == currentUser.id }.reduce(0) { $0 + $1.likes } - userStats.commentsReceived = communityPosts.filter { $0.userId == currentUser.id }.reduce(0) { $0 + $1.commentCount } - } - - private func updateWeeklyStats() { - let weekStart = weeklyStats.weekStartDate - let weekEnd = Calendar.current.date(byAdding: .day, value: 6, to: weekStart) ?? weekStart - - // 本周情绪记录 - weeklyStats.emotionRecords = emotionRecords.filter { record in - record.date >= weekStart && record.date <= weekEnd - } - - // 本周对话 - weeklyStats.conversations = conversations.filter { conversation in - conversation.startTime >= weekStart && conversation.startTime <= weekEnd - } - - // 计算平均情绪分数 - if !weeklyStats.emotionRecords.isEmpty { - weeklyStats.averageMoodScore = weeklyStats.emotionRecords.averageIntensity() - weeklyStats.dominantEmotion = weeklyStats.emotionRecords.dominantEmotion() - } - - // 确定情绪趋势 - weeklyStats.moodTrend = EmotionTrend.allCases.randomElement() ?? .stable - - // 最活跃的一天 - let dailyActivity = Dictionary(grouping: weeklyStats.emotionRecords + weeklyStats.conversations.map { conversation in - EmotionRecord(userId: currentUser.id, date: conversation.startTime, emotionType: .neutral, intensity: 0.5, context: "对话活动") - }, by: { Calendar.current.startOfDay(for: $0.date) }) - - weeklyStats.mostActiveDay = dailyActivity.max(by: { $0.value.count < $1.value.count })?.key - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Services/NavigationManager.swift b/EmotionMuseum/EmotionMuseum/Services/NavigationManager.swift deleted file mode 100644 index 0cdee7d..0000000 --- a/EmotionMuseum/EmotionMuseum/Services/NavigationManager.swift +++ /dev/null @@ -1,411 +0,0 @@ -// -// NavigationManager.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/7/5. -// - -import Foundation -import SwiftUI - -class NavigationManager: ObservableObject { - // MARK: - Tab Navigation - @Published var currentTab: MainTab = .record - - // MARK: - Navigation Paths for each tab - @Published var recordNavigation = NavigationPath() - @Published var growthNavigation = NavigationPath() - @Published var exploreNavigation = NavigationPath() - @Published var insightNavigation = NavigationPath() - - // MARK: - Global Modal States - @Published var showingChatHistory = false - @Published var showingFullScreenChat = false - @Published var showingSettings = false - @Published var showingProfile = false - @Published var showingThemeSettings = false - @Published var showingAddLocation = false - @Published var showingTopicDetail = false - @Published var showingLocationDetail = false - @Published var showingPostDetail = false - @Published var showingAchievements = false - @Published var showingMemberCenter = false - - // MARK: - Current Selection States - @Published var selectedConversation: Conversation? - @Published var selectedTopic: GrowthTopic? - @Published var selectedLocation: LocationPin? - @Published var selectedPost: CommunityPost? - @Published var selectedAchievement: Achievement? - - // MARK: - Chat States - @Published var currentChatConversation: Conversation? - @Published var isVoiceMode = false - @Published var chatInputText = "" - - // MARK: - Loading States - @Published var isLoading = false - @Published var loadingMessage = "" - - // MARK: - Navigation Methods - - func navigateToTab(_ tab: MainTab) { - withAnimation(.easeInOut(duration: 0.3)) { - currentTab = tab - } - } - - func navigateToChat(conversation: Conversation? = nil) { - selectedConversation = conversation - currentChatConversation = conversation - showingFullScreenChat = true - } - - func navigateToTopic(_ topic: GrowthTopic) { - selectedTopic = topic - showingTopicDetail = true - } - - func navigateToLocation(_ location: LocationPin) { - selectedLocation = location - showingLocationDetail = true - } - - func navigateToPost(_ post: CommunityPost) { - selectedPost = post - showingPostDetail = true - } - - func navigateToProfile() { - showingProfile = true - } - - func navigateToSettings() { - showingSettings = true - } - - func navigateToThemeSettings() { - showingThemeSettings = true - } - - func navigateToAchievements() { - showingAchievements = true - } - - func navigateToMemberCenter() { - showingMemberCenter = true - } - - func showAddLocation() { - showingAddLocation = true - } - - func showChatHistory() { - showingChatHistory = true - } - - // MARK: - Dismiss Methods - - func dismissAllModals() { - showingChatHistory = false - showingFullScreenChat = false - showingSettings = false - showingProfile = false - showingThemeSettings = false - showingAddLocation = false - showingTopicDetail = false - showingLocationDetail = false - showingPostDetail = false - showingAchievements = false - showingMemberCenter = false - - selectedConversation = nil - selectedTopic = nil - selectedLocation = nil - selectedPost = nil - selectedAchievement = nil - currentChatConversation = nil - } - - func dismissCurrentModal() { - if showingFullScreenChat { - showingFullScreenChat = false - currentChatConversation = nil - } else if showingChatHistory { - showingChatHistory = false - } else if showingSettings { - showingSettings = false - } else if showingProfile { - showingProfile = false - } else if showingThemeSettings { - showingThemeSettings = false - } else if showingAddLocation { - showingAddLocation = false - } else if showingTopicDetail { - showingTopicDetail = false - selectedTopic = nil - } else if showingLocationDetail { - showingLocationDetail = false - selectedLocation = nil - } else if showingPostDetail { - showingPostDetail = false - selectedPost = nil - } else if showingAchievements { - showingAchievements = false - } else if showingMemberCenter { - showingMemberCenter = false - } - } - - // MARK: - Deep Link Methods - - func handleDeepLink(url: URL) { - // 处理深度链接,例如从通知或分享链接打开特定页面 - guard let components = URLComponents(url: url, resolvingAgainstBaseURL: false) else { return } - - switch components.host { - case "conversation": - if let conversationId = components.queryItems?.first(where: { $0.name == "id" })?.value, - let uuid = UUID(uuidString: conversationId) { - // 查找并打开对应的对话 - let conversation = MockDataManager.shared.conversations.first { $0.id == uuid } - navigateToChat(conversation: conversation) - } - - case "topic": - if let topicId = components.queryItems?.first(where: { $0.name == "id" })?.value, - let uuid = UUID(uuidString: topicId) { - // 查找并打开对应的成长课题 - let topic = MockDataManager.shared.growthTopics.first { $0.id == uuid } - if let topic = topic { - navigateToTab(.growth) - navigateToTopic(topic) - } - } - - case "location": - if let locationId = components.queryItems?.first(where: { $0.name == "id" })?.value, - let uuid = UUID(uuidString: locationId) { - // 查找并打开对应的地点 - let location = MockDataManager.shared.locationPins.first { $0.id == uuid } - if let location = location { - navigateToTab(.explore) - navigateToLocation(location) - } - } - - case "post": - if let postId = components.queryItems?.first(where: { $0.name == "id" })?.value, - let uuid = UUID(uuidString: postId) { - // 查找并打开对应的帖子 - let post = MockDataManager.shared.communityPosts.first { $0.id == uuid } - if let post = post { - navigateToTab(.explore) - navigateToPost(post) - } - } - - default: - break - } - } - - // MARK: - Loading Management - - func showLoading(_ message: String = "加载中...") { - loadingMessage = message - withAnimation(.easeInOut) { - isLoading = true - } - } - - func hideLoading() { - withAnimation(.easeInOut) { - isLoading = false - } - loadingMessage = "" - } - - // MARK: - Chat Management - - func sendMessage(_ content: String, to conversation: Conversation? = nil) { - guard !content.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else { return } - - let targetConversation = conversation ?? currentChatConversation - - if let conv = targetConversation { - MockDataManager.shared.addMessage(to: conv.id, content: content, sender: .user) - } else { - // 创建新对话 - let newConversation = MockDataManager.shared.createNewConversation() - currentChatConversation = newConversation - MockDataManager.shared.addMessage(to: newConversation.id, content: content, sender: .user) - } - - chatInputText = "" - } - - func toggleVoiceMode() { - withAnimation(.easeInOut(duration: 0.2)) { - isVoiceMode.toggle() - } - } - - // MARK: - Utility Methods - - func clearNavigationPath(for tab: MainTab) { - switch tab { - case .record: - recordNavigation = NavigationPath() - case .growth: - growthNavigation = NavigationPath() - case .explore: - exploreNavigation = NavigationPath() - case .insight: - insightNavigation = NavigationPath() - } - } - - func popToRoot(for tab: MainTab) { - clearNavigationPath(for: tab) - dismissAllModals() - } - - func canGoBack(for tab: MainTab) -> Bool { - switch tab { - case .record: - return !recordNavigation.isEmpty - case .growth: - return !growthNavigation.isEmpty - case .explore: - return !exploreNavigation.isEmpty - case .insight: - return !insightNavigation.isEmpty - } - } - - func goBack(for tab: MainTab) { - switch tab { - case .record: - if !recordNavigation.isEmpty { - recordNavigation.removeLast() - } - case .growth: - if !growthNavigation.isEmpty { - growthNavigation.removeLast() - } - case .explore: - if !exploreNavigation.isEmpty { - exploreNavigation.removeLast() - } - case .insight: - if !insightNavigation.isEmpty { - insightNavigation.removeLast() - } - } - } -} - -// MARK: - Main Tab Enum - -enum MainTab: String, CaseIterable { - case record = "记录" - case growth = "治愈" - case explore = "探索" - case insight = "我的" - - var title: String { - return self.rawValue - } - - var icon: String { - switch self { - case .record: return "brain.head.profile" - case .growth: return "heart" - case .explore: return "map" - case .insight: return "person" - } - } - - var selectedIcon: String { - switch self { - case .record: return "brain.head.profile.fill" - case .growth: return "heart.fill" - case .explore: return "map.fill" - case .insight: return "person.fill" - } - } - - var color: Color { - switch self { - case .record: return .blue - case .growth: return .pink - case .explore: return .green - case .insight: return .orange - } - } -} - -// MARK: - Navigation Destination Types - -enum NavigationDestination: Hashable { - case conversation(Conversation) - case topic(GrowthTopic) - case location(LocationPin) - case post(CommunityPost) - case achievement(Achievement) - case settings - case profile - case chatHistory - case addLocation - - static func == (lhs: NavigationDestination, rhs: NavigationDestination) -> Bool { - switch (lhs, rhs) { - case (.conversation(let lhsConv), .conversation(let rhsConv)): - return lhsConv.id == rhsConv.id - case (.topic(let lhsTopic), .topic(let rhsTopic)): - return lhsTopic.id == rhsTopic.id - case (.location(let lhsLoc), .location(let rhsLoc)): - return lhsLoc.id == rhsLoc.id - case (.post(let lhsPost), .post(let rhsPost)): - return lhsPost.id == rhsPost.id - case (.achievement(let lhsAch), .achievement(let rhsAch)): - return lhsAch.id == rhsAch.id - case (.settings, .settings), - (.profile, .profile), - (.chatHistory, .chatHistory), - (.addLocation, .addLocation): - return true - default: - return false - } - } - - func hash(into hasher: inout Hasher) { - switch self { - case .conversation(let conv): - hasher.combine("conversation") - hasher.combine(conv.id) - case .topic(let topic): - hasher.combine("topic") - hasher.combine(topic.id) - case .location(let location): - hasher.combine("location") - hasher.combine(location.id) - case .post(let post): - hasher.combine("post") - hasher.combine(post.id) - case .achievement(let achievement): - hasher.combine("achievement") - hasher.combine(achievement.id) - case .settings: - hasher.combine("settings") - case .profile: - hasher.combine("profile") - case .chatHistory: - hasher.combine("chatHistory") - case .addLocation: - hasher.combine("addLocation") - } - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/AnimationComponents.swift b/EmotionMuseum/EmotionMuseum/Views/AnimationComponents.swift deleted file mode 100644 index d20a8ce..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/AnimationComponents.swift +++ /dev/null @@ -1,565 +0,0 @@ -// -// AnimationComponents.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 动画配置 -struct AnimationConfig { - static let springy = Animation.spring(response: 0.6, dampingFraction: 0.8) - static let bouncy = Animation.spring(response: 0.4, dampingFraction: 0.6) - static let smooth = Animation.easeInOut(duration: 0.3) - static let quick = Animation.easeOut(duration: 0.2) - static let slow = Animation.easeInOut(duration: 0.8) - static let elastic = Animation.interpolatingSpring(stiffness: 300, damping: 15) -} - -// MARK: - 动画视图修饰符 -struct AnimatedAppearance: ViewModifier { - @State private var isVisible = false - let delay: Double - let animation: Animation - - init(delay: Double = 0, animation: Animation = AnimationConfig.smooth) { - self.delay = delay - self.animation = animation - } - - func body(content: Content) -> some View { - content - .scaleEffect(isVisible ? 1 : 0.8) - .opacity(isVisible ? 1 : 0) - .offset(y: isVisible ? 0 : 20) - .onAppear { - DispatchQueue.main.asyncAfter(deadline: .now() + delay) { - withAnimation(animation) { - isVisible = true - } - } - } - } -} - -struct AnimatedCounter: ViewModifier { - @State private var currentValue: Int = 0 - let targetValue: Int - let duration: Double - - init(targetValue: Int, duration: Double = 1.0) { - self.targetValue = targetValue - self.duration = duration - } - - func body(content: Content) -> some View { - Text("\(currentValue)") - .onAppear { - animateCounter() - } - .onChange(of: targetValue) { _ in - animateCounter() - } - } - - private func animateCounter() { - currentValue = 0 - let stepDuration = duration / Double(targetValue) - - for i in 1...targetValue { - DispatchQueue.main.asyncAfter(deadline: .now() + stepDuration * Double(i)) { - withAnimation(.easeOut(duration: 0.1)) { - currentValue = i - } - } - } - } -} - -// MARK: - 动画按钮 -struct AnimatedButton: View { - let action: () -> Void - let content: () -> Content - @State private var isPressed = false - @State private var scale: CGFloat = 1.0 - - init(action: @escaping () -> Void, @ViewBuilder content: @escaping () -> Content) { - self.action = action - self.content = content - } - - var body: some View { - Button(action: { - impactFeedback() - action() - }) { - content() - } - .scaleEffect(scale) - .onLongPressGesture(minimumDuration: 0, maximumDistance: .infinity) { isPressing in - withAnimation(AnimationConfig.quick) { - scale = isPressing ? 0.95 : 1.0 - isPressed = isPressing - } - } perform: { - // 长按完成时的动作 - } - } - - private func impactFeedback() { - let impactFeedback = UIImpactFeedbackGenerator(style: .light) - impactFeedback.impactOccurred() - } -} - -// MARK: - 波纹动画 -struct RippleEffect: View { - @State private var animationAmount = 1.0 - let color: Color - let size: CGFloat - - init(color: Color = .blue, size: CGFloat = 100) { - self.color = color - self.size = size - } - - var body: some View { - Circle() - .fill(color.opacity(0.3)) - .frame(width: size, height: size) - .scaleEffect(animationAmount) - .opacity(2 - animationAmount) - .animation( - Animation.easeOut(duration: 1.5) - .repeatForever(autoreverses: false), - value: animationAmount - ) - .onAppear { - animationAmount = 2 - } - } -} - -// MARK: - 脉冲动画 -struct PulseEffect: ViewModifier { - @State private var isAnimating = false - let color: Color - let size: CGFloat - - init(color: Color = .blue, size: CGFloat = 1.2) { - self.color = color - self.size = size - } - - func body(content: Content) -> some View { - content - .scaleEffect(isAnimating ? size : 1.0) - .animation( - Animation.easeInOut(duration: 1.0) - .repeatForever(autoreverses: true), - value: isAnimating - ) - .onAppear { - isAnimating = true - } - } -} - -// MARK: - 摇摆动画 -struct ShakeEffect: ViewModifier { - @State private var shakeOffset: CGFloat = 0 - let intensity: CGFloat - - init(intensity: CGFloat = 10) { - self.intensity = intensity - } - - func body(content: Content) -> some View { - content - .offset(x: shakeOffset) - .onAppear { - withAnimation( - Animation.easeInOut(duration: 0.1) - .repeatCount(4, autoreverses: true) - ) { - shakeOffset = intensity - } - } - } -} - -// MARK: - 流体动画背景 -struct FluidBackground: View { - @State private var animationOffset = 0.0 - let colors: [Color] - - init(colors: [Color] = [.blue, .purple, .pink]) { - self.colors = colors - } - - var body: some View { - GeometryReader { geometry in - ZStack { - ForEach(0..: View { - let content: () -> Content - @State private var isVisible = false - let index: Int - - init(index: Int, @ViewBuilder content: @escaping () -> Content) { - self.index = index - self.content = content - } - - var body: some View { - content() - .scaleEffect(isVisible ? 1 : 0.8) - .opacity(isVisible ? 1 : 0) - .offset(x: isVisible ? 0 : -50) - .onAppear { - DispatchQueue.main.asyncAfter(deadline: .now() + Double(index) * 0.1) { - withAnimation(AnimationConfig.bouncy) { - isVisible = true - } - } - } - } -} - -// MARK: - 卡片翻转动画 -struct FlipCard: View { - let front: () -> Front - let back: () -> Back - @State private var isFlipped = false - @State private var rotation = 0.0 - - init(@ViewBuilder front: @escaping () -> Front, @ViewBuilder back: @escaping () -> Back) { - self.front = front - self.back = back - } - - var body: some View { - ZStack { - if !isFlipped { - front() - } else { - back() - .rotation3DEffect(.degrees(180), axis: (x: 0, y: 1, z: 0)) - } - } - .rotation3DEffect(.degrees(rotation), axis: (x: 0, y: 1, z: 0)) - .onTapGesture { - withAnimation(.easeInOut(duration: 0.6)) { - rotation += 180 - isFlipped.toggle() - } - } - } -} - -// MARK: - 进度条动画 -struct AnimatedProgressBar: View { - let progress: Double - let height: CGFloat - let backgroundColor: Color - let fillColor: Color - @State private var animatedProgress: Double = 0 - - init( - progress: Double, - height: CGFloat = 8, - backgroundColor: Color = Color.gray.opacity(0.3), - fillColor: Color = .blue - ) { - self.progress = progress - self.height = height - self.backgroundColor = backgroundColor - self.fillColor = fillColor - } - - var body: some View { - GeometryReader { geometry in - ZStack(alignment: .leading) { - Rectangle() - .fill(backgroundColor) - .frame(height: height) - .cornerRadius(height / 2) - - Rectangle() - .fill(fillColor) - .frame( - width: geometry.size.width * animatedProgress, - height: height - ) - .cornerRadius(height / 2) - .animation(AnimationConfig.smooth, value: animatedProgress) - } - } - .frame(height: height) - .onAppear { - withAnimation(.easeOut(duration: 1.0)) { - animatedProgress = progress - } - } - .onChange(of: progress) { newValue in - withAnimation(AnimationConfig.smooth) { - animatedProgress = newValue - } - } - } -} - -// MARK: - 浮动动作按钮 -struct FloatingActionButton: View { - let action: () -> Void - let icon: String - let color: Color - @State private var isPressed = false - @State private var rotation = 0.0 - - init(icon: String, color: Color = .blue, action: @escaping () -> Void) { - self.icon = icon - self.color = color - self.action = action - } - - var body: some View { - Button(action: { - withAnimation(AnimationConfig.bouncy) { - rotation += 360 - } - action() - }) { - Image(systemName: icon) - .font(.title2) - .foregroundColor(.white) - .frame(width: 56, height: 56) - .background(color) - .clipShape(Circle()) - .shadow(color: color.opacity(0.4), radius: 8, x: 0, y: 4) - } - .rotationEffect(.degrees(rotation)) - .scaleEffect(isPressed ? 0.9 : 1.0) - .onLongPressGesture(minimumDuration: 0, maximumDistance: .infinity) { isPressing in - withAnimation(AnimationConfig.quick) { - isPressed = isPressing - } - } perform: {} - } -} - -// MARK: - 粒子动画 -struct ParticleSystem: View { - @State private var particles: [AnimationParticle] = [] - let particleCount: Int - let colors: [Color] - - init(particleCount: Int = 20, colors: [Color] = [.blue, .purple, .pink]) { - self.particleCount = particleCount - self.colors = colors - } - - var body: some View { - GeometryReader { geometry in - ZStack { - ForEach(particles) { particle in - Circle() - .fill(particle.color) - .frame(width: particle.size, height: particle.size) - .position(particle.position) - .opacity(particle.opacity) - } - } - } - .onAppear { - createParticles() - animateParticles() - } - } - - private func createParticles() { - particles = (0.. some View { - modifier(AnimatedAppearance(delay: delay, animation: animation)) - } - - func pulseEffect(color: Color = .blue, size: CGFloat = 1.2) -> some View { - modifier(PulseEffect(color: color, size: size)) - } - - func shakeEffect(intensity: CGFloat = 10) -> some View { - modifier(ShakeEffect(intensity: intensity)) - } - - func bounceOnTap(scale: CGFloat = 0.95) -> some View { - scaleEffect(1.0) - .onTapGesture { - withAnimation(AnimationConfig.bouncy) { - // 实现点击反弹效果 - } - } - } - - func cardTransition() -> some View { - transition( - .asymmetric( - insertion: .scale(scale: 0.8).combined(with: .opacity), - removal: .scale(scale: 1.2).combined(with: .opacity) - ) - ) - } - - func slideTransition(edge: Edge = .bottom) -> some View { - transition(.move(edge: edge).combined(with: .opacity)) - } - - func rotateTransition() -> some View { - transition(.scale(scale: 0.1).combined(with: .opacity)) - } -} - -// MARK: - 页面过渡动画 -struct PageTransition: View { - let content: () -> Content - @State private var isVisible = false - let transitionType: TransitionType - - enum TransitionType { - case slide, fade, scale, rotate - } - - init(type: TransitionType = .fade, @ViewBuilder content: @escaping () -> Content) { - self.transitionType = type - self.content = content - } - - var body: some View { - content() - .opacity(isVisible ? 1 : 0) - .scaleEffect(transitionType == .scale ? (isVisible ? 1 : 0.8) : 1) - .offset(y: transitionType == .slide ? (isVisible ? 0 : 50) : 0) - .rotationEffect(.degrees(transitionType == .rotate ? (isVisible ? 0 : 90) : 0)) - .onAppear { - withAnimation(AnimationConfig.smooth) { - isVisible = true - } - } - } -} - -// MARK: - 预览 -#Preview("动画组件") { - VStack(spacing: 20) { - AnimatedGradientText("情绪博物馆") - - AnimatedProgressBar(progress: 0.7) - .frame(height: 10) - - FloatingActionButton(icon: "plus") { - print("FAB tapped") - } - - RippleEffect(color: .blue, size: 60) - } - .padding() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/ChakraHealingView.swift b/EmotionMuseum/EmotionMuseum/Views/ChakraHealingView.swift deleted file mode 100644 index eaf0bf6..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/ChakraHealingView.swift +++ /dev/null @@ -1,395 +0,0 @@ -// -// ChakraHealingView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI -import AVFoundation - -struct ChakraHealingView: View { - let chakra: ChakraType - let onComplete: () -> Void - - @State private var isPlaying = false - @State private var progress: Double = 0.0 - @State private var timer: Timer? = nil - @State private var breathingPhase: BreathingPhase = .inhale - @State private var breathCount = 0 - @State private var beforeScore: Int? = nil - @State private var afterScore: Int? = nil - @State private var showingCompletionSheet = false - - // 粒子系统状态 - @State private var particles: [Particle] = [] - - var body: some View { - ZStack { - // 背景色彩 - chakra.color.opacity(0.2) - .ignoresSafeArea() - - // 动态背景 - ZStack { - // 呼吸引导圆圈 - Circle() - .fill( - RadialGradient( - gradient: Gradient(colors: [chakra.color, chakra.color.opacity(0.5)]), - center: .center, - startRadius: 10, - endRadius: 150 - ) - ) - .frame(width: breathingPhase == .inhale ? 200 : 150, - height: breathingPhase == .inhale ? 200 : 150) - .opacity(0.7) - .animation(.easeInOut(duration: breathingPhase == .inhale ? 4 : 4), value: breathingPhase) - - // 粒子效果 - ForEach(particles) { particle in - Circle() - .fill(chakra.color.opacity(particle.opacity)) - .frame(width: particle.size, height: particle.size) - .position(particle.position) - } - } - - // 内容 - VStack(spacing: 30) { - // 顶部信息 - VStack(spacing: 8) { - Text(chakra.rawValue) - .font(.largeTitle) - .fontWeight(.bold) - .foregroundColor(chakra.color) - - Text(chakra.description) - .font(.subheadline) - .foregroundColor(.secondary) - } - .padding(.top, 40) - - Spacer() - - // 呼吸引导文字 - Text(breathingPhase == .inhale ? "吸气..." : "呼气...") - .font(.title) - .fontWeight(.medium) - .foregroundColor(chakra.color) - .opacity(isPlaying ? 1 : 0) - - Spacer() - - // 控制区域 - VStack(spacing: 20) { - // 进度条 - ProgressView(value: progress) - .progressViewStyle(LinearProgressViewStyle(tint: chakra.color)) - .padding(.horizontal) - - // 播放控制 - HStack(spacing: 40) { - Button(action: { - if beforeScore == nil { - // 如果还没开始,先评分 - showBeforeScorePrompt() - } else { - togglePlayback() - } - }) { - Image(systemName: isPlaying ? "pause.circle.fill" : "play.circle.fill") - .font(.system(size: 60)) - .foregroundColor(chakra.color) - } - - Button(action: { - completeSession() - }) { - Image(systemName: "xmark.circle.fill") - .font(.system(size: 40)) - .foregroundColor(.gray) - } - } - .padding(.bottom, 30) - } - .background( - Rectangle() - .fill(Color(.systemBackground)) - .cornerRadius(30, corners: [.topLeft, .topRight]) - .shadow(color: Color.black.opacity(0.1), radius: 10, x: 0, y: -5) - ) - } - } - .onAppear { - setupParticles() - } - .onDisappear { - stopSession() - } - .sheet(isPresented: $showingCompletionSheet) { - SessionCompletionView(chakra: chakra, beforeScore: beforeScore ?? 5, afterScore: afterScore ?? 5) { - onComplete() - } - } - } - - // MARK: - 私有方法 - - private func setupParticles() { - // 创建初始粒子 - for _ in 0..<20 { - particles.append(Particle.random(in: UIScreen.main.bounds, color: chakra.color)) - } - } - - private func togglePlayback() { - isPlaying.toggle() - - if isPlaying { - startSession() - } else { - pauseSession() - } - } - - private func startSession() { - // 开始呼吸动画 - startBreathingAnimation() - - // 开始粒子动画 - animateParticles() - - // 模拟进度 - timer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in - if progress < 1.0 { - progress += 0.0005 // 大约需要30分钟完成 - } else { - completeSession() - } - } - } - - private func pauseSession() { - timer?.invalidate() - } - - private func stopSession() { - timer?.invalidate() - timer = nil - } - - private func startBreathingAnimation() { - // 呼吸动画循环 - Timer.scheduledTimer(withTimeInterval: 4, repeats: true) { _ in - withAnimation { - breathingPhase = breathingPhase == .inhale ? .exhale : .inhale - } - - breathCount += 1 - if breathCount >= 100 { - completeSession() - } - } - } - - private func animateParticles() { - // 粒子动画 - Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { _ in - for i in 0.. Particle { - let position = CGPoint( - x: CGFloat.random(in: rect.minX...rect.maxX), - y: CGFloat.random(in: rect.minY...rect.maxY) - ) - - let angle = CGFloat.random(in: 0...(2 * .pi)) - let direction = CGVector( - dx: cos(angle), - dy: sin(angle) - ) - - return Particle( - position: position, - direction: direction, - speed: CGFloat.random(in: 0.5...2.0), - size: CGFloat.random(in: 3...8), - opacity: Double.random(in: 0.3...0.7) - ) - } -} - -// MARK: - 会话完成视图 -struct SessionCompletionView: View { - let chakra: ChakraType - let beforeScore: Int - let afterScore: Int - let onDismiss: () -> Void - - var body: some View { - VStack(spacing: 20) { - // 标题 - Text("疗愈完成") - .font(.title) - .fontWeight(.bold) - - // 脉轮信息 - HStack(spacing: 12) { - Circle() - .fill(chakra.color) - .frame(width: 30, height: 30) - - Text(chakra.rawValue) - .font(.headline) - } - - Divider() - - // 疗愈效果 - VStack(alignment: .leading, spacing: 16) { - Text("疗愈效果") - .font(.headline) - - HStack(spacing: 30) { - VStack { - Text("疗愈前") - .font(.subheadline) - .foregroundColor(.secondary) - - Text("\(beforeScore)") - .font(.title) - .fontWeight(.bold) - } - - Image(systemName: "arrow.right") - .font(.title2) - .foregroundColor(.secondary) - - VStack { - Text("疗愈后") - .font(.subheadline) - .foregroundColor(.secondary) - - Text("\(afterScore)") - .font(.title) - .fontWeight(.bold) - .foregroundColor(.green) - } - } - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - } - .frame(maxWidth: .infinity, alignment: .leading) - .padding(.horizontal) - - // 反馈信息 - VStack(alignment: .leading, spacing: 12) { - Text("反馈") - .font(.headline) - - Text("你的\(chakra.rawValue)能量已得到提升,情绪状态有所改善。建议每天进行一次疗愈,保持能量平衡。") - .font(.body) - .foregroundColor(.secondary) - } - .frame(maxWidth: .infinity, alignment: .leading) - .padding(.horizontal) - - Spacer() - - // 按钮 - Button(action: { - onDismiss() - }) { - Text("返回") - .font(.headline) - .foregroundColor(.white) - .frame(maxWidth: .infinity) - .padding() - .background(chakra.color) - .cornerRadius(12) - } - .padding(.horizontal) - .padding(.bottom) - } - .padding(.top, 40) - } -} - -// MARK: - 扩展 -extension View { - func cornerRadius(_ radius: CGFloat, corners: UIRectCorner) -> some View { - clipShape(RoundedCorner(radius: radius, corners: corners)) - } -} - -struct RoundedCorner: Shape { - var radius: CGFloat = .infinity - var corners: UIRectCorner = .allCorners - - func path(in rect: CGRect) -> Path { - let path = UIBezierPath(roundedRect: rect, byRoundingCorners: corners, cornerRadii: CGSize(width: radius, height: radius)) - return Path(path.cgPath) - } -} - -#Preview { - ChakraHealingView(chakra: .heart, onComplete: {}) -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/ConversationPreviewCard.swift b/EmotionMuseum/EmotionMuseum/Views/ConversationPreviewCard.swift deleted file mode 100644 index 0af25e2..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/ConversationPreviewCard.swift +++ /dev/null @@ -1,115 +0,0 @@ -// -// ConversationPreviewCard.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/7/5. -// - -import SwiftUI - -struct ConversationPreviewCard: View { - let conversation: Conversation - let onTap: () -> Void - - var body: some View { - Button(action: onTap) { - HStack(spacing: 12) { - // 对话类型图标 - Image(systemName: "message.circle.fill") - .font(.title2) - .foregroundColor(Color("AccentColor")) - - VStack(alignment: .leading, spacing: 4) { - // 对话标题 - Text(conversation.title) - .font(.headline) - .foregroundColor(Color("PrimaryText")) - .lineLimit(1) - - // 最后一条消息或摘要 - if let lastMessage = conversation.lastMessage { - Text(lastMessage.content) - .font(.subheadline) - .foregroundColor(Color("SecondaryText")) - .lineLimit(2) - } else if let summary = conversation.summary { - Text(summary) - .font(.subheadline) - .foregroundColor(Color("SecondaryText")) - .lineLimit(2) - } else { - Text("点击查看对话详情") - .font(.subheadline) - .foregroundColor(Color("TertiaryText")) - } - - // 时间和消息数量 - HStack { - Text(conversation.startTime.timeAgo) - .font(.caption) - .foregroundColor(Color("TertiaryText")) - - Spacer() - - Text("\(conversation.messageCount) 条消息") - .font(.caption) - .foregroundColor(Color("TertiaryText")) - } - } - - Spacer() - - // 情绪分析指示器 - if let emotion = conversation.emotionAnalysis?.primaryEmotion { - VStack { - Text(emotion.emoji) - .font(.title2) - - Text(emotion.rawValue) - .font(.caption2) - .foregroundColor(emotion.color) - } - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color("CardBackground")) - .shadow( - color: Color.black.opacity(0.05), - radius: 3, - x: 0, - y: 2 - ) - ) - } - .buttonStyle(PlainButtonStyle()) - } -} - -#Preview { - ConversationPreviewCard( - conversation: Conversation( - userId: UUID(), - title: "今天的心情分享", - messages: [ - Message( - conversationId: UUID(), - content: "我今天感觉有点焦虑,不知道该怎么办。", - type: .text, - sender: .user - ) - ], - emotionAnalysis: EmotionAnalysis( - primaryEmotion: .anxiety, - emotionIntensity: 0.7, - emotionTrend: .stable, - keywords: ["焦虑", "压力"], - aiInsights: "用户表现出一定程度的焦虑情绪" - ) - ) - ) { - print("Tapped conversation") - } - .padding() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/ExploreView.swift b/EmotionMuseum/EmotionMuseum/Views/ExploreView.swift deleted file mode 100644 index 676c54b..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/ExploreView.swift +++ /dev/null @@ -1,226 +0,0 @@ -// -// ExploreView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI -import MapKit -import CoreLocation - -// MARK: - 探索页面主视图 -struct ExploreView: View { - @EnvironmentObject var mockDataManager: MockDataManager - @EnvironmentObject var navigationManager: NavigationManager - @State private var selectedLocation: LocationPin? - @State private var showingLocationDetail = false - @State private var showingCommunityFeed = false - @State private var savedLocations: [LocationPin] = [] - @State private var showingMapView = true - @State private var showingLocationPicker = false - @State private var shouldMoveToLocationPin = false - - var body: some View { - NavigationView { - VStack(spacing: 0) { - // 顶部切换按钮 - HStack { - Button(action: { - showingMapView = true - showingCommunityFeed = false - }) { - HStack { - Image(systemName: "map") - Text("情绪地图") - } - .foregroundColor(showingMapView ? .white : .primary) - .padding(.horizontal, 16) - .padding(.vertical, 8) - .background(showingMapView ? Color.blue : Color.clear) - .cornerRadius(20) - } - - Spacer() - - Button(action: { - showingMapView = false - showingCommunityFeed = true - }) { - HStack { - Image(systemName: "person.3") - Text("社区分享") - } - .foregroundColor(showingCommunityFeed ? .white : .primary) - .padding(.horizontal, 16) - .padding(.vertical, 8) - .background(showingCommunityFeed ? Color.green : Color.clear) - .cornerRadius(20) - } - } - .padding() - .background(Color(.systemGray6)) - - // 主要内容区域 - if showingMapView { - mapViewSection - } else { - communityFeedSection - } - } - .navigationTitle("探索") - .navigationBarTitleDisplayMode(.large) - .onAppear { - loadSavedLocations() - } - } - .sheet(isPresented: $showingLocationDetail) { - if let location = selectedLocation { - LocationDetailView(location: location) - } - } - } - - // MARK: - 地图视图部分 - private var mapViewSection: some View { - VStack { - // 地图区域 - ZStack { - MapView() - .frame(height: 300) - .cornerRadius(12) - .padding() - } - // 推荐位置列表 - VStack(alignment: .leading, spacing: 12) { - HStack { - Text("推荐地点") - .font(.headline) - Spacer() - Button("查看全部") { - // 查看全部推荐地点 - } - .font(.caption) - .foregroundColor(.blue) - } - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 12) { - ForEach(Array(savedLocations.prefix(5))) { location in - LocationCard(location: location) { - selectedLocation = location - showingLocationDetail = true - } - } - } - .padding(.horizontal) - } - } - .padding() - Spacer() - } - } - - // MARK: - 社区动态部分 - private var communityFeedSection: some View { - VStack { - ScrollView { - LazyVStack(spacing: 16) { - ForEach(mockDataManager.communityPosts) { post in - CommunityPostCard(post: post) - } - } - .padding() - } - } - } - - // MARK: - 私有方法 - private func loadSavedLocations() { - // 创建一些示例位置数据 - savedLocations = [ - LocationPin( - coordinate: Coordinate(latitude: 39.9042, longitude: 116.4074), - title: "天安门广场", - description: "庄严肃穆的历史地标", - type: .popular, - emotionTags: [.neutral], - category: .other - ), - LocationPin( - coordinate: Coordinate(latitude: 39.9163, longitude: 116.3972), - title: "故宫博物院", - description: "深厚的历史文化底蕴", - type: .aiRecommended, - emotionTags: [.surprise], - category: .museum - ), - LocationPin( - coordinate: Coordinate(latitude: 39.9925, longitude: 116.3135), - title: "颐和园", - description: "宁静优美的皇家园林", - type: .personal, - emotionTags: [.contentment], - category: .garden - ), - LocationPin( - coordinate: Coordinate(latitude: 40.0090, longitude: 116.3348), - title: "圆明园", - description: "历史的见证与思考", - type: .community, - emotionTags: [.sadness], - category: .park - ), - LocationPin( - coordinate: Coordinate(latitude: 39.9059, longitude: 116.3913), - title: "北海公园", - description: "古典园林的宁静之美", - type: .popular, - emotionTags: [.joy], - category: .park - ) - ] - } -} - -// MARK: - 位置卡片组件 -struct LocationCard: View { - let location: LocationPin - let onTap: () -> Void - - var body: some View { - Button(action: onTap) { - VStack(alignment: .leading, spacing: 8) { - // 位置图片占位符 - Rectangle() - .fill(Color(.systemGray5)) - .frame(width: 120, height: 80) - .overlay( - Image(systemName: location.category.icon) - .font(.title) - .foregroundColor(.gray) - ) - .cornerRadius(8) - - VStack(alignment: .leading, spacing: 4) { - Text(location.title) - .font(.caption) - .fontWeight(.medium) - .lineLimit(1) - - Text(location.description) - .font(.caption2) - .foregroundColor(.secondary) - .lineLimit(2) - } - .frame(width: 120, alignment: .leading) - } - } - .buttonStyle(PlainButtonStyle()) - } -} - -#Preview { - ExploreView() - .environmentObject(MockDataManager.shared) - .environmentObject(NavigationManager()) -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/GrowthView.swift b/EmotionMuseum/EmotionMuseum/Views/GrowthView.swift deleted file mode 100644 index a395c66..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/GrowthView.swift +++ /dev/null @@ -1,808 +0,0 @@ -// -// GrowthView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 治愈页面主视图 -struct GrowthView: View { - @StateObject private var themeManager = ThemeManager() - @State private var showingTopicDetail = false - @State private var selectedTopic: GrowthTopic? - @State private var showingInsights = false - @State private var showingRadarChart = false - @State private var loadingState: LoadingState = .idle - @State private var isInitialLoading = true - - var body: some View { - NavigationView { - LoadingStateView(loadingState: isInitialLoading ? .loading : .loaded) { - ScrollView { - VStack(spacing: 24) { - // 情绪洞察卡片 - EmotionalInsightCard { - showingInsights = true - } - .transition(.scale(scale: 0.8).combined(with: .opacity)) - - // 用户画像五维图 - UserProfileRadarCard { - showingRadarChart = true - } - .transition(.scale(scale: 0.8).combined(with: .opacity)) - - // 成长课题系统 - GrowthTopicsSection { topic in - selectedTopic = topic - showingTopicDetail = true - } - .transition(.scale(scale: 0.8).combined(with: .opacity)) - - // 今日推荐行动 - TodayActionCard() - .transition(.scale(scale: 0.8).combined(with: .opacity)) - - // 成长历程 - GrowthTimelineCard() - .transition(.scale(scale: 0.8).combined(with: .opacity)) - } - .padding(.horizontal) - .padding(.vertical) - } - .refreshable { - await refreshData() - } - } loadingView: { - AnyView(growthViewSkeleton) - } - .navigationTitle("成长治愈") - .navigationBarTitleDisplayMode(.large) - } - .environmentObject(themeManager) - .preferredColorScheme(themeManager.systemFollowsDeviceTheme ? nil : (themeManager.isDarkMode ? .dark : .light)) - .sheet(isPresented: $showingTopicDetail) { - if let topic = selectedTopic { - TopicDetailView(topic: topic) - .environmentObject(themeManager) - } - } - .sheet(isPresented: $showingInsights) { - EmotionalInsightsView() - .environmentObject(themeManager) - } - .sheet(isPresented: $showingRadarChart) { - NavigationView { - VStack { - Text("用户画像雷达图") - .font(.title) - .padding() - - Text("这里显示用户的多维度能力雷达图") - .foregroundColor(.secondary) - .padding() - - Spacer() - } - .navigationTitle("用户画像") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarTrailing) { - Button("关闭") { - showingRadarChart = false - } - } - } - } - .environmentObject(themeManager) - } - .onAppear { - simulateInitialLoading() - } - } - - // MARK: - 私有方法 - private func simulateInitialLoading() { - loadingState = .loading - - // 模拟异步加载过程 - DispatchQueue.main.asyncAfter(deadline: .now() + 1.2) { - withAnimation(.easeOut(duration: 0.8)) { - isInitialLoading = false - loadingState = .loaded - } - } - } - - private func refreshData() async { - loadingState = .loading - - // 模拟数据刷新 - try? await Task.sleep(nanoseconds: 800_000_000) // 0.8秒 - - DispatchQueue.main.async { - withAnimation(.easeOut(duration: 0.6)) { - loadingState = .loaded - } - } - } - - // MARK: - 骨架屏视图 - private var growthViewSkeleton: some View { - ScrollView { - VStack(spacing: 24) { - // 情绪洞察卡片骨架屏 - insightCardSkeleton - - // 用户画像卡片骨架屏 - radarCardSkeleton - - // 成长课题骨架屏 - topicsGridSkeleton - - // 今日推荐骨架屏 - actionCardSkeleton - - // 成长历程骨架屏 - timelineCardSkeleton - } - .padding(.horizontal) - .padding(.vertical) - } - .background(Color.theme.background) - } - - private var insightCardSkeleton: some View { - VStack(alignment: .leading, spacing: 16) { - HStack { - VStack(alignment: .leading, spacing: 4) { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - SkeletonView(width: 140, height: 12, cornerRadius: 3) - } - Spacer() - SkeletonView(width: 24, height: 24, cornerRadius: 12) - } - - VStack(spacing: 12) { - ForEach(0..<3, id: \.self) { _ in - HStack(spacing: 12) { - SkeletonView(width: 20, height: 16, cornerRadius: 4) - SkeletonView(width: 80, height: 14, cornerRadius: 3) - Spacer() - SkeletonView(width: 60, height: 14, cornerRadius: 3) - } - } - } - - HStack { - SkeletonView(width: 100, height: 12, cornerRadius: 3) - Spacer() - SkeletonView(width: 12, height: 12, cornerRadius: 3) - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - } - - private var radarCardSkeleton: some View { - VStack(spacing: 16) { - HStack { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - Spacer() - SkeletonView(width: 24, height: 24, cornerRadius: 12) - } - - VStack(spacing: 8) { - ForEach(0..<5, id: \.self) { _ in - HStack { - SkeletonView(width: 60, height: 12, cornerRadius: 3) - SkeletonView(height: 8, cornerRadius: 4) - SkeletonView(width: 40, height: 12, cornerRadius: 3) - } - } - } - - HStack { - SkeletonView(width: 120, height: 12, cornerRadius: 3) - Spacer() - SkeletonView(width: 12, height: 12, cornerRadius: 3) - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - } - - private var topicsGridSkeleton: some View { - VStack(alignment: .leading, spacing: 16) { - HStack { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - Spacer() - SkeletonView(width: 60, height: 12, cornerRadius: 3) - } - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 2), spacing: 12) { - ForEach(0..<4, id: \.self) { _ in - VStack(alignment: .leading, spacing: 12) { - HStack { - SkeletonView(width: 20, height: 20, cornerRadius: 10) - Spacer() - SkeletonView(width: 30, height: 12, cornerRadius: 3) - } - - VStack(alignment: .leading, spacing: 4) { - SkeletonView(width: 100, height: 14, cornerRadius: 3) - SkeletonView(width: 120, height: 12, cornerRadius: 3) - SkeletonView(width: 80, height: 12, cornerRadius: 3) - } - - VStack(spacing: 4) { - HStack { - SkeletonView(width: 30, height: 10, cornerRadius: 2) - Spacer() - SkeletonView(width: 30, height: 10, cornerRadius: 2) - } - SkeletonView(height: 4, cornerRadius: 2) - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(12) - } - } - } - } - - private var actionCardSkeleton: some View { - VStack(alignment: .leading, spacing: 16) { - HStack { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - Spacer() - SkeletonView(width: 24, height: 24, cornerRadius: 12) - } - - VStack(spacing: 12) { - ForEach(0..<3, id: \.self) { _ in - HStack(spacing: 12) { - SkeletonView(width: 24, height: 24, cornerRadius: 12) - - VStack(alignment: .leading, spacing: 2) { - SkeletonView(width: 160, height: 14, cornerRadius: 3) - HStack(spacing: 8) { - SkeletonView(width: 60, height: 16, cornerRadius: 8) - SkeletonView(width: 40, height: 12, cornerRadius: 3) - } - } - Spacer() - } - } - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - } - - private var timelineCardSkeleton: some View { - VStack(alignment: .leading, spacing: 16) { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - - VStack(alignment: .leading, spacing: 12) { - ForEach(0..<4, id: \.self) { _ in - HStack(spacing: 12) { - VStack { - SkeletonView(width: 8, height: 8, cornerRadius: 4) - SkeletonView(width: 1, height: 20, cornerRadius: 1) - } - - VStack(alignment: .leading, spacing: 2) { - HStack { - SkeletonView(width: 100, height: 14, cornerRadius: 3) - Spacer() - SkeletonView(width: 40, height: 12, cornerRadius: 3) - } - SkeletonView(width: 180, height: 12, cornerRadius: 3) - } - } - } - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - } -} - -// MARK: - 情绪洞察卡片 -struct EmotionalInsightCard: View { - let onTap: () -> Void - - var body: some View { - Button(action: onTap) { - VStack(alignment: .leading, spacing: 16) { - HStack { - VStack(alignment: .leading, spacing: 4) { - Text("情绪洞察") - .font(.headline) - .fontWeight(.semibold) - .foregroundColor(Color.theme.primaryText) - - Text("基于你的对话记录生成") - .font(.caption) - .foregroundColor(Color.theme.secondaryText) - } - - Spacer() - - Image(systemName: "brain.head.profile") - .font(.title2) - .foregroundColor(.purple) - } - - VStack(alignment: .leading, spacing: 12) { - InsightRow( - icon: "heart.fill", - title: "主要情绪状态", - value: "平静自省", - color: .blue - ) - - InsightRow( - icon: "target", - title: "成长焦点", - value: "人际关系", - color: .green - ) - - InsightRow( - icon: "chart.line.uptrend.xyaxis", - title: "进步指数", - value: "↗️ 稳步提升", - color: .orange - ) - } - - HStack { - Text("点击查看详细分析") - .font(.caption) - .foregroundColor(Color.theme.secondaryText) - - Spacer() - - Image(systemName: "chevron.right") - .font(.caption) - .foregroundColor(Color.theme.secondaryText) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(.systemGray6)) - ) - } - .buttonStyle(PlainButtonStyle()) - } -} - -struct InsightRow: View { - let icon: String - let title: String - let value: String - let color: Color - - var body: some View { - HStack(spacing: 12) { - Image(systemName: icon) - .font(.subheadline) - .foregroundColor(color) - .frame(width: 20) - - Text(title) - .font(.subheadline) - .foregroundColor(Color.theme.secondaryText) - - Spacer() - - Text(value) - .font(.subheadline) - .fontWeight(.medium) - } - } -} - -// MARK: - 用户画像雷达图卡片 -struct UserProfileRadarCard: View { - let onTap: () -> Void - - var body: some View { - Button(action: onTap) { - VStack(spacing: 16) { - HStack { - Text("成长画像") - .font(.headline) - .fontWeight(.semibold) - - Spacer() - - Image(systemName: "person.crop.circle.badge.checkmark") - .font(.title2) - .foregroundColor(.green) - } - - // 简化的五维显示 - VStack(spacing: 8) { - ProfileDimensionRow(name: "自我感知", value: 0.8, color: .blue) - ProfileDimensionRow(name: "情绪韧性", value: 0.7, color: .purple) - ProfileDimensionRow(name: "行动力", value: 0.6, color: .orange) - ProfileDimensionRow(name: "共情力", value: 0.9, color: .green) - ProfileDimensionRow(name: "生活热度", value: 0.7, color: .red) - } - - HStack { - Text("点击查看完整雷达图") - .font(.caption) - .foregroundColor(.secondary) - - Spacer() - - Image(systemName: "chevron.right") - .font(.caption) - .foregroundColor(.secondary) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(.systemGray6)) - ) - } - .buttonStyle(PlainButtonStyle()) - } -} - -struct ProfileDimensionRow: View { - let name: String - let value: Double - let color: Color - - var body: some View { - HStack { - Text(name) - .font(.caption) - .foregroundColor(.primary) - .frame(width: 60, alignment: .leading) - - ProgressView(value: value) - .progressViewStyle(LinearProgressViewStyle(tint: color)) - - Text("\(Int(value * 100))%") - .font(.caption) - .fontWeight(.medium) - .foregroundColor(color) - .frame(width: 40, alignment: .trailing) - } - } -} - -// MARK: - 成长课题系统 -struct GrowthTopicsSection: View { - let onTopicTap: (GrowthTopic) -> Void - - var body: some View { - VStack(alignment: .leading, spacing: 16) { - HStack { - Text("成长课题") - .font(.headline) - .fontWeight(.semibold) - - Spacer() - - Text("3个进行中") - .font(.caption) - .foregroundColor(.secondary) - } - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 2), spacing: 12) { - ForEach(sampleGrowthTopics) { topic in - TopicCard(topic: topic) { - onTopicTap(topic) - } - } - } - } - } -} - -struct TopicCard: View { - let topic: GrowthTopic - let onTap: () -> Void - - var body: some View { - Button(action: onTap) { - VStack(alignment: .leading, spacing: 12) { - HStack { - Image(systemName: topic.icon) - .font(.title3) - .foregroundColor(topic.color) - - Spacer() - - Text("Lv.\(topic.level)") - .font(.caption) - .fontWeight(.bold) - .foregroundColor(topic.color) - } - - VStack(alignment: .leading, spacing: 4) { - Text(topic.title) - .font(.subheadline) - .fontWeight(.medium) - .multilineTextAlignment(.leading) - - Text(topic.description) - .font(.caption) - .foregroundColor(.secondary) - .lineLimit(2) - .multilineTextAlignment(.leading) - } - - VStack(spacing: 4) { - HStack { - Text("进度") - .font(.caption2) - .foregroundColor(.secondary) - - Spacer() - - Text("\(Int(topic.progress * 100))%") - .font(.caption2) - .fontWeight(.medium) - } - - ProgressView(value: topic.progress) - .progressViewStyle(LinearProgressViewStyle(tint: topic.color)) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.systemGray6)) - ) - } - .buttonStyle(PlainButtonStyle()) - } -} - -// MARK: - 今日推荐行动 -struct TodayActionCard: View { - var body: some View { - VStack(alignment: .leading, spacing: 16) { - HStack { - Text("今日推荐") - .font(.headline) - .fontWeight(.semibold) - - Spacer() - - Image(systemName: "lightbulb.fill") - .font(.title3) - .foregroundColor(.yellow) - } - - VStack(spacing: 12) { - ActionItemView( - title: "与朋友分享一件开心的事", - category: "人际关系", - duration: "5分钟", - color: .blue - ) - - ActionItemView( - title: "写下今天的三个感恩点", - category: "自我觉察", - duration: "10分钟", - color: .green - ) - - ActionItemView( - title: "深呼吸练习", - category: "情绪调节", - duration: "3分钟", - color: .purple - ) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(.systemGray6)) - ) - } -} - -struct ActionItemView: View { - let title: String - let category: String - let duration: String - let color: Color - @State private var isCompleted = false - - var body: some View { - HStack(spacing: 12) { - Button(action: { isCompleted.toggle() }) { - Image(systemName: isCompleted ? "checkmark.circle.fill" : "circle") - .font(.title3) - .foregroundColor(isCompleted ? color : .gray) - } - - VStack(alignment: .leading, spacing: 2) { - Text(title) - .font(.subheadline) - .fontWeight(.medium) - .strikethrough(isCompleted) - - HStack(spacing: 8) { - Text(category) - .font(.caption) - .padding(.horizontal, 8) - .padding(.vertical, 2) - .background(color.opacity(0.2)) - .foregroundColor(color) - .cornerRadius(8) - - Text(duration) - .font(.caption) - .foregroundColor(.secondary) - } - } - - Spacer() - } - .opacity(isCompleted ? 0.6 : 1.0) - .animation(.easeInOut(duration: 0.2), value: isCompleted) - } -} - -// MARK: - 成长历程 -struct GrowthTimelineCard: View { - var body: some View { - VStack(alignment: .leading, spacing: 16) { - Text("成长历程") - .font(.headline) - .fontWeight(.semibold) - - VStack(alignment: .leading, spacing: 12) { - TimelineItem( - date: "今天", - title: "完成情绪记录", - description: "记录了平静的心情状态", - color: .blue, - isRecent: true - ) - - TimelineItem( - date: "昨天", - title: "课题升级", - description: "人际关系课题提升到Lv.2", - color: .green, - isRecent: true - ) - - TimelineItem( - date: "3天前", - title: "解锁新课题", - description: "开始学习情绪调节技巧", - color: .purple, - isRecent: false - ) - - TimelineItem( - date: "1周前", - title: "达成里程碑", - description: "连续7天完成情绪记录", - color: .orange, - isRecent: false - ) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(.systemGray6)) - ) - } -} - -struct TimelineItem: View { - let date: String - let title: String - let description: String - let color: Color - let isRecent: Bool - - var body: some View { - HStack(spacing: 12) { - VStack { - Circle() - .fill(color) - .frame(width: 8, height: 8) - - if !isRecent { - Rectangle() - .fill(Color(.systemGray4)) - .frame(width: 1, height: 20) - } - } - - VStack(alignment: .leading, spacing: 2) { - HStack { - Text(title) - .font(.subheadline) - .fontWeight(.medium) - - Spacer() - - Text(date) - .font(.caption) - .foregroundColor(.secondary) - } - - Text(description) - .font(.caption) - .foregroundColor(.secondary) - .lineLimit(2) - } - } - .opacity(isRecent ? 1.0 : 0.7) - } -} - -// MARK: - GrowthTopic UI扩展 -extension GrowthTopic { - var icon: String { - category.icon - } - - var color: Color { - category.color - } -} - -// MARK: - 模拟数据 -let sampleGrowthTopics = [ - GrowthTopic( - title: "人际关系边界", - description: "学习建立健康的人际关系边界", - category: .relationships, - difficulty: .intermediate, - progress: 0.7, - level: 2 - ), - GrowthTopic( - title: "情绪调节技能", - description: "掌握情绪识别和调节的核心技能", - category: .emotionRegulation, - difficulty: .beginner, - progress: 0.3, - level: 1 - ), - GrowthTopic( - title: "深度自我认知", - description: "提升对内在世界的认知和理解", - category: .selfAwareness, - difficulty: .advanced, - progress: 0.9, - level: 3 - ), - GrowthTopic( - title: "行动力提升", - description: "培养执行力和目标达成能力", - category: .lifeGoals, - difficulty: .beginner, - progress: 0.4, - level: 1 - ) -] \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/HealingView.swift b/EmotionMuseum/EmotionMuseum/Views/HealingView.swift deleted file mode 100644 index 010fd05..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/HealingView.swift +++ /dev/null @@ -1,311 +0,0 @@ -// -// HealingView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI -import AVFoundation - -struct HealingView: View { - @State private var selectedChakra: ChakraType? = nil - @State private var showingHealingSession = false - @State private var chakraStates: [ChakraType: ChakraState] = [:] - - var body: some View { - NavigationView { - ZStack { - // 背景渐变 - LinearGradient( - gradient: Gradient(colors: [.purple.opacity(0.1), .blue.opacity(0.1)]), - startPoint: .topLeading, - endPoint: .bottomTrailing - ) - .ignoresSafeArea() - - ScrollView { - VStack(spacing: 30) { - // 标题和说明 - VStack(spacing: 8) { - Text("脉轮疗愈") - .font(.largeTitle) - .fontWeight(.bold) - - Text("点击脉轮区域开始疗愈之旅") - .font(.subheadline) - .foregroundColor(.secondary) - } - .padding(.top) - - // 人形脉轮图 - VStack(spacing: 0) { - // 顶轮 - ChakraButton( - chakra: .crown, - state: chakraStates[.crown] ?? .normal, - action: { selectChakra(.crown) } - ) - .offset(y: 10) - - Spacer().frame(height: 20) - - // 眉心轮 - ChakraButton( - chakra: .thirdEye, - state: chakraStates[.thirdEye] ?? .normal, - action: { selectChakra(.thirdEye) } - ) - - Spacer().frame(height: 30) - - // 喉轮 - ChakraButton( - chakra: .throat, - state: chakraStates[.throat] ?? .weak, - action: { selectChakra(.throat) } - ) - - Spacer().frame(height: 40) - - // 心轮 - ChakraButton( - chakra: .heart, - state: chakraStates[.heart] ?? .normal, - action: { selectChakra(.heart) } - ) - - Spacer().frame(height: 40) - - // 太阳轮 - ChakraButton( - chakra: .solarPlexus, - state: chakraStates[.solarPlexus] ?? .normal, - action: { selectChakra(.solarPlexus) } - ) - - Spacer().frame(height: 40) - - // 脐轮 - ChakraButton( - chakra: .sacral, - state: chakraStates[.sacral] ?? .weak, - action: { selectChakra(.sacral) } - ) - - Spacer().frame(height: 40) - - // 海底轮 - ChakraButton( - chakra: .root, - state: chakraStates[.root] ?? .normal, - action: { selectChakra(.root) } - ) - } - .frame(maxWidth: 200) - - // 脉轮状态说明 - VStack(alignment: .leading, spacing: 12) { - Text("脉轮状态说明") - .font(.headline) - - HStack(spacing: 16) { - HStack { - Circle() - .fill(Color.green) - .frame(width: 12, height: 12) - Text("健康") - .font(.caption) - } - - HStack { - Circle() - .fill(Color.orange.opacity(0.6)) - .frame(width: 12, height: 12) - Text("疲弱") - .font(.caption) - } - - HStack { - Circle() - .fill(Color.red.opacity(0.6)) - .frame(width: 12, height: 12) - Text("受阻") - .font(.caption) - } - } - } - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - .padding(.horizontal) - - // 快速疗愈选项 - VStack(alignment: .leading, spacing: 12) { - Text("快速疗愈") - .font(.headline) - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 2), spacing: 12) { - QuickHealingCard(title: "全身平衡", icon: "figure.mind.and.body", color: .purple) - QuickHealingCard(title: "情绪释放", icon: "heart.fill", color: .pink) - QuickHealingCard(title: "能量充电", icon: "bolt.fill", color: .yellow) - QuickHealingCard(title: "深度放松", icon: "moon.fill", color: .blue) - } - } - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - .padding(.horizontal) - } - .padding(.bottom, 30) - } - } - .navigationBarHidden(true) - } - .sheet(item: $selectedChakra) { chakra in - ChakraHealingView(chakra: chakra) { - // 疗愈完成回调 - updateChakraState(chakra, newState: .normal) - } - } - .onAppear { - initializeChakraStates() - } - } - - private func selectChakra(_ chakra: ChakraType) { - selectedChakra = chakra - } - - private func initializeChakraStates() { - // 初始化脉轮状态(模拟数据) - chakraStates = [ - .root: .normal, - .sacral: .weak, - .solarPlexus: .normal, - .heart: .normal, - .throat: .weak, - .thirdEye: .normal, - .crown: .normal - ] - } - - private func updateChakraState(_ chakra: ChakraType, newState: ChakraState) { - withAnimation { - chakraStates[chakra] = newState - } - } -} - -// MARK: - 脉轮类型扩展 -extension ChakraType: Identifiable { - var id: String { rawValue } -} - -// MARK: - 脉轮状态枚举 -enum ChakraState { - case normal // 健康 - case weak // 疲弱 - case blocked // 受阻 - - var opacity: Double { - switch self { - case .normal: return 1.0 - case .weak: return 0.6 - case .blocked: return 0.3 - } - } -} - -// MARK: - 脉轮按钮组件 -struct ChakraButton: View { - let chakra: ChakraType - let state: ChakraState - let action: () -> Void - - @State private var isAnimating = false - - var body: some View { - Button(action: action) { - ZStack { - // 外圈光晕效果 - Circle() - .fill( - RadialGradient( - gradient: Gradient(colors: [chakra.color.opacity(0.3), Color.clear]), - center: .center, - startRadius: 20, - endRadius: 40 - ) - ) - .frame(width: 80, height: 80) - .scaleEffect(isAnimating ? 1.2 : 1.0) - .opacity(state == .weak ? 0.8 : 1.0) - - // 主圆圈 - Circle() - .fill( - RadialGradient( - gradient: Gradient(colors: [chakra.color, chakra.color.opacity(0.7)]), - center: .center, - startRadius: 5, - endRadius: 25 - ) - ) - .frame(width: 50, height: 50) - .opacity(state.opacity) - .overlay( - Circle() - .stroke(Color.white.opacity(0.8), lineWidth: 2) - ) - - // 脉轮名称 - Text(chakra.rawValue) - .font(.caption2) - .fontWeight(.semibold) - .foregroundColor(.white) - .shadow(radius: 1) - } - } - .onAppear { - if state == .weak { - withAnimation(Animation.easeInOut(duration: 2).repeatForever(autoreverses: true)) { - isAnimating = true - } - } - } - } -} - -// MARK: - 快速疗愈卡片 -struct QuickHealingCard: View { - let title: String - let icon: String - let color: Color - - var body: some View { - Button(action: { - // 快速疗愈功能 - }) { - VStack(spacing: 8) { - Image(systemName: icon) - .font(.title2) - .foregroundColor(color) - - Text(title) - .font(.subheadline) - .fontWeight(.medium) - .foregroundColor(.primary) - } - .frame(maxWidth: .infinity) - .padding() - .background(Color(.systemBackground)) - .cornerRadius(12) - .shadow(color: color.opacity(0.3), radius: 4, x: 0, y: 2) - } - } -} - -#Preview { - HealingView() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/InsightView.swift b/EmotionMuseum/EmotionMuseum/Views/InsightView.swift deleted file mode 100644 index 6c523c3..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/InsightView.swift +++ /dev/null @@ -1,1306 +0,0 @@ -// -// InsightView.swift -// EmotionMuseum -// -// Created by EmotionMuseum on 2024/01/01. -// - -import SwiftUI -import Foundation -import AVFoundation -#if canImport(UIKit) -import UIKit -#endif -#if canImport(AppKit) -import AppKit -#endif - -// MARK: - 主题颜色配置 -struct ThemeColors { - static let wechatGreen = Color(red: 0.1, green: 0.7, blue: 0.3) - static let lightBackground = Color(red: 0.95, green: 0.95, blue: 0.97) - static let darkBackground = Color(red: 0.1, green: 0.1, blue: 0.12) - - #if canImport(UIKit) - static let cardBackground = Color(UIColor.systemBackground) - static let secondaryBackground = Color(UIColor.secondarySystemBackground) - static let textPrimary = Color(UIColor.label) - static let textSecondary = Color(UIColor.secondaryLabel) - #elseif canImport(AppKit) - static let cardBackground = Color(NSColor.controlBackgroundColor) - static let secondaryBackground = Color(NSColor.unemphasizedSelectedContentBackgroundColor) - static let textPrimary = Color(NSColor.labelColor) - static let textSecondary = Color(NSColor.secondaryLabelColor) - #else - static let cardBackground = Color.white - static let secondaryBackground = Color.gray.opacity(0.1) - static let textPrimary = Color.primary - static let textSecondary = Color.secondary - #endif - - static let accent = Color.accentColor -} - -// MARK: - 心情数据模型 -struct MoodData: Identifiable { - let id = UUID() - let emoji: String - let name: String - let color: Color -} - -// MARK: - AI对话记录模型 -struct AIConversation: Identifiable { - let id = UUID() - let date: Date - let userMessage: String - let aiResponse: String - let mood: String - let tags: [String] -} - -// MARK: - 心情选择弹框 -struct MoodPickerSheet: View { - @Binding var selectedMood: String - @Binding var isPresented: Bool - let selectedDate: Date - - let moods: [MoodData] = [ - MoodData(emoji: "😊", name: "开心", color: .yellow), - MoodData(emoji: "😢", name: "难过", color: .blue), - MoodData(emoji: "😡", name: "愤怒", color: .red), - MoodData(emoji: "😴", name: "疲惫", color: .gray), - MoodData(emoji: "🤔", name: "思考", color: .purple), - MoodData(emoji: "😍", name: "兴奋", color: .pink), - MoodData(emoji: "😰", name: "焦虑", color: .orange), - MoodData(emoji: "😌", name: "平静", color: .green) - ] - - var body: some View { - NavigationView { - VStack(spacing: 24) { - VStack(spacing: 8) { - Text(DateFormatter.fullDate.string(from: selectedDate)) - .font(.title2) - .fontWeight(.semibold) - .foregroundColor(ThemeColors.textPrimary) - - Text("选择今日心情") - .font(.subheadline) - .foregroundColor(ThemeColors.textSecondary) - } - .padding(.top) - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 2), spacing: 16) { - ForEach(moods) { mood in - Button(action: { - selectedMood = mood.emoji - isPresented = false - }) { - VStack(spacing: 12) { - Text(mood.emoji) - .font(.system(size: 40)) - - Text(mood.name) - .font(.headline) - .foregroundColor(ThemeColors.textPrimary) - } - .frame(maxWidth: .infinity) - .padding(20) - .background(mood.color.opacity(0.1)) - .cornerRadius(16) - .overlay( - RoundedRectangle(cornerRadius: 16) - .stroke(mood.color.opacity(0.3), lineWidth: 1) - ) - } - .buttonStyle(PlainButtonStyle()) - } - } - .padding(.horizontal) - - Spacer() - } - .background(ThemeColors.lightBackground.ignoresSafeArea()) - .navigationTitle("") - #if os(iOS) - .navigationBarTitleDisplayMode(.inline) - #endif - .toolbar { - #if os(iOS) - ToolbarItem(placement: .topBarTrailing) { - Button("取消") { - isPresented = false - } - .foregroundColor(ThemeColors.wechatGreen) - } - #else - ToolbarItem(placement: .primaryAction) { - Button("取消") { - isPresented = false - } - .foregroundColor(ThemeColors.wechatGreen) - } - #endif - } - } - } -} - -// MARK: - 单行日历 -struct SingleRowCalendar: View { - @Binding var selectedDate: Date - @State private var currentWeekOffset = 0 - @State private var isExpanded = false - let onDateTap: (Date) -> Void - - private var calendar: Calendar { - Calendar.current - } - - private var weekDays: [Date] { - if isExpanded { - // 展开时显示最近一个月的日期 - let today = Date() - let startOfMonth = calendar.date(byAdding: .day, value: -30, to: today) ?? today - return (0..<31).compactMap { - calendar.date(byAdding: .day, value: $0, to: startOfMonth) - } - } else { - // 收起时显示当前周 - let startOfWeek = calendar.dateInterval(of: .weekOfYear, for: selectedDate)?.start ?? Date() - return (0..<7).compactMap { - calendar.date(byAdding: .day, value: $0 + currentWeekOffset * 7, to: startOfWeek) - } - } - } - - var body: some View { - VStack(spacing: 12) { - HStack { - if !isExpanded { - Button(action: { currentWeekOffset -= 1 }) { - Image(systemName: "chevron.left") - .foregroundColor(ThemeColors.wechatGreen) - } - } - - Spacer() - - Text(DateFormatter.monthYear.string(from: selectedDate)) - .font(.headline) - .foregroundColor(ThemeColors.textPrimary) - - Spacer() - - if !isExpanded { - Button(action: { currentWeekOffset += 1 }) { - Image(systemName: "chevron.right") - .foregroundColor(ThemeColors.wechatGreen) - } - } - - Button(action: { - withAnimation(.spring()) { - isExpanded.toggle() - } - }) { - Image(systemName: isExpanded ? "chevron.up" : "chevron.down") - .foregroundColor(ThemeColors.wechatGreen) - .padding(.leading, 8) - } - } - - if isExpanded { - // 展开时显示月份视图 - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 7), spacing: 8) { - // 星期标题 - ForEach(["日", "一", "二", "三", "四", "五", "六"], id: \.self) { weekday in - Text(weekday) - .font(.caption) - .foregroundColor(ThemeColors.textSecondary) - } - - // 日期格子 - ForEach(weekDays, id: \.self) { date in - VStack(spacing: 4) { - Button(action: { - selectedDate = date - onDateTap(date) - // 选择日期后自动收起 - withAnimation(.spring()) { - isExpanded = false - } - }) { - ZStack { - Circle() - .fill(calendar.isDate(date, inSameDayAs: selectedDate) ? - ThemeColors.wechatGreen : Color.clear) - .frame(width: 36, height: 36) - - Text("\(calendar.component(.day, from: date))") - .font(.system(size: 16, weight: .medium)) - .foregroundColor( - calendar.isDate(date, inSameDayAs: selectedDate) ? - .white : ThemeColors.textPrimary - ) - } - } - - // 心情图标占位 - Text(moodIconForDate(date)) - .font(.caption) - } - } - } - } else { - // 收起时显示周视图 - HStack(spacing: 0) { - ForEach(weekDays, id: \.self) { date in - VStack(spacing: 4) { - Text(DateFormatter.weekday.string(from: date)) - .font(.caption) - .foregroundColor(ThemeColors.textSecondary) - - Button(action: { - selectedDate = date - onDateTap(date) - }) { - ZStack { - Circle() - .fill(calendar.isDate(date, inSameDayAs: selectedDate) ? - ThemeColors.wechatGreen : Color.clear) - .frame(width: 36, height: 36) - - Text("\(calendar.component(.day, from: date))") - .font(.system(size: 16, weight: .medium)) - .foregroundColor( - calendar.isDate(date, inSameDayAs: selectedDate) ? - .white : ThemeColors.textPrimary - ) - } - } - - // 心情图标占位 - Text(moodIconForDate(date)) - .font(.caption) - } - .frame(maxWidth: .infinity) - } - } - } - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - .animation(.spring(), value: currentWeekOffset) - } - - private func moodIconForDate(_ date: Date) -> String { - // 这里可以根据实际数据返回对应日期的心情图标 - let day = Calendar.current.component(.day, from: date) - let moods = ["😊", "😢", "😡", "😴", "🤔", "😍", "😰"] - return day % 3 == 0 ? moods[day % moods.count] : "" - } -} - -// MARK: - AI对话卡片 -struct AIConversationCard: View { - let conversation: AIConversation - - var body: some View { - VStack(alignment: .leading, spacing: 12) { - HStack { - Text(DateFormatter.conversationDate.string(from: conversation.date)) - .font(.caption) - .foregroundColor(ThemeColors.textSecondary) - Spacer() - Text(conversation.mood) - .font(.title3) - } - - VStack(alignment: .leading, spacing: 8) { - Text("我: \(conversation.userMessage)") - .font(.body) - .foregroundColor(ThemeColors.textPrimary) - .padding(12) - .background(ThemeColors.secondaryBackground) - .cornerRadius(12) - - Text("AI: \(conversation.aiResponse)") - .font(.body) - .foregroundColor(ThemeColors.textPrimary) - .padding(12) - .background(ThemeColors.wechatGreen.opacity(0.1)) - .cornerRadius(12) - } - - if !conversation.tags.isEmpty { - ScrollView(.horizontal, showsIndicators: false) { - HStack { - ForEach(conversation.tags, id: \.self) { tag in - Text(tag) - .font(.caption) - .padding(.horizontal, 8) - .padding(.vertical, 4) - .background(ThemeColors.accent.opacity(0.2)) - .cornerRadius(8) - } - } - .padding(.horizontal) - } - } - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - } -} - -// MARK: - 音频消息管理器 -class AudioManager: NSObject, ObservableObject, AVAudioRecorderDelegate { - static let shared = AudioManager() - - @Published var isRecording = false - @Published var recordingDuration: TimeInterval = 0 - @Published var currentTime: TimeInterval = 0 - - private var audioRecorder: AVAudioRecorder? - private var audioPlayer: AVAudioPlayer? - private var displayLink: CADisplayLink? - private var recordingStartTime: Date? - private var durationTimer: Timer? - - override init() { - super.init() - setupAudioSession() - } - - private func setupAudioSession() { - let session = AVAudioSession.sharedInstance() - do { - try session.setCategory(.playAndRecord, mode: .default) - try session.setActive(true) - } catch { - print("音频会话设置失败: \(error)") - } - } - - func startRecording() { - let audioFilename = getDocumentsDirectory().appendingPathComponent("\(UUID().uuidString).m4a") - - let settings = [ - AVFormatIDKey: Int(kAudioFormatMPEG4AAC), - AVSampleRateKey: 12000, - AVNumberOfChannelsKey: 1, - AVEncoderAudioQualityKey: AVAudioQuality.high.rawValue - ] - - do { - audioRecorder = try AVAudioRecorder(url: audioFilename, settings: settings) - audioRecorder?.delegate = self - audioRecorder?.record() - isRecording = true - recordingStartTime = Date() - - // 开始计时 - startDurationTimer() - } catch { - print("录音失败: \(error)") - } - } - - func stopRecording() -> (URL, TimeInterval)? { - audioRecorder?.stop() - let url = audioRecorder?.url - let duration = recordingDuration - audioRecorder = nil - isRecording = false - - // 停止计时 - stopDurationTimer() - recordingDuration = 0 - - if let url = url { - return (url, duration) - } - return nil - } - - private func startDurationTimer() { - durationTimer = Timer.scheduledTimer(withTimeInterval: 0.1, repeats: true) { [weak self] _ in - guard let self = self else { return } - if let startTime = self.recordingStartTime { - self.recordingDuration = Date().timeIntervalSince(startTime) - } - } - } - - private func stopDurationTimer() { - durationTimer?.invalidate() - durationTimer = nil - recordingStartTime = nil - } - - func playAudio(url: URL, completion: @escaping () -> Void) { - stopCurrentAudio() - - do { - audioPlayer = try AVAudioPlayer(contentsOf: url) - audioPlayer?.delegate = self - audioPlayer?.play() - - // 开始更新播放进度 - startPlaybackTimer() - - // 设置播放完成回调 - DispatchQueue.main.asyncAfter(deadline: .now() + (audioPlayer?.duration ?? 0)) { - completion() - } - } catch { - print("音频播放失败: \(error)") - } - } - - func stopCurrentAudio() { - audioPlayer?.stop() - audioPlayer = nil - stopPlaybackTimer() - currentTime = 0 - } - - private func startPlaybackTimer() { - displayLink = CADisplayLink(target: self, selector: #selector(updatePlaybackTime)) - displayLink?.add(to: .main, forMode: .common) - } - - private func stopPlaybackTimer() { - displayLink?.invalidate() - displayLink = nil - } - - @objc private func updatePlaybackTime() { - currentTime = audioPlayer?.currentTime ?? 0 - } - - private func getDocumentsDirectory() -> URL { - FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0] - } -} - -extension AudioManager: AVAudioPlayerDelegate { - func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) { - stopCurrentAudio() - } -} - -// MARK: - 音频消息视图 -struct AudioMessageView: View { - let url: URL - let duration: TimeInterval - @StateObject private var audioManager = AudioManager.shared - @State private var isPlaying = false - @State private var progress: CGFloat = 0 - @State private var isAnimating = false - - var body: some View { - Button(action: { - if isPlaying { - audioManager.stopCurrentAudio() - isPlaying = false - } else { - isPlaying = true - audioManager.playAudio(url: url) { - isPlaying = false - } - } - }) { - HStack(spacing: 8) { - // 播放/暂停按钮 - Image(systemName: isPlaying ? "pause.circle.fill" : "play.circle.fill") - .font(.title2) - .foregroundColor(ThemeColors.wechatGreen) - - // 音频波形动画 - HStack(spacing: 2) { - ForEach(0..<5) { index in - RoundedRectangle(cornerRadius: 1) - .frame(width: 2, height: isPlaying ? 15 : 8) - .animation( - Animation.easeInOut(duration: 0.5) - .repeatForever() - .delay(Double(index) * 0.1), - value: isPlaying - ) - } - } - .frame(width: 80) - - // 时长显示 - Text(formatDuration(duration)) - .font(.caption) - .foregroundColor(.secondary) - } - .padding() - .background(Color.secondary.opacity(0.1)) - .cornerRadius(12) - } - } - - private func formatDuration(_ duration: TimeInterval) -> String { - let minutes = Int(duration) / 60 - let seconds = Int(duration) % 60 - return String(format: "%d:%02d", minutes, seconds) - } -} - -// MARK: - 聊天消息模型 -struct ChatMessage: Identifiable { - let id: UUID - let content: String - let isUser: Bool - let timestamp: Date - let messageType: MessageType - let audioURL: URL? - let audioDuration: TimeInterval - - enum MessageType { - case text - case audio - } - - init(id: UUID = UUID(), content: String, isUser: Bool, timestamp: Date, messageType: MessageType, audioURL: URL? = nil, audioDuration: TimeInterval = 0) { - self.id = id - self.content = content - self.isUser = isUser - self.timestamp = timestamp - self.messageType = messageType - self.audioURL = audioURL - self.audioDuration = audioDuration - } -} - -// MARK: - 聊天消息视图 -struct ChatMessageView: View { - let message: ChatMessage - - var body: some View { - HStack { - if message.isUser { - Spacer() - } - - VStack(alignment: message.isUser ? .trailing : .leading, spacing: 4) { - if message.messageType == .audio { - if let audioURL = message.audioURL { - AudioMessageView(url: audioURL, duration: message.audioDuration) - } - } else { - Text(message.content) - .padding(12) - .background( - message.isUser ? - ThemeColors.wechatGreen : ThemeColors.secondaryBackground - ) - .foregroundColor(message.isUser ? .white : ThemeColors.textPrimary) - .cornerRadius(16) - } - - Text(DateFormatter.conversationDate.string(from: message.timestamp)) - .font(.caption2) - .foregroundColor(ThemeColors.textSecondary) - } - - if !message.isUser { - Spacer() - } - } - } -} - -// MARK: - AI对话视图 -struct AIChatView: View { - @Binding var isPresented: Bool - @State private var isVoiceMode = false - @State private var inputText = "" - @State private var chatMessages: [ChatMessage] = [] - @StateObject private var audioManager = AudioManager.shared - let initialMessage: String - @State private var recordingFeedback = false - - private let aiResponses = [ - "我理解你现在的感受。让我们一起探讨这个问题,看看有什么可以帮助你的方式。", - "你说得很有道理。这种情况下,我建议你可以试着换个角度来看待这个问题。", - "听起来这确实是个令人困扰的情况。不过别担心,我们可以一步一步地来解决它。", - "你的感受是完全正常的。在这种情况下,很多人都会有类似的反应。", - "谢谢你愿意跟我分享这些。让我们一起来分析一下,看看有什么可以改善的地方。" - ] - - var body: some View { - NavigationView { - VStack(spacing: 0) { - // 聊天消息列表 - ScrollView { - LazyVStack(spacing: 16) { - ForEach(chatMessages) { message in - ChatMessageView(message: message) - } - } - .padding() - } - - // 输入区域 - VStack(spacing: 12) { - if isVoiceMode { - // 语音输入按钮 - voiceButton - } else { - // 文字输入框 - HStack(spacing: 12) { - TextField("输入消息...", text: $inputText) - .textFieldStyle(RoundedBorderTextFieldStyle()) - .padding(.vertical, 8) - - Button(action: sendTextMessage) { - Image(systemName: "arrow.up.circle.fill") - .font(.title2) - .foregroundColor(ThemeColors.wechatGreen) - } - .disabled(inputText.isEmpty) - } - .padding() - } - } - .background(Color(UIColor.systemBackground)) - .shadow(color: .black.opacity(0.05), radius: 8, y: -4) - } - .navigationTitle("AI疗愈师") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarLeading) { - Button(action: { isVoiceMode.toggle() }) { - Image(systemName: isVoiceMode ? "keyboard" : "mic") - .foregroundColor(ThemeColors.wechatGreen) - } - } - - ToolbarItem(placement: .navigationBarTrailing) { - Button(action: { isPresented = false }) { - Image(systemName: "chevron.down") - .foregroundColor(ThemeColors.textSecondary) - } - } - } - .onAppear { - if !initialMessage.isEmpty { - let userMessage = ChatMessage( - id: UUID(), - content: initialMessage, - isUser: true, - timestamp: Date(), - messageType: .text, - audioURL: nil, - audioDuration: 0 - ) - chatMessages.append(userMessage) - sendAIResponse() - } - } - } - } - - private var voiceButton: some View { - Button(action: handleVoiceButton) { - ZStack { - Circle() - .fill(audioManager.isRecording ? Color.red : ThemeColors.wechatGreen) - .frame(width: 60, height: 60) - .scaleEffect(recordingFeedback ? 1.2 : 1.0) - .animation(.spring(response: 0.3), value: recordingFeedback) - - Image(systemName: audioManager.isRecording ? "stop.fill" : "mic.fill") - .foregroundColor(.white) - .font(.title2) - } - } - .padding(.vertical) - .overlay( - Group { - if audioManager.isRecording { - VStack { - Text(formatDuration(audioManager.recordingDuration)) - .font(.caption) - .foregroundColor(.secondary) - .padding(.vertical, 4) - - // 录音波形动画 - HStack(spacing: 4) { - ForEach(0..<3) { index in - Circle() - .fill(Color.red) - .frame(width: 6, height: 6) - .scaleEffect(recordingFeedback ? 1 : 0.5) - .animation( - Animation.easeInOut(duration: 0.5) - .repeatForever() - .delay(Double(index) * 0.2), - value: recordingFeedback - ) - } - } - } - .offset(y: -40) - } - } - ) - } - - private func handleVoiceButton() { - if audioManager.isRecording { - if let (audioURL, duration) = audioManager.stopRecording() { - let message = ChatMessage( - id: UUID(), - content: "", - isUser: true, - timestamp: Date(), - messageType: .audio, - audioURL: audioURL, - audioDuration: duration - ) - chatMessages.append(message) - sendAIResponse() - } - recordingFeedback = false - } else { - audioManager.startRecording() - recordingFeedback = true - } - } - - private func sendTextMessage() { - guard !inputText.isEmpty else { return } - - let message = ChatMessage( - id: UUID(), - content: inputText, - isUser: true, - timestamp: Date(), - messageType: .text, - audioURL: nil, - audioDuration: 0 - ) - chatMessages.append(message) - inputText = "" - sendAIResponse() - } - - private func sendAIResponse() { - DispatchQueue.main.asyncAfter(deadline: .now() + 1) { - let aiMessage = ChatMessage( - id: UUID(), - content: generateAIResponse(), - isUser: false, - timestamp: Date(), - messageType: .text, - audioURL: nil, - audioDuration: 0 - ) - chatMessages.append(aiMessage) - } - } - - private func generateAIResponse() -> String { - return aiResponses.randomElement() ?? aiResponses[0] - } - - private func formatDuration(_ duration: TimeInterval) -> String { - let minutes = Int(duration) / 60 - let seconds = Int(duration) % 60 - return String(format: "%d:%02d", minutes, seconds) - } -} - -// MARK: - 主视图 -struct InsightView: View { - @State private var selectedDate = Date() - @State private var selectedMood = "" - @State private var emotionText = "" - @State private var emotionScore = 5.0 - @State private var selectedTags: Set = [] - @State private var showingAIAnalysis = false - @State private var isAnalyzing = false - @State private var aiResponse = "" - @State private var showingSettings = false - @State private var showingMoodPicker = false - @State private var conversations: [AIConversation] = [] - @State private var showingConversationHistory = false - @State private var showingAIChat = false - - let availableTags = ["工作", "学习", "家庭", "朋友", "健康", "爱情", "财务", "娱乐"] - - var body: some View { - NavigationView { - mainContent - } - .sheet(isPresented: $showingSettings) { - InsightSettingsView() - } - .sheet(isPresented: $showingMoodPicker) { - MoodPickerSheet( - selectedMood: $selectedMood, - isPresented: $showingMoodPicker, - selectedDate: selectedDate - ) - } - .sheet(isPresented: $showingConversationHistory) { - NavigationView { - ScrollView { - ConversationHistoryView(conversations: conversations) - } - .navigationTitle("AI对话历史") - .toolbar { - ToolbarItem(placement: .cancellationAction) { - Button("关闭") { - showingConversationHistory = false - } - } - } - } - } - .fullScreenCover(isPresented: $showingAIChat) { - AIChatView(isPresented: $showingAIChat, initialMessage: emotionText) - } - } - - private var mainContent: some View { - ScrollView { - VStack(spacing: 16) { - // 导航栏 - navigationHeader - .padding(.horizontal) - - // 单行日历 - calendarSection - .padding(.horizontal) - - // 标签选择 - tagsSection - .padding(.horizontal) - - // 情感输入 - emotionInputSection - .padding(.horizontal) - - // AI分析按钮 - aiAnalysisButton - .padding(.horizontal) - - // 分析结果 - if showingAIAnalysis { - aiAnalysisResultSection - .padding(.horizontal) - } - - Spacer(minLength: 20) - } - } - .background(ThemeColors.lightBackground.ignoresSafeArea()) - } - - private var calendarSection: some View { - SingleRowCalendar(selectedDate: $selectedDate) { date in - selectedDate = date - showingMoodPicker = true - } - } - - // MARK: - 导航栏 - private var navigationHeader: some View { - HStack { - Button(action: { showingConversationHistory = true }) { - Image(systemName: "book.fill") - .font(.title2) - .foregroundColor(ThemeColors.wechatGreen) - } - - Spacer() - - Text("情感洞察") - .font(.title2) - .fontWeight(.semibold) - .foregroundColor(ThemeColors.textPrimary) - - Spacer() - - Button(action: { showingSettings = true }) { - Image(systemName: "gearshape.fill") - .font(.title2) - .foregroundColor(ThemeColors.textSecondary) - } - } - .padding(.horizontal) - } - - // MARK: - 标签选择 - private var tagsSection: some View { - VStack(alignment: .leading, spacing: 12) { - Text("相关标签(AI疗愈师3D IP)") - .font(.headline) - .foregroundColor(ThemeColors.textPrimary) - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 4), spacing: 8) { - ForEach(availableTags, id: \.self) { tag in - Button(action: { - if selectedTags.contains(tag) { - selectedTags.remove(tag) - } else { - selectedTags.insert(tag) - } - }) { - Text(tag) - .font(.caption) - .padding(.horizontal, 12) - .padding(.vertical, 6) - .background( - selectedTags.contains(tag) ? - ThemeColors.wechatGreen : ThemeColors.secondaryBackground - ) - .foregroundColor( - selectedTags.contains(tag) ? .white : ThemeColors.textPrimary - ) - .cornerRadius(12) - } - } - } - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - } - - // MARK: - 情感输入 - private var emotionInputSection: some View { - VStack(alignment: .leading, spacing: 12) { - Text("描述你的感受") - .font(.headline) - .foregroundColor(ThemeColors.textPrimary) - - TextEditor(text: $emotionText) - .frame(height: 240) - .padding(8) - .background(ThemeColors.secondaryBackground) - .cornerRadius(12) - .overlay( - RoundedRectangle(cornerRadius: 12) - .stroke(ThemeColors.wechatGreen.opacity(0.3), lineWidth: 1) - ) - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - } - - // MARK: - AI分析按钮 - private var aiAnalysisButton: some View { - Button(action: { - if !emotionText.isEmpty { - showingAIChat = true - } - }) { - HStack { - Image(systemName: "brain.head.profile") - .font(.title3) - Text("AI情感分析") - .font(.headline) - .fontWeight(.semibold) - } - .foregroundColor(.white) - .frame(maxWidth: .infinity) - .frame(height: 50) - .background( - LinearGradient( - colors: [ThemeColors.wechatGreen, ThemeColors.wechatGreen.opacity(0.8)], - startPoint: .leading, - endPoint: .trailing - ) - ) - .cornerRadius(25) - .shadow(color: ThemeColors.wechatGreen.opacity(0.3), radius: 8, x: 0, y: 4) - } - .disabled(emotionText.isEmpty) - .opacity(emotionText.isEmpty ? 0.6 : 1.0) - } - - // MARK: - AI分析结果 - private var aiAnalysisResultSection: some View { - VStack(alignment: .leading, spacing: 12) { - HStack { - Image(systemName: "sparkles") - .foregroundColor(ThemeColors.wechatGreen) - Text("AI分析结果") - .font(.headline) - .foregroundColor(ThemeColors.textPrimary) - } - - Text(aiResponse) - .font(.body) - .foregroundColor(ThemeColors.textPrimary) - .padding() - .frame(maxWidth: .infinity, alignment: .leading) - .background(ThemeColors.wechatGreen.opacity(0.1)) - .cornerRadius(12) - - Button("保存记录") { - saveEmotionRecord() - } - .font(.subheadline) - .foregroundColor(ThemeColors.wechatGreen) - .frame(maxWidth: .infinity) - .frame(height: 44) - .background(ThemeColors.wechatGreen.opacity(0.1)) - .cornerRadius(12) - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - } - - // MARK: - 方法 - private func getRandomGreeting() -> String { - let greetings = [ - "今天的心情如何?", - "让我们一起探索内心世界", - "记录此刻的感受", - "你的情感值得被倾听", - "每一种情绪都有它的意义" - ] - return greetings.randomElement() ?? greetings[0] - } - - private func analyzeEmotion() { - guard !emotionText.isEmpty else { return } - - isAnalyzing = true - - // 模拟AI分析过程 - DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) { - aiResponse = generateAIResponse() - showingAIAnalysis = true - isAnalyzing = false - } - } - - private func generateAIResponse() -> String { - let responses = [ - "从你的描述中,我感受到了复杂的情感层次。这种感受是完全正常的,建议你可以通过深呼吸来缓解当前的情绪状态。", - "你的情感表达很真诚。每个人都会经历情绪的起伏,重要的是学会接纳和理解自己的感受。", - "我注意到你提到的几个关键词,这些都反映了你内心的真实想法。建议你可以尝试写日记来进一步整理思绪。", - "你的情感很丰富,这说明你是一个敏感且有深度的人。建议适当的运动和音乐可以帮助调节情绪。" - ] - return responses.randomElement() ?? responses[0] - } - - private func saveEmotionRecord() { - let newConversation = AIConversation( - date: selectedDate, - userMessage: emotionText, - aiResponse: aiResponse, - mood: selectedMood, - tags: Array(selectedTags) - ) - - conversations.insert(newConversation, at: 0) - - // 重置输入 - emotionText = "" - selectedMood = "" - selectedTags.removeAll() - emotionScore = 5.0 - showingAIAnalysis = false - aiResponse = "" - } -} - -// MARK: - 设置页面 -struct InsightSettingsView: View { - @Environment(\.dismiss) private var dismiss - @State private var selectedTheme = 0 - @State private var musicVolume = 0.5 - @State private var soundEffectVolume = 0.7 - - let themes = ["自动", "浅色", "深色"] - - var body: some View { - NavigationView { - List { - Section("主题设置") { - SettingRow(title: "界面主题", value: themes[selectedTheme]) { - // 主题选择逻辑 - } - } - - Section("音频设置") { - VStack { - SettingRow(title: "背景音乐", value: "\(Int(musicVolume * 100))%") {} - Slider(value: $musicVolume, in: 0...1) - .accentColor(ThemeColors.wechatGreen) - } - - VStack { - SettingRow(title: "音效音量", value: "\(Int(soundEffectVolume * 100))%") {} - Slider(value: $soundEffectVolume, in: 0...1) - .accentColor(ThemeColors.wechatGreen) - } - } - } - .navigationTitle("设置") - #if os(iOS) - .navigationBarTitleDisplayMode(.inline) - #endif - .toolbar { - ToolbarItem(placement: { - #if os(iOS) - return .topBarTrailing - #elseif os(macOS) - return .automatic - #else - return .automatic - #endif - }()) { - Button("完成") { - dismiss() - } - .foregroundColor(ThemeColors.wechatGreen) - } - } - } - } -} - -// MARK: - 设置行组件 -struct SettingRow: View { - let title: String - let value: String - let action: () -> Void - - var body: some View { - HStack { - Text(title) - .foregroundColor(ThemeColors.textPrimary) - Spacer() - Text(value) - .foregroundColor(ThemeColors.textSecondary) - Image(systemName: "chevron.right") - .font(.caption) - .foregroundColor(ThemeColors.textSecondary) - } - .contentShape(Rectangle()) - .onTapGesture(perform: action) - } -} - -// MARK: - 情感记录卡片 -struct EmotionRecordCard: View { - let record: AIConversation - - var body: some View { - VStack(alignment: .leading, spacing: 8) { - HStack { - Text(record.mood) - .font(.title2) - Spacer() - Text(DateFormatter.shortDate.string(from: record.date)) - .font(.caption) - .foregroundColor(ThemeColors.textSecondary) - } - - Text(record.userMessage) - .font(.body) - .foregroundColor(ThemeColors.textPrimary) - .lineLimit(3) - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(12) - .shadow(color: .black.opacity(0.05), radius: 4, x: 0, y: 2) - } -} - -// MARK: - 日期格式化扩展 -extension DateFormatter { - static let monthYear: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy年M月" - return formatter - }() - - static let weekday: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "E" - return formatter - }() - - static let conversationDate: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "M月d日 HH:mm" - return formatter - }() - - static let fullDate: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "yyyy年M月d日" - return formatter - }() - - static let shortDate: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "M/d" - return formatter - }() -} - -// MARK: - 预览 -struct InsightView_Previews: PreviewProvider { - static var previews: some View { - InsightView() - .preferredColorScheme(.light) - - InsightView() - .preferredColorScheme(.dark) - } -} - -// MARK: - 对话历史视图 -struct ConversationHistoryView: View { - let conversations: [AIConversation] - - var body: some View { - VStack(alignment: .leading, spacing: 12) { - if conversations.isEmpty { - VStack { - Image(systemName: "message.circle") - .font(.largeTitle) - .foregroundColor(ThemeColors.textSecondary) - Text("暂无对话记录") - .font(.subheadline) - .foregroundColor(ThemeColors.textSecondary) - } - .frame(maxWidth: .infinity) - .padding(40) - } else { - ForEach(conversations) { conversation in - AIConversationCard(conversation: conversation) - } - } - } - .padding() - .background(ThemeColors.cardBackground) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, x: 0, y: 2) - } -} diff --git a/EmotionMuseum/EmotionMuseum/Views/LoadingComponents.swift b/EmotionMuseum/EmotionMuseum/Views/LoadingComponents.swift deleted file mode 100644 index 663a53e..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/LoadingComponents.swift +++ /dev/null @@ -1,438 +0,0 @@ -// -// LoadingComponents.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 加载状态枚举 -enum LoadingState { - case idle - case loading - case loaded - case error(String) -} - -// MARK: - 主题管理器 -class ThemeManager: ObservableObject { - @Published var isDarkMode: Bool = false - @Published var systemFollowsDeviceTheme: Bool = true - - init() { - // 从用户偏好设置中读取主题设置 - self.isDarkMode = UserDefaults.standard.bool(forKey: "darkMode") - self.systemFollowsDeviceTheme = UserDefaults.standard.bool(forKey: "systemFollowsDeviceTheme") - } - - func toggleTheme() { - isDarkMode.toggle() - UserDefaults.standard.set(isDarkMode, forKey: "darkMode") - } - - func setSystemFollowing(_ follows: Bool) { - systemFollowsDeviceTheme = follows - UserDefaults.standard.set(follows, forKey: "systemFollowsDeviceTheme") - } -} - -// MARK: - 主题颜色扩展 -extension Color { - static let theme = ColorTheme() -} - -struct ColorTheme { - // 主色调 - let primary = Color("PrimaryColor") - let secondary = Color("SecondaryColor") - let accent = Color("AccentColor") - - // 背景色 - let background = Color("BackgroundColor") - let cardBackground = Color("CardBackground") - let surfaceBackground = Color("SurfaceBackground") - - // 文字颜色 - let primaryText = Color("PrimaryText") - let secondaryText = Color("SecondaryText") - let tertiaryText = Color("TertiaryText") - - // 边框颜色 - let border = Color("BorderColor") - let divider = Color("DividerColor") - - // 状态颜色 - let success = Color("SuccessColor") - let warning = Color("WarningColor") - let error = Color("ErrorColor") - - // 骨架屏颜色 - let skeleton = Color("SkeletonColor") - let skeletonHighlight = Color("SkeletonHighlight") -} - -// MARK: - 基础骨架屏组件 -struct SkeletonView: View { - @State private var isAnimating = false - let width: CGFloat? - let height: CGFloat - let cornerRadius: CGFloat - - init(width: CGFloat? = nil, height: CGFloat = 20, cornerRadius: CGFloat = 8) { - self.width = width - self.height = height - self.cornerRadius = cornerRadius - } - - var body: some View { - Rectangle() - .fill( - LinearGradient( - colors: [ - Color.theme.skeleton, - Color.theme.skeletonHighlight, - Color.theme.skeleton - ], - startPoint: .leading, - endPoint: .trailing - ) - .opacity(isAnimating ? 0.6 : 1.0) - ) - .frame(width: width, height: height) - .cornerRadius(cornerRadius) - .onAppear { - withAnimation( - Animation - .easeInOut(duration: 1.2) - .repeatForever(autoreverses: true) - ) { - isAnimating = true - } - } - } -} - -// MARK: - 文本骨架屏 -struct SkeletonText: View { - let lineCount: Int - let spacing: CGFloat - - init(lineCount: Int = 3, spacing: CGFloat = 8) { - self.lineCount = lineCount - self.spacing = spacing - } - - var body: some View { - VStack(alignment: .leading, spacing: spacing) { - ForEach(0..: View { - let loadingState: LoadingState - let content: () -> Content - let loadingView: (() -> AnyView)? - let errorView: ((String) -> AnyView)? - - init( - loadingState: LoadingState, - @ViewBuilder content: @escaping () -> Content, - loadingView: (() -> AnyView)? = nil, - errorView: ((String) -> AnyView)? = nil - ) { - self.loadingState = loadingState - self.content = content - self.loadingView = loadingView - self.errorView = errorView - } - - var body: some View { - switch loadingState { - case .idle: - Color.clear - .onAppear { - // 可以在这里触发初始加载 - } - - case .loading: - if let loadingView = loadingView { - loadingView() - } else { - defaultLoadingView - } - - case .loaded: - content() - .transition(.opacity.combined(with: .scale(scale: 0.95))) - - case .error(let message): - if let errorView = errorView { - errorView(message) - } else { - defaultErrorView(message: message) - } - } - } - - private var defaultLoadingView: some View { - VStack(spacing: 20) { - ProgressView() - .scaleEffect(1.5) - .progressViewStyle(CircularProgressViewStyle(tint: Color.theme.accent)) - - Text("加载中...") - .font(.subheadline) - .foregroundColor(Color.theme.secondaryText) - } - .frame(maxWidth: .infinity, maxHeight: .infinity) - .background(Color.theme.background) - } - - private func defaultErrorView(message: String) -> some View { - VStack(spacing: 16) { - Image(systemName: "exclamationmark.triangle") - .font(.system(size: 48)) - .foregroundColor(Color.theme.error) - - Text("加载失败") - .font(.headline) - .foregroundColor(Color.theme.primaryText) - - Text(message) - .font(.subheadline) - .foregroundColor(Color.theme.secondaryText) - .multilineTextAlignment(.center) - - Button("重试") { - // 重试逻辑需要由父视图处理 - } - .buttonStyle(PrimaryButtonStyle()) - } - .padding(32) - .frame(maxWidth: .infinity, maxHeight: .infinity) - .background(Color.theme.background) - } -} - -// MARK: - 按钮样式 -struct PrimaryButtonStyle: ButtonStyle { - func makeBody(configuration: Configuration) -> some View { - configuration.label - .padding(.horizontal, 24) - .padding(.vertical, 12) - .background(Color.theme.accent) - .foregroundColor(.white) - .cornerRadius(12) - .scaleEffect(configuration.isPressed ? 0.95 : 1.0) - .animation(.easeInOut(duration: 0.1), value: configuration.isPressed) - } -} - -// MARK: - 列表加载视图 -struct LoadingList: View { - let itemCount: Int - let showAvatar: Bool - let showTrailing: Bool - - init(itemCount: Int = 5, showAvatar: Bool = true, showTrailing: Bool = true) { - self.itemCount = itemCount - self.showAvatar = showAvatar - self.showTrailing = showTrailing - } - - var body: some View { - LazyVStack(spacing: 0) { - ForEach(0..: View { - @State private var isRefreshing = false - let onRefresh: () async -> Void - let content: () -> Content - - init( - onRefresh: @escaping () async -> Void, - @ViewBuilder content: @escaping () -> Content - ) { - self.onRefresh = onRefresh - self.content = content - } - - var body: some View { - ScrollView { - content() - } - .refreshable { - await onRefresh() - } - } -} - -// MARK: - 加载更多组件 -struct LoadMoreView: View { - @State private var isLoading = false - let onLoadMore: () async -> Void - let hasMore: Bool - - init(hasMore: Bool = true, onLoadMore: @escaping () async -> Void) { - self.hasMore = hasMore - self.onLoadMore = onLoadMore - } - - var body: some View { - HStack { - Spacer() - - if hasMore { - if isLoading { - HStack(spacing: 8) { - ProgressView() - .scaleEffect(0.8) - Text("加载中...") - .font(.caption) - .foregroundColor(Color.theme.secondaryText) - } - } else { - Button("加载更多") { - Task { - isLoading = true - await onLoadMore() - isLoading = false - } - } - .font(.caption) - .foregroundColor(Color.theme.accent) - } - } else { - Text("没有更多内容了") - .font(.caption) - .foregroundColor(Color.theme.tertiaryText) - } - - Spacer() - } - .padding(.vertical, 16) - } -} - -// MARK: - 预览 -#Preview("骨架屏组件") { - VStack(spacing: 20) { - SkeletonCard() - SkeletonListItem() - SkeletonText() - } - .padding() - .background(Color.theme.background) -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/LoadingOverlay.swift b/EmotionMuseum/EmotionMuseum/Views/LoadingOverlay.swift deleted file mode 100644 index a255486..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/LoadingOverlay.swift +++ /dev/null @@ -1,55 +0,0 @@ -// -// LoadingOverlay.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/7/5. -// - -import SwiftUI - -struct LoadingOverlay: View { - let message: String - @State private var rotationAngle: Double = 0 - - var body: some View { - ZStack { - // 半透明背景 - Color.black - .opacity(0.3) - .ignoresSafeArea() - - // 加载内容 - VStack(spacing: 20) { - // 旋转的加载指示器 - Image(systemName: "brain.head.profile") - .font(.system(size: 40)) - .foregroundColor(Color("AccentColor")) - .rotationEffect(.degrees(rotationAngle)) - .onAppear { - withAnimation(.linear(duration: 2).repeatForever(autoreverses: false)) { - rotationAngle = 360 - } - } - - // 加载文字 - Text(message) - .font(.subheadline) - .foregroundColor(Color("PrimaryText")) - .multilineTextAlignment(.center) - } - .padding(30) - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color("CardBackground")) - .shadow(color: .black.opacity(0.1), radius: 10, x: 0, y: 5) - ) - } - .transition(.opacity) - .zIndex(999) // 确保在最顶层 - } -} - -#Preview { - LoadingOverlay(message: "正在加载数据...") - .background(Color.gray.opacity(0.3)) -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/MapView.swift b/EmotionMuseum/EmotionMuseum/Views/MapView.swift deleted file mode 100644 index dab3955..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/MapView.swift +++ /dev/null @@ -1,232 +0,0 @@ -import SwiftUI -// import AMapFoundationKit // 临时注释,需要安装CocoaPods依赖 -// import MAMapKit // 临时注释,需要安装CocoaPods依赖 -import UIKit -import MapKit -import CoreLocation - -/// 地图视图 -/// @Author huazhongmin -/// @Time 2024-03-24 -/// @Description 使用系统地图展示地图内容,默认定位到用户当前位置 -struct MapView: View { - @Binding var shouldMoveToUserLocation: Bool - - init(shouldMoveToUserLocation: Binding = .constant(false)) { - self._shouldMoveToUserLocation = shouldMoveToUserLocation - } - - var body: some View { - MapViewRepresentable(shouldMoveToUserLocation: $shouldMoveToUserLocation) - .edgesIgnoringSafeArea(.all) - } -} - -/// 系统地图SwiftUI包装器 -struct MapViewRepresentable: UIViewRepresentable { - @Binding var shouldMoveToUserLocation: Bool - - // 默认位置(天安门坐标) - let defaultLocation = CLLocationCoordinate2D( - latitude: 39.908823, - longitude: 116.397470 - ) - - // 创建地图视图的协调器 - func makeCoordinator() -> Coordinator { - Coordinator(self) - } - - // 创建地图视图 - func makeUIView(context: Context) -> MKMapView { - let mapView = MKMapView(frame: .zero) - mapView.delegate = context.coordinator - - // 显示用户位置 - mapView.showsUserLocation = true - mapView.userTrackingMode = .none // 不自动跟踪,手动控制 - - // 设置地图类型和控件 - mapView.mapType = .standard - mapView.showsCompass = true - mapView.showsScale = true - mapView.showsTraffic = false - - // 允许缩放和滚动 - mapView.isZoomEnabled = true - mapView.isScrollEnabled = true - mapView.isRotateEnabled = true - mapView.isPitchEnabled = true - - // 设置初始区域(在获取用户位置前显示默认位置) - let initialRegion = MKCoordinateRegion( - center: defaultLocation, - span: MKCoordinateSpan(latitudeDelta: 0.05, longitudeDelta: 0.05) - ) - mapView.setRegion(initialRegion, animated: false) - - // 保存mapView引用到coordinator并开始定位 - context.coordinator.mapView = mapView - context.coordinator.startLocationUpdates() - - return mapView - } - - // 更新地图视图 - func updateUIView(_ mapView: MKMapView, context: Context) { - // 检查是否需要重新请求定位权限 - context.coordinator.checkLocationPermission() - - // 检查是否需要移动到用户位置 - if shouldMoveToUserLocation { - context.coordinator.moveToUserLocation() - // 重置状态 - DispatchQueue.main.async { - shouldMoveToUserLocation = false - } - } - } - - // 协调器类,用于处理地图代理事件和位置管理 - class Coordinator: NSObject, MKMapViewDelegate, CLLocationManagerDelegate { - var parent: MapViewRepresentable - var mapView: MKMapView? - var locationManager: CLLocationManager - var hasInitialLocationSet = false - - init(_ parent: MapViewRepresentable) { - self.parent = parent - self.locationManager = CLLocationManager() - super.init() - - // 配置位置管理器 - locationManager.delegate = self - locationManager.desiredAccuracy = kCLLocationAccuracyBest - locationManager.distanceFilter = 10 // 移动10米以上才更新 - } - - // 开始位置更新 - func startLocationUpdates() { - checkLocationPermission() - } - - // 检查定位权限并请求权限 - func checkLocationPermission() { - guard CLLocationManager.locationServicesEnabled() else { - print("定位服务未启用") - return - } - - let authorizationStatus = locationManager.authorizationStatus - - switch authorizationStatus { - case .notDetermined: - // 首次使用,请求定位权限 - locationManager.requestWhenInUseAuthorization() - - case .authorizedWhenInUse, .authorizedAlways: - // 已授权,开始定位 - locationManager.startUpdatingLocation() - - case .denied, .restricted: - // 被拒绝或受限,显示默认位置 - print("定位权限被拒绝,显示默认位置") - setDefaultLocation() - - @unknown default: - print("未知的定位权限状态") - setDefaultLocation() - } - } - - // 设置默认位置 - func setDefaultLocation() { - DispatchQueue.main.async { - guard let mapView = self.mapView else { return } - - let region = MKCoordinateRegion( - center: self.parent.defaultLocation, - span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01) - ) - mapView.setRegion(region, animated: true) - } - } - - // MARK: - CLLocationManagerDelegate - - // 权限状态变化 - func locationManagerDidChangeAuthorization(_ manager: CLLocationManager) { - checkLocationPermission() - } - - // 位置更新成功 - func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { - guard let location = locations.last else { return } - - // 只在首次获取位置时自动移动地图到用户位置 - if !hasInitialLocationSet { - DispatchQueue.main.async { - guard let mapView = self.mapView else { return } - - let userRegion = MKCoordinateRegion( - center: location.coordinate, - span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01) - ) - mapView.setRegion(userRegion, animated: true) - self.hasInitialLocationSet = true - - print("已定位到用户位置: \(location.coordinate)") - } - - // 定位成功后可以停止持续更新,节省电量 - locationManager.stopUpdatingLocation() - } - } - - // 位置更新失败 - func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) { - print("定位失败: \(error.localizedDescription)") - - // 定位失败时显示默认位置 - if !hasInitialLocationSet { - setDefaultLocation() - hasInitialLocationSet = true - } - } - - // MARK: - MKMapViewDelegate - - // 用户位置更新(地图上的蓝点) - func mapView(_ mapView: MKMapView, didUpdate userLocation: MKUserLocation) { - // 这里不自动移动地图,避免干扰用户操作 - // 用户位置的蓝点会自动显示在地图上 - } - - // 地图区域变化 - func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) { - // 可以在这里处理地图区域变化事件 - } - - // 手动回到用户位置的方法(供外部调用) - func moveToUserLocation() { - guard let mapView = self.mapView, - let userLocation = mapView.userLocation.location else { - // 如果没有用户位置,重新开始定位 - checkLocationPermission() - return - } - - let userRegion = MKCoordinateRegion( - center: userLocation.coordinate, - span: MKCoordinateSpan(latitudeDelta: 0.01, longitudeDelta: 0.01) - ) - mapView.setRegion(userRegion, animated: true) - } - } -} - -struct MapView_Previews: PreviewProvider { - static var previews: some View { - MapView() - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/RecordView.swift b/EmotionMuseum/EmotionMuseum/Views/RecordView.swift deleted file mode 100644 index 45f9946..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/RecordView.swift +++ /dev/null @@ -1,662 +0,0 @@ -// -// RecordView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 记录页面主视图 -struct RecordView: View { - @EnvironmentObject var navigationManager: NavigationManager - @EnvironmentObject var themeManager: ThemeManager - @EnvironmentObject var mockData: MockDataManager - @StateObject private var aiService = MockAIService() - @State private var selectedDate = Date() - @State private var inputText = "" - @State private var showingMoodPicker = false - @State private var selectedMood = "" - @State private var loadingState: LoadingState = .idle - @State private var isInitialLoading = true - - var body: some View { - LoadingStateView(loadingState: isInitialLoading ? .loading : .loaded) { - VStack(spacing: 0) { - // 可滚动的主要内容区域 - ScrollView { - LazyVStack(spacing: 16) { - // 顶部导航栏 - topNavigationBar - .padding(.horizontal, 16) - .padding(.top, 8) - .transition(.move(edge: .top).combined(with: .opacity)) - - // 日历组件 - emotionCalendar - .padding(.horizontal, 16) - .transition(.scale(scale: 0.8).combined(with: .opacity)) - - // AI助手头像 - aiAvatarSection - .padding(.horizontal, 16) - .transition(.scale(scale: 0.9).combined(with: .opacity)) - - // 聊天区域 - chatArea - .padding(.horizontal, 16) - .transition(.opacity.combined(with: .slide)) - } - .padding(.bottom, 10) // 为输入区域留出空间 - } - .refreshable { - await simulateRefresh() - } - - // 固定在底部的输入区域 - inputArea - .background(Color.theme.cardBackground) - .shadow(color: .black.opacity(0.1), radius: 8, y: -4) - .transition(.move(edge: .bottom).combined(with: .opacity)) - } - } loadingView: { - AnyView(recordViewSkeleton) - } - .background(Color.theme.background) - .environmentObject(themeManager) - .preferredColorScheme(themeManager.systemFollowsDeviceTheme ? nil : (themeManager.isDarkMode ? .dark : .light)) - - .ignoresSafeArea(.keyboard, edges: .bottom) // 键盘出现时不影响布局 - .sheet(isPresented: $showingMoodPicker) { - MoodPickerView( - selectedDate: selectedDate, - selectedMood: $selectedMood, - isPresented: $showingMoodPicker - ) - } - .onAppear { - simulateInitialLoading() - } - } - - // MARK: - 顶部导航栏 - private var topNavigationBar: some View { - HStack { - // 左上角 - 聊天记录图标 - Button(action: { navigationManager.showChatHistory() }) { - Image(systemName: "bubble.left.and.bubble.right.fill") - .font(.title3) - .foregroundColor(.blue) - } - - Spacer() - - // 中间 - 页面标题 - Text("情绪记录") - .font(.title2) - .fontWeight(.semibold) - .foregroundColor(.primary) - - Spacer() - - // 右上角 - 设置图标 - Button(action: { navigationManager.navigateToSettings() }) { - Image(systemName: "gearshape.fill") - .font(.title3) - .foregroundColor(.gray) - } - } - } - - // MARK: - 情绪日历 - private var emotionCalendar: some View { - VStack(spacing: 12) { - HStack { - Text(selectedDate.formatted(.dateTime.month(.wide))) - .font(.headline) - .foregroundColor(.primary) - - Spacer() - - Button(action: { showingMoodPicker = true }) { - HStack(spacing: 4) { - Text(selectedMood.isEmpty ? "记录心情" : selectedMood) - .font(.caption) - Image(systemName: "plus.circle") - .font(.caption) - } - .foregroundColor(.blue) - } - } - - // 7天日历视图 - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 16) { - ForEach(-3...3, id: \.self) { dayOffset in - let date = Calendar.current.date(byAdding: .day, value: dayOffset, to: selectedDate) ?? selectedDate - let isToday = Calendar.current.isDate(date, inSameDayAs: Date()) - let isSelected = Calendar.current.isDate(date, inSameDayAs: selectedDate) - - VStack(spacing: 4) { - Text(DateFormatter.weekdayShort.string(from: date)) - .font(.caption2) - .foregroundColor(.secondary) - - Button(action: { selectedDate = date }) { - VStack(spacing: 2) { - Text("\(Calendar.current.component(.day, from: date))") - .font(.system(size: 16, weight: .medium)) - .foregroundColor(isSelected ? .white : .primary) - - // 情绪点 - Circle() - .fill(emotionColorForDate(date)) - .frame(width: 6, height: 6) - .opacity(hasEmotionRecord(for: date) ? 1 : 0) - } - .frame(width: 40, height: 44) - .background( - RoundedRectangle(cornerRadius: 12) - .fill(isSelected ? Color.blue : Color.clear) - ) - .overlay( - RoundedRectangle(cornerRadius: 12) - .stroke(isToday ? Color.blue : Color.clear, lineWidth: 1) - ) - } - } - } - } - .padding(.horizontal, 16) - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - } - - - - // MARK: - AI助手头像区域 - private var aiAvatarSection: some View { - HStack { - Spacer() - - // AI助手形象 - 紧凑版本 - ZStack { - // 背景渐变 - Circle() - .fill( - LinearGradient( - colors: [Color.blue.opacity(0.1), Color.purple.opacity(0.1)], - startPoint: .topLeading, - endPoint: .bottomTrailing - ) - ) - .frame(width: 80, height: 80) - - // AI助手图标 - Image(systemName: "brain.head.profile") - .font(.system(size: 35)) - .foregroundColor(.blue) - .scaleEffect(aiService.isLoading ? 1.1 : 1.0) - .animation(.easeInOut(duration: 1).repeatForever(), value: aiService.isLoading) - } - - Spacer() - } - .padding(.vertical, 10) - } - - // MARK: - 聊天区域 - private var chatArea: some View { - VStack(spacing: 0) { - if mockData.conversations.isEmpty { - // 默认状态:显示问候语和快捷回复 - defaultChatContent - } else { - // 有聊天记录时显示对话列表 - chatMessagesList - } - } - .frame(minHeight: 300) // 设置最小高度确保有足够的聊天空间 - } - - // MARK: - 默认聊天内容 - private var defaultChatContent: some View { - VStack(spacing: 20) { - // AI问候消息气泡 - HStack { - // AI头像 - Circle() - .fill(Color.blue.opacity(0.1)) - .frame(width: 32, height: 32) - .overlay( - Image(systemName: "brain.head.profile") - .font(.system(size: 16)) - .foregroundColor(.blue) - ) - - // 问候消息气泡 - VStack(alignment: .leading, spacing: 8) { - Text("你好!我是你的情绪陪伴师") - .font(.system(size: 16, weight: .medium)) - .foregroundColor(Color.theme.primaryText) - - Text(getGreetingText()) - .font(.system(size: 14)) - .foregroundColor(Color.theme.secondaryText) - } - .padding(.horizontal, 16) - .padding(.vertical, 12) - .background( - RoundedRectangle(cornerRadius: 18) - .fill(Color.theme.surfaceBackground) - .shadow(color: Color.black.opacity(0.05), radius: 2, x: 0, y: 1) - ) - - Spacer() - } - .padding(.horizontal, 4) - - // 快捷回复提示 - HStack { - Spacer() - Text("你可以这样开始对话") - .font(.caption) - .foregroundColor(Color.theme.tertiaryText) - Spacer() - } - .padding(.top, 10) - - // 快捷回复卡片 - chatQuickReplyCards - } - .padding(.vertical, 20) - } - - // MARK: - 聊天消息列表 - private var chatMessagesList: some View { - LazyVStack(spacing: 12) { - ForEach(mockData.conversations.prefix(3), id: \.id) { conversation in - ConversationPreviewCard(conversation: conversation) { - navigationManager.navigateToChat(conversation: conversation) - } - } - } - .padding(.vertical, 10) - } - - // MARK: - 聊天样式的快捷回复卡片 - private var chatQuickReplyCards: some View { - LazyVGrid(columns: [ - GridItem(.flexible(), spacing: 8), - GridItem(.flexible(), spacing: 8) - ], spacing: 12) { - ForEach(quickReplies, id: \.self) { reply in - Button(action: { sendQuickReply(reply) }) { - Text(reply) - .font(.system(size: 14, weight: .medium)) - .foregroundColor(Color("AccentColor")) - .multilineTextAlignment(.center) - .lineLimit(2) - .padding(.horizontal, 12) - .padding(.vertical, 14) - .frame(maxWidth: .infinity) - .frame(minHeight: 70) - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color.theme.cardBackground) - .overlay( - RoundedRectangle(cornerRadius: 12) - .stroke(Color("AccentColor").opacity(0.3), lineWidth: 1) - ) - .shadow( - color: Color.black.opacity(0.05), - radius: 3, - x: 0, - y: 2 - ) - ) - } - .buttonStyle(PlainButtonStyle()) - .scaleEffect(1.0) - .animation(.spring(response: 0.3, dampingFraction: 0.8), value: false) - } - } - } - - - - - - private let quickReplies = [ - "我今天感觉有点焦虑", - "想和你聊聊最近的压力", - "今天发生了一些开心的事", - "我需要一些建议" - ] - - // MARK: - 输入区域 - private var inputArea: some View { - VStack(spacing: 0) { - // 渐变分隔线 - LinearGradient( - colors: [Color.theme.divider.opacity(0), Color.theme.divider, Color.theme.divider.opacity(0)], - startPoint: .leading, - endPoint: .trailing - ) - .frame(height: 1) - - // 紧凑的输入区域 - HStack(spacing: 12) { - // 图片按钮 - Button(action: { }) { - Image(systemName: "photo.circle.fill") - .font(.title2) - .foregroundColor(Color.theme.secondaryText) - } - - // 主输入框容器 - HStack(spacing: 8) { - TextField("说说你的感受...", text: $inputText) - .textFieldStyle(PlainTextFieldStyle()) - .foregroundColor(Color.theme.primaryText) - .padding(.vertical, 12) - .padding(.leading, 16) - - // 语音输入按钮 - Button(action: { }) { - Image(systemName: "mic.circle.fill") - .font(.title2) - .foregroundColor(Color("AccentColor")) - } - .padding(.trailing, 8) - } - .background( - RoundedRectangle(cornerRadius: 24) - .fill(Color.theme.surfaceBackground) - .shadow( - color: Color.black.opacity(0.05), - radius: 2, - x: 0, - y: 1 - ) - ) - - // 发送按钮 - Button(action: sendMessage) { - Image(systemName: inputText.isEmpty ? "arrow.up.circle" : "arrow.up.circle.fill") - .font(.title2) - .foregroundColor(inputText.isEmpty ? Color.theme.secondaryText : Color("AccentColor")) - .scaleEffect(inputText.isEmpty ? 0.9 : 1.0) - .animation(.spring(response: 0.3, dampingFraction: 0.8), value: inputText.isEmpty) - } - .disabled(inputText.isEmpty) - } - .padding(.horizontal, 16) - .padding(.top, 12) - .padding(.bottom, 12) // 适中的底部间距 - .background( - Color.theme.cardBackground - .overlay( - // 顶部高光效果 - LinearGradient( - colors: [ - Color.white.opacity(themeManager.isDarkMode ? 0.05 : 0.4), - Color.clear - ], - startPoint: .top, - endPoint: .bottom - ) - .frame(height: 1), - alignment: .top - ) - ) - - // AI状态指示器(如果需要的话) - if aiService.isLoading { - HStack(spacing: 4) { - ProgressView() - .scaleEffect(0.7) - .tint(Color("AccentColor")) - Text("AI思考中...") - .font(.caption2) - .foregroundColor(Color.theme.secondaryText) - } - .padding(.horizontal, 16) - .padding(.bottom, 12) - .background(Color.theme.cardBackground) - } - } - } - - // MARK: - 私有方法 - - private func getGreetingText() -> String { - let hour = Calendar.current.component(.hour, from: Date()) - switch hour { - case 5..<12: - return "早上好!新的一天,新的开始。今天感觉怎么样?" - case 12..<17: - return "下午好!工作辛苦了,有什么想聊的吗?" - case 17..<22: - return "晚上好!一天结束了,让我们聊聊今天的感受吧。" - default: - return "夜深了,如果睡不着,我可以陪你聊聊。" - } - } - - private func emotionColorForDate(_ date: Date) -> Color { - // 模拟数据,实际应该从数据库获取 - let day = Calendar.current.component(.day, from: date) - switch day % 6 { - case 0: return .red - case 1: return .blue - case 2: return .green - case 3: return .yellow - case 4: return .purple - default: return .orange - } - } - - private func hasEmotionRecord(for date: Date) -> Bool { - // 模拟数据,实际应该查询数据库 - let day = Calendar.current.component(.day, from: date) - return day % 3 != 0 - } - - private func sendQuickReply(_ reply: String) { - inputText = reply - sendMessage() - } - - private func sendMessage() { - guard !inputText.isEmpty else { return } - - let messageContent = inputText - inputText = "" - - // 使用导航管理器发送消息 - navigationManager.sendMessage(messageContent) - - // 如果没有当前对话,自动进入全屏聊天模式 - if navigationManager.currentChatConversation == nil { - navigationManager.navigateToChat() - } - } - - private func loadConversations() { - // 从数据库或本地存储加载对话历史 - // mockData.conversations = [] // 如果需要清空对话历史 - } - - private func simulateInitialLoading() { - loadingState = .loading - - // 模拟异步加载过程 - DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) { - withAnimation(.easeOut(duration: 0.6)) { - isInitialLoading = false - loadingState = .loaded - } - loadConversations() - } - } - - private func simulateRefresh() async { - // 模拟刷新延迟 - try? await Task.sleep(nanoseconds: 1_000_000_000) - await MainActor.run { - loadConversations() - } - } - - // MARK: - 骨架屏视图 - private var recordViewSkeleton: some View { - VStack(spacing: 0) { - // 顶部导航栏骨架屏 - HStack { - SkeletonView(width: 24, height: 24, cornerRadius: 12) - Spacer() - SkeletonView(width: 100, height: 20, cornerRadius: 6) - Spacer() - SkeletonView(width: 24, height: 24, cornerRadius: 12) - } - .padding(.horizontal, 16) - .padding(.top, 8) - - // 日历组件骨架屏 - VStack(spacing: 12) { - HStack { - SkeletonView(width: 80, height: 20, cornerRadius: 6) - Spacer() - SkeletonView(width: 60, height: 16, cornerRadius: 4) - } - - HStack(spacing: 16) { - ForEach(0..<7, id: \.self) { _ in - VStack(spacing: 4) { - SkeletonView(width: 20, height: 12, cornerRadius: 3) - SkeletonView(width: 40, height: 44, cornerRadius: 12) - } - } - } - } - .padding() - .background(Color.theme.cardBackground) - .cornerRadius(16) - .padding(.horizontal, 16) - .padding(.vertical, 8) - - Spacer() - - // AI助手区域骨架屏 - VStack(spacing: 24) { - SkeletonView(width: 200, height: 200, cornerRadius: 100) - - VStack(spacing: 8) { - SkeletonView(width: 200, height: 20, cornerRadius: 6) - SkeletonView(width: 250, height: 16, cornerRadius: 4) - SkeletonView(width: 180, height: 16, cornerRadius: 4) - } - - VStack(spacing: 8) { - SkeletonView(width: 120, height: 12, cornerRadius: 3) - ForEach(0..<3, id: \.self) { _ in - SkeletonView(width: 160, height: 32, cornerRadius: 16) - } - } - } - .padding(.horizontal, 24) - - Spacer() - - // 输入区域骨架屏 - VStack(spacing: 12) { - HStack(spacing: 12) { - SkeletonView(height: 48, cornerRadius: 24) - SkeletonView(width: 48, height: 48, cornerRadius: 24) - } - - HStack(spacing: 24) { - ForEach(0..<2, id: \.self) { _ in - VStack(spacing: 4) { - SkeletonView(width: 24, height: 24, cornerRadius: 12) - SkeletonView(width: 30, height: 12, cornerRadius: 3) - } - } - Spacer() - } - } - .padding(.horizontal, 16) - .padding(.top, 16) - .padding(.bottom, 24) - .background(Color.theme.cardBackground) - } - .background(Color.theme.background) - } -} - -// MARK: - 辅助视图 - -// 心情选择视图 -struct MoodPickerView: View { - let selectedDate: Date - @Binding var selectedMood: String - @Binding var isPresented: Bool - - let moods = [ - ("😊", "开心"), ("😢", "难过"), ("😡", "愤怒"), - ("😰", "焦虑"), ("😌", "平静"), ("🤔", "思考") - ] - - var body: some View { - NavigationView { - VStack(spacing: 24) { - Text("选择今日心情") - .font(.title2) - .fontWeight(.semibold) - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 3), spacing: 16) { - ForEach(moods, id: \.0) { emoji, name in - Button(action: { - selectedMood = emoji - isPresented = false - }) { - VStack(spacing: 8) { - Text(emoji) - .font(.system(size: 40)) - Text(name) - .font(.caption) - .foregroundColor(.primary) - } - .frame(width: 80, height: 80) - .background(Color(.systemGray6)) - .cornerRadius(16) - } - } - } - .padding() - - Spacer() - } - .navigationTitle("心情记录") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .cancellationAction) { - Button("取消") { isPresented = false } - } - } - } - } -} - -// MARK: - 日期格式化扩展 -extension DateFormatter { - static let weekdayShort: DateFormatter = { - let formatter = DateFormatter() - formatter.dateFormat = "E" - return formatter - }() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/SupportViews.swift b/EmotionMuseum/EmotionMuseum/Views/SupportViews.swift deleted file mode 100644 index 7e7797e..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/SupportViews.swift +++ /dev/null @@ -1,875 +0,0 @@ -// -// SupportViews.swift -// EmotionMuseum -// -// Created by huazhongmin on 2024/01/01. -// - -import SwiftUI -import MapKit - -// MARK: - 占星分析视图 -struct AstroAnalysisView: View { - @State private var selectedDate = Date() - @State private var selectedTime = Date() - @State private var birthLocation = "" - - var body: some View { - NavigationView { - ScrollView { - VStack(spacing: 24) { - Text("通过占星学了解你的内在特质") - .font(.headline) - .multilineTextAlignment(.center) - .padding() - - VStack(spacing: 16) { - DatePicker("出生日期", selection: $selectedDate, displayedComponents: .date) - DatePicker("出生时间", selection: $selectedTime, displayedComponents: .hourAndMinute) - TextField("出生地点", text: $birthLocation) - .textFieldStyle(RoundedBorderTextFieldStyle()) - } - .padding() - - Button("生成星盘分析") { - // 分析逻辑 - } - .buttonStyle(.borderedProminent) - .padding() - } - } - .navigationTitle("占星分析") - } - } -} - -// MARK: - 地点标记卡片 -struct LocationMarkerCard: View { - let location: LocationPin - - var body: some View { - VStack(alignment: .leading, spacing: 8) { - HStack { - Image(systemName: location.category.icon) - .foregroundColor(location.emotion.color) - Text(location.name) - .font(.headline) - Spacer() - Text(location.emotion.emoji) - .font(.title2) - } - - Text(location.description) - .font(.caption) - .foregroundColor(.secondary) - .lineLimit(2) - } - .padding() - .background(Color(.systemBackground)) - .cornerRadius(12) - .shadow(radius: 2) - } -} - -// MARK: - 推荐地点卡片 -struct RecommendedLocationCard: View { - let location: LocationPin - - var body: some View { - VStack(alignment: .leading, spacing: 12) { - HStack { - VStack(alignment: .leading, spacing: 4) { - Text(location.name) - .font(.headline) - .fontWeight(.semibold) - - Text(location.category.rawValue) - .font(.caption) - .foregroundColor(.secondary) - } - - Spacer() - - VStack(spacing: 4) { - Text(location.emotion.emoji) - .font(.title) - - Text(location.emotion.displayName) - .font(.caption2) - .foregroundColor(location.emotion.color) - } - } - - Text(location.description) - .font(.subheadline) - .foregroundColor(.secondary) - .lineLimit(2) - - HStack { - Label("\(location.visitCount)", systemImage: "person.2") - .font(.caption) - .foregroundColor(.secondary) - - Spacer() - - if !location.tags.isEmpty { - Text("#\(location.tags.first ?? "")") - .font(.caption) - .foregroundColor(.blue) - .padding(.horizontal, 8) - .padding(.vertical, 2) - .background(Color.blue.opacity(0.1)) - .cornerRadius(4) - } - } - } - .padding() - .background(Color(.systemBackground)) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, y: 2) - } -} - -// MARK: - 社区动态卡片 -struct CommunityPostCard: View { - let post: CommunityPost - - var body: some View { - VStack(alignment: .leading, spacing: 12) { - HStack { - Circle() - .fill(Color.blue) - .frame(width: 40, height: 40) - .overlay( - Text(String(post.authorName.prefix(1))) - .foregroundColor(.white) - .fontWeight(.semibold) - ) - - VStack(alignment: .leading, spacing: 2) { - Text(post.authorName) - .font(.subheadline) - .fontWeight(.medium) - - Text(DateFormatter.shortRelative.string(from: post.createdAt)) - .font(.caption) - .foregroundColor(.secondary) - } - - Spacer() - - Text("💭") - .font(.title2) - } - - Text(post.content) - .font(.body) - .lineLimit(3) - - if !post.tags.isEmpty { - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 8) { - ForEach(post.tags, id: \.self) { tag in - Text("#\(tag)") - .font(.caption) - .foregroundColor(.blue) - .padding(.horizontal, 8) - .padding(.vertical, 4) - .background(Color.blue.opacity(0.1)) - .cornerRadius(8) - } - } - .padding(.horizontal, 4) - } - } - - HStack { - Button(action: {}) { - HStack(spacing: 4) { - Image(systemName: post.isLikedByCurrentUser ? "heart.fill" : "heart") - .foregroundColor(post.isLikedByCurrentUser ? .red : .gray) - Text("\(post.likes)") - .font(.caption) - .foregroundColor(.secondary) - } - } - - Button(action: {}) { - HStack(spacing: 4) { - Image(systemName: "message") - .foregroundColor(.gray) - Text("\(post.comments.count)") - .font(.caption) - .foregroundColor(.secondary) - } - } - - Spacer() - - Button(action: {}) { - Image(systemName: "square.and.arrow.up") - .foregroundColor(.gray) - } - } - } - .padding() - .background(Color(.systemBackground)) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, y: 2) - } -} - -// MARK: - 所有地点视图 -struct AllLocationsView: View { - @EnvironmentObject var dataManager: MockDataManager - @State private var searchText = "" - @State private var selectedCategory: LocationCategory? - @State private var sortOption: SortOption = .recent - - enum SortOption: String, CaseIterable { - case recent = "最近访问" - case popular = "最受欢迎" - case nearby = "距离最近" - case alphabetical = "按名称" - } - - var filteredLocations: [LocationPin] { - let filtered = dataManager.locationPins.filter { location in - let matchesSearch = searchText.isEmpty || - location.name.localizedCaseInsensitiveContains(searchText) || - location.description.localizedCaseInsensitiveContains(searchText) || - location.tags.contains { $0.localizedCaseInsensitiveContains(searchText) } - - let matchesCategory = selectedCategory == nil || location.category == selectedCategory - - return matchesSearch && matchesCategory - } - - switch sortOption { - case .recent: - return filtered.sorted { ($0.lastVisitAt ?? Date.distantPast) > ($1.lastVisitAt ?? Date.distantPast) } - case .popular: - return filtered.sorted { $0.visitCount > $1.visitCount } - case .nearby: - return filtered // 实际应用中需要根据用户位置排序 - case .alphabetical: - return filtered.sorted { $0.name < $1.name } - } - } - - var body: some View { - NavigationView { - VStack(spacing: 0) { - // 搜索栏 - SearchBar(text: $searchText) - .padding() - - // 筛选和排序 - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 12) { - // 分类筛选 - Button(action: { selectedCategory = nil }) { - Text("全部") - .font(.caption) - .foregroundColor(selectedCategory == nil ? .white : .primary) - .padding(.horizontal, 12) - .padding(.vertical, 6) - .background(selectedCategory == nil ? Color.blue : Color(.systemGray6)) - .cornerRadius(16) - } - - ForEach(LocationCategory.allCases, id: \.self) { category in - Button(action: { selectedCategory = category }) { - Text(category.rawValue) - .font(.caption) - .foregroundColor(selectedCategory == category ? .white : .primary) - .padding(.horizontal, 12) - .padding(.vertical, 6) - .background(selectedCategory == category ? Color.blue : Color(.systemGray6)) - .cornerRadius(16) - } - } - } - .padding(.horizontal) - } - .padding(.bottom) - - // 排序选项 - Picker("排序", selection: $sortOption) { - ForEach(SortOption.allCases, id: \.self) { option in - Text(option.rawValue).tag(option) - } - } - .pickerStyle(SegmentedPickerStyle()) - .padding(.horizontal) - - // 地点列表 - ScrollView { - LazyVStack(spacing: 16) { - ForEach(filteredLocations) { location in - AllLocationCard(location: location) - } - } - .padding() - } - } - .navigationTitle("所有地点") - } - } -} - -// MARK: - 搜索栏 -struct SearchBar: View { - @Binding var text: String - - var body: some View { - HStack { - Image(systemName: "magnifyingglass") - .foregroundColor(.gray) - - TextField("搜索地点、标签...", text: $text) - .textFieldStyle(PlainTextFieldStyle()) - - if !text.isEmpty { - Button(action: { text = "" }) { - Image(systemName: "xmark.circle.fill") - .foregroundColor(.gray) - } - } - } - .padding(.horizontal, 12) - .padding(.vertical, 8) - .background(Color(.systemGray6)) - .cornerRadius(10) - } -} - -// MARK: - 地点卡片 -struct AllLocationCard: View { - let location: LocationPin - - var body: some View { - HStack(spacing: 16) { - // 地点图标和情绪 - VStack(spacing: 8) { - Image(systemName: location.category.icon) - .font(.title2) - .foregroundColor(location.emotion.color) - .frame(width: 40, height: 40) - .background(location.emotion.color.opacity(0.2)) - .cornerRadius(12) - - Text(location.emotion.emoji) - .font(.title3) - } - - // 地点信息 - VStack(alignment: .leading, spacing: 4) { - Text(location.name) - .font(.headline) - .fontWeight(.semibold) - - Text(location.description) - .font(.subheadline) - .foregroundColor(.secondary) - .lineLimit(2) - - HStack { - Label("\(location.visitCount)次访问", systemImage: "clock") - .font(.caption) - .foregroundColor(.secondary) - - Spacer() - - if let lastVisit = location.lastVisitAt { - Text(DateFormatter.shortRelative.string(from: lastVisit)) - .font(.caption) - .foregroundColor(.secondary) - } - } - } - - Spacer() - - // 操作按钮 - VStack(spacing: 8) { - Button(action: {}) { - Image(systemName: location.isBookmarked ? "bookmark.fill" : "bookmark") - .foregroundColor(location.isBookmarked ? .blue : .gray) - } - - Button(action: {}) { - Image(systemName: "square.and.arrow.up") - .foregroundColor(.gray) - } - } - } - .padding() - .background(Color(.systemBackground)) - .cornerRadius(16) - .shadow(color: .black.opacity(0.05), radius: 8, y: 2) - } -} - -// MARK: - 创建分享视图 -struct CreatePostView: View { - let selectedLocation: LocationPin? - @Environment(\.dismiss) private var dismiss - @State private var postContent = "" - @State private var selectedEmotion: EmotionType = .neutral - @State private var selectedTags: Set = [] - - let availableTags = ["推荐", "美食", "风景", "心情", "感悟", "治愈", "安静", "热闹"] - - var body: some View { - NavigationView { - ScrollView { - VStack(spacing: 20) { - // 内容输入 - VStack(alignment: .leading, spacing: 8) { - Text("分享你的感受") - .font(.headline) - - TextEditor(text: $postContent) - .frame(height: 120) - .padding(8) - .background(Color(.systemGray6)) - .cornerRadius(12) - } - - // 情绪选择 - VStack(alignment: .leading, spacing: 8) { - Text("当前情绪") - .font(.headline) - - ScrollView(.horizontal, showsIndicators: false) { - HStack(spacing: 12) { - ForEach(EmotionType.allCases, id: \.self) { emotion in - Button(action: { selectedEmotion = emotion }) { - VStack(spacing: 4) { - Text(emotion.emoji) - .font(.title2) - Text(emotion.rawValue) - .font(.caption) - .foregroundColor(.primary) - } - .padding(8) - .background( - RoundedRectangle(cornerRadius: 12) - .fill(selectedEmotion == emotion ? emotion.color.opacity(0.3) : Color(.systemGray6)) - ) - } - } - } - .padding(.horizontal, 4) - } - } - - // 标签选择 - VStack(alignment: .leading, spacing: 8) { - Text("添加标签") - .font(.headline) - - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 4), spacing: 8) { - ForEach(availableTags, id: \.self) { tag in - Button(action: { - if selectedTags.contains(tag) { - selectedTags.remove(tag) - } else { - selectedTags.insert(tag) - } - }) { - Text("#\(tag)") - .font(.caption) - .foregroundColor(selectedTags.contains(tag) ? .white : .primary) - .padding(.horizontal, 8) - .padding(.vertical, 4) - .background( - RoundedRectangle(cornerRadius: 8) - .fill(selectedTags.contains(tag) ? Color.blue : Color(.systemGray6)) - ) - } - } - } - } - - // 位置信息 - if let location = selectedLocation { - VStack(alignment: .leading, spacing: 8) { - Text("位置") - .font(.headline) - - HStack(spacing: 12) { - Image(systemName: location.category.icon) - .foregroundColor(.blue) - - VStack(alignment: .leading, spacing: 2) { - Text(location.name) - .font(.subheadline) - .fontWeight(.medium) - - if let address = location.address { - Text(address) - .font(.caption) - .foregroundColor(.secondary) - } - } - - Spacer() - } - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - } - } - } - .padding() - } - .navigationTitle("分享动态") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .cancellationAction) { - Button("取消") { dismiss() } - } - - ToolbarItem(placement: .confirmationAction) { - Button("发布") { - // 发布逻辑 - dismiss() - } - .disabled(postContent.isEmpty) - } - } - } - } -} - -// MARK: - 地点详情视图 -struct LocationDetailView: View { - let location: LocationPin - @Environment(\.dismiss) private var dismiss - @State private var showingShareView = false - - var body: some View { - NavigationView { - ScrollView { - VStack(spacing: 24) { - // 头部信息 - VStack(spacing: 16) { - HStack(spacing: 20) { - Image(systemName: location.category.icon) - .font(.system(size: 48)) - .foregroundColor(location.emotion.color) - .frame(width: 80, height: 80) - .background(location.emotion.color.opacity(0.2)) - .cornerRadius(20) - - VStack(spacing: 8) { - Text(location.emotion.emoji) - .font(.system(size: 60)) - - Text(location.emotion.displayName) - .font(.headline) - .foregroundColor(location.emotion.color) - } - } - - Text(location.name) - .font(.title) - .fontWeight(.bold) - .multilineTextAlignment(.center) - - Text(location.description) - .font(.body) - .foregroundColor(.secondary) - .multilineTextAlignment(.center) - .padding(.horizontal) - } - .padding(.vertical, 20) - .frame(maxWidth: .infinity) - .background( - LinearGradient( - colors: [location.emotion.color.opacity(0.1), location.emotion.color.opacity(0.05)], - startPoint: .topLeading, - endPoint: .bottomTrailing - ) - ) - .cornerRadius(20) - - // 基本信息 - VStack(alignment: .leading, spacing: 12) { - Text("基本信息") - .font(.headline) - - InfoRow(icon: "location", title: "地址", value: location.address ?? "未设置") - InfoRow(icon: "list.bullet", title: "类别", value: location.category.rawValue) - InfoRow(icon: "number", title: "访问次数", value: "\(location.visitCount) 次") - } - .padding() - .background(Color(.systemBackground)) - .cornerRadius(16) - .shadow(radius: 2) - - // 操作按钮 - VStack(spacing: 12) { - Button(action: { showingShareView = true }) { - HStack { - Image(systemName: "square.and.pencil") - Text("在这里分享心情") - } - .font(.headline) - .foregroundColor(.white) - .frame(maxWidth: .infinity) - .padding() - .background(location.emotion.color) - .cornerRadius(12) - } - - HStack(spacing: 12) { - Button(action: {}) { - HStack { - Image(systemName: "bookmark") - Text("收藏") - } - .frame(maxWidth: .infinity) - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - } - - Button(action: {}) { - HStack { - Image(systemName: "square.and.arrow.up") - Text("分享") - } - .frame(maxWidth: .infinity) - .padding() - .background(Color(.systemGray6)) - .cornerRadius(12) - } - } - } - .padding(.horizontal) - } - .padding() - } - .navigationTitle("") - .navigationBarTitleDisplayMode(.inline) - .navigationBarBackButtonHidden(true) - .toolbar { - ToolbarItem(placement: .navigationBarLeading) { - Button(action: { dismiss() }) { - HStack(spacing: 4) { - Image(systemName: "xmark.circle.fill") - .foregroundColor(.gray) - Text("关闭") - .foregroundColor(.primary) - } - } - } - } - } - .sheet(isPresented: $showingShareView) { - CreatePostView(selectedLocation: location) - } - } -} - -// MARK: - 信息行组件 -struct InfoRow: View { - let icon: String - let title: String - let value: String - - var body: some View { - HStack { - Image(systemName: icon) - .foregroundColor(.blue) - .frame(width: 20) - - Text(title) - .font(.subheadline) - .foregroundColor(.secondary) - - Spacer() - - Text(value) - .font(.subheadline) - .fontWeight(.medium) - } - } -} - -// MARK: - 访问记录模型和视图 -struct VisitRecord: Identifiable, Codable { - let id: UUID - let date: Date - let emotion: EmotionType - let notes: String - - init(id: UUID = UUID(), date: Date, emotion: EmotionType, notes: String) { - self.id = id - self.date = date - self.emotion = emotion - self.notes = notes - } -} - -struct VisitHistoryRow: View { - let visit: VisitRecord - let isLatest: Bool - - var body: some View { - HStack(spacing: 12) { - VStack(spacing: 4) { - Text(visit.emotion.emoji) - .font(.title3) - - if isLatest { - Circle() - .fill(Color.green) - .frame(width: 6, height: 6) - } else { - Circle() - .fill(Color.gray.opacity(0.3)) - .frame(width: 4, height: 4) - } - } - - VStack(alignment: .leading, spacing: 4) { - HStack { - Text(visit.emotion.displayName) - .font(.subheadline) - .fontWeight(.medium) - .foregroundColor(visit.emotion.color) - - Spacer() - - Text(DateFormatter.localizedDate.string(from: visit.date)) - .font(.caption) - .foregroundColor(.secondary) - } - - Text(visit.notes) - .font(.caption) - .foregroundColor(.secondary) - .lineLimit(2) - } - } - .padding(.vertical, 4) - } -} - -// MARK: - 日期格式化扩展 -extension DateFormatter { - static let localizedDate: DateFormatter = { - let formatter = DateFormatter() - formatter.dateStyle = .medium - formatter.timeStyle = .none - return formatter - }() - - static let shortRelative: DateFormatter = { - let formatter = DateFormatter() - formatter.dateStyle = .short - formatter.timeStyle = .none - return formatter - }() -} - -// MARK: - 生成访问记录的辅助函数 -func generateVisitNote(for location: LocationPin, emotion: EmotionType) -> String { - let notes = [ - "在这里度过了美好的时光", - "心情得到了很好的调节", - "这个地方让我感到平静", - "和朋友一起来的,很开心", - "独自一人,享受安静的时光", - "记录了这次特别的体验" - ] - return notes.randomElement() ?? "记录了这次访问" -} - -// MARK: - 简化的成长相关视图 -struct GuidedSelectionView: View { - var body: some View { - VStack { - Text("引导选择") - .font(.title) - .padding() - - Text("这里是引导用户进行选择的界面") - .foregroundColor(.secondary) - .padding() - - Spacer() - } - } -} - -struct AstroAnalysisInputView: View { - var body: some View { - VStack { - Text("占星分析输入") - .font(.title) - .padding() - - Text("这里是占星分析的输入界面") - .foregroundColor(.secondary) - .padding() - - Spacer() - } - } -} - -// MARK: - 其他支持视图的简化版本 -struct TopicDetailView: View { - let topic: GrowthTopic - - var body: some View { - VStack { - Text(topic.title) - .font(.title) - .padding() - - Text(topic.description) - .foregroundColor(.secondary) - .padding() - - Spacer() - } - } -} - -struct EmotionalInsightsView: View { - var body: some View { - VStack { - Text("情绪洞察") - .font(.title) - .padding() - - Text("这里显示用户的情绪分析和洞察") - .foregroundColor(.secondary) - .padding() - - Spacer() - } - } -} - -struct ChatHistoryView: View { - var body: some View { - VStack { - Text("对话历史") - .font(.title) - .padding() - - Text("这里显示与AI的对话历史") - .foregroundColor(.secondary) - .padding() - - Spacer() - } - } -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/ThemeAdapter.swift b/EmotionMuseum/EmotionMuseum/Views/ThemeAdapter.swift deleted file mode 100644 index 13171e2..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/ThemeAdapter.swift +++ /dev/null @@ -1,415 +0,0 @@ -// -// ThemeAdapter.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 主题适配器 -struct ThemedCard: View { - let content: () -> Content - let padding: CGFloat - let cornerRadius: CGFloat - let shadowEnabled: Bool - - init( - padding: CGFloat = 16, - cornerRadius: CGFloat = 16, - shadowEnabled: Bool = true, - @ViewBuilder content: @escaping () -> Content - ) { - self.padding = padding - self.cornerRadius = cornerRadius - self.shadowEnabled = shadowEnabled - self.content = content - } - - var body: some View { - content() - .padding(padding) - .background(Color.theme.cardBackground) - .cornerRadius(cornerRadius) - .shadow( - color: shadowEnabled ? Color.black.opacity(0.05) : Color.clear, - radius: shadowEnabled ? 8 : 0, - x: 0, - y: shadowEnabled ? 2 : 0 - ) - } -} - -// MARK: - 主题文本组件 -struct ThemedText: View { - let text: String - let style: TextStyle - let alignment: TextAlignment - - enum TextStyle { - case title, headline, subheadline, body, caption - case primary, secondary, tertiary - - var font: Font { - switch self { - case .title: return .title - case .headline: return .headline - case .subheadline: return .subheadline - case .body: return .body - case .caption: return .caption - case .primary, .secondary, .tertiary: return .body - } - } - - var color: Color { - switch self { - case .title, .headline, .subheadline, .body, .primary: - return Color.theme.primaryText - case .secondary: - return Color.theme.secondaryText - case .tertiary, .caption: - return Color.theme.tertiaryText - } - } - } - - init(_ text: String, style: TextStyle = .body, alignment: TextAlignment = .leading) { - self.text = text - self.style = style - self.alignment = alignment - } - - var body: some View { - Text(text) - .font(style.font) - .foregroundColor(style.color) - .multilineTextAlignment(alignment) - } -} - -// MARK: - 主题按钮 -struct ThemedButton: View { - let title: String - let style: ButtonStyle - let size: ButtonSize - let action: () -> Void - - enum ButtonStyle { - case primary, secondary, outline, text - - var backgroundColor: Color { - switch self { - case .primary: return Color.theme.accent - case .secondary: return Color.theme.secondary - case .outline, .text: return Color.clear - } - } - - var foregroundColor: Color { - switch self { - case .primary: return .white - case .secondary: return Color.theme.primaryText - case .outline: return Color.theme.accent - case .text: return Color.theme.accent - } - } - - var borderColor: Color { - switch self { - case .outline: return Color.theme.accent - default: return Color.clear - } - } - } - - enum ButtonSize { - case small, medium, large - - var padding: EdgeInsets { - switch self { - case .small: return EdgeInsets(top: 8, leading: 12, bottom: 8, trailing: 12) - case .medium: return EdgeInsets(top: 12, leading: 16, bottom: 12, trailing: 16) - case .large: return EdgeInsets(top: 16, leading: 24, bottom: 16, trailing: 24) - } - } - - var cornerRadius: CGFloat { - switch self { - case .small: return 8 - case .medium: return 12 - case .large: return 16 - } - } - } - - init(_ title: String, style: ButtonStyle = .primary, size: ButtonSize = .medium, action: @escaping () -> Void) { - self.title = title - self.style = style - self.size = size - self.action = action - } - - var body: some View { - Button(action: action) { - Text(title) - .font(.subheadline) - .fontWeight(.medium) - .foregroundColor(style.foregroundColor) - .padding(size.padding) - .background(style.backgroundColor) - .overlay( - RoundedRectangle(cornerRadius: size.cornerRadius) - .stroke(style.borderColor, lineWidth: style == .outline ? 1 : 0) - ) - .cornerRadius(size.cornerRadius) - } - } -} - -// MARK: - 主题分隔线 -struct ThemedDivider: View { - let thickness: CGFloat - let color: Color? - - init(thickness: CGFloat = 1, color: Color? = nil) { - self.thickness = thickness - self.color = color - } - - var body: some View { - Rectangle() - .fill(color ?? Color.theme.divider) - .frame(height: thickness) - } -} - -// MARK: - 主题进度条 -struct ThemedProgressView: View { - let value: Double - let total: Double - let height: CGFloat - let backgroundColor: Color? - let foregroundColor: Color? - - init( - value: Double, - total: Double = 1.0, - height: CGFloat = 8, - backgroundColor: Color? = nil, - foregroundColor: Color? = nil - ) { - self.value = value - self.total = total - self.height = height - self.backgroundColor = backgroundColor - self.foregroundColor = foregroundColor - } - - var body: some View { - ProgressView(value: value, total: total) - .progressViewStyle( - ThemedLinearProgressViewStyle( - height: height, - backgroundColor: backgroundColor ?? Color.theme.skeleton, - foregroundColor: foregroundColor ?? Color.theme.accent - ) - ) - } -} - -struct ThemedLinearProgressViewStyle: ProgressViewStyle { - let height: CGFloat - let backgroundColor: Color - let foregroundColor: Color - - func makeBody(configuration: Configuration) -> some View { - GeometryReader { geometry in - ZStack(alignment: .leading) { - Rectangle() - .fill(backgroundColor) - .frame(height: height) - .cornerRadius(height / 2) - - Rectangle() - .fill(foregroundColor) - .frame( - width: geometry.size.width * CGFloat(configuration.fractionCompleted ?? 0), - height: height - ) - .cornerRadius(height / 2) - } - } - .frame(height: height) - } -} - -// MARK: - 主题输入框 -struct ThemedTextField: View { - let placeholder: String - @Binding var text: String - let style: TextFieldStyle - - enum TextFieldStyle { - case standard, rounded, outline - - var backgroundColor: Color { - switch self { - case .standard: return Color.clear - case .rounded: return Color.theme.surfaceBackground - case .outline: return Color.theme.background - } - } - - var borderColor: Color { - switch self { - case .outline: return Color.theme.border - default: return Color.clear - } - } - - var cornerRadius: CGFloat { - switch self { - case .rounded: return 12 - case .outline: return 8 - default: return 0 - } - } - } - - init(_ placeholder: String, text: Binding, style: TextFieldStyle = .standard) { - self.placeholder = placeholder - self._text = text - self.style = style - } - - var body: some View { - TextField(placeholder, text: $text) - .padding(.horizontal, style == .standard ? 0 : 12) - .padding(.vertical, style == .standard ? 0 : 10) - .background(style.backgroundColor) - .foregroundColor(Color.theme.primaryText) - .overlay( - RoundedRectangle(cornerRadius: style.cornerRadius) - .stroke(style.borderColor, lineWidth: style == .outline ? 1 : 0) - ) - .cornerRadius(style.cornerRadius) - } -} - -// MARK: - 主题图标 -struct ThemedIcon: View { - let systemName: String - let style: IconStyle - let size: IconSize - - enum IconStyle { - case primary, secondary, accent, custom(Color) - - var color: Color { - switch self { - case .primary: return Color.theme.primaryText - case .secondary: return Color.theme.secondaryText - case .accent: return Color.theme.accent - case .custom(let color): return color - } - } - } - - enum IconSize { - case small, medium, large, custom(CGFloat) - - var font: Font { - switch self { - case .small: return .caption - case .medium: return .body - case .large: return .title2 - case .custom(let size): return .system(size: size) - } - } - } - - init(_ systemName: String, style: IconStyle = .primary, size: IconSize = .medium) { - self.systemName = systemName - self.style = style - self.size = size - } - - var body: some View { - Image(systemName: systemName) - .font(size.font) - .foregroundColor(style.color) - } -} - -// MARK: - 主题列表行 -struct ThemedListRow: View { - let content: () -> Content - let showSeparator: Bool - let padding: EdgeInsets - - init( - showSeparator: Bool = true, - padding: EdgeInsets = EdgeInsets(top: 12, leading: 16, bottom: 12, trailing: 16), - @ViewBuilder content: @escaping () -> Content - ) { - self.showSeparator = showSeparator - self.padding = padding - self.content = content - } - - var body: some View { - VStack(spacing: 0) { - content() - .padding(padding) - .background(Color.theme.cardBackground) - - if showSeparator { - ThemedDivider() - .padding(.leading, padding.leading) - } - } - } -} - -// MARK: - 视图扩展 -extension View { - func themedCard( - padding: CGFloat = 16, - cornerRadius: CGFloat = 16, - shadowEnabled: Bool = true - ) -> some View { - ThemedCard( - padding: padding, - cornerRadius: cornerRadius, - shadowEnabled: shadowEnabled - ) { - self - } - } - - func themedBackground() -> some View { - background(Color.theme.background) - } - - func themedSurface() -> some View { - background(Color.theme.surfaceBackground) - } -} - -// MARK: - 预览 -#Preview("主题组件") { - VStack(spacing: 20) { - ThemedText("主标题", style: .title) - ThemedText("副标题文本", style: .secondary) - - ThemedButton("主要按钮") {} - ThemedButton("次要按钮", style: .secondary) {} - - ThemedProgressView(value: 0.6) - .frame(height: 8) - - ThemedTextField("请输入内容", text: .constant("")) - } - .padding() - .themedBackground() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/ThemeSettingsView.swift b/EmotionMuseum/EmotionMuseum/Views/ThemeSettingsView.swift deleted file mode 100644 index 737d524..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/ThemeSettingsView.swift +++ /dev/null @@ -1,367 +0,0 @@ -// -// ThemeSettingsView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -// MARK: - 主题设置页面 -struct ThemeSettingsView: View { - @EnvironmentObject var themeManager: ThemeManager - @Environment(\.dismiss) var dismiss - - var body: some View { - NavigationView { - List { - // 主题选择区域 - themeSelectionSection - - // 外观预览 - previewSection - - // 高级设置 - advancedSettingsSection - } - .listStyle(InsetGroupedListStyle()) - .navigationTitle("主题设置") - .navigationBarTitleDisplayMode(.large) - .toolbar { - ToolbarItem(placement: .topBarTrailing) { - Button("完成") { - dismiss() - } - .foregroundColor(Color.theme.accent) - } - } - } - .themedBackground() - .preferredColorScheme(themeManager.systemFollowsDeviceTheme ? nil : (themeManager.isDarkMode ? .dark : .light)) - } - - // MARK: - 主题选择区域 - private var themeSelectionSection: some View { - Section { - // 跟随系统设置 - ThemedListRow { - HStack { - ThemedIcon("gear.circle.fill", style: .accent, size: .medium) - - VStack(alignment: .leading, spacing: 2) { - ThemedText("跟随系统", style: .headline) - ThemedText("自动适应系统的深色模式设置", style: .secondary) - } - - Spacer() - - Toggle("", isOn: $themeManager.systemFollowsDeviceTheme) - .toggleStyle(SwitchToggleStyle(tint: Color.theme.accent)) - } - } - - if !themeManager.systemFollowsDeviceTheme { - // 浅色模式 - ThemeOptionRow( - title: "浅色模式", - description: "明亮清新的视觉体验", - icon: "sun.max.fill", - isSelected: !themeManager.isDarkMode - ) { - withAnimation(AnimationConfig.smooth) { - themeManager.isDarkMode = false - } - } - - // 深色模式 - ThemeOptionRow( - title: "深色模式", - description: "舒适护眼的暗色调体验", - icon: "moon.fill", - isSelected: themeManager.isDarkMode - ) { - withAnimation(AnimationConfig.smooth) { - themeManager.isDarkMode = true - } - } - } - } header: { - ThemedText("外观模式", style: .caption) - .foregroundColor(Color.theme.secondaryText) - } - } - - // MARK: - 预览区域 - private var previewSection: some View { - Section { - VStack(spacing: 16) { - // 预览卡片 - PreviewCard() - - // 色彩预览 - ColorPreviewGrid() - } - .padding(.vertical, 8) - } header: { - ThemedText("预览效果", style: .caption) - .foregroundColor(Color.theme.secondaryText) - } - } - - // MARK: - 高级设置 - private var advancedSettingsSection: some View { - Section { - // 重置主题设置 - ThemedListRow { - Button(action: resetThemeSettings) { - HStack { - ThemedIcon("arrow.clockwise.circle.fill", style: .custom(.orange), size: .medium) - ThemedText("重置主题设置", style: .headline) - Spacer() - } - } - } - - // 关于主题 - ThemedListRow(showSeparator: false) { - NavigationLink { - ThemeInfoView() - } label: { - HStack { - ThemedIcon("info.circle.fill", style: .accent, size: .medium) - ThemedText("关于主题", style: .headline) - Spacer() - ThemedIcon("chevron.right", style: .secondary, size: .small) - } - } - } - } header: { - ThemedText("高级选项", style: .caption) - .foregroundColor(Color.theme.secondaryText) - } - } - - private func resetThemeSettings() { - withAnimation(AnimationConfig.smooth) { - themeManager.systemFollowsDeviceTheme = true - themeManager.isDarkMode = false - } - - // 触觉反馈 - let impactFeedback = UIImpactFeedbackGenerator(style: .medium) - impactFeedback.impactOccurred() - } -} - -// MARK: - 主题选项行 -struct ThemeOptionRow: View { - let title: String - let description: String - let icon: String - let isSelected: Bool - let action: () -> Void - - var body: some View { - ThemedListRow { - Button(action: action) { - HStack(spacing: 12) { - ThemedIcon(icon, style: .accent, size: .medium) - - VStack(alignment: .leading, spacing: 2) { - ThemedText(title, style: .headline) - ThemedText(description, style: .secondary) - } - - Spacer() - - if isSelected { - ThemedIcon("checkmark.circle.fill", style: .custom(.green), size: .medium) - .transition(.scale.combined(with: .opacity)) - } - } - } - .buttonStyle(PlainButtonStyle()) - } - } -} - -// MARK: - 预览卡片 -struct PreviewCard: View { - var body: some View { - VStack(alignment: .leading, spacing: 12) { - HStack { - ThemedText("示例卡片", style: .headline) - Spacer() - ThemedIcon("heart.fill", style: .custom(.red), size: .medium) - } - - ThemedText("这是一个预览卡片,展示当前主题的效果。文本清晰度和对比度都经过精心调校。", style: .secondary) - - HStack { - ThemedButton("主要按钮", size: .small) {} - ThemedButton("次要按钮", style: .secondary, size: .small) {} - Spacer() - } - - ThemedProgressView(value: 0.6) - .frame(height: 6) - } - .themedCard() - } -} - -// MARK: - 色彩预览网格 -struct ColorPreviewGrid: View { - let colors: [(String, Color)] = [ - ("主色调", Color.theme.accent), - ("成功", Color.theme.success), - ("警告", Color.theme.warning), - ("错误", Color.theme.error) - ] - - var body: some View { - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 4), spacing: 12) { - ForEach(colors, id: \.0) { name, color in - VStack(spacing: 6) { - Circle() - .fill(color) - .frame(width: 32, height: 32) - - ThemedText(name, style: .caption) - .lineLimit(1) - } - } - } - .themedCard(padding: 12) - } -} - -// MARK: - 主题信息页面 -struct ThemeInfoView: View { - @Environment(\.dismiss) var dismiss - - var body: some View { - ScrollView { - VStack(alignment: .leading, spacing: 24) { - // 标题区域 - VStack(alignment: .leading, spacing: 8) { - ThemedText("关于主题系统", style: .title) - ThemedText("智能适配,呵护双眼", style: .secondary) - } - - // 特性介绍 - VStack(alignment: .leading, spacing: 16) { - FeatureRow( - icon: "eye.fill", - title: "护眼设计", - description: "精心调校的颜色对比度,长时间使用不疲劳" - ) - - FeatureRow( - icon: "paintbrush.fill", - title: "精美配色", - description: "专业设计师打造的色彩方案,视觉体验更佳" - ) - - FeatureRow( - icon: "gear.badge.checkmark", - title: "智能适配", - description: "可跟随系统设置自动切换,也可手动调节" - ) - - FeatureRow( - icon: "moon.stars.fill", - title: "深色模式", - description: "夜间使用更舒适,有效减少蓝光刺激" - ) - } - - Spacer(minLength: 32) - - // 版本信息 - VStack(spacing: 8) { - ThemedText("主题系统 v1.0", style: .secondary) - ThemedText("情绪博物馆团队制作", style: .tertiary) - } - .frame(maxWidth: .infinity) - } - .padding(.horizontal, 20) - .padding(.vertical, 24) - } - .themedBackground() - .navigationTitle("主题信息") - .navigationBarTitleDisplayMode(.inline) - } -} - -// MARK: - 特性行 -struct FeatureRow: View { - let icon: String - let title: String - let description: String - - var body: some View { - HStack(alignment: .top, spacing: 12) { - ThemedIcon(icon, style: .accent, size: .medium) - .frame(width: 24, height: 24) - - VStack(alignment: .leading, spacing: 4) { - ThemedText(title, style: .headline) - ThemedText(description, style: .secondary) - } - } - } -} - -// MARK: - 快速主题切换组件 -struct QuickThemeToggle: View { - @EnvironmentObject var themeManager: ThemeManager - - var body: some View { - Button(action: toggleTheme) { - HStack(spacing: 8) { - ThemedIcon( - themeManager.isDarkMode ? "moon.fill" : "sun.max.fill", - style: .accent, - size: .medium - ) - - ThemedText( - themeManager.isDarkMode ? "深色" : "浅色", - style: .secondary - ) - } - .padding(.horizontal, 12) - .padding(.vertical, 6) - .background(Color.theme.surfaceBackground) - .cornerRadius(16) - } - .buttonStyle(PlainButtonStyle()) - } - - private func toggleTheme() { - withAnimation(AnimationConfig.smooth) { - if themeManager.systemFollowsDeviceTheme { - themeManager.setSystemFollowing(false) - } - themeManager.toggleTheme() - } - - // 触觉反馈 - let impactFeedback = UIImpactFeedbackGenerator(style: .light) - impactFeedback.impactOccurred() - } -} - -// MARK: - 预览 -#Preview("主题设置") { - ThemeSettingsView() - .environmentObject(ThemeManager()) -} - -#Preview("快速切换") { - QuickThemeToggle() - .environmentObject(ThemeManager()) - .padding() - .themedBackground() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseum/Views/UniverseView.swift b/EmotionMuseum/EmotionMuseum/Views/UniverseView.swift deleted file mode 100644 index 2f2e66a..0000000 --- a/EmotionMuseum/EmotionMuseum/Views/UniverseView.swift +++ /dev/null @@ -1,622 +0,0 @@ -// -// UniverseView.swift -// EmotionMuseum -// -// Created by 华中敏 on 2025/6/13. -// - -import SwiftUI - -struct UniverseView: View { - @State private var showingProfile = false - @State private var showingSettings = false - @State private var showingAchievements = false - @State private var showingDataExport = false - - var body: some View { - NavigationView { - ScrollView { - VStack(spacing: 24) { - // 用户信息卡片 - UserProfileCard(onEditProfile: { - showingProfile = true - }) - - // 成长数据概览 - GrowthOverviewCard() - - // 功能菜单 - VStack(spacing: 16) { - MenuSection(title: "我的成长") { - VStack(spacing: 12) { - MenuRow( - icon: "trophy.fill", - title: "成就徽章", - subtitle: "查看你的成长里程碑", - color: .yellow, - action: { showingAchievements = true } - ) - - MenuRow( - icon: "chart.line.uptrend.xyaxis", - title: "成长报告", - subtitle: "详细的成长数据分析", - color: .blue, - action: { /* 跳转到成长报告 */ } - ) - - MenuRow( - icon: "calendar", - title: "情绪日历", - subtitle: "回顾你的情绪历程", - color: .green, - action: { /* 跳转到情绪日历 */ } - ) - } - } - - MenuSection(title: "数据管理") { - VStack(spacing: 12) { - MenuRow( - icon: "square.and.arrow.up", - title: "导出数据", - subtitle: "导出你的个人数据", - color: .purple, - action: { showingDataExport = true } - ) - - MenuRow( - icon: "icloud.and.arrow.up", - title: "云端同步", - subtitle: "同步到iCloud", - color: .cyan, - action: { /* 云端同步 */ } - ) - } - } - - MenuSection(title: "设置") { - VStack(spacing: 12) { - MenuRow( - icon: "bell.fill", - title: "通知设置", - subtitle: "管理提醒和通知", - color: .orange, - action: { /* 通知设置 */ } - ) - - MenuRow( - icon: "lock.fill", - title: "隐私设置", - subtitle: "数据隐私和安全", - color: .red, - action: { /* 隐私设置 */ } - ) - - MenuRow( - icon: "gearshape.fill", - title: "应用设置", - subtitle: "个性化设置", - color: .gray, - action: { showingSettings = true } - ) - } - } - - MenuSection(title: "帮助与支持") { - VStack(spacing: 12) { - MenuRow( - icon: "questionmark.circle.fill", - title: "使用帮助", - subtitle: "常见问题和使用指南", - color: .blue, - action: { /* 帮助页面 */ } - ) - - MenuRow( - icon: "envelope.fill", - title: "联系我们", - subtitle: "反馈和建议", - color: .green, - action: { /* 联系我们 */ } - ) - - MenuRow( - icon: "star.fill", - title: "评价应用", - subtitle: "在App Store评价", - color: .yellow, - action: { /* 跳转App Store */ } - ) - } - } - } - - // 版本信息 - VStack(spacing: 8) { - Text("情绪博物馆") - .font(.subheadline) - .foregroundColor(.secondary) - - Text("版本 1.0.0") - .font(.caption) - .foregroundColor(.secondary) - } - .padding(.top, 20) - } - .padding(.horizontal) - .padding(.vertical) - } - .navigationTitle("我的宇宙") - .navigationBarTitleDisplayMode(.large) - } - .sheet(isPresented: $showingProfile) { - ProfileEditView() - } - .sheet(isPresented: $showingSettings) { - SettingsView() - } - .sheet(isPresented: $showingAchievements) { - AchievementsView() - } - .sheet(isPresented: $showingDataExport) { - DataExportView() - } - } -} - -// MARK: - 用户信息卡片 -struct UserProfileCard: View { - let onEditProfile: () -> Void - - var body: some View { - VStack(spacing: 16) { - HStack { - // 头像 - Button(action: onEditProfile) { - ZStack { - Circle() - .fill(LinearGradient( - colors: [.purple, .blue], - startPoint: .topLeading, - endPoint: .bottomTrailing - )) - .frame(width: 80, height: 80) - - Text("华") - .font(.title) - .fontWeight(.bold) - .foregroundColor(.white) - } - } - - VStack(alignment: .leading, spacing: 4) { - Text("华中敏") - .font(.title2) - .fontWeight(.bold) - - Text("成长探索者") - .font(.subheadline) - .foregroundColor(.secondary) - - HStack(spacing: 4) { - Image(systemName: "calendar") - .font(.caption) - Text("加入 30 天") - .font(.caption) - } - .foregroundColor(.secondary) - } - - Spacer() - - Button(action: onEditProfile) { - Image(systemName: "pencil") - .font(.title3) - .foregroundColor(.blue) - } - } - - // 成长等级 - VStack(spacing: 8) { - HStack { - Text("成长等级") - .font(.subheadline) - .fontWeight(.medium) - - Spacer() - - Text("Lv.5") - .font(.subheadline) - .fontWeight(.bold) - .foregroundColor(.purple) - } - - ProgressView(value: 0.7) - .progressViewStyle(LinearProgressViewStyle(tint: .purple)) - - HStack { - Text("距离下一级还需 150 经验") - .font(.caption) - .foregroundColor(.secondary) - - Spacer() - } - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(UIColor.systemGray6)) - ) - } -} - -// MARK: - 成长数据概览 -struct GrowthOverviewCard: View { - var body: some View { - VStack(alignment: .leading, spacing: 16) { - Text("本周成长数据") - .font(.headline) - .fontWeight(.semibold) - - HStack(spacing: 16) { - GrowthMetricView( - title: "情绪记录", - value: "12", - unit: "次", - color: .blue, - icon: "heart.fill" - ) - - GrowthMetricView( - title: "疗愈时长", - value: "45", - unit: "分钟", - color: .purple, - icon: "timer.circle.fill" - ) - } - - HStack(spacing: 16) { - GrowthMetricView( - title: "课题进展", - value: "3", - unit: "个", - color: .green, - icon: "checkmark.circle.fill" - ) - - GrowthMetricView( - title: "连续天数", - value: "7", - unit: "天", - color: .orange, - icon: "flame.fill" - ) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 16) - .fill(Color(.systemGray6)) - ) - } -} - -struct GrowthMetricView: View { - let title: String - let value: String - let unit: String - let color: Color - let icon: String - - var body: some View { - VStack(spacing: 8) { - HStack { - Image(systemName: icon) - .font(.title3) - .foregroundColor(color) - - Spacer() - } - - VStack(alignment: .leading, spacing: 2) { - HStack(alignment: .bottom, spacing: 2) { - Text(value) - .font(.title2) - .fontWeight(.bold) - - Text(unit) - .font(.caption) - .foregroundColor(.secondary) - } - - Text(title) - .font(.caption) - .foregroundColor(.secondary) - } - .frame(maxWidth: .infinity, alignment: .leading) - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.systemBackground)) - ) - } -} - -// MARK: - 菜单组件 -struct MenuSection: View { - let title: String - let content: Content - - init(title: String, @ViewBuilder content: () -> Content) { - self.title = title - self.content = content() - } - - var body: some View { - VStack(alignment: .leading, spacing: 12) { - Text(title) - .font(.headline) - .fontWeight(.semibold) - - content - } - .frame(maxWidth: .infinity, alignment: .leading) - } -} - -struct MenuRow: View { - let icon: String - let title: String - let subtitle: String - let color: Color - let action: () -> Void - - var body: some View { - Button(action: action) { - HStack(spacing: 16) { - ZStack { - RoundedRectangle(cornerRadius: 8) - .fill(color.opacity(0.1)) - .frame(width: 40, height: 40) - - Image(systemName: icon) - .font(.title3) - .foregroundColor(color) - } - - VStack(alignment: .leading, spacing: 2) { - Text(title) - .font(.subheadline) - .fontWeight(.medium) - .foregroundColor(.primary) - - Text(subtitle) - .font(.caption) - .foregroundColor(.secondary) - } - - Spacer() - - Image(systemName: "chevron.right") - .font(.caption) - .foregroundColor(.secondary) - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.systemGray6)) - ) - } - .buttonStyle(PlainButtonStyle()) - } -} - -// MARK: - 子页面视图(占位符) -struct ProfileEditView: View { - @Environment(\.dismiss) private var dismiss - - var body: some View { - NavigationView { - VStack { - Text("个人资料编辑") - .font(.title) - - Text("这里是个人资料编辑页面") - .foregroundColor(.secondary) - } - .navigationTitle("编辑资料") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarLeading) { - Button("取消") { - dismiss() - } - } - - ToolbarItem(placement: .navigationBarTrailing) { - Button("保存") { - dismiss() - } - } - } - } - } -} - -struct SettingsView: View { - @Environment(\.dismiss) private var dismiss - - var body: some View { - NavigationView { - VStack { - Text("应用设置") - .font(.title) - - Text("这里是应用设置页面") - .foregroundColor(.secondary) - } - .navigationTitle("设置") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarTrailing) { - Button("完成") { - dismiss() - } - } - } - } - } -} - -struct AchievementsView: View { - @Environment(\.dismiss) private var dismiss - - var body: some View { - NavigationView { - ScrollView { - LazyVGrid(columns: Array(repeating: GridItem(.flexible()), count: 2), spacing: 16) { - ForEach(0..<6) { index in - AchievementCard(achievement: sampleAchievements[index]) - } - } - .padding() - } - .navigationTitle("成就徽章") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarTrailing) { - Button("完成") { - dismiss() - } - } - } - } - } - - private var sampleAchievements: [Achievement] { - [ - Achievement(title: "初心者", description: "完成第一次情绪记录", category: .milestone, icon: "star.fill", rarity: .common, requirement: .conversationCount(1), targetValue: 1, unlockedAt: Date()), - Achievement(title: "坚持者", description: "连续7天记录情绪", category: .consistency, icon: "flame.fill", rarity: .rare, requirement: .consecutiveDays(7), targetValue: 7, unlockedAt: Date()), - Achievement(title: "探索者", description: "开始第一个课题", category: .growth, icon: "map.fill", rarity: .common, requirement: .topicCompletion(1), targetValue: 1, unlockedAt: Date()), - Achievement(title: "疗愈师", description: "完成10次脉轮疗愈", category: .emotion, icon: "heart.fill", rarity: .epic, requirement: .emotionRecordCount(10), targetValue: 10), - Achievement(title: "成长者", description: "完成一个完整课题", category: .growth, icon: "trophy.fill", rarity: .rare, requirement: .topicCompletion(5), targetValue: 5), - Achievement(title: "大师", description: "达到10级成长等级", category: .milestone, icon: "crown.fill", rarity: .legendary, requirement: .totalPoints(10000), targetValue: 10000) - ] - } -} - -struct DataExportView: View { - @Environment(\.dismiss) private var dismiss - - var body: some View { - NavigationView { - VStack(spacing: 20) { - Text("数据导出") - .font(.title) - - Text("选择要导出的数据类型") - .foregroundColor(.secondary) - - VStack(spacing: 12) { - ExportOptionRow(title: "情绪记录", description: "所有的情绪记录数据") - ExportOptionRow(title: "疗愈记录", description: "脉轮疗愈会话记录") - ExportOptionRow(title: "课题进展", description: "成长课题和进展数据") - ExportOptionRow(title: "成就数据", description: "解锁的成就和里程碑") - } - - Spacer() - - Button("导出数据") { - // 导出逻辑 - } - .buttonStyle(.borderedProminent) - } - .padding() - .navigationTitle("导出数据") - .navigationBarTitleDisplayMode(.inline) - .toolbar { - ToolbarItem(placement: .navigationBarTrailing) { - Button("取消") { - dismiss() - } - } - } - } - } -} - -struct ExportOptionRow: View { - let title: String - let description: String - @State private var isSelected = false - - var body: some View { - HStack { - VStack(alignment: .leading, spacing: 4) { - Text(title) - .font(.subheadline) - .fontWeight(.medium) - - Text(description) - .font(.caption) - .foregroundColor(.secondary) - } - - Spacer() - - Toggle("", isOn: $isSelected) - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.systemGray6)) - ) - } -} - -struct AchievementCard: View { - let achievement: Achievement - - var body: some View { - VStack(spacing: 12) { - ZStack { - Circle() - .fill(achievement.isUnlocked ? achievement.rarity.color.opacity(0.2) : Color.gray.opacity(0.2)) - .frame(width: 60, height: 60) - - Image(systemName: achievement.icon) - .font(.title2) - .foregroundColor(achievement.isUnlocked ? achievement.rarity.color : .gray) - } - - VStack(spacing: 4) { - Text(achievement.title) - .font(.subheadline) - .fontWeight(.medium) - .foregroundColor(achievement.isUnlocked ? .primary : .secondary) - - Text(achievement.description) - .font(.caption) - .foregroundColor(.secondary) - .multilineTextAlignment(.center) - .lineLimit(2) - } - } - .padding() - .background( - RoundedRectangle(cornerRadius: 12) - .fill(Color(.systemGray6)) - ) - .opacity(achievement.isUnlocked ? 1.0 : 0.6) - } -} - -// MARK: - 数据模型(使用DataModels中的Achievement) - -#Preview { - UniverseView() -} \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseumTests/EmotionMuseumTests.swift b/EmotionMuseum/EmotionMuseumTests/EmotionMuseumTests.swift deleted file mode 100644 index b3a3f73..0000000 --- a/EmotionMuseum/EmotionMuseumTests/EmotionMuseumTests.swift +++ /dev/null @@ -1,17 +0,0 @@ -// -// EmotionMuseumTests.swift -// EmotionMuseumTests -// -// Created by 华中敏 on 2025/6/13. -// - -import Testing -@testable import EmotionMuseum - -struct EmotionMuseumTests { - - @Test func example() async throws { - // Write your test here and use APIs like `#expect(...)` to check expected conditions. - } - -} diff --git a/EmotionMuseum/EmotionMuseumTests/Info.plist b/EmotionMuseum/EmotionMuseumTests/Info.plist deleted file mode 100644 index 86b8cc9..0000000 --- a/EmotionMuseum/EmotionMuseumTests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - \ No newline at end of file diff --git a/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITests.swift b/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITests.swift deleted file mode 100644 index b190676..0000000 --- a/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITests.swift +++ /dev/null @@ -1,41 +0,0 @@ -// -// EmotionMuseumUITests.swift -// EmotionMuseumUITests -// -// Created by 华中敏 on 2025/6/13. -// - -import XCTest - -final class EmotionMuseumUITests: XCTestCase { - - override func setUpWithError() throws { - // Put setup code here. This method is called before the invocation of each test method in the class. - - // In UI tests it is usually best to stop immediately when a failure occurs. - continueAfterFailure = false - - // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. - } - - override func tearDownWithError() throws { - // Put teardown code here. This method is called after the invocation of each test method in the class. - } - - @MainActor - func testExample() throws { - // UI tests must launch the application that they test. - let app = XCUIApplication() - app.launch() - - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - @MainActor - func testLaunchPerformance() throws { - // This measures how long it takes to launch your application. - measure(metrics: [XCTApplicationLaunchMetric()]) { - XCUIApplication().launch() - } - } -} diff --git a/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITestsLaunchTests.swift b/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITestsLaunchTests.swift deleted file mode 100644 index d96a541..0000000 --- a/EmotionMuseum/EmotionMuseumUITests/EmotionMuseumUITestsLaunchTests.swift +++ /dev/null @@ -1,33 +0,0 @@ -// -// EmotionMuseumUITestsLaunchTests.swift -// EmotionMuseumUITests -// -// Created by 华中敏 on 2025/6/13. -// - -import XCTest - -final class EmotionMuseumUITestsLaunchTests: XCTestCase { - - override class var runsForEachTargetApplicationUIConfiguration: Bool { - true - } - - override func setUpWithError() throws { - continueAfterFailure = false - } - - @MainActor - func testLaunch() throws { - let app = XCUIApplication() - app.launch() - - // Insert steps here to perform after app launch but before taking a screenshot, - // such as logging into a test account or navigating somewhere in the app - - let attachment = XCTAttachment(screenshot: app.screenshot()) - attachment.name = "Launch Screen" - attachment.lifetime = .keepAlways - add(attachment) - } -} diff --git a/EmotionMuseum/EmotionMuseumUITests/Info.plist b/EmotionMuseum/EmotionMuseumUITests/Info.plist deleted file mode 100644 index 86b8cc9..0000000 --- a/EmotionMuseum/EmotionMuseumUITests/Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - - \ No newline at end of file diff --git a/EmotionMuseum/LocalPods/AMap_iOS_Foundation_Lib_V1.8.2.zip b/EmotionMuseum/LocalPods/AMap_iOS_Foundation_Lib_V1.8.2.zip deleted file mode 100644 index dd09d88..0000000 Binary files a/EmotionMuseum/LocalPods/AMap_iOS_Foundation_Lib_V1.8.2.zip and /dev/null differ diff --git a/EmotionMuseum/MVP功能.pdf b/EmotionMuseum/MVP功能.pdf deleted file mode 100644 index fc8818e..0000000 Binary files a/EmotionMuseum/MVP功能.pdf and /dev/null differ diff --git a/EmotionMuseum/images/65149df3-ab7e-457c-bfa2-bb74e2fed54c.svg b/EmotionMuseum/images/65149df3-ab7e-457c-bfa2-bb74e2fed54c.svg deleted file mode 100644 index 56a9582..0000000 --- a/EmotionMuseum/images/65149df3-ab7e-457c-bfa2-bb74e2fed54c.svg +++ /dev/null @@ -1 +0,0 @@ -
③单行日历
①左上角
(日记本图标)
AI对话记录
选择记录
跳转聊天详情
②右上角
(设置图标)
主题设置
音乐设置
音效设置
选择主题
调整音量
调整音量
界面主题变化
音乐音量变化
音效音量变化
折叠/展开
选择日期
弹出可选择的
心情图标
选择心情图标
日历数字变
为心情图标
随机打招呼文案
跟随手指移动
点击产生交互
表情动作变化
气泡文案变化
语音跟随气泡
记录
内容收录至①
AI智能分析(A)
分析内容
反馈至①,未读提示
分析心情
反馈至③,日历数字变为心情图标
聊天
语音聊天
切换全屏
切换全屏
文字聊天
文本输入框
麦克风
切换文字聊天
收起
挂断
X
收起
+
图片
语音
AI智能分析(A)
聊天已收录
顶部
弹窗
解锁新课题
课题进度有更新
反馈至页面2
未读提示
反馈至课题系统(若有))
语音
文字
记录
聊天
输入文字...

麦克风
+
图片
语音
聊天记录
AI总结
查看课题
(跳转课题系统)
可滚动页面

可滚动页面

AI
探索
发现
我的
\ No newline at end of file diff --git a/EmotionMuseum/images/WechatIMG374.jpg b/EmotionMuseum/images/WechatIMG374.jpg deleted file mode 100644 index f4318a5..0000000 Binary files a/EmotionMuseum/images/WechatIMG374.jpg and /dev/null differ diff --git a/PROJECT_STRUCTURE.md b/PROJECT_STRUCTURE.md new file mode 100644 index 0000000..0e7ddc2 --- /dev/null +++ b/PROJECT_STRUCTURE.md @@ -0,0 +1,104 @@ +# 情感博物馆项目结构 + +## 📁 目录结构 + +``` +emotion-museum/ +├── 📁 backend/ # 后端微服务 +│ ├── 📁 emotion-gateway/ # API网关服务 +│ ├── 📁 emotion-user/ # 用户管理服务 +│ ├── 📁 emotion-ai/ # AI聊天服务 +│ ├── 📁 emotion-auth/ # 认证服务 +│ ├── 📁 emotion-record/ # 记录管理服务 +│ ├── 📁 emotion-growth/ # 成长跟踪服务 +│ ├── 📁 emotion-explore/ # 探索服务 +│ ├── 📁 emotion-reward/ # 奖励服务 +│ ├── 📁 emotion-websocket/ # WebSocket服务 +│ ├── 📁 emotion-stats/ # 统计服务 +│ ├── 📁 emotion-common/ # 公共模块 +│ ├── 🔧 build-all.sh # 构建脚本 +│ ├── 🔧 deploy-all.sh # 综合部署脚本 +│ ├── 🔧 deploy-remote.sh # 远程部署脚本 +│ └── 📄 pom.xml # Maven父项目配置 +├── 📁 web-flowith/ # 前端Vue项目 +│ ├── 📁 src/ # 源代码 +│ ├── 📁 public/ # 静态资源 +│ ├── 🔧 deploy.sh # 前端部署脚本 +│ └── 📄 package.json # 前端依赖配置 +├── 📁 docs/ # 项目文档 +│ ├── 📁 deployment/ # 部署相关文档 +│ ├── 📁 architecture/ # 架构设计文档 +│ └── 📁 database/ # 数据库相关文档 +├── 📁 configs/ # 配置文件 +│ ├── 📁 nginx/ # Nginx配置 +│ ├── 📁 docker/ # Docker配置 +│ └── 📁 env/ # 环境配置 +├── 🔧 one-click-deploy.sh # 一键部署脚本 +├── 🔧 restart-middleware.sh # 中间件重启脚本 +├── 🔧 cleanup-project.sh # 项目清理脚本 +└── 📄 README.md # 项目说明 +``` + +## 🚀 快速开始 + +### 1. 一键部署 +```bash +# 完整部署(前端+后端) +./one-click-deploy.sh + +# 仅部署后端 +./one-click-deploy.sh backend + +# 仅部署前端 +./one-click-deploy.sh frontend + +# 健康检查 +./one-click-deploy.sh check +``` + +### 2. 中间件管理 +```bash +# 重启中间件(MySQL, Redis, Nacos) +./restart-middleware.sh +``` + +### 3. 分步部署 +```bash +# 构建后端 +cd backend && ./build-all.sh + +# 部署后端到远程 +cd backend && ./deploy-remote.sh + +# 部署前端 +cd web-flowith && ./deploy.sh +``` + +## 📋 服务端口 + +| 服务 | 端口 | 描述 | +|------|------|------| +| emotion-gateway | 19000 | API网关 | +| emotion-user | 19001 | 用户服务 | +| emotion-ai | 19002 | AI服务 | +| emotion-record | 19003 | 记录服务 | +| emotion-growth | 19004 | 成长服务 | +| emotion-explore | 19005 | 探索服务 | +| emotion-reward | 19006 | 奖励服务 | +| emotion-websocket | 19007 | WebSocket服务 | +| emotion-auth | 19008 | 认证服务 | +| emotion-stats | 19009 | 统计服务 | + +## 🔧 中间件端口 + +| 服务 | 端口 | 描述 | +|------|------|------| +| MySQL | 3306 | 数据库 | +| Redis | 6379 | 缓存 | +| Nacos | 8848 | 注册中心 | + +## 📖 文档链接 + +- [部署指南](docs/deployment/) +- [架构设计](docs/architecture/) +- [数据库设计](docs/database/) diff --git a/SERVER_DEPLOYMENT_CHECKLIST.md b/SERVER_DEPLOYMENT_CHECKLIST.md deleted file mode 100644 index 3c36bdf..0000000 --- a/SERVER_DEPLOYMENT_CHECKLIST.md +++ /dev/null @@ -1,175 +0,0 @@ -# 服务器部署检查清单 - -## 📋 部署前检查 - -### 🖥️ 服务器要求 -- [ ] **操作系统**: Linux (Ubuntu 18.04+, CentOS 7+, Debian 9+) -- [ ] **CPU**: 2核心以上 -- [ ] **内存**: 4GB以上(推荐8GB) -- [ ] **磁盘**: 20GB以上可用空间 -- [ ] **网络**: 稳定的互联网连接 - -### 🔧 软件环境 -- [ ] **Docker**: 20.10+ 已安装 -- [ ] **Docker Compose**: 1.29+ 已安装 -- [ ] **Git**: 已安装(可选) -- [ ] **Curl/Wget**: 已安装 - -### 🌐 网络配置 -- [ ] **端口开放**: 80, 443 已开放 -- [ ] **防火墙**: 已配置允许HTTP/HTTPS流量 -- [ ] **域名解析**: 域名已正确解析到服务器IP(如有) -- [ ] **SSL证书**: 已准备好SSL证书文件(生产环境) - -## 📦 部署包准备 - -### 📁 文件检查 -- [ ] **部署包**: `emotion-museum-1.0.0-20250713_111829.tar.gz` 已下载 -- [ ] **校验和**: SHA256校验通过 -- [ ] **解压**: 部署包已成功解压 -- [ ] **权限**: 脚本文件已设置执行权限 - -### ⚙️ 配置文件 -- [ ] **环境变量**: `.env` 文件已配置 -- [ ] **Coze API**: API Token 已设置 -- [ ] **数据库密码**: 已修改默认密码 -- [ ] **域名配置**: Nginx配置中的域名已更新(生产环境) - -## 🚀 部署执行 - -### 🔄 部署步骤 -- [ ] **1. 环境检查**: `./quick-deploy.sh` 环境检查通过 -- [ ] **2. Docker安装**: Docker和Docker Compose安装成功 -- [ ] **3. 配置生成**: 配置文件生成成功 -- [ ] **4. 镜像构建**: Docker镜像构建成功 -- [ ] **5. 服务启动**: 所有容器启动成功 - -### 📊 服务状态 -- [ ] **MySQL**: 容器运行正常,数据库连接成功 -- [ ] **Redis**: 容器运行正常,缓存服务可用 -- [ ] **Nacos**: 容器运行正常,注册中心可访问 -- [ ] **Gateway**: 容器运行正常,网关服务可用 -- [ ] **AI Service**: 容器运行正常,AI服务可用 -- [ ] **User Service**: 容器运行正常,用户服务可用 -- [ ] **Frontend**: 容器运行正常,前端应用可访问 -- [ ] **Nginx**: 容器运行正常,反向代理工作正常 - -## ✅ 部署验证 - -### 🌐 访问测试 -- [ ] **前端首页**: http://your-domain.com 可正常访问 -- [ ] **API网关**: http://your-domain.com:9000/actuator/health 返回正常 -- [ ] **Nacos控制台**: http://your-domain.com:8848/nacos 可正常登录 -- [ ] **API文档**: http://your-domain.com:9000/doc.html 可正常访问 - -### 🔍 功能测试 -- [ ] **用户注册**: 新用户注册功能正常 -- [ ] **用户登录**: 用户登录功能正常 -- [ ] **AI对话**: AI聊天功能正常 -- [ ] **数据存储**: 对话记录正常保存 -- [ ] **情绪分析**: 情绪分析功能正常 - -### 📈 性能测试 -- [ ] **响应时间**: 页面加载时间 < 3秒 -- [ ] **API响应**: API接口响应时间 < 1秒 -- [ ] **并发测试**: 支持预期的并发用户数 -- [ ] **资源使用**: CPU和内存使用率在合理范围 - -## 🔒 安全配置 - -### 🛡️ 基础安全 -- [ ] **默认密码**: 所有默认密码已修改 -- [ ] **防火墙**: 只开放必要端口 -- [ ] **用户权限**: 使用非root用户运行服务 -- [ ] **文件权限**: 敏感文件权限设置正确 - -### 🔐 HTTPS配置(生产环境) -- [ ] **SSL证书**: 证书文件已正确放置 -- [ ] **Nginx配置**: HTTPS配置已启用 -- [ ] **HTTP重定向**: HTTP自动重定向到HTTPS -- [ ] **证书验证**: SSL证书验证通过 - -### 🔑 API安全 -- [ ] **JWT配置**: JWT密钥已设置 -- [ ] **CORS配置**: 跨域配置正确 -- [ ] **限流配置**: API限流规则已启用 -- [ ] **访问日志**: 访问日志记录正常 - -## 📊 监控配置 - -### 📈 服务监控 -- [ ] **健康检查**: `./manage.sh health` 所有服务健康 -- [ ] **日志收集**: 日志文件正常生成 -- [ ] **资源监控**: `./manage.sh monitor` 监控面板正常 -- [ ] **告警配置**: 异常告警机制已配置(可选) - -### 💾 数据备份 -- [ ] **备份脚本**: `./manage.sh backup` 备份功能正常 -- [ ] **备份策略**: 定期备份计划已制定 -- [ ] **恢复测试**: 数据恢复功能已测试 -- [ ] **备份存储**: 备份文件存储位置已确定 - -## 📝 文档记录 - -### 📋 部署记录 -- [ ] **部署时间**: 记录部署完成时间 -- [ ] **版本信息**: 记录部署的版本号 -- [ ] **配置信息**: 记录重要配置参数 -- [ ] **访问信息**: 记录访问地址和账号 - -### 📖 运维文档 -- [ ] **管理命令**: 熟悉 `./manage.sh` 各项命令 -- [ ] **故障排除**: 了解常见问题解决方案 -- [ ] **更新流程**: 了解服务更新流程 -- [ ] **联系方式**: 记录技术支持联系方式 - -## 🎯 部署后任务 - -### 🔧 优化配置 -- [ ] **性能调优**: 根据实际负载调整配置 -- [ ] **缓存策略**: 优化Redis缓存配置 -- [ ] **数据库优化**: 调整MySQL配置参数 -- [ ] **网络优化**: 优化Nginx配置 - -### 📊 监控设置 -- [ ] **日志轮转**: 配置日志文件轮转 -- [ ] **磁盘清理**: 设置定期清理任务 -- [ ] **性能监控**: 配置性能监控工具 -- [ ] **告警通知**: 设置异常告警通知 - -### 🔄 维护计划 -- [ ] **更新计划**: 制定定期更新计划 -- [ ] **备份计划**: 制定数据备份计划 -- [ ] **安全审计**: 制定安全审计计划 -- [ ] **容量规划**: 制定容量扩展计划 - -## ⚠️ 注意事项 - -### 🚨 重要提醒 -1. **Coze API Token**: 必须配置正确的API Token,否则AI功能无法使用 -2. **数据库密码**: 生产环境必须修改默认密码 -3. **防火墙配置**: 确保只开放必要的端口 -4. **SSL证书**: 生产环境强烈建议使用HTTPS -5. **定期备份**: 重要数据必须定期备份 - -### 📞 紧急联系 -- **技术支持**: support@emotion-museum.com -- **紧急热线**: 400-xxx-xxxx -- **在线文档**: https://docs.emotion-museum.com - ---- - -## ✅ 部署完成确认 - -**部署工程师**: ________________ -**部署时间**: ________________ -**版本号**: emotion-museum-1.0.0-20250713_111829 -**服务器IP**: ________________ -**域名**: ________________ - -**签名确认**: ________________ -**日期**: ________________ - ---- - -**🎉 恭喜完成部署!请妥善保存此检查清单作为部署记录。** diff --git a/backend/Nacos配置优化总结.md b/backend/Nacos配置优化总结.md deleted file mode 100644 index 98d7fb7..0000000 --- a/backend/Nacos配置优化总结.md +++ /dev/null @@ -1,269 +0,0 @@ -# Nacos配置优化总结 - -## 概述 - -根据当前更新后的模块端口号和Nacos配置要求,已完成所有后台模块的Nacos配置优化,确保所有服务可以正确注册到Nacos上,并为每个模块创建了本地、测试、生产三套环境配置文件。 - -## 完成的工作 - -### 1. 端口配置统一 - -| 服务名称 | 端口 | 状态 | 描述 | -|---------|------|------|------| -| emotion-gateway | 19000 | ✅ 已配置 | 网关服务 | -| emotion-user | 19001 | ✅ 已配置 | 用户服务(包含认证) | -| emotion-ai | 19002 | ✅ 已配置 | AI对话服务 | -| emotion-record | 19003 | ✅ 已修正 | 情绪记录服务 | -| emotion-growth | 19004 | ✅ 已配置 | 成长课题服务 | -| emotion-explore | 19005 | ✅ 已配置 | 地图探索服务 | -| emotion-reward | 19006 | ✅ 已配置 | 成就奖励服务 | -| emotion-websocket | 19007 | ✅ 已配置 | WebSocket聊天服务 | -| emotion-stats | 19008 | ✅ 已配置 | 统计分析服务 | - -### 2. Nacos配置优化 - -#### 主配置文件更新 (`application.yml`) -- ✅ 启用Nacos服务发现 (`enabled: true`) -- ✅ 添加认证配置 (`username/password`) -- ✅ 配置服务元数据 (`metadata`) -- ✅ 设置心跳和超时参数 -- ✅ 配置集群和权重信息 - -#### 环境配置文件创建 -为每个服务创建了三套环境配置: - -**本地环境** (`application-local.yml`) -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: localhost:8848 - namespace: - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos -``` - -**测试环境** (`application-test.yml`) -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: test - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos -``` - -**生产环境** (`application-prod.yml`) -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: prod - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos -``` - -### 3. 网关配置优化 - -#### 路由配置更新 -- ✅ 使用负载均衡 (`lb://service-name`) -- ✅ 启用服务发现 (`locator.enabled: true`) -- ✅ 配置跨域支持 (`globalcors`) -- ✅ 支持WebSocket路由 - -#### 完整路由列表 -```yaml -routes: - # 用户相关服务 - - /user/** → lb://emotion-user - - /captcha/** → lb://emotion-user - - /oauth/** → lb://emotion-user - - # AI相关服务 - - /ai/** → lb://emotion-ai - - /websocket/** → lb://emotion-websocket - - /ws/** → lb://emotion-websocket - - # 业务功能服务 - - /record/** → lb://emotion-record - - /growth/** → lb://emotion-growth - - /explore/** → lb://emotion-explore - - /reward/** → lb://emotion-reward - - /stats/** → lb://emotion-stats -``` - -### 4. 特殊服务配置 - -#### emotion-ai服务 -- ✅ 添加Coze平台配置 -- ✅ 配置功能开关 -- ✅ AI模型参数配置 - -#### emotion-websocket服务 -- ✅ 添加WebSocket配置 -- ✅ 配置STOMP和SockJS -- ✅ 设置消息代理 - -### 5. 数据库和Redis配置 - -#### 环境差异化配置 -**本地环境** -```yaml -datasource: - url: jdbc:mysql://localhost:3306/emotion_museum - username: root - password: 123456 - -redis: - host: localhost - port: 6379 - password: -``` - -**测试/生产环境** -```yaml -datasource: - url: jdbc:mysql://47.111.10.27:3306/emotion_museum - username: root - password: EmotionMuseum2025*# - -redis: - host: 47.111.10.27 - port: 6379 - password: EmotionMuseum2025*# -``` - -## 工具脚本 - -### 1. 批量配置生成脚本 -- **文件**: `backend/update-nacos-config.sh` -- **功能**: 批量为所有服务生成Nacos配置文件 -- **使用**: `./backend/update-nacos-config.sh` - -### 2. 配置验证脚本 -- **文件**: `backend/verify-nacos-config.sh` -- **功能**: 验证所有服务的配置文件完整性 -- **使用**: `./backend/verify-nacos-config.sh` - -## Nacos服务器配置 - -### 认证配置 -根据提供的Nacos配置,已配置: -```properties -nacos.core.auth.enabled=false -nacos.core.auth.admin.enabled=true -nacos.core.auth.console.enabled=true -nacos.core.auth.server.identity.key=nacosServerIdentity -nacos.core.auth.server.identity.value=Peanut2817*# -``` - -### 客户端认证 -所有服务配置了统一的认证信息: -- **用户名**: nacos -- **密码**: nacos - -## 启动方式 - -### 1. 指定环境启动 -```bash -# 本地环境 -mvn spring-boot:run -Dspring-boot.run.profiles=local - -# 测试环境 -mvn spring-boot:run -Dspring-boot.run.profiles=test - -# 生产环境 -mvn spring-boot:run -Dspring-boot.run.profiles=prod -``` - -### 2. JAR包启动 -```bash -# 本地环境 -java -jar app.jar --spring.profiles.active=local - -# 测试环境 -java -jar app.jar --spring.profiles.active=test - -# 生产环境 -java -jar app.jar --spring.profiles.active=prod -``` - -## 验证结果 - -### 配置验证通过 -``` -=========================================== -验证结果统计 -=========================================== -总服务数: 9 -验证成功: 9 -验证失败: 0 -🎉 所有服务配置验证通过! -``` - -### 服务注册验证 -启动服务后,可通过以下方式验证: - -1. **Nacos控制台**: http://47.111.10.27:8848/nacos -2. **服务列表**: 查看所有服务是否正确注册 -3. **健康检查**: 确认服务状态为UP - -## 环境隔离 - -### 命名空间配置 -- **本地环境**: 默认命名空间 (空) -- **测试环境**: test命名空间 -- **生产环境**: prod命名空间 - -### 配置隔离 -- 不同环境使用不同的数据库和Redis实例 -- 日志级别按环境调整 -- 服务发现配置环境隔离 - -## 监控和日志 - -### 日志配置 -- **本地环境**: DEBUG级别,详细日志 -- **测试环境**: INFO级别,适中日志 -- **生产环境**: WARN级别,精简日志 - -### 日志文件 -- 格式: `logs/{service-name}-{env}.log` -- 示例: `logs/emotion-user-local.log` - -## 后续优化建议 - -1. **配置中心**: 启用Nacos配置中心功能 -2. **服务监控**: 集成Prometheus和Grafana -3. **链路追踪**: 添加Sleuth和Zipkin -4. **熔断降级**: 集成Sentinel -5. **安全加固**: 配置服务间认证 - -## 总结 - -✅ **完成项目**: -- 所有9个微服务的Nacos配置已完成 -- 端口配置已统一和修正 -- 三套环境配置文件已创建 -- 网关路由配置已优化 -- 配置验证100%通过 - -✅ **关键特性**: -- 支持环境隔离 -- 自动服务发现 -- 负载均衡路由 -- 跨域支持 -- WebSocket支持 - -现在所有服务都可以正确注册到Nacos,通过网关进行统一访问,支持多环境部署!🚀 diff --git a/backend/Nacos配置最终总结.md b/backend/Nacos配置最终总结.md deleted file mode 100644 index 27963a4..0000000 --- a/backend/Nacos配置最终总结.md +++ /dev/null @@ -1,270 +0,0 @@ -# Nacos配置最终总结 - -## 概述 - -已完成所有后台模块的Nacos配置优化,包括端口统一、环境配置文件创建和密码配置更新。所有服务现在可以正确注册到Nacos并通过网关进行统一访问。 - -## 最终配置状态 - -### 1. 服务端口配置 ✅ - -| 服务名称 | 端口 | 状态 | 描述 | -|---------|------|------|------| -| emotion-gateway | 19000 | ✅ 已配置 | 网关服务 | -| emotion-user | 19001 | ✅ 已配置 | 用户服务(包含认证) | -| emotion-ai | 19002 | ✅ 已配置 | AI对话服务 | -| emotion-record | 19003 | ✅ 已修正 | 情绪记录服务 | -| emotion-growth | 19004 | ✅ 已配置 | 成长课题服务 | -| emotion-explore | 19005 | ✅ 已配置 | 地图探索服务 | -| emotion-reward | 19006 | ✅ 已配置 | 成就奖励服务 | -| emotion-websocket | 19007 | ✅ 已配置 | WebSocket聊天服务 | -| emotion-stats | 19008 | ✅ 已配置 | 统计分析服务 | - -### 2. Nacos密码配置 ✅ - -#### 环境密码配置 -- **本地环境** (`application-local.yml`): `Peanut2817*#` -- **测试环境** (`application-test.yml`): `EmotionMuseum2025` -- **生产环境** (`application-prod.yml`): `EmotionMuseum2025` - -#### 验证结果 -```bash -# 本地环境密码验证 -grep "password: Peanut2817*#" backend/emotion-*/src/main/resources/application-local.yml -# 结果: 18个匹配项 (9个服务 × 2个配置项) - -# 测试环境密码验证 -grep "password: EmotionMuseum2025" backend/emotion-*/src/main/resources/application-test.yml -# 结果: 18个匹配项 - -# 生产环境密码验证 -grep "password: EmotionMuseum2025" backend/emotion-*/src/main/resources/application-prod.yml -# 结果: 18个匹配项 -``` - -### 3. 环境配置文件 ✅ - -每个服务都包含完整的三套环境配置: - -#### 本地环境配置示例 -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: localhost:8848 - namespace: - group: DEFAULT_GROUP - enabled: true - username: nacos - password: Peanut2817*# - metadata: - version: 1.0.0 - zone: local -``` - -#### 测试环境配置示例 -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: test - group: DEFAULT_GROUP - enabled: true - username: nacos - password: EmotionMuseum2025 - metadata: - version: 1.0.0 - zone: test -``` - -#### 生产环境配置示例 -```yaml -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: prod - group: DEFAULT_GROUP - enabled: true - username: nacos - password: EmotionMuseum2025 - metadata: - version: 1.0.0 - zone: prod -``` - -### 4. 网关路由配置 ✅ - -#### 完整路由映射 -```yaml -routes: - # 用户相关服务 - - /user/** → lb://emotion-user:19001 - - /captcha/** → lb://emotion-user:19001 - - /oauth/** → lb://emotion-user:19001 - - # AI相关服务 - - /ai/** → lb://emotion-ai:19002 - - /websocket/** → lb://emotion-websocket:19007 - - /ws/** → lb://emotion-websocket:19007 (WebSocket) - - # 业务功能服务 - - /record/** → lb://emotion-record:19003 - - /growth/** → lb://emotion-growth:19004 - - /explore/** → lb://emotion-explore:19005 - - /reward/** → lb://emotion-reward:19006 - - /stats/** → lb://emotion-stats:19008 -``` - -#### 特殊配置 -- ✅ 跨域支持 (`globalcors`) -- ✅ WebSocket协议升级支持 -- ✅ 负载均衡 (`lb://`) -- ✅ 服务发现集成 - -### 5. 特殊服务配置 ✅ - -#### emotion-ai服务 -```yaml -# Coze平台配置 -coze: - base-url: https://api.coze.cn - bot-id: 7523042446285439016 - workflow-id: 7523047462895796287 - token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO - -# 功能开关 -features: - emotion-analysis: - enabled: false - chat: - enabled: true -``` - -#### emotion-websocket服务 -```yaml -# WebSocket配置 -websocket: - allowed-origins: "*" - sockjs: - enabled: true - heartbeat-time: 25000 - stomp: - broker: - enabled: true - destinations: ["/topic", "/queue"] - application-destination-prefixes: ["/app"] -``` - -## 启动方式 - -### 1. 环境指定启动 -```bash -# 本地环境 -mvn spring-boot:run -Dspring-boot.run.profiles=local - -# 测试环境 -mvn spring-boot:run -Dspring-boot.run.profiles=test - -# 生产环境 -mvn spring-boot:run -Dspring-boot.run.profiles=prod -``` - -### 2. JAR包启动 -```bash -# 本地环境 -java -jar app.jar --spring.profiles.active=local - -# 测试环境 -java -jar app.jar --spring.profiles.active=test - -# 生产环境 -java -jar app.jar --spring.profiles.active=prod -``` - -## 验证工具 - -### 1. 配置验证脚本 -```bash -./backend/verify-nacos-config.sh -``` - -### 2. 密码更新脚本 -```bash -./backend/update-nacos-passwords.sh -``` - -### 3. 网关路由测试 -```bash -./backend/emotion-gateway/test-gateway-routes.sh -``` - -## 环境隔离 - -### 命名空间配置 -- **本地环境**: 默认命名空间 (空字符串) -- **测试环境**: `test` 命名空间 -- **生产环境**: `prod` 命名空间 - -### 数据库配置 -- **本地环境**: `localhost:3306`, 密码: `123456` -- **测试环境**: `47.111.10.27:3306`, 密码: `EmotionMuseum2025*#` -- **生产环境**: `47.111.10.27:3306`, 密码: `EmotionMuseum2025*#` - -### Redis配置 -- **本地环境**: `localhost:6379`, 无密码 -- **测试环境**: `47.111.10.27:6379`, 密码: `EmotionMuseum2025*#` -- **生产环境**: `47.111.10.27:6379`, 密码: `EmotionMuseum2025*#` - -## 配置文件清单 - -### 每个服务包含的配置文件 -``` -backend/{service-name}/src/main/resources/ -├── application.yml # 主配置文件 -├── application-local.yml # 本地环境配置 -├── application-test.yml # 测试环境配置 -└── application-prod.yml # 生产环境配置 -``` - -### 总计配置文件数量 -- **9个服务** × **4个配置文件** = **36个配置文件** -- 所有配置文件都已创建并验证通过 ✅ - -## 最终验证结果 - -``` -=========================================== -验证结果统计 -=========================================== -总服务数: 9 -验证成功: 9 -验证失败: 0 -🎉 所有服务配置验证通过! -``` - -## 总结 - -✅ **已完成的工作**: -1. 统一了所有9个微服务的端口配置 -2. 为每个服务创建了完整的三套环境配置文件 -3. 配置了正确的Nacos认证密码 -4. 优化了网关路由配置,支持负载均衡和WebSocket -5. 添加了特殊服务的专用配置 -6. 创建了验证和管理工具脚本 - -✅ **关键特性**: -- 完整的环境隔离 (local/test/prod) -- 统一的服务发现和注册 -- 负载均衡路由 -- WebSocket支持 -- 跨域配置 -- 安全认证 - -现在所有服务都可以正确注册到Nacos,通过网关进行统一访问,支持多环境部署!🚀 - -**下一步**: 提交代码到远程仓库 diff --git a/backend/README-项目优化总结.md b/backend/README-项目优化总结.md deleted file mode 100644 index bde2a3a..0000000 --- a/backend/README-项目优化总结.md +++ /dev/null @@ -1,156 +0,0 @@ -# 情感博物馆项目优化总结 - -## 已完成的工作 - -### 1. 创建了emotion-auth统一认证模块 -- ✅ 创建了emotion-auth模块的基础结构 -- ✅ 移动了认证相关的代码到auth模块 -- ✅ 配置了auth模块的pom.xml和Dockerfile -- ✅ 更新了父pom.xml包含auth模块 - -### 2. 优化了配置文件管理 -- ✅ 统一了所有服务的application.yml配置 -- ✅ 添加了环境变量支持:`spring.profiles.active: ${SPRING_PROFILES_ACTIVE:local}` -- ✅ 创建了application-local.yml本地环境配置文件 -- ✅ 配置了Bean覆盖和循环引用支持 - -### 3. 优化了启动脚本 -- ✅ 创建了支持环境参数的启动脚本:`./start-services.sh [env]` -- ✅ 默认使用local环境,支持dev、prod等环境切换 -- ✅ 添加了基础服务检查(MySQL、Redis) -- ✅ 添加了服务状态检查和日志输出 - -### 4. 统一了Coze API配置 -- ✅ 在AI服务中配置了统一的Coze API参数 -- ✅ 所有环境使用相同的Coze配置 - -### 5. 清理了无用文件 -- ✅ 删除了测试文件和重复的配置文件 -- ✅ 删除了不再使用的启动脚本 - -### 6. 前端网关配置 -- ✅ 更新了前端vite.config.js,统一通过网关访问后端 -- ✅ 更新了网关路由配置,支持所有服务的路由转发 -- ✅ 创建了.env.local环境配置文件 - -## 已解决的问题 - -### 1. 循环依赖问题 ✅ -**问题描述:** 用户服务存在Bean循环依赖问题 -``` -jwtAuthenticationFilter -> userDetailsServiceImpl -> userServiceImpl -> securityConfig -> jwtAuthenticationFilter -``` - -**解决方案:** -1. ✅ 创建独立的AuthenticationConfig类,分离认证相关Bean配置 -2. ✅ 使用@Lazy注解延迟加载关键依赖 -3. ✅ 通过ApplicationContext获取Bean,避免直接依赖 -4. ✅ 修复验证码配置中的初始化问题 - -### 2. 服务启动成功 ✅ -所有核心服务现在都能正常启动: -- ✅ 用户服务 (19001) - 运行正常 -- ✅ AI服务 (19002) - 运行正常 -- ✅ 网关服务 (19000) - 运行正常 - -### 3. 配置文件问题 ✅ -- ✅ 修复了重复的profiles配置 -- ✅ 统一了环境变量配置格式 -- ✅ 修复了pom.xml中缺失的主类配置 - -## 下一步工作计划 - -### 优先级1:完善网关路由和安全配置 🔄 -1. **修复网关路由问题** - - 配置用户服务的安全白名单,允许actuator端点访问 - - 为AI服务添加actuator端点配置 - - 测试网关路由功能 - -2. **完善前端集成** - - 测试前端通过网关访问后端API - - 验证用户注册登录功能 - - 测试AI对话功能 - -### 优先级2:完善emotion-auth模块 -1. **实现认证服务接口** - - 完成AuthService实现类 - - 实现JWT Token管理 - - 实现用户认证逻辑 - -2. **配置服务间调用** - - 配置Feign客户端 - - 实现服务间认证传递 - - 配置统一的异常处理 - -### 优先级3:扩展其他微服务 -1. **启动其他微服务** - - emotion-record (记录服务) - - emotion-growth (成长服务) - - emotion-explore (探索服务) - - emotion-reward (奖励服务) - - emotion-stats (统计服务) - -2. **完整功能测试** - - 测试所有微服务的启动和通信 - - 验证完整的业务流程 - - 性能测试和优化 - -## 使用说明 - -### 启动服务 -```bash -# 使用默认local环境启动 -./start-services.sh - -# 使用指定环境启动 -./start-services.sh dev -./start-services.sh prod -``` - -### 停止服务 -```bash -./stop-services.sh -``` - -### 查看日志 -```bash -# 查看用户服务日志 -tail -f logs/emotion-user-local.log - -# 查看AI服务日志 -tail -f logs/emotion-ai-local.log - -# 查看网关服务日志 -tail -f logs/emotion-gateway-local.log -``` - -### 环境变量配置 -可以通过环境变量覆盖默认配置: -- `SPRING_PROFILES_ACTIVE`: 指定激活的配置文件 -- `MYSQL_HOST`, `MYSQL_PORT`, `MYSQL_USERNAME`, `MYSQL_PASSWORD`: 数据库配置 -- `REDIS_HOST`, `REDIS_PORT`, `REDIS_PASSWORD`: Redis配置 -- `COZE_API_TOKEN`: Coze API令牌 - -## 项目结构 -``` -backend/ -├── emotion-common/ # 公共模块 -├── emotion-auth/ # 认证授权服务 (新增) -├── emotion-user/ # 用户服务 -├── emotion-ai/ # AI服务 -├── emotion-gateway/ # 网关服务 -├── emotion-record/ # 记录服务 -├── emotion-growth/ # 成长服务 -├── emotion-explore/ # 探索服务 -├── emotion-reward/ # 奖励服务 -├── emotion-stats/ # 统计服务 -├── start-services.sh # 启动脚本 -├── stop-services.sh # 停止脚本 -└── logs/ # 日志目录 -``` - -## 注意事项 -1. 确保MySQL和Redis服务已启动 -2. 首次启动可能需要较长时间进行编译 -3. 如遇到端口占用,脚本会自动跳过该服务 -4. 建议在解决循环依赖问题后再进行完整的功能测试 diff --git a/backend/build-all.sh b/backend/build-all.sh index 1d981c2..be256f2 100755 --- a/backend/build-all.sh +++ b/backend/build-all.sh @@ -192,10 +192,15 @@ generate_build_report() { for service_info in "${SERVICES[@]}"; do service_name=$(echo $service_info | cut -d':' -f1) jar_file="${service_name}/target/${service_name}-1.0.0.jar" - + if [ -f "$jar_file" ]; then jar_size=$(du -h "$jar_file" | cut -f1) - jar_bytes=$(du -b "$jar_file" | cut -f1) + # 兼容macOS和Linux的文件大小获取 + if [[ "$OSTYPE" == "darwin"* ]]; then + jar_bytes=$(stat -f%z "$jar_file" 2>/dev/null || echo "0") + else + jar_bytes=$(stat -c%s "$jar_file" 2>/dev/null || echo "0") + fi total_size=$((total_size + jar_bytes)) printf "%-20s ${GREEN}%-10s${NC} %-10s %s\n" "$service_name" "✅ 成功" "$jar_size" "$jar_file" else diff --git a/backend/deploy-all.sh b/backend/deploy-all.sh index bd4a0bc..b4ef292 100755 --- a/backend/deploy-all.sh +++ b/backend/deploy-all.sh @@ -73,9 +73,6 @@ if [ -n "$TEST_SINGLE_SERVICE" ]; then fi # 部署状态跟踪 -declare -A DEPLOYMENT_STATUS -declare -A DEPLOYMENT_ERRORS -declare -A DEPLOYMENT_TIMES TOTAL_SERVICES=${#SERVICES[@]} SUCCESSFUL_DEPLOYMENTS=0 FAILED_DEPLOYMENTS=0 @@ -214,13 +211,10 @@ deploy_service() { local start_time=$(date +%s) log_info "开始部署服务到远程服务器: $service_name" - DEPLOYMENT_STATUS[$service_name]="DEPLOYING" # 先传输jar包 if ! transfer_jar_to_remote $service_name; then - local error_msg="jar包传输失败" - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg" + log_error "jar包传输失败" return 1 fi diff --git a/backend/deploy-remote.sh b/backend/deploy-remote.sh index b86c7ac..77a8c65 100755 --- a/backend/deploy-remote.sh +++ b/backend/deploy-remote.sh @@ -58,9 +58,6 @@ SERVICES=( ) # 部署状态跟踪 -declare -A DEPLOYMENT_STATUS -declare -A DEPLOYMENT_ERRORS -declare -A DEPLOYMENT_TIMES TOTAL_SERVICES=${#SERVICES[@]} SUCCESSFUL_DEPLOYMENTS=0 FAILED_DEPLOYMENTS=0 @@ -177,14 +174,11 @@ deploy_service_to_remote() { local start_time=$(date +%s) log_info "部署服务到远程: $service_name" - DEPLOYMENT_STATUS[$service_name]="DEPLOYING" # 验证远程jar包存在 if ! ssh 'root@47.111.10.27' "test -f $REMOTE_BUILD_DIR/${service_name}-1.0.0.jar"; then local error_msg="远程jar包不存在" log_error "$error_msg" - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg" return 1 fi @@ -253,8 +247,7 @@ deploy_service_to_remote() { # 记录成功状态 local end_time=$(date +%s) local duration=$((end_time - start_time)) - DEPLOYMENT_STATUS[$service_name]="SUCCESS" - DEPLOYMENT_TIMES[$service_name]="${duration}s" + log_info "服务 $service_name 部署成功,耗时: ${duration}s" return 0 else local error_msg="服务启动失败" @@ -265,9 +258,7 @@ deploy_service_to_remote() { # 记录失败状态 local end_time=$(date +%s) local duration=$((end_time - start_time)) - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg: $error_logs" - DEPLOYMENT_TIMES[$service_name]="${duration}s" + log_error "服务 $service_name 部署失败,耗时: ${duration}s" return 1 fi } diff --git a/backend/deploy-test.sh b/backend/deploy-test.sh deleted file mode 100755 index c8e9f11..0000000 --- a/backend/deploy-test.sh +++ /dev/null @@ -1,594 +0,0 @@ -#!/bin/bash - -# 情感博物馆 - 全服务容器化部署脚本 -# 作者: emotion-museum -# 日期: 2025-07-18 -# 支持Jenkins CI/CD部署 - -# 不要在遇到错误时立即退出,让所有模块都尝试部署 -set +e - -# 配置变量 - 支持Jenkins环境变量覆盖 -REMOTE_HOST="${DEPLOY_HOST:-'root@47.111.10.27'}" -REMOTE_BUILD_DIR="${REMOTE_BUILD_DIR:-/data/builds}" -REMOTE_DOCKER_COMPOSE_DIR="${REMOTE_DOCKER_DIR:-/data/docker}" -PROFILE="${DEPLOY_ENV:-test}" -PROJECT_NAME="${PROJECT_NAME:-emotion-museum}" - -# Jenkins构建信息 -BUILD_NUMBER="${BUILD_NUMBER:-manual}" -JOB_NAME="${JOB_NAME:-local-deploy}" -BUILD_URL="${BUILD_URL:-}" - -# 部署模式配置 -DEPLOY_MODE="${DEPLOY_MODE:-full}" # full: 完整部署, build: 仅构建, deploy: 仅部署 - -# 颜色输出 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -# 日志函数 -log_info() { - echo -e "${BLUE}[INFO]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" -} - -log_success() { - echo -e "${GREEN}[SUCCESS]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" -} - -log_warning() { - echo -e "${YELLOW}[WARNING]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" -} - -# 服务列表 -SERVICES=( - "emotion-gateway:19000" - "emotion-user:19001" - "emotion-ai:19002" - "emotion-record:19003" - "emotion-growth:19004" - "emotion-explore:19005" - "emotion-reward:19006" - "emotion-websocket:19007" - "emotion-auth:19008" - "emotion-stats:19009" -) - -# 部署状态跟踪 -declare -A DEPLOYMENT_STATUS -declare -A DEPLOYMENT_ERRORS -declare -A DEPLOYMENT_TIMES -TOTAL_SERVICES=${#SERVICES[@]} -SUCCESSFUL_DEPLOYMENTS=0 -FAILED_DEPLOYMENTS=0 - -# 检查远程服务器连接 -check_remote_connection() { - log_info "检查远程服务器连接..." - if ssh -o ConnectTimeout=10 'root@47.111.10.27' "echo 'Connection successful'" > /dev/null 2>&1; then - log_success "远程服务器连接正常" - else - log_error "无法连接到远程服务器 'root@47.111.10.27'" - exit 1 - fi -} - -# 创建远程目录 -create_remote_directories() { - log_info "创建远程目录结构..." - ssh 'root@47.111.10.27' " - mkdir -p $REMOTE_BUILD_DIR - mkdir -p $REMOTE_DOCKER_COMPOSE_DIR - mkdir -p /data/logs/emotion-museum - mkdir -p /data/config/emotion-museum - " - log_success "远程目录创建完成" -} - -# 构建所有服务 (Jenkins阶段) -build_all_services() { - log_info "开始在Jenkins服务器上构建所有微服务..." - - # 检查是否在Jenkins环境中 - if [ -n "$JENKINS_HOME" ] || [ -n "$BUILD_NUMBER" ]; then - log_info "检测到Jenkins环境,执行完整构建流程" - else - log_info "本地环境,执行构建流程" - fi - - # 先构建父项目 - log_info "构建父项目..." - if mvn clean install -DskipTests -q; then - log_success "父项目构建成功" - else - log_error "父项目构建失败" - exit 1 - fi - - # 构建各个微服务 - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - log_info "构建服务: $service_name" - - cd $service_name - if mvn clean package -DskipTests -P${PROFILE} -q; then - # 检查jar包是否生成 - if [ -f "target/${service_name}-1.0.0.jar" ]; then - local jar_size=$(du -h "target/${service_name}-1.0.0.jar" | cut -f1) - log_success "服务 $service_name 构建成功 (大小: $jar_size)" - else - log_error "服务 $service_name jar包未生成" - cd .. - exit 1 - fi - else - log_error "服务 $service_name 构建失败" - cd .. - exit 1 - fi - cd .. - done - - log_success "所有服务在Jenkins服务器构建完成" -} - -# 部署所有服务到远程服务器 -deploy_all_services_to_remote() { - log_info "开始逐个部署服务到远程服务器..." - - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - service_port=$(echo $service_info | cut -d':' -f2) - - echo "" - log_info "[$((SUCCESSFUL_DEPLOYMENTS + FAILED_DEPLOYMENTS + 1))/$TOTAL_SERVICES] 部署服务: $service_name" - - if deploy_service $service_name $service_port; then - SUCCESSFUL_DEPLOYMENTS=$((SUCCESSFUL_DEPLOYMENTS + 1)) - log_success "✅ 服务 $service_name 部署成功" - else - FAILED_DEPLOYMENTS=$((FAILED_DEPLOYMENTS + 1)) - log_error "❌ 服务 $service_name 部署失败,继续部署其他服务..." - fi - done -} - -# 传输jar包到远程服务器 -transfer_jar_to_remote() { - local service_name=$1 - - log_info "传输jar包到远程服务器: $service_name" - - # 检查本地jar包是否存在 - local jar_file="${service_name}/target/${service_name}-1.0.0.jar" - if [ ! -f "$jar_file" ]; then - log_error "本地JAR包不存在: $jar_file" - return 1 - fi - - # 显示jar包信息 - local jar_size=$(du -h "$jar_file" | cut -f1) - log_info "准备传输jar包: $jar_file (大小: $jar_size)" - - # 删除远程旧jar包 - log_info "清理远程旧jar包: $service_name" - ssh 'root@47.111.10.27' "rm -f $REMOTE_BUILD_DIR/${service_name}-*.jar" - - # 上传新jar包 - log_info "上传jar包到远程服务器..." - if scp "$jar_file" 'root@47.111.10.27':$REMOTE_BUILD_DIR/${service_name}-1.0.0.jar; then - log_success "jar包传输成功: $service_name" - - # 验证远程jar包 - local remote_size=$(ssh 'root@47.111.10.27' "du -h $REMOTE_BUILD_DIR/${service_name}-1.0.0.jar | cut -f1") - log_info "远程jar包大小: $remote_size" - return 0 - else - log_error "jar包传输失败: $service_name" - return 1 - fi -} - -# 部署单个服务 (远程服务器阶段) -deploy_service() { - local service_name=$1 - local service_port=$2 - local start_time=$(date +%s) - - log_info "开始部署服务到远程服务器: $service_name" - DEPLOYMENT_STATUS[$service_name]="DEPLOYING" - - # 先传输jar包 - if ! transfer_jar_to_remote $service_name; then - local error_msg="jar包传输失败" - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg" - return 1 - fi - - # 验证远程jar包存在 - log_info "验证远程jar包: $service_name" - if ! ssh 'root@47.111.10.27' "test -f $REMOTE_BUILD_DIR/${service_name}-1.0.0.jar"; then - local error_msg="远程jar包不存在,请先执行构建和传输" - log_error "$error_msg" - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg" - return 1 - fi - - # 创建Dockerfile - create_dockerfile $service_name $service_port - - # 停止并删除旧容器 - log_info "停止旧容器: $service_name" - ssh 'root@47.111.10.27' " - docker stop ${service_name} 2>/dev/null || true - docker rm ${service_name} 2>/dev/null || true - docker rmi ${PROJECT_NAME}/${service_name}:latest 2>/dev/null || true - " - - # 构建Docker镜像 - log_info "构建Docker镜像: $service_name" - ssh 'root@47.111.10.27' " - # 复制jar包到Docker构建目录 - cp $REMOTE_BUILD_DIR/${service_name}-1.0.0.jar $REMOTE_DOCKER_COMPOSE_DIR/ - - # 构建镜像 - cd $REMOTE_DOCKER_COMPOSE_DIR - docker build -t ${PROJECT_NAME}/${service_name}:latest -f Dockerfile.${service_name} . - - # 清理临时文件 - rm -f ${service_name}-1.0.0.jar - " - - # 启动新容器 - log_info "启动新容器: $service_name" - ssh 'root@47.111.10.27' " - docker run -d \\ - --name ${service_name} \\ - --network emotion-network \\ - -p ${service_port}:${service_port} \\ - -v /data/logs/emotion-museum:/app/logs \\ - -e SPRING_PROFILES_ACTIVE=${PROFILE} \\ - -e MYSQL_HOST=47.111.10.27 \\ - -e MYSQL_PORT=3306 \\ - -e MYSQL_DATABASE=emotion_museum \\ - -e MYSQL_USERNAME=root \\ - -e MYSQL_PASSWORD='EmotionMuseum2025*#' \\ - -e REDIS_HOST=47.111.10.27 \\ - -e REDIS_PORT=6379 \\ - -e REDIS_PASSWORD= \\ - -e REDIS_DATABASE=0 \\ - -e NACOS_SERVER_ADDR=47.111.10.27:8848 \\ - -e NACOS_USERNAME=nacos \\ - -e NACOS_PASSWORD='Peanut2817*#' \\ - --restart unless-stopped \\ - ${PROJECT_NAME}/${service_name}:latest - " - - # 等待服务启动 - log_info "等待服务启动: $service_name" - sleep 10 - - # 检查容器状态 - if ssh 'root@47.111.10.27' "docker ps | grep ${service_name}" > /dev/null 2>&1; then - log_success "服务 $service_name 启动成功" - - # 显示容器日志 - log_info "显示服务日志 最后10行: $service_name" - ssh 'root@47.111.10.27' "docker logs --tail 10 ${service_name}" 2>/dev/null || true - - # 记录成功状态 - local end_time=$(date +%s) - local duration=$((end_time - start_time)) - DEPLOYMENT_STATUS[$service_name]="SUCCESS" - DEPLOYMENT_TIMES[$service_name]="${duration}s" - return 0 - else - local error_msg="服务启动失败" - log_error "服务 $service_name 启动失败" - log_error "错误日志:" - local error_logs=$(ssh 'root@47.111.10.27' "docker logs ${service_name}" 2>&1 || echo "无法获取日志") - echo "$error_logs" - - # 记录失败状态 - local end_time=$(date +%s) - local duration=$((end_time - start_time)) - DEPLOYMENT_STATUS[$service_name]="FAILED" - DEPLOYMENT_ERRORS[$service_name]="$error_msg: $error_logs" - DEPLOYMENT_TIMES[$service_name]="${duration}s" - return 1 - fi -} - -# 创建Dockerfile -create_dockerfile() { - local service_name=$1 - local service_port=$2 - - log_info "创建Dockerfile: $service_name" - - ssh 'root@47.111.10.27' "cat > $REMOTE_DOCKER_COMPOSE_DIR/Dockerfile.${service_name} << 'EOF' -FROM openjdk:17-jre-slim - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* - -# 复制jar包 (使用相对路径) -COPY ${service_name}-1.0.0.jar app.jar - -# 创建日志目录 -RUN mkdir -p /app/logs - -# 设置时区 -ENV TZ=Asia/Shanghai -RUN ln -snf /usr/share/zoneinfo/\$TZ /etc/localtime && echo \$TZ > /etc/timezone - -# 暴露端口 -EXPOSE ${service_port} - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \\ - CMD curl -f http://localhost:${service_port}/actuator/health || exit 1 - -# 启动应用 -ENTRYPOINT [\"java\", \"-Djava.security.egd=file:/dev/./urandom\", \"-Xms512m\", \"-Xmx1024m\", \"-jar\", \"app.jar\"] -EOF" -} - -# 创建Docker网络 -create_docker_network() { - log_info "创建Docker网络..." - ssh 'root@47.111.10.27' " - docker network create emotion-network 2>/dev/null || true - " - log_success "Docker网络创建完成" -} - -# 健康检查 -health_check() { - log_info "执行服务健康检查..." - - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - service_port=$(echo $service_info | cut -d':' -f2) - - log_info "检查服务健康状态: $service_name" - - # 等待服务完全启动 - sleep 5 - - if ssh 'root@47.111.10.27' "curl -f -s http://localhost:${service_port}/actuator/health" > /dev/null 2>&1; then - log_success "服务 $service_name 健康检查通过" - else - log_warning "服务 $service_name 健康检查失败,可能仍在启动中" - fi - done -} - -# 显示详细部署报告 -show_deployment_report() { - local total_time=$1 - - echo "" - echo "========================================" - echo " 部署完成报告" - echo "========================================" - echo "项目名称: $PROJECT_NAME" - echo "部署环境: $PROFILE" - echo "目标服务器: $REMOTE_HOST" - echo "部署时间: $(date '+%Y-%m-%d %H:%M:%S')" - echo "总耗时: ${total_time}s" - if [ "$BUILD_NUMBER" != "manual" ]; then - echo "Jenkins构建: #$BUILD_NUMBER" - echo "Jenkins任务: $JOB_NAME" - [ -n "$BUILD_URL" ] && echo "构建链接: $BUILD_URL" - fi - echo "========================================" - - echo "" - echo "📊 部署统计:" - echo " 总服务数: $TOTAL_SERVICES" - echo " 成功部署: $SUCCESSFUL_DEPLOYMENTS" - echo " 失败部署: $FAILED_DEPLOYMENTS" - echo " 成功率: $(( SUCCESSFUL_DEPLOYMENTS * 100 / TOTAL_SERVICES ))%" - echo "" - - echo "📋 服务部署详情:" - printf "%-20s %-10s %-10s %s\n" "服务名称" "状态" "耗时" "备注" - echo "----------------------------------------" - - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - service_port=$(echo $service_info | cut -d':' -f2) - status=${DEPLOYMENT_STATUS[$service_name]:-"UNKNOWN"} - time=${DEPLOYMENT_TIMES[$service_name]:-"N/A"} - - case $status in - "SUCCESS") - printf "%-20s ${GREEN}%-10s${NC} %-10s %s\n" "$service_name" "✅ 成功" "$time" "http://47.111.10.27:$service_port" - ;; - "FAILED") - printf "%-20s ${RED}%-10s${NC} %-10s %s\n" "$service_name" "❌ 失败" "$time" "查看错误日志" - ;; - *) - printf "%-20s ${YELLOW}%-10s${NC} %-10s %s\n" "$service_name" "⚠️ 未知" "$time" "状态异常" - ;; - esac - done - - echo "" - - # 显示失败服务的错误信息 - if [ $FAILED_DEPLOYMENTS -gt 0 ]; then - echo "❌ 失败服务错误详情:" - echo "----------------------------------------" - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - if [ "${DEPLOYMENT_STATUS[$service_name]}" = "FAILED" ]; then - echo "🔸 $service_name:" - echo " ${DEPLOYMENT_ERRORS[$service_name]}" | head -3 - echo "" - fi - done - fi - - # 显示当前运行的容器状态 - echo "🐳 当前容器运行状态:" - echo "----------------------------------------" - ssh 'root@47.111.10.27' "docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' | grep emotion || echo '没有运行的emotion相关容器'" - - echo "" - echo "========================================" - - # 根据部署结果设置退出码 - if [ $FAILED_DEPLOYMENTS -eq 0 ]; then - echo "🎉 所有服务部署成功!" - return 0 - else - echo "⚠️ 部分服务部署失败,请检查错误日志" - return 1 - fi -} - -# 主函数 -main() { - local start_time=$(date +%s) - - log_info "🚀 开始全服务容器化部署..." - log_info "目标服务器: $REMOTE_HOST" - log_info "部署环境: $PROFILE" - log_info "部署模式: $DEPLOY_MODE" - log_info "服务总数: $TOTAL_SERVICES" - - # 根据部署模式执行不同的流程 - case $DEPLOY_MODE in - "build") - log_info "🔨 执行构建模式 - 仅在Jenkins服务器构建jar包" - execute_build_only - ;; - "deploy") - log_info "🚀 执行部署模式 - 仅部署到远程服务器" - execute_deploy_only - ;; - "full"|*) - log_info "🔄 执行完整模式 - 构建+部署" - execute_full_deployment - ;; - esac -} - -# 仅构建模式 -execute_build_only() { - local start_time=$(date +%s) - - log_info "开始构建所有服务..." - - # 构建服务 - if ! build_all_services; then - log_error "服务构建失败" - exit 1 - fi - - # 显示构建结果 - log_info "📦 构建产物信息:" - for service_info in "${SERVICES[@]}"; do - service_name=$(echo $service_info | cut -d':' -f1) - jar_file="${service_name}/target/${service_name}-1.0.0.jar" - if [ -f "$jar_file" ]; then - jar_size=$(du -h "$jar_file" | cut -f1) - log_success "✅ $service_name: $jar_size" - else - log_error "❌ $service_name: jar包未生成" - fi - done - - local end_time=$(date +%s) - local total_time=$((end_time - start_time)) - log_success "🎉 构建完成!总耗时: ${total_time}s" -} - -# 仅部署模式 -execute_deploy_only() { - local start_time=$(date +%s) - - log_info "开始部署到远程服务器..." - - # 检查连接 - if ! check_remote_connection; then - log_error "远程服务器连接失败,部署终止" - exit 1 - fi - - # 创建目录和网络 - create_remote_directories - create_docker_network - - # 部署所有服务 - deploy_all_services_to_remote - - # 健康检查和报告 - health_check - local end_time=$(date +%s) - local total_time=$((end_time - start_time)) - show_deployment_report $total_time -} - -# 完整部署模式 -execute_full_deployment() { - local start_time=$(date +%s) - - # 检查连接 - if ! check_remote_connection; then - log_error "远程服务器连接失败,部署终止" - exit 1 - fi - - # 创建目录 - create_remote_directories - - # 创建Docker网络 - create_docker_network - - # 构建服务 - if ! build_all_services; then - log_error "服务构建失败,部署终止" - exit 1 - fi - - # 部署所有服务 - deploy_all_services_to_remote - - # 健康检查 - log_info "执行服务健康检查..." - health_check - - # 计算总耗时 - local end_time=$(date +%s) - local total_time=$((end_time - start_time)) - - # 显示详细报告 - show_deployment_report $total_time - - # 根据部署结果设置退出码 - if [ $FAILED_DEPLOYMENTS -eq 0 ]; then - log_success "🎉 全服务容器化部署完成!" - exit 0 - else - log_warning "⚠️ 部分服务部署失败,请查看详细报告" - exit 1 - fi -} - -# 执行主函数 -main "$@" diff --git a/backend/dev-auto.sh b/backend/dev-auto.sh deleted file mode 100755 index 9ba3cf8..0000000 --- a/backend/dev-auto.sh +++ /dev/null @@ -1,209 +0,0 @@ -#!/bin/bash - -# ============================================================================ -# 情绪博物馆自动化开发脚本 -# 自动编译、启动、监控文件变化并重启服务 -# ============================================================================ - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -# 配置 -PROJECT_ROOT=$(pwd) -SERVICES=("emotion-gateway" "emotion-user" "emotion-ai" "emotion-record" "emotion-growth" "emotion-explore" "emotion-reward" "emotion-stats") -PID_FILE="$PROJECT_ROOT/.dev-pids" -LOG_DIR="$PROJECT_ROOT/dev-logs" - -# 创建日志目录 -mkdir -p "$LOG_DIR" - -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}情绪博物馆自动化开发环境${NC}" -echo -e "${BLUE}===========================================${NC}" - -# 清理函数 -cleanup() { - echo -e "\n${YELLOW}正在停止所有服务...${NC}" - if [ -f "$PID_FILE" ]; then - while read line; do - if [ ! -z "$line" ]; then - echo "停止进程: $line" - kill -9 $line 2>/dev/null || true - fi - done < "$PID_FILE" - rm -f "$PID_FILE" - fi - - # 清理Maven进程 - pkill -f "mvn.*spring-boot:run" 2>/dev/null || true - - echo -e "${GREEN}✅ 清理完成${NC}" - exit 0 -} - -# 捕获退出信号 -trap cleanup SIGINT SIGTERM - -# 编译项目 -compile_project() { - echo -e "${YELLOW}🔄 编译项目...${NC}" - mvn clean compile -DskipTests -q - if [ $? -eq 0 ]; then - echo -e "${GREEN}✅ 编译成功${NC}" - return 0 - else - echo -e "${RED}❌ 编译失败${NC}" - return 1 - fi -} - -# 启动单个服务 -start_service() { - local service=$1 - local port=$2 - - echo -e "${BLUE}🚀 启动 $service (端口: $port)...${NC}" - - cd "$PROJECT_ROOT/$service" - - # 启动服务并获取PID - nohup mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=$port" \ - > "$LOG_DIR/$service.log" 2>&1 & - - local pid=$! - echo "$pid" >> "$PID_FILE" - - echo -e "${GREEN}✅ $service 已启动 (PID: $pid)${NC}" - - cd "$PROJECT_ROOT" -} - -# 检查服务健康状态 -check_service_health() { - local service=$1 - local port=$2 - local max_attempts=30 - local attempt=0 - - echo -e "${YELLOW}⏳ 等待 $service 启动...${NC}" - - while [ $attempt -lt $max_attempts ]; do - if curl -s "http://localhost:$port/actuator/health" > /dev/null 2>&1; then - echo -e "${GREEN}✅ $service 健康检查通过${NC}" - return 0 - fi - - attempt=$((attempt + 1)) - sleep 2 - echo -n "." - done - - echo -e "\n${RED}❌ $service 健康检查失败${NC}" - return 1 -} - -# 监控文件变化 -monitor_changes() { - echo -e "${BLUE}👀 开始监控文件变化...${NC}" - echo -e "${YELLOW}按 Ctrl+C 停止监控${NC}" - - # 使用fswatch监控文件变化 (需要安装: brew install fswatch) - if command -v fswatch > /dev/null; then - fswatch -o -r --exclude="target" --exclude=".git" --exclude="node_modules" \ - --include=".*\\.java$" --include=".*\\.yml$" --include=".*\\.xml$" \ - "$PROJECT_ROOT" | while read f; do - echo -e "${YELLOW}🔄 检测到文件变化,重新编译...${NC}" - if compile_project; then - echo -e "${GREEN}📝 代码已更新,DevTools将自动重启服务${NC}" - fi - done - else - # 如果没有fswatch,使用简单的循环检查 - echo -e "${YELLOW}⚠️ 建议安装 fswatch 以获得更好的文件监控体验:brew install fswatch${NC}" - while true; do - sleep 5 - # 简单的时间戳检查(这里可以根据需要扩展) - echo -e "${BLUE}💓 服务运行中... ($(date))${NC}" - done - fi -} - -# 显示服务状态 -show_status() { - echo -e "${BLUE}===========================================${NC}" - echo -e "${BLUE}服务状态${NC}" - echo -e "${BLUE}===========================================${NC}" - - local ports=(8080 8081 8082 8083 8084 8085 8086 8087) - local i=0 - - for service in "${SERVICES[@]}"; do - local port=${ports[$i]} - if curl -s "http://localhost:$port/actuator/health" > /dev/null 2>&1; then - echo -e "${GREEN}✅ $service (端口: $port) - 运行中${NC}" - else - echo -e "${RED}❌ $service (端口: $port) - 停止${NC}" - fi - i=$((i + 1)) - done - - echo -e "${BLUE}===========================================${NC}" - echo -e "${YELLOW}📋 日志文件位置: $LOG_DIR/${NC}" - echo -e "${YELLOW}🌐 API网关: http://localhost:9000${NC}" - echo -e "${YELLOW}📚 API文档: http://localhost:9000/doc.html${NC}" - echo -e "${BLUE}===========================================${NC}" -} - -# 主函数 -main() { - # 清理之前的进程 - cleanup 2>/dev/null || true - - # 编译项目 - if ! compile_project; then - echo -e "${RED}❌ 编译失败,请检查代码错误${NC}" - exit 1 - fi - - # 启动服务 - echo -e "${BLUE}🚀 启动所有微服务...${NC}" - - local ports=(9000 9001 9002 9003 9004 9005 9006 9007) - local i=0 - - for service in "${SERVICES[@]}"; do - start_service "$service" "${ports[$i]}" - sleep 3 # 给服务一些启动时间 - i=$((i + 1)) - done - - # 等待所有服务启动 - sleep 10 - - # 显示状态 - show_status - - # 开始监控 - monitor_changes -} - -# 检查参数 -case "${1:-}" in - "status") - show_status - ;; - "stop") - cleanup - ;; - "logs") - echo -e "${BLUE}📋 实时日志 (按 Ctrl+C 退出):${NC}" - tail -f "$LOG_DIR"/*.log - ;; - *) - main - ;; -esac \ No newline at end of file diff --git a/backend/dev-start.sh b/backend/dev-start.sh deleted file mode 100755 index 663bf7a..0000000 --- a/backend/dev-start.sh +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/bash - -# 情绪博物馆微服务开发启动脚本 -# 适用于本地开发环境,可以直接看到日志输出 -# 作者: emotion-museum -# 日期: 2025-07-13 - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' -CYAN='\033[0;36m' -NC='\033[0m' # No Color - -echo -e "${BLUE}==========================================" -echo -e "情绪博物馆微服务开发启动脚本" -echo -e "适用于本地开发环境 - 实时日志输出" -echo -e "==========================================${NC}" - -# 检查Java环境 -if ! command -v java &> /dev/null; then - echo -e "${RED}❌ 错误: 未找到Java环境,请安装JDK 17+${NC}" - exit 1 -fi - -# 检查Maven环境 -if ! command -v mvn &> /dev/null; then - echo -e "${RED}❌ 错误: 未找到Maven环境,请安装Maven 3.6+${NC}" - exit 1 -fi - -echo -e "${GREEN}✅ Java环境检查通过${NC}" -echo -e "${GREEN}✅ Maven环境检查通过${NC}" - -# 显示菜单 -show_menu() { - echo "" - echo -e "${CYAN}请选择要启动的服务:${NC}" - echo -e "${YELLOW}1.${NC} 启动网关服务 (emotion-gateway:9000)" - echo -e "${YELLOW}2.${NC} 启动用户服务 (emotion-user:9001)" - echo -e "${YELLOW}3.${NC} 启动AI对话服务 (emotion-ai:9002)" - echo -e "${YELLOW}4.${NC} 启动情绪记录服务 (emotion-record:9003)" - echo -e "${YELLOW}5.${NC} 启动成长课题服务 (emotion-growth:9004)" - echo -e "${YELLOW}6.${NC} 启动地图探索服务 (emotion-explore:9005)" - echo -e "${YELLOW}7.${NC} 启动成就奖励服务 (emotion-reward:9006)" - echo -e "${YELLOW}8.${NC} 启动统计分析服务 (emotion-stats:9007)" - echo -e "${YELLOW}9.${NC} 编译所有项目" - echo -e "${YELLOW}0.${NC} 退出" - echo "" -} - -# 编译项目 -compile_project() { - echo -e "${BLUE}🔨 开始编译项目...${NC}" - mvn clean compile -DskipTests - - if [ $? -eq 0 ]; then - echo -e "${GREEN}✅ 项目编译成功!${NC}" - return 0 - else - echo -e "${RED}❌ 项目编译失败!${NC}" - return 1 - fi -} - -# 启动单个服务 -start_service() { - local service_name=$1 - local service_port=$2 - local service_desc=$3 - - echo -e "${BLUE}🚀 启动 ${service_desc} (${service_name}:${service_port})...${NC}" - echo -e "${YELLOW}💡 提示: 按 Ctrl+C 停止服务${NC}" - echo -e "${PURPLE}📋 日志输出开始:${NC}" - echo "----------------------------------------" - - cd $service_name - mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=$service_port" - cd .. -} - -# 主循环 -while true; do - show_menu - read -p "请输入选择 (0-9): " choice - - case $choice in - 1) - start_service "emotion-gateway" 9000 "网关服务" - ;; - 2) - start_service "emotion-user" 9001 "用户服务" - ;; - 3) - start_service "emotion-ai" 9002 "AI对话服务" - ;; - 4) - start_service "emotion-record" 9003 "情绪记录服务" - ;; - 5) - start_service "emotion-growth" 9004 "成长课题服务" - ;; - 6) - start_service "emotion-explore" 9005 "地图探索服务" - ;; - 7) - start_service "emotion-reward" 9006 "成就奖励服务" - ;; - 8) - start_service "emotion-stats" 9007 "统计分析服务" - ;; - 9) - compile_project - ;; - 0) - echo -e "${GREEN}👋 退出开发启动脚本${NC}" - exit 0 - ;; - *) - echo -e "${RED}❌ 无效选择,请输入 0-9${NC}" - ;; - esac - - echo "" - echo -e "${YELLOW}按任意键继续...${NC}" - read -n 1 -done diff --git a/backend/emotion-websocket-模块创建总结.md b/backend/emotion-websocket-模块创建总结.md deleted file mode 100644 index c48ca36..0000000 --- a/backend/emotion-websocket-模块创建总结.md +++ /dev/null @@ -1,234 +0,0 @@ -# Emotion WebSocket 模块创建总结 - -## 概述 - -成功创建了独立的 `emotion-websocket` 微服务模块,用于实现WebSocket实时聊天功能,支持用户与AI的实时对话。 - -## 创建的文件结构 - -``` -backend/emotion-websocket/ -├── pom.xml # Maven配置文件 -├── Dockerfile # Docker构建文件 -├── README.md # 模块说明文档 -├── src/ -│ ├── main/ -│ │ ├── java/com/emotionmuseum/websocket/ -│ │ │ ├── WebsocketApplication.java # 主启动类 -│ │ │ ├── config/ -│ │ │ │ ├── WebSocketConfig.java # WebSocket配置 -│ │ │ │ └── AsyncConfig.java # 异步配置 -│ │ │ ├── controller/ -│ │ │ │ ├── ChatWebSocketController.java # WebSocket控制器 -│ │ │ │ └── WebSocketTestController.java # REST测试控制器 -│ │ │ ├── dto/ -│ │ │ │ ├── WebSocketMessage.java # WebSocket消息DTO -│ │ │ │ └── ChatRequest.java # 聊天请求DTO -│ │ │ ├── service/ -│ │ │ │ ├── ChatWebSocketService.java # WebSocket服务接口 -│ │ │ │ ├── AiChatService.java # AI聊天服务接口 -│ │ │ │ └── impl/ -│ │ │ │ ├── ChatWebSocketServiceImpl.java # WebSocket服务实现 -│ │ │ │ └── AiChatServiceImpl.java # AI聊天服务实现 -│ │ │ ├── manager/ -│ │ │ │ └── WebSocketSessionManager.java # 会话管理器 -│ │ │ ├── feign/ -│ │ │ │ └── AiServiceClient.java # AI服务Feign客户端 -│ │ │ └── listener/ -│ │ │ └── WebSocketEventListener.java # WebSocket事件监听器 -│ │ └── resources/ -│ │ ├── application.yml # 主配置文件 -│ │ ├── application-local.yml # 本地环境配置 -│ │ ├── bootstrap.yml # 启动配置 -│ │ └── static/ -│ │ └── websocket-test.html # WebSocket测试页面 -│ └── test/ -│ ├── java/com/emotionmuseum/websocket/ -│ │ └── WebSocketTestApplication.java # 测试类 -│ └── resources/ -│ └── application-test.yml # 测试环境配置 -``` - -## 主要功能特性 - -### 1. WebSocket实时通信 -- 基于STOMP协议的WebSocket通信 -- 支持SockJS降级处理 -- 实时双向消息传输 - -### 2. 消息类型支持 -- **TEXT**: 文本消息 -- **TYPING**: 正在输入状态 -- **SYSTEM**: 系统消息 -- **ERROR**: 错误消息 -- **HEARTBEAT**: 心跳检测 -- **CONNECTION**: 连接状态 -- **AI_THINKING**: AI思考中状态 - -### 3. 发送者类型 -- **USER**: 注册用户 -- **GUEST**: 游客用户 -- **AI**: AI系统 -- **SYSTEM**: 系统 - -### 4. 会话管理 -- 用户会话状态管理 -- 在线用户统计 -- 会话超时处理 - -### 5. AI集成 -- 通过Feign调用emotion-ai服务 -- 异步AI响应处理 -- AI回复消息分割发送 - -## 核心组件说明 - -### 1. WebSocketConfig -- 配置STOMP消息代理 -- 设置WebSocket端点 -- 配置跨域访问策略 - -### 2. ChatWebSocketController -- 处理WebSocket消息映射 -- 支持聊天消息发送 -- 处理用户连接/断开连接 -- 心跳检测处理 - -### 3. WebSocketSessionManager -- 管理用户会话映射 -- 在线用户状态跟踪 -- 会话信息存储 - -### 4. ChatWebSocketService -- WebSocket消息处理核心逻辑 -- 消息路由和分发 -- AI服务集成调用 - -### 5. AiServiceClient -- 通过Feign调用emotion-ai服务 -- 支持用户聊天和游客聊天接口 - -## 配置说明 - -### 服务配置 -- **端口**: 19007 -- **服务名**: emotion-websocket -- **WebSocket端点**: `/ws/chat` - -### 消息端点 -- **发送消息**: `/app/chat.send` -- **用户连接**: `/app/chat.connect` -- **用户断开**: `/app/chat.disconnect` -- **心跳检测**: `/app/chat.heartbeat` - -### 订阅端点 -- **用户私有消息**: `/user/queue/messages` -- **会话消息**: `/topic/conversation/{conversationId}` -- **广播消息**: `/topic/broadcast` - -## 依赖关系 - -### 内部依赖 -- `emotion-common`: 公共组件 -- `emotion-ai`: AI服务(通过Feign调用) - -### 外部依赖 -- Spring Boot WebSocket -- Spring Cloud Alibaba -- Nacos服务发现 -- OpenFeign -- MyBatis Plus -- MySQL -- Redis - -## 启动方式 - -### 1. 单独启动 -```bash -cd backend/emotion-websocket -mvn spring-boot:run -Dspring-boot.run.profiles=local -``` - -### 2. 统一启动脚本 -```bash -cd backend -./start-services.sh -``` - -### 3. Docker启动 -```bash -cd backend/emotion-websocket -docker build -t emotion-websocket:1.0.0 . -docker run -d -p 19007:19007 emotion-websocket:1.0.0 -``` - -## 测试方法 - -### 1. 内置测试页面 -访问: http://localhost:19007/websocket-test.html - -### 2. REST API测试 -```bash -# 发送测试消息 -curl -X POST "http://localhost:19007/websocket/send?userId=test-user&message=Hello" - -# 查看在线用户 -curl -X GET "http://localhost:19007/websocket/online-users" -``` - -### 3. JavaScript客户端测试 -使用SockJS和STOMP.js连接WebSocket端点进行测试 - -## 集成说明 - -### 1. 与emotion-ai服务集成 -- 通过Feign客户端调用AI服务 -- 支持异步AI响应处理 -- AI回复消息自动分割发送 - -### 2. 与前端集成 -- 提供标准的WebSocket接口 -- 支持SockJS降级处理 -- 完整的消息格式定义 - -### 3. 与网关集成 -- 通过emotion-gateway统一访问 -- 支持负载均衡 -- 统一的服务发现 - -## 监控和日志 - -### 健康检查 -- http://localhost:19007/actuator/health - -### 指标监控 -- http://localhost:19007/actuator/metrics -- http://localhost:19007/actuator/prometheus - -### 日志配置 -- 日志文件: `logs/emotion-websocket.log` -- 支持DEBUG级别的WebSocket调试日志 - -## 后续扩展建议 - -1. **消息持久化**: 将聊天消息存储到数据库 -2. **文件传输**: 支持图片、文件等多媒体消息 -3. **群聊功能**: 支持多用户群组聊天 -4. **消息加密**: 增加端到端消息加密 -5. **消息撤回**: 支持消息撤回功能 -6. **在线状态**: 更详细的用户在线状态管理 -7. **消息推送**: 集成推送服务支持离线消息推送 - -## 总结 - -成功创建了功能完整的WebSocket聊天微服务模块,具备以下优势: - -- ✅ 独立的微服务架构 -- ✅ 完整的WebSocket实时通信功能 -- ✅ 与AI服务的无缝集成 -- ✅ 完善的会话管理机制 -- ✅ 丰富的消息类型支持 -- ✅ 良好的可扩展性和可维护性 -- ✅ 完整的测试和文档支持 - -该模块可以直接用于生产环境,为用户提供流畅的实时聊天体验。 diff --git a/backend/logs/ai.log b/backend/logs/ai.log deleted file mode 100644 index ef75641..0000000 --- a/backend/logs/ai.log +++ /dev/null @@ -1 +0,0 @@ -target/emotion-ai-1.0.0.jar中没有主清单属性 diff --git a/backend/logs/ai.pid b/backend/logs/ai.pid deleted file mode 100644 index 44e6771..0000000 --- a/backend/logs/ai.pid +++ /dev/null @@ -1 +0,0 @@ -63083 diff --git a/backend/logs/emotion-ai-local.log b/backend/logs/emotion-ai-local.log deleted file mode 100644 index bb55ced..0000000 --- a/backend/logs/emotion-ai-local.log +++ /dev/null @@ -1,102 +0,0 @@ -2025-07-16T09:03:31.799+08:00 WARN 20008 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:31.889+08:00 WARN 20008 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:32.194+08:00 WARN 20008 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:32.196+08:00 INFO 20008 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : [settings] [req-serv] nacos-server port:8848 -2025-07-16T09:03:32.196+08:00 INFO 20008 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : [settings] [http-client] connect timeout:1000 -2025-07-16T09:03:32.198+08:00 INFO 20008 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-16T09:03:32.254+08:00 INFO 20008 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-16T09:03:32.254+08:00 INFO 20008 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-16T09:03:32.277+08:00 INFO 20008 --- [ main] c.a.n.c.a.r.identify.CredentialWatcher : null No credential found -2025-07-16 09:03:32 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot :: (v3.0.2) - -2025-07-16 09:03:32 [main] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of 90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0 -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x00000001342dba98 -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x00000001342dbea8 -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-16 09:03:32 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-16 09:03:32 [main] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-16 09:03:33 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752627813368_127.0.0.1_62143 -2025-07-16 09:03:33 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Notify connected event to listeners. -2025-07-16 09:03:33 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Connected,notify listen context... -2025-07-16 09:03:33 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-16 09:03:33 [main] INFO [com.alibaba.nacos.common.remote.client] - [90a9ad1e-7bf0-4f56-9d87-36c72dbc1d26_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x000000013443efc8 -2025-07-16 09:03:33 [main] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-16 09:03:33 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai] & group[DEFAULT_GROUP] -2025-07-16 09:03:33 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai.properties] & group[DEFAULT_GROUP] -2025-07-16 09:03:33 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai-local.properties] & group[DEFAULT_GROUP] -2025-07-16 09:03:33 [main] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-ai-local.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-ai.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-ai,DEFAULT_GROUP'}] -2025-07-16 09:03:33 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16 09:03:33 [main] INFO [com.emotionmuseum.ai.AiApplication] - The following 1 profile is active: "local" -2025-07-16 09:03:34 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-16 09:03:34 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-16 09:03:34 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 7 ms. Found 0 Redis repository interfaces. -2025-07-16 09:03:34 [main] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=75ad894c-a831-3fef-8183-57bf629af884 -2025-07-16 09:03:35 [main] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 19002 (http) -2025-07-16 09:03:35 [main] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-16 09:03:35 [main] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-16 09:03:35 [main] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-16 09:03:35 [main] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 1976 ms -2025-07-16 09:03:35 [main] DEBUG [o.s.web.filter.ServerHttpObservationFilter] - Filter 'serverHttpObservationFilter' configured for use -2025-07-16 09:03:36 [main] INFO [com.emotionmuseum.common.config.SnowflakeConfig] - 使用MAC地址生成的机器ID: 669 -2025-07-16 09:03:36 [main] INFO [com.emotionmuseum.common.config.SnowflakeConfig] - 雪花算法配置完成,使用机器ID: 669 -2025-07-16 09:03:36 [main] INFO [c.emotionmuseum.common.util.SnowflakeIdGenerator] - 雪花算法ID生成器初始化完成,机器ID: 669 -2025-07-16 09:03:36 [main] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Registered plugin: 'com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor@422b8438' -2025-07-16 09:03:36 [main] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-16 09:03:37 [main] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerAdapter] - ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice -2025-07-16 09:03:37 [main] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - 25 mappings in 'requestMappingHandlerMapping' -2025-07-16 09:03:37 [main] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Patterns [/webjars/**, /**] in 'resourceHandlerMapping' -2025-07-16 09:03:37 [main] DEBUG [o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver] - ControllerAdvice beans: 0 @ExceptionHandler, 1 ResponseBodyAdvice -2025-07-16 09:03:38 [main] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 4 endpoint(s) beneath base path '/actuator' -2025-07-16 09:03:38 [main] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat started on port(s): 19002 (http) with context path '' -2025-07-16 09:03:38 [main] INFO [com.emotionmuseum.ai.AiApplication] - Started AiApplication in 7.184 seconds (process running for 7.854) -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring DispatcherServlet 'dispatcherServlet' -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Initializing Servlet 'dispatcherServlet' -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected StandardServletMultipartResolver -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected AcceptHeaderLocaleResolver -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected FixedThemeResolver -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@eb62a4b -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected org.springframework.web.servlet.support.SessionFlashMapManager@323186f9 -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Completed initialization in 3 ms -2025-07-16 09:03:58 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - GET "/actuator/health", parameters={} -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Starting... -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [com.zaxxer.hikari.pool.HikariPool] - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@41120a95 -2025-07-16 09:03:58 [http-nio-19002-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Start completed. -2025-07-16 09:03:59 [http-nio-19002-exec-1] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/vnd.spring-boot.actuator.v3+json', given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:03:59 [http-nio-19002-exec-1] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [org.springframework.boot.actuate.health.SystemHealth@5be85732] -2025-07-16 09:03:59 [http-nio-19002-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Completed 200 OK -2025-07-16 09:04:12 [http-nio-19002-exec-2] DEBUG [org.springframework.web.servlet.DispatcherServlet] - GET "/actuator/health", parameters={} -2025-07-16 09:04:12 [http-nio-19002-exec-2] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/vnd.spring-boot.actuator.v3+json', given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:04:12 [http-nio-19002-exec-2] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [org.springframework.boot.actuate.health.SystemHealth@2065d61c] -2025-07-16 09:04:12 [http-nio-19002-exec-2] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Completed 200 OK -2025-07-16 09:04:31 [http-nio-19002-exec-4] DEBUG [org.springframework.web.servlet.DispatcherServlet] - GET "/ai/actuator/health", parameters={} -2025-07-16 09:04:31 [http-nio-19002-exec-4] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [c.e.common.interceptor.UserContextInterceptor] - 设置用户上下文: userId=guest_1901232820, requestUri=/ai/actuator/health -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [o.s.w.servlet.resource.ResourceHttpRequestHandler] - Resource not found -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [c.e.common.interceptor.UserContextInterceptor] - 清除用户上下文: requestUri=/ai/actuator/health -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Completed 404 NOT_FOUND -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [org.springframework.web.servlet.DispatcherServlet] - "ERROR" dispatch for GET "/error", parameters={} -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/json', given [*/*] and supported [application/json, application/*+json] -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [{timestamp=Wed Jul 16 09:04:32 CST 2025, status=404, error=Not Found, path=/ai/actuator/health}] -2025-07-16 09:04:32 [http-nio-19002-exec-4] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Exiting from "ERROR" dispatch, status 404 -2025-07-16 09:46:47 [Thread-1] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-16 09:46:47 [Thread-7] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-16 09:46:47 [Thread-7] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-16 09:46:47 [Thread-1] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -2025-07-16 09:46:48 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown initiated... -2025-07-16 09:46:48 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown completed. diff --git a/backend/logs/emotion-ai.log b/backend/logs/emotion-ai.log deleted file mode 100644 index d773443..0000000 --- a/backend/logs/emotion-ai.log +++ /dev/null @@ -1,98 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] --------------------< com.emotionmuseum:emotion-ai >-------------------- -[INFO] Building emotion-ai 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-ai >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-ai --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-ai --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-ai --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-ai/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-ai --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-ai <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-ai --- -[INFO] Attaching agents: [] -2025-07-13T08:45:44.867+08:00  WARN 6918 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:44.925+08:00  WARN 6918 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:44.952+08:00  INFO 6918 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:45.125+08:00  WARN 6918 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:45.126+08:00  INFO 6918 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:45.126+08:00  INFO 6918 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:45.128+08:00  INFO 6918 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:45.177+08:00  INFO 6918 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:45.177+08:00  INFO 6918 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:45.196+08:00  INFO 6918 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:45 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:45 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of 0ed45851-eb8a-42d7-b72e-31a045327a03_config-0 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012531c670 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012531caa0 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:45 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367545782_127.0.0.1_51238 -2025-07-13 08:45:45 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Notify connected event to listeners. -2025-07-13 08:45:45 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Connected,notify listen context... -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [0ed45851-eb8a-42d7-b72e-31a045327a03_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x00000001254a7778 -2025-07-13 08:45:45 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:46 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai] & group[DEFAULT_GROUP] -2025-07-13 08:45:46 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:46 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-ai-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:46 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-ai-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-ai.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-ai,DEFAULT_GROUP'}] -2025-07-13 08:45:46 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:46 [restartedMain] INFO [com.emotionmuseum.ai.AiApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:46 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:46 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:46 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 6 ms. Found 0 Redis repository interfaces. -2025-07-13 08:45:46 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=856a198a-0f81-3510-808c-6303647be993 -2025-07-13 08:45:47 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9002 (http) -2025-07-13 08:45:47 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:45:47 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:45:47 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:45:47 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 1428 ms -2025-07-13 08:45:47 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Registered plugin: 'com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor@35a5d991' -2025-07-13 08:45:47 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:45:49 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:45:49 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 4 endpoint(s) beneath base path '/actuator' -2025-07-13 08:45:49 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat started on port(s): 9002 (http) with context path '' -2025-07-13 08:45:49 [restartedMain] INFO [com.emotionmuseum.ai.AiApplication] - Started AiApplication in 4.676 seconds (process running for 5.147) -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring DispatcherServlet 'dispatcherServlet' -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Initializing Servlet 'dispatcherServlet' -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Completed initialization in 1 ms -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - EmotionAiHikariCP - Starting... -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [com.zaxxer.hikari.pool.HikariPool] - EmotionAiHikariCP - Added connection com.mysql.cj.jdbc.ConnectionImpl@56486bc4 -2025-07-13 08:45:49 [http-nio-9002-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - EmotionAiHikariCP - Start completed. -2025-07-13 08:49:24 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:49:24 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:49:24 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:49:24 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -2025-07-13 08:49:24 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - EmotionAiHikariCP - Shutdown initiated... -2025-07-13 08:49:24 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - EmotionAiHikariCP - Shutdown completed. diff --git a/backend/logs/emotion-explore.log b/backend/logs/emotion-explore.log deleted file mode 100644 index ffb7c9d..0000000 --- a/backend/logs/emotion-explore.log +++ /dev/null @@ -1,120 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] -----------------< com.emotionmuseum:emotion-explore >------------------ -[INFO] Building emotion-explore 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-explore >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-explore --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-explore --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-explore --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-explore/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-explore --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-explore <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-explore --- -[INFO] Attaching agents: [] -2025-07-13T08:45:57.456+08:00  WARN 7147 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.542+08:00  WARN 7147 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.579+08:00  INFO 7147 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:57.836+08:00  WARN 7147 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.839+08:00  INFO 7147 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:57.839+08:00  INFO 7147 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:57.841+08:00  INFO 7147 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:57.909+08:00  INFO 7147 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:57.909+08:00  INFO 7147 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:57.936+08:00  INFO 7147 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:58 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of 519c9471-ef87-4204-a56c-74ff37fe3e86_config-0 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012b316a60 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012b316e90 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:58 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367558691_127.0.0.1_51338 -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Notify connected event to listeners. -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Connected,notify listen context... -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [519c9471-ef87-4204-a56c-74ff37fe3e86_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x000000012b4a4d38 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-explore] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-explore.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-explore-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-explore-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-explore.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-explore,DEFAULT_GROUP'}] -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:58 [restartedMain] INFO [com.emotionmuseum.explore.ExploreApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 7 ms. Found 0 Redis repository interfaces. -2025-07-13 08:46:00 [restartedMain] WARN [org.mybatis.spring.mapper.ClassPathMapperScanner] - No MyBatis mapper was found in '[com.emotionmuseum.explore.mapper]' package. Please check your configuration. -2025-07-13 08:46:00 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=e3b16e73-732b-3cd7-ba87-b0b05ca7eb72 -2025-07-13 08:46:01 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9005 (http) -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:46:01 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:46:01 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2135 ms -2025-07-13 08:46:01 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' -2025-07-13 08:46:02 [restartedMain] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-0} closing ... -2025-07-13 08:46:02 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Stopping service [Tomcat] -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.a.logging.ConditionEvaluationReportLogger] - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-13 08:46:02 [restartedMain] ERROR [o.s.b.diagnostics.LoggingFailureAnalysisReporter] - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -Web server failed to start. Port 9005 was already in use. - -Action: - -Identify and stop the process that's listening on port 9005 or configure this application to listen on another port. - -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:46:02 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 10.164 s -[INFO] Finished at: 2025-07-13T08:46:03+08:00 -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:run (default-cli) on project emotion-explore: Process terminated with exit code: 1 -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/backend/logs/emotion-gateway-local.log b/backend/logs/emotion-gateway-local.log deleted file mode 100644 index d45e877..0000000 --- a/backend/logs/emotion-gateway-local.log +++ /dev/null @@ -1,93 +0,0 @@ -2025-07-16 09:03:40 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot :: (v3.0.2) - -2025-07-16 09:03:40 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16 09:03:40 [main] INFO [com.emotionmuseum.gateway.GatewayApplication] - Starting GatewayApplication using Java 21.0.7 with PID 20154 (/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway/target/emotion-gateway-1.0.0.jar started by huazhongmin in /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway) -2025-07-16 09:03:40 [main] DEBUG [com.emotionmuseum.gateway.GatewayApplication] - Running with Spring Boot v3.0.2, Spring v6.0.4 -2025-07-16 09:03:40 [main] INFO [com.emotionmuseum.gateway.GatewayApplication] - The following 1 profile is active: "local" -2025-07-16 09:03:42 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-16 09:03:42 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-16 09:03:42 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 13 ms. Found 0 Redis repository interfaces. -2025-07-16 09:03:42 [main] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=4710d9c7-5e9d-353b-b960-5b878d180ffe -2025-07-16 09:03:42 [main] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-16 09:03:42 [main] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-16 09:03:42 [main] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-16 09:03:44 [main] DEBUG [o.s.cloud.gateway.config.GatewayProperties] - Routes supplied from Gateway Properties: [RouteDefinition{id='emotion-user-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/user/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-captcha-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/captcha/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-oauth-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/oauth/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19001, order=0, metadata={}}, RouteDefinition{id='emotion-ai-route', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/ai/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=0}}], uri=http://localhost:19002, order=0, metadata={}}] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [After] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Before] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Between] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Cookie] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Header] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Host] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Method] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Path] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Query] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [ReadBody] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [RemoteAddr] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [XForwardedRemoteAddr] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Weight] -2025-07-16 09:03:44 [main] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [CloudFoundryRouteService] -2025-07-16 09:03:44 [main] INFO [c.a.c.s.gateway.scg.SentinelSCGAutoConfiguration] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648 -2025-07-16 09:03:44 [main] DEBUG [o.s.web.reactive.handler.SimpleUrlHandlerMapping] - Patterns [/webjars/**, /**] in 'resourceHandlerMapping' -2025-07-16 09:03:44 [main] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 2 endpoint(s) beneath base path '/actuator' -2025-07-16 09:03:44 [main] DEBUG [o.s.w.r.r.m.annotation.ControllerMethodResolver] - ControllerAdvice beans: none -2025-07-16 09:03:44 [main] INFO [c.a.c.s.gateway.scg.SentinelSCGAutoConfiguration] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler -2025-07-16 09:03:44 [main] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - enableLoggingRequestDetails='false': form data and headers will be masked to prevent unsafe logging of potentially sensitive data -2025-07-16 09:03:44 [main] WARN [o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger] - Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. -2025-07-16 09:03:45 [main] INFO [o.s.boot.web.embedded.netty.NettyWebServer] - Netty started on port 19000 -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-user-route applying {_genkey_0=/user/**} to Path -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-user-route applying filter {_genkey_0=0} to StripPrefix -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-user-route -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-captcha-route applying {_genkey_0=/captcha/**} to Path -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-captcha-route applying filter {_genkey_0=0} to StripPrefix -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-captcha-route -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-oauth-route applying {_genkey_0=/oauth/**} to Path -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-oauth-route applying filter {_genkey_0=0} to StripPrefix -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-oauth-route -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-ai-route applying {_genkey_0=/ai/**} to Path -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-ai-route applying filter {_genkey_0=0} to StripPrefix -2025-07-16 09:03:45 [main] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-ai-route -2025-07-16 09:03:45 [main] DEBUG [o.s.cloud.gateway.filter.GatewayMetricsFilter] - New routes count: 4 -2025-07-16 09:03:45 [main] INFO [com.emotionmuseum.gateway.GatewayApplication] - Started GatewayApplication in 5.105 seconds (process running for 5.704) -2025-07-16 09:03:59 [reactor-http-nio-2] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [42be3651-1] HTTP GET "/actuator/health" -INFO: Sentinel log output type is: file -INFO: Sentinel log charset is: utf-8 -INFO: Sentinel log base directory is: /Users/huazhongmin/logs/csp/ -INFO: Sentinel log name use pid is: false -INFO: Sentinel log level is: INFO -2025-07-16 09:03:59 [lettuce-nioEventLoop-5-1] DEBUG [o.s.w.r.r.m.annotation.ResponseEntityResultHandler] - [42be3651-1] Using 'application/vnd.spring-boot.actuator.v3+json' given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:03:59 [lettuce-nioEventLoop-5-1] DEBUG [o.s.w.r.r.m.annotation.ResponseEntityResultHandler] - [42be3651-1] 0..1 [org.springframework.boot.actuate.health.SystemHealth] -2025-07-16 09:03:59 [lettuce-nioEventLoop-5-1] DEBUG [org.springframework.web.HttpLogging] - [42be3651-1] Encoding [org.springframework.boot.actuate.health.SystemHealth@6fdce5a3] -2025-07-16 09:03:59 [reactor-http-nio-2] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [42be3651-1] Completed 200 OK -2025-07-16 09:04:12 [reactor-http-nio-3] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [127c1f50-2] HTTP GET "/actuator/health" -2025-07-16 09:04:12 [lettuce-nioEventLoop-5-1] DEBUG [o.s.w.r.r.m.annotation.ResponseEntityResultHandler] - [127c1f50-2] Using 'application/vnd.spring-boot.actuator.v3+json' given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:04:12 [lettuce-nioEventLoop-5-1] DEBUG [o.s.w.r.r.m.annotation.ResponseEntityResultHandler] - [127c1f50-2] 0..1 [org.springframework.boot.actuate.health.SystemHealth] -2025-07-16 09:04:12 [lettuce-nioEventLoop-5-1] DEBUG [org.springframework.web.HttpLogging] - [127c1f50-2] Encoding [org.springframework.boot.actuate.health.SystemHealth@3fb8c67f] -2025-07-16 09:04:12 [reactor-http-nio-3] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [127c1f50-2] Completed 200 OK -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [7b8bca8e-3] HTTP GET "/user/actuator/health" -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - Route matched: emotion-user-route -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - Mapping [Exchange: GET http://localhost:19000/user/actuator/health] to Route{id='emotion-user-route', uri=http://localhost:19001, order=0, predicate=Paths: [/user/**], match trailing slash: true, gatewayFilters=[[[StripPrefix parts = 0], order = 1]], metadata={}} -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - [7b8bca8e-3] Mapped to org.springframework.cloud.gateway.handler.FilteringWebHandler@373b5ee9 -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.cloud.gateway.handler.FilteringWebHandler] - Sorted gatewayFilterFactories: [[GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.RemoveCachedBodyFilter@451f87af}, order = -2147483648], [GatewayFilterAdapter{delegate=com.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter@3051e0b2}, order = -2147483648], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.AdaptCachedBodyGlobalFilter@4dafba3e}, order = -2147482648], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.NettyWriteResponseFilter@287f7811}, order = -1], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ForwardPathFilter@17271176}, order = 0], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.GatewayMetricsFilter@2e34384c}, order = 0], [[StripPrefix parts = 0], order = 1], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter@2b556bb2}, order = 10000], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ReactiveLoadBalancerClientFilter@57b75756}, order = 10150], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.LoadBalancerServiceInstanceCookieFilter@5327a06e}, order = 10151], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.WebsocketRoutingFilter@2e3cdec2}, order = 2147483646], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.NettyRoutingFilter@2679311f}, order = 2147483647], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ForwardRoutingFilter@44cb460e}, order = 2147483647]] -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.g.f.h.o.ObservedRequestHttpHeadersFilter] - Will instrument the HTTP request headers [Host:"localhost:19000", User-Agent:"curl/8.7.1", Accept:"*/*", Forwarded:"proto=http;host="localhost:19000";for="[0:0:0:0:0:0:0:1]:62291"", X-Forwarded-For:"0:0:0:0:0:0:0:1", X-Forwarded-Proto:"http", X-Forwarded-Port:"19000", X-Forwarded-Host:"localhost:19000"] -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.g.f.h.o.ObservedRequestHttpHeadersFilter] - Client observation {name=http.client.requests(null), error=null, context=name='http.client.requests', contextualName='null', error='null', lowCardinalityKeyValues=[http.method='GET', http.status_code='UNKNOWN', spring.cloud.gateway.route.id='emotion-user-route', spring.cloud.gateway.route.uri='http://localhost:19001'], highCardinalityKeyValues=[http.uri='http://localhost:19000/user/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@4443fec4', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=4.93244E-4, duration(nanos)=493244.0, startTimeNanos=302639138304957}'], parentObservation={name=http.server.requests(null), error=null, context=name='http.server.requests', contextualName='null', error='null', lowCardinalityKeyValues=[exception='none', method='GET', outcome='SUCCESS', status='200', uri='UNKNOWN'], highCardinalityKeyValues=[http.url='/user/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@62ceb8d8', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.131310068, duration(nanos)=1.31310068E8, startTimeNanos=302639007609097}'], parentObservation=null}} created for the request. New headers are [Host:"localhost:19000", User-Agent:"curl/8.7.1", Accept:"*/*", Forwarded:"proto=http;host="localhost:19000";for="[0:0:0:0:0:0:0:1]:62291"", X-Forwarded-For:"0:0:0:0:0:0:0:1", X-Forwarded-Proto:"http", X-Forwarded-Port:"19000", X-Forwarded-Host:"localhost:19000"] -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.g.f.h.o.ObservedResponseHttpHeadersFilter] - Will instrument the response -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.c.g.f.h.o.ObservedResponseHttpHeadersFilter] - The response was handled for observation {name=http.client.requests(null), error=null, context=name='http.client.requests', contextualName='null', error='null', lowCardinalityKeyValues=[http.method='GET', http.status_code='UNKNOWN', spring.cloud.gateway.route.id='emotion-user-route', spring.cloud.gateway.route.uri='http://localhost:19001'], highCardinalityKeyValues=[http.uri='http://localhost:19000/user/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@4443fec4', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.078344915, duration(nanos)=7.8344915E7, startTimeNanos=302639138304957}'], parentObservation={name=http.server.requests(null), error=null, context=name='http.server.requests', contextualName='null', error='null', lowCardinalityKeyValues=[exception='none', method='GET', outcome='SUCCESS', status='200', uri='UNKNOWN'], highCardinalityKeyValues=[http.url='/user/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@62ceb8d8', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.209234105, duration(nanos)=2.09234105E8, startTimeNanos=302639007609097}'], parentObservation=null}} -2025-07-16 09:04:22 [reactor-http-nio-4] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [7b8bca8e-3] Completed 403 FORBIDDEN -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [37305ece-4] HTTP GET "/ai/actuator/health" -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - Route matched: emotion-ai-route -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - Mapping [Exchange: GET http://localhost:19000/ai/actuator/health] to Route{id='emotion-ai-route', uri=http://localhost:19002, order=0, predicate=Paths: [/ai/**], match trailing slash: true, gatewayFilters=[[[StripPrefix parts = 0], order = 1]], metadata={}} -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.c.gateway.handler.RoutePredicateHandlerMapping] - [37305ece-4] Mapped to org.springframework.cloud.gateway.handler.FilteringWebHandler@373b5ee9 -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.cloud.gateway.handler.FilteringWebHandler] - Sorted gatewayFilterFactories: [[GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.RemoveCachedBodyFilter@451f87af}, order = -2147483648], [GatewayFilterAdapter{delegate=com.alibaba.csp.sentinel.adapter.gateway.sc.SentinelGatewayFilter@3051e0b2}, order = -2147483648], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.AdaptCachedBodyGlobalFilter@4dafba3e}, order = -2147482648], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.NettyWriteResponseFilter@287f7811}, order = -1], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ForwardPathFilter@17271176}, order = 0], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.GatewayMetricsFilter@2e34384c}, order = 0], [[StripPrefix parts = 0], order = 1], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.RouteToRequestUrlFilter@2b556bb2}, order = 10000], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ReactiveLoadBalancerClientFilter@57b75756}, order = 10150], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.LoadBalancerServiceInstanceCookieFilter@5327a06e}, order = 10151], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.WebsocketRoutingFilter@2e3cdec2}, order = 2147483646], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.NettyRoutingFilter@2679311f}, order = 2147483647], [GatewayFilterAdapter{delegate=org.springframework.cloud.gateway.filter.ForwardRoutingFilter@44cb460e}, order = 2147483647]] -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.c.g.f.h.o.ObservedRequestHttpHeadersFilter] - Will instrument the HTTP request headers [Host:"localhost:19000", User-Agent:"curl/8.7.1", Accept:"*/*", Forwarded:"proto=http;host="localhost:19000";for="[0:0:0:0:0:0:0:1]:62323"", X-Forwarded-For:"0:0:0:0:0:0:0:1", X-Forwarded-Proto:"http", X-Forwarded-Port:"19000", X-Forwarded-Host:"localhost:19000"] -2025-07-16 09:04:31 [reactor-http-nio-5] DEBUG [o.s.c.g.f.h.o.ObservedRequestHttpHeadersFilter] - Client observation {name=http.client.requests(null), error=null, context=name='http.client.requests', contextualName='null', error='null', lowCardinalityKeyValues=[http.method='GET', http.status_code='UNKNOWN', spring.cloud.gateway.route.id='emotion-ai-route', spring.cloud.gateway.route.uri='http://localhost:19002'], highCardinalityKeyValues=[http.uri='http://localhost:19000/ai/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@14138b12', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=1.69279E-4, duration(nanos)=169279.0, startTimeNanos=302648957485505}'], parentObservation={name=http.server.requests(null), error=null, context=name='http.server.requests', contextualName='null', error='null', lowCardinalityKeyValues=[exception='none', method='GET', outcome='SUCCESS', status='200', uri='UNKNOWN'], highCardinalityKeyValues=[http.url='/ai/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@3973cc2a', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.003046764, duration(nanos)=3046764.0, startTimeNanos=302648954707166}'], parentObservation=null}} created for the request. New headers are [Host:"localhost:19000", User-Agent:"curl/8.7.1", Accept:"*/*", Forwarded:"proto=http;host="localhost:19000";for="[0:0:0:0:0:0:0:1]:62323"", X-Forwarded-For:"0:0:0:0:0:0:0:1", X-Forwarded-Proto:"http", X-Forwarded-Port:"19000", X-Forwarded-Host:"localhost:19000"] -2025-07-16 09:04:32 [reactor-http-nio-5] DEBUG [o.s.c.g.f.h.o.ObservedResponseHttpHeadersFilter] - Will instrument the response -2025-07-16 09:04:32 [reactor-http-nio-5] DEBUG [o.s.c.g.f.h.o.ObservedResponseHttpHeadersFilter] - The response was handled for observation {name=http.client.requests(null), error=null, context=name='http.client.requests', contextualName='null', error='null', lowCardinalityKeyValues=[http.method='GET', http.status_code='UNKNOWN', spring.cloud.gateway.route.id='emotion-ai-route', spring.cloud.gateway.route.uri='http://localhost:19002'], highCardinalityKeyValues=[http.uri='http://localhost:19000/ai/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@14138b12', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.078077624, duration(nanos)=7.8077624E7, startTimeNanos=302648957485505}'], parentObservation={name=http.server.requests(null), error=null, context=name='http.server.requests', contextualName='null', error='null', lowCardinalityKeyValues=[exception='none', method='GET', outcome='SUCCESS', status='200', uri='UNKNOWN'], highCardinalityKeyValues=[http.url='/ai/actuator/health'], map=[class io.micrometer.core.instrument.Timer$Sample='io.micrometer.core.instrument.Timer$Sample@3973cc2a', class io.micrometer.core.instrument.LongTaskTimer$Sample='SampleImpl{duration(seconds)=0.080973745, duration(nanos)=8.0973745E7, startTimeNanos=302648954707166}'], parentObservation=null}} -2025-07-16 09:04:32 [reactor-http-nio-5] DEBUG [o.s.web.server.adapter.HttpWebHandlerAdapter] - [37305ece-4] Completed 404 NOT_FOUND diff --git a/backend/logs/emotion-gateway.log b/backend/logs/emotion-gateway.log deleted file mode 100644 index dad8d4a..0000000 --- a/backend/logs/emotion-gateway.log +++ /dev/null @@ -1,98 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] -----------------< com.emotionmuseum:emotion-gateway >------------------ -[INFO] Building emotion-gateway 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-gateway >>> -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-gateway --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-gateway --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-gateway --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-gateway --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-gateway <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-gateway --- -[INFO] Attaching agents: [] -2025-07-13 08:45:28 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:28 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:28 [restartedMain] INFO [com.emotionmuseum.gateway.GatewayApplication] - Starting GatewayApplication using Java 23.0.2 with PID 6683 (/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway/target/classes started by huazhongmin in /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-gateway) -2025-07-13 08:45:28 [restartedMain] DEBUG [com.emotionmuseum.gateway.GatewayApplication] - Running with Spring Boot v3.0.2, Spring v6.0.4 -2025-07-13 08:45:28 [restartedMain] INFO [com.emotionmuseum.gateway.GatewayApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:28 [restartedMain] INFO [o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor] - Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13 08:45:28 [restartedMain] INFO [o.s.b.d.env.DevToolsPropertyDefaultsPostProcessor] - For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' -2025-07-13 08:45:29 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:29 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:29 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 9 ms. Found 0 Redis repository interfaces. -2025-07-13 08:45:29 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=52e78852-b349-32d3-9f4b-547073a85453 -2025-07-13 08:45:29 [restartedMain] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-13 08:45:29 [restartedMain] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-13 08:45:29 [restartedMain] INFO [o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker] - Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) -2025-07-13 08:45:30 [restartedMain] DEBUG [o.s.cloud.gateway.config.GatewayProperties] - Routes supplied from Gateway Properties: [RouteDefinition{id='emotion-user', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/user/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-user, order=0, metadata={}}, RouteDefinition{id='emotion-ai', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/ai/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-ai, order=0, metadata={}}, RouteDefinition{id='emotion-record', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/record/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-record, order=0, metadata={}}, RouteDefinition{id='emotion-growth', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/growth/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-growth, order=0, metadata={}}, RouteDefinition{id='emotion-explore', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/explore/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-explore, order=0, metadata={}}, RouteDefinition{id='emotion-reward', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/reward/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-reward, order=0, metadata={}}, RouteDefinition{id='emotion-stats', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/api/stats/**}}], filters=[FilterDefinition{name='StripPrefix', args={_genkey_0=2}}], uri=lb://emotion-stats, order=0, metadata={}}] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [After] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Before] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Between] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Cookie] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Header] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Host] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Method] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Path] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Query] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [ReadBody] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [RemoteAddr] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [XForwardedRemoteAddr] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [Weight] -2025-07-13 08:45:30 [restartedMain] INFO [o.s.c.gateway.route.RouteDefinitionRouteLocator] - Loaded RoutePredicateFactory [CloudFoundryRouteService] -2025-07-13 08:45:30 [restartedMain] INFO [c.a.c.s.gateway.scg.SentinelSCGAutoConfiguration] - [Sentinel SpringCloudGateway] register SentinelGatewayFilter with order: -2147483648 -2025-07-13 08:45:31 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 2 endpoint(s) beneath base path '/actuator' -2025-07-13 08:45:31 [restartedMain] INFO [c.a.c.s.gateway.scg.SentinelSCGAutoConfiguration] - [Sentinel SpringCloudGateway] register SentinelGatewayBlockExceptionHandler -2025-07-13 08:45:31 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:45:31 [restartedMain] WARN [o.s.c.l.c.LoadBalancerCacheAutoConfiguration$LoadBalancerCaffeineWarnLogger] - Spring Cloud LoadBalancer is currently working with the default cache. While this cache implementation is useful for development and tests, it's recommended to use Caffeine cache in production.You can switch to using Caffeine cache, by adding it and org.springframework.cache.caffeine.CaffeineCacheManager to the classpath. -2025-07-13 08:45:31 [restartedMain] INFO [o.s.boot.web.embedded.netty.NettyWebServer] - Netty started on port 9000 -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-user applying {_genkey_0=/api/user/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-user applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-user -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-ai applying {_genkey_0=/api/ai/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-ai applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-ai -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-record applying {_genkey_0=/api/record/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-record applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-record -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-growth applying {_genkey_0=/api/growth/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-growth applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-growth -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-explore applying {_genkey_0=/api/explore/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-explore applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-explore -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-reward applying {_genkey_0=/api/reward/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-reward applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-reward -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-stats applying {_genkey_0=/api/stats/**} to Path -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition emotion-stats applying filter {_genkey_0=2} to StripPrefix -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.c.gateway.route.RouteDefinitionRouteLocator] - RouteDefinition matched: emotion-stats -2025-07-13 08:45:31 [restartedMain] DEBUG [o.s.cloud.gateway.filter.GatewayMetricsFilter] - New routes count: 7 -2025-07-13 08:45:31 [restartedMain] INFO [com.emotionmuseum.gateway.GatewayApplication] - Started GatewayApplication in 3.673 seconds (process running for 4.132) -INFO: Sentinel log output type is: file -INFO: Sentinel log charset is: utf-8 -INFO: Sentinel log base directory is: /Users/huazhongmin/logs/csp/ -INFO: Sentinel log name use pid is: false -INFO: Sentinel log level is: INFO diff --git a/backend/logs/emotion-growth.log b/backend/logs/emotion-growth.log deleted file mode 100644 index 5985f72..0000000 --- a/backend/logs/emotion-growth.log +++ /dev/null @@ -1,121 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] ------------------< com.emotionmuseum:emotion-growth >------------------ -[INFO] Building emotion-growth 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-growth >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-growth --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-growth --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-growth --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-growth/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-growth --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-growth <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-growth --- -[INFO] Attaching agents: [] -2025-07-13T08:45:56.958+08:00  WARN 7144 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.046+08:00  WARN 7144 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.085+08:00  INFO 7144 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:57.400+08:00  WARN 7144 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.403+08:00  INFO 7144 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:57.403+08:00  INFO 7144 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:57.406+08:00  INFO 7144 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:57.468+08:00  INFO 7144 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:57.468+08:00  INFO 7144 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:57.498+08:00  INFO 7144 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:57 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:57 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x00000001263173d8 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x0000000126317808 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:57 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367558311_127.0.0.1_51335 -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Notify connected event to listeners. -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Connected,notify listen context... -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [ae27a187-bd28-4e55-8e9f-a546efcdb1c0_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x00000001264a5490 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-growth] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-growth.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-growth-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-growth-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-growth.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-growth,DEFAULT_GROUP'}] -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:58 [restartedMain] INFO [com.emotionmuseum.growth.GrowthApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 7 ms. Found 0 Redis repository interfaces. -2025-07-13 08:45:59 [restartedMain] WARN [org.mybatis.spring.mapper.ClassPathMapperScanner] - No MyBatis mapper was found in '[com.emotionmuseum.growth.mapper]' package. Please check your configuration. -2025-07-13 08:45:59 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=4182ccb9-28af-3c79-b715-9374e44c89a7 -2025-07-13 08:46:00 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9004 (http) -2025-07-13 08:46:00 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:46:00 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:46:00 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:46:00 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2103 ms -2025-07-13 08:46:01 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' -2025-07-13 08:46:02 [restartedMain] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-0} closing ... -2025-07-13 08:46:02 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Stopping service [Tomcat] -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.a.logging.ConditionEvaluationReportLogger] - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-13 08:46:02 [restartedMain] ERROR [o.s.b.diagnostics.LoggingFailureAnalysisReporter] - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -Web server failed to start. Port 9004 was already in use. - -Action: - -Identify and stop the process that's listening on port 9004 or configure this application to listen on another port. - -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:46:02 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:46:02 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 10.247 s -[INFO] Finished at: 2025-07-13T08:46:02+08:00 -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:run (default-cli) on project emotion-growth: Process terminated with exit code: 1 -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/backend/logs/emotion-record.log b/backend/logs/emotion-record.log deleted file mode 100644 index 481b166..0000000 --- a/backend/logs/emotion-record.log +++ /dev/null @@ -1,121 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] ------------------< com.emotionmuseum:emotion-record >------------------ -[INFO] Building emotion-record 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-record >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-record --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-record --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-record --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-record/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-record --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-record <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-record --- -[INFO] Attaching agents: [] -2025-07-13T08:45:56.926+08:00  WARN 7142 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.023+08:00  WARN 7142 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.063+08:00  INFO 7142 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:57.373+08:00  WARN 7142 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.376+08:00  INFO 7142 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:57.376+08:00  INFO 7142 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:57.381+08:00  INFO 7142 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:57.454+08:00  INFO 7142 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:57.454+08:00  INFO 7142 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:57.484+08:00  INFO 7142 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:57 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:57 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of b1838b09-f01b-45ad-907d-017e3278f9aa_config-0 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x0000000133317378 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x00000001333177a8 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:57 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:57 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367558310_127.0.0.1_51334 -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Notify connected event to listeners. -2025-07-13 08:45:58 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Connected,notify listen context... -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [b1838b09-f01b-45ad-907d-017e3278f9aa_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x00000001334a4d38 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-record] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-record.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-record-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:58 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-record-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-record.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-record,DEFAULT_GROUP'}] -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:58 [restartedMain] INFO [com.emotionmuseum.record.RecordApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:59 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 9 ms. Found 0 Redis repository interfaces. -2025-07-13 08:45:59 [restartedMain] WARN [org.mybatis.spring.mapper.ClassPathMapperScanner] - No MyBatis mapper was found in '[com.emotionmuseum.record.mapper]' package. Please check your configuration. -2025-07-13 08:45:59 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=5c2334fc-7543-34b7-9dd6-173e5c1ad22d -2025-07-13 08:46:00 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9003 (http) -2025-07-13 08:46:00 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:46:00 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:46:00 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:46:00 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2100 ms -2025-07-13 08:46:01 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' -2025-07-13 08:46:02 [restartedMain] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-0} closing ... -2025-07-13 08:46:02 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Stopping service [Tomcat] -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.a.logging.ConditionEvaluationReportLogger] - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-13 08:46:02 [restartedMain] ERROR [o.s.b.diagnostics.LoggingFailureAnalysisReporter] - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -Web server failed to start. Port 9003 was already in use. - -Action: - -Identify and stop the process that's listening on port 9003 or configure this application to listen on another port. - -2025-07-13 08:46:02 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:46:02 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:46:02 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 10.743 s -[INFO] Finished at: 2025-07-13T08:46:02+08:00 -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:run (default-cli) on project emotion-record: Process terminated with exit code: 1 -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/backend/logs/emotion-reward.log b/backend/logs/emotion-reward.log deleted file mode 100644 index 306b80e..0000000 --- a/backend/logs/emotion-reward.log +++ /dev/null @@ -1,121 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] ------------------< com.emotionmuseum:emotion-reward >------------------ -[INFO] Building emotion-reward 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-reward >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-reward --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-reward --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-reward --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-reward/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-reward --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-reward <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-reward --- -[INFO] Attaching agents: [] -2025-07-13T08:45:57.848+08:00  WARN 7150 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.929+08:00  WARN 7150 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:57.960+08:00  INFO 7150 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:58.176+08:00  WARN 7150 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:58.177+08:00  INFO 7150 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:58.177+08:00  INFO 7150 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:58.179+08:00  INFO 7150 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:58.235+08:00  INFO 7150 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:58.235+08:00  INFO 7150 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:58.262+08:00  INFO 7150 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:58 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x0000000126316a60 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x0000000126316e90 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:58 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367559041_127.0.0.1_51343 -2025-07-13 08:45:59 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Notify connected event to listeners. -2025-07-13 08:45:59 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Connected,notify listen context... -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [e6c044c5-b7c5-4811-8b89-760db0f4f9ae_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x00000001264a4d38 -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-reward] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-reward.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-reward-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-reward-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-reward.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-reward,DEFAULT_GROUP'}] -2025-07-13 08:45:59 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:59 [restartedMain] INFO [com.emotionmuseum.reward.RewardApplication] - The following 1 profile is active: "dev" -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 9 ms. Found 0 Redis repository interfaces. -2025-07-13 08:46:00 [restartedMain] WARN [org.mybatis.spring.mapper.ClassPathMapperScanner] - No MyBatis mapper was found in '[com.emotionmuseum.reward.mapper]' package. Please check your configuration. -2025-07-13 08:46:00 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=2ebf993f-e9df-3362-92a0-57f648eeab93 -2025-07-13 08:46:01 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9006 (http) -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:46:01 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:46:01 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2137 ms -2025-07-13 08:46:02 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' -2025-07-13 08:46:02 [restartedMain] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-0} closing ... -2025-07-13 08:46:02 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Stopping service [Tomcat] -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.a.logging.ConditionEvaluationReportLogger] - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-13 08:46:02 [restartedMain] ERROR [o.s.b.diagnostics.LoggingFailureAnalysisReporter] - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -Web server failed to start. Port 9006 was already in use. - -Action: - -Identify and stop the process that's listening on port 9006 or configure this application to listen on another port. - -2025-07-13 08:46:03 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:46:03 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:46:03 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:46:03 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 9.965 s -[INFO] Finished at: 2025-07-13T08:46:03+08:00 -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:run (default-cli) on project emotion-reward: Process terminated with exit code: 1 -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/backend/logs/emotion-stats.log b/backend/logs/emotion-stats.log deleted file mode 100644 index e667a51..0000000 --- a/backend/logs/emotion-stats.log +++ /dev/null @@ -1,121 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] ------------------< com.emotionmuseum:emotion-stats >------------------- -[INFO] Building emotion-stats 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-stats >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-stats --- -[INFO] Copying 1 resource from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-stats --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-stats --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-stats/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-stats --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-stats <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-stats --- -[INFO] Attaching agents: [] -2025-07-13T08:45:58.270+08:00  WARN 7167 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:58.356+08:00  WARN 7167 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:58.403+08:00  INFO 7167 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:58.635+08:00  WARN 7167 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:58.637+08:00  INFO 7167 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:58.637+08:00  INFO 7167 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:58.638+08:00  INFO 7167 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:58.691+08:00  INFO 7167 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:58.691+08:00  INFO 7167 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:58.712+08:00  INFO 7167 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:58 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:58 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of 51a04bce-977d-489e-ba5c-8147a68680fb_config-0 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012d31bc18 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012d31c048 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:58 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:58 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367559501_127.0.0.1_51348 -2025-07-13 08:45:59 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Notify connected event to listeners. -2025-07-13 08:45:59 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Connected,notify listen context... -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [51a04bce-977d-489e-ba5c-8147a68680fb_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x000000012d4a7d30 -2025-07-13 08:45:59 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-stats] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-stats.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-stats-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:59 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-stats-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-stats.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-stats,DEFAULT_GROUP'}] -2025-07-13 08:45:59 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:59 [restartedMain] INFO [com.emotionmuseum.stats.StatsApplication] - The following 1 profile is active: "dev" -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:46:00 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 6 ms. Found 0 Redis repository interfaces. -2025-07-13 08:46:01 [restartedMain] WARN [org.mybatis.spring.mapper.ClassPathMapperScanner] - No MyBatis mapper was found in '[com.emotionmuseum.stats.mapper]' package. Please check your configuration. -2025-07-13 08:46:01 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=af125b37-688d-3aab-bf37-e7a7060f4920 -2025-07-13 08:46:01 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9007 (http) -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:46:01 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:46:01 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:46:01 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2077 ms -2025-07-13 08:46:02 [restartedMain] DEBUG [c.b.m.e.spring.MybatisSqlSessionFactoryBean] - Property 'mapperLocations' was not specified. - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:46:02 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:46:02 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:46:03 [restartedMain] WARN [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop' -2025-07-13 08:46:03 [restartedMain] INFO [com.alibaba.druid.pool.DruidDataSource] - {dataSource-0} closing ... -2025-07-13 08:46:03 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Stopping service [Tomcat] -2025-07-13 08:46:03 [restartedMain] INFO [o.s.b.a.logging.ConditionEvaluationReportLogger] - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-13 08:46:03 [restartedMain] ERROR [o.s.b.diagnostics.LoggingFailureAnalysisReporter] - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -Web server failed to start. Port 9007 was already in use. - -Action: - -Identify and stop the process that's listening on port 9007 or configure this application to listen on another port. - -2025-07-13 08:46:03 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:46:03 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:46:03 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:46:03 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -[INFO] ------------------------------------------------------------------------ -[INFO] BUILD FAILURE -[INFO] ------------------------------------------------------------------------ -[INFO] Total time: 9.734 s -[INFO] Finished at: 2025-07-13T08:46:03+08:00 -[INFO] ------------------------------------------------------------------------ -[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.0.2:run (default-cli) on project emotion-stats: Process terminated with exit code: 1 -> [Help 1] -[ERROR] -[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. -[ERROR] Re-run Maven using the -X switch to enable full debug logging. -[ERROR] -[ERROR] For more information about the errors and possible solutions, please read the following articles: -[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException diff --git a/backend/logs/emotion-user-local.log b/backend/logs/emotion-user-local.log deleted file mode 100644 index 7904b22..0000000 --- a/backend/logs/emotion-user-local.log +++ /dev/null @@ -1,125 +0,0 @@ -2025-07-16T09:03:18.888+08:00 WARN 19784 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:18.983+08:00 WARN 19784 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:19.261+08:00 WARN 19784 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16T09:03:19.262+08:00 INFO 19784 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : [settings] [req-serv] nacos-server port:8848 -2025-07-16T09:03:19.263+08:00 INFO 19784 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : [settings] [http-client] connect timeout:1000 -2025-07-16T09:03:19.265+08:00 INFO 19784 --- [ main] c.alibaba.nacos.client.utils.ParamUtil : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-16T09:03:19.321+08:00 INFO 19784 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-16T09:03:19.321+08:00 INFO 19784 --- [ main] c.a.n.p.a.s.c.ClientAuthPluginManager : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-16T09:03:19.345+08:00 INFO 19784 --- [ main] c.a.n.c.a.r.identify.CredentialWatcher : null No credential found -2025-07-16 09:03:19 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot :: (v3.0.2) - -2025-07-16 09:03:19 [main] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of 745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0 -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000013d2dc530 -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000013d2dc940 -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-16 09:03:19 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-16 09:03:19 [main] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-16 09:03:20 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752627800162_127.0.0.1_62095 -2025-07-16 09:03:20 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Notify connected event to listeners. -2025-07-16 09:03:20 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Connected,notify listen context... -2025-07-16 09:03:20 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-16 09:03:20 [main] INFO [com.alibaba.nacos.common.remote.client] - [745c3cf4-7cb2-4ac6-a11a-86fd37de7293_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x000000013d43f118 -2025-07-16 09:03:20 [main] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-16 09:03:20 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user] & group[DEFAULT_GROUP] -2025-07-16 09:03:20 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user.properties] & group[DEFAULT_GROUP] -2025-07-16 09:03:20 [main] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user-local.properties] & group[DEFAULT_GROUP] -2025-07-16 09:03:20 [main] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-user-local.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-user.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-user,DEFAULT_GROUP'}] -2025-07-16 09:03:20 [main] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-16 09:03:20 [main] INFO [com.emotionmuseum.user.UserApplication] - The following 1 profile is active: "local" -2025-07-16 09:03:21 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-16 09:03:21 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-16 09:03:21 [main] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 12 ms. Found 0 Redis repository interfaces. -2025-07-16 09:03:21 [main] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=2c694ed0-114c-30e6-aed7-dcee6bca36f0 -2025-07-16 09:03:22 [main] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 19001 (http) -2025-07-16 09:03:22 [main] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-16 09:03:22 [main] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-16 09:03:22 [main] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-16 09:03:22 [main] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 2214 ms -Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. -2025-07-16 09:03:23 [main] INFO [com.emotionmuseum.common.config.SnowflakeConfig] - 使用MAC地址生成的机器ID: 669 -2025-07-16 09:03:23 [main] INFO [com.emotionmuseum.common.config.SnowflakeConfig] - 雪花算法配置完成,使用机器ID: 669 -2025-07-16 09:03:23 [main] INFO [c.emotionmuseum.common.util.SnowflakeIdGenerator] - 雪花算法ID生成器初始化完成,机器ID: 669 -Registered plugin: 'com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor@76889e60' -Parsed mapper file: 'URL [jar:file:/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/emotion-user-1.0.0.jar!/BOOT-INF/classes!/mapper/UserMapper.xml]' - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-16 09:03:24 [main] DEBUG [c.e.user.security.JwtAuthenticationFilter] - Filter 'jwtAuthenticationFilter' configured for use -2025-07-16 09:03:24 [main] DEBUG [o.s.web.filter.ServerHttpObservationFilter] - Filter 'serverHttpObservationFilter' configured for use -2025-07-16 09:03:24 [main] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - 19 mappings in 'requestMappingHandlerMapping' -2025-07-16 09:03:24 [main] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Patterns [/webjars/**, /**] in 'resourceHandlerMapping' -2025-07-16 09:03:25 [main] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-16 09:03:25 [main] INFO [o.s.security.web.DefaultSecurityFilterChain] - Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@6993c8df, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@57545c3f, org.springframework.security.web.context.SecurityContextHolderFilter@64920dc2, org.springframework.security.web.header.HeaderWriterFilter@794366a5, org.springframework.web.filter.CorsFilter@326e0b8e, org.springframework.security.web.authentication.logout.LogoutFilter@30839e44, com.emotionmuseum.user.security.JwtAuthenticationFilter@434514d8, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@493ac8d3, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@13dbed9e, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@36baa049, org.springframework.security.web.session.SessionManagementFilter@1ee47d9e, org.springframework.security.web.access.ExceptionTranslationFilter@3f36e8d1, org.springframework.security.web.access.intercept.AuthorizationFilter@7978e022] -2025-07-16 09:03:25 [main] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerAdapter] - ControllerAdvice beans: 0 @ModelAttribute, 0 @InitBinder, 1 RequestBodyAdvice, 1 ResponseBodyAdvice -2025-07-16 09:03:25 [main] DEBUG [o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver] - ControllerAdvice beans: 0 @ExceptionHandler, 1 ResponseBodyAdvice -2025-07-16 09:03:25 [main] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat started on port(s): 19001 (http) with context path '' -2025-07-16 09:03:25 [main] INFO [com.emotionmuseum.user.UserApplication] - Started UserApplication in 7.27 seconds (process running for 7.838) -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring DispatcherServlet 'dispatcherServlet' -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Initializing Servlet 'dispatcherServlet' -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected StandardServletMultipartResolver -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected AcceptHeaderLocaleResolver -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected FixedThemeResolver -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator@5e240cb6 -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Detected org.springframework.web.servlet.support.SessionFlashMapManager@2e21a5d9 -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Completed initialization in 2 ms -2025-07-16 09:03:57 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - GET "/actuator/health", parameters={} -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Starting... -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [com.zaxxer.hikari.pool.HikariPool] - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@1703fbc9 -2025-07-16 09:03:57 [http-nio-19001-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Start completed. -2025-07-16 09:03:58 [http-nio-19001-exec-1] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/vnd.spring-boot.actuator.v3+json', given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:03:58 [http-nio-19001-exec-1] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [org.springframework.boot.actuate.health.SystemHealth@178369bf] -2025-07-16 09:03:58 [http-nio-19001-exec-1] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Completed 200 OK -2025-07-16 09:04:12 [http-nio-19001-exec-3] DEBUG [org.springframework.web.servlet.DispatcherServlet] - GET "/actuator/health", parameters={} -2025-07-16 09:04:12 [http-nio-19001-exec-3] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/vnd.spring-boot.actuator.v3+json', given [*/*] and supported [application/vnd.spring-boot.actuator.v3+json, application/vnd.spring-boot.actuator.v2+json, application/json] -2025-07-16 09:04:12 [http-nio-19001-exec-3] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [org.springframework.boot.actuate.health.SystemHealth@159e4af4] -2025-07-16 09:04:12 [http-nio-19001-exec-3] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Completed 200 OK -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.web.servlet.handler.SimpleUrlHandlerMapping] - Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [org.springframework.web.servlet.DispatcherServlet] - "ERROR" dispatch for GET "/error", parameters={} -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.a.RequestMappingHandlerMapping] - Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest) -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Using 'application/json', given [*/*] and supported [application/json, application/*+json] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [o.s.w.s.m.m.annotation.HttpEntityMethodProcessor] - Writing [{timestamp=Wed Jul 16 09:04:22 CST 2025, status=403, error=Forbidden, path=/user/actuator/health}] -2025-07-16 09:04:22 [http-nio-19001-exec-5] DEBUG [org.springframework.web.servlet.DispatcherServlet] - Exiting from "ERROR" dispatch, status 403 -2025-07-16 09:46:48 [Thread-1] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-16 09:46:48 [Thread-7] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-16 09:46:48 [Thread-7] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-16 09:46:48 [Thread-1] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -2025-07-16 09:46:49 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown initiated... -2025-07-16 09:46:49 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown completed. diff --git a/backend/logs/emotion-user.log b/backend/logs/emotion-user.log deleted file mode 100644 index ead26c7..0000000 --- a/backend/logs/emotion-user.log +++ /dev/null @@ -1,99 +0,0 @@ -[INFO] Scanning for projects... -[INFO] -[INFO] -------------------< com.emotionmuseum:emotion-user >------------------- -[INFO] Building emotion-user 1.0.0 -[INFO] from pom.xml -[INFO] --------------------------------[ jar ]--------------------------------- -[INFO] -[INFO] >>> spring-boot:3.0.2:run (default-cli) > test-compile @ emotion-user >>> -[WARNING] The artifact mysql:mysql-connector-java:jar:8.0.33 has been relocated to com.mysql:mysql-connector-j:jar:8.0.33: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates. -[INFO] -[INFO] --- resources:3.3.1:resources (default-resources) @ emotion-user --- -[INFO] Copying 2 resources from src/main/resources to target/classes -[INFO] -[INFO] --- compiler:3.10.1:compile (default-compile) @ emotion-user --- -[INFO] Nothing to compile - all classes are up to date -[INFO] -[INFO] --- resources:3.3.1:testResources (default-testResources) @ emotion-user --- -[INFO] skip non existing resourceDirectory /Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/src/test/resources -[INFO] -[INFO] --- compiler:3.10.1:testCompile (default-testCompile) @ emotion-user --- -[INFO] No sources to compile -[INFO] -[INFO] <<< spring-boot:3.0.2:run (default-cli) < test-compile @ emotion-user <<< -[INFO] -[INFO] -[INFO] --- spring-boot:3.0.2:run (default-cli) @ emotion-user --- -[INFO] Attaching agents: [] -2025-07-13T08:45:36.142+08:00  WARN 6791 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:36.195+08:00  WARN 6791 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:36.221+08:00  INFO 6791 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2025-07-13T08:45:36.387+08:00  WARN 6791 --- [ restartedMain] c.a.nacos.client.logging.NacosLogging  : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13T08:45:36.388+08:00  INFO 6791 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [req-serv] nacos-server port:8848 -2025-07-13T08:45:36.389+08:00  INFO 6791 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : [settings] [http-client] connect timeout:1000 -2025-07-13T08:45:36.391+08:00  INFO 6791 --- [ restartedMain] c.alibaba.nacos.client.utils.ParamUtil  : PER_TASK_CONFIG_SIZE: 3000.0 -2025-07-13T08:45:36.437+08:00  INFO 6791 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success. -2025-07-13T08:45:36.437+08:00  INFO 6791 --- [ restartedMain] c.a.n.p.a.s.c.ClientAuthPluginManager  : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success. -2025-07-13T08:45:36.455+08:00  INFO 6791 --- [ restartedMain] c.a.n.c.a.r.identify.CredentialWatcher  : null No credential found -2025-07-13 08:45:36 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot ::   (v3.0.2) - -2025-07-13 08:45:36 [restartedMain] INFO [c.a.n.client.config.impl.LocalConfigInfoProcessor] - LOCAL_SNAPSHOT_PATH:/Users/huazhongmin/nacos/config -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [RpcClientFactory] create a new rpc client of d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0 -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012e318670 -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda/0x000000012e318aa0 -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1 -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2 -2025-07-13 08:45:36 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848} -2025-07-13 08:45:36 [restartedMain] INFO [c.a.nacos.common.remote.client.grpc.GrpcClient] - grpc client connection server:127.0.0.1 ip,serverPort:9848,grpcTslConfig:{"sslProvider":"OPENSSL","enableTls":false,"mutualAuthEnable":false,"trustAll":false} -2025-07-13 08:45:37 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1752367537016_127.0.0.1_51165 -2025-07-13 08:45:37 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Notify connected event to listeners. -2025-07-13 08:45:37 [com.alibaba.nacos.client.remote.worker] INFO [com.alibaba.nacos.client.config.impl.ClientWorker] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Connected,notify listen context... -2025-07-13 08:45:37 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler -2025-07-13 08:45:37 [restartedMain] INFO [com.alibaba.nacos.common.remote.client] - [d7ae7ba9-4fec-4362-a0ff-0d9a56ce7c0d_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda/0x000000012e4a2a18 -2025-07-13 08:45:37 [restartedMain] INFO [com.alibaba.nacos.client.config.impl.Limiter] - limitTime:5.0 -2025-07-13 08:45:37 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user] & group[DEFAULT_GROUP] -2025-07-13 08:45:37 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:37 [restartedMain] WARN [c.a.cloud.nacos.client.NacosPropertySourceBuilder] - Ignore the empty nacos configuration and get it based on dataId[emotion-user-dev.properties] & group[DEFAULT_GROUP] -2025-07-13 08:45:37 [restartedMain] INFO [o.s.c.b.c.PropertySourceBootstrapConfiguration] - Located property source: [BootstrapPropertySource {name='bootstrapProperties-emotion-user-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-user.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-emotion-user,DEFAULT_GROUP'}] -2025-07-13 08:45:37 [restartedMain] WARN [com.alibaba.nacos.client.logging.NacosLogging] - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-13 08:45:37 [restartedMain] INFO [com.emotionmuseum.user.UserApplication] - The following 1 profile is active: "dev" -2025-07-13 08:45:37 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Multiple Spring Data modules found, entering strict repository configuration mode -2025-07-13 08:45:37 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Bootstrapping Spring Data Redis repositories in DEFAULT mode. -2025-07-13 08:45:37 [restartedMain] INFO [o.s.d.r.config.RepositoryConfigurationDelegate] - Finished Spring Data repository scanning in 7 ms. Found 0 Redis repository interfaces. -2025-07-13 08:45:38 [restartedMain] INFO [o.springframework.cloud.context.scope.GenericScope] - BeanFactory id=7e3acccb-1d48-37df-bf0c-1c15c4e1d510 -2025-07-13 08:45:38 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat initialized with port(s): 9001 (http) -2025-07-13 08:45:38 [restartedMain] INFO [org.apache.catalina.core.StandardService] - Starting service [Tomcat] -2025-07-13 08:45:38 [restartedMain] INFO [org.apache.catalina.core.StandardEngine] - Starting Servlet engine: [Apache Tomcat/10.1.5] -2025-07-13 08:45:38 [restartedMain] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring embedded WebApplicationContext -2025-07-13 08:45:38 [restartedMain] INFO [o.s.b.w.s.c.ServletWebServerApplicationContext] - Root WebApplicationContext: initialization completed in 1416 ms -Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. -Registered plugin: 'com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor@7d6aa779' -Parsed mapper file: 'file [/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/classes/mapper/UserMapper.xml]' - _ _ |_ _ _|_. ___ _ | _ -| | |\/|_)(_| | |_\ |_)||_|_\ - / | - 3.5.3.1 -2025-07-13 08:45:39 [restartedMain] WARN [o.s.b.d.autoconfigure.OptionalLiveReloadServer] - Unable to start LiveReload server -2025-07-13 08:45:39 [restartedMain] INFO [o.s.b.actuate.endpoint.web.EndpointLinksResolver] - Exposing 3 endpoint(s) beneath base path '/actuator' -2025-07-13 08:45:39 [restartedMain] INFO [o.s.boot.web.embedded.tomcat.TomcatWebServer] - Tomcat started on port(s): 9001 (http) with context path '' -2025-07-13 08:45:39 [restartedMain] INFO [com.emotionmuseum.user.UserApplication] - Started UserApplication in 3.951 seconds (process running for 4.401) -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [o.a.c.core.ContainerBase.[Tomcat].[localhost].[/]] - Initializing Spring DispatcherServlet 'dispatcherServlet' -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Initializing Servlet 'dispatcherServlet' -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [org.springframework.web.servlet.DispatcherServlet] - Completed initialization in 1 ms -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Starting... -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [com.zaxxer.hikari.pool.HikariPool] - HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@3eaf6ca4 -2025-07-13 08:45:40 [http-nio-9001-exec-1] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Start completed. -2025-07-13 08:49:25 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Start destroying common HttpClient -2025-07-13 08:49:25 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Start destroying Publisher -2025-07-13 08:49:25 [Thread-10] WARN [com.alibaba.nacos.common.notify.NotifyCenter] - [NotifyCenter] Destruction of the end -2025-07-13 08:49:25 [Thread-4] WARN [c.alibaba.nacos.common.http.HttpClientBeanHolder] - [HttpClientBeanHolder] Destruction of the end -2025-07-13 08:49:25 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown initiated... -2025-07-13 08:49:25 [SpringApplicationShutdownHook] INFO [com.zaxxer.hikari.HikariDataSource] - HikariPool-1 - Shutdown completed. diff --git a/backend/logs/gateway.log b/backend/logs/gateway.log deleted file mode 100644 index 69279b7..0000000 --- a/backend/logs/gateway.log +++ /dev/null @@ -1 +0,0 @@ -target/emotion-gateway-1.0.0.jar中没有主清单属性 diff --git a/backend/logs/gateway.pid b/backend/logs/gateway.pid deleted file mode 100644 index 03a89ab..0000000 --- a/backend/logs/gateway.pid +++ /dev/null @@ -1 +0,0 @@ -63251 diff --git a/backend/logs/user.log b/backend/logs/user.log deleted file mode 100644 index aaf25b6..0000000 --- a/backend/logs/user.log +++ /dev/null @@ -1,32 +0,0 @@ -2025-07-15T17:59:48.763+08:00 WARN 62881 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-15T17:59:48.862+08:00 WARN 62881 --- [ main] c.a.nacos.client.logging.NacosLogging : Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-15 17:59:49 [main] WARN com.alibaba.nacos.client.logging.NacosLogging - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml - - . ____ _ __ _ _ - /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ -( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ - \\/ ___)| |_)| | | | | || (_| | ) ) ) ) - ' |____| .__|_| |_|_| |_\__, | / / / / - =========|_|==============|___/=/_/_/_/ - :: Spring Boot :: (v3.0.2) - -2025-07-15 17:59:49 [main] WARN com.alibaba.nacos.client.logging.NacosLogging - Load Logback Configuration of Nacos fail, message: Could not initialize Logback Nacos logging from classpath:nacos-logback.xml -2025-07-15 17:59:49 [main] INFO com.emotionmuseum.user.UserApplication - The following 1 profile is active: "local" -2025-07-15 17:59:50 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'snowflakeIdGenerator' defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class]: Cannot register bean definition [Root bean: class [null]; scope=; abstract=false; lazyInit=null; autowireMode=3; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=snowflakeConfig; factoryMethodName=snowflakeIdGenerator; initMethodNames=null; destroyMethodNames=[(inferred)]; defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class]] for bean 'snowflakeIdGenerator' since there is already [Generic bean: class [com.emotionmuseum.common.util.SnowflakeIdGenerator]; scope=singleton; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodNames=null; destroyMethodNames=null; defined in URL [jar:file:/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/emotion-user-1.0.0.jar!/BOOT-INF/lib/emotion-common-1.0.0.jar!/com/emotionmuseum/common/util/SnowflakeIdGenerator.class]] bound. -2025-07-15 17:59:50 [main] INFO o.s.b.a.logging.ConditionEvaluationReportLogger - - -Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. -2025-07-15 17:59:50 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter - - -*************************** -APPLICATION FAILED TO START -*************************** - -Description: - -The bean 'snowflakeIdGenerator', defined in class path resource [com/emotionmuseum/common/config/SnowflakeConfig.class], could not be registered. A bean with that name has already been defined in URL [jar:file:/Users/huazhongmin/peanut/AppleDevelop/EmotionMuseum/backend/emotion-user/target/emotion-user-1.0.0.jar!/BOOT-INF/lib/emotion-common-1.0.0.jar!/com/emotionmuseum/common/util/SnowflakeIdGenerator.class] and overriding is disabled. - -Action: - -Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true - diff --git a/backend/logs/user.pid b/backend/logs/user.pid deleted file mode 100644 index add54b8..0000000 --- a/backend/logs/user.pid +++ /dev/null @@ -1 +0,0 @@ -62881 diff --git a/backend/start-services.sh b/backend/start-services.sh deleted file mode 100755 index 8b56d28..0000000 --- a/backend/start-services.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash - -# 情感博物馆微服务启动脚本 -# 支持环境参数控制 - -# 默认环境 -DEFAULT_ENV="local" -ENV=${1:-$DEFAULT_ENV} - -echo "==========================================" -echo "情感博物馆微服务启动脚本" -echo "启动环境: $ENV" -echo "==========================================" - -# 检查基础服务 -check_services() { - echo "📊 检查基础服务..." - - if ! nc -z localhost 3306; then - echo "❌ MySQL服务未启动,请先启动MySQL服务" - echo "可以使用: brew services start mysql" - exit 1 - fi - - if ! nc -z localhost 6379; then - echo "❌ Redis服务未启动,请先启动Redis服务" - echo "可以使用: brew services start redis" - exit 1 - fi - - echo "✅ 基础服务检查通过" -} - -# 启动服务函数 -start_service() { - local service_name=$1 - local port=$2 - local description=$3 - - echo "🚀 启动 $description ($service_name:$port)..." - - cd $service_name - - # 检查端口是否被占用 - if lsof -Pi :$port -sTCP:LISTEN -t >/dev/null ; then - echo "⚠️ 端口 $port 已被占用,跳过 $service_name" - cd .. - return - fi - - # 编译项目 - echo "📦 编译 $service_name..." - mvn clean package -DskipTests -q - - if [ $? -ne 0 ]; then - echo "❌ $service_name 编译失败" - cd .. - return - fi - - # 启动服务 - echo "🔄 启动 $service_name (环境: $ENV)..." - nohup java -jar -Dspring.profiles.active=$ENV target/$service_name-1.0.0.jar > ../logs/$service_name-$ENV.log 2>&1 & - - # 记录PID - echo $! > ../logs/$service_name.pid - - echo "✅ $service_name 启动完成,PID: $!" - echo "📋 日志文件: logs/$service_name-$ENV.log" - - cd .. - - # 等待服务启动 - sleep 3 -} - -# 创建日志目录 -mkdir -p logs - -# 检查基础服务 -check_services - -# 服务列表 -services=( - "emotion-user:19001:用户服务" - "emotion-ai:19002:AI服务" - "emotion-websocket:19007:WebSocket聊天服务" - "emotion-gateway:19000:网关服务" -) - -echo "🚀 开始启动核心服务 (环境: $ENV)..." - -# 按顺序启动服务 -for service_info in "${services[@]}"; do - IFS=':' read -r service_name port description <<< "$service_info" - start_service "$service_name" "$port" "$description" -done - -echo "" -echo "🎉 核心服务启动完成!" -echo "" -echo "📋 服务列表:" -for service_info in "${services[@]}"; do - IFS=':' read -r service_name port description <<< "$service_info" - echo " $description: http://localhost:$port" -done -echo "" -echo "📝 使用 './stop-services.sh' 停止所有服务" -echo "📝 查看日志: tail -f logs/服务名-$ENV.log" - -# 等待服务完全启动 -echo "" -echo "📊 等待服务完全启动..." -sleep 15 - -# 检查服务状态 -echo "📊 检查服务状态..." -for service_info in "${services[@]}"; do - IFS=':' read -r service_name port description <<< "$service_info" - - if curl -s http://localhost:$port/actuator/health >/dev/null 2>&1; then - echo "✅ $description 运行正常" - else - echo "⚠️ $description 可能未完全启动,请查看日志: tail -f logs/$service_name-$ENV.log" - fi -done - -echo "" -echo "🎉 启动完成!环境: $ENV" -echo "" -echo "使用方法:" -echo " ./start-services.sh # 使用默认local环境启动" -echo " ./start-services.sh dev # 使用dev环境启动" -echo " ./start-services.sh prod # 使用prod环境启动" diff --git a/backend/stop-services.sh b/backend/stop-services.sh deleted file mode 100755 index 5b86e8d..0000000 --- a/backend/stop-services.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/bash - -# 情绪博物馆微服务停止脚本 -# 作者: emotion-museum -# 日期: 2025-07-12 - -echo "==========================================" -echo "情绪博物馆微服务停止脚本" -echo "==========================================" - -# 停止服务函数 -stop_service() { - local service_name=$1 - local pid_file="logs/${service_name}.pid" - - if [ -f "$pid_file" ]; then - local pid=$(cat $pid_file) - if ps -p $pid > /dev/null 2>&1; then - echo "停止 $service_name 服务 (PID: $pid)..." - kill $pid - - # 等待进程结束 - local count=0 - while [ $count -lt 10 ]; do - if ! ps -p $pid > /dev/null 2>&1; then - echo "$service_name 服务已停止" - rm -f $pid_file - return 0 - fi - sleep 1 - count=$((count + 1)) - done - - # 强制杀死进程 - echo "强制停止 $service_name 服务..." - kill -9 $pid 2>/dev/null - rm -f $pid_file - else - echo "$service_name 服务未运行" - rm -f $pid_file - fi - else - echo "$service_name 服务PID文件不存在" - fi -} - -# 停止所有微服务 -echo "开始停止微服务..." - -# 停止统计分析服务 -stop_service "emotion-stats" - -# 停止成就奖励服务 -stop_service "emotion-reward" - -# 停止地图探索服务 -stop_service "emotion-explore" - -# 停止成长课题服务 -stop_service "emotion-growth" - -# 停止情绪记录服务 -stop_service "emotion-record" - -# 停止AI对话服务 -stop_service "emotion-ai" - -# 停止WebSocket聊天服务 -stop_service "emotion-websocket" - -# 停止用户服务 -stop_service "emotion-user" - -# 停止网关服务 -stop_service "emotion-gateway" - -# 清理可能残留的Java进程 -echo "清理残留进程..." -pkill -f "emotion-gateway" -pkill -f "emotion-user" -pkill -f "emotion-ai" -pkill -f "emotion-websocket" -pkill -f "emotion-record" -pkill -f "emotion-growth" -pkill -f "emotion-explore" -pkill -f "emotion-reward" -pkill -f "emotion-stats" - -echo "" -echo "==========================================" -echo "所有微服务已停止!" -echo "==========================================" diff --git a/backend/test-auth.sh b/backend/test-auth.sh deleted file mode 100755 index f6ac259..0000000 --- a/backend/test-auth.sh +++ /dev/null @@ -1,90 +0,0 @@ -#!/bin/bash - -# 认证功能测试脚本 -# 用于测试emotion-auth模块的认证功能 - -BASE_URL="http://localhost:19000/api/auth" -CONTENT_TYPE="Content-Type: application/json" - -echo "=========================================" -echo "开始测试emotion-auth模块认证功能" -echo "=========================================" - -# 1. 测试获取验证码 -echo "1. 测试获取验证码..." -CAPTCHA_RESPONSE=$(curl -s -X GET "${BASE_URL}/../captcha/generate") -echo "验证码响应: $CAPTCHA_RESPONSE" - -# 提取验证码ID(假设返回JSON格式) -CAPTCHA_ID=$(echo $CAPTCHA_RESPONSE | grep -o '"key":"[^"]*"' | cut -d'"' -f4) -echo "验证码ID: $CAPTCHA_ID" - -# 2. 测试用户注册 -echo -e "\n2. 测试用户注册..." -REGISTER_DATA='{ - "account": "testuser001", - "password": "123456", - "confirmPassword": "123456", - "email": "test@example.com", - "captcha": "1234", - "captchaId": "'$CAPTCHA_ID'" -}' - -REGISTER_RESPONSE=$(curl -s -X POST "${BASE_URL}/register" \ - -H "$CONTENT_TYPE" \ - -d "$REGISTER_DATA") -echo "注册响应: $REGISTER_RESPONSE" - -# 3. 测试用户登录 -echo -e "\n3. 测试用户登录..." -LOGIN_DATA='{ - "account": "testuser001", - "password": "123456", - "captcha": "1234", - "captchaId": "'$CAPTCHA_ID'" -}' - -LOGIN_RESPONSE=$(curl -s -X POST "${BASE_URL}/login" \ - -H "$CONTENT_TYPE" \ - -d "$LOGIN_DATA") -echo "登录响应: $LOGIN_RESPONSE" - -# 提取访问Token -ACCESS_TOKEN=$(echo $LOGIN_RESPONSE | grep -o '"accessToken":"[^"]*"' | cut -d'"' -f4) -echo "访问Token: $ACCESS_TOKEN" - -# 4. 测试获取用户信息 -if [ ! -z "$ACCESS_TOKEN" ]; then - echo -e "\n4. 测试获取用户信息..." - USER_INFO_RESPONSE=$(curl -s -X GET "${BASE_URL}/user-info" \ - -H "$CONTENT_TYPE" \ - -H "Authorization: Bearer $ACCESS_TOKEN") - echo "用户信息响应: $USER_INFO_RESPONSE" -fi - -# 5. 测试验证Token -if [ ! -z "$ACCESS_TOKEN" ]; then - echo -e "\n5. 测试验证Token..." - VALIDATE_RESPONSE=$(curl -s -X GET "${BASE_URL}/validate-token" \ - -H "$CONTENT_TYPE" \ - -H "Authorization: Bearer $ACCESS_TOKEN") - echo "Token验证响应: $VALIDATE_RESPONSE" -fi - -# 6. 测试检查账号是否存在 -echo -e "\n6. 测试检查账号是否存在..." -CHECK_ACCOUNT_RESPONSE=$(curl -s -X GET "${BASE_URL}/check-account?account=testuser001") -echo "检查账号响应: $CHECK_ACCOUNT_RESPONSE" - -# 7. 测试用户登出 -if [ ! -z "$ACCESS_TOKEN" ]; then - echo -e "\n7. 测试用户登出..." - LOGOUT_RESPONSE=$(curl -s -X POST "${BASE_URL}/logout?userId=test-user-id" \ - -H "$CONTENT_TYPE" \ - -H "Authorization: Bearer $ACCESS_TOKEN") - echo "登出响应: $LOGOUT_RESPONSE" -fi - -echo -e "\n=========================================" -echo "认证功能测试完成" -echo "=========================================" diff --git a/backend/update-nacos-config.sh b/backend/update-nacos-config.sh deleted file mode 100755 index c5f1196..0000000 --- a/backend/update-nacos-config.sh +++ /dev/null @@ -1,255 +0,0 @@ -#!/bin/bash - -# ============================================================================ -# 批量更新所有微服务的Nacos配置 -# 为每个服务创建本地、测试、生产环境的配置文件 -# ============================================================================ - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}批量更新微服务Nacos配置${NC}" -echo -e "${BLUE}===========================================${NC}" - -# 服务配置 -SERVICES="emotion-user:19001 emotion-ai:19002 emotion-record:19003 emotion-growth:19004 emotion-explore:19005 emotion-reward:19006 emotion-websocket:19007 emotion-stats:19008" - -# 生成本地环境配置 -generate_local_config() { - local service_name=$1 - local port=$2 - - cat > "backend/${service_name}/src/main/resources/application-local.yml" << EOF -# 本地开发环境配置 - -spring: - cloud: - nacos: - discovery: - server-addr: localhost:8848 - namespace: - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos - metadata: - version: 1.0.0 - zone: local - register-enabled: true - ephemeral: true - cluster-name: DEFAULT - service: \${spring.application.name} - weight: 1 - heart-beat-interval: 5000 - heart-beat-timeout: 15000 - ip-delete-timeout: 30000 - config: - server-addr: localhost:8848 - namespace: - group: DEFAULT_GROUP - file-extension: yml - enabled: false - username: nacos - password: nacos - - # 数据源配置 - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: root - password: 123456 - - # Redis配置 - data: - redis: - host: localhost - port: 6379 - password: - database: 0 - -# 日志配置 -logging: - level: - com.emotionmuseum: debug - com.baomidou.mybatisplus: debug - com.alibaba.nacos: info - file: - name: logs/${service_name}-local.log -EOF -} - -# 生成测试环境配置 -generate_test_config() { - local service_name=$1 - local port=$2 - - cat > "backend/${service_name}/src/main/resources/application-test.yml" << EOF -# 测试环境配置 - -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: test - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos - metadata: - version: 1.0.0 - zone: test - register-enabled: true - ephemeral: true - cluster-name: DEFAULT - service: \${spring.application.name} - weight: 1 - heart-beat-interval: 5000 - heart-beat-timeout: 15000 - ip-delete-timeout: 30000 - config: - server-addr: 47.111.10.27:8848 - namespace: test - group: DEFAULT_GROUP - file-extension: yml - enabled: false - username: nacos - password: nacos - - # 数据源配置 - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://47.111.10.27:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: root - password: EmotionMuseum2025*# - - # Redis配置 - data: - redis: - host: 47.111.10.27 - port: 6379 - password: EmotionMuseum2025*# - database: 0 - -# 日志配置 -logging: - level: - com.emotionmuseum: info - com.baomidou.mybatisplus: info - com.alibaba.nacos: warn - file: - name: logs/${service_name}-test.log -EOF -} - -# 生成生产环境配置 -generate_prod_config() { - local service_name=$1 - local port=$2 - - cat > "backend/${service_name}/src/main/resources/application-prod.yml" << EOF -# 生产环境配置 - -spring: - cloud: - nacos: - discovery: - server-addr: 47.111.10.27:8848 - namespace: prod - group: DEFAULT_GROUP - enabled: true - username: nacos - password: nacos - metadata: - version: 1.0.0 - zone: prod - register-enabled: true - ephemeral: true - cluster-name: DEFAULT - service: \${spring.application.name} - weight: 1 - heart-beat-interval: 5000 - heart-beat-timeout: 15000 - ip-delete-timeout: 30000 - config: - server-addr: 47.111.10.27:8848 - namespace: prod - group: DEFAULT_GROUP - file-extension: yml - enabled: false - username: nacos - password: nacos - - # 数据源配置 - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://47.111.10.27:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: root - password: EmotionMuseum2025*# - - # Redis配置 - data: - redis: - host: 47.111.10.27 - port: 6379 - password: EmotionMuseum2025*# - database: 0 - -# 日志配置 -logging: - level: - com.emotionmuseum: warn - com.baomidou.mybatisplus: warn - com.alibaba.nacos: error - file: - name: logs/${service_name}-prod.log -EOF -} - -# 处理每个服务 -for service_info in $SERVICES; do - service_name=$(echo $service_info | cut -d: -f1) - port=$(echo $service_info | cut -d: -f2) - - echo -e "${YELLOW}处理服务: $service_name (端口: $port)${NC}" - - # 检查服务目录是否存在 - if [ ! -d "backend/$service_name" ]; then - echo -e "${RED}❌ 服务目录不存在: backend/$service_name${NC}" - continue - fi - - # 创建resources目录(如果不存在) - mkdir -p "backend/$service_name/src/main/resources" - - # 生成配置文件 - echo " 生成本地环境配置..." - generate_local_config "$service_name" "$port" - - echo " 生成测试环境配置..." - generate_test_config "$service_name" "$port" - - echo " 生成生产环境配置..." - generate_prod_config "$service_name" "$port" - - echo -e "${GREEN}✅ $service_name 配置文件生成完成${NC}" -done - -echo "" -echo -e "${BLUE}===========================================${NC}" -echo -e "${GREEN}✅ 所有服务的Nacos配置更新完成!${NC}" -echo -e "${BLUE}===========================================${NC}" - -echo "" -echo -e "${YELLOW}配置说明:${NC}" -echo -e "1. 本地环境: localhost:8848, 无命名空间" -echo -e "2. 测试环境: 47.111.10.27:8848, test命名空间" -echo -e "3. 生产环境: 47.111.10.27:8848, prod命名空间" -echo "" -echo -e "${YELLOW}使用方法:${NC}" -echo -e "启动时指定环境: ${GREEN}--spring.profiles.active=local|test|prod${NC}" diff --git a/backend/update-nacos-passwords.sh b/backend/update-nacos-passwords.sh deleted file mode 100755 index 0960ad8..0000000 --- a/backend/update-nacos-passwords.sh +++ /dev/null @@ -1,157 +0,0 @@ -#!/bin/bash - -# ============================================================================ -# 批量更新所有微服务的Nacos密码配置 -# 本地环境: Peanut2817*# -# 测试和生产环境: EmotionMuseum2025 -# ============================================================================ - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}批量更新微服务Nacos密码配置${NC}" -echo -e "${BLUE}===========================================${NC}" - -# 服务列表 -SERVICES="emotion-user emotion-ai emotion-record emotion-growth emotion-explore emotion-reward emotion-websocket emotion-stats" - -# 更新本地环境密码 -update_local_password() { - local service_name=$1 - local config_file="backend/${service_name}/src/main/resources/application-local.yml" - - if [ ! -f "$config_file" ]; then - echo -e "${RED} ❌ 配置文件不存在: $config_file${NC}" - return 1 - fi - - # 使用sed替换密码 - sed -i.bak 's/password: nacos$/password: Peanut2817*#/g' "$config_file" - - # 检查是否替换成功 - if grep -q "password: Peanut2817*#" "$config_file"; then - echo -e "${GREEN} ✅ 本地环境密码更新成功${NC}" - rm -f "${config_file}.bak" - return 0 - else - echo -e "${RED} ❌ 本地环境密码更新失败${NC}" - return 1 - fi -} - -# 更新测试环境密码 -update_test_password() { - local service_name=$1 - local config_file="backend/${service_name}/src/main/resources/application-test.yml" - - if [ ! -f "$config_file" ]; then - echo -e "${RED} ❌ 配置文件不存在: $config_file${NC}" - return 1 - fi - - # 使用sed替换密码 - sed -i.bak 's/password: nacos$/password: EmotionMuseum2025/g' "$config_file" - - # 检查是否替换成功 - if grep -q "password: EmotionMuseum2025" "$config_file"; then - echo -e "${GREEN} ✅ 测试环境密码更新成功${NC}" - rm -f "${config_file}.bak" - return 0 - else - echo -e "${RED} ❌ 测试环境密码更新失败${NC}" - return 1 - fi -} - -# 更新生产环境密码 -update_prod_password() { - local service_name=$1 - local config_file="backend/${service_name}/src/main/resources/application-prod.yml" - - if [ ! -f "$config_file" ]; then - echo -e "${RED} ❌ 配置文件不存在: $config_file${NC}" - return 1 - fi - - # 使用sed替换密码 - sed -i.bak 's/password: nacos$/password: EmotionMuseum2025/g' "$config_file" - - # 检查是否替换成功 - if grep -q "password: EmotionMuseum2025" "$config_file"; then - echo -e "${GREEN} ✅ 生产环境密码更新成功${NC}" - rm -f "${config_file}.bak" - return 0 - else - echo -e "${RED} ❌ 生产环境密码更新失败${NC}" - return 1 - fi -} - -# 统计结果 -total_services=0 -success_services=0 -failed_services=0 - -# 处理每个服务 -for service_name in $SERVICES; do - echo -e "${YELLOW}更新服务: $service_name${NC}" - total_services=$((total_services + 1)) - - # 检查服务目录是否存在 - if [ ! -d "backend/$service_name" ]; then - echo -e "${RED} ❌ 服务目录不存在: backend/$service_name${NC}" - failed_services=$((failed_services + 1)) - continue - fi - - # 更新各环境密码 - service_success=true - - if ! update_local_password "$service_name"; then - service_success=false - fi - - if ! update_test_password "$service_name"; then - service_success=false - fi - - if ! update_prod_password "$service_name"; then - service_success=false - fi - - if [ "$service_success" = true ]; then - echo -e "${GREEN} ✅ $service_name 密码更新完成${NC}" - success_services=$((success_services + 1)) - else - echo -e "${RED} ❌ $service_name 密码更新失败${NC}" - failed_services=$((failed_services + 1)) - fi - - echo "" -done - -# 显示统计结果 -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}密码更新结果统计${NC}" -echo -e "${BLUE}===========================================${NC}" -echo -e "总服务数: ${BLUE}$total_services${NC}" -echo -e "更新成功: ${GREEN}$success_services${NC}" -echo -e "更新失败: ${RED}$failed_services${NC}" - -if [ $failed_services -eq 0 ]; then - echo -e "${GREEN}🎉 所有服务密码更新完成!${NC}" - echo "" - echo -e "${YELLOW}密码配置:${NC}" - echo -e "本地环境: ${GREEN}Peanut2817*#${NC}" - echo -e "测试环境: ${GREEN}EmotionMuseum2025${NC}" - echo -e "生产环境: ${GREEN}EmotionMuseum2025${NC}" - exit 0 -else - echo -e "${RED}❌ 有 $failed_services 个服务密码更新失败${NC}" - exit 1 -fi diff --git a/backend/verify-database-script.sql b/backend/verify-database-script.sql deleted file mode 100644 index 7cd130f..0000000 --- a/backend/verify-database-script.sql +++ /dev/null @@ -1,81 +0,0 @@ --- ============================================================================ --- 数据库脚本验证查询 --- 用于验证 mysql_emotion_museum_final.sql 执行后的表结构 --- ============================================================================ - --- 验证数据库是否存在 -SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'emotion_museum'; - --- 验证所有表是否创建成功 -SELECT TABLE_NAME, TABLE_COMMENT -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum' -ORDER BY TABLE_NAME; - --- 验证conversation表的字段结构(重点验证新增字段) -SELECT - COLUMN_NAME, - DATA_TYPE, - IS_NULLABLE, - COLUMN_DEFAULT, - COLUMN_COMMENT -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY ORDINAL_POSITION; - --- 验证conversation表的索引 -SELECT - INDEX_NAME, - COLUMN_NAME, - NON_UNIQUE -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY INDEX_NAME, SEQ_IN_INDEX; - --- 验证新增字段是否存在 -SELECT - CASE - WHEN COUNT(*) = 9 THEN '✅ 所有新增字段都存在' - ELSE CONCAT('❌ 缺少字段,只找到 ', COUNT(*), ' 个,应该是 9 个') - END AS validation_result -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND COLUMN_NAME IN ( - 'user_type', 'emotion_trend', 'keywords', 'ai_insights', - 'confidence', 'client_ip', 'user_agent', 'summary', 'tags' - ); - --- 验证新增索引是否存在 -SELECT - CASE - WHEN COUNT(*) = 4 THEN '✅ 所有新增索引都存在' - ELSE CONCAT('❌ 缺少索引,只找到 ', COUNT(*), ' 个,应该是 4 个') - END AS index_validation_result -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND INDEX_NAME IN ( - 'idx_conversation_user_type', - 'idx_conversation_emotion_trend', - 'idx_conversation_confidence', - 'idx_conversation_client_ip' - ); - --- 统计总表数 -SELECT - CASE - WHEN COUNT(*) = 15 THEN '✅ 所有15个表都创建成功' - ELSE CONCAT('❌ 表数量不正确,只有 ', COUNT(*), ' 个表,应该是 15 个') - END AS table_count_result -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum'; - --- 统计总索引数(conversation表) -SELECT - CONCAT('conversation表共有 ', COUNT(DISTINCT INDEX_NAME), ' 个索引') AS conversation_index_count -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation'; diff --git a/backend/verify-modules.sh b/backend/verify-modules.sh deleted file mode 100755 index d7b9f27..0000000 --- a/backend/verify-modules.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -echo "=== 验证后端模块启动状态 ===" - -modules=( - "emotion-auth:19003" - "emotion-record:19004" - "emotion-growth:19005" - "emotion-explore:19006" - "emotion-reward:19007" - "emotion-stats:19008" - "emotion-common:无端口" -) - -for module_info in "${modules[@]}"; do - module=$(echo $module_info | cut -d: -f1) - port=$(echo $module_info | cut -d: -f2) - - echo "--- 验证模块: $module ---" - - if [ ! -d "$module" ]; then - echo "❌ 模块目录不存在: $module" - continue - fi - - cd $module - - # 检查是否有主类 - if [ "$module" = "emotion-common" ]; then - echo "✅ emotion-common 是公共模块,无需启动" - cd .. - continue - fi - - # 尝试编译 - echo "编译模块..." - mvn compile -q - if [ $? -ne 0 ]; then - echo "❌ 编译失败: $module" - cd .. - continue - fi - - # 检查主类是否存在 - main_class_found=$(find src/main/java -name "*Application.java" | wc -l) - if [ $main_class_found -eq 0 ]; then - echo "❌ 未找到主类: $module" - cd .. - continue - fi - - echo "✅ 模块 $module 编译成功,具有主类" - cd .. -done - -echo "=== 验证完成 ===" diff --git a/backend/verify-nacos-config.sh b/backend/verify-nacos-config.sh deleted file mode 100755 index b86c1b3..0000000 --- a/backend/verify-nacos-config.sh +++ /dev/null @@ -1,144 +0,0 @@ -#!/bin/bash - -# ============================================================================ -# 验证所有微服务的Nacos配置 -# 检查配置文件是否正确生成,端口是否正确配置 -# ============================================================================ - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}验证微服务Nacos配置${NC}" -echo -e "${BLUE}===========================================${NC}" - -# 服务配置 -SERVICES="emotion-gateway:19000 emotion-user:19001 emotion-ai:19002 emotion-record:19003 emotion-growth:19004 emotion-explore:19005 emotion-reward:19006 emotion-websocket:19007 emotion-stats:19008" - -# 验证配置文件 -verify_config_file() { - local service_name=$1 - local port=$2 - local env=$3 - local config_file="backend/${service_name}/src/main/resources/application-${env}.yml" - - if [ ! -f "$config_file" ]; then - echo -e "${RED} ❌ 配置文件不存在: $config_file${NC}" - return 1 - fi - - # 检查Nacos配置 - if ! grep -q "nacos:" "$config_file"; then - echo -e "${RED} ❌ 缺少Nacos配置${NC}" - return 1 - fi - - # 检查服务发现配置 - if ! grep -q "discovery:" "$config_file"; then - echo -e "${RED} ❌ 缺少服务发现配置${NC}" - return 1 - fi - - # 检查数据源配置(除了网关) - if [ "$service_name" != "emotion-gateway" ]; then - if ! grep -q "datasource:" "$config_file"; then - echo -e "${RED} ❌ 缺少数据源配置${NC}" - return 1 - fi - fi - - # 检查Redis配置 - if ! grep -q "redis:" "$config_file"; then - echo -e "${RED} ❌ 缺少Redis配置${NC}" - return 1 - fi - - echo -e "${GREEN} ✅ $env 环境配置正确${NC}" - return 0 -} - -# 验证主配置文件端口 -verify_main_config() { - local service_name=$1 - local expected_port=$2 - local main_config="backend/${service_name}/src/main/resources/application.yml" - - if [ ! -f "$main_config" ]; then - echo -e "${RED} ❌ 主配置文件不存在: $main_config${NC}" - return 1 - fi - - # 检查端口配置 - local actual_port=$(grep "port:" "$main_config" | head -1 | awk '{print $2}') - if [ "$actual_port" != "$expected_port" ]; then - echo -e "${RED} ❌ 端口配置错误: 期望 $expected_port, 实际 $actual_port${NC}" - return 1 - fi - - echo -e "${GREEN} ✅ 主配置端口正确: $expected_port${NC}" - return 0 -} - -# 统计结果 -total_services=0 -success_services=0 -failed_services=0 - -# 处理每个服务 -for service_info in $SERVICES; do - service_name=$(echo $service_info | cut -d: -f1) - port=$(echo $service_info | cut -d: -f2) - - echo -e "${YELLOW}验证服务: $service_name (端口: $port)${NC}" - total_services=$((total_services + 1)) - - # 检查服务目录是否存在 - if [ ! -d "backend/$service_name" ]; then - echo -e "${RED} ❌ 服务目录不存在: backend/$service_name${NC}" - failed_services=$((failed_services + 1)) - continue - fi - - # 验证主配置文件 - service_success=true - if ! verify_main_config "$service_name" "$port"; then - service_success=false - fi - - # 验证环境配置文件 - for env in local test prod; do - if ! verify_config_file "$service_name" "$port" "$env"; then - service_success=false - fi - done - - if [ "$service_success" = true ]; then - echo -e "${GREEN} ✅ $service_name 所有配置验证通过${NC}" - success_services=$((success_services + 1)) - else - echo -e "${RED} ❌ $service_name 配置验证失败${NC}" - failed_services=$((failed_services + 1)) - fi - - echo "" -done - -# 显示统计结果 -echo -e "${BLUE}===========================================${NC}" -echo -e "${BLUE}验证结果统计${NC}" -echo -e "${BLUE}===========================================${NC}" -echo -e "总服务数: ${BLUE}$total_services${NC}" -echo -e "验证成功: ${GREEN}$success_services${NC}" -echo -e "验证失败: ${RED}$failed_services${NC}" - -if [ $failed_services -eq 0 ]; then - echo -e "${GREEN}🎉 所有服务配置验证通过!${NC}" - exit 0 -else - echo -e "${RED}❌ 有 $failed_services 个服务配置存在问题${NC}" - exit 1 -fi diff --git a/backend/后端模块验证报告.md b/backend/后端模块验证报告.md deleted file mode 100644 index ed5fda5..0000000 --- a/backend/后端模块验证报告.md +++ /dev/null @@ -1,85 +0,0 @@ -# 后端模块启动验证报告 - -## 验证时间 -2025-07-16 10:38 - -## 验证方法 -使用 `mvn spring-boot:run -Dspring-boot.run.arguments="--spring.profiles.active=local"` 命令逐个验证每个模块 - -## 验证结果 - -### ✅ 成功启动的模块 (7个) - -| 模块名称 | 端口 | 状态 | 健康检查 | 备注 | -|---------|------|------|----------|------| -| emotion-user | 19001 | ✅ 启动成功 | ✅ UP | 用户服务,包含认证功能 | -| emotion-ai | 19002 | ✅ 启动成功 | ✅ UP | AI对话服务,集成Coze API | -| emotion-gateway | 19000 | ✅ 启动成功 | ✅ UP | 网关服务,路由配置正确 | -| emotion-record | 19003 | ✅ 启动成功 | ✅ UP | 记录服务 | -| emotion-growth | 19004 | ✅ 启动成功 | ✅ UP | 成长服务 | -| emotion-explore | - | ✅ 编译成功 | - | 探索服务,有主类 | -| emotion-reward | - | ✅ 编译成功 | - | 奖励服务,有主类 | -| emotion-stats | - | ✅ 编译成功 | - | 统计服务,有主类 | - -### ⚠️ 特殊情况的模块 (2个) - -| 模块名称 | 状态 | 说明 | -|---------|------|------| -| emotion-auth | ⚠️ 无主类 | 认证模块,可能是公共库而非独立服务 | -| emotion-common | ✅ 公共模块 | 公共工具模块,无需独立启动 | - -## 详细验证信息 - -### 核心服务验证 -1. **emotion-user (19001)** - - 启动时间: ~7秒 - - 数据库连接: ✅ MySQL - - Redis连接: ✅ - - 安全配置: ✅ JWT认证 - - 循环依赖问题: ✅ 已解决 - -2. **emotion-ai (19002)** - - 启动时间: ~8秒 - - 数据库连接: ✅ MySQL - - Redis连接: ✅ - - Coze API配置: ✅ - -3. **emotion-gateway (19000)** - - 启动时间: ~13秒 - - 路由配置: ✅ 4个路由规则 - - 负载均衡: ✅ Spring Cloud LoadBalancer - - 限流配置: ✅ Sentinel - -### 业务服务验证 -4. **emotion-record (19003)** - - 启动时间: ~5秒 - - 数据库连接: ✅ MySQL - - Redis连接: ✅ - -5. **emotion-growth (19004)** - - 启动时间: ~4秒 - - 数据库连接: ✅ MySQL - - Redis连接: ✅ - -## 共同特征 -- 所有服务都使用Spring Boot 3.0.2 -- 所有服务都集成了Nacos配置中心 -- 所有服务都支持多环境配置(local/dev/prod) -- 所有服务都包含Actuator健康检查端点 -- 所有服务都使用MySQL + Redis -- 所有服务都支持热重载(DevTools) - -## 启动命令验证 -✅ 所有可启动的模块都支持标准的Maven Spring Boot启动命令: -```bash -mvn spring-boot:run -Dspring-boot.run.arguments="--spring.profiles.active=local" -``` - -## 总结 -- **总模块数**: 10个 -- **可独立启动**: 8个 -- **验证成功**: 5个完整验证 + 3个编译验证 -- **公共模块**: 2个 -- **成功率**: 100% (所有预期可启动的模块都能正常启动) - -所有后端模块都可以通过mvn spring-boot:run正常启动! diff --git a/backend/数据库字段更新总结.md b/backend/数据库字段更新总结.md deleted file mode 100644 index c338a02..0000000 --- a/backend/数据库字段更新总结.md +++ /dev/null @@ -1,111 +0,0 @@ -# 数据库字段更新总结 - -## 📋 更新概述 - -**更新时间**: 2025-07-13 -**更新版本**: v3.1 -**更新原因**: 修复AI模块与数据库字段不匹配问题 - -## 🔧 问题背景 - -在启动AI服务时遇到以下错误: -``` -Unknown column 'user_type' in 'field list' -``` - -**根本原因**: Java实体类 `Conversation.java` 中定义的字段与数据库表 `conversation` 的字段不匹配。 - -## 📊 新增字段详情 - -### conversation表新增字段 - -| 字段名 | 数据类型 | 默认值 | 说明 | -|--------|----------|--------|------| -| `user_type` | VARCHAR(20) | 'registered' | 用户类型: registered-注册用户, guest-访客用户 | -| `emotion_trend` | VARCHAR(50) | NULL | 情绪趋势 | -| `keywords` | JSON | NULL | 关键词 | -| `ai_insights` | TEXT | NULL | AI洞察 | -| `confidence` | DECIMAL(3,2) | NULL | 分析置信度 | -| `client_ip` | VARCHAR(45) | NULL | 客户端IP地址 (支持IPv6) | -| `user_agent` | TEXT | NULL | 用户代理信息 | -| `summary` | TEXT | NULL | 对话摘要 | -| `tags` | JSON | NULL | 标签 | - -### 新增索引 - -| 索引名 | 字段 | 用途 | -|--------|------|------| -| `idx_conversation_user_type` | user_type | 按用户类型查询优化 | -| `idx_conversation_emotion_trend` | emotion_trend | 按情绪趋势查询优化 | -| `idx_conversation_confidence` | confidence | 按置信度查询优化 | -| `idx_conversation_client_ip` | client_ip | 按IP地址查询优化 | - -## 🛠️ 执行的操作 - -### 1. 临时修复(已执行) -通过ALTER TABLE语句临时添加缺失字段: -```sql -ALTER TABLE conversation ADD COLUMN user_type VARCHAR(20) NOT NULL DEFAULT 'registered' COMMENT '用户类型: registered-注册用户, guest-访客用户' AFTER user_id; --- ... 其他字段 -``` - -### 2. 脚本更新(已完成) -更新 `mysql_emotion_museum_final.sql` 脚本: -- ✅ 在CREATE TABLE语句中添加所有新字段 -- ✅ 添加相应的索引定义 -- ✅ 更新字段注释和说明 - -### 3. 服务重启(已完成) -- ✅ 重启AI服务以获取新的数据库连接 -- ✅ 验证服务正常启动 - -## ✅ 验证结果 - -### 服务状态 -- ✅ Gateway服务 (端口9000) - 运行正常 -- ✅ AI服务 (端口9002) - 运行正常,字段问题已解决 -- ✅ Web前端 (端口3000) - 运行正常 - -### 数据库验证 -可以使用以下脚本验证更新结果: -```bash -mysql -u root -p emotion_museum < verify-database-script.sql -``` - -## 🔄 影响范围 - -### 正面影响 -- ✅ 修复AI服务启动错误 -- ✅ 支持访客用户功能 -- ✅ 增强对话数据分析能力 -- ✅ 提供更丰富的用户行为追踪 - -### 兼容性 -- ✅ 向后兼容:新字段都允许NULL或有默认值 -- ✅ 现有数据不受影响 -- ✅ 现有API接口继续正常工作 - -## 📝 后续建议 - -### 开发流程改进 -1. **字段同步检查**: 在添加实体类字段时,同步更新数据库脚本 -2. **自动化测试**: 增加数据库字段一致性检查 -3. **版本管理**: 建立数据库版本管理机制 - -### 监控建议 -1. 监控新字段的使用情况 -2. 关注访客用户的数据增长 -3. 定期检查索引性能 - -## 🔗 相关文件 - -- `backend/mysql_emotion_museum_final.sql` - 更新后的数据库脚本 -- `backend/verify-database-script.sql` - 验证脚本 -- `backend/数据库脚本版本说明.md` - 版本说明文档 -- `backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/Conversation.java` - 实体类 - ---- - -**更新完成时间**: 2025-07-13 10:50 -**更新状态**: ✅ 完成 -**验证状态**: ✅ 通过 diff --git a/backend/数据库无外键设计说明.md b/backend/数据库无外键设计说明.md deleted file mode 100644 index bf85d13..0000000 --- a/backend/数据库无外键设计说明.md +++ /dev/null @@ -1,181 +0,0 @@ -# 数据库无外键设计说明 - -## 📋 设计原则 - -### 🚫 不使用外键约束 -本项目采用无外键约束的数据库设计,通过应用层代码维护数据关联关系。 - -## 🎯 设计理由 - -### 1. 性能优化 -- **减少约束检查**: 数据库不需要在每次插入/更新时检查外键约束 -- **提高并发性**: 避免外键锁定导致的并发问题 -- **加快批量操作**: 大批量数据导入时无需考虑外键顺序 - -### 2. 开发灵活性 -- **表结构调整**: 修改表结构时不需要先删除外键约束 -- **数据迁移**: 数据迁移和同步更加简单 -- **测试便利**: 测试数据准备更加灵活 - -### 3. 分布式友好 -- **微服务架构**: 不同微服务可以独立管理自己的数据表 -- **数据分片**: 便于后期进行数据库分片和分布式部署 -- **跨库关联**: 支持跨数据库的数据关联 - -### 4. 维护简化 -- **避免级联问题**: 不会因为外键级联操作导致意外的数据删除 -- **减少死锁**: 降低因外键约束导致的数据库死锁概率 -- **简化备份恢复**: 数据备份和恢复时无需考虑外键依赖顺序 - -## 🔗 关联关系维护 - -### 代码层面维护 -通过业务代码确保数据一致性: - -```java -// 示例:创建对话时关联用户 -@Service -public class ConversationService { - - @Autowired - private UserService userService; - - @Autowired - private ConversationMapper conversationMapper; - - public Conversation createConversation(String userId, String title) { - // 1. 验证用户是否存在 - User user = userService.getById(userId); - if (user == null) { - throw new BusinessException("用户不存在"); - } - - // 2. 创建对话 - Conversation conversation = new Conversation(); - conversation.setUserId(userId); // 通过ID关联,不使用外键 - conversation.setTitle(title); - - conversationMapper.insert(conversation); - return conversation; - } -} -``` - -### 数据一致性保证 -1. **业务层验证**: 在业务逻辑中验证关联数据的存在性 -2. **事务管理**: 使用数据库事务确保操作的原子性 -3. **定期检查**: 定期运行数据一致性检查脚本 - -## 📊 表关联关系 - -### 主要关联关系 -``` -user (用户表) -├── conversation.user_id → user.id -├── emotion_record.user_id → user.id -├── community_post.user_id → user.id -└── user_stats.user_id → user.id - -conversation (对话表) -├── message.conversation_id → conversation.id -└── coze_api_call.conversation_id → conversation.id - -message (消息表) -├── emotion_analysis.message_id → message.id -└── coze_api_call.message_id → message.id - -community_post (社区帖子表) -└── comment.post_id → community_post.id - -growth_topic (成长课题表) -├── topic_interaction.topic_id → growth_topic.id -└── reward.topic_id → growth_topic.id - -achievement (成就表) -└── reward.achievement_id → achievement.id -``` - -### 关联字段命名规范 -- **外部ID字段**: 统一使用 `{table_name}_id` 格式 -- **主键字段**: 统一使用 `id` -- **数据类型**: 统一使用 `VARCHAR(36)` 雪花算法ID - -## 🛡️ 数据完整性保证 - -### 1. 应用层验证 -```java -// 删除用户前检查关联数据 -public void deleteUser(String userId) { - // 检查是否有关联的对话 - if (conversationService.countByUserId(userId) > 0) { - throw new BusinessException("用户存在关联对话,无法删除"); - } - - // 检查是否有关联的情绪记录 - if (emotionRecordService.countByUserId(userId) > 0) { - throw new BusinessException("用户存在情绪记录,无法删除"); - } - - userService.deleteById(userId); -} -``` - -### 2. 定期数据检查 -```sql --- 检查孤立的对话记录(用户不存在) -SELECT c.id, c.user_id -FROM conversation c -LEFT JOIN user u ON c.user_id = u.id -WHERE u.id IS NULL AND c.is_deleted = 0; - --- 检查孤立的消息记录(对话不存在) -SELECT m.id, m.conversation_id -FROM message m -LEFT JOIN conversation c ON m.conversation_id = c.id -WHERE c.id IS NULL AND m.is_deleted = 0; -``` - -### 3. 软删除策略 -- 使用 `is_deleted` 字段标记删除状态 -- 保留历史数据,避免硬删除导致的关联数据问题 -- 定期清理真正需要删除的数据 - -## 🔧 最佳实践 - -### 1. 服务层设计 -- **单一职责**: 每个服务只管理自己的数据表 -- **接口调用**: 跨表查询通过服务接口调用 -- **缓存策略**: 合理使用缓存减少跨表查询 - -### 2. 查询优化 -- **索引设计**: 为关联字段创建合适的索引 -- **批量查询**: 使用 IN 查询减少数据库访问次数 -- **分页处理**: 大数据量查询时合理分页 - -### 3. 数据迁移 -- **脚本化**: 数据迁移操作脚本化,可重复执行 -- **验证机制**: 迁移后验证数据完整性 -- **回滚方案**: 准备数据回滚方案 - -## ⚠️ 注意事项 - -### 1. 开发规范 -- 严格按照关联关系进行数据操作 -- 删除数据前必须检查关联关系 -- 使用事务确保数据一致性 - -### 2. 监控告警 -- 监控孤立数据的产生 -- 定期检查数据一致性 -- 异常情况及时告警 - -### 3. 文档维护 -- 及时更新关联关系文档 -- 记录数据操作规范 -- 维护数据字典 - ---- - -**设计原则**: 简单、高效、可维护 -**实施策略**: 代码约束 + 定期检查 -**适用场景**: 微服务架构 + 高并发系统 diff --git a/backend/数据库脚本使用说明.md b/backend/数据库脚本使用说明.md deleted file mode 100644 index 3e1e3ed..0000000 --- a/backend/数据库脚本使用说明.md +++ /dev/null @@ -1,159 +0,0 @@ -# 数据库脚本使用说明 - -## 📋 脚本信息 - -- **脚本名称**: `mysql_emotion_museum_final.sql` -- **版本**: v3.0 Final (雪花算法主键版本) - 开发版本 -- **数据库类型**: MySQL 8.0+ -- **字符集**: utf8mb4 -- **主键类型**: VARCHAR(36) 使用雪花算法生成 -- **关联策略**: 无外键约束,通过代码中的ID字段关联 - -## ⚠️ 开发版本特性 - -### 🔄 DROP & CREATE 模式 -该脚本针对开发阶段优化,采用先删除再创建的策略: - -1. **数据库创建**: 使用 `CREATE DATABASE IF NOT EXISTS` -2. **表删除**: 先删除所有现有表 `DROP TABLE IF EXISTS` -3. **表创建**: 重新创建所有表结构 -4. **索引创建**: 创建所有优化索引 -5. **事务控制**: 使用事务确保原子性操作 - -### ⚠️ 重要警告 -- **数据丢失**: 每次执行都会删除所有现有数据 -- **仅限开发**: 此版本仅适用于开发环境 -- **表结构更新**: 确保表结构始终是最新的 -- **快速迭代**: 适合频繁调整表结构的开发阶段 - -## 🚀 使用方法 - -### 方法1: 命令行执行 -```bash -# 进入backend目录 -cd backend - -# 执行脚本(需要输入MySQL root密码) -mysql -u root -p < mysql_emotion_museum_final.sql -``` - -### 方法2: MySQL客户端执行 -```sql --- 连接到MySQL -mysql -u root -p - --- 执行脚本 -source /path/to/backend/mysql_emotion_museum_final.sql; -``` - -### 方法3: 图形化工具执行 -- 使用 MySQL Workbench、phpMyAdmin 等工具 -- 打开脚本文件并执行 - -## 📊 执行结果 - -### 成功执行后会显示: -1. **完成消息**: 确认部署成功 -2. **表统计**: 显示创建的表数量 -3. **表列表**: 显示所有创建的表及其注释 - -### 预期输出示例: -``` -message: Emotion Museum Database v3.0 Final (雪花算法主键版本) - 开发版本 deployment completed successfully! -completion_time: 2025-07-13 10:30:00 -description: All tables dropped and recreated with VARCHAR(36) primary keys. Development version - data will be lost on re-execution! - -total_tables: 15 - -table_name | comment | engine ---------------------|----------------|-------- -achievement | 成就表 | InnoDB -coze_api_call | Coze API调用表 | InnoDB -comment | 评论表 | InnoDB -community_post | 社区帖子表 | InnoDB -conversation | 对话表 | InnoDB -emotion_analysis | 情绪分析表 | InnoDB -emotion_record | 情绪记录表 | InnoDB -growth_topic | 成长课题表 | InnoDB -guest_user | 访客用户表 | InnoDB -location_pin | 地点标记表 | InnoDB -message | 消息表 | InnoDB -reward | 奖励表 | InnoDB -topic_interaction | 课题互动表 | InnoDB -user | 用户表 | InnoDB -user_stats | 用户统计表 | InnoDB -``` - -## 🔧 脚本内容 - -### 创建的数据库表 (15个) -1. **user** - 用户表 -2. **conversation** - 对话表 -3. **message** - 消息表 -4. **coze_api_call** - Coze API调用表 -5. **emotion_analysis** - 情绪分析表 -6. **emotion_record** - 情绪记录表 -7. **growth_topic** - 成长课题表 -8. **topic_interaction** - 课题互动表 -9. **location_pin** - 地点标记表 -10. **community_post** - 社区帖子表 -11. **comment** - 评论表 -12. **achievement** - 成就表 -13. **reward** - 奖励表 -14. **guest_user** - 访客用户表 -15. **user_stats** - 用户统计表 - -### 创建的索引 (131个) -- 为所有表的关键字段创建了优化索引 -- 包括单列索引和复合索引 -- 针对查询性能进行了优化 - -## ⚠️ 注意事项 - -### 执行前检查 -1. **MySQL版本**: 确保使用MySQL 8.0+ -2. **权限**: 确保有创建数据库和表的权限 -3. **磁盘空间**: 确保有足够的磁盘空间 -4. **备份**: 如果是生产环境,建议先备份 - -### 重复执行说明 -- ⚠️ **数据丢失**: 每次执行都会删除所有现有数据 -- 🔄 **表重建**: 所有表都会被删除并重新创建 -- 📊 **结构更新**: 确保表结构始终是最新版本 -- 📝 **日志**: 建议保存执行日志以便排查问题 - -### 常见问题 -1. **权限不足**: 确保MySQL用户有足够权限 -2. **字符集问题**: 确保MySQL支持utf8mb4字符集 -3. **存储引擎**: 确保MySQL支持InnoDB存储引擎 -4. **数据备份**: 开发版本会删除数据,生产环境请谨慎使用 - -## 🧪 测试验证 - -### 验证脚本 -项目中包含测试脚本 `test-sql-repeatability.sql` 用于验证可重复执行性: - -```bash -mysql -u root -p < test-sql-repeatability.sql -``` - -### 验证步骤 -1. 首次执行主脚本 -2. 再次执行主脚本 -3. 检查表结构和数据完整性 -4. 验证索引是否正确创建 - -## 📞 技术支持 - -如果在执行过程中遇到问题: -1. 检查MySQL错误日志 -2. 确认MySQL版本和配置 -3. 验证用户权限设置 -4. 查看脚本执行输出 - ---- - -**更新时间**: 2025-07-13 -**脚本版本**: v3.0 Final - 开发版本 -**特性**: DROP & CREATE 模式 ⚠️ -**警告**: 会删除现有数据,仅限开发环境使用 diff --git a/backend/数据库脚本版本说明.md b/backend/数据库脚本版本说明.md deleted file mode 100644 index 6f63260..0000000 --- a/backend/数据库脚本版本说明.md +++ /dev/null @@ -1,153 +0,0 @@ -# 数据库脚本版本说明 - -## 📋 当前可用脚本 - -### 🔧 开发版本(当前使用) -- **文件名**: `mysql_emotion_museum_final.sql` -- **版本**: v3.0 Final - 开发版本 -- **特性**: DROP & CREATE 模式 -- **关联策略**: 无外键约束,代码层维护关联 -- **适用**: 开发环境 - -#### ⚠️ 开发版本特点 -- **先删除后创建**: 每次执行都会删除所有现有表 -- **数据丢失**: 会清空所有现有数据 -- **表结构最新**: 确保表结构始终是最新版本 -- **快速迭代**: 适合频繁调整表结构的开发阶段 - -#### 🚀 使用场景 -- ✅ 本地开发环境 -- ✅ 测试环境 -- ✅ 表结构调整频繁的开发阶段 -- ❌ 生产环境(会丢失数据) - -## 🔄 脚本执行流程 - -### 开发版本执行流程 -1. **设置环境**: 配置SQL模式和字符集 -2. **禁用外键检查**: 便于删除表 -3. **创建数据库**: 如果不存在则创建 -4. **删除现有表**: 按依赖关系顺序删除所有表 -5. **创建新表**: 重新创建所有15个表 -6. **创建索引**: 创建所有131个优化索引 -7. **重新启用外键检查**: 恢复外键约束 -8. **提交事务**: 确保原子性操作 - -## 📊 表结构信息 - -### 创建的表 (15个) -1. **user** - 用户表 -2. **conversation** - 对话表 -3. **message** - 消息表 -4. **coze_api_call** - Coze API调用表 -5. **emotion_analysis** - 情绪分析表 -6. **emotion_record** - 情绪记录表 -7. **growth_topic** - 成长课题表 -8. **topic_interaction** - 课题互动表 -9. **location_pin** - 地点标记表 -10. **community_post** - 社区帖子表 -11. **comment** - 评论表 -12. **achievement** - 成就表 -13. **reward** - 奖励表 -14. **guest_user** - 访客用户表 -15. **user_stats** - 用户统计表 - -### 索引统计 -- **总索引数**: 131个 -- **单列索引**: 主要字段的查询优化 -- **复合索引**: 多字段组合查询优化 -- **唯一索引**: 通过表定义的UNIQUE约束自动创建 - -## 🛠️ 使用方法 - -### 执行命令 -```bash -# 进入backend目录 -cd backend - -# 执行开发版本脚本 -mysql -u root -p < mysql_emotion_museum_final.sql -``` - -### 执行前检查 -- ✅ 确认是开发环境 -- ✅ 备份重要数据(如有) -- ✅ 确认MySQL版本 8.0+ -- ✅ 确认用户权限充足 - -## ⚠️ 重要提醒 - -### 数据安全 -- **开发版本会删除所有数据** -- **每次执行都是全新开始** -- **不适合有重要数据的环境** - -### 版本选择建议 -- **开发阶段**: 使用当前开发版本 -- **测试阶段**: 可以使用开发版本 -- **生产部署**: 需要创建生产安全版本 - -## 🔮 未来计划 - -### 生产版本特性(待开发) -- 使用 `CREATE TABLE IF NOT EXISTS` -- 保护现有数据不被删除 -- 支持增量更新和迁移 -- 包含数据迁移脚本 - -### 版本管理 -- 开发版本: 快速迭代,数据重置 -- 生产版本: 安全升级,数据保护 -- 迁移脚本: 版本间数据迁移 - -## 📞 技术支持 - -### 常见问题 -1. **执行失败**: 检查MySQL权限和版本 -2. **数据丢失**: 开发版本的正常行为 -3. **表结构错误**: 重新执行脚本即可修复 - -### 联系方式 -- 查看执行日志排查问题 -- 确认环境配置是否正确 -- 验证MySQL服务状态 - -## 📝 版本更新记录 - -### v3.1 (2025-07-13) - conversation表字段完善 -**🔧 重要更新:修复AI模块数据库字段不匹配问题** - -#### 新增字段 -- `user_type` VARCHAR(20) - 用户类型 (registered/guest) -- `emotion_trend` VARCHAR(50) - 情绪趋势 -- `keywords` JSON - 关键词 -- `ai_insights` TEXT - AI洞察 -- `confidence` DECIMAL(3,2) - 分析置信度 -- `client_ip` VARCHAR(45) - 客户端IP地址 (支持IPv6) -- `user_agent` TEXT - 用户代理信息 -- `summary` TEXT - 对话摘要 -- `tags` JSON - 标签 - -#### 新增索引 -- `idx_conversation_user_type` - 用户类型索引 -- `idx_conversation_emotion_trend` - 情绪趋势索引 -- `idx_conversation_confidence` - 分析置信度索引 -- `idx_conversation_client_ip` - 客户端IP索引 - -#### 解决问题 -- ✅ 修复AI服务启动时的 `Unknown column 'user_type'` 错误 -- ✅ 确保Java实体类与数据库表结构完全匹配 -- ✅ 支持访客用户和注册用户的区分管理 -- ✅ 增强对话数据的分析和统计能力 - -### v3.0 (2025-07-12) - 初始开发版本 -- 创建15个核心数据表 -- 实现雪花算法主键策略 -- 添加131个优化索引 -- 支持完整的情绪博物馆功能模块 - ---- - -**更新时间**: 2025-07-13 -**当前版本**: v3.1 - conversation表字段完善版本 -**状态**: 开发中 🚧 diff --git a/backend/数据库雪花算法主键实施总结.md b/backend/数据库雪花算法主键实施总结.md deleted file mode 100644 index 3795669..0000000 --- a/backend/数据库雪花算法主键实施总结.md +++ /dev/null @@ -1,168 +0,0 @@ -# 情绪博物馆数据库雪花算法主键实施总结 - -## 📋 任务完成情况 - -### ✅ 已完成任务 - -1. **收集和分析数据库相关文件** ✅ - - 扫描了项目中所有的数据库变更语句、实体类和相关配置文件 - - 分析了当前数据库结构和实体类继承关系 - -2. **生成终版数据库初始化脚本** ✅ - - 更新了 `backend/mysql_emotion_museum_final.sql` 为 v3.0 版本 - - 所有主键使用 VARCHAR(36) 类型,支持雪花算法生成的字符串ID - - 添加了缺失的 `guest_user` 表 - - 完善了所有表的索引配置 - -3. **实现雪花算法工具类** ✅ - - 创建了 `SnowflakeIdGenerator` 类,支持高性能ID生成 - - 创建了 `SnowflakeConfig` 配置类,支持自动机器ID分配 - - 实现了完整的测试用例,验证了并发安全性和唯一性 - -4. **更新EmotionMetaObjectHandler** ✅ - - 增加了主键自动填充逻辑 - - 当ID为空时自动使用雪花算法生成ID - - 保持了异常安全性,不影响业务逻辑 - -5. **更新BaseEntity和所有实体类** ✅ - - 更新了 `BaseEntity` 使用 `IdType.INPUT` 配置 - - 修复了 `GuestUser` 实体类,使其继承 `BaseEntity` - - 为所有模块创建了完整的实体类 - -6. **验证和测试** ✅ - - 项目编译成功,无语法错误 - - 雪花算法测试全部通过 - - 验证了ID生成的唯一性和并发安全性 - -## 🏗️ 架构改进 - -### 主键策略 -- **类型**: VARCHAR(36) → 避免前端JavaScript精度丢失 -- **生成**: 雪花算法 → 保证全局唯一性和高性能 -- **配置**: 自动机器ID分配 → 支持分布式部署 - -### 关联策略 -- **无外键约束**: 不使用数据库外键,避免复杂的约束管理 -- **代码关联**: 通过业务代码中的ID字段维护表间关联关系 -- **性能优化**: 减少数据库约束检查,提高插入和更新性能 -- **灵活性**: 便于数据迁移和表结构调整 - -### 数据库表结构 -- **15个核心表**: 覆盖用户、对话、情绪、成长、探索、奖励、统计等功能 -- **统一字段**: 所有表继承公共字段(id, create_by, create_time, update_by, update_time, is_deleted, remarks) -- **完整索引**: 针对查询场景优化的索引配置 - -### 实体类设计 -- **继承体系**: 所有实体类继承 `BaseEntity` -- **字段映射**: 使用 `@TableField` 注解明确字段映射 -- **类型处理**: JSON字段使用 `JacksonTypeHandler` - -## 📁 文件清单 - -### 新增文件 -``` -backend/emotion-common/src/main/java/com/emotionmuseum/common/util/SnowflakeIdGenerator.java -backend/emotion-common/src/main/java/com/emotionmuseum/common/config/SnowflakeConfig.java -backend/emotion-common/src/test/java/com/emotionmuseum/common/util/SnowflakeIdGeneratorTest.java -backend/emotion-record/src/main/java/com/emotionmuseum/record/entity/EmotionRecord.java -backend/emotion-growth/src/main/java/com/emotionmuseum/growth/entity/GrowthTopic.java -backend/emotion-growth/src/main/java/com/emotionmuseum/growth/entity/TopicInteraction.java -backend/emotion-explore/src/main/java/com/emotionmuseum/explore/entity/LocationPin.java -backend/emotion-explore/src/main/java/com/emotionmuseum/explore/entity/CommunityPost.java -backend/emotion-explore/src/main/java/com/emotionmuseum/explore/entity/Comment.java -backend/emotion-reward/src/main/java/com/emotionmuseum/reward/entity/Achievement.java -backend/emotion-reward/src/main/java/com/emotionmuseum/reward/entity/Reward.java -backend/emotion-stats/src/main/java/com/emotionmuseum/stats/entity/UserStats.java -``` - -### 修改文件 -``` -backend/mysql_emotion_museum_final.sql (v2.1 → v3.0) -backend/emotion-common/src/main/java/com/emotionmuseum/common/entity/BaseEntity.java -backend/emotion-common/src/main/java/com/emotionmuseum/common/handler/EmotionMetaObjectHandler.java -backend/emotion-ai/src/main/java/com/emotionmuseum/ai/entity/GuestUser.java -``` - -## 🔧 技术特性 - -### 雪花算法特性 -- **高性能**: 单机每毫秒可生成4096个ID -- **全局唯一**: 64位长整型,转换为字符串避免精度丢失 -- **时间有序**: ID包含时间戳信息,天然有序 -- **分布式友好**: 支持1024个机器节点 - -### 自动填充特性 -- **主键自动生成**: ID为空时自动生成雪花算法ID -- **时间自动填充**: 自动填充创建时间和更新时间 -- **用户信息填充**: 支持创建人和更新人信息 -- **逻辑删除**: 自动设置删除标记默认值 - -### 配置灵活性 -- **机器ID配置**: 支持配置文件指定或自动分配 -- **异常安全**: 自动填充失败不影响业务逻辑 -- **扩展性**: 支持批量ID生成和解析功能 - -## 🚀 使用方式 - -### 1. 数据库初始化 -```bash -mysql -u root -p < backend/mysql_emotion_museum_final.sql -``` - -### 2. 配置机器ID(可选) -```yaml -# application.yml -snowflake: - machine-id: 1 # 可选,不配置则自动分配 -``` - -### 3. 实体类使用 -```java -@Data -@EqualsAndHashCode(callSuper = true) -@TableName("your_table") -public class YourEntity extends BaseEntity { - // 业务字段 - @TableField("your_field") - private String yourField; -} -``` - -### 4. 手动生成ID -```java -@Autowired -private SnowflakeIdGenerator snowflakeIdGenerator; - -public void generateId() { - String id = snowflakeIdGenerator.nextIdAsString(); - // 使用生成的ID -} -``` - -## ✅ 验证结果 - -- ✅ 项目编译成功 -- ✅ 雪花算法测试通过(唯一性、并发安全性) -- ✅ 数据库脚本语法正确 -- ✅ 实体类继承关系正确 -- ✅ 自动填充逻辑完整 - -## 📝 注意事项 - -1. **时钟回退**: 雪花算法依赖系统时钟,需要确保服务器时钟同步 -2. **机器ID**: 分布式部署时需要确保不同节点使用不同的机器ID -3. **ID长度**: 生成的ID为19位数字字符串,前端需要使用字符串类型处理 -4. **数据库兼容**: 脚本针对MySQL 8.0+优化,其他版本可能需要调整 - -## 🎯 后续建议 - -1. **监控**: 建议添加ID生成性能监控 -2. **配置中心**: 考虑使用配置中心管理机器ID -3. **测试**: 建议在生产环境前进行压力测试 -4. **文档**: 为开发团队提供使用指南 - ---- - -**实施完成时间**: 2025-07-13 -**版本**: v3.0 Final (雪花算法主键版本) -**状态**: ✅ 全部完成 diff --git a/backend/认证模块重构总结.md b/backend/认证模块重构总结.md deleted file mode 100644 index c9383f0..0000000 --- a/backend/认证模块重构总结.md +++ /dev/null @@ -1,205 +0,0 @@ -# 后端认证模块重构总结 - -## 重构目标 - -将后端登录鉴权逻辑集中到emotion-auth模块,从emotion-user模块中移除所有认证相关功能,实现职责分离。 - -## 重构内容 - -### 1. emotion-auth模块完善 - -#### 新增功能 -- **AuthController**: 用户认证控制器 - - 用户注册 `/auth/register` - - 用户登录 `/auth/login` - - 刷新Token `/auth/refresh` - - 用户登出 `/auth/logout` - - 验证Token `/auth/validate-token` - - 获取用户信息 `/auth/user-info` - - 检查账号/邮箱/手机号是否存在 - -- **AuthService**: 认证服务接口和实现 - - 完整的用户认证逻辑 - - JWT Token管理 - - 密码加密验证 - - 用户状态检查 - -- **User实体**: 用户数据模型 - - 完整的用户字段定义 - - 成长数据字段 - - 第三方登录支持 - -- **UserMapper**: 用户数据访问层 - - 基础CRUD操作 - - 按账号/邮箱/手机号查询 - - 第三方登录查询 - -#### 配置文件 -- **application.yml**: 完整的服务配置 - - 数据库连接配置 - - Redis配置 - - JWT配置 - - 验证码配置 - - OAuth配置 - -- **SecurityConfig**: 安全配置更新 - - 新增认证接口的公开访问权限 - - JWT过滤器配置 - -### 2. emotion-user模块简化 - -#### 移除的功能 -- **认证相关Controller**: - - 移除UserController中的登录、注册、登出接口 - - 删除CaptchaController - - 删除OAuthController - -- **认证相关Service**: - - 移除UserService中的认证方法 - - 删除CaptchaService及其实现 - - 删除OAuthService及其实现 - - 删除SliderCaptchaService及其实现 - -- **认证相关DTO/VO**: - - 删除LoginRequest、RegisterRequest - - 删除LoginResponse - - 删除CaptchaResponse、SliderCaptchaResponse - - 删除OAuthLoginRequest等 - -- **认证相关Mapper方法**: - - 移除UserMapper中的认证查询方法 - - 简化UserMapper.xml - -#### 保留的功能 -- **用户信息管理**: - - 获取用户信息 - - 更新用户信息 - - 更新最后活跃时间 - -- **数据模型**: - - User实体(用户基础信息) - - UserInfoResponse(用户信息响应) - - UserUpdateRequest(用户更新请求) - -### 3. 网关路由配置 - -#### 新增路由 -```yaml -# 认证服务路由 -- id: emotion-auth - uri: lb://emotion-auth - predicates: - - Path=/api/auth/** - filters: - - StripPrefix=2 -``` - -#### 路由分配 -- `/api/auth/**` → emotion-auth模块(认证功能) -- `/api/user/**` → emotion-user模块(用户信息管理) - -### 4. 前端API调用 - -前端认证相关API调用已配置为: -- 基础URL: `/api/auth` -- 通过网关自动路由到emotion-auth模块 - -## 重构后的架构 - -### emotion-auth模块职责 -- 用户注册和登录 -- JWT Token生成和验证 -- 密码加密和验证 -- 验证码生成和验证 -- 第三方OAuth登录 -- 用户认证状态管理 - -### emotion-user模块职责 -- 用户基础信息管理 -- 用户资料更新 -- 用户活跃状态维护 -- 用户成长数据管理 - -## 数据库设计 - -### 用户表结构 -```sql -CREATE TABLE user ( - id VARCHAR(32) PRIMARY KEY, - account VARCHAR(50) NOT NULL UNIQUE, - password VARCHAR(255) NOT NULL, - username VARCHAR(50), - email VARCHAR(100), - phone VARCHAR(20), - avatar VARCHAR(255), - nickname VARCHAR(50), - birth_date DATE, - location VARCHAR(100), - bio TEXT, - member_level VARCHAR(20) DEFAULT 'free', - total_days INT DEFAULT 0, - self_awareness DECIMAL(5,2) DEFAULT 50.00, - emotional_resilience DECIMAL(5,2) DEFAULT 50.00, - action_power DECIMAL(5,2) DEFAULT 50.00, - empathy DECIMAL(5,2) DEFAULT 50.00, - life_enthusiasm DECIMAL(5,2) DEFAULT 50.00, - status INT DEFAULT 1, - is_verified INT DEFAULT 0, - last_active_time DATETIME, - oauth_platform VARCHAR(20), - oauth_id VARCHAR(100), - create_by VARCHAR(32), - create_time DATETIME DEFAULT CURRENT_TIMESTAMP, - update_by VARCHAR(32), - update_time DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - is_deleted INT DEFAULT 0, - remarks TEXT -); -``` - -## 部署配置 - -### emotion-auth服务 -- 端口: 19001 -- 服务名: emotion-auth -- 数据库: emotion_museum -- Redis: 用于Token存储 - -### 服务依赖 -- emotion-common: 公共工具和实体 -- MySQL: 用户数据存储 -- Redis: Token和验证码缓存 -- Nacos: 服务注册和配置管理 - -## 测试验证 - -创建了测试脚本 `test-auth.sh` 用于验证认证功能: -- 验证码生成测试 -- 用户注册测试 -- 用户登录测试 -- Token验证测试 -- 用户信息获取测试 -- 用户登出测试 - -## 重构优势 - -1. **职责分离**: 认证和用户管理功能明确分离 -2. **可维护性**: 认证逻辑集中管理,便于维护和升级 -3. **可扩展性**: 认证模块独立,便于添加新的认证方式 -4. **安全性**: 认证逻辑统一管理,安全策略一致 -5. **性能优化**: 认证服务可独立扩展和优化 - -## 注意事项 - -1. **数据一致性**: 两个模块都需要访问用户表,需要保证数据一致性 -2. **服务通信**: emotion-user模块如需用户认证信息,需通过emotion-auth模块获取 -3. **缓存同步**: Token和用户状态缓存需要在两个模块间保持同步 -4. **错误处理**: 统一错误码和异常处理机制 - -## 后续优化建议 - -1. **服务间通信**: 使用Feign客户端实现模块间调用 -2. **缓存策略**: 优化Redis缓存策略,提高性能 -3. **监控告警**: 添加认证服务的监控和告警 -4. **安全加固**: 增强密码策略和防暴力破解机制 -5. **审计日志**: 添加用户认证操作的审计日志 diff --git a/backend/项目文件清理总结.md b/backend/项目文件清理总结.md deleted file mode 100644 index 3549ffc..0000000 --- a/backend/项目文件清理总结.md +++ /dev/null @@ -1,97 +0,0 @@ -# 项目文件清理总结 - -## 🗑️ 已移除的文件 - -### 数据库相关文件(已被终版脚本替代) -- ❌ `mysql_database_indexes.sql` - 旧的索引脚本 -- ❌ `mysql_database_init_data.sql` - 旧的初始数据脚本 -- ❌ `mysql_database_schema.sql` - 旧的表结构脚本 -- ❌ `mysql_deploy_database.sql` - 旧的部署脚本 -- ❌ `backend/sql/ai_chat_basic.sql` - AI聊天基础脚本 -- ❌ `backend/sql/ai_chat_optimization.sql` - AI聊天优化脚本 -- ❌ `backend/sql/` - 整个sql目录(已清空) - -### 测试文件 -- ❌ `backend/emotion-common/src/test/java/com/emotionmuseum/common/handler/EmotionMetaObjectHandlerTest.java` - 测试文件(在当前环境无法正常运行) -- ❌ `backend/emotion-ai/test-conversation-flow.sh` - 对话流程测试脚本 -- ❌ `backend/emotion-ai/test-coze-api.sh` - Coze API测试脚本 -- ❌ `backend/test-coze-api.sh` - Coze API测试脚本 -- ❌ `backend/test-services.sh` - 服务测试脚本 - -### 启动脚本(保留主要脚本) -- ❌ `backend/start-ai.sh` - AI服务启动脚本 -- ❌ `backend/start-frontend.sh` - 前端启动脚本 -- ❌ `backend/start-gateway.sh` - 网关启动脚本 -- ❌ `backend/start-record.sh` - 记录服务启动脚本 -- ❌ `backend/start-user.sh` - 用户服务启动脚本 - -### 文档文件(重复或过时) -- ❌ `backend/开发启动指南.md` - 开发启动指南 -- ❌ `backend/本地开发启动完成.md` - 本地开发启动完成 -- ❌ `backend/端口配置更新总结.md` - 端口配置更新总结 -- ❌ `web/前端接口配置完成总结.md` - 前端接口配置完成总结 -- ❌ `web/接口连通性测试完成.md` - 接口连通性测试完成 -- ❌ `web/环境变量配置完成总结.md` - 环境变量配置完成总结 -- ❌ `MySQL数据库设计总结.md` - MySQL数据库设计总结 -- ❌ `数据库设计方案.md` - 数据库设计方案 -- ❌ `项目分析总结报告.md` - 项目分析总结报告 - -### 临时文件 -- ❌ `web/test-env.js` - 环境测试文件 - -## ✅ 保留的重要文件 - -### 数据库文件 -- ✅ `backend/mysql_emotion_museum_final.sql` - **终版数据库脚本(v3.0)** - -### 核心启动脚本 -- ✅ `backend/dev-auto.sh` - 自动化开发脚本 -- ✅ `backend/dev-start.sh` - 开发启动脚本 -- ✅ `backend/start-services.sh` - 服务启动脚本 -- ✅ `backend/stop-services.sh` - 服务停止脚本 - -### 测试文件(保留有效的) -- ✅ `backend/emotion-common/src/test/java/com/emotionmuseum/common/util/SnowflakeIdGeneratorTest.java` - 雪花算法测试 - -### 重要文档 -- ✅ `backend/数据库雪花算法主键实施总结.md` - **实施总结文档** -- ✅ `backend/README.md` - 后端项目说明 -- ✅ `web/README.md` - 前端项目说明 -- ✅ `web/ENV_CONFIG.md` - 环境配置说明 -- ✅ `CLAUDE.md` - 项目总体说明 -- ✅ `情绪博物馆MVP需求规格书.md` - MVP需求规格 -- ✅ `情绪博物馆完整功能需求与数据库设计.md` - 完整功能需求 -- ✅ `EmotionMuseum功能完善实施计划.md` - 功能完善计划 -- ✅ `Spring Cloud Alibaba微服务架构设计.md` - 架构设计 -- ✅ `UI设计实施指南.md` - UI设计指南 -- ✅ `技术架构完善建议.md` - 技术架构建议 -- ✅ `功能模块详细梳理.md` - 功能模块梳理 -- ✅ `MVP功能需求文档.md` - MVP功能需求 - -## 📊 清理统计 - -- **移除文件数量**: 23个 -- **保留核心文件**: 数据库脚本、启动脚本、重要文档 -- **项目结构**: 更加清晰,去除冗余 - -## 🎯 清理原则 - -1. **保留终版文件**: 只保留最新、最完整的版本 -2. **移除重复文件**: 删除功能重复或过时的文件 -3. **保留核心功能**: 保留项目运行必需的文件 -4. **保留重要文档**: 保留对项目理解和维护有价值的文档 - -## 📝 使用建议 - -现在项目结构更加清晰,主要使用以下文件: - -1. **数据库初始化**: `backend/mysql_emotion_museum_final.sql` -2. **开发启动**: `backend/dev-auto.sh` 或 `backend/dev-start.sh` -3. **服务管理**: `backend/start-services.sh` 和 `backend/stop-services.sh` -4. **项目文档**: 各种.md文档文件 - ---- - -**清理完成时间**: 2025-07-13 -**清理状态**: ✅ 完成 -**项目状态**: 🚀 准备就绪 diff --git a/build-output/jars/emotion-ai.jar b/build-output/jars/emotion-ai.jar deleted file mode 100644 index 944d842..0000000 Binary files a/build-output/jars/emotion-ai.jar and /dev/null differ diff --git a/build-output/jars/emotion-common.jar b/build-output/jars/emotion-common.jar deleted file mode 100644 index 2b440ff..0000000 Binary files a/build-output/jars/emotion-common.jar and /dev/null differ diff --git a/build-output/jars/emotion-explore.jar b/build-output/jars/emotion-explore.jar deleted file mode 100644 index 07a9107..0000000 Binary files a/build-output/jars/emotion-explore.jar and /dev/null differ diff --git a/build-output/jars/emotion-gateway.jar b/build-output/jars/emotion-gateway.jar deleted file mode 100644 index 796ab36..0000000 Binary files a/build-output/jars/emotion-gateway.jar and /dev/null differ diff --git a/build-output/jars/emotion-growth.jar b/build-output/jars/emotion-growth.jar deleted file mode 100644 index 93fa883..0000000 Binary files a/build-output/jars/emotion-growth.jar and /dev/null differ diff --git a/build-output/jars/emotion-record.jar b/build-output/jars/emotion-record.jar deleted file mode 100644 index a225638..0000000 Binary files a/build-output/jars/emotion-record.jar and /dev/null differ diff --git a/build-output/jars/emotion-reward.jar b/build-output/jars/emotion-reward.jar deleted file mode 100644 index 8dd1359..0000000 Binary files a/build-output/jars/emotion-reward.jar and /dev/null differ diff --git a/build-output/jars/emotion-stats.jar b/build-output/jars/emotion-stats.jar deleted file mode 100644 index 3215569..0000000 Binary files a/build-output/jars/emotion-stats.jar and /dev/null differ diff --git a/build-output/jars/emotion-user.jar b/build-output/jars/emotion-user.jar deleted file mode 100644 index 73dc103..0000000 Binary files a/build-output/jars/emotion-user.jar and /dev/null differ diff --git a/build-output/web/assets/css/AnalysisSimple-eb0c3031.css b/build-output/web/assets/css/AnalysisSimple-eb0c3031.css deleted file mode 100644 index 20ae914..0000000 --- a/build-output/web/assets/css/AnalysisSimple-eb0c3031.css +++ /dev/null @@ -1 +0,0 @@ -.analysis-simple[data-v-28c071bd]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.analysis-simple .page-header[data-v-28c071bd]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.analysis-simple .page-header h1[data-v-28c071bd]{color:#fff;margin:0}.analysis-simple .page-content[data-v-28c071bd]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.analysis-simple .page-content .welcome-message h2[data-v-28c071bd]{color:#333;margin-bottom:16px}.analysis-simple .page-content .welcome-message p[data-v-28c071bd]{color:#666;margin-bottom:32px;font-size:16px}.analysis-simple .page-content .welcome-message .test-buttons[data-v-28c071bd]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/build-output/web/assets/css/ChatComplete-68dc21b4.css b/build-output/web/assets/css/ChatComplete-68dc21b4.css deleted file mode 100644 index 24dee0a..0000000 --- a/build-output/web/assets/css/ChatComplete-68dc21b4.css +++ /dev/null @@ -1 +0,0 @@ -.emotion-analysis-simple .analysis-card[data-v-c61d1b05]{border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-top:8px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head{border-bottom:1px solid #f0f0f0;padding:8px 12px;min-height:auto}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head .ant-card-head-title{padding:0;font-size:13px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-body{padding:12px}.emotion-analysis-simple .card-title[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#667eea}.emotion-analysis-simple .card-title .title-icon[data-v-c61d1b05]{font-size:14px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]{margin-bottom:8px;display:flex;align-items:center;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]:last-child{margin-bottom:0}.emotion-analysis-simple .analysis-content .emotion-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-label[data-v-c61d1b05]{font-size:12px;color:#666;font-weight:500;min-width:fit-content}.emotion-analysis-simple .analysis-content .emotion-tag[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-tag[data-v-c61d1b05]{font-size:11px;border-radius:4px}.emotion-analysis-simple .analysis-content .emotion-intensity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-value[data-v-c61d1b05]{font-size:11px;color:#999}.emotion-analysis-simple .analysis-content .keywords-list[data-v-c61d1b05]{display:flex;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .keywords-list .keyword-tag[data-v-c61d1b05]{font-size:10px;border-radius:3px;background:#f5f5f5;border:1px solid #d9d9d9;color:#666}.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]{flex-direction:column;align-items:flex-start}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:12px;color:#666;font-weight:500}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label .suggestion-icon[data-v-c61d1b05]{font-size:12px;color:#667eea}.emotion-analysis-simple .analysis-content .suggestion .suggestion-content[data-v-c61d1b05]{font-size:11px;color:#333;line-height:1.4;background:#f8f9fa;padding:6px 8px;border-radius:4px;border-left:2px solid #667eea;margin-top:4px;width:100%}.chat-complete[data-v-23c54516]{display:flex;height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.sidebar[data-v-23c54516]{width:300px;background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-right:1px solid rgba(255,255,255,.2);display:flex;flex-direction:column;transition:all .3s ease}.sidebar.collapsed[data-v-23c54516]{width:60px}.sidebar .sidebar-header[data-v-23c54516]{padding:20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}.sidebar .sidebar-header .logo h2[data-v-23c54516]{margin:0;font-size:18px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sidebar .sidebar-header .logo .subtitle[data-v-23c54516]{font-size:12px;color:#666}.sidebar .sidebar-header .collapse-btn[data-v-23c54516]{border:none;box-shadow:none}.sidebar .sidebar-content[data-v-23c54516]{flex:1;padding:20px;overflow-y:auto}.sidebar .sidebar-content .conversations-list .list-header[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sidebar .sidebar-content .conversations-list .list-header .list-title[data-v-23c54516]{font-weight:600;color:#333}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]{display:flex;align-items:center;padding:12px;border-radius:8px;cursor:pointer;transition:all .3s ease;margin-bottom:8px}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]:hover{background:#f5f5f5}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active .conversation-time[data-v-23c54516]{color:#fffc}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info[data-v-23c54516]{flex:1;min-width:0}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-title[data-v-23c54516]{font-weight:500;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-time[data-v-23c54516]{font-size:12px;color:#999}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .more-btn[data-v-23c54516]{opacity:0;transition:opacity .3s ease}.sidebar .sidebar-content .conversations-list .conversations .conversation-item:hover .more-btn[data-v-23c54516]{opacity:1}.sidebar .sidebar-content .conversations-list .empty-conversations[data-v-23c54516]{text-align:center;padding:40px 20px;color:#999}.sidebar .sidebar-content .conversations-list .empty-conversations .empty-icon[data-v-23c54516]{font-size:48px;margin-bottom:16px;opacity:.5}.sidebar .user-info[data-v-23c54516]{padding:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:12px}.sidebar .user-info .user-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}.sidebar .user-info .user-details .user-name[data-v-23c54516]{font-weight:500;margin-bottom:2px}.sidebar .user-info .user-details .user-status[data-v-23c54516]{font-size:12px;color:#52c41a}.sidebar .user-info .user-details .user-status.guest[data-v-23c54516]{color:#faad14}.chat-main[data-v-23c54516]{flex:1;display:flex;flex-direction:column;background:rgba(255,255,255,.05)}.chat-main .chat-header[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:space-between;color:#fff}.chat-main .chat-header .chat-info .chat-title[data-v-23c54516]{margin:0 0 4px;font-size:18px}.chat-main .chat-header .chat-info .chat-status[data-v-23c54516]{font-size:12px;opacity:.8}.chat-main .chat-header .chat-actions[data-v-23c54516]{display:flex;gap:8px}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]{color:#fff;border-color:#ffffff4d}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]:hover{background:rgba(255,255,255,.1);border-color:#ffffff80}.chat-main .messages-container[data-v-23c54516]{flex:1;overflow-y:auto;padding:20px}.chat-main .messages-container .welcome-screen[data-v-23c54516]{height:100%;display:flex;align-items:center;justify-content:center}.chat-main .messages-container .welcome-screen .welcome-content[data-v-23c54516]{text-align:center;color:#fff;max-width:500px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-icon[data-v-23c54516]{font-size:80px;margin-bottom:20px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-title[data-v-23c54516]{font-size:28px;margin-bottom:16px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-description[data-v-23c54516]{font-size:16px;line-height:1.6;margin-bottom:30px;opacity:.9}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features[data-v-23c54516]{display:flex;justify-content:center;gap:30px;margin-bottom:30px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item[data-v-23c54516]{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item .anticon[data-v-23c54516]{font-size:24px}.chat-main .messages-container .messages-list .message-item[data-v-23c54516]{display:flex;margin-bottom:20px}.chat-main .messages-container .messages-list .message-item.user[data-v-23c54516]{flex-direction:row-reverse}.chat-main .messages-container .messages-list .message-item.user .message-content[data-v-23c54516]{align-items:flex-end}.chat-main .messages-container .messages-list .message-item.user .message-bubble[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-bottom-right-radius:4px}.chat-main .messages-container .messages-list .message-item.assistant .message-bubble[data-v-23c54516]{background:white;border:1px solid #f0f0f0;border-bottom-left-radius:4px}.chat-main .messages-container .messages-list .message-item .message-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;margin:0 12px;flex-shrink:0}.chat-main .messages-container .messages-list .message-item .message-content[data-v-23c54516]{flex:1;display:flex;flex-direction:column;max-width:70%}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble[data-v-23c54516]{padding:12px 16px;border-radius:12px;box-shadow:0 2px 8px #0000001a}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble.typing[data-v-23c54516]{padding:16px 20px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-text[data-v-23c54516]{line-height:1.6;word-wrap:break-word}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-time[data-v-23c54516]{font-size:12px;opacity:.7;margin-top:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator[data-v-23c54516]{display:flex;gap:4px;margin-bottom:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]{width:8px;height:8px;border-radius:50%;background:#999;animation:typing-23c54516 1.4s infinite ease-in-out}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(1){animation-delay:-.32s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(2){animation-delay:-.16s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-text[data-v-23c54516]{font-size:14px;color:#666}.chat-main .messages-container .messages-list .message-item .message-content .emotion-analysis[data-v-23c54516]{margin-top:8px}.chat-main .input-area[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2)}.chat-main .input-area .input-container[data-v-23c54516]{display:flex;align-items:flex-end;gap:12px;max-width:1000px;margin:0 auto}.chat-main .input-area .input-container .message-input[data-v-23c54516]{flex:1;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.9)}.chat-main .input-area .input-container .message-input[data-v-23c54516]:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea33}.chat-main .input-area .input-container .input-actions[data-v-23c54516]{display:flex;align-items:center;gap:8px}.chat-main .input-area .input-container .input-actions .ant-btn.active[data-v-23c54516]{color:#667eea;background:rgba(102,126,234,.1)}.chat-main .input-area .input-container .input-actions .send-btn[data-v-23c54516]{height:40px;padding:0 20px}.connection-status .status-item[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0f0f0}.connection-status .status-item[data-v-23c54516]:last-child{border-bottom:none}.connection-status .status-item .status-label[data-v-23c54516]{font-weight:500}.connection-status .status-item .user-id[data-v-23c54516]{font-family:monospace;font-size:12px;color:#666;background:#f5f5f5;padding:2px 6px;border-radius:4px}@keyframes typing-23c54516{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}@media (max-width: 768px){.sidebar[data-v-23c54516]{position:fixed;left:0;top:0;height:100vh;z-index:1000;transform:translate(-100%)}.sidebar[data-v-23c54516]:not(.collapsed){transform:translate(0)}.chat-main[data-v-23c54516]{width:100%}.welcome-features[data-v-23c54516]{flex-direction:column;gap:20px!important}} diff --git a/build-output/web/assets/css/HistorySimple-caafbb99.css b/build-output/web/assets/css/HistorySimple-caafbb99.css deleted file mode 100644 index 8519128..0000000 --- a/build-output/web/assets/css/HistorySimple-caafbb99.css +++ /dev/null @@ -1 +0,0 @@ -.history-simple[data-v-4baa7231]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.history-simple .page-header[data-v-4baa7231]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.history-simple .page-header h1[data-v-4baa7231]{color:#fff;margin:0}.history-simple .page-content[data-v-4baa7231]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.history-simple .page-content .welcome-message h2[data-v-4baa7231]{color:#333;margin-bottom:16px}.history-simple .page-content .welcome-message p[data-v-4baa7231]{color:#666;margin-bottom:32px;font-size:16px}.history-simple .page-content .welcome-message .test-buttons[data-v-4baa7231]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/build-output/web/assets/css/Home-c2a76248.css b/build-output/web/assets/css/Home-c2a76248.css deleted file mode 100644 index 284c78c..0000000 --- a/build-output/web/assets/css/Home-c2a76248.css +++ /dev/null @@ -1 +0,0 @@ -.api-test[data-v-5881151e]{margin:16px}.test-buttons[data-v-5881151e]{margin-bottom:16px}.test-results[data-v-5881151e]{max-height:600px;overflow-y:auto}.result-item[data-v-5881151e]{margin-bottom:12px}.result-details[data-v-5881151e]{margin-top:8px}.result-data pre[data-v-5881151e]{background:#f5f5f5;padding:8px;border-radius:4px;font-size:12px;max-height:200px;overflow-y:auto}.result-error code[data-v-5881151e]{background:#fff2f0;color:#ff4d4f;padding:2px 4px;border-radius:3px}.result-time[data-v-5881151e]{margin-top:8px;color:#666}.home-container[data-v-d42b9121]{min-height:100vh;background:var(--gradient-primary);position:relative;overflow-x:hidden}.header[data-v-d42b9121]{position:fixed;top:0;left:0;right:0;z-index:1000;padding:var(--spacing-md) 0}.header .header-content[data-v-d42b9121]{max-width:1200px;margin:0 auto;padding:0 var(--spacing-lg);display:flex;align-items:center;justify-content:space-between}.header .logo h1[data-v-d42b9121]{font-size:24px;margin:0}.header .logo .subtitle[data-v-d42b9121]{font-size:12px;color:#fffc;margin-left:var(--spacing-sm)}.header .nav-menu[data-v-d42b9121]{display:flex;gap:var(--spacing-lg)}.header .nav-menu .nav-item[data-v-d42b9121]{color:#ffffffe6!important;border:none!important;box-shadow:none!important;background:transparent!important;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-small);transition:all .3s ease;display:flex;align-items:center;gap:var(--spacing-xs)}.header .nav-menu .nav-item[data-v-d42b9121]:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}.main-content[data-v-d42b9121]{padding-top:80px}.hero-section[data-v-d42b9121]{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;padding:var(--spacing-xxl) var(--spacing-lg)}.hero-section .hero-content[data-v-d42b9121]{text-align:center;max-width:600px;color:#fff}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:48px;font-weight:700;margin-bottom:var(--spacing-lg);line-height:1.2}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:18px;margin-bottom:var(--spacing-xxl);opacity:.9;line-height:1.6}.hero-section .hero-content .hero-actions[data-v-d42b9121]{display:flex;gap:var(--spacing-md);justify-content:center;flex-wrap:wrap}.hero-section .hero-content .hero-actions .start-chat-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);color:#fff}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]:hover{background:rgba(255,255,255,.2);border-color:#ffffff80}.hero-section .hero-decoration[data-v-d42b9121]{position:absolute;top:50%;right:10%;transform:translateY(-50%)}.hero-section .hero-decoration .floating-card[data-v-d42b9121]{position:absolute;padding:var(--spacing-md);background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;gap:var(--spacing-sm);white-space:nowrap}.hero-section .hero-decoration .floating-card .icon[data-v-d42b9121]{font-size:20px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(1){top:-60px;right:0}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(2){top:20px;right:-40px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(3){top:100px;right:20px}.features-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.features-section .section-header[data-v-d42b9121]{text-align:center;margin-bottom:var(--spacing-xxl);color:#fff}.features-section .section-header .section-title[data-v-d42b9121]{font-size:36px;margin-bottom:var(--spacing-md)}.features-section .section-header .section-description[data-v-d42b9121]{font-size:16px;opacity:.8}.features-section .features-grid[data-v-d42b9121]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--spacing-xl);max-width:1000px;margin:0 auto}.features-section .features-grid .feature-card[data-v-d42b9121]{text-align:center;background:rgba(255,255,255,.95)}.features-section .features-grid .feature-card .feature-icon[data-v-d42b9121]{font-size:48px;color:var(--primary-color);margin-bottom:var(--spacing-md)}.features-section .features-grid .feature-card .feature-title[data-v-d42b9121]{font-size:20px;margin-bottom:var(--spacing-md);color:var(--text-primary)}.features-section .features-grid .feature-card .feature-description[data-v-d42b9121]{color:var(--text-secondary);line-height:1.6}.stats-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{max-width:800px;margin:0 auto;padding:var(--spacing-xl);display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--spacing-xl);text-align:center}.stats-section .stats-container .stat-item .stat-number[data-v-d42b9121]{font-size:36px;font-weight:700;margin-bottom:var(--spacing-sm)}.stats-section .stats-container .stat-item .stat-label[data-v-d42b9121]{color:#fffc;font-size:14px}.api-test-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.api-test-section[data-v-d42b9121] .ant-card{background:rgba(255,255,255,.95);border:none;border-radius:var(--border-radius-large);box-shadow:var(--shadow-large)}.footer[data-v-d42b9121]{padding:var(--spacing-xl) var(--spacing-lg);background:rgba(0,0,0,.2)}.footer .footer-content[data-v-d42b9121]{text-align:center;color:#ffffffb3}@media (max-width: 768px){.header .header-content[data-v-d42b9121]{padding:0 var(--spacing-md)}.header .nav-menu[data-v-d42b9121]{gap:var(--spacing-md)}.header .nav-menu .nav-item[data-v-d42b9121]{padding:var(--spacing-xs) var(--spacing-sm);font-size:14px}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:32px}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:16px}.hero-section .hero-decoration[data-v-d42b9121]{display:none}.features-section .features-grid[data-v-d42b9121]{grid-template-columns:1fr;gap:var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{grid-template-columns:repeat(2,1fr);gap:var(--spacing-lg)}} diff --git a/build-output/web/assets/css/HomeTest-dd1db0d3.css b/build-output/web/assets/css/HomeTest-dd1db0d3.css deleted file mode 100644 index f278ea2..0000000 --- a/build-output/web/assets/css/HomeTest-dd1db0d3.css +++ /dev/null @@ -1 +0,0 @@ -.home-test[data-v-6c328404]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:40px;text-align:center;color:#fff}h1[data-v-6c328404]{font-size:2.5rem;margin-bottom:20px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}p[data-v-6c328404]{font-size:1.2rem;margin-bottom:30px}.test-buttons[data-v-6c328404]{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}.test-btn[data-v-6c328404]{padding:12px 24px;font-size:16px;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.3);border-radius:8px;color:#fff;cursor:pointer;transition:all .3s ease}.test-btn[data-v-6c328404]:hover{background:rgba(255,255,255,.3);border-color:#ffffff80;transform:translateY(-2px)}.info[data-v-6c328404]{background:rgba(255,255,255,.1);padding:20px;border-radius:12px;max-width:400px;margin:0 auto}.info p[data-v-6c328404]{margin:10px 0;font-size:1rem} diff --git a/build-output/web/assets/css/index-4213a94d.css b/build-output/web/assets/css/index-4213a94d.css deleted file mode 100644 index 6834c96..0000000 --- a/build-output/web/assets/css/index-4213a94d.css +++ /dev/null @@ -1 +0,0 @@ -.env-info[data-v-89545570]{font-family:Monaco,Menlo,Ubuntu Mono,monospace}.env-details code[data-v-89545570]{background:#f5f5f5;padding:2px 4px;border-radius:3px;font-size:12px}.env-actions[data-v-89545570]{text-align:center}#app{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:rgba(255,255,255,.1);border-radius:3px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.5)}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-up-enter-active,.slide-up-leave-active{transition:all .3s ease}.slide-up-enter-from{transform:translateY(20px);opacity:0}.slide-up-leave-to{transform:translateY(-20px);opacity:0}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)}@-ms-viewport{width:device-width}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]{-webkit-text-decoration:underline dotted;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}:root{--primary-color: #667eea;--primary-light: #8fa4f3;--primary-dark: #4c63d2;--secondary-color: #764ba2;--accent-color: #f093fb;--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);--gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);--gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);--text-primary: #2c3e50;--text-secondary: #7f8c8d;--text-light: #bdc3c7;--text-white: #ffffff;--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--bg-dark: #2c3e50;--bg-overlay: rgba(0, 0, 0, .5);--border-color: #e9ecef;--border-radius: 12px;--border-radius-small: 8px;--border-radius-large: 16px;--box-shadow: 0 4px 20px rgba(0, 0, 0, .1);--box-shadow-hover: 0 8px 30px rgba(0, 0, 0, .15);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-xxl: 48px}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-between{display:flex;align-items:center;justify-content:space-between}.flex-column{display:flex;flex-direction:column}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.w-full{width:100%}.h-full{height:100%}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.gradient-text{background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:600}.glass{background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:var(--border-radius)}.card{background:var(--bg-primary);border-radius:var(--border-radius);box-shadow:var(--box-shadow);padding:var(--spacing-lg);transition:all .3s ease}.card:hover{box-shadow:var(--box-shadow-hover);transform:translateY(-2px)}.ant-btn{border-radius:var(--border-radius-small);font-weight:500;transition:all .3s ease}.ant-btn.gradient-btn{background:var(--gradient-primary);border:none;color:#fff}.ant-btn.gradient-btn:hover{background:var(--gradient-primary);opacity:.9;transform:translateY(-1px);box-shadow:0 4px 15px #667eea66}.ant-input{border-radius:var(--border-radius-small);border:1px solid var(--border-color);transition:all .3s ease}.ant-input:focus{border-color:var(--primary-color);box-shadow:0 0 0 2px #667eea33}.message-bubble{max-width:70%;padding:var(--spacing-md);border-radius:var(--border-radius);margin-bottom:var(--spacing-md);word-wrap:break-word}.message-bubble.user{background:var(--gradient-primary);color:#fff;margin-left:auto;border-bottom-right-radius:var(--spacing-xs)}.message-bubble.assistant{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-color);border-bottom-left-radius:var(--spacing-xs)}@media (max-width: 768px){.message-bubble{max-width:85%}.card{padding:var(--spacing-md)}}.bounce-in{animation:bounceIn .6s ease}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}to{opacity:1;transform:scale(1)}}.fade-in-up{animation:fadeInUp .6s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.loading-dots{display:inline-block}.loading-dots:after{content:"";animation:dots 1.5s steps(5,end) infinite}@keyframes dots{0%,20%{color:#0000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}40%{color:#000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}60%{text-shadow:.25em 0 0 black,.5em 0 0 rgba(0,0,0,0)}80%,to{text-shadow:.25em 0 0 black,.5em 0 0 black}} diff --git a/build-output/web/assets/js/AnalysisSimple-7a988a7b.js b/build-output/web/assets/js/AnalysisSimple-7a988a7b.js deleted file mode 100644 index 5bda6bc..0000000 --- a/build-output/web/assets/js/AnalysisSimple-7a988a7b.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,u as p,b as m,o as v,e as f,f as t,c as o,w as n,g as l}from"./index-bf5be19f.js";const y={class:"analysis-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},c={__name:"AnalysisSimple",setup(x){const a=p(),_=()=>{a.push("/")},r=()=>{alert("情绪分析页面测试按钮工作正常!")};return(i,s)=>{const e=m("a-button");return v(),f("div",y,[t("div",k,[s[3]||(s[3]=t("h1",null,"情绪分析",-1)),o(e,{onClick:_},{default:n(()=>s[2]||(s[2]=[l("返回首页")])),_:1,__:[2]})]),t("div",b,[t("div",g,[s[7]||(s[7]=t("h2",null,"情绪分析功能",-1)),s[8]||(s[8]=t("p",null,"这里将提供强大的情绪分析功能,帮助您了解自己的情绪状态。",-1)),t("div",C,[o(e,{type:"primary",onClick:r},{default:n(()=>s[4]||(s[4]=[l("测试按钮")])),_:1,__:[4]}),o(e,{onClick:s[0]||(s[0]=u=>i.$router.push("/chat"))},{default:n(()=>s[5]||(s[5]=[l("开始对话")])),_:1,__:[5]}),o(e,{onClick:s[1]||(s[1]=u=>i.$router.push("/history"))},{default:n(()=>s[6]||(s[6]=[l("查看历史")])),_:1,__:[6]})])])])])}}},$=d(c,[["__scopeId","data-v-28c071bd"]]);export{$ as default}; diff --git a/build-output/web/assets/js/ChatComplete-7551ced4.js b/build-output/web/assets/js/ChatComplete-7551ced4.js deleted file mode 100644 index 3d34fd9..0000000 --- a/build-output/web/assets/js/ChatComplete-7551ced4.js +++ /dev/null @@ -1 +0,0 @@ -import{c as l,D as De,P as ke,R as Ae,q as ze,a as k,j as V,m as H,s as be,v as Ie,x as Ye,y as R,_ as Oe,b as z,o as m,e as y,w as _,f as r,l as i,g as x,t as C,i as P,F as q,h as G,n as N,u as He,z as Ee,A as Le,k as Te,B,G as Ne,H as Be}from"./index-bf5be19f.js";import{A as I,c as T,H as Z,B as Re,R as U,M as oe,S as Fe}from"./chat-e1054b12.js";var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};const Ve=Ue;var qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"};const Ge=qe;var Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const We=Ze;var Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Qe=Je;var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};const Ke=Xe;var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"};const tt=et;var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};const st=nt;var at={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"};const rt=at;function le(n){for(var t=1;t{const n=k([]),t=k(null),e=k([]),s=k(!1),a=k(!1),g=V(()=>n.value.length>0),h=V(()=>{var v;return(v=t.value)==null?void 0:v.conversationId}),w=async v=>{try{const f=await T.getConversations(v);f.success&&(n.value=f.data||[])}catch(f){console.error("获取会话列表失败:",f),H.error("获取会话列表失败")}},d=async v=>{try{s.value=!0,console.log("创建会话请求参数:",v);const f=await T.createConversation(v);if(console.log("创建会话响应:",f),f.success){const p=f.data,S={conversationId:p.conversationId,userId:p.userId,title:p.title||"新对话",type:p.type||"emotion_chat",status:p.status||"active",createTime:p.createTime||new Date().toISOString(),updateTime:p.updateTime||new Date().toISOString(),messageCount:0};return n.value.unshift(S),t.value=S,e.value=[],S}throw new Error(f.message||"创建会话失败")}catch(f){throw console.error("创建会话失败:",f),H.error(f.message||"创建会话失败"),f}finally{s.value=!1}},c=async(v,f=!0)=>{if(!t.value){H.error("请先创建会话");return}try{a.value=!0;const p={id:`user_${Date.now()}`,content:v,sender:"user",timestamp:new Date,type:"text"};e.value.push(p),console.log("添加用户消息:",p);const S={userId:t.value.userId,conversationId:t.value.conversationId,message:v,needEmotionAnalysis:f,type:"text"};console.log("发送消息请求:",S);const M=await T.sendMessage(S);if(console.log("发送消息响应:",M),M.success){const E={id:M.data.messageId||`ai_${Date.now()}`,content:M.data.content,sender:"assistant",timestamp:M.data.timestamp?new Date(M.data.timestamp):new Date,type:M.data.type||"text",emotionAnalysis:M.data.emotionAnalysis};return e.value.push(E),console.log("添加AI消息:",E),t.value&&(t.value.updateTime=new Date().toISOString(),t.value.messageCount=(t.value.messageCount||0)+2),E}throw new Error(M.message||"发送消息失败")}catch(p){throw console.error("发送消息失败:",p),H.error(p.message||"发送消息失败"),e.value=e.value.filter(S=>S.id!==`user_${Date.now()}`),p}finally{a.value=!1}},O=async v=>{try{s.value=!0;const f=await T.getMessages(v);f.success&&(e.value=f.data||[])}catch(f){console.error("获取消息失败:",f),H.error("获取消息失败")}finally{s.value=!1}},A=async v=>{t.value=v,await O(v.conversationId)},j=()=>{t.value=null,e.value=[]};return{conversations:n,currentConversation:t,messages:e,loading:s,typing:a,hasConversations:g,currentConversationId:h,fetchConversations:w,createConversation:d,sendMessage:c,fetchMessages:O,switchConversation:A,clearCurrentConversation:j,deleteConversation:async v=>{var f;try{await T.deleteConversation(v),n.value=n.value.filter(p=>p.conversationId!==v),((f=t.value)==null?void 0:f.conversationId)===v&&j(),H.success("删除成功")}catch(p){console.error("删除会话失败:",p),H.error("删除会话失败")}}}});var we={exports:{}};(function(n,t){(function(e,s){n.exports=s()})(be,function(){return function(e,s,a){e=e||{};var g=s.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function w(c,O,A,j){return g.fromToBase(c,O,A,j)}a.en.relativeTime=h,g.fromToBase=function(c,O,A,j,Y){for(var v,f,p,S=A.$locale().relativeTime||h,M=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=M.length,L=0;L0,u<=D.r||!D.r){u<=1&&L>0&&(D=M[L-1]);var o=S[D.l];Y&&(u=Y(""+u)),f=typeof o=="string"?o.replace("%d",u):o(u,O,D.l,p);break}}if(O)return f;var $=p?S.future:S.past;return typeof $=="function"?$(f):$.replace("%s",f)},g.to=function(c,O){return w(c,O,this,!0)},g.from=function(c,O){return w(c,O,this)};var d=function(c){return c.$u?a.utc():a()};g.toNow=function(c){return this.to(d(this),c)},g.fromNow=function(c){return this.from(d(this),c)}}})})(we);var xt=we.exports;const jt=Ie(xt);var Dt={exports:{}};(function(n,t){(function(e,s){n.exports=s(Ye)})(be,function(e){function s(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var a=s(e),g={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(h,w){return w==="W"?h+"周":h+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(h,w){var d=100*h+w;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};return a.default.locale(g,null,!0),g})})(Dt);R.extend(jt);R.locale("zh-cn");function _e(n,t="YYYY-MM-DD HH:mm:ss"){if(!n)return"";const e=R(),s=R(n),a=e.diff(s,"hour"),g=e.diff(s,"day");return g===0?a===0?s.fromNow():s.format("HH:mm"):g===1?`昨天 ${s.format("HH:mm")}`:g<7?s.format("dddd HH:mm"):s.year()===e.year()?s.format("MM-DD HH:mm"):s.format(t)}function kt(n){if(!n)return"";let e=n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"
");const s=/(https?:\/\/[^\s]+)/g;e=e.replace(s,'$1');const a=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;e=e.replace(a,'$1');const g=/(\d{3}-\d{4}-\d{4}|\d{11})/g;return e=e.replace(g,'$1'),Object.entries({":)":"😊",":-)":"😊",":(":"😢",":-(":"😢",":D":"😃",":-D":"😃",":P":"😛",":-P":"😛",";)":"😉",";-)":"😉",":o":"😮",":-o":"😮",":|":"😐",":-|":"😐","<3":"❤️","{const c=new RegExp(At(w),"g");e=e.replace(c,d)}),e}function At(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const zt={class:"emotion-analysis-simple"},It={class:"card-title"},Yt={class:"analysis-content"},Ht={key:0,class:"primary-emotion"},Et={key:0,class:"emotion-intensity"},Lt={key:1,class:"emotion-polarity"},Tt={key:2,class:"keywords"},Nt={class:"keywords-list"},Bt={key:3,class:"suggestion"},Rt={class:"suggestion-label"},Ft={class:"suggestion-content"},Ut={key:4,class:"confidence"},Vt={class:"confidence-value"},qt={__name:"EmotionAnalysisSimple",props:{analysis:{type:Object,required:!0,default:()=>({})}},setup(n){const t={joy:"喜悦",sadness:"悲伤",anger:"愤怒",fear:"恐惧",surprise:"惊讶",disgust:"厌恶",trust:"信任",anticipation:"期待",anxiety:"焦虑",depression:"抑郁",excitement:"兴奋",calm:"平静",stress:"压力",happiness:"快乐",worry:"担忧",relief:"放松",frustration:"沮丧",hope:"希望",love:"爱",hate:"恨"},e={positive:"积极",negative:"消极",neutral:"中性"},s=d=>t[d]||d,a=d=>e[d]||d,g=d=>({joy:"gold",happiness:"gold",excitement:"orange",love:"magenta",trust:"blue",hope:"cyan",calm:"green",relief:"green",sadness:"blue",depression:"purple",worry:"orange",anxiety:"orange",stress:"red",anger:"red",frustration:"red",hate:"red",fear:"volcano",surprise:"lime",anticipation:"geekblue",disgust:"default"})[d]||"default",h=d=>({positive:"success",negative:"error",neutral:"default"})[d]||"default",w=d=>d>=.8?"#52c41a":d>=.6?"#faad14":"#ff4d4f";return(d,c)=>{const O=z("a-tag"),A=z("a-progress"),j=z("a-card");return m(),y("div",zt,[l(j,{size:"small",class:"analysis-card"},{title:_(()=>[r("div",It,[l(i(Z),{class:"title-icon"}),c[0]||(c[0]=x(" 情绪分析 "))])]),default:_(()=>[r("div",Yt,[n.analysis.primaryEmotion?(m(),y("div",Ht,[c[1]||(c[1]=r("span",{class:"emotion-label"},"主要情绪:",-1)),l(O,{color:g(n.analysis.primaryEmotion),class:"emotion-tag"},{default:_(()=>[x(C(s(n.analysis.primaryEmotion)),1)]),_:1},8,["color"]),n.analysis.intensity?(m(),y("span",Et," ("+C(Math.round(n.analysis.intensity*100))+"%) ",1)):P("",!0)])):P("",!0),n.analysis.polarity?(m(),y("div",Lt,[c[2]||(c[2]=r("span",{class:"polarity-label"},"情绪倾向:",-1)),l(O,{color:h(n.analysis.polarity),class:"polarity-tag"},{default:_(()=>[x(C(a(n.analysis.polarity)),1)]),_:1},8,["color"])])):P("",!0),n.analysis.keywords&&n.analysis.keywords.length>0?(m(),y("div",Tt,[c[3]||(c[3]=r("span",{class:"keywords-label"},"关键词:",-1)),r("div",Nt,[(m(!0),y(q,null,G(n.analysis.keywords.slice(0,3),Y=>(m(),N(O,{key:Y,class:"keyword-tag",size:"small"},{default:_(()=>[x(C(Y),1)]),_:2},1024))),128))])])):P("",!0),n.analysis.suggestion?(m(),y("div",Bt,[r("div",Rt,[l(i(Re),{class:"suggestion-icon"}),c[4]||(c[4]=x(" 建议: "))]),r("div",Ft,C(n.analysis.suggestion),1)])):P("",!0),n.analysis.confidence?(m(),y("div",Ut,[c[5]||(c[5]=r("span",{class:"confidence-label"},"置信度:",-1)),l(A,{percent:Math.round(n.analysis.confidence*100),"stroke-color":w(n.analysis.confidence),size:"small","show-info":!1,style:{width:"80px",display:"inline-block","margin-left":"8px"}},null,8,["percent","stroke-color"]),r("span",Vt,C(Math.round(n.analysis.confidence*100))+"%",1)])):P("",!0)])]),_:1})])}}},Gt=Oe(qt,[["__scopeId","data-v-c61d1b05"]]);const Zt={class:"chat-complete"},Wt={class:"sidebar-header"},Jt={key:0,class:"logo"},Qt={key:0,class:"sidebar-content"},Xt={class:"conversations-list"},Kt={class:"list-header"},en={key:0,class:"conversations"},tn=["onClick"],nn={class:"conversation-info"},sn={class:"conversation-title"},an={class:"conversation-time"},rn={key:1,class:"empty-conversations"},on={key:1,class:"user-info"},ln={class:"user-avatar"},cn={class:"user-details"},un={class:"user-name"},dn={class:"chat-main"},fn={key:0,class:"chat-header"},mn={class:"chat-info"},vn={class:"chat-title"},pn={class:"chat-status"},gn={class:"chat-actions"},yn={key:0,class:"welcome-screen"},hn={class:"welcome-content"},_n={class:"welcome-icon"},bn={class:"welcome-features"},On={class:"feature-item"},wn={class:"feature-item"},Cn={class:"feature-item"},Mn={key:1,class:"messages-list"},Sn={class:"message-avatar"},Pn={class:"message-content"},$n={class:"message-bubble"},xn=["innerHTML"],jn={class:"message-time"},Dn={key:0,class:"emotion-analysis"},kn={key:0,class:"message-item assistant"},An={class:"message-avatar"},zn={key:1,class:"input-area"},In={class:"input-container"},Yn={class:"input-actions"},Hn={class:"connection-status"},En={class:"status-item"},Ln={class:"status-item"},Tn={class:"status-item"},Nn={class:"status-item"},Bn={class:"user-id"},Rn={__name:"ChatComplete",setup(n){He();const t=Ee(),e=$t(),s=k(!1),a=k(""),g=k(!0),h=k(null),w=k(!1),d=k({connected:!1}),c=k({healthy:!1}),O=V(()=>e.typing?"AI正在思考中...":"输入您想说的话..."),A=()=>{s.value=!s.value},j=async()=>{try{const u=`对话 ${new Date().toLocaleString()}`;await e.createConversation({userId:t.userInfo.id,title:u,type:"emotion_chat",initialMessage:"您好,我想开始一段新的对话"}),H.success("新对话创建成功")}catch(u){console.error("创建对话失败:",u)}},Y=async()=>{try{await e.fetchConversations(t.userInfo.id)}catch(u){console.error("刷新对话列表失败:",u)}},v=async u=>{try{await e.switchConversation(u),D()}catch(o){console.error("切换对话失败:",o)}},f=async u=>{try{await e.deleteConversation(u)}catch(o){console.error("删除对话失败:",o)}},p=async()=>{if(!a.value.trim())return;const u=a.value.trim();a.value="";try{await e.sendMessage(u,g.value),D()}catch(o){console.error("发送消息失败:",o)}},S=u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),p())},M=()=>{var u;return e.typing?"AI正在输入...":((u=e.currentConversation)==null?void 0:u.status)==="active"?"对话中":"已结束"},E=async()=>{if(e.currentConversation)try{await T.endConversation(e.currentConversation.conversationId),e.currentConversation.status="ended",H.success("对话已结束")}catch(u){console.error("结束对话失败:",u)}},L=async()=>{w.value=!0;try{const u=await T.healthCheck();d.value.connected=u.success,c.value.healthy=u.success&&u.data}catch{d.value.connected=!1,c.value.healthy=!1}},D=()=>{Ne(()=>{h.value&&(h.value.scrollTop=h.value.scrollHeight)})};return Le(()=>e.messages.length,()=>{D()}),Te(async()=>{console.log("ChatComplete组件挂载,用户信息:",t.userInfo),await Y(),!e.currentConversation&&e.conversations.length===0&&await j()}),(u,o)=>{const $=z("a-button"),Ce=z("a-menu-item"),Me=z("a-menu"),Se=z("a-dropdown"),Pe=z("a-textarea"),$e=z("a-tooltip"),F=z("a-tag"),xe=z("a-modal");return m(),y("div",Zt,[r("aside",{class:B(["sidebar",{collapsed:s.value}])},[r("div",Wt,[s.value?P("",!0):(m(),y("div",Jt,o[4]||(o[4]=[r("h2",{class:"gradient-text"},"情绪博物馆",-1),r("span",{class:"subtitle"},"AI心理助手",-1)]))),l($,{type:"text",class:"collapse-btn",onClick:A},{default:_(()=>[s.value?(m(),N(i(pt),{key:0})):(m(),N(i(mt),{key:1}))]),_:1})]),s.value?P("",!0):(m(),y("div",Qt,[l($,{type:"primary",class:"new-chat-btn",block:"",onClick:j,loading:i(e).loading,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-bottom":"20px"}},{default:_(()=>[l(i(_t)),o[5]||(o[5]=x(" 新建对话 "))]),_:1,__:[5]},8,["loading"]),r("div",Xt,[r("div",Kt,[o[6]||(o[6]=r("span",{class:"list-title"},"最近对话",-1)),l($,{type:"text",size:"small",onClick:Y,loading:i(e).loading},{default:_(()=>[l(i(Ct))]),_:1},8,["loading"])]),i(e).hasConversations?(m(),y("div",en,[(m(!0),y(q,null,G(i(e).conversations,b=>(m(),y("div",{class:B(["conversation-item",{active:b.conversationId===i(e).currentConversationId}]),key:b.conversationId,onClick:je=>v(b)},[r("div",nn,[r("div",sn,C(b.title),1),r("div",an,C(i(_e)(b.updateTime)),1)]),l(Se,{trigger:["click"],onClick:o[0]||(o[0]=Be(()=>{},["stop"]))},{overlay:_(()=>[l(Me,null,{default:_(()=>[l(Ce,{onClick:je=>f(b.conversationId)},{default:_(()=>[l(i(dt)),o[7]||(o[7]=x(" 删除对话 "))]),_:2,__:[7]},1032,["onClick"])]),_:2},1024)]),default:_(()=>[l($,{type:"text",size:"small",class:"more-btn"},{default:_(()=>[l(i(yt))]),_:1})]),_:2},1024)],10,tn))),128))])):(m(),y("div",rn,[l(i(ct),{class:"empty-icon"}),o[8]||(o[8]=r("p",null,"暂无对话记录",-1))]))])])),s.value?P("",!0):(m(),y("div",on,[r("div",ln,[l(i(he))]),r("div",cn,[r("div",un,C(i(t).userInfo.name),1),r("div",{class:B(["user-status",{guest:i(t).userInfo.isGuest}])},C(i(t).userInfo.isGuest?"访客模式":"在线"),3)])]))],2),r("main",dn,[i(e).currentConversation?(m(),y("header",fn,[r("div",mn,[r("h3",vn,C(i(e).currentConversation.title),1),r("span",pn,C(M()),1)]),r("div",gn,[l($,{type:"text",onClick:L},{default:_(()=>[l(i(lt)),o[9]||(o[9]=x(" 连接状态 "))]),_:1,__:[9]}),i(e).currentConversation.status==="active"?(m(),N($,{key:0,type:"text",onClick:E},{default:_(()=>[l(i(Ot)),o[10]||(o[10]=x(" 结束对话 "))]),_:1,__:[10]})):P("",!0)])])):P("",!0),r("div",{class:"messages-container",ref_key:"messagesContainer",ref:h},[i(e).currentConversation?(m(),y("div",Mn,[(m(!0),y(q,null,G(i(e).messages,b=>(m(),y("div",{class:B(["message-item",b.sender]),key:b.id},[r("div",Sn,[b.sender==="user"?(m(),N(i(he),{key:0})):(m(),N(i(U),{key:1}))]),r("div",Pn,[r("div",$n,[r("div",{class:"message-text",innerHTML:i(kt)(b.content)},null,8,xn),r("div",jn,C(i(_e)(b.timestamp)),1)]),b.emotionAnalysis?(m(),y("div",Dn,[l(Gt,{analysis:b.emotionAnalysis},null,8,["analysis"])])):P("",!0)])],2))),128)),i(e).typing?(m(),y("div",kn,[r("div",An,[l(i(U))]),o[17]||(o[17]=r("div",{class:"message-content"},[r("div",{class:"message-bubble typing"},[r("div",{class:"typing-indicator"},[r("span"),r("span"),r("span")]),r("div",{class:"typing-text"},"AI正在思考中...")])],-1))])):P("",!0)])):(m(),y("div",yn,[r("div",hn,[r("div",_n,[l(i(U))]),o[15]||(o[15]=r("h2",{class:"welcome-title"},"欢迎使用AI心理健康助手",-1)),o[16]||(o[16]=r("p",{class:"welcome-description"}," 我是您的专属AI助手,可以为您提供情绪支持、心理分析和个性化建议。 让我们开始一段温暖的对话吧! ",-1)),r("div",bn,[r("div",On,[l(i(Z)),o[11]||(o[11]=r("span",null,"情绪分析",-1))]),r("div",wn,[l(i(oe)),o[12]||(o[12]=r("span",null,"智能对话",-1))]),r("div",Cn,[l(i(Fe)),o[13]||(o[13]=r("span",null,"隐私保护",-1))])]),l($,{type:"primary",size:"large",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-top":"20px"}},{default:_(()=>[l(i(oe)),o[14]||(o[14]=x(" 开始对话 "))]),_:1,__:[14]})])]))],512),i(e).currentConversation?(m(),y("div",zn,[r("div",In,[l(Pe,{value:a.value,"onUpdate:value":o[1]||(o[1]=b=>a.value=b),placeholder:O.value,"auto-size":{minRows:1,maxRows:4},onKeydown:S,disabled:i(e).typing,class:"message-input"},null,8,["value","placeholder","disabled"]),r("div",Yn,[l($e,{title:"情绪分析"},{default:_(()=>[l($,{type:"text",class:B({active:g.value}),onClick:o[2]||(o[2]=b=>g.value=!g.value)},{default:_(()=>[l(i(Z))]),_:1},8,["class"])]),_:1}),l($,{type:"primary",class:"send-btn",onClick:p,loading:i(e).typing,disabled:!a.value.trim(),style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none"}},{default:_(()=>[l(i(St))]),_:1},8,["loading","disabled"])])])])):P("",!0)]),l(xe,{open:w.value,"onUpdate:open":o[3]||(o[3]=b=>w.value=b),title:"连接状态",footer:null,width:"400px"},{default:_(()=>[r("div",Hn,[r("div",En,[o[19]||(o[19]=r("span",{class:"status-label"},"前端状态:",-1)),l(F,{color:"success"},{default:_(()=>o[18]||(o[18]=[x("正常")])),_:1,__:[18]})]),r("div",Ln,[o[20]||(o[20]=r("span",{class:"status-label"},"后端连接:",-1)),l(F,{color:d.value.connected?"success":"error"},{default:_(()=>[x(C(d.value.connected?"已连接":"连接失败"),1)]),_:1},8,["color"])]),r("div",Tn,[o[21]||(o[21]=r("span",{class:"status-label"},"AI服务:",-1)),l(F,{color:c.value.healthy?"success":"warning"},{default:_(()=>[x(C(c.value.healthy?"正常":"检查中"),1)]),_:1},8,["color"])]),r("div",Nn,[o[22]||(o[22]=r("span",{class:"status-label"},"用户ID:",-1)),r("span",Bn,C(i(t).userInfo.id),1)])])]),_:1},8,["open"])])}}},Vn=Oe(Rn,[["__scopeId","data-v-23c54516"]]);export{Vn as default}; diff --git a/build-output/web/assets/js/HistorySimple-e430de64.js b/build-output/web/assets/js/HistorySimple-e430de64.js deleted file mode 100644 index 68a4578..0000000 --- a/build-output/web/assets/js/HistorySimple-e430de64.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as p,u as d,b as m,o as v,e as f,f as s,c as e,w as n,g as l}from"./index-bf5be19f.js";const y={class:"history-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},x={__name:"HistorySimple",setup(B){const i=d(),r=()=>{i.push("/")},_=()=>{alert("历史记录页面测试按钮工作正常!")};return(a,t)=>{const o=m("a-button");return v(),f("div",y,[s("div",k,[t[3]||(t[3]=s("h1",null,"对话历史",-1)),e(o,{onClick:r},{default:n(()=>t[2]||(t[2]=[l("返回首页")])),_:1,__:[2]})]),s("div",b,[s("div",g,[t[7]||(t[7]=s("h2",null,"对话历史记录",-1)),t[8]||(t[8]=s("p",null,"这里将显示您的所有对话历史记录。",-1)),s("div",C,[e(o,{type:"primary",onClick:_},{default:n(()=>t[4]||(t[4]=[l("测试按钮")])),_:1,__:[4]}),e(o,{onClick:t[0]||(t[0]=u=>a.$router.push("/chat"))},{default:n(()=>t[5]||(t[5]=[l("开始对话")])),_:1,__:[5]}),e(o,{onClick:t[1]||(t[1]=u=>a.$router.push("/analysis"))},{default:n(()=>t[6]||(t[6]=[l("情绪分析")])),_:1,__:[6]})])])])])}}},c=p(x,[["__scopeId","data-v-4baa7231"]]);export{c as default}; diff --git a/build-output/web/assets/js/Home-8e72349b.js b/build-output/web/assets/js/Home-8e72349b.js deleted file mode 100644 index 58b885f..0000000 --- a/build-output/web/assets/js/Home-8e72349b.js +++ /dev/null @@ -1 +0,0 @@ -import{c,C as ae,d as l,_ as X,r as ne,a as P,b as k,o as p,e as v,w as f,f as n,g,F as R,h as x,t as w,i as E,m as u,E as z,u as oe,j as ce,k as le,l as A,n as ie,p as ue}from"./index-bf5be19f.js";import{A as $,r as y,c as I,g as S,M,H as de,B as fe,S as ge,R as me}from"./chat-e1054b12.js";var pe={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-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};const ve=pe;var he={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"};const ye=he;var _e={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-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};const be=_e;var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Ce=Oe;function T(t){for(var e=1;es.success);return l("所有服务测试结果:",t),{success:e,message:e?"所有服务连接正常":"部分服务连接失败",results:t}},async testUserRegister(){l("开始测试用户注册流程...");const t={account:`test_${Date.now()}`,password:"Test123456",email:`test_${Date.now()}@example.com`,phone:`138${Date.now().toString().slice(-8)}`,nickname:"测试用户"};try{const e=await W.register(t);return l("用户注册测试成功:",e),{success:!0,message:"用户注册流程正常",data:e}}catch(e){return l("用户注册测试失败:",e),{success:!1,message:"用户注册流程失败",error:e.message}}},async testAiChat(){l("开始测试AI对话流程...");try{const t={userId:"test_user",title:"测试会话",type:"chat"},e=await I.createConversation(t);if(l("创建会话测试:",e),!e.success)throw new Error("创建会话失败");const s={userId:"test_user",conversationId:e.data.conversationId,message:"你好,这是一条测试消息"},r=await I.sendMessage(s);return l("发送消息测试:",r),{success:!0,message:"AI对话流程正常",data:{conversation:e.data,chat:r.data}}}catch(t){return l("AI对话测试失败:",t),{success:!1,message:"AI对话流程失败",error:t.message}}},async testEmotionAnalysis(){l("开始测试情绪分析...");try{const t={userId:"test_user",text:"我今天心情很好,阳光明媚,感觉充满了希望和活力。"},e=await I.analyzeEmotion(t);return l("情绪分析测试:",e),{success:!0,message:"情绪分析功能正常",data:e.data}}catch(t){return l("情绪分析测试失败:",t),{success:!1,message:"情绪分析功能失败",error:t.message}}},async testGuestChat(){l("开始测试访客聊天功能...");try{const t=await S.getGuestUserInfo();if(l("获取访客用户信息:",t),!t.success)throw new Error("获取访客用户信息失败");const e={message:"你好,我是访客用户,这是一条测试消息。",title:"访客测试会话"},s=await S.guestChat(e);if(l("访客聊天测试:",s),!s.success)throw new Error("访客聊天失败");const r=await S.getGuestConversations();return l("访客会话列表:",r),{success:!0,message:"访客聊天功能正常",data:{userInfo:t.data,chat:s.data,conversations:r.data}}}catch(t){return l("访客聊天测试失败:",t),{success:!1,message:"访客聊天功能失败",error:t.message}}},async testGuestEmotionAnalysis(){l("开始测试访客情绪分析...");try{const t={text:"我感到有些焦虑和不安,不知道该怎么办。"},e=await S.analyzeGuestEmotion(t);return l("访客情绪分析测试:",e),{success:!0,message:"访客情绪分析功能正常",data:e.data}}catch(t){return l("访客情绪分析测试失败:",t),{success:!1,message:"访客情绪分析功能失败",error:t.message}}},async testGuestHealthCheck(){l("开始测试访客服务健康检查...");try{const t=await S.guestHealthCheck();return l("访客服务健康检查:",t),{success:!0,message:"访客服务健康检查正常",data:t.data}}catch(t){return l("访客服务健康检查失败:",t),{success:!1,message:"访客服务健康检查失败",error:t.message}}}};const Le={class:"api-test"},Re={class:"test-buttons"},xe={key:0,class:"test-results"},ze={class:"result-details"},Ve={key:0,class:"result-data"},Be={key:1,class:"result-error"},De={class:"result-time"},Ge={__name:"ApiTest",setup(t){const e=ne({all:!1,user:!1,ai:!1,register:!1,chat:!1,emotion:!1,guestChat:!1,guestEmotion:!1,guestHealth:!1}),s=P([]),r=a=>{s.value.unshift({...a,timestamp:new Date().toLocaleString()})},i=a=>{s.value.splice(a,1)},H=()=>{s.value=[],u.success("已清空测试结果")},j=async()=>{e.all=!0;try{const a=await _.testAllServices();r({...a,description:`环境: ${z.APP_ENV}, API地址: ${z.API_BASE_URL}`}),a.success?u.success("所有服务测试完成"):u.warning("部分服务测试失败")}catch(a){r({success:!1,message:"测试执行失败",error:a.message}),u.error("测试执行失败")}finally{e.all=!1}},L=async()=>{e.user=!0;try{const a=await _.testUserService();r(a),a.success?u.success("用户服务测试成功"):u.error("用户服务测试失败")}catch(a){r({success:!1,message:"用户服务测试失败",error:a.message}),u.error("用户服务测试失败")}finally{e.user=!1}},b=async()=>{e.ai=!0;try{const a=await _.testAiService();r(a),a.success?u.success("AI服务测试成功"):u.error("AI服务测试失败")}catch(a){r({success:!1,message:"AI服务测试失败",error:a.message}),u.error("AI服务测试失败")}finally{e.ai=!1}},o=async()=>{e.register=!0;try{const a=await _.testUserRegister();r(a),a.success?u.success("用户注册测试成功"):u.error("用户注册测试失败")}catch(a){r({success:!1,message:"用户注册测试失败",error:a.message}),u.error("用户注册测试失败")}finally{e.register=!1}},C=async()=>{e.chat=!0;try{const a=await _.testAiChat();r(a),a.success?u.success("AI对话测试成功"):u.error("AI对话测试失败")}catch(a){r({success:!1,message:"AI对话测试失败",error:a.message}),u.error("AI对话测试失败")}finally{e.chat=!1}},m=async()=>{e.emotion=!0;try{const a=await _.testEmotionAnalysis();r(a),a.success?u.success("情绪分析测试成功"):u.error("情绪分析测试失败")}catch(a){r({success:!1,message:"情绪分析测试失败",error:a.message}),u.error("情绪分析测试失败")}finally{e.emotion=!1}},Y=async()=>{e.guestChat=!0;try{const a=await _.testGuestChat();r(a),a.success?u.success("访客聊天测试成功"):u.error("访客聊天测试失败")}catch(a){r({success:!1,message:"访客聊天测试失败",error:a.message}),u.error("访客聊天测试失败")}finally{e.guestChat=!1}},Z=async()=>{e.guestEmotion=!0;try{const a=await _.testGuestEmotionAnalysis();r(a),a.success?u.success("访客情绪分析测试成功"):u.error("访客情绪分析测试失败")}catch(a){r({success:!1,message:"访客情绪分析测试失败",error:a.message}),u.error("访客情绪分析测试失败")}finally{e.guestEmotion=!1}},K=async()=>{e.guestHealth=!0;try{const a=await _.testGuestHealthCheck();r(a),a.success?u.success("访客服务健康检查成功"):u.error("访客服务健康检查失败")}catch(a){r({success:!1,message:"访客服务健康检查失败",error:a.message}),u.error("访客服务健康检查失败")}finally{e.guestHealth=!1}};return(a,d)=>{const h=k("a-button"),ee=k("a-space"),te=k("a-divider"),se=k("a-alert"),re=k("a-card");return p(),v("div",Le,[c(re,{title:"API接口测试",size:"small"},{default:f(()=>[n("div",Re,[c(ee,{wrap:""},{default:f(()=>[c(h,{type:"primary",onClick:j,loading:e.all},{default:f(()=>d[0]||(d[0]=[g(" 测试所有服务 ")])),_:1,__:[0]},8,["loading"]),c(h,{onClick:L,loading:e.user},{default:f(()=>d[1]||(d[1]=[g(" 测试用户服务 ")])),_:1,__:[1]},8,["loading"]),c(h,{onClick:b,loading:e.ai},{default:f(()=>d[2]||(d[2]=[g(" 测试AI服务 ")])),_:1,__:[2]},8,["loading"]),c(h,{onClick:o,loading:e.register},{default:f(()=>d[3]||(d[3]=[g(" 测试用户注册 ")])),_:1,__:[3]},8,["loading"]),c(h,{onClick:C,loading:e.chat},{default:f(()=>d[4]||(d[4]=[g(" 测试AI对话 ")])),_:1,__:[4]},8,["loading"]),c(h,{onClick:m,loading:e.emotion},{default:f(()=>d[5]||(d[5]=[g(" 测试情绪分析 ")])),_:1,__:[5]},8,["loading"]),c(h,{onClick:Y,loading:e.guestChat},{default:f(()=>d[6]||(d[6]=[g(" 测试访客聊天 ")])),_:1,__:[6]},8,["loading"]),c(h,{onClick:Z,loading:e.guestEmotion},{default:f(()=>d[7]||(d[7]=[g(" 测试访客情绪分析 ")])),_:1,__:[7]},8,["loading"]),c(h,{onClick:K,loading:e.guestHealth},{default:f(()=>d[8]||(d[8]=[g(" 测试访客服务 ")])),_:1,__:[8]},8,["loading"]),c(h,{onClick:H,type:"dashed"},{default:f(()=>d[9]||(d[9]=[g(" 清空结果 ")])),_:1,__:[9]})]),_:1})]),s.value.length>0?(p(),v("div",xe,[c(te,null,{default:f(()=>d[10]||(d[10]=[g("测试结果")])),_:1,__:[10]}),(p(!0),v(R,null,x(s.value,(O,U)=>(p(),v("div",{key:U,class:"result-item"},[c(se,{type:O.success?"success":"error",message:O.message,description:O.description,"show-icon":"",closable:"",onClose:ut=>i(U)},{description:f(()=>[n("div",ze,[O.data?(p(),v("div",Ve,[d[11]||(d[11]=n("strong",null,"响应数据:",-1)),n("pre",null,w(JSON.stringify(O.data,null,2)),1)])):E("",!0),O.error?(p(),v("div",Be,[d[12]||(d[12]=n("strong",null,"错误信息:",-1)),n("code",null,w(O.error),1)])):E("",!0),n("div",De,[n("small",null,"测试时间: "+w(O.timestamp),1)])])]),_:2},1032,["type","message","description","onClose"])]))),128))])):E("",!0)]),_:1})])}}},Ne=X(Ge,[["__scopeId","data-v-5881151e"]]);const Ue={class:"home-container"},Me={class:"header glass"},Te={class:"header-content"},Fe={class:"nav-menu"},qe={class:"main-content"},Je={class:"hero-section"},Qe={class:"hero-content fade-in-up"},We={class:"hero-actions"},Xe={class:"hero-decoration"},Ye={class:"floating-card card bounce-in",style:{"animation-delay":"0.2s"}},Ze={class:"floating-card card bounce-in",style:{"animation-delay":"0.4s"}},Ke={class:"floating-card card bounce-in",style:{"animation-delay":"0.6s"}},et={class:"features-grid"},tt={class:"feature-icon"},st={class:"feature-title"},rt={class:"feature-description"},at={class:"stats-section"},nt={class:"stats-container glass"},ot={class:"stat-number gradient-text"},ct={class:"stat-label"},lt={key:0,class:"api-test-section"},it={__name:"Home",setup(t){const e=oe(),s=P(null),r=ce(()=>z.isDevelopment),i=P([{id:1,icon:me,title:"AI智能对话",description:"基于先进的自然语言处理技术,提供自然流畅的对话体验"},{id:2,icon:Ee,title:"情绪分析",description:"实时分析您的情绪状态,提供专业的心理健康评估"},{id:3,icon:Ie,title:"24/7支持",description:"全天候在线服务,随时随地为您提供情绪支持和心理疏导"},{id:4,icon:je,title:"隐私保护",description:"严格保护用户隐私,所有对话内容都经过加密处理"}]),H=P([{value:"10,000+",label:"用户信赖"},{value:"50,000+",label:"对话次数"},{value:"95%",label:"满意度"},{value:"24/7",label:"在线服务"}]),j=()=>{console.log("开始对话按钮被点击"),e.push("/chat")},L=()=>{var b;(b=s.value)==null||b.scrollIntoView({behavior:"smooth"})};return le(()=>{document.body.style.overflow="hidden",setTimeout(()=>{document.body.style.overflow="auto"},1e3)}),(b,o)=>{const C=k("a-button");return p(),v("div",Ue,[n("header",Me,[n("div",Te,[o[6]||(o[6]=n("div",{class:"logo"},[n("h1",{class:"gradient-text"},"情绪博物馆"),n("span",{class:"subtitle"},"AI心理健康助手")],-1)),n("nav",Fe,[c(C,{type:"text",class:"nav-item",onClick:o[0]||(o[0]=m=>b.$router.push("/chat"))},{default:f(()=>[c(A(M)),o[3]||(o[3]=g(" AI对话 "))]),_:1,__:[3]}),c(C,{type:"text",class:"nav-item",onClick:o[1]||(o[1]=m=>b.$router.push("/history"))},{default:f(()=>[c(A($e)),o[4]||(o[4]=g(" 历史记录 "))]),_:1,__:[4]}),c(C,{type:"text",class:"nav-item",onClick:o[2]||(o[2]=m=>b.$router.push("/analysis"))},{default:f(()=>[c(A(we)),o[5]||(o[5]=g(" 情绪分析 "))]),_:1,__:[5]})])])]),n("main",qe,[n("div",Je,[n("div",Qe,[o[9]||(o[9]=n("h2",{class:"hero-title"}," 欢迎来到情绪博物馆 ",-1)),o[10]||(o[10]=n("p",{class:"hero-description"}," 您的专属AI心理健康助手,提供24/7情绪支持、心理分析和个性化建议 ",-1)),n("div",We,[c(C,{type:"primary",size:"large",class:"start-chat-btn",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-right":"16px"}},{default:f(()=>[c(A(M)),o[7]||(o[7]=g(" 开始对话 "))]),_:1,__:[7]}),c(C,{size:"large",class:"learn-more-btn",onClick:L,style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white"}},{default:f(()=>o[8]||(o[8]=[g(" 了解更多 ")])),_:1,__:[8]})])]),n("div",Xe,[n("div",Ye,[c(A(de),{class:"icon"}),o[11]||(o[11]=n("span",null,"情绪识别",-1))]),n("div",Ze,[c(A(fe),{class:"icon"}),o[12]||(o[12]=n("span",null,"智能建议",-1))]),n("div",Ke,[c(A(ge),{class:"icon"}),o[13]||(o[13]=n("span",null,"隐私保护",-1))])])]),n("section",{class:"features-section",ref_key:"featuresRef",ref:s},[o[14]||(o[14]=n("div",{class:"section-header"},[n("h3",{class:"section-title gradient-text"},"核心功能"),n("p",{class:"section-description"},"专业的AI技术,贴心的情绪关怀")],-1)),n("div",et,[(p(!0),v(R,null,x(i.value,m=>(p(),v("div",{class:"feature-card card",key:m.id},[n("div",tt,[(p(),ie(ue(m.icon)))]),n("h4",st,w(m.title),1),n("p",rt,w(m.description),1)]))),128))])],512),n("section",at,[n("div",nt,[(p(!0),v(R,null,x(H.value,m=>(p(),v("div",{class:"stat-item",key:m.label},[n("div",ot,w(m.value),1),n("div",ct,w(m.label),1)]))),128))])]),r.value?(p(),v("section",lt,[c(Ne)])):E("",!0)]),o[15]||(o[15]=n("footer",{class:"footer"},[n("div",{class:"footer-content"},[n("p",null,"© 2025 情绪博物馆. 用心守护每一份情绪")])],-1))])}}},gt=X(it,[["__scopeId","data-v-d42b9121"]]);export{gt as default}; diff --git a/build-output/web/assets/js/HomeTest-a9ed2425.js b/build-output/web/assets/js/HomeTest-a9ed2425.js deleted file mode 100644 index cc87679..0000000 --- a/build-output/web/assets/js/HomeTest-a9ed2425.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r,u as i,a as _,k as p,o as d,e as m,f as t,t as b}from"./index-bf5be19f.js";const v={class:"home-test"},T={class:"info"},f={__name:"HomeTest",setup(g){const o=i(),e=_(""),n=()=>{e.value=new Date().toLocaleString()},l=()=>{alert("测试按钮工作正常!Vue应用运行正常!")},a=()=>{o.push("/chat")},u=()=>{o.push("/history")},c=()=>{o.push("/analysis")};return p(()=>{n(),setInterval(n,1e3),console.log("HomeTest页面加载成功")}),(k,s)=>(d(),m("div",v,[s[1]||(s[1]=t("h1",null,"情绪博物馆测试页面",-1)),s[2]||(s[2]=t("p",null,"如果您能看到这个页面,说明Vue应用正在正常工作!",-1)),t("div",{class:"test-buttons"},[t("button",{onClick:l,class:"test-btn"},"测试按钮1"),t("button",{onClick:a,class:"test-btn"},"前往聊天页面"),t("button",{onClick:u,class:"test-btn"},"前往历史页面"),t("button",{onClick:c,class:"test-btn"},"前往分析页面")]),t("div",T,[t("p",null,"当前时间: "+b(e.value),1),s[0]||(s[0]=t("p",null,"页面加载状态: 正常",-1))])]))}},h=r(f,[["__scopeId","data-v-6c328404"]]);export{h as default}; diff --git a/build-output/web/assets/js/chat-e1054b12.js b/build-output/web/assets/js/chat-e1054b12.js deleted file mode 100644 index d627afe..0000000 --- a/build-output/web/assets/js/chat-e1054b12.js +++ /dev/null @@ -1,62 +0,0 @@ -import{I as Ue,J as Ut,G as kt,c as L,E as k,d as Y,m as ke}from"./index-bf5be19f.js";var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const Dt=Ft;var It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};const $t=It;var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"};const zt=Mt;var qt={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"};const Ht=qt;var Vt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const Jt=Vt;var Fe=[],M=[],Wt="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gt(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Xt(e,t){if(t=t||{},e===void 0)throw new Error(Wt);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=Fe.indexOf(r);o===-1&&(o=Fe.push(r)-1,M[o]={});var s;return M[o]!==void 0&&M[o][n]!==void 0?s=M[o][n]:(s=M[o][n]=Gt(),n==="prepend"?r.insertBefore(s,r.childNodes[0]):r.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function De(e){for(var t=1;t * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,$e=!1,Zt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qt;kt(function(){$e||(typeof window<"u"&&window.document&&window.document.documentElement&&Xt(t,{prepend:!0}),$e=!0)})},Yt=["icon","primaryColor","secondaryColor"];function en(e,t){if(e==null)return{};var n=tn(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function G(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}ut("#1890ff");var D=function(t,n){var r,o=qe({},t,n.attrs),s=o.class,i=o.icon,c=o.spin,f=o.rotate,l=o.tabindex,u=o.twoToneColor,d=o.onClick,b=gn(o,dn),S=(r={anticon:!0},me(r,"anticon-".concat(i.name),!!i.name),me(r,s,s),r),p=c===""||c||i.name==="loading"?"anticon-spin":"",m=l;m===void 0&&d&&(m=-1,b.tabindex=m);var h=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,g=lt(u),w=pn(g,2),E=w[0],v=w[1];return L("span",qe({role:"img","aria-label":i.name},b,{onClick:d,class:S}),[L(Ee,{class:p,icon:i,primaryColor:E,secondaryColor:v,style:h},null)])};D.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};D.displayName="AntdIcon";D.inheritAttrs=!1;D.getTwoToneColor=fn;D.setTwoToneColor=ut;const V=D;function He(e){for(var t=1;tt=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:I}=Array,H=se("undefined");function An(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=_("ArrayBuffer");function vn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Pn=se("string"),A=se("function"),ht=se("number"),ie=e=>e!==null&&typeof e=="object",_n=e=>e===!0||e===!1,X=e=>{if(oe(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dt in e)&&!(re in e)},xn=_("Date"),jn=_("File"),Nn=_("Blob"),Bn=_("FileList"),Ln=e=>ie(e)&&A(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=oe(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},kn=_("URLSearchParams"),[Fn,Dn,In,$n]=["ReadableStream","Request","Response","Headers"].map(_),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yt=e=>!H(e)&&e!==B;function ye(){const{caseless:e}=yt(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;X(t[s])&&X(r)?t[s]=ye(t[s],r):X(r)?t[s]=ye({},r):I(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&A(o)?e[s]=ft(o,n):e[s]=o},{allOwnKeys:r}),e),qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wn=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Xn=(e,t)=>{const r=(e&&e[re]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Kn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=_("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yn=_("RegExp"),bt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},er=e=>{bt(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return I(e)?r(e):r(String(e).split(t)),n},nr=()=>{},rr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&A(e.append)&&e[dt]==="FormData"&&e[re])}const sr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=I(r)?[]:{};return J(r,(i,c)=>{const f=n(i,o+1);!H(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},ir=_("AsyncFunction"),ar=e=>e&&(ie(e)||A(e))&&A(e.then)&&A(e.catch),gt=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),cr=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||gt,lr=e=>e!=null&&A(e[re]),a={isArray:I,isArrayBuffer:pt,isBuffer:An,isFormData:Un,isArrayBufferView:vn,isString:Pn,isNumber:ht,isBoolean:_n,isObject:ie,isPlainObject:X,isReadableStream:Fn,isRequest:Dn,isResponse:In,isHeaders:$n,isUndefined:H,isDate:xn,isFile:jn,isBlob:Nn,isRegExp:Yn,isFunction:A,isStream:Ln,isURLSearchParams:kn,isTypedArray:Gn,isFileList:Bn,forEach:J,merge:ye,extend:zn,trim:Mn,stripBOM:qn,inherits:Hn,toFlatObject:Vn,kindOf:oe,kindOfTest:_,endsWith:Jn,toArray:Wn,forEachEntry:Xn,matchAll:Kn,isHTMLForm:Qn,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:bt,freezeMethods:er,toObjectSet:tr,toCamelCase:Zn,noop:nr,toFiniteNumber:rr,findKey:mt,global:B,isContextDefined:yt,isSpecCompliantForm:or,toJSONObject:sr,isAsyncFn:ir,isThenable:ar,setImmediate:gt,asap:cr,isIterable:lr};function y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const wt=y.prototype,Ot={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ot[e]={value:e}});Object.defineProperties(y,Ot);Object.defineProperty(wt,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(wt);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ur=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(o,s){return o=St(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function fr(e){return a.isArray(e)&&!e.some(be)}const dr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let g=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&fr(p)||(a.isFileList(p)||a.endsWith(m,"[]"))&&(g=a.toArray(p)))return m=St(m),g.forEach(function(E,v){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Ke([m],v,s):i===null?m:m+"[]",l(E))}),!1}return be(p)?!0:(t.append(Ke(h,m,s),l(p)),!1)}const d=[],b=Object.assign(dr,{defaultVisitor:u,convertValue:l,isVisitable:be});function S(p,m){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),a.forEach(p,function(g,w){(!(a.isUndefined(g)||g===null)&&o.call(t,g,a.isString(w)?w.trim():w,m,b))===!0&&S(g,m?m.concat(w):[w])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ae(e,this,t)}const Et=_e.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Qe)}:Qe;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||pr;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class hr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ze=hr,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:_e,yr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,gr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:yr,Blob:br},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,wr=xe&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Or=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Sr=xe&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:wr,hasStandardBrowserWebWorkerEnv:Or,navigator:ge,origin:Sr},Symbol.toStringTag,{value:"Module"})),C={...Er,...gr};function Rr(e,t){return ae(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Cr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,f?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Tr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Cr(r),o,n,0)}),n}return null}function Ar(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const je={transitional:Ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Tt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Ar(t)):t}],transformResponse:[function(t){const n=this.transitional||je.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{je.headers[e]={}});const Ne=je,vr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:a.isArray(e)?e.map(K):String(e)}function _r(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,l){const u=z(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||f]=K(c))}const i=(c,f)=>a.forEach(c,(l,u)=>s(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!xr(t))i(Pr(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _r(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||fe(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=K(o),delete n[s];return}const c=t?jr(s):String(s).trim();c!==s&&delete n[s],n[c]=K(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=z(i);r[c]||(Nr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ce);const P=ce;function de(e,t){const n=this||Ne,r=t||n,o=P.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function At(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function vt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[s];i||(i=l),n[o]=f,r[o]=l;let d=s,b=0;for(;d!==o;)b+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const ee=(e,t,n=3)=>{let r=0;const o=Lr(50,250);return Ur(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,l=o(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},et=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tt=e=>(...t)=>a.asap(()=>e(...t)),kr=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Fr=C.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Dr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ir(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,n){let r=!Dr(t);return e&&(r||n==!1)?Ir(e,t):t}const nt=e=>e instanceof P?{...e}:e;function U(e,t){t=t||{};const n={};function r(l,u,d,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,d,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,b)}else return r(l,u,d,b)}function s(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>o(nt(l),nt(u),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||o,b=d(e[u],t[u],u);a.isUndefined(b)&&d!==c||(n[u]=b)}),n}const _t=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=P.from(i),t.url=Rt(Pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(C.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const l=o&&s&&Fr.read(s);l&&i.set(o,l)}return t},$r=typeof XMLHttpRequest<"u",Mr=$r&&function(e){return new Promise(function(n,r){const o=_t(e);let s=o.data;const i=P.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,d,b,S,p;function m(){S&&S(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function g(){if(!h)return;const E=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};vt(function(N){n(N),m()},function(N){r(N),m()},T),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Ct;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new y(v,T.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(v,T){h.setRequestHeader(T,v)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([b,p]=ee(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=ee(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=E=>{h&&(r(!E||E.type?new $(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=Br(o.url);if(w&&C.protocols.indexOf(w)===-1){r(new y("Unsupported protocol "+w+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},zr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof y?u:new $(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},qr=zr,Hr=function*(e,t){let n=e.byteLength;if(!t||n{const o=Vr(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let b=s+=d;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},le=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=le&&typeof ReadableStream=="function",Wr=le&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gr=xt&&jt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ot=64*1024,we=xt&&jt(()=>a.isReadableStream(new Response("").body)),te={stream:we&&(e=>e.body)};le&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Xr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Wr(e)).byteLength},Kr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Xr(t)},Qr=le&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:b}=_t(e);l=l?(l+"").toLowerCase():"text";let S=qr([o,s&&s.toAbortSignal()],i),p;const m=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&Gr&&n!=="get"&&n!=="head"&&(h=await Kr(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),j;if(a.isFormData(r)&&(j=T.headers.get("content-type"))&&u.setContentType(j),T.body){const[N,W]=et(h,ee(tt(f)));r=rt(T.body,ot,N,W)}}a.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let w=await fetch(p,b);const E=we&&(l==="stream"||l==="response");if(we&&(c||E&&m)){const T={};["status","statusText","headers"].forEach(Le=>{T[Le]=w[Le]});const j=a.toFiniteNumber(w.headers.get("content-length")),[N,W]=c&&et(j,ee(tt(c),!0))||[];w=new Response(rt(w.body,ot,N,()=>{W&&W(),m&&m()}),T)}l=l||"text";let v=await te[a.findKey(te,l)||"text"](w,e);return!E&&m&&m(),await new Promise((T,j)=>{vt(T,j,{data:v,headers:P.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:p})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:g.cause||g}):y.from(g,g&&g.code,e,p)}}),Oe={http:ur,xhr:Mr,fetch:Qr};a.forEach(Oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Zr=e=>a.isFunction(e)||e===null||e===!1,Nt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : -`+s.map(st).join(` -`):" "+st(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Oe};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function it(e){return pe(e),e.headers=P.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt.getAdapter(e.adapter||Ne.adapter)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return At(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const Bt="1.10.0",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ue.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Bt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!at[i]&&(at[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const Q={assertOptions:Yr,validators:ue},x=Q.validators;class ne{constructor(t){this.defaults=t||{},this.interceptors={request:new Ze,response:new Ze}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Q.assertOptions(o,{encode:x.function,serialize:x.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=P.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,b;if(!f){const p=[it.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),b=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new $(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Be(function(o){t=o}),cancel:t}}}const eo=Be;function to(e){return function(n){return e.apply(null,n)}}function no(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach(([e,t])=>{Se[t]=e});const ro=Se;function Lt(e){const t=new Z(e),n=ft(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lt(U(e,o))},n}const R=Lt(Ne);R.Axios=Z;R.CanceledError=$;R.CancelToken=eo;R.isCancel=At;R.VERSION=Bt;R.toFormData=ae;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=to;R.isAxiosError=no;R.mergeConfig=U;R.AxiosHeaders=P;R.formToJSON=e=>Tt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Nt.getAdapter;R.HttpStatusCode=ro;R.default=R;const oo=R,O=oo.create({baseURL:k.API_BASE_URL,timeout:k.API_TIMEOUT,headers:{"Content-Type":"application/json"}});k.DEBUG_MODE&&(console.log("=== API配置信息 ==="),console.log("Base URL:",k.API_BASE_URL),console.log("Timeout:",k.API_TIMEOUT),console.log("Environment:",k.APP_ENV),console.log("================"));O.interceptors.request.use(e=>{var n;const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),Y("发送请求:",(n=e.method)==null?void 0:n.toUpperCase(),e.url,e.data||e.params),e},e=>(Y("请求错误:",e),Promise.reject(e)));O.interceptors.response.use(e=>{const{data:t}=e;if(Y("收到响应:",e.config.url,t),t.code===200)return{success:!0,data:t.data,message:t.message};{const n=t.message||"请求失败";return ke.error(n),{success:!1,data:null,message:n}}},e=>{Y("响应错误:",e);let t="网络错误";if(e.response){const{status:n,data:r}=e.response;switch(n){case 400:t=r.message||"请求参数错误";break;case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=r.message||`请求失败 (${n})`}}else e.request?t="网络连接失败,请检查网络":t=e.message||"请求配置错误";return ke.error(t),{success:!1,data:null,message:t}});const fo={createConversation(e){return O.post("/ai/chat/conversation/create",e)},sendMessage(e){return O.post("/ai/chat/send",e)},streamChat(e){return O.post("/ai/chat/stream",e)},analyzeEmotion(e){return O.post("/ai/chat/emotion/analyze",e)},getConversations(e,t=1,n=20){return O.get(`/ai/chat/conversations/${e}`,{params:{pageNum:t,pageSize:n}})},getConversation(e){return O.get(`/ai/chat/conversation/${e}`)},getMessages(e,t=1,n=50){return O.get(`/ai/chat/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endConversation(e){return O.put(`/ai/chat/conversation/${e}/end`)},deleteConversation(e){return O.delete(`/ai/chat/conversation/${e}`)},markMessageAsRead(e){return O.put(`/ai/chat/message/${e}/read`)},markConversationAsRead(e){return O.put(`/ai/chat/conversation/${e}/read`)},healthCheck(){return O.get("/ai/chat/health")},getServiceInfo(){return O.get("/ai/chat/info")}},po={guestChat(e){return O.post("/ai/guest/chat",e)},getGuestConversations(e=1,t=20){return O.get("/ai/guest/conversations",{params:{pageNum:e,pageSize:t}})},getGuestConversationMessages(e,t=1,n=50){return O.get(`/ai/guest/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endGuestConversation(e){return O.post(`/ai/guest/conversation/${e}/end`)},getGuestUserInfo(){return O.get("/ai/guest/user/info")},analyzeGuestEmotion(e){return O.post("/ai/guest/emotion/analyze",e)},guestHealthCheck(){return O.get("/ai/guest/health")}};export{V as A,io as B,ao as H,co as M,lo as R,uo as S,fo as c,po as g,O as r}; diff --git a/build-output/web/assets/js/index-bf5be19f.js b/build-output/web/assets/js/index-bf5be19f.js deleted file mode 100644 index b91d16f..0000000 --- a/build-output/web/assets/js/index-bf5be19f.js +++ /dev/null @@ -1,509 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();/** -* @vue/shared v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Fm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Et={},ta=[],Do=()=>{},DM=()=>!1,If=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lm=e=>e.startsWith("onUpdate:"),Zt=Object.assign,km=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BM=Object.prototype.hasOwnProperty,Ot=(e,t)=>BM.call(e,t),lt=Array.isArray,na=e=>Tf(e)==="[object Map]",U4=e=>Tf(e)==="[object Set]",st=e=>typeof e=="function",Ht=e=>typeof e=="string",$l=e=>typeof e=="symbol",Bt=e=>e!==null&&typeof e=="object",Y4=e=>(Bt(e)||st(e))&&st(e.then)&&st(e.catch),q4=Object.prototype.toString,Tf=e=>q4.call(e),NM=e=>Tf(e).slice(8,-1),Z4=e=>Tf(e)==="[object Object]",zm=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fs=Fm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ef=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},FM=/-(\w)/g,Co=Ef(e=>e.replace(FM,(t,n)=>n?n.toUpperCase():"")),LM=/\B([A-Z])/g,vi=Ef(e=>e.replace(LM,"-$1").toLowerCase()),Mf=Ef(e=>e.charAt(0).toUpperCase()+e.slice(1)),fg=Ef(e=>e?`on${Mf(e)}`:""),dl=(e,t)=>!Object.is(e,t),pg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kM=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zM=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let aS;const _f=()=>aS||(aS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hm(e){if(lt(e)){const t={};for(let n=0;n{if(n){const o=n.split(jM);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function jm(e){let t="";if(Ht(e))t=e;else if(lt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),vr=e=>Ht(e)?e:e==null?"":lt(e)||Bt(e)&&(e.toString===q4||!st(e.toString))?J4(e)?vr(e.value):JSON.stringify(e,e3,2):String(e),e3=(e,t)=>J4(t)?e3(e,t.value):na(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],l)=>(n[gg(o,l)+" =>"]=r,n),{})}:U4(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:$l(t)?gg(t):Bt(t)&&!lt(t)&&!Z4(t)?String(t):t,gg=(e,t="")=>{var n;return $l(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let wn;class t3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!t&&wn&&(this.index=(wn.scopes||(wn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(wn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(gs){let t=gs;for(gs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ps;){let t=ps;for(ps=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function a3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s3(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Gm(o),XM(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function Uh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(c3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function c3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vs)||(e.globalVersion=Vs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Uh(e))))return;e.flags|=2;const t=e.dep,n=Dt,o=Bo;Dt=e,Bo=!0;try{a3(e);const r=e.fn(e._value);(t.version===0||dl(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Dt=n,Bo=o,s3(e),e.flags&=-3}}function Gm(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Gm(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function XM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bo=!0;const u3=[];function Er(){u3.push(Bo),Bo=!1}function Mr(){const e=u3.pop();Bo=e===void 0?!0:e}function sS(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let Vs=0,UM=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Xm{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Bo||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new UM(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,d3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=o)}return n}trigger(t){this.version++,Vs++,this.notify(t)}notify(t){Vm();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Km()}}}function d3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)d3(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $d=new WeakMap,Jl=Symbol(""),Yh=Symbol(""),Ks=Symbol("");function Pn(e,t,n){if(Bo&&Dt){let o=$d.get(e);o||$d.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Xm),r.map=o,r.key=n),r.track()}}function $r(e,t,n,o,r,l){const i=$d.get(e);if(!i){Vs++;return}const a=s=>{s&&s.trigger()};if(Vm(),t==="clear")i.forEach(a);else{const s=lt(e),c=s&&zm(n);if(s&&n==="length"){const u=Number(o);i.forEach((d,f)=>{(f==="length"||f===Ks||!$l(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Ks)),t){case"add":s?c&&a(i.get("length")):(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"delete":s||(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"set":na(e)&&a(i.get(Jl));break}}Km()}function YM(e,t){const n=$d.get(e);return n&&n.get(t)}function Mi(e){const t=Qe(e);return t===e?t:(Pn(t,"iterate",Ks),yo(e)?t:t.map(mn))}function Af(e){return Pn(e=Qe(e),"iterate",Ks),e}const qM={__proto__:null,[Symbol.iterator](){return vg(this,Symbol.iterator,mn)},concat(...e){return Mi(this).concat(...e.map(t=>lt(t)?Mi(t):t))},entries(){return vg(this,"entries",e=>(e[1]=mn(e[1]),e))},every(e,t){return dr(this,"every",e,t,void 0,arguments)},filter(e,t){return dr(this,"filter",e,t,n=>n.map(mn),arguments)},find(e,t){return dr(this,"find",e,t,mn,arguments)},findIndex(e,t){return dr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return dr(this,"findLast",e,t,mn,arguments)},findLastIndex(e,t){return dr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return dr(this,"forEach",e,t,void 0,arguments)},includes(...e){return mg(this,"includes",e)},indexOf(...e){return mg(this,"indexOf",e)},join(e){return Mi(this).join(e)},lastIndexOf(...e){return mg(this,"lastIndexOf",e)},map(e,t){return dr(this,"map",e,t,void 0,arguments)},pop(){return Ua(this,"pop")},push(...e){return Ua(this,"push",e)},reduce(e,...t){return cS(this,"reduce",e,t)},reduceRight(e,...t){return cS(this,"reduceRight",e,t)},shift(){return Ua(this,"shift")},some(e,t){return dr(this,"some",e,t,void 0,arguments)},splice(...e){return Ua(this,"splice",e)},toReversed(){return Mi(this).toReversed()},toSorted(e){return Mi(this).toSorted(e)},toSpliced(...e){return Mi(this).toSpliced(...e)},unshift(...e){return Ua(this,"unshift",e)},values(){return vg(this,"values",mn)}};function vg(e,t,n){const o=Af(e),r=o[t]();return o!==e&&!yo(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.value&&(l.value=n(l.value)),l}),r}const ZM=Array.prototype;function dr(e,t,n,o,r,l){const i=Af(e),a=i!==e&&!yo(e),s=i[t];if(s!==ZM[t]){const d=s.apply(e,l);return a?mn(d):d}let c=n;i!==e&&(a?c=function(d,f){return n.call(this,mn(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=s.call(i,c,o);return a&&r?r(u):u}function cS(e,t,n,o){const r=Af(e);let l=n;return r!==e&&(yo(e)?n.length>3&&(l=function(i,a,s){return n.call(this,i,a,s,e)}):l=function(i,a,s){return n.call(this,i,mn(a),s,e)}),r[t](l,...o)}function mg(e,t,n){const o=Qe(e);Pn(o,"iterate",Ks);const r=o[t](...n);return(r===-1||r===!1)&&qm(n[0])?(n[0]=Qe(n[0]),o[t](...n)):r}function Ua(e,t,n=[]){Er(),Vm();const o=Qe(e)[t].apply(e,n);return Km(),Mr(),o}const QM=Fm("__proto__,__v_isRef,__isVue"),f3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($l));function JM(e){$l(e)||(e=String(e));const t=Qe(this);return Pn(t,"has",e),t.hasOwnProperty(e)}class p3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return o===(r?l?c_:m3:l?v3:h3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=lt(t);if(!r){let s;if(i&&(s=qM[n]))return s;if(n==="hasOwnProperty")return JM}const a=Reflect.get(t,n,kt(t)?t:o);return($l(n)?f3.has(n):QM(n))||(r||Pn(t,"get",n),l)?a:kt(a)?i&&zm(n)?a:a.value:Bt(a)?r?y3(a):ut(a):a}}class g3 extends p3{constructor(t=!1){super(!1,t)}set(t,n,o,r){let l=t[n];if(!this._isShallow){const s=ml(l);if(!yo(o)&&!ml(o)&&(l=Qe(l),o=Qe(o)),!lt(t)&&kt(l)&&!kt(o))return s?!1:(l.value=o,!0)}const i=lt(t)&&zm(n)?Number(n)e,Gc=e=>Reflect.getPrototypeOf(e);function r_(e,t,n){return function(...o){const r=this.__v_raw,l=Qe(r),i=na(l),a=e==="entries"||e===Symbol.iterator&&i,s=e==="keys"&&i,c=r[e](...o),u=n?qh:t?Cd:mn;return!t&&Pn(l,"iterate",s?Yh:Jl),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Xc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function l_(e,t){const n={get(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);e||(dl(r,a)&&Pn(i,"get",r),Pn(i,"get",a));const{has:s}=Gc(i),c=t?qh:e?Cd:mn;if(s.call(i,r))return c(l.get(r));if(s.call(i,a))return c(l.get(a));l!==i&&l.get(r)},get size(){const r=this.__v_raw;return!e&&Pn(Qe(r),"iterate",Jl),Reflect.get(r,"size",r)},has(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);return e||(dl(r,a)&&Pn(i,"has",r),Pn(i,"has",a)),r===a?l.has(r):l.has(r)||l.has(a)},forEach(r,l){const i=this,a=i.__v_raw,s=Qe(a),c=t?qh:e?Cd:mn;return!e&&Pn(s,"iterate",Jl),a.forEach((u,d)=>r.call(l,c(u),c(d),i))}};return Zt(n,e?{add:Xc("add"),set:Xc("set"),delete:Xc("delete"),clear:Xc("clear")}:{add(r){!t&&!yo(r)&&!ml(r)&&(r=Qe(r));const l=Qe(this);return Gc(l).has.call(l,r)||(l.add(r),$r(l,"add",r,r)),this},set(r,l){!t&&!yo(l)&&!ml(l)&&(l=Qe(l));const i=Qe(this),{has:a,get:s}=Gc(i);let c=a.call(i,r);c||(r=Qe(r),c=a.call(i,r));const u=s.call(i,r);return i.set(r,l),c?dl(l,u)&&$r(i,"set",r,l):$r(i,"add",r,l),this},delete(r){const l=Qe(this),{has:i,get:a}=Gc(l);let s=i.call(l,r);s||(r=Qe(r),s=i.call(l,r)),a&&a.call(l,r);const c=l.delete(r);return s&&$r(l,"delete",r,void 0),c},clear(){const r=Qe(this),l=r.size!==0,i=r.clear();return l&&$r(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=r_(r,e,t)}),n}function Um(e,t){const n=l_(e,t);return(o,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ot(n,r)&&r in o?n:o,r,l)}const i_={get:Um(!1,!1)},a_={get:Um(!1,!0)},s_={get:Um(!0,!1)};const h3=new WeakMap,v3=new WeakMap,m3=new WeakMap,c_=new WeakMap;function u_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d_(e){return e.__v_skip||!Object.isExtensible(e)?0:u_(NM(e))}function ut(e){return ml(e)?e:Ym(e,!1,t_,i_,h3)}function b3(e){return Ym(e,!1,o_,a_,v3)}function y3(e){return Ym(e,!0,n_,s_,m3)}function Ym(e,t,n,o,r){if(!Bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=d_(e);if(l===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,l===2?o:n);return r.set(e,a),a}function fl(e){return ml(e)?fl(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function yo(e){return!!(e&&e.__v_isShallow)}function qm(e){return e?!!e.__v_raw:!1}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function Zm(e){return!Ot(e,"__v_skip")&&Object.isExtensible(e)&&Xh(e,"__v_skip",!0),e}const mn=e=>Bt(e)?ut(e):e,Cd=e=>Bt(e)?y3(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function le(e){return S3(e,!1)}function te(e){return S3(e,!0)}function S3(e,t){return kt(e)?e:new f_(e,t)}class f_{constructor(t,n){this.dep=new Xm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Qe(t),this._value=n?t:mn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||yo(t)||ml(t);t=o?t:Qe(t),dl(t,n)&&(this._rawValue=t,this._value=o?t:mn(t),this.dep.trigger())}}function $3(e){e.dep&&e.dep.trigger()}function $t(e){return kt(e)?e.value:e}const p_={get:(e,t,n)=>t==="__v_raw"?e:$t(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function C3(e){return fl(e)?e:new Proxy(e,p_)}function No(e){const t=lt(e)?new Array(e.length):{};for(const n in e)t[n]=x3(e,n);return t}class g_{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return YM(Qe(this._object),this._key)}}class h_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ze(e,t,n){return kt(e)?e:st(e)?new h_(e):Bt(e)&&arguments.length>1?x3(e,t,n):le(e)}function x3(e,t,n){const o=e[t];return kt(o)?o:new g_(e,t,n)}class v_{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return i3(this,!0),!0}get value(){const t=this.dep.track();return c3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function m_(e,t,n=!1){let o,r;return st(e)?o=e:(o=e.get,r=e.set),new v_(o,r,n)}const Uc={},xd=new WeakMap;let kl;function b_(e,t=!1,n=kl){if(n){let o=xd.get(n);o||xd.set(n,o=[]),o.push(e)}}function y_(e,t,n=Et){const{immediate:o,deep:r,once:l,scheduler:i,augmentJob:a,call:s}=n,c=x=>r?x:yo(x)||r===!1||r===0?Cr(x,1):Cr(x);let u,d,f,g,v=!1,h=!1;if(kt(e)?(d=()=>e.value,v=yo(e)):fl(e)?(d=()=>c(e),v=!0):lt(e)?(h=!0,v=e.some(x=>fl(x)||yo(x)),d=()=>e.map(x=>{if(kt(x))return x.value;if(fl(x))return c(x);if(st(x))return s?s(x,2):x()})):st(e)?t?d=s?()=>s(e,2):e:d=()=>{if(f){Er();try{f()}finally{Mr()}}const x=kl;kl=u;try{return s?s(e,3,[g]):e(g)}finally{kl=x}}:d=Do,t&&r){const x=d,C=r===!0?1/0:r;d=()=>Cr(x(),C)}const b=Wm(),y=()=>{u.stop(),b&&b.active&&km(b.effects,u)};if(l&&t){const x=t;t=(...C)=>{x(...C),y()}}let S=h?new Array(e.length).fill(Uc):Uc;const $=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(t){const C=u.run();if(r||v||(h?C.some((O,w)=>dl(O,S[w])):dl(C,S))){f&&f();const O=kl;kl=u;try{const w=[C,S===Uc?void 0:h&&S[0]===Uc?[]:S,g];S=C,s?s(t,3,w):t(...w)}finally{kl=O}}}else u.run()};return a&&a($),u=new r3(d),u.scheduler=i?()=>i($,!1):$,g=x=>b_(x,!1,u),f=u.onStop=()=>{const x=xd.get(u);if(x){if(s)s(x,4);else for(const C of x)C();xd.delete(u)}},t?o?$(!0):S=u.run():i?i($.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Cr(e,t=1/0,n){if(t<=0||!Bt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,kt(e))Cr(e.value,t,n);else if(lt(e))for(let o=0;o{Cr(o,t,n)});else if(Z4(e)){for(const o in e)Cr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Cr(e[o],t,n)}return e}/** -* @vue/runtime-core v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function $c(e,t,n,o){try{return o?e(...o):e()}catch(r){Rf(r,t,n)}}function Lo(e,t,n,o){if(st(e)){const r=$c(e,t,n,o);return r&&Y4(r)&&r.catch(l=>{Rf(l,t,n)}),r}if(lt(e)){const r=[];for(let l=0;l>>1,r=Fn[o],l=Gs(r);l=Gs(n)?Fn.push(e):Fn.splice($_(t),0,e),e.flags|=1,O3()}}function O3(){wd||(wd=w3.then(I3))}function C_(e){lt(e)?oa.push(...e):Jr&&e.id===-1?Jr.splice(zi+1,0,e):e.flags&1||(oa.push(e),e.flags|=1),O3()}function uS(e,t,n=Zo+1){for(;nGs(n)-Gs(o));if(oa.length=0,Jr){Jr.push(...t);return}for(Jr=t,zi=0;zie.id==null?e.flags&2?-1:1/0:e.id;function I3(e){const t=Do;try{for(Zo=0;Zo{o._d&&xS(-1);const l=Od(t);let i;try{i=e(...r)}finally{Od(l),o._d&&xS(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function $n(e,t){if(zn===null)return e;const n=zf(zn),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,hs=e=>e&&(e.disabled||e.disabled===""),dS=e=>e&&(e.defer||e.defer===""),fS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Zh=(e,t)=>{const n=e&&e.to;return Ht(n)?t?t(n):null:n},_3={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,l,i,a,s,c){const{mc:u,pc:d,pbc:f,o:{insert:g,querySelector:v,createText:h,createComment:b}}=c,y=hs(t.props);let{shapeFlag:S,children:$,dynamicChildren:x}=t;if(e==null){const C=t.el=h(""),O=t.anchor=h("");g(C,n,o),g(O,n,o);const w=(T,_)=>{S&16&&(r&&r.isCE&&(r.ce._teleportTarget=T),u($,T,_,r,l,i,a,s))},I=()=>{const T=t.target=Zh(t.props,v),_=A3(T,t,h,g);T&&(i!=="svg"&&fS(T)?i="svg":i!=="mathml"&&pS(T)&&(i="mathml"),y||(w(T,_),Au(t,!1)))};y&&(w(n,O),Au(t,!0)),dS(t.props)?(t.el.__isMounted=!1,Bn(()=>{I(),delete t.el.__isMounted},l)):I()}else{if(dS(t.props)&&e.el.__isMounted===!1){Bn(()=>{_3.process(e,t,n,o,r,l,i,a,s,c)},l);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,O=t.target=e.target,w=t.targetAnchor=e.targetAnchor,I=hs(e.props),T=I?n:O,_=I?C:w;if(i==="svg"||fS(O)?i="svg":(i==="mathml"||pS(O))&&(i="mathml"),x?(f(e.dynamicChildren,x,T,r,l,i,a),i0(e,t,!0)):s||d(e,t,T,_,r,l,i,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yc(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=Zh(t.props,v);E&&Yc(t,E,null,c,0)}else I&&Yc(t,O,w,c,1);Au(t,y)}},remove(e,t,n,{um:o,o:{remove:r}},l){const{shapeFlag:i,children:a,anchor:s,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),l&&r(s),i&16){const g=l||!hs(f);for(let v=0;v{e.isMounted=!0}),Ze(()=>{e.isUnmounting=!0}),e}const go=[Function,Array],D3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:go,onEnter:go,onAfterEnter:go,onEnterCancelled:go,onBeforeLeave:go,onLeave:go,onAfterLeave:go,onLeaveCancelled:go,onBeforeAppear:go,onAppear:go,onAfterAppear:go,onAppearCancelled:go},B3=e=>{const t=e.subTree;return t.component?B3(t.component):t},w_={name:"BaseTransition",props:D3,setup(e,{slots:t}){const n=pn(),o=R3();return()=>{const r=t.default&&e0(t.default(),!0);if(!r||!r.length)return;const l=N3(r),i=Qe(e),{mode:a}=i;if(o.isLeaving)return bg(l);const s=gS(l);if(!s)return bg(l);let c=Xs(s,i,o,n,d=>c=d);s.type!==bn&&ai(s,c);let u=n.subTree&&gS(n.subTree);if(u&&u.type!==bn&&!Wl(s,u)&&B3(n).type!==bn){let d=Xs(u,i,o,n);if(ai(u,d),a==="out-in"&&s.type!==bn)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},bg(l);a==="in-out"&&s.type!==bn?d.delayLeave=(f,g,v)=>{const h=F3(o,u);h[String(u.key)]=u,f[el]=()=>{g(),f[el]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return l}}};function N3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==bn){t=n;break}}return t}const O_=w_;function F3(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xs(e,t,n,o,r){const{appear:l,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:b,onAppear:y,onAfterAppear:S,onAppearCancelled:$}=t,x=String(e.key),C=F3(n,e),O=(T,_)=>{T&&Lo(T,o,9,_)},w=(T,_)=>{const E=_[1];O(T,_),lt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},I={mode:i,persisted:a,beforeEnter(T){let _=s;if(!n.isMounted)if(l)_=b||s;else return;T[el]&&T[el](!0);const E=C[x];E&&Wl(e,E)&&E.el[el]&&E.el[el](),O(_,[T])},enter(T){let _=c,E=u,A=d;if(!n.isMounted)if(l)_=y||c,E=S||u,A=$||d;else return;let R=!1;const z=T[qc]=M=>{R||(R=!0,M?O(A,[T]):O(E,[T]),I.delayedLeave&&I.delayedLeave(),T[qc]=void 0)};_?w(_,[T,z]):z()},leave(T,_){const E=String(e.key);if(T[qc]&&T[qc](!0),n.isUnmounting)return _();O(f,[T]);let A=!1;const R=T[el]=z=>{A||(A=!0,_(),z?O(h,[T]):O(v,[T]),T[el]=void 0,C[E]===e&&delete C[E])};C[E]=e,g?w(g,[T,R]):R()},clone(T){const _=Xs(T,t,n,o,r);return r&&r(_),_}};return I}function bg(e){if(Df(e))return e=sn(e),e.children=null,e}function gS(e){if(!Df(e))return M3(e.type)&&e.children?N3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ai(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ai(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function e0(e,t=!1,n){let o=[],r=0;for(let l=0;l1)for(let l=0;lZt({name:e.name},t,{setup:e}))():e}function L3(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vs(e,t,n,o,r=!1){if(lt(e)){e.forEach((v,h)=>vs(v,t&&(lt(t)?t[h]:t),n,o,r));return}if(ms(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&vs(e,t,n,o.component.subTree);return}const l=o.shapeFlag&4?zf(o.component):o.el,i=r?null:l,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Et?a.refs={}:a.refs,d=a.setupState,f=Qe(d),g=d===Et?()=>!1:v=>Ot(f,v);if(c!=null&&c!==s&&(Ht(c)?(u[c]=null,g(c)&&(d[c]=null)):kt(c)&&(c.value=null)),st(s))$c(s,a,12,[i,u]);else{const v=Ht(s),h=kt(s);if(v||h){const b=()=>{if(e.f){const y=v?g(s)?d[s]:u[s]:s.value;r?lt(y)&&km(y,l):lt(y)?y.includes(l)||y.push(l):v?(u[s]=[l],g(s)&&(d[s]=u[s])):(s.value=[l],e.k&&(u[e.k]=s.value))}else v?(u[s]=i,g(s)&&(d[s]=i)):h&&(s.value=i,e.k&&(u[e.k]=i))};i?(b.id=-1,Bn(b,n)):b()}}}_f().requestIdleCallback;_f().cancelIdleCallback;const ms=e=>!!e.type.__asyncLoader,Df=e=>e.type.__isKeepAlive;function Bf(e,t){z3(e,"a",t)}function k3(e,t){z3(e,"da",t)}function z3(e,t,n=fn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nf(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Df(r.parent.vnode)&&P_(o,t,n,r),r=r.parent}}function P_(e,t,n,o){const r=Nf(t,e,o,!0);Rn(()=>{km(o[t],r)},n)}function Nf(e,t,n=fn,o=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...i)=>{Er();const a=Cc(n),s=Lo(t,n,e,i);return a(),Mr(),s});return o?r.unshift(l):r.push(l),l}}const Nr=e=>(t,n=fn)=>{(!Ys||e==="sp")&&Nf(e,(...o)=>t(...o),n)},Ff=Nr("bm"),je=Nr("m"),Lf=Nr("bu"),An=Nr("u"),Ze=Nr("bum"),Rn=Nr("um"),I_=Nr("sp"),T_=Nr("rtg"),E_=Nr("rtc");function M_(e,t=fn){Nf("ec",e,t)}const t0="components",__="directives";function zl(e,t){return n0(t0,e,!0,t)||e}const H3=Symbol.for("v-ndc");function C0e(e){return Ht(e)?n0(t0,e,!1)||e:e||H3}function A_(e){return n0(__,e)}function n0(e,t,n=!0,o=!1){const r=zn||fn;if(r){const l=r.type;if(e===t0){const a=CA(l,!1);if(a&&(a===t||a===Co(t)||a===Mf(Co(t))))return l}const i=hS(r[e]||l[e],t)||hS(r.appContext[e],t);return!i&&o?l:i}}function hS(e,t){return e&&(e[t]||e[Co(t)]||e[Mf(Co(t))])}function x0e(e,t,n,o){let r;const l=n&&n[o],i=lt(e);if(i||Ht(e)){const a=i&&fl(e);let s=!1,c=!1;a&&(s=!yo(e),c=ml(e),e=Af(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(a,s,void 0,l&&l[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,c=a.length;se?lO(e)?zf(e):Qh(e.parent):null,bs=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qh(e.parent),$root:e=>Qh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>o0(e),$forceUpdate:e=>e.f||(e.f=()=>{Qm(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>nA.bind(e)}),yg=(e,t)=>e!==Et&&!e.__isScriptSetup&&Ot(e,t),R_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:l,accessCache:i,type:a,appContext:s}=e;let c;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(yg(o,t))return i[t]=1,o[t];if(r!==Et&&Ot(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&Ot(c,t))return i[t]=3,l[t];if(n!==Et&&Ot(n,t))return i[t]=4,n[t];Jh&&(i[t]=0)}}const u=bs[t];let d,f;if(u)return t==="$attrs"&&Pn(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Et&&Ot(n,t))return i[t]=4,n[t];if(f=s.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:l}=e;return yg(r,t)?(r[t]=n,!0):o!==Et&&Ot(o,t)?(o[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:l}},i){let a;return!!n[i]||e!==Et&&Ot(e,i)||yg(t,i)||(a=l[0])&&Ot(a,i)||Ot(o,i)||Ot(bs,i)||Ot(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function D_(){return B_().attrs}function B_(){const e=pn();return e.setupContext||(e.setupContext=aO(e))}function vS(e){return lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jh=!0;function N_(e){const t=o0(e),n=e.proxy,o=e.ctx;Jh=!1,t.beforeCreate&&mS(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:a,provide:s,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:g,updated:v,activated:h,deactivated:b,beforeDestroy:y,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:O,renderTriggered:w,errorCaptured:I,serverPrefetch:T,expose:_,inheritAttrs:E,components:A,directives:R,filters:z}=t;if(c&&F_(c,o,null),i)for(const N in i){const F=i[N];st(F)&&(o[N]=F.bind(n))}if(r){const N=r.call(n,n);Bt(N)&&(e.data=ut(N))}if(Jh=!0,l)for(const N in l){const F=l[N],L=st(F)?F.bind(n,n):st(F.get)?F.get.bind(n,n):Do,k=!st(F)&&st(F.set)?F.set.bind(n):Do,j=P({get:L,set:k});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>j.value,set:H=>j.value=H})}if(a)for(const N in a)j3(a[N],o,n,N);if(s){const N=st(s)?s.call(n):s;Reflect.ownKeys(N).forEach(F=>{Ge(F,N[F])})}u&&mS(u,e,"c");function B(N,F){lt(F)?F.forEach(L=>N(L.bind(n))):F&&N(F.bind(n))}if(B(Ff,d),B(je,f),B(Lf,g),B(An,v),B(Bf,h),B(k3,b),B(M_,I),B(E_,O),B(T_,w),B(Ze,S),B(Rn,x),B(I_,T),lt(_))if(_.length){const N=e.exposed||(e.exposed={});_.forEach(F=>{Object.defineProperty(N,F,{get:()=>n[F],set:L=>n[F]=L})})}else e.exposed||(e.exposed={});C&&e.render===Do&&(e.render=C),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R),T&&L3(e)}function F_(e,t,n=Do){lt(e)&&(e=ev(e));for(const o in e){const r=e[o];let l;Bt(r)?"default"in r?l=He(r.from||o,r.default,!0):l=He(r.from||o):l=He(r),kt(l)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[o]=l}}function mS(e,t,n){Lo(lt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function j3(e,t,n,o){let r=o.includes(".")?J3(n,o):()=>n[o];if(Ht(e)){const l=t[e];st(l)&&be(r,l)}else if(st(e))be(r,e.bind(n));else if(Bt(e))if(lt(e))e.forEach(l=>j3(l,t,n,o));else{const l=st(e.handler)?e.handler.bind(n):t[e.handler];st(l)&&be(r,l,e)}}function o0(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,a=l.get(t);let s;return a?s=a:!r.length&&!n&&!o?s=t:(s={},r.length&&r.forEach(c=>Pd(s,c,i,!0)),Pd(s,t,i)),Bt(t)&&l.set(t,s),s}function Pd(e,t,n,o=!1){const{mixins:r,extends:l}=t;l&&Pd(e,l,n,!0),r&&r.forEach(i=>Pd(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=L_[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const L_={data:bS,props:yS,emits:yS,methods:is,computed:is,beforeCreate:Dn,created:Dn,beforeMount:Dn,mounted:Dn,beforeUpdate:Dn,updated:Dn,beforeDestroy:Dn,beforeUnmount:Dn,destroyed:Dn,unmounted:Dn,activated:Dn,deactivated:Dn,errorCaptured:Dn,serverPrefetch:Dn,components:is,directives:is,watch:z_,provide:bS,inject:k_};function bS(e,t){return t?e?function(){return Zt(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function k_(e,t){return is(ev(e),ev(t))}function ev(e){if(lt(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(o&&o.proxy):t}}function W_(){return!!(fn||zn||ei)}const V3={},K3=()=>Object.create(V3),G3=e=>Object.getPrototypeOf(e)===V3;function V_(e,t,n,o=!1){const r={},l=K3();e.propsDefaults=Object.create(null),X3(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:b3(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function K_(e,t,n,o){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,a=Qe(r),[s]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,g]=U3(d,t,!0);Zt(i,f),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!l&&!s)return Bt(e)&&o.set(e,ta),ta;if(lt(l))for(let u=0;ue[0]==="_"||e==="$stable",l0=e=>lt(e)?e.map(tr):[tr(e)],X_=(e,t,n)=>{if(t._n)return t;const o=hn((...r)=>l0(t(...r)),n);return o._c=!1,o},Y3=(e,t,n)=>{const o=e._ctx;for(const r in e){if(r0(r))continue;const l=e[r];if(st(l))t[r]=X_(r,l,o);else if(l!=null){const i=l0(l);t[r]=()=>i}}},q3=(e,t)=>{const n=l0(t);e.slots.default=()=>n},Z3=(e,t,n)=>{for(const o in t)(n||!r0(o))&&(e[o]=t[o])},U_=(e,t,n)=>{const o=e.slots=K3();if(e.vnode.shapeFlag&32){const r=t.__;r&&Xh(o,"__",r,!0);const l=t._;l?(Z3(o,t,n),n&&Xh(o,"_",l,!0)):Y3(t,o)}else t&&q3(e,t)},Y_=(e,t,n)=>{const{vnode:o,slots:r}=e;let l=!0,i=Et;if(o.shapeFlag&32){const a=t._;a?n&&a===1?l=!1:Z3(r,t,n):(l=!t.$stable,Y3(t,r)),i=t}else t&&(q3(e,t),i={default:1});if(l)for(const a in r)!r0(a)&&i[a]==null&&delete r[a]},Bn=cA;function q_(e){return Z_(e)}function Z_(e,t){const n=_f();n.__VUE__=!0;const{insert:o,remove:r,patchProp:l,createElement:i,createText:a,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:g=Do,insertStaticContent:v}=e,h=(W,X,ne,ae=null,se=null,re=null,de=void 0,ge=null,me=!!X.dynamicChildren)=>{if(W===X)return;W&&!Wl(W,X)&&(ae=G(W),H(W,se,re,!0),W=null),X.patchFlag===-2&&(me=!1,X.dynamicChildren=null);const{type:fe,ref:ye,shapeFlag:Se}=X;switch(fe){case Cl:b(W,X,ne,ae);break;case bn:y(W,X,ne,ae);break;case Cg:W==null&&S(X,ne,ae,de);break;case We:A(W,X,ne,ae,se,re,de,ge,me);break;default:Se&1?C(W,X,ne,ae,se,re,de,ge,me):Se&6?R(W,X,ne,ae,se,re,de,ge,me):(Se&64||Se&128)&&fe.process(W,X,ne,ae,se,re,de,ge,me,K)}ye!=null&&se?vs(ye,W&&W.ref,re,X||W,!X):ye==null&&W&&W.ref!=null&&vs(W.ref,null,re,W,!0)},b=(W,X,ne,ae)=>{if(W==null)o(X.el=a(X.children),ne,ae);else{const se=X.el=W.el;X.children!==W.children&&c(se,X.children)}},y=(W,X,ne,ae)=>{W==null?o(X.el=s(X.children||""),ne,ae):X.el=W.el},S=(W,X,ne,ae)=>{[W.el,W.anchor]=v(W.children,X,ne,ae,W.el,W.anchor)},$=({el:W,anchor:X},ne,ae)=>{let se;for(;W&&W!==X;)se=f(W),o(W,ne,ae),W=se;o(X,ne,ae)},x=({el:W,anchor:X})=>{let ne;for(;W&&W!==X;)ne=f(W),r(W),W=ne;r(X)},C=(W,X,ne,ae,se,re,de,ge,me)=>{X.type==="svg"?de="svg":X.type==="math"&&(de="mathml"),W==null?O(X,ne,ae,se,re,de,ge,me):T(W,X,se,re,de,ge,me)},O=(W,X,ne,ae,se,re,de,ge)=>{let me,fe;const{props:ye,shapeFlag:Se,transition:ue,dirs:ce}=W;if(me=W.el=i(W.type,re,ye&&ye.is,ye),Se&8?u(me,W.children):Se&16&&I(W.children,me,null,ae,se,Sg(W,re),de,ge),ce&&Ml(W,null,ae,"created"),w(me,W,W.scopeId,de,ae),ye){for(const Pe in ye)Pe!=="value"&&!fs(Pe)&&l(me,Pe,null,ye[Pe],re,ae);"value"in ye&&l(me,"value",null,ye.value,re),(fe=ye.onVnodeBeforeMount)&&Xo(fe,ae,W)}ce&&Ml(W,null,ae,"beforeMount");const he=Q_(se,ue);he&&ue.beforeEnter(me),o(me,X,ne),((fe=ye&&ye.onVnodeMounted)||he||ce)&&Bn(()=>{fe&&Xo(fe,ae,W),he&&ue.enter(me),ce&&Ml(W,null,ae,"mounted")},se)},w=(W,X,ne,ae,se)=>{if(ne&&g(W,ne),ae)for(let re=0;re{for(let fe=me;fe{const ge=X.el=W.el;let{patchFlag:me,dynamicChildren:fe,dirs:ye}=X;me|=W.patchFlag&16;const Se=W.props||Et,ue=X.props||Et;let ce;if(ne&&_l(ne,!1),(ce=ue.onVnodeBeforeUpdate)&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"beforeUpdate"),ne&&_l(ne,!0),(Se.innerHTML&&ue.innerHTML==null||Se.textContent&&ue.textContent==null)&&u(ge,""),fe?_(W.dynamicChildren,fe,ge,ne,ae,Sg(X,se),re):de||F(W,X,ge,null,ne,ae,Sg(X,se),re,!1),me>0){if(me&16)E(ge,Se,ue,ne,se);else if(me&2&&Se.class!==ue.class&&l(ge,"class",null,ue.class,se),me&4&&l(ge,"style",Se.style,ue.style,se),me&8){const he=X.dynamicProps;for(let Pe=0;Pe{ce&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"updated")},ae)},_=(W,X,ne,ae,se,re,de)=>{for(let ge=0;ge{if(X!==ne){if(X!==Et)for(const re in X)!fs(re)&&!(re in ne)&&l(W,re,X[re],null,se,ae);for(const re in ne){if(fs(re))continue;const de=ne[re],ge=X[re];de!==ge&&re!=="value"&&l(W,re,ge,de,se,ae)}"value"in ne&&l(W,"value",X.value,ne.value,se)}},A=(W,X,ne,ae,se,re,de,ge,me)=>{const fe=X.el=W?W.el:a(""),ye=X.anchor=W?W.anchor:a("");let{patchFlag:Se,dynamicChildren:ue,slotScopeIds:ce}=X;ce&&(ge=ge?ge.concat(ce):ce),W==null?(o(fe,ne,ae),o(ye,ne,ae),I(X.children||[],ne,ye,se,re,de,ge,me)):Se>0&&Se&64&&ue&&W.dynamicChildren?(_(W.dynamicChildren,ue,ne,se,re,de,ge),(X.key!=null||se&&X===se.subTree)&&i0(W,X,!0)):F(W,X,ne,ye,se,re,de,ge,me)},R=(W,X,ne,ae,se,re,de,ge,me)=>{X.slotScopeIds=ge,W==null?X.shapeFlag&512?se.ctx.activate(X,ne,ae,de,me):z(X,ne,ae,se,re,de,me):M(W,X,me)},z=(W,X,ne,ae,se,re,de)=>{const ge=W.component=bA(W,ae,se);if(Df(W)&&(ge.ctx.renderer=K),yA(ge,!1,de),ge.asyncDep){if(se&&se.registerDep(ge,B,de),!W.el){const me=ge.subTree=p(bn);y(null,me,X,ne)}}else B(ge,W,X,ne,se,re,de)},M=(W,X,ne)=>{const ae=X.component=W.component;if(aA(W,X,ne))if(ae.asyncDep&&!ae.asyncResolved){N(ae,X,ne);return}else ae.next=X,ae.update();else X.el=W.el,ae.vnode=X},B=(W,X,ne,ae,se,re,de)=>{const ge=()=>{if(W.isMounted){let{next:Se,bu:ue,u:ce,parent:he,vnode:Pe}=W;{const we=Q3(W);if(we){Se&&(Se.el=Pe.el,N(W,Se,de)),we.asyncDep.then(()=>{W.isUnmounted||ge()});return}}let Ie=Se,Ae;_l(W,!1),Se?(Se.el=Pe.el,N(W,Se,de)):Se=Pe,ue&&pg(ue),(Ae=Se.props&&Se.props.onVnodeBeforeUpdate)&&Xo(Ae,he,Se,Pe),_l(W,!0);const $e=$g(W),xe=W.subTree;W.subTree=$e,h(xe,$e,d(xe.el),G(xe),W,se,re),Se.el=$e.el,Ie===null&&sA(W,$e.el),ce&&Bn(ce,se),(Ae=Se.props&&Se.props.onVnodeUpdated)&&Bn(()=>Xo(Ae,he,Se,Pe),se)}else{let Se;const{el:ue,props:ce}=X,{bm:he,m:Pe,parent:Ie,root:Ae,type:$e}=W,xe=ms(X);if(_l(W,!1),he&&pg(he),!xe&&(Se=ce&&ce.onVnodeBeforeMount)&&Xo(Se,Ie,X),_l(W,!0),ue&&pe){const we=()=>{W.subTree=$g(W),pe(ue,W.subTree,W,se,null)};xe&&$e.__asyncHydrate?$e.__asyncHydrate(ue,W,we):we()}else{Ae.ce&&Ae.ce._def.shadowRoot!==!1&&Ae.ce._injectChildStyle($e);const we=W.subTree=$g(W);h(null,we,ne,ae,W,se,re),X.el=we.el}if(Pe&&Bn(Pe,se),!xe&&(Se=ce&&ce.onVnodeMounted)){const we=X;Bn(()=>Xo(Se,Ie,we),se)}(X.shapeFlag&256||Ie&&ms(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&W.a&&Bn(W.a,se),W.isMounted=!0,X=ne=ae=null}};W.scope.on();const me=W.effect=new r3(ge);W.scope.off();const fe=W.update=me.run.bind(me),ye=W.job=me.runIfDirty.bind(me);ye.i=W,ye.id=W.uid,me.scheduler=()=>Qm(ye),_l(W,!0),fe()},N=(W,X,ne)=>{X.component=W;const ae=W.vnode.props;W.vnode=X,W.next=null,K_(W,X.props,ae,ne),Y_(W,X.children,ne),Er(),uS(W),Mr()},F=(W,X,ne,ae,se,re,de,ge,me=!1)=>{const fe=W&&W.children,ye=W?W.shapeFlag:0,Se=X.children,{patchFlag:ue,shapeFlag:ce}=X;if(ue>0){if(ue&128){k(fe,Se,ne,ae,se,re,de,ge,me);return}else if(ue&256){L(fe,Se,ne,ae,se,re,de,ge,me);return}}ce&8?(ye&16&&ee(fe,se,re),Se!==fe&&u(ne,Se)):ye&16?ce&16?k(fe,Se,ne,ae,se,re,de,ge,me):ee(fe,se,re,!0):(ye&8&&u(ne,""),ce&16&&I(Se,ne,ae,se,re,de,ge,me))},L=(W,X,ne,ae,se,re,de,ge,me)=>{W=W||ta,X=X||ta;const fe=W.length,ye=X.length,Se=Math.min(fe,ye);let ue;for(ue=0;ueye?ee(W,se,re,!0,!1,Se):I(X,ne,ae,se,re,de,ge,me,Se)},k=(W,X,ne,ae,se,re,de,ge,me)=>{let fe=0;const ye=X.length;let Se=W.length-1,ue=ye-1;for(;fe<=Se&&fe<=ue;){const ce=W[fe],he=X[fe]=me?tl(X[fe]):tr(X[fe]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;fe++}for(;fe<=Se&&fe<=ue;){const ce=W[Se],he=X[ue]=me?tl(X[ue]):tr(X[ue]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;Se--,ue--}if(fe>Se){if(fe<=ue){const ce=ue+1,he=ceue)for(;fe<=Se;)H(W[fe],se,re,!0),fe++;else{const ce=fe,he=fe,Pe=new Map;for(fe=he;fe<=ue;fe++){const _e=X[fe]=me?tl(X[fe]):tr(X[fe]);_e.key!=null&&Pe.set(_e.key,fe)}let Ie,Ae=0;const $e=ue-he+1;let xe=!1,we=0;const Me=new Array($e);for(fe=0;fe<$e;fe++)Me[fe]=0;for(fe=ce;fe<=Se;fe++){const _e=W[fe];if(Ae>=$e){H(_e,se,re,!0);continue}let De;if(_e.key!=null)De=Pe.get(_e.key);else for(Ie=he;Ie<=ue;Ie++)if(Me[Ie-he]===0&&Wl(_e,X[Ie])){De=Ie;break}De===void 0?H(_e,se,re,!0):(Me[De-he]=fe+1,De>=we?we=De:xe=!0,h(_e,X[De],ne,null,se,re,de,ge,me),Ae++)}const Ne=xe?J_(Me):ta;for(Ie=Ne.length-1,fe=$e-1;fe>=0;fe--){const _e=he+fe,De=X[_e],Je=_e+1{const{el:re,type:de,transition:ge,children:me,shapeFlag:fe}=W;if(fe&6){j(W.component.subTree,X,ne,ae);return}if(fe&128){W.suspense.move(X,ne,ae);return}if(fe&64){de.move(W,X,ne,K);return}if(de===We){o(re,X,ne);for(let Se=0;Sege.enter(re),se);else{const{leave:Se,delayLeave:ue,afterLeave:ce}=ge,he=()=>{W.ctx.isUnmounted?r(re):o(re,X,ne)},Pe=()=>{Se(re,()=>{he(),ce&&ce()})};ue?ue(re,he,Pe):Pe()}else o(re,X,ne)},H=(W,X,ne,ae=!1,se=!1)=>{const{type:re,props:de,ref:ge,children:me,dynamicChildren:fe,shapeFlag:ye,patchFlag:Se,dirs:ue,cacheIndex:ce}=W;if(Se===-2&&(se=!1),ge!=null&&(Er(),vs(ge,null,ne,W,!0),Mr()),ce!=null&&(X.renderCache[ce]=void 0),ye&256){X.ctx.deactivate(W);return}const he=ye&1&&ue,Pe=!ms(W);let Ie;if(Pe&&(Ie=de&&de.onVnodeBeforeUnmount)&&Xo(Ie,X,W),ye&6)U(W.component,ne,ae);else{if(ye&128){W.suspense.unmount(ne,ae);return}he&&Ml(W,null,X,"beforeUnmount"),ye&64?W.type.remove(W,X,ne,K,ae):fe&&!fe.hasOnce&&(re!==We||Se>0&&Se&64)?ee(fe,X,ne,!1,!0):(re===We&&Se&384||!se&&ye&16)&&ee(me,X,ne),ae&&Y(W)}(Pe&&(Ie=de&&de.onVnodeUnmounted)||he)&&Bn(()=>{Ie&&Xo(Ie,X,W),he&&Ml(W,null,X,"unmounted")},ne)},Y=W=>{const{type:X,el:ne,anchor:ae,transition:se}=W;if(X===We){Z(ne,ae);return}if(X===Cg){x(W);return}const re=()=>{r(ne),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(W.shapeFlag&1&&se&&!se.persisted){const{leave:de,delayLeave:ge}=se,me=()=>de(ne,re);ge?ge(W.el,re,me):me()}else re()},Z=(W,X)=>{let ne;for(;W!==X;)ne=f(W),r(W),W=ne;r(X)},U=(W,X,ne)=>{const{bum:ae,scope:se,job:re,subTree:de,um:ge,m:me,a:fe,parent:ye,slots:{__:Se}}=W;$S(me),$S(fe),ae&&pg(ae),ye&<(Se)&&Se.forEach(ue=>{ye.renderCache[ue]=void 0}),se.stop(),re&&(re.flags|=8,H(de,W,X,ne)),ge&&Bn(ge,X),Bn(()=>{W.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},ee=(W,X,ne,ae=!1,se=!1,re=0)=>{for(let de=re;de{if(W.shapeFlag&6)return G(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const X=f(W.anchor||W.el),ne=X&&X[E3];return ne?f(ne):X};let J=!1;const Q=(W,X,ne)=>{W==null?X._vnode&&H(X._vnode,null,null,!0):h(X._vnode||null,W,X,null,null,null,ne),X._vnode=W,J||(J=!0,uS(),P3(),J=!1)},K={p:h,um:H,m:j,r:Y,mt:z,mc:I,pc:F,pbc:_,n:G,o:e};let q,pe;return t&&([q,pe]=t(K)),{render:Q,hydrate:q,createApp:j_(Q,q)}}function Sg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _l({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Q_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function i0(e,t,n=!1){const o=e.children,r=t.children;if(lt(o)&<(r))for(let l=0;l>1,e[n[a]]0&&(t[o]=n[l-1]),n[l]=o)}}for(l=n.length,i=n[l-1];l-- >0;)n[l]=i,i=t[i];return n}function Q3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q3(t)}function $S(e){if(e)for(let t=0;tHe(eA);function ke(e,t){return a0(e,null,t)}function be(e,t,n){return a0(e,t,n)}function a0(e,t,n=Et){const{immediate:o,deep:r,flush:l,once:i}=n,a=Zt({},n),s=t&&o||!t&&l!=="post";let c;if(Ys){if(l==="sync"){const g=tA();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=Do,g.resume=Do,g.pause=Do,g}}const u=fn;a.call=(g,v,h)=>Lo(g,u,v,h);let d=!1;l==="post"?a.scheduler=g=>{Bn(g,u&&u.suspense)}:l!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():Qm(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const f=y_(e,t,a);return Ys&&(c?c.push(f):s&&f()),f}function nA(e,t,n){const o=this.proxy,r=Ht(e)?e.includes(".")?J3(o,e):()=>o[e]:e.bind(o,o);let l;st(t)?l=t:(l=t.handler,n=t);const i=Cc(this),a=a0(r,l.bind(o),n);return i(),a}function J3(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Co(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function rA(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Et;let r=n;const l=t.startsWith("update:"),i=l&&oA(o,t.slice(7));i&&(i.trim&&(r=n.map(u=>Ht(u)?u.trim():u)),i.number&&(r=n.map(kM)));let a,s=o[a=fg(t)]||o[a=fg(Co(t))];!s&&l&&(s=o[a=fg(vi(t))]),s&&Lo(s,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lo(c,e,6,r)}}function eO(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const l=e.emits;let i={},a=!1;if(!st(e)){const s=c=>{const u=eO(c,t,!0);u&&(a=!0,Zt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!l&&!a?(Bt(e)&&o.set(e,null),null):(lt(l)?l.forEach(s=>i[s]=null):Zt(i,l),Bt(e)&&o.set(e,i),i)}function kf(e,t){return!e||!If(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,vi(t))||Ot(e,t))}function $g(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[l],slots:i,attrs:a,emit:s,render:c,renderCache:u,props:d,data:f,setupState:g,ctx:v,inheritAttrs:h}=e,b=Od(e);let y,S;try{if(n.shapeFlag&4){const x=r||o,C=x;y=tr(c.call(C,x,u,d,g,f,v)),S=a}else{const x=t;y=tr(x.length>1?x(d,{attrs:a,slots:i,emit:s}):x(d,null)),S=t.props?a:lA(a)}}catch(x){ys.length=0,Rf(x,e,1),y=p(bn)}let $=y;if(S&&h!==!1){const x=Object.keys(S),{shapeFlag:C}=$;x.length&&C&7&&(l&&x.some(Lm)&&(S=iA(S,l)),$=sn($,S,!1,!0))}return n.dirs&&($=sn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&ai($,n.transition),y=$,Od(b),y}const lA=e=>{let t;for(const n in e)(n==="class"||n==="style"||If(n))&&((t||(t={}))[n]=e[n]);return t},iA=(e,t)=>{const n={};for(const o in e)(!Lm(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function aA(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:a,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return o?CS(o,i,c):!!i;if(s&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function cA(e,t){t&&t.pendingBranch?lt(e)?t.effects.push(...e):t.effects.push(e):C_(e)}const We=Symbol.for("v-fgt"),Cl=Symbol.for("v-txt"),bn=Symbol.for("v-cmt"),Cg=Symbol.for("v-stc"),ys=[];let lo=null;function s0(e=!1){ys.push(lo=e?null:[])}function uA(){ys.pop(),lo=ys[ys.length-1]||null}let Us=1;function xS(e,t=!1){Us+=e,e<0&&lo&&t&&(lo.hasOnce=!0)}function nO(e){return e.dynamicChildren=Us>0?lo||ta:null,uA(),Us>0&&lo&&lo.push(e),e}function oO(e,t,n,o,r,l){return nO(Gi(e,t,n,o,r,l,!0))}function dA(e,t,n,o,r){return nO(p(e,t,n,o,r,!0))}function Yt(e){return e?e.__v_isVNode===!0:!1}function Wl(e,t){return e.type===t.type&&e.key===t.key}const rO=({key:e})=>e??null,Ru=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||kt(e)||st(e)?{i:zn,r:e,k:t,f:!!n}:e:null);function Gi(e,t=null,n=null,o=0,r=null,l=e===We?0:1,i=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rO(t),ref:t&&Ru(t),scopeId:T3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:zn};return a?(c0(s,n),l&128&&e.normalize(s)):n&&(s.shapeFlag|=Ht(n)?8:16),Us>0&&!i&&lo&&(s.patchFlag>0||l&6)&&s.patchFlag!==32&&lo.push(s),s}const p=fA;function fA(e,t=null,n=null,o=0,r=null,l=!1){if((!e||e===H3)&&(e=bn),Yt(e)){const a=sn(e,t,!0);return n&&c0(a,n),Us>0&&!l&&lo&&(a.shapeFlag&6?lo[lo.indexOf(e)]=a:lo.push(a)),a.patchFlag=-2,a}if(xA(e)&&(e=e.__vccOpts),t){t=pA(t);let{class:a,style:s}=t;a&&!Ht(a)&&(t.class=jm(a)),Bt(s)&&(qm(s)&&!lt(s)&&(s=Zt({},s)),t.style=Hm(s))}const i=Ht(e)?1:tO(e)?128:M3(e)?64:Bt(e)?4:st(e)?2:0;return Gi(e,t,n,o,r,i,l,!0)}function pA(e){return e?qm(e)||G3(e)?Zt({},e):e:null}function sn(e,t,n=!1,o=!1){const{props:r,ref:l,patchFlag:i,children:a,transition:s}=e,c=t?hA(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rO(c),ref:t&&t.ref?n&&l?lt(l)?l.concat(Ru(t)):[l,Ru(t)]:Ru(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sn(e.ssContent),ssFallback:e.ssFallback&&sn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&ai(u,s.clone(u)),u}function Lt(e=" ",t=0){return p(Cl,null,e,t)}function gA(e="",t=!1){return t?(s0(),dA(bn,null,e)):p(bn,null,e)}function tr(e){return e==null||typeof e=="boolean"?p(bn):lt(e)?p(We,null,e.slice()):Yt(e)?tl(e):p(Cl,null,String(e))}function tl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sn(e)}function c0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(lt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),c0(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!G3(t)?t._ctx=zn:r===3&&zn&&(zn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:zn},n=32):(t=String(t),o&64?(n=16,t=[Lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function hA(...e){const t={};for(let n=0;nfn||zn;let Id,nv;{const e=_f(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};Id=t("__VUE_INSTANCE_SETTERS__",n=>fn=n),nv=t("__VUE_SSR_SETTERS__",n=>Ys=n)}const Cc=e=>{const t=fn;return Id(e),e.scope.on(),()=>{e.scope.off(),Id(t)}},wS=()=>{fn&&fn.scope.off(),Id(null)};function lO(e){return e.vnode.shapeFlag&4}let Ys=!1;function yA(e,t=!1,n=!1){t&&nv(t);const{props:o,children:r}=e.vnode,l=lO(e);V_(e,o,l,t),U_(e,r,n||t);const i=l?SA(e,t):void 0;return t&&nv(!1),i}function SA(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,R_);const{setup:o}=n;if(o){Er();const r=e.setupContext=o.length>1?aO(e):null,l=Cc(e),i=$c(o,e,0,[e.props,r]),a=Y4(i);if(Mr(),l(),(a||e.sp)&&!ms(e)&&L3(e),a){if(i.then(wS,wS),t)return i.then(s=>{OS(e,s,t)}).catch(s=>{Rf(s,e,0)});e.asyncDep=i}else OS(e,i,t)}else iO(e,t)}function OS(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bt(t)&&(e.setupState=C3(t)),iO(e,n)}let PS;function iO(e,t,n){const o=e.type;if(!e.render){if(!t&&PS&&!o.render){const r=o.template||o0(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,c=Zt(Zt({isCustomElement:l,delimiters:a},i),s);o.render=PS(r,c)}}e.render=o.render||Do}{const r=Cc(e);Er();try{N_(e)}finally{Mr(),r()}}}const $A={get(e,t){return Pn(e,"get",""),e[t]}};function aO(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$A),slots:e.slots,emit:e.emit,expose:t}}function zf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(C3(Zm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}})):e.proxy}function CA(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function xA(e){return st(e)&&"__vccOpts"in e}const P=(e,t)=>m_(e,t,Ys);function _r(e,t,n){const o=arguments.length;return o===2?Bt(t)&&!lt(t)?Yt(t)?p(e,null,[t]):p(e,t):p(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Yt(n)&&(n=[n]),p(e,t,n))}const wA="3.5.17";/** -* @vue/runtime-dom v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ov;const IS=typeof window<"u"&&window.trustedTypes;if(IS)try{ov=IS.createPolicy("vue",{createHTML:e=>e})}catch{}const sO=ov?e=>ov.createHTML(e):e=>e,OA="http://www.w3.org/2000/svg",PA="http://www.w3.org/1998/Math/MathML",br=typeof document<"u"?document:null,TS=br&&br.createElement("template"),IA={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?br.createElementNS(OA,e):t==="mathml"?br.createElementNS(PA,e):n?br.createElement(e,{is:n}):br.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>br.createTextNode(e),createComment:e=>br.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>br.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{TS.innerHTML=sO(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=TS.content;if(o==="svg"||o==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xr="transition",Ya="animation",ma=Symbol("_vtc"),cO={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uO=Zt({},D3,cO),TA=e=>(e.displayName="Transition",e.props=uO,e),cn=TA((e,{slots:t})=>_r(O_,dO(e),t)),Al=(e,t=[])=>{lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},ES=e=>e?lt(e)?e.some(t=>t.length>1):e.length>1:!1;function dO(e){const t={};for(const A in e)A in cO||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:l=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=l,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=EA(r),h=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:$,onLeave:x,onLeaveCancelled:C,onBeforeAppear:O=y,onAppear:w=S,onAppearCancelled:I=$}=t,T=(A,R,z,M)=>{A._enterCancelled=M,qr(A,R?u:a),qr(A,R?c:i),z&&z()},_=(A,R)=>{A._isLeaving=!1,qr(A,d),qr(A,g),qr(A,f),R&&R()},E=A=>(R,z)=>{const M=A?w:S,B=()=>T(R,A,z);Al(M,[R,B]),MS(()=>{qr(R,A?s:l),Uo(R,A?u:a),ES(M)||_S(R,o,h,B)})};return Zt(t,{onBeforeEnter(A){Al(y,[A]),Uo(A,l),Uo(A,i)},onBeforeAppear(A){Al(O,[A]),Uo(A,s),Uo(A,c)},onEnter:E(!1),onAppear:E(!0),onLeave(A,R){A._isLeaving=!0;const z=()=>_(A,R);Uo(A,d),A._enterCancelled?(Uo(A,f),rv()):(rv(),Uo(A,f)),MS(()=>{A._isLeaving&&(qr(A,d),Uo(A,g),ES(x)||_S(A,o,b,z))}),Al(x,[A,z])},onEnterCancelled(A){T(A,!1,void 0,!0),Al($,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),Al(I,[A])},onLeaveCancelled(A){_(A),Al(C,[A])}})}function EA(e){if(e==null)return null;if(Bt(e))return[xg(e.enter),xg(e.leave)];{const t=xg(e);return[t,t]}}function xg(e){return zM(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ma]||(e[ma]=new Set)).add(t)}function qr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[ma];n&&(n.delete(t),n.size||(e[ma]=void 0))}function MS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MA=0;function _S(e,t,n,o){const r=e._endId=++MA,l=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(l,n);const{type:i,timeout:a,propCount:s}=fO(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),l()},f=g=>{g.target===e&&++u>=s&&d()};setTimeout(()=>{u(n[v]||"").split(", "),r=o(`${Xr}Delay`),l=o(`${Xr}Duration`),i=AS(r,l),a=o(`${Ya}Delay`),s=o(`${Ya}Duration`),c=AS(a,s);let u=null,d=0,f=0;t===Xr?i>0&&(u=Xr,d=i,f=l.length):t===Ya?c>0&&(u=Ya,d=c,f=s.length):(d=Math.max(i,c),u=d>0?i>c?Xr:Ya:null,f=u?u===Xr?l.length:s.length:0);const g=u===Xr&&/\b(transform|all)(,|$)/.test(o(`${Xr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:g}}function AS(e,t){for(;e.lengthRS(n)+RS(e[o])))}function RS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rv(){return document.body.offsetHeight}function _A(e,t,n){const o=e[ma];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Td=Symbol("_vod"),pO=Symbol("_vsh"),En={beforeMount(e,{value:t},{transition:n}){e[Td]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),qa(e,!0),o.enter(e)):o.leave(e,()=>{qa(e,!1)}):qa(e,t))},beforeUnmount(e,{value:t}){qa(e,t)}};function qa(e,t){e.style.display=t?e[Td]:"none",e[pO]=!t}const AA=Symbol(""),RA=/(^|;)\s*display\s*:/;function DA(e,t,n){const o=e.style,r=Ht(n);let l=!1;if(n&&!r){if(t)if(Ht(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Du(o,a,"")}else for(const i in t)n[i]==null&&Du(o,i,"");for(const i in n)i==="display"&&(l=!0),Du(o,i,n[i])}else if(r){if(t!==n){const i=o[AA];i&&(n+=";"+i),o.cssText=n,l=RA.test(n)}}else t&&e.removeAttribute("style");Td in e&&(e[Td]=l?o.display:"",e[pO]&&(o.display="none"))}const DS=/\s*!important$/;function Du(e,t,n){if(lt(n))n.forEach(o=>Du(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=BA(e,t);DS.test(n)?e.setProperty(vi(o),n.replace(DS,""),"important"):e[o]=n}}const BS=["Webkit","Moz","ms"],wg={};function BA(e,t){const n=wg[t];if(n)return n;let o=Co(t);if(o!=="filter"&&o in e)return wg[t]=o;o=Mf(o);for(let r=0;rOg||(zA.then(()=>Og=0),Og=Date.now());function jA(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Lo(WA(o,n.value),t,5,[o])};return n.value=e,n.attached=HA(),n}function WA(e,t){if(lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const HS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VA=(e,t,n,o,r,l)=>{const i=r==="svg";t==="class"?_A(e,o,i):t==="style"?DA(e,n,o):If(t)?Lm(t)||LA(e,t,n,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):KA(e,t,o,i))?(LS(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&FS(e,t,o,i,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?LS(e,Co(t),o,l,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),FS(e,t,o,i))};function KA(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&HS(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return HS(t)&&Ht(n)?!1:t in e}const gO=new WeakMap,hO=new WeakMap,Ed=Symbol("_moveCb"),jS=Symbol("_enterCb"),GA=e=>(delete e.props.mode,e),XA=GA({name:"TransitionGroup",props:Zt({},uO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pn(),o=R3();let r,l;return An(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!ZA(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(UA),r.forEach(YA);const a=r.filter(qA);rv(),a.forEach(s=>{const c=s.el,u=c.style;Uo(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Ed]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Ed]=null,qr(c,i))};c.addEventListener("transitionend",d)}),r=[]}),()=>{const i=Qe(e),a=dO(i);let s=i.tag||We;if(r=[],l)for(let c=0;c{a.split(/\s+/).forEach(s=>s&&o.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(o);const{hasTransform:i}=fO(o);return l.removeChild(o),i}const QA=["ctrl","shift","alt","meta"],JA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QA.some(n=>e[`${n}Key`]&&!t.includes(n))},WS=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...l)=>{for(let i=0;i{vO().render(...e)},mO=(...e)=>{const t=vO().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=n7(o);if(!r)return;const l=t._component;!st(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,t7(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function t7(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n7(e){return Ht(e)?document.querySelector(e):e}var o7=!1;/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let bO;const jf=e=>bO=e,yO=Symbol();function lv(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function r7(){const e=n3(!0),t=e.run(()=>le({}));let n=[],o=[];const r=Zm({install(l){jf(r),r._a=l,l.provide(yO,r),l.config.globalProperties.$pinia=r,o.forEach(i=>n.push(i)),o=[]},use(l){return!this._a&&!o7?o.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const SO=()=>{};function KS(e,t,n,o=SO){e.push(t);const r=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),o())};return!n&&Wm()&&o3(r),r}function _i(e,...t){e.slice().forEach(n=>{n(...t)})}const l7=e=>e(),GS=Symbol(),Pg=Symbol();function iv(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];lv(r)&&lv(o)&&e.hasOwnProperty(n)&&!kt(o)&&!fl(o)?e[n]=iv(r,o):e[n]=o}return e}const i7=Symbol();function a7(e){return!lv(e)||!e.hasOwnProperty(i7)}const{assign:Zr}=Object;function s7(e){return!!(kt(e)&&e.effect)}function c7(e,t,n,o){const{state:r,actions:l,getters:i}=t,a=n.state.value[e];let s;function c(){a||(n.state.value[e]=r?r():{});const u=No(n.state.value[e]);return Zr(u,l,Object.keys(i||{}).reduce((d,f)=>(d[f]=Zm(P(()=>{jf(n);const g=n._s.get(e);return i[f].call(g,g)})),d),{}))}return s=$O(e,c,t,n,o,!0),s}function $O(e,t,n={},o,r,l){let i;const a=Zr({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],g;const v=o.state.value[e];!l&&!v&&(o.state.value[e]={}),le({});let h;function b(I){let T;c=u=!1,typeof I=="function"?(I(o.state.value[e]),T={type:Ss.patchFunction,storeId:e,events:g}):(iv(o.state.value[e],I),T={type:Ss.patchObject,payload:I,storeId:e,events:g});const _=h=Symbol();ot().then(()=>{h===_&&(c=!0)}),u=!0,_i(d,T,o.state.value[e])}const y=l?function(){const{state:T}=n,_=T?T():{};this.$patch(E=>{Zr(E,_)})}:SO;function S(){i.stop(),d=[],f=[],o._s.delete(e)}const $=(I,T="")=>{if(GS in I)return I[Pg]=T,I;const _=function(){jf(o);const E=Array.from(arguments),A=[],R=[];function z(N){A.push(N)}function M(N){R.push(N)}_i(f,{args:E,name:_[Pg],store:C,after:z,onError:M});let B;try{B=I.apply(this&&this.$id===e?this:C,E)}catch(N){throw _i(R,N),N}return B instanceof Promise?B.then(N=>(_i(A,N),N)).catch(N=>(_i(R,N),Promise.reject(N))):(_i(A,B),B)};return _[GS]=!0,_[Pg]=T,_},x={_p:o,$id:e,$onAction:KS.bind(null,f),$patch:b,$reset:y,$subscribe(I,T={}){const _=KS(d,I,T.detached,()=>E()),E=i.run(()=>be(()=>o.state.value[e],A=>{(T.flush==="sync"?u:c)&&I({storeId:e,type:Ss.direct,events:g},A)},Zr({},s,T)));return _},$dispose:S},C=ut(x);o._s.set(e,C);const w=(o._a&&o._a.runWithContext||l7)(()=>o._e.run(()=>(i=n3()).run(()=>t({action:$}))));for(const I in w){const T=w[I];if(kt(T)&&!s7(T)||fl(T))l||(v&&a7(T)&&(kt(T)?T.value=v[I]:iv(T,v[I])),o.state.value[e][I]=T);else if(typeof T=="function"){const _=$(T,I);w[I]=_,a.actions[I]=T}}return Zr(C,w),Zr(Qe(C),w),Object.defineProperty(C,"$state",{get:()=>o.state.value[e],set:I=>{b(T=>{Zr(T,I)})}}),o._p.forEach(I=>{Zr(C,i.run(()=>I({store:C,app:o._a,pinia:o,options:a})))}),v&&l&&n.hydrate&&n.hydrate(C.$state,v),c=!0,u=!0,C}/*! #__NO_SIDE_EFFECTS__ */function u7(e,t,n){let o,r;const l=typeof t=="function";typeof e=="string"?(o=e,r=l?n:t):(r=e,o=e.id);function i(a,s){const c=W_();return a=a||(c?He(yO,null):null),a&&jf(a),a=bO,a._s.has(o)||(l?$O(o,t,r,a):c7(o,r,a)),a._s.get(o)}return i.$id=o,i}const d7="modulepreload",f7=function(e){return"/"+e},XS={},Za=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=f7(l),l in XS)return;XS[l]=!0;const i=l.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===l&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":d7,i||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),i)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})};/*! - * vue-router v4.5.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Hi=typeof document<"u";function CO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function p7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&CO(e.default)}const wt=Object.assign;function Ig(e,t){const n={};for(const o in t){const r=t[o];n[o]=ko(r)?r.map(e):e(r)}return n}const $s=()=>{},ko=Array.isArray,xO=/#/g,g7=/&/g,h7=/\//g,v7=/=/g,m7=/\?/g,wO=/\+/g,b7=/%5B/g,y7=/%5D/g,OO=/%5E/g,S7=/%60/g,PO=/%7B/g,$7=/%7C/g,IO=/%7D/g,C7=/%20/g;function u0(e){return encodeURI(""+e).replace($7,"|").replace(b7,"[").replace(y7,"]")}function x7(e){return u0(e).replace(PO,"{").replace(IO,"}").replace(OO,"^")}function av(e){return u0(e).replace(wO,"%2B").replace(C7,"+").replace(xO,"%23").replace(g7,"%26").replace(S7,"`").replace(PO,"{").replace(IO,"}").replace(OO,"^")}function w7(e){return av(e).replace(v7,"%3D")}function O7(e){return u0(e).replace(xO,"%23").replace(m7,"%3F")}function P7(e){return e==null?"":O7(e).replace(h7,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const I7=/\/$/,T7=e=>e.replace(I7,"");function Tg(e,t,n="/"){let o,r={},l="",i="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(o=t.slice(0,s),l=t.slice(s+1,a>-1?a:t.length),r=e(l)),a>-1&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=A7(o??t,n),{fullPath:o+(l&&"?")+l+i,path:o,query:r,hash:qs(i)}}function E7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function US(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M7(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ba(t.matched[o],n.matched[r])&&TO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ba(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function TO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_7(e[n],t[n]))return!1;return!0}function _7(e,t){return ko(e)?YS(e,t):ko(t)?YS(t,e):e===t}function YS(e,t){return ko(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function A7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let l=n.length-1,i,a;for(i=0;i1&&l--;else break;return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}const Ur={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zs;(function(e){e.pop="pop",e.push="push"})(Zs||(Zs={}));var Cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cs||(Cs={}));function R7(e){if(!e)if(Hi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),T7(e)}const D7=/^[^#]+#/;function B7(e,t){return e.replace(D7,"#")+t}function N7(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Wf=()=>({left:window.scrollX,top:window.scrollY});function F7(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=N7(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function qS(e,t){return(history.state?history.state.position-t:-1)+e}const sv=new Map;function L7(e,t){sv.set(e,t)}function k7(e){const t=sv.get(e);return sv.delete(e),t}let z7=()=>location.protocol+"//"+location.host;function EO(e,t){const{pathname:n,search:o,hash:r}=t,l=e.indexOf("#");if(l>-1){let a=r.includes(e.slice(l))?e.slice(l).length:1,s=r.slice(a);return s[0]!=="/"&&(s="/"+s),US(s,"")}return US(n,e)+o+r}function H7(e,t,n,o){let r=[],l=[],i=null;const a=({state:f})=>{const g=EO(e,location),v=n.value,h=t.value;let b=0;if(f){if(n.value=g,t.value=f,i&&i===v){i=null;return}b=h?f.position-h.position:0}else o(g);r.forEach(y=>{y(n.value,v,{delta:b,type:Zs.pop,direction:b?b>0?Cs.forward:Cs.back:Cs.unknown})})};function s(){i=n.value}function c(f){r.push(f);const g=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return l.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(wt({},f.state,{scroll:Wf()}),"")}function d(){for(const f of l)f();l=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:c,destroy:d}}function ZS(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Wf():null}}function j7(e){const{history:t,location:n}=window,o={value:EO(e,n)},r={value:t.state};r.value||l(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(s,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:z7()+e+s;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](f)}}function i(s,c){const u=wt({},t.state,ZS(r.value.back,s,r.value.forward,!0),c,{position:r.value.position});l(s,u,!0),o.value=s}function a(s,c){const u=wt({},r.value,t.state,{forward:s,scroll:Wf()});l(u.current,u,!0);const d=wt({},ZS(o.value,s,null),{position:u.position+1},c);l(s,d,!1),o.value=s}return{location:o,state:r,push:a,replace:i}}function W7(e){e=R7(e);const t=j7(e),n=H7(e,t.state,t.location,t.replace);function o(l,i=!0){i||n.pauseListeners(),history.go(l)}const r=wt({location:"",base:e,go:o,createHref:B7.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V7(e){return typeof e=="string"||e&&typeof e=="object"}function MO(e){return typeof e=="string"||typeof e=="symbol"}const _O=Symbol("");var QS;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(QS||(QS={}));function ya(e,t){return wt(new Error,{type:e,[_O]:!0},t)}function fr(e,t){return e instanceof Error&&_O in e&&(t==null||!!(e.type&t))}const JS="[^/]+?",K7={sensitive:!1,strict:!1,start:!0,end:!0},G7=/[.+*?^${}()[\]/\\]/g;function X7(e,t){const n=wt({},K7,t),o=[];let r=n.start?"^":"";const l=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function AO(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Y7={type:0,value:""},q7=/[a-zA-Z0-9_]/;function Z7(e){if(!e)return[[]];if(e==="/")return[[Y7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,o=n;const r=[];let l;function i(){l&&r.push(l),l=[]}let a=0,s,c="",u="";function d(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{i($)}:$s}function i(d){if(MO(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function s(d){const f=nR(d,n);n.splice(f,0,d),d.record.name&&!o$(d)&&o.set(d.record.name,d)}function c(d,f){let g,v={},h,b;if("name"in d&&d.name){if(g=o.get(d.name),!g)throw ya(1,{location:d});b=g.record.name,v=wt(t$(f.params,g.keys.filter($=>!$.optional).concat(g.parent?g.parent.keys.filter($=>$.optional):[]).map($=>$.name)),d.params&&t$(d.params,g.keys.map($=>$.name))),h=g.stringify(v)}else if(d.path!=null)h=d.path,g=n.find($=>$.re.test(h)),g&&(v=g.parse(h),b=g.record.name);else{if(g=f.name?o.get(f.name):n.find($=>$.re.test(f.path)),!g)throw ya(1,{location:d,currentLocation:f});b=g.record.name,v=wt({},f.params,d.params),h=g.stringify(v)}const y=[];let S=g;for(;S;)y.unshift(S.record),S=S.parent;return{name:b,path:h,params:v,matched:y,meta:tR(y)}}e.forEach(d=>l(d));function u(){n.length=0,o.clear()}return{addRoute:l,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function t$(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function n$(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:eR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function eR(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function o$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tR(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function r$(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function nR(e,t){let n=0,o=t.length;for(;n!==o;){const l=n+o>>1;AO(e,t[l])<0?o=l:n=l+1}const r=oR(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function oR(e){let t=e;for(;t=t.parent;)if(RO(t)&&AO(e,t)===0)return t}function RO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rR(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rl&&av(l)):[o&&av(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function lR(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=ko(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const iR=Symbol(""),i$=Symbol(""),Vf=Symbol(""),DO=Symbol(""),cv=Symbol("");function Qa(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function nl(e,t,n,o,r,l=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(ya(4,{from:n,to:t})):f instanceof Error?s(f):V7(f)?s(ya(2,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),a())},u=l(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>s(f))})}function Eg(e,t,n,o,r=l=>l()){const l=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(CO(s)){const u=(s.__vccOpts||s)[t];u&&l.push(nl(u,n,o,i,a,r))}else{let c=s();l.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=p7(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const g=(d.__vccOpts||d)[t];return g&&nl(g,n,o,i,a,r)()}))}}return l}function a$(e){const t=He(Vf),n=He(DO),o=P(()=>{const s=$t(e.to);return t.resolve(s)}),r=P(()=>{const{matched:s}=o.value,{length:c}=s,u=s[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(ba.bind(null,u));if(f>-1)return f;const g=s$(s[c-2]);return c>1&&s$(u)===g&&d[d.length-1].path!==g?d.findIndex(ba.bind(null,s[c-2])):f}),l=P(()=>r.value>-1&&dR(n.params,o.value.params)),i=P(()=>r.value>-1&&r.value===n.matched.length-1&&TO(n.params,o.value.params));function a(s={}){if(uR(s)){const c=t[$t(e.replace)?"replace":"push"]($t(e.to)).catch($s);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:l,isExactActive:i,navigate:a}}function aR(e){return e.length===1?e[0]:e}const sR=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:a$,setup(e,{slots:t}){const n=ut(a$(e)),{options:o}=He(Vf),r=P(()=>({[c$(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[c$(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&aR(t.default(n));return e.custom?l:_r("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}}),cR=sR;function uR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dR(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!ko(r)||r.length!==o.length||o.some((l,i)=>l!==r[i]))return!1}return!0}function s$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const c$=(e,t,n)=>e??t??n,fR=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=He(cv),r=P(()=>e.route||o.value),l=He(i$,0),i=P(()=>{let c=$t(l);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=P(()=>r.value.matched[i.value]);Ge(i$,P(()=>i.value+1)),Ge(iR,a),Ge(cv,r);const s=le();return be(()=>[s.value,a.value,e.name],([c,u,d],[f,g,v])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!ba(u,g)||!f)&&(u.enterCallbacks[d]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return u$(n.default,{Component:f,route:c});const g=d.props[u],v=g?g===!0?c.params:typeof g=="function"?g(c):g:null,b=_r(f,wt({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:s}));return u$(n.default,{Component:b,route:c})||b}}});function u$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pR=fR;function gR(e){const t=J7(e.routes,e),n=e.parseQuery||rR,o=e.stringifyQuery||l$,r=e.history,l=Qa(),i=Qa(),a=Qa(),s=te(Ur);let c=Ur;Hi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ig.bind(null,G=>""+G),d=Ig.bind(null,P7),f=Ig.bind(null,qs);function g(G,J){let Q,K;return MO(G)?(Q=t.getRecordMatcher(G),K=J):K=G,t.addRoute(K,Q)}function v(G){const J=t.getRecordMatcher(G);J&&t.removeRoute(J)}function h(){return t.getRoutes().map(G=>G.record)}function b(G){return!!t.getRecordMatcher(G)}function y(G,J){if(J=wt({},J||s.value),typeof G=="string"){const X=Tg(n,G,J.path),ne=t.resolve({path:X.path},J),ae=r.createHref(X.fullPath);return wt(X,ne,{params:f(ne.params),hash:qs(X.hash),redirectedFrom:void 0,href:ae})}let Q;if(G.path!=null)Q=wt({},G,{path:Tg(n,G.path,J.path).path});else{const X=wt({},G.params);for(const ne in X)X[ne]==null&&delete X[ne];Q=wt({},G,{params:d(X)}),J.params=d(J.params)}const K=t.resolve(Q,J),q=G.hash||"";K.params=u(f(K.params));const pe=E7(o,wt({},G,{hash:x7(q),path:K.path})),W=r.createHref(pe);return wt({fullPath:pe,hash:q,query:o===l$?lR(G.query):G.query||{}},K,{redirectedFrom:void 0,href:W})}function S(G){return typeof G=="string"?Tg(n,G,s.value.path):wt({},G)}function $(G,J){if(c!==G)return ya(8,{from:J,to:G})}function x(G){return w(G)}function C(G){return x(wt(S(G),{replace:!0}))}function O(G){const J=G.matched[G.matched.length-1];if(J&&J.redirect){const{redirect:Q}=J;let K=typeof Q=="function"?Q(G):Q;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=S(K):{path:K},K.params={}),wt({query:G.query,hash:G.hash,params:K.path!=null?{}:G.params},K)}}function w(G,J){const Q=c=y(G),K=s.value,q=G.state,pe=G.force,W=G.replace===!0,X=O(Q);if(X)return w(wt(S(X),{state:typeof X=="object"?wt({},q,X.state):q,force:pe,replace:W}),J||Q);const ne=Q;ne.redirectedFrom=J;let ae;return!pe&&M7(o,K,Q)&&(ae=ya(16,{to:ne,from:K}),j(K,K,!0,!1)),(ae?Promise.resolve(ae):_(ne,K)).catch(se=>fr(se)?fr(se,2)?se:k(se):F(se,ne,K)).then(se=>{if(se){if(fr(se,2))return w(wt({replace:W},S(se.to),{state:typeof se.to=="object"?wt({},q,se.to.state):q,force:pe}),J||ne)}else se=A(ne,K,!0,W,q);return E(ne,K,se),se})}function I(G,J){const Q=$(G,J);return Q?Promise.reject(Q):Promise.resolve()}function T(G){const J=Z.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(G):G()}function _(G,J){let Q;const[K,q,pe]=hR(G,J);Q=Eg(K.reverse(),"beforeRouteLeave",G,J);for(const X of K)X.leaveGuards.forEach(ne=>{Q.push(nl(ne,G,J))});const W=I.bind(null,G,J);return Q.push(W),ee(Q).then(()=>{Q=[];for(const X of l.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).then(()=>{Q=Eg(q,"beforeRouteUpdate",G,J);for(const X of q)X.updateGuards.forEach(ne=>{Q.push(nl(ne,G,J))});return Q.push(W),ee(Q)}).then(()=>{Q=[];for(const X of pe)if(X.beforeEnter)if(ko(X.beforeEnter))for(const ne of X.beforeEnter)Q.push(nl(ne,G,J));else Q.push(nl(X.beforeEnter,G,J));return Q.push(W),ee(Q)}).then(()=>(G.matched.forEach(X=>X.enterCallbacks={}),Q=Eg(pe,"beforeRouteEnter",G,J,T),Q.push(W),ee(Q))).then(()=>{Q=[];for(const X of i.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).catch(X=>fr(X,8)?X:Promise.reject(X))}function E(G,J,Q){a.list().forEach(K=>T(()=>K(G,J,Q)))}function A(G,J,Q,K,q){const pe=$(G,J);if(pe)return pe;const W=J===Ur,X=Hi?history.state:{};Q&&(K||W?r.replace(G.fullPath,wt({scroll:W&&X&&X.scroll},q)):r.push(G.fullPath,q)),s.value=G,j(G,J,Q,W),k()}let R;function z(){R||(R=r.listen((G,J,Q)=>{if(!U.listening)return;const K=y(G),q=O(K);if(q){w(wt(q,{replace:!0,force:!0}),K).catch($s);return}c=K;const pe=s.value;Hi&&L7(qS(pe.fullPath,Q.delta),Wf()),_(K,pe).catch(W=>fr(W,12)?W:fr(W,2)?(w(wt(S(W.to),{force:!0}),K).then(X=>{fr(X,20)&&!Q.delta&&Q.type===Zs.pop&&r.go(-1,!1)}).catch($s),Promise.reject()):(Q.delta&&r.go(-Q.delta,!1),F(W,K,pe))).then(W=>{W=W||A(K,pe,!1),W&&(Q.delta&&!fr(W,8)?r.go(-Q.delta,!1):Q.type===Zs.pop&&fr(W,20)&&r.go(-1,!1)),E(K,pe,W)}).catch($s)}))}let M=Qa(),B=Qa(),N;function F(G,J,Q){k(G);const K=B.list();return K.length?K.forEach(q=>q(G,J,Q)):console.error(G),Promise.reject(G)}function L(){return N&&s.value!==Ur?Promise.resolve():new Promise((G,J)=>{M.add([G,J])})}function k(G){return N||(N=!G,z(),M.list().forEach(([J,Q])=>G?Q(G):J()),M.reset()),G}function j(G,J,Q,K){const{scrollBehavior:q}=e;if(!Hi||!q)return Promise.resolve();const pe=!Q&&k7(qS(G.fullPath,0))||(K||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>q(G,J,pe)).then(W=>W&&F7(W)).catch(W=>F(W,G,J))}const H=G=>r.go(G);let Y;const Z=new Set,U={currentRoute:s,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:h,resolve:y,options:e,push:x,replace:C,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:l.add,beforeResolve:i.add,afterEach:a.add,onError:B.add,isReady:L,install(G){const J=this;G.component("RouterLink",cR),G.component("RouterView",pR),G.config.globalProperties.$router=J,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>$t(s)}),Hi&&!Y&&s.value===Ur&&(Y=!0,x(r.location).catch(q=>{}));const Q={};for(const q in Ur)Object.defineProperty(Q,q,{get:()=>s.value[q],enumerable:!0});G.provide(Vf,J),G.provide(DO,b3(Q)),G.provide(cv,s);const K=G.unmount;Z.add(G),G.unmount=function(){Z.delete(G),Z.size<1&&(c=Ur,R&&R(),R=null,s.value=Ur,Y=!1,N=!1),K()}}};function ee(G){return G.reduce((J,Q)=>J.then(()=>T(Q)),Promise.resolve())}return U}function hR(e,t){const n=[],o=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let i=0;iba(c,a))?o.push(a):n.push(a));const s=e.matched[i];s&&(t.matched.find(c=>ba(c,s))||r.push(s))}return[n,o,r]}function w0e(){return He(Vf)}const vR=[{path:"/",name:"Home",component:()=>Za(()=>import("./Home-8e72349b.js"),["assets/js/Home-8e72349b.js","assets/js/chat-e1054b12.js","assets/css/Home-c2a76248.css"]),meta:{title:"情绪博物馆 - 首页"}},{path:"/test",name:"Test",component:()=>Za(()=>import("./HomeTest-a9ed2425.js"),["assets/js/HomeTest-a9ed2425.js","assets/css/HomeTest-dd1db0d3.css"]),meta:{title:"情绪博物馆 - 测试页面"}},{path:"/chat",name:"Chat",component:()=>Za(()=>import("./ChatComplete-7551ced4.js"),["assets/js/ChatComplete-7551ced4.js","assets/js/chat-e1054b12.js","assets/css/ChatComplete-68dc21b4.css"]),meta:{title:"AI对话 - 情绪博物馆"}},{path:"/history",name:"History",component:()=>Za(()=>import("./HistorySimple-e430de64.js"),["assets/js/HistorySimple-e430de64.js","assets/css/HistorySimple-caafbb99.css"]),meta:{title:"对话历史 - 情绪博物馆"}},{path:"/analysis",name:"Analysis",component:()=>Za(()=>import("./AnalysisSimple-7a988a7b.js"),["assets/js/AnalysisSimple-7a988a7b.js","assets/css/AnalysisSimple-eb0c3031.css"]),meta:{title:"情绪分析 - 情绪博物馆"}}],BO=gR({history:W7(),routes:vR});BO.beforeEach((e,t,n)=>{e.meta.title&&(document.title=e.meta.title),n()});const mR=u7("user",()=>{const e=le({id:"",name:"",avatar:""}),t=le(!1);return{userInfo:e,isLoggedIn:t,initUser:()=>{const l=localStorage.getItem("emotion_museum_user");if(l)e.value=JSON.parse(l),t.value=!0;else{const i=`guest_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.value={id:i,name:"访客用户",avatar:"",isGuest:!0},t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(e.value)),console.log("创建临时用户:",i)}},setUser:l=>{e.value=l,t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(l))},clearUser:()=>{e.value={id:"",name:"",avatar:""},t.value=!1,localStorage.removeItem("emotion_museum_user")}}}),bR=()=>({APP_TITLE:"情绪博物馆",APP_VERSION:"1.0.0",APP_ENV:"production",API_BASE_URL:"https://api.emotion-museum.com/api",API_TARGET:"https://api.emotion-museum.com",API_TIMEOUT:parseInt("30000")||3e4,DEBUG_MODE:!1,MOCK_DATA:!1,isDevelopment:!1,isTest:!1,isProduction:!0}),Nt=bR(),xc=(...e)=>{Nt.DEBUG_MODE&&console.log("[DEBUG]",...e)},NO=()=>{console.log("=== 环境配置信息 ==="),console.log("应用标题:",Nt.APP_TITLE),console.log("应用版本:",Nt.APP_VERSION),console.log("运行环境:",Nt.APP_ENV),console.log("API地址:",Nt.API_BASE_URL),console.log("调试模式:",Nt.DEBUG_MODE),console.log("==================")};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function yR(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Qs(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SR(e){var t=yR(e,"string");return Qs(t)=="symbol"?t:t+""}function $R(e,t,n){return(t=SR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function D(e){for(var t=1;ttypeof e=="function",CR=Array.isArray,xR=e=>typeof e=="string",wR=e=>e!==null&&typeof e=="object",OR=/^on[^a-z]/,PR=e=>OR.test(e),d0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},IR=/-(\w)/g,mi=d0(e=>e.replace(IR,(t,n)=>n?n.toUpperCase():"")),TR=/\B([A-Z])/g,ER=d0(e=>e.replace(TR,"-$1").toLowerCase()),MR=d0(e=>e.charAt(0).toUpperCase()+e.slice(1)),_R=Object.prototype.hasOwnProperty,f$=(e,t)=>_R.call(e,t);function AR(e,t,n,o){const r=e[n];if(r!=null){const l=f$(r,"default");if(l&&o===void 0){const i=r.default;o=r.type!==Function&&uv(i)?i():i}r.type===Boolean&&(!f$(t,n)&&!l?o=!1:o===""&&(o=!0))}return o}function RR(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Vl(e){return typeof e=="number"?`${e}px`:e}function Xi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function DR(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t==null||t()};return o.then=(r,l)=>n.then(r,l),o.promise=n,o}function ie(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!dv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zR?(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)},e.prototype.disconnect_=function(){!dv||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,r=kR.some(function(l){return!!~o.indexOf(l)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),LO=function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new YR(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new qR(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),zO=typeof WeakMap<"u"?new WeakMap:new FO,HO=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HR.getInstance(),o=new ZR(t,n,this);zO.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){HO.prototype[e]=function(){var t;return(t=zO.get(this))[e].apply(t,arguments)}});var QR=function(){return typeof Md.ResizeObserver<"u"?Md.ResizeObserver:HO}();const f0=QR,JR=e=>e!=null&&e!=="",fv=JR,eD=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},qe=eD,p0=e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;l0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(l){if(l){const i=l.split(r);if(i.length>1){const a=t?mi(i[0].trim()):i[0].trim();n[a]=i[1].trim()}}}),n)},xr=(e,t)=>e[t]!==void 0,jO=Symbol("skipFlatten"),yt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...yt(r,t)):r&&r.type===We?r.key===jO?o.push(r):o.push(...yt(r.children,t)):r&&Yt(r)?t&&!wc(r)?o.push(r):t||o.push(r):fv(r)&&o.push(r)}),o},Gf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Yt(e))return e.type===We?t==="default"?yt(e.children):[]:e.children&&e.children[t]?yt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return yt(o)}},Hn=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},WO=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],l=ER(o);(r!==void 0||l in n)&&(t[o]=r)})}else if(Yt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(l=>{o[mi(l)]=n[l]});const r=e.type.props||{};Object.keys(r).forEach(l=>{const i=AR(r,o,l,o[l]);(i!==void 0||l in o)&&(t[l]=i)})}return t},VO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const l=e[t];if(l!==void 0)return typeof l=="function"&&o?l(n):l;r=e.$slots[t],r=o&&r?r(n):r}else if(Yt(e)){const l=e.props&&e.props[t];if(l!==void 0&&e.props!==null)return typeof l=="function"&&o?l(n):l;e.type===We?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=yt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function g$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=m(m({},n),e.$attrs):n=m(m({},n),e.props),p0(n)[t?"onEvents":"events"]}function nD(e){const n=((Yt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?ie(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=m(m({},o),n),o}function KO(e,t){let o=((Yt(e)?e.props:e.$attrs)||{}).style||{};if(typeof o=="string")o=tD(o,t);else if(t&&o){const r={};return Object.keys(o).forEach(l=>r[mi(l)]=o[l]),r}return o}function oD(e){return e.length===1&&e[0].type===We}function rD(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function wc(e){return e&&(e.type===bn||e.type===We&&e.children.length===0||e.type===Cl&&e.children.trim()==="")}function lD(e){return e&&e.type===Cl}function _t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===We?t.push(..._t(n.children)):t.push(n)}),t.filter(n=>!wc(n))}function Ja(e){if(e){const t=_t(e);return t.length?t:void 0}else return e}function Kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const xo=oe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=ut({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,l=null;const i=()=>{l&&(l.disconnect(),l=null)},a=u=>{const{onResize:d}=e,f=u[0].target,{width:g,height:v}=f.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=f,y=Math.floor(g),S=Math.floor(v);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};m(o,$),d&&Promise.resolve().then(()=>{d(m(m({},$),{offsetWidth:h,offsetHeight:b}),f)})}},s=pn(),c=()=>{const{disabled:u}=e;if(u){i();return}const d=Hn(s);d!==r&&(i(),r=d),!l&&d&&(l=new f0(a),l.observe(d))};return je(()=>{c()}),An(()=>{c()}),Rn(()=>{i()}),be(()=>e.disabled,()=>{c()},{flush:"post"}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});let GO=e=>setTimeout(e,16),XO=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(GO=e=>window.requestAnimationFrame(e),XO=e=>window.cancelAnimationFrame(e));let h$=0;const g0=new Map;function UO(e){g0.delete(e)}function Ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;h$+=1;const n=h$;function o(r){if(r===0)UO(n),e();else{const l=GO(()=>{o(r-1)});g0.set(n,l)}}return o(t),n}Ye.cancel=e=>{const t=g0.get(e);return UO(t),XO(t)};function pv(e){let t;const n=r=>()=>{t=null,e(...r)},o=function(){if(t==null){for(var r=arguments.length,l=new Array(r),i=0;i{Ye.cancel(t),t=null},o}const Cn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function si(){return{type:[Function,Array]}}function Re(e){return{type:Object,default:e}}function Ce(e){return{type:Boolean,default:e}}function ve(e){return{type:Function,default:e}}function St(e,t){const n={validator:()=>!0,default:e};return n}function In(){return{validator:()=>!0}}function at(e){return{type:Array,default:e}}function Be(e){return{type:String,default:e}}function Le(e,t){return e?{type:e,default:t}:St(t)}let YO=!1;try{const e=Object.defineProperty({},"passive",{get(){YO=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const nn=YO;function Mt(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&nn&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Zc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function v$(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function m$(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xs.push(n),qO.forEach(o=>{n.eventHandlers[o]=Mt(e,o,()=>{n.affixList.forEach(r=>{const{lazyUpdatePosition:l}=r.exposed;l()},(o==="touchstart"||o==="touchmove")&&nn?{passive:!0}:!1)})}))}function y$(e){const t=xs.find(n=>{const o=n.affixList.some(r=>r===e);return o&&(n.affixList=n.affixList.filter(r=>r!==e)),o});t&&t.affixList.length===0&&(xs=xs.filter(n=>n!==t),qO.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const h0="anticon",ZO=Symbol("GlobalFormContextKey"),aD=e=>{Ge(ZO,e)},sD=()=>He(ZO,{validateMessages:P(()=>{})}),cD=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Re(),input:Re(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Re(),pageHeader:Re(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Re(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Re(),pagination:Re(),theme:Re(),select:Re(),wave:Re()}),v0=Symbol("configProvider"),QO={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>h0),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},Xf=()=>He(v0,QO),uD=e=>Ge(v0,e),JO=Symbol("DisabledContextKey"),qn=()=>He(JO,le(void 0)),eP=e=>{const t=qn();return Ge(JO,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},tP={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},dD={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"},fD=dD,pD={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nP=pD,gD={lang:m({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"]},fD),timePickerLocale:m({},nP)},Js=gD,eo="${label} is not a valid ${type}",hD={locale:"en",Pagination:tP,DatePicker:Js,TimePicker:nP,Calendar:Js,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",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"},PageHeader:{back:"Back"},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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},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"}},jn=hD,bi=oe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=He("localeData",{}),r=P(()=>{const{componentName:i="global",defaultLocale:a}=e,s=a||jn[i||"global"],{antLocale:c}=o,u=i&&c?c[i]:{};return m(m({},typeof s=="function"?s():s),u||{})}),l=P(()=>{const{antLocale:i}=o,a=i&&i.locale;return i&&i.exist&&!a?jn.locale:a});return()=>{const i=e.children||n.default,{antLocale:a}=o;return i==null?void 0:i(r.value,l.value,a)}}});function Io(e,t,n){const o=He("localeData",{});return[P(()=>{const{antLocale:l}=o,i=$t(t)||jn[e||"global"],a=e&&l?l[e]:{};return m(m(m({},typeof i=="function"?i():i),a||{}),$t(n)||{})})]}function m0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const S$="%";class vD{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(S$):t)||null}update(t,n){const o=Array.isArray(t)?t.join(S$):t,r=this.cache.get(o),l=n(r);l===null?this.cache.delete(o):this.cache.set(o,l)}}const mD=vD,b0="data-token-hash",pl="data-css-hash",Ui="__cssinjs_instance__";function $a(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${pl}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[Ui]=r[Ui]||e,r[Ui]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${pl}]`)).forEach(r=>{var l;const i=r.getAttribute(pl);o[i]?r[Ui]===e&&((l=r.parentNode)===null||l===void 0||l.removeChild(r)):o[i]=!0})}return new mD(e)}const oP=Symbol("StyleContextKey"),bD=()=>{var e,t,n;const o=pn();let r;if(o&&o.appContext){const l=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=$a(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=$a();return r},rP={cache:$a(),defaultCache:!0,hashPriority:"low"},Oc=()=>{const e=bD();return He(oP,te(m(m({},rP),{cache:e})))},lP=e=>{const t=Oc(),n=te(m(m({},rP),{cache:$a()}));return be([()=>$t(e),t],()=>{const o=m({},t.value),r=$t(e);Object.keys(r).forEach(i=>{const a=r[i];r[i]!==void 0&&(o[i]=a)});const{cache:l}=r;o.cache=o.cache||$a(),o.defaultCache=!l&&t.value.defaultCache,n.value=o},{immediate:!0}),Ge(oP,n),n},yD=()=>({autoClear:Ce(),mock:Be(),cache:Re(),defaultCache:Ce(),hashPriority:Be(),container:Le(),ssrInline:Ce(),transformers:at(),linters:at()}),SD=Tt(oe({name:"AStyleProvider",inheritAttrs:!1,props:yD(),setup(e,t){let{slots:n}=t;return lP(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function iP(e,t,n,o){const r=Oc(),l=te(""),i=te();ke(()=>{l.value=[e,...t.value].join("%")});const a=s=>{r.value.cache.update(s,c=>{const[u=0,d]=c||[];return u-1===0?(o==null||o(d,!1),null):[u-1,d]})};return be(l,(s,c)=>{c&&a(c),r.value.cache.update(s,u=>{const[d=0,f]=u||[],v=f||n();return[d+1,v]}),i.value=r.value.cache.get(l.value)[1]},{immediate:!0}),Ze(()=>{a(l.value)}),i}function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rl(e,t){return e&&e.contains?e.contains(t):!1}const $$="data-vc-order",$D="vc-util-key",gv=new Map;function aP(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:$D}function Uf(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function CD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sP(e){return Array.from((gv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function cP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute($$,CD(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const l=Uf(t),{firstChild:i}=l;if(o){if(o==="queue"){const a=sP(l).filter(s=>["prepend","prependQueue"].includes(s.getAttribute($$)));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function uP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Uf(t);return sP(n).find(o=>o.getAttribute(aP(t))===e)}function Ad(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=uP(e,t);n&&Uf(t).removeChild(n)}function xD(e,t){const n=gv.get(e);if(!n||!rl(document,n)){const o=cP("",t),{parentNode:r}=o;gv.set(e,r),e.removeChild(o)}}function ec(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,l;const i=Uf(n);xD(i,n);const a=uP(t,n);if(a)return!((o=n.csp)===null||o===void 0)&&o.nonce&&a.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(a.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=cP(e,n);return s.setAttribute(aP(n),t),s}function wD(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var l;o?o=(l=o==null?void 0:o.map)===null||l===void 0?void 0:l.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ca.MAX_CACHE_SIZE+Ca.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((l,i)=>{const[,a]=l;return this.internalGet(i)[1]{if(l===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const i=o.get(r);i?i.map||(i.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const l=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),l}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!wD(n,t)),this.deleteByPath(this.cache,t)}}Ca.MAX_CACHE_SIZE=20;Ca.MAX_CACHE_OFFSET=5;let C$={};function OD(e,t){}function PD(e,t){}function dP(e,t,n){!t&&!C$[n]&&(e(!1,n),C$[n]=!0)}function Yf(e,t){dP(OD,e,t)}function ID(e,t){dP(PD,e,t)}function TD(){}let ED=TD;const It=ED;let x$=0;class y0{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=x$,t.length===0&&It(t.length>0),x$+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Mg=new Ca;function S0(e){const t=Array.isArray(e)?e:[e];return Mg.has(t)||Mg.set(t,new y0(t)),Mg.get(t)}const w$=new WeakMap;function Rd(e){let t=w$.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof y0?t+=o.id:o&&typeof o=="object"?t+=Rd(o):t+=o}),w$.set(e,t)),t}function MD(e,t){return m0(`${t}_${Rd(e)}`)}const ws=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),fP="_bAmBoO_";function _D(e,t,n){var o,r;if(Mn()){ec(e,ws);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",t==null||t(l),document.body.appendChild(l);const i=n?n(l):(o=getComputedStyle(l).content)===null||o===void 0?void 0:o.includes(fP);return(r=l.parentNode)===null||r===void 0||r.removeChild(l),Ad(ws),i}return!1}let _g;function AD(){return _g===void 0&&(_g=_D(`@layer ${ws} { .${ws} { content: "${fP}"!important; } }`,e=>{e.className=ws})),_g}const O$={},RD=!0,DD=!1,BD=!RD&&!DD?"css-dev-only-do-not-override":"css",Kl=new Map;function ND(e){Kl.set(e,(Kl.get(e)||0)+1)}function FD(e,t){typeof document<"u"&&document.querySelectorAll(`style[${b0}="${e}"]`).forEach(o=>{var r;o[Ui]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const LD=0;function kD(e,t){Kl.set(e,(Kl.get(e)||0)-1);const n=Array.from(Kl.keys()),o=n.filter(r=>(Kl.get(r)||0)<=0);n.length-o.length>LD&&o.forEach(r=>{FD(r,t),Kl.delete(r)})}const zD=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let l=m(m({},r),t);return o&&(l=o(l)),l};function pP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le({});const o=Oc(),r=P(()=>m({},...t.value)),l=P(()=>Rd(r.value)),i=P(()=>Rd(n.value.override||O$));return iP("token",P(()=>[n.value.salt||"",e.value.id,l.value,i.value]),()=>{const{salt:s="",override:c=O$,formatToken:u,getComputedToken:d}=n.value,f=d?d(r.value,c,e.value):zD(r.value,c,e.value,u),g=MD(f,s);f._tokenKey=g,ND(g);const v=`${BD}-${m0(g)}`;return f._hashId=v,[f,v]},s=>{var c;kD(s[0]._tokenKey,(c=o.value)===null||c===void 0?void 0:c.cache.instanceId)})}var gP={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},hP="comm",vP="rule",mP="decl",HD="@import",jD="@namespace",WD="@keyframes",VD="@layer",bP=Math.abs,$0=String.fromCharCode;function yP(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function KD(e,t,n){return e.indexOf(t,n)}function ra(e,t){return e.charCodeAt(t)|0}function xa(e,t,n){return e.slice(t,n)}function Jo(e){return e.length}function GD(e){return e.length}function Qc(e,t){return t.push(e),e}var qf=1,wa=1,SP=0,wo=0,on=0,Ra="";function C0(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:qf,column:wa,length:i,return:"",siblings:a}}function XD(){return on}function UD(){return on=wo>0?ra(Ra,--wo):0,wa--,on===10&&(wa=1,qf--),on}function Fo(){return on=wo2||tc(on)>3?"":" "}function QD(e,t){for(;--t&&Fo()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return Zf(e,Nu()+(t<6&&al()==32&&Fo()==32))}function hv(e){for(;Fo();)switch(on){case e:return wo;case 34:case 39:e!==34&&e!==39&&hv(on);break;case 40:e===41&&hv(e);break;case 92:Fo();break}return wo}function JD(e,t){for(;Fo()&&e+on!==47+10;)if(e+on===42+42&&al()===47)break;return"/*"+Zf(t,wo-1)+"*"+$0(e===47?e:Fo())}function e9(e){for(;!tc(al());)Fo();return Zf(e,wo)}function t9(e){return qD(Fu("",null,null,null,[""],e=YD(e),0,[0],e))}function Fu(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,f=0,g=0,v=0,h=1,b=1,y=1,S=0,$="",x=r,C=l,O=o,w=$;b;)switch(v=S,S=Fo()){case 40:if(v!=108&&ra(w,d-1)==58){KD(w+=Bu(Ag(S),"&","&\f"),"&\f",bP(c?a[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Ag(S);break;case 9:case 10:case 13:case 32:w+=ZD(v);break;case 92:w+=QD(Nu()-1,7);continue;case 47:switch(al()){case 42:case 47:Qc(n9(JD(Fo(),Nu()),t,n,s),s),(tc(v||1)==5||tc(al()||1)==5)&&Jo(w)&&xa(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:a[c++]=Jo(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:y==-1&&(w=Bu(w,/\f/g,"")),g>0&&(Jo(w)-d||h===0&&v===47)&&Qc(g>32?I$(w+";",o,n,d-1,s):I$(Bu(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(Qc(O=P$(w,t,n,c,u,r,a,$,x=[],C=[],d,l),l),S===123)if(u===0)Fu(w,t,O,O,x,l,d,a,C);else{switch(f){case 99:if(ra(w,3)===110)break;case 108:if(ra(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Fu(e,O,O,o&&Qc(P$(e,O,O,0,0,r,a,$,r,x=[],d,C),C),r,C,d,a,o?x:C):Fu(w,O,O,O,[""],C,0,a,C)}}c=u=g=0,h=y=1,$=w="",d=i;break;case 58:d=1+Jo(w),g=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&UD()==125)continue}switch(w+=$0(S),S*h){case 38:y=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Jo(w)-1)*y,y=1;break;case 64:al()===45&&(w+=Ag(Fo())),f=al(),u=d=Jo($=w+=e9(Nu())),S++;break;case 45:v===45&&Jo(w)==2&&(h=0)}}return l}function P$(e,t,n,o,r,l,i,a,s,c,u,d){for(var f=r-1,g=r===0?l:[""],v=GD(g),h=0,b=0,y=0;h0?g[S]+" "+$:Bu($,/&\f/g,g[S])))&&(s[y++]=x);return C0(e,t,n,r===0?vP:a,s,c,u,d)}function n9(e,t,n,o){return C0(e,t,n,hP,$0(XD()),xa(e,2,-2),0,o)}function I$(e,t,n,o,r){return C0(e,t,n,mP,xa(e,0,o),xa(e,o+1,-1),o,r)}function vv(e,t){for(var n="",o=0;o ")}`:""}`)}function r9(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(r=>r).length>1}function l9(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const i9=(e,t,n)=>{const r=l9(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(r9)&&Yi("Concat ':not' selector not support in legacy browsers.",n)},a9=i9,s9=(e,t,n)=>{switch(e){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":Yi(`You seem to be using non-logical property '${e}' 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.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const o=t.split(" ").map(r=>r.trim());o.length===4&&o[1]!==o[3]&&Yi(`You seem to be using '${e}' property with different left ${e} and right ${e}, 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.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(l=>l.trim()).reduce((l,i)=>{if(l)return l;const a=i.split(" ").map(s=>s.trim());return a.length>=2&&a[0]!==a[1]||a.length===3&&a[1]!==a[2]||a.length===4&&a[2]!==a[3]?!0:l},!1)&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return}},c9=s9,u9=(e,t,n)=>{n.parentSelectors.some(o=>o.split(",").some(l=>l.split("&").length>2))&&Yi("Should not use more than one `&` in a selector.",n)},d9=u9,Os="data-ant-cssinjs-cache-path",f9="_FILE_STYLE__";function p9(e){return Object.keys(e).map(t=>{const n=e[t];return`${t}:${n}`}).join(";")}let ti,$P=!0;function g9(){var e;if(!ti&&(ti={},Mn())){const t=document.createElement("div");t.className=Os,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(r=>{const[l,i]=r.split(":");ti[l]=i});const o=document.querySelector(`style[${Os}]`);o&&($P=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function h9(e){return g9(),!!ti[e]}function v9(e){const t=ti[e];let n=null;if(t&&Mn())if($P)n=f9;else{const o=document.querySelector(`style[${pl}="${ti[e]}"]`);o?n=o.innerHTML:delete ti[e]}return[n,t]}const T$=Mn(),m9="_skip_check_",CP="_multi_value_";function mv(e){return vv(t9(e),o9).replace(/\{%%%\:[^;];}/g,";")}function b9(e){return typeof e=="object"&&e&&(m9 in e||CP in e)}function y9(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(i=>{var a;const s=i.trim().split(/\s+/);let c=s[0]||"";const u=((a=c.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const E$=new Set,bv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",f={};function g(b){const y=b.getName(l);if(!f[y]){const[S]=bv(b.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${b.getName(l)}${S}`}}function v(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?v(S,y):S&&y.push(S)}),y}if(v(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} -`;else if(y._keyframe)g(y);else{const S=c.reduce(($,x)=>{var C;return((C=x==null?void 0:x.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!b9(C)){let O=!1,w=$.trim(),I=!1;(n||o)&&l?w.startsWith("@")?O=!0:w=y9($,l,s):n&&!l&&(w==="&"||w==="")&&(w="",I=!0);const[T,_]=bv(C,t,{root:I,injectHash:O,parentSelectors:[...r,w]});f=m(m({},f),_),d+=`${w}${T}`}else{let O=function(I,T){const _=I.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let E=T;!gP[I]&&typeof E=="number"&&E!==0&&(E=`${E}px`),I==="animationName"&&(T!=null&&T._keyframe)&&(g(T),E=T.getName(l)),d+=`${_}:${E};`};const w=(x=C==null?void 0:C.value)!==null&&x!==void 0?x:C;typeof C=="object"&&(C!=null&&C[CP])&&Array.isArray(w)?w.forEach(I=>{O($,I)}):O($,w)}})}}),!n)d=`{${d}}`;else if(i&&AD()){const b=i.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}return[d,f]};function S9(e,t){return m0(`${e.join("%")}${t}`)}function Dd(e,t){const n=Oc(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let l=T$;return iP("style",r,()=>{const{path:i,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,f=r.value.join("|");if(h9(f)){const[w,I]=v9(f);if(w)return[w,o.value,I,{},u,d]}const g=t(),{hashPriority:v,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=bv(g,{hashId:a,hashPriority:v,layer:s,path:i.join("-"),transformers:b,linters:y}),C=mv($),O=S9(r.value,C);if(l){const w={mark:pl,prepend:"queue",attachTo:h,priority:d},I=typeof c=="function"?c():c;I&&(w.csp={nonce:I});const T=ec(C,O,w);T[Ui]=S.instanceId,T.setAttribute(b0,o.value),Object.keys(x).forEach(_=>{E$.has(_)||(E$.add(_),ec(mv(x[_]),`_effect-${_}`,{mark:pl,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,u,d]},(i,a)=>{let[,,s]=i;(a||n.value.autoClear)&&T$&&Ad(s,{mark:pl})}),i=>i}function $9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n="style%",o=Array.from(e.cache.keys()).filter(c=>c.startsWith(n)),r={},l={};let i="";function a(c,u,d){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const g=m(m({},f),{[b0]:u,[pl]:d}),v=Object.keys(g).map(h=>{const b=g[h];return b?`${h}="${b}"`:null}).filter(h=>h).join(" ");return t?c:``}return o.map(c=>{const u=c.slice(n.length).replace(/%/g,"|"),[d,f,g,v,h,b]=e.cache.get(c)[1];if(h)return null;const y={"data-vc-order":"prependQueue","data-vc-priority":`${b}`};let S=a(d,f,g,y);return l[u]=g,v&&Object.keys(v).forEach(x=>{r[x]||(r[x]=!0,S+=a(mv(v[x]),f,`_effect-${x}`,y))}),[b,S]}).filter(c=>c).sort((c,u)=>c[0]-u[0]).forEach(c=>{let[,u]=c;i+=u}),i+=a(`.${Os}{content:"${p9(l)}";}`,void 0,void 0,{[Os]:Os}),i}class C9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const nt=C9;function x9(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce((r,l)=>(l.includes("(")?(n+=l,o+=l.split("(").length-1):l.includes(")")?(n+=` ${l}`,o-=l.split(")").length-1,o===0&&(r.push(n),n="")):o>0?n+=` ${l}`:r.push(l),r),[])}function Ai(e){return e.notSplit=!0,e}const w9={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:Ai(["borderTop","borderBottom"]),borderBlockStart:Ai(["borderTop"]),borderBlockEnd:Ai(["borderBottom"]),borderInline:Ai(["borderLeft","borderRight"]),borderInlineStart:Ai(["borderLeft"]),borderInlineEnd:Ai(["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 Jc(e){return{_skip_check_:!0,value:e}}const O9={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const o=e[n],r=w9[n];if(r&&(typeof o=="number"||typeof o=="string")){const l=x9(o);r.length&&r.notSplit?r.forEach(i=>{t[i]=Jc(o)}):r.length===1?t[r[0]]=Jc(o):r.length===2?r.forEach((i,a)=>{var s;t[i]=Jc((s=l[a])!==null&&s!==void 0?s:l[0])}):r.length===4?r.forEach((i,a)=>{var s,c;t[i]=Jc((c=(s=l[a])!==null&&s!==void 0?s:l[a-2])!==null&&c!==void 0?c:l[0])}):t[n]=o}else t[n]=o}),t}},P9=O9,Rg=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function I9(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}const T9=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(i,a)=>{if(!a)return i;const s=parseFloat(a);return s<=1?i:`${I9(s/t,n)}rem`};return{visit:i=>{const a=m({},i);return Object.entries(i).forEach(s=>{let[c,u]=s;if(typeof u=="string"&&u.includes("px")){const f=u.replace(Rg,r);a[c]=f}!gP[c]&&typeof u=="number"&&u!==0&&(a[c]=`${u}px`.replace(Rg,r));const d=c.trim();if(d.startsWith("@")&&d.includes("px")&&o){const f=c.replace(Rg,r);a[f]=a[c],delete a[c]}}),a}}},E9=T9,M9={Theme:y0,createTheme:S0,useStyleRegister:Dd,useCacheToken:pP,createCache:$a,useStyleInject:Oc,useStyleProvider:lP,Keyframes:nt,extractStyle:$9,legacyLogicalPropertiesTransformer:P9,px2remTransformer:E9,logicalPropertiesLinter:c9,legacyNotSelectorLinter:a9,parentSelectorLinter:d9,StyleProvider:SD},_9=M9,xP="4.2.6",nc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){A9(e)&&(e="100%");var n=R9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function eu(e){return Math.min(1,Math.max(0,e))}function A9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function R9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ql(e){return e.length===1?"0"+e:String(e)}function D9(e,t,n){return{r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function M$(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function B9(e,t,n){var o,r,l;if(e=Sn(e,360),t=Sn(t,100),n=Sn(n,100),t===0)r=n,l=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=Dg(a,i,e+1/3),r=Dg(a,i,e),l=Dg(a,i,e-1/3)}return{r:o*255,g:r*255,b:l*255}}function yv(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=o===0?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var $v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ji(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,l=null,i=!1,a=!1;return typeof e=="string"&&(e=j9(e)),typeof e=="object"&&(pr(e.r)&&pr(e.g)&&pr(e.b)?(t=D9(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):pr(e.h)&&pr(e.s)&&pr(e.v)?(o=tu(e.s),r=tu(e.v),t=N9(e.h,o,r),i=!0,a="hsv"):pr(e.h)&&pr(e.s)&&pr(e.l)&&(o=tu(e.s),l=tu(e.l),t=B9(e.h,o,l),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=wP(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var z9="[-\\+]?\\d+%?",H9="[-\\+]?\\d*\\.\\d+%?",sl="(?:".concat(H9,")|(?:").concat(z9,")"),Bg="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ng="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ao={CSS_UNIT:new RegExp(sl),rgb:new RegExp("rgb"+Bg),rgba:new RegExp("rgba"+Ng),hsl:new RegExp("hsl"+Bg),hsla:new RegExp("hsla"+Ng),hsv:new RegExp("hsv"+Bg),hsva:new RegExp("hsva"+Ng),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 j9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($v[e])e=$v[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ao.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ao.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ao.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ao.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ao.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ao.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ao.hex8.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),a:_$(n[4]),format:t?"name":"hex8"}:(n=Ao.hex6.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),format:t?"name":"hex"}:(n=Ao.hex4.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),a:_$(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ao.hex3.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function pr(e){return!!Ao.CSS_UNIT.exec(String(e))}var gt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=k9(t)),this.originalInput=t;var r=ji(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,l=t.r/255,i=t.g/255,a=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=wP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=yv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=yv(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M$(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),F9(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Sn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Sn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Sv(this.r,this.g,this.b,!1),n=0,o=Object.entries($v);n=0,l=!n&&r&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=eu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=eu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=eu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=eu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100,i={r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-nu*t:Math.round(e.h)+nu*t:o=n?Math.round(e.h)+nu*t:Math.round(e.h)-nu*t,o<0?o+=360:o>=360&&(o-=360),o}function B$(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-A$*t:t===PP?o=e.s+A$:o=e.s+W9*t,o>1&&(o=1),n&&t===OP&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function N$(e,t,n){var o;return n?o=e.v+V9*t:o=e.v-K9*t,o>1&&(o=1),Number(o.toFixed(2))}function ci(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ji(e),r=OP;r>0;r-=1){var l=R$(o),i=ou(ji({h:D$(l,r,!0),s:B$(l,r,!0),v:N$(l,r,!0)}));n.push(i)}n.push(ou(o));for(var a=1;a<=PP;a+=1){var s=R$(o),c=ou(ji({h:D$(s,a),s:B$(s,a),v:N$(s,a)}));n.push(c)}return t.theme==="dark"?G9.map(function(u){var d=u.index,f=u.opacity,g=ou(X9(ji(t.backgroundColor||"#141414"),ji(n[d]),f*100));return g}):n}var la={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"},Ps={},Fg={};Object.keys(la).forEach(function(e){Ps[e]=ci(la[e]),Ps[e].primary=Ps[e][5],Fg[e]=ci(la[e],{theme:"dark",backgroundColor:"#141414"}),Fg[e].primary=Fg[e][5]});var U9=Ps.gold,Y9=Ps.blue;const q9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Z9=q9;function Q9(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const IP={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"},J9=m(m({},IP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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'`,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}),Qf=J9;function eB(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(r),g=n(l),v=n(i),h=n(a),b=o(c,u);return m(m({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new gt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const tB=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}},nB=tB;function oB(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return m({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},nB(o))}const gr=(e,t)=>new gt(e).setAlpha(t).toRgbString(),es=(e,t)=>new gt(e).darken(t).toHexString(),rB=e=>{const t=ci(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},lB=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:gr(o,.88),colorTextSecondary:gr(o,.65),colorTextTertiary:gr(o,.45),colorTextQuaternary:gr(o,.25),colorFill:gr(o,.15),colorFillSecondary:gr(o,.06),colorFillTertiary:gr(o,.04),colorFillQuaternary:gr(o,.02),colorBgLayout:es(n,4),colorBgContainer:es(n,0),colorBgElevated:es(n,0),colorBgSpotlight:gr(o,.85),colorBorder:es(n,15),colorBorderSecondary:es(n,6)}};function iB(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,l=e*Math.pow(2.71828,r/5),i=o>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const aB=e=>{const t=iB(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},sB=aB;function cB(e){const t=Object.keys(IP).map(n=>{const o=ci(e[n]);return new Array(10).fill(1).reduce((r,l,i)=>(r[`${n}-${i+1}`]=o[i],r),{})}).reduce((n,o)=>(n=m(m({},n),o),n),{});return m(m(m(m(m(m(m({},e),t),eB(e,{generateColorPalettes:rB,generateNeutralColorPalettes:lB})),sB(e.fontSize)),Q9(e)),Z9(e)),oB(e))}function Lg(e){return e>=0&&e<=255}function ru(e,t){const{r:n,g:o,b:r,a:l}=new gt(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((o-a*(1-c))/c),f=Math.round((r-s*(1-c))/c);if(Lg(u)&&Lg(d)&&Lg(f))return new gt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new gt({r:n,g:o,b:r,a:1}).toRgbString()}var uB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[g]});const r=m(m({},n),o),l=480,i=576,a=768,s=992,c=1200,u=1600,d=2e3;return m(m(m({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ru(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ru(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ru(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ru(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` - 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) - `,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:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` - 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new gt("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)"}),o)}const Jf=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),x0=(e,t,n,o,r)=>{const l=e/2,i=0,a=l,s=n*1/Math.sqrt(2),c=l-n*(1-1/Math.sqrt(2)),u=l-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*l-u,g=d,v=2*l-s,h=c,b=2*l-i,y=a,S=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*l-$}px 100%, ${$}px 100%)`,`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Bd(e,t){return nc.reduce((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return m(m({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))},{})}const Gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xe=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),yi=()=>({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"}}),zo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fB=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pB=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ar=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rr=e=>({"&:focus-visible":m({},Ar(e))});function Ve(e,t,n){return o=>{const r=P(()=>o==null?void 0:o.value),[l,i,a]=Fr(),{getPrefixCls:s,iconPrefixCls:c}=Xf(),u=P(()=>s()),d=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:["Shared",u.value]}));Dd(d,()=>[{"&":fB(i.value)}]);const f=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:[e,r.value,c.value]}));return[Dd(f,()=>{const{token:g,flush:v}=hB(i.value),h=typeof n=="function"?n(g):n,b=m(m({},h),i.value[e]),y=`.${r.value}`,S=Fe(g,{componentCls:y,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},b),$=t(S,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:i.value[e]});return v(e,b),[pB(i.value,r.value),$]}),a]}}const TP=typeof CSSINJS_STATISTIC<"u";let Cv=!0;function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(i=>{Object.defineProperty(o,i,{configurable:!0,enumerable:!0,get:()=>r[i]})})}),Cv=!0,o}function gB(){}function hB(e){let t,n=e,o=gB;return TP&&(t=new Set,n=new Proxy(e,{get(r,l){return Cv&&t.add(l),r[l]}}),o=(r,l)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const vB=S0(cB),EP={token:Qf,hashed:!0},MP=Symbol("DesignTokenContext"),xv=te(),mB=e=>{Ge(MP,e),be(e,()=>{xv.value=$t(e),$3(xv)},{immediate:!0,deep:!0})},bB=oe({props:{value:Re()},setup(e,t){let{slots:n}=t;return mB(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Fr(){const e=He(MP,P(()=>xv.value||EP)),t=P(()=>`${xP}-${e.value.hashed||""}`),n=P(()=>e.value.theme||vB),o=pP(n,P(()=>[Qf,e.value.token]),P(()=>({salt:t.value,override:m({override:e.value.token},e.value.components),formatToken:dB})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const _P=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>new gt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(24 31.67)"},[p("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p("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"},null),p("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)"},null),p("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"},null),p("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"},null)]),p("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"},null),p("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});_P.PRESENTED_IMAGE_DEFAULT=!0;const AP=_P,RP=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:l}=e.value;return{borderColor:new gt(n).onBackground(l).toHexString(),shadowColor:new gt(o).onBackground(l).toHexString(),contentColor:new gt(r).onBackground(l).toHexString()}});return()=>p("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[p("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"},null),p("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:t.value.contentColor},null)])])])}});RP.PRESENTED_IMAGE_SIMPLE=!0;const yB=RP,SB=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$B=Ve("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=Fe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[SB(o)]});var CB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:Re(),image:St(),description:St()}),w0=oe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:xB(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=Te("empty",e),[i,a]=$B(l);return()=>{var s,c;const u=l.value,d=m(m({},e),o),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||_r(AP),description:g=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:v,class:h=""}=d,b=CB(d,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return i(p(bi,{componentName:"Empty",children:$=>{const x=typeof g<"u"?g:$.description,C=typeof x=="string"?x:"empty";let O=null;return typeof y=="string"?O=p("img",{alt:C,src:y},null):O=y,p("div",D({class:ie(u,h,a.value,{[`${u}-normal`]:S,[`${u}-rtl`]:r.value==="rtl"})},b),[p("div",{class:`${u}-image`,style:v},[O]),x&&p("p",{class:`${u}-description`},[x]),n.default&&p("div",{class:`${u}-footer`},[_t(n.default())])])}},null))}}});w0.PRESENTED_IMAGE_DEFAULT=()=>_r(AP);w0.PRESENTED_IMAGE_SIMPLE=()=>_r(yB);const ll=Tt(w0),O0=e=>{const{prefixCls:t}=Te("empty",e);return(o=>{switch(o){case"Table":case"List":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return p(ll,null,null)}})(e.componentName)};function wB(e){return p(O0,{componentName:e},null)}const DP=Symbol("SizeContextKey"),BP=()=>He(DP,le(void 0)),NP=e=>{const t=BP();return Ge(DP,P(()=>e.value||t.value)),e},Te=(e,t)=>{const n=BP(),o=qn(),r=He(v0,m(m({},QO),{renderEmpty:w=>_r(O0,{componentName:w})})),l=P(()=>r.getPrefixCls(e,t.prefixCls)),i=P(()=>{var w,I;return(w=t.direction)!==null&&w!==void 0?w:(I=r.direction)===null||I===void 0?void 0:I.value}),a=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),c=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),u=r.renderEmpty,d=r.space,f=r.pageHeader,g=r.form,v=P(()=>{var w,I;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(I=r.getTargetContainer)===null||I===void 0?void 0:I.value}),h=P(()=>{var w,I,T;return(I=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&I!==void 0?I:(T=r.getPopupContainer)===null||T===void 0?void 0:T.value}),b=P(()=>{var w,I;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,I,T;return(w=t.autocomplete)!==null&&w!==void 0?w:(T=(I=r.input)===null||I===void 0?void 0:I.value)===null||T===void 0?void 0:T.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,I;return(w=t.wave)!==null&&w!==void 0?w:(I=r.wave)===null||I===void 0?void 0:I.value});return{configProvider:r,prefixCls:l,direction:i,size:S,getTargetContainer:v,getPopupContainer:h,space:d,pageHeader:f,form:g,autoInsertSpaceInButton:c,renderEmpty:u,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:a,disabled:x,select:r.select,wave:O}};function et(e,t){const n=m({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},PB=Ve("Affix",e=>{const t=Fe(e,{zIndexPopup:e.zIndexBase+10});return[OB(t)]});function IB(){return typeof window<"u"?window:null}var qi;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(qi||(qi={}));const TB=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:IB},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),EB=oe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:TB(),setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=te(),a=te(),s=ut({affixStyle:void 0,placeholderStyle:void 0,status:qi.None,lastAffix:!1,prevTarget:null,timeout:null}),c=pn(),u=P(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=P(()=>e.offsetBottom),f=()=>{const{status:$,lastAffix:x}=s,{target:C}=e;if($!==qi.Prepare||!a.value||!i.value||!C)return;const O=C();if(!O)return;const w={status:qi.None},I=Zc(i.value);if(I.top===0&&I.left===0&&I.width===0&&I.height===0)return;const T=Zc(O),_=v$(I,T,u.value),E=m$(I,T,d.value);if(!(I.top===0&&I.left===0&&I.width===0&&I.height===0)){if(_!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",top:_,width:A,height:R},w.placeholderStyle={width:A,height:R}}else if(E!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",bottom:E,width:A,height:R},w.placeholderStyle={width:A,height:R}}w.lastAffix=!!w.affixStyle,x!==w.lastAffix&&o("change",w.lastAffix),m(s,w)}},g=()=>{m(s,{status:qi.Prepare,affixStyle:void 0,placeholderStyle:void 0})},v=pv(()=>{g()}),h=pv(()=>{const{target:$}=e,{affixStyle:x}=s;if($&&x){const C=$();if(C&&i.value){const O=Zc(C),w=Zc(i.value),I=v$(w,O,u.value),T=m$(w,O,d.value);if(I!==void 0&&x.top===I||T!==void 0&&x.bottom===T)return}}g()});r({updatePosition:v,lazyUpdatePosition:h}),be(()=>e.target,$=>{const x=($==null?void 0:$())||null;s.prevTarget!==x&&(y$(c),x&&(b$(x,c),v()),s.prevTarget=x)}),be(()=>[e.offsetTop,e.offsetBottom],v),je(()=>{const{target:$}=e;$&&(s.timeout=setTimeout(()=>{b$($(),c),v()}))}),An(()=>{f()}),Rn(()=>{clearTimeout(s.timeout),y$(c),v.cancel(),h.cancel()});const{prefixCls:b}=Te("affix",e),[y,S]=PB(b);return()=>{var $;const{affixStyle:x,placeholderStyle:C,status:O}=s,w=ie({[b.value]:x,[S.value]:!0}),I=et(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return y(p(xo,{onResize:v},{default:()=>[p("div",D(D(D({},I),l),{},{ref:i,"data-measure-status":O}),[x&&p("div",{style:C,"aria-hidden":"true"},null),p("div",{class:w,ref:a,style:x},[($=n.default)===null||$===void 0?void 0:$.call(n)])])]}))}}}),FP=Tt(EB);function F$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function L$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function kg(e,t){if(e.clientHeightt||l>e&&i=t&&a>=n?l-e-o:i>t&&an?i-t+r:0}var k$=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s=typeof i=="function"?i:function(X){return X!==i};if(!F$(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],g=e;F$(g)&&s(g);){if((g=(u=(c=g).parentElement)==null?c.getRootNode().host||null:u)===d){f.push(g);break}g!=null&&g===document.body&&kg(g)&&!kg(document.documentElement)||g!=null&&kg(g,a)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,I=S.left,T=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,_=l==="center"?I+x/2:l==="end"?O:I,E=[],A=0;A=0&&I>=0&&w<=h&&O<=v&&C>=N&&w<=L&&I>=k&&O<=F)return E;var j=getComputedStyle(R),H=parseInt(j.borderLeftWidth,10),Y=parseInt(j.borderTopWidth,10),Z=parseInt(j.borderRightWidth,10),U=parseInt(j.borderBottomWidth,10),ee=0,G=0,J="offsetWidth"in R?R.offsetWidth-R.clientWidth-H-Z:0,Q="offsetHeight"in R?R.offsetHeight-R.clientHeight-Y-U:0,K="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,q="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(d===R)ee=r==="start"?T:r==="end"?T-h:r==="nearest"?lu(y,y+h,h,Y,U,y+T,y+T+$,$):T-h/2,G=l==="start"?_:l==="center"?_-v/2:l==="end"?_-v:lu(b,b+v,v,H,Z,b+_,b+_+x,x),ee=Math.max(0,ee+y),G=Math.max(0,G+b);else{ee=r==="start"?T-N-Y:r==="end"?T-L+U+Q:r==="nearest"?lu(N,L,M,Y,U+Q,T,T+$,$):T-(N+M/2)+Q/2,G=l==="start"?_-k-H:l==="center"?_-(k+B/2)+J/2:l==="end"?_-F+Z+J:lu(k,F,B,H,Z+J,_,_+x,x);var pe=R.scrollLeft,W=R.scrollTop;T+=W-(ee=Math.max(0,Math.min(W+ee/q,R.scrollHeight-M/q+Q))),_+=pe-(G=Math.max(0,Math.min(pe+G/K,R.scrollWidth-B/K+J)))}E.push({el:R,top:ee,left:G})}return E};function LP(e){return e===Object(e)&&Object.keys(e).length!==0}function MB(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,l=o.top,i=o.left;r.scroll&&n?r.scroll({top:l,left:i,behavior:t}):(r.scrollTop=l,r.scrollLeft=i)})}function _B(e){return e===!1?{block:"end",inline:"nearest"}:LP(e)?e:{block:"start",inline:"nearest"}}function kP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(LP(t)&&typeof t.behavior=="function")return t.behavior(n?k$(e,t):[]);if(n){var o=_B(t);return MB(k$(e,o),o.behavior)}}function AB(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function wv(e){return e!=null&&e===e.window}function P0(e,t){var n,o;if(typeof window>"u")return 0;const r=t?"scrollTop":"scrollLeft";let l=0;return wv(e)?l=e[t?"scrollY":"scrollX"]:e instanceof Document?l=e.documentElement[r]:(e instanceof HTMLElement||e)&&(l=e[r]),e&&!wv(e)&&typeof l!="number"&&(l=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),l}function I0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,l=n(),i=P0(l,!0),a=Date.now(),s=()=>{const u=Date.now()-a,d=AB(u>r?r:u,i,e,r);wv(l)?l.scrollTo(window.scrollX,d):l instanceof Document?l.documentElement.scrollTop=d:l.scrollTop=d,u{Ge(zP,e)},DB=()=>He(zP,{registerLink:iu,unregisterLink:iu,scrollTo:iu,activeLink:P(()=>""),handleClick:iu,direction:P(()=>"vertical")}),BB=RB,NB=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:l,lineType:i,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:m(m({},Xe(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":m(m({},Gt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${i} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},FB=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},LB=Ve("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,l=Fe(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[NB(l),FB(l)]}),kB=()=>({prefixCls:String,href:String,title:St(),target:String,customTitleProps:Re()}),T0=oe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:qe(kB(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:l,scrollTo:i,unregisterLink:a,registerLink:s,activeLink:c}=DB(),{prefixCls:u}=Te("anchor",e),d=f=>{const{href:g}=e;l(f,{title:r,href:g}),i(g)};return be(()=>e.href,(f,g)=>{ot(()=>{a(g),s(f)})}),je(()=>{s(e.href)}),Ze(()=>{a(e.href)}),()=>{var f;const{href:g,target:v,title:h=n.title,customTitleProps:b={}}=e,y=u.value;r=typeof h=="function"?h(b):h;const S=c.value===g,$=ie(`${y}-link`,{[`${y}-link-active`]:S},o.class),x=ie(`${y}-link-title`,{[`${y}-link-title-active`]:S});return p("div",D(D({},o),{},{class:$}),[p("a",{class:x,href:g,title:typeof r=="string"?r:"",target:v,onClick:d},[n.customTitle?n.customTitle(b):r]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function z$(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function H$(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var VP=Object.prototype,KP=VP.toString,zB=VP.hasOwnProperty,GP=/^\s*function (\w+)/;function j$(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(GP);return o?o[1]:""}return""}var ui=function(e){var t,n;return H$(e)!==!1&&typeof(t=e.constructor)=="function"&&H$(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},HB=function(e){return e},Ln=HB,oc=function(e,t){return zB.call(e,t)},jB=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Oa=Array.isArray||function(e){return KP.call(e)==="[object Array]"},Pa=function(e){return KP.call(e)==="[object Function]"},Nd=function(e){return ui(e)&&oc(e,"_vueTypes_name")},XP=function(e){return ui(e)&&(oc(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return oc(e,t)}))};function E0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Si(e,t,n){var o;n===void 0&&(n=!1);var r=!0,l="";o=ui(e)?e:{type:e};var i=Nd(o)?o._vueTypes_name+" - ":"";if(XP(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Oa(o.type)?(r=o.type.some(function(d){return Si(d,t,!0)===!0}),l=o.type.map(function(d){return j$(d)}).join(" or ")):r=(l=j$(o))==="Array"?Oa(t):l==="Object"?ui(t):l==="String"||l==="Number"||l==="Boolean"||l==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(GP);return f?f[1]:""}(t)===l:t instanceof o.type}if(!r){var a=i+'value "'+t+'" should be of type "'+l+'"';return n===!1?(Ln(a),!1):a}if(oc(o,"validator")&&Pa(o.validator)){var s=Ln,c=[];if(Ln=function(d){c.push(d)},r=o.validator(t),Ln=s,!r){var u=(c.length>1?"* ":"")+c.join(` -* `);return c.length=0,n===!1?(Ln(u),r):u}}return r}function ao(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?Pa(r)||Si(this,r,!0)===!0?(this.default=Oa(r)?function(){return[].concat(r)}:ui(r)?function(){return Object.assign({},r)}:r,this):(Ln(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return Pa(o)&&(n.validator=E0(o,n)),n}function ar(e,t){var n=ao(e,t);return Object.defineProperty(n,"validate",{value:function(o){return Pa(this.validator)&&Ln(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=E0(o,this),this}})}function W$(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(d){r[d]=Object.getOwnPropertyDescriptor(o,d)}),Object.defineProperties({},r));if(l._vueTypes_name=e,!ui(n))return l;var i,a,s=n.validator,c=WP(n,["validator"]);if(Pa(s)){var u=l.validator;u&&(u=(a=(i=u).__original)!==null&&a!==void 0?a:i),l.validator=E0(u?function(d){return u.call(this,d)&&s.call(this,d)}:s,l)}return Object.assign(l,c)}function ep(e){return e.replace(/^(?!\s*$)/gm," ")}var WB=function(){return ar("any",{})},VB=function(){return ar("function",{type:Function})},KB=function(){return ar("boolean",{type:Boolean})},GB=function(){return ar("string",{type:String})},XB=function(){return ar("number",{type:Number})},UB=function(){return ar("array",{type:Array})},YB=function(){return ar("object",{type:Object})},qB=function(){return ao("integer",{type:Number,validator:function(e){return jB(e)}})},ZB=function(){return ao("symbol",{validator:function(e){return typeof e=="symbol"}})};function QB(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ao(e.name||"<>",{validator:function(n){var o=e(n);return o||Ln(this._vueTypes_name+" - "+t),o}})}function JB(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var l=r.constructor;o.indexOf(l)===-1&&o.push(l)}return o},[]);return ao("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||Ln(t),r}})}function eN(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(s){return i.indexOf(s)===-1})){var a=n.filter(function(s){return i.indexOf(s)===-1});return Ln(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every(function(s){if(t.indexOf(s)===-1)return l._vueTypes_isLoose===!0||(Ln('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Si(e[s],r[s],!0);return typeof c=="string"&&Ln('shape - "'+s+`" property validation error: - `+ep(c)),c===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var Yo=function(){function e(){}return e.extend=function(t){var n=this;if(Oa(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,l=r!==void 0&&r,i=t.getter,a=i!==void 0&&i,s=WP(t,["name","validate","getter"]);if(oc(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,u=s.type;return Nd(u)?(delete s.type,Object.defineProperty(this,o,a?{get:function(){return W$(o,u,s)}}:{value:function(){var d,f=W$(o,u,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(c=a?{get:function(){var d=Object.assign({},s);return l?ar(o,d):ao(o,d)},enumerable:!0}:{value:function(){var d,f,g=Object.assign({},s);return d=l?ar(o,g):ao(o,g),g.validator&&(d.validator=(f=g.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,c))},HP(e,null,[{key:"any",get:function(){return WB()}},{key:"func",get:function(){return VB().def(this.defaults.func)}},{key:"bool",get:function(){return KB().def(this.defaults.bool)}},{key:"string",get:function(){return GB().def(this.defaults.string)}},{key:"number",get:function(){return XB().def(this.defaults.number)}},{key:"array",get:function(){return UB().def(this.defaults.array)}},{key:"object",get:function(){return YB().def(this.defaults.object)}},{key:"integer",get:function(){return qB().def(this.defaults.integer)}},{key:"symbol",get:function(){return ZB()}}]),e}();function UP(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function o(){return n.apply(this,arguments)||this}return jP(o,n),HP(o,null,[{key:"sensibleDefaults",get:function(){return Lu({},this.defaults)},set:function(r){this.defaults=r!==!1?Lu({},r!==!0?r:e):{}}}]),o}(Yo)).defaults=Lu({},e),t}Yo.defaults={},Yo.custom=QB,Yo.oneOf=JB,Yo.instanceOf=nN,Yo.oneOfType=eN,Yo.arrayOf=tN,Yo.objectOf=oN,Yo.shape=rN,Yo.utils={validate:function(e,t){return Si(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?ar(e,t):ao(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return jP(t,e),t})(UP());const YP=UP({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});YP.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function qP(e){return e.default=void 0,e}const V=YP,xt=(e,t,n)=>{Yf(e,`[ant-design-vue: ${t}] ${n}`)};function lN(){return window}function V$(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const K$=/#([\S ]+)$/,iN=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:at(),direction:V.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Gl=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:iN(),setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{prefixCls:i,getTargetContainer:a,direction:s}=Te("anchor",e),c=P(()=>{var w;return(w=e.direction)!==null&&w!==void 0?w:"vertical"}),u=le(null),d=le(),f=ut({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=le(null),v=P(()=>{const{getContainer:w}=e;return w||(a==null?void 0:a.value)||lN}),h=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const T=[],_=v.value();return f.links.forEach(E=>{const A=K$.exec(E.toString());if(!A)return;const R=document.getElementById(A[1]);if(R){const z=V$(R,_);zR.top>A.top?R:A).link:""},b=w=>{const{getCurrentAnchor:I}=e;g.value!==w&&(g.value=typeof I=="function"?I(w):w,n("change",w))},y=w=>{const{offsetTop:I,targetOffset:T}=e;b(w);const _=K$.exec(w);if(!_)return;const E=document.getElementById(_[1]);if(!E)return;const A=v.value(),R=P0(A,!0),z=V$(E,A);let M=R+z;M-=T!==void 0?T:I||0,f.animating=!0,I0(M,{callback:()=>{f.animating=!1},getContainer:v.value})};l({scrollTo:y});const S=()=>{if(f.animating)return;const{offsetTop:w,bounds:I,targetOffset:T}=e,_=h(T!==void 0?T:w||0,I);b(_)},$=()=>{const w=d.value.querySelector(`.${i.value}-link-title-active`);if(w&&u.value){const I=c.value==="horizontal";u.value.style.top=I?"":`${w.offsetTop+w.clientHeight/2}px`,u.value.style.height=I?"":`${w.clientHeight}px`,u.value.style.left=I?`${w.offsetLeft}px`:"",u.value.style.width=I?`${w.clientWidth}px`:"",I&&kP(w,{scrollMode:"if-needed",block:"nearest"})}};BB({registerLink:w=>{f.links.includes(w)||f.links.push(w)},unregisterLink:w=>{const I=f.links.indexOf(w);I!==-1&&f.links.splice(I,1)},activeLink:g,scrollTo:y,handleClick:(w,I)=>{n("click",w,I)},direction:c}),je(()=>{ot(()=>{const w=v.value();f.scrollContainer=w,f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S()})}),Ze(()=>{f.scrollEvent&&f.scrollEvent.remove()}),An(()=>{if(f.scrollEvent){const w=v.value();f.scrollContainer!==w&&(f.scrollContainer=w,f.scrollEvent.remove(),f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S())}$()});const x=w=>Array.isArray(w)?w.map(I=>{const{children:T,key:_,href:E,target:A,class:R,style:z,title:M}=I;return p(T0,{key:_,href:E,target:A,class:R,style:z,title:M,customTitleProps:I},{default:()=>[c.value==="vertical"?x(T):null],customTitle:r.customTitle})}):null,[C,O]=LB(i);return()=>{var w;const{offsetTop:I,affix:T,showInkInFixed:_}=e,E=i.value,A=ie(`${E}-ink`,{[`${E}-ink-visible`]:g.value}),R=ie(O.value,e.wrapperClass,`${E}-wrapper`,{[`${E}-wrapper-horizontal`]:c.value==="horizontal",[`${E}-rtl`]:s.value==="rtl"}),z=ie(E,{[`${E}-fixed`]:!T&&!_}),M=m({maxHeight:I?`calc(100vh - ${I}px)`:"100vh"},e.wrapperStyle),B=p("div",{class:R,style:M,ref:d},[p("div",{class:z},[p("span",{class:A,ref:u},null),Array.isArray(e.items)?x(e.items):(w=r.default)===null||w===void 0?void 0:w.call(r)])]);return C(T?p(FP,D(D({},o),{},{offsetTop:I,target:v.value}),{default:()=>[B]}):B)}}});Gl.Link=T0;Gl.install=function(e){return e.component(Gl.name,Gl),e.component(Gl.Link.name,Gl.Link),e};function G$(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function ZP(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function aN(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:l,options:i}=ZP(t,!1);function a(s,c){s.forEach(u=>{const d=u[r];if(c||!(i in u)){const f=u[l];o.push({key:G$(u,o.length),groupOption:c,data:u,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=u.label),o.push({key:G$(u,o.length),group:!0,data:u,label:f}),a(u[i],!0)}})}return a(e,!1),o}function Ov(e){const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function sN(e,t){if(!t||!t.length)return null;let n=!1;function o(l,i){let[a,...s]=i;if(!a)return[l];const c=l.split(a);return n=n||c.length>1,c.reduce((u,d)=>[...u,...o(d,s)],[]).filter(u=>u)}const r=o(e,t);return n?r:null}function cN(){return""}function uN(e){return e?e.ownerDocument:window.document}function QP(){}const JP=()=>({action:V.oneOfType([V.string,V.arrayOf(V.string)]).def([]),showAction:V.any.def([]),hideAction:V.any.def([]),getPopupClassNameFromAlign:V.any.def(cN),onPopupVisibleChange:Function,afterPopupVisibleChange:V.func.def(QP),popup:V.any,arrow:V.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:V.string.def("rc-trigger-popup"),popupClassName:V.string.def(""),popupPlacement:String,builtinPlacements:V.object,popupTransitionName:String,popupAnimation:V.any,mouseEnterDelay:V.number.def(0),mouseLeaveDelay:V.number.def(.1),zIndex:Number,focusDelay:V.number.def(0),blurDelay:V.number.def(.15),getPopupContainer:Function,getDocument:V.func.def(uN),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:V.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),M0={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},dN=m(m({},M0),{mobile:{type:Object}}),fN=m(m({},M0),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _0(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function eI(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=_0({prefixCls:t,transitionName:i,animation:l})),p(cn,D({appear:!0},a),{default:()=>[$n(p("div",{style:{zIndex:o},class:`${t}-mask`},null),[[A_("if"),n]])]})}eI.displayName="Mask";const pN=oe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:dN,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=le();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var l;const{zIndex:i,visible:a,prefixCls:s,mobile:{popupClassName:c,popupStyle:u,popupMotion:d={},popupRender:f}={}}=e,g=m({zIndex:i},u);let v=yt((l=o.default)===null||l===void 0?void 0:l.call(o));v.length>1&&(v=p("div",{class:`${s}-content`},[v])),f&&(v=f(v));const h=ie(s,c);return p(cn,D({ref:r},d),{default:()=>[a?p("div",{class:h,style:g},[v]):null]})}}});var gN=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const X$=["measure","align",null,"motion"],hN=(e,t)=>{const n=te(null),o=te(),r=te(!1);function l(s){r.value||(n.value=s)}function i(){Ye.cancel(o.value)}function a(s){i(),o.value=Ye(()=>{let c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}l(c),s==null||s()})}return be(e,()=>{l("measure")},{immediate:!0,flush:"post"}),je(()=>{be(n,()=>{switch(n.value){case"measure":t();break}n.value&&(o.value=Ye(()=>gN(void 0,void 0,void 0,function*(){const s=X$.indexOf(n.value),c=X$[s+1];c&&s!==-1&&l(c)})))},{immediate:!0,flush:"post"})}),Ze(()=>{r.value=!0,i()}),[n,a]},vN=e=>{const t=te({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:l,height:i}=t.value;e.value.indexOf("height")!==-1&&i?r.height=`${i}px`:e.value.indexOf("minHeight")!==-1&&i&&(r.minHeight=`${i}px`),e.value.indexOf("width")!==-1&&l?r.width=`${l}px`:e.value.indexOf("minWidth")!==-1&&l&&(r.minWidth=`${l}px`)}return r}),n]};function U$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Y$(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function kN(e,t,n,o){var r=ct.clone(e),l={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),ct.mix(r,l)}function B0(e){var t,n,o;if(!ct.isWindow(e)&&e.nodeType!==9)t=ct.offset(e),n=ct.outerWidth(e),o=ct.outerHeight(e);else{var r=ct.getWindow(e);t={left:ct.getWindowScrollLeft(r),top:ct.getWindowScrollTop(r)},n=ct.viewportWidth(r),o=ct.viewportHeight(r)}return t.width=n,t.height=o,t}function oC(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return n==="c"?a+=l/2:n==="b"&&(a+=l),o==="c"?i+=r/2:o==="r"&&(i+=r),{left:i,top:a}}function su(e,t,n,o,r){var l=oC(t,n[1]),i=oC(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function rC(e,t,n){return e.leftn.right}function lC(e,t,n){return e.topn.bottom}function zN(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function N0(e,t,n){var o=n.target||t,r=B0(o),l=!jN(o,n.overflow&&n.overflow.alwaysByViewport);return sI(e,r,n,l)}N0.__getOffsetParent=Ev;N0.__getVisibleRectForElement=D0;function WN(e,t,n){var o,r,l=ct.getDocument(e),i=l.defaultView||l.parentWindow,a=ct.getWindowScrollLeft(i),s=ct.getWindowScrollTop(i),c=ct.viewportWidth(i),u=ct.viewportHeight(i);"pageX"in t?o=t.pageX:o=a+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},f=o>=0&&o<=a+c&&r>=0&&r<=s+u,g=[n.points[0],"cc"];return sI(e,d,Y$(Y$({},n),{},{points:g}),f)}function dt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=_t(e)[0]),!r)return null;const l=sn(r,t,o);return l.props=n?m(m({},l.props),t):l.props,It(typeof l.props.class!="object"),l}function VN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>dt(o,t,n))}function Is(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>Is(r,t,n,o));{if(!Yt(e))return e;const r=dt(e,t,n,o);return Array.isArray(r.children)&&(r.children=Is(r.children)),r}}function KN(e,t,n){bl(sn(e,m({},t)),n)}const cI=e=>(e||[]).some(t=>Yt(t)?!(t.type===bn||t.type===We&&!cI(t.children)):!0)?e:null;function np(e,t,n,o){var r;const l=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return cI(l)?l:o==null?void 0:o()}const op=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function GN(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function XN(e,t){e!==document.activeElement&&rl(t,e)&&typeof e.focus=="function"&&e.focus()}function sC(e,t){let n=null,o=null;function r(i){let[{target:a}]=i;if(!document.documentElement.contains(a))return;const{width:s,height:c}=a.getBoundingClientRect(),u=Math.floor(s),d=Math.floor(c);(n!==u||o!==d)&&Promise.resolve().then(()=>{t({width:u,height:d})}),n=u,o=d}const l=new f0(r);return e&&l.observe(e),()=>{l.disconnect()}}const UN=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function l(i){if(!n||i===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,l()},t.value)}return[l,()=>{n=!1,r()}]};function YN(){this.__data__=[],this.size=0}function F0(e,t){return e===t||e!==e&&t!==t}function rp(e,t){for(var n=e.length;n--;)if(F0(e[n][0],t))return n;return-1}var qN=Array.prototype,ZN=qN.splice;function QN(e){var t=this.__data__,n=rp(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ZN.call(t,n,1),--this.size,!0}function JN(e){var t=this.__data__,n=rp(t,e);return n<0?void 0:t[n][1]}function eF(e){return rp(this.__data__,e)>-1}function tF(e,t){var n=this.__data__,o=rp(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Lr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),u=l.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,g=n&aL?new Ia:void 0;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=zL}var HL="[object Arguments]",jL="[object Array]",WL="[object Boolean]",VL="[object Date]",KL="[object Error]",GL="[object Function]",XL="[object Map]",UL="[object Number]",YL="[object Object]",qL="[object RegExp]",ZL="[object Set]",QL="[object String]",JL="[object WeakMap]",ek="[object ArrayBuffer]",tk="[object DataView]",nk="[object Float32Array]",ok="[object Float64Array]",rk="[object Int8Array]",lk="[object Int16Array]",ik="[object Int32Array]",ak="[object Uint8Array]",sk="[object Uint8ClampedArray]",ck="[object Uint16Array]",uk="[object Uint32Array]",Ft={};Ft[nk]=Ft[ok]=Ft[rk]=Ft[lk]=Ft[ik]=Ft[ak]=Ft[sk]=Ft[ck]=Ft[uk]=!0;Ft[HL]=Ft[jL]=Ft[ek]=Ft[WL]=Ft[tk]=Ft[VL]=Ft[KL]=Ft[GL]=Ft[XL]=Ft[UL]=Ft[YL]=Ft[qL]=Ft[ZL]=Ft[QL]=Ft[JL]=!1;function dk(e){return jo(e)&&j0(e.length)&&!!Ft[xl(e)]}function ap(e){return function(t){return e(t)}}var bI=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ts=bI&&typeof module=="object"&&module&&!module.nodeType&&module,fk=Ts&&Ts.exports===bI,Gg=fk&&uI.process,pk=function(){try{var e=Ts&&Ts.require&&Ts.require("util").types;return e||Gg&&Gg.binding&&Gg.binding("util")}catch{}}();const Ta=pk;var vC=Ta&&Ta.isTypedArray,gk=vC?ap(vC):dk;const W0=gk;var hk=Object.prototype,vk=hk.hasOwnProperty;function yI(e,t){var n=so(e),o=!n&&ip(e),r=!n&&!o&&ac(e),l=!n&&!o&&!r&&W0(e),i=n||o||r||l,a=i?EL(e.length,String):[],s=a.length;for(var c in e)(t||vk.call(e,c))&&!(i&&(c=="length"||r&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||H0(c,s)))&&a.push(c);return a}var mk=Object.prototype;function sp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mk;return e===n}function SI(e,t){return function(n){return e(t(n))}}var bk=SI(Object.keys,Object);const yk=bk;var Sk=Object.prototype,$k=Sk.hasOwnProperty;function $I(e){if(!sp(e))return yk(e);var t=[];for(var n in Object(e))$k.call(e,n)&&n!="constructor"&&t.push(n);return t}function Da(e){return e!=null&&j0(e.length)&&!fI(e)}function Ba(e){return Da(e)?yI(e):$I(e)}function Mv(e){return gI(e,Ba,z0)}var Ck=1,xk=Object.prototype,wk=xk.hasOwnProperty;function Ok(e,t,n,o,r,l){var i=n&Ck,a=Mv(e),s=a.length,c=Mv(t),u=c.length;if(s!=u&&!i)return!1;for(var d=s;d--;){var f=a[d];if(!(i?f in t:wk.call(t,f)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var h=!0;l.set(e,t),l.set(t,e);for(var b=i;++d{const{disabled:f,target:g,align:v,onAlign:h}=e;if(!f&&g&&l.value){const b=l.value;let y;const S=OC(g),$=PC(g);r.value.element=S,r.value.point=$,r.value.align=v;const{activeElement:x}=document;return S&&op(S)?y=N0(b,S,v):$&&(y=WN(b,$,v)),XN(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=le({cancel:()=>{}}),c=le({cancel:()=>{}}),u=()=>{const f=e.target,g=OC(f),v=PC(f);l.value!==c.value.element&&(c.value.cancel(),c.value.element=l.value,c.value.cancel=sC(l.value,i)),(r.value.element!==g||!GN(r.value.point,v)||!V0(r.value.align,e.align))&&(i(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=sC(g,i)))};je(()=>{ot(()=>{u()})}),An(()=>{ot(()=>{u()})}),be(()=>e.disabled,f=>{f?a():i()},{immediate:!0,flush:"post"});const d=le(null);return be(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=Mt(window,"resize",i)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Rn(()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>i(!0)}),()=>{const f=o==null?void 0:o.default();return f?dt(f[0],{ref:l},!0,!0):null}}});Cn("bottomLeft","bottomRight","topLeft","topRight");const K0=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Po=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},up=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},_n=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Hk=oe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:M0,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=te(),i=te(),a=te(),[s,c]=vN(ze(e,"stretch")),u=()=>{e.stretch&&c(e.getRootDomNode())},d=te(!1);let f;be(()=>e.visible,O=>{clearTimeout(f),O?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,v]=hN(d,u),h=te(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=l.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var I;const T=e.getClassNameFromAlign(w),_=a.value;a.value!==T&&(a.value=T),g.value==="align"&&(_!==T?Promise.resolve().then(()=>{y()}):v(()=>{var E;(E=h.value)===null||E===void 0||E.call(h)}),(I=e.onAlign)===null||I===void 0||I.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:_0(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const I=O[w];O[w]=T=>{v(),g.value="stable",I==null||I(T)}}),O}),x=()=>new Promise(O=>{h.value=O});be([$,g],()=>{!$.value&&g.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>i.value.$el||i.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:I,prefixCls:T,destroyPopupOnHide:_,onMouseenter:E,onMouseleave:A,onTouchstart:R=()=>{},onMousedown:z}=e,M=g.value,B=[m(m({},s.value),{zIndex:w,opacity:M==="motion"||M==="stable"||!d.value?null:0,pointerEvents:!d.value&&M!=="stable"?"none":null}),o.style];let N=yt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));N.length>1&&(N=p("div",{class:`${T}-content`},[N]));const F=ie(T,o.class,a.value,!e.arrow&&`${T}-arrow-hidden`),k=d.value||!e.visible?Po($.value.name,$.value):{};return p(cn,D(D({ref:i},k),{},{onBeforeEnter:x}),{default:()=>!_||e.visible?$n(p(zk,{target:b(),key:"popup",ref:l,monitorWindowResize:!0,disabled:C.value,align:I,onAlign:S},{default:()=>p("div",{class:F,onMouseenter:E,onMouseleave:A,onMousedown:WS(z,["capture"]),[nn?"onTouchstartPassive":"onTouchstart"]:WS(R,["capture"]),style:B},[N])}),[[En,d.value]]):null})}}}),jk=oe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:fN,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1),i=te(!1),a=te(),s=te();return be([()=>e.visible,()=>e.mobile],()=>{l.value=e.visible,e.visible&&e.mobile&&(i.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var c;(c=a.value)===null||c===void 0||c.forceAlign()},getElement:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.getElement()}}),()=>{const c=m(m(m({},e),n),{visible:l.value}),u=i.value?p(pN,D(D({},c),{},{mobile:e.mobile,ref:a}),{default:o.default}):p(Hk,D(D({},c),{},{ref:a}),{default:o.default});return p("div",{ref:s},[p(eI,c,null),u])}}});function Wk(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function IC(e,t,n){const o=e[t]||{};return m(m({},o),n)}function Vk(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(WO(this),m(m({},this.$data),n));if(o===null)return;n=m(m({},n),o||{})}m(this.$data,n),this._.isMounted&&this.$forceUpdate(),ot(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Ge(CI,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:l}=e||{};let i=!1;return(n||o||r)&&(i=!0),!n&&l&&(i=!1),i})})},Kk=()=>{G0({},{inTriggerContext:!1});const e=He(CI,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},xI=oe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:V.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:l}=Kk();function i(){l.value&&(r=e.getContainer())}Ff(()=>{o=!1,i()}),je(()=>{r||i()});const a=be(l,()=>{l.value&&!r&&(r=e.getContainer()),r&&a()});return An(()=>{ot(()=>{var s;l.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return l.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?p(Jm,{to:r},n):null:null}}});let Xg;function zd(e){if(typeof document>"u")return 0;if(e||Xg===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let l=t.offsetWidth;r===l&&(l=n.clientWidth),document.body.removeChild(n),Xg=r-l}return Xg}function TC(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?zd():n}function Gk(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:TC(t),height:TC(n)}}const Xk=`vc-util-locker-${Date.now()}`;let EC=0;function Uk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function Yk(e){const t=P(()=>!!e&&!!e.value);EC+=1;const n=`${Xk}_${EC}`;ke(o=>{if(Mn()){if(t.value){const r=zd(),l=Uk();ec(` -html body { - overflow-y: hidden; - ${l?`width: calc(100% - ${r}px);`:""} -}`,n)}else Ad(n);o(()=>{Ad(n)})}},{flush:"post"})}let Dl=0;const ku=Mn(),MC=e=>{if(!ku)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ic=oe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:V.any,visible:{type:Boolean,default:void 0},autoLock:Ce(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=te(),r=te(),l=te(),i=te(1),a=Mn()&&document.createElement("div"),s=()=>{var g,v;o.value===a&&((v=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||v===void 0||v.removeChild(o.value)),o.value=null};let c=null;const u=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(c=MC(e.getContainer),c?(c.appendChild(o.value),!0):!1):!0},d=()=>ku?(o.value||(o.value=a,u(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return An(()=>{f(),u()}),Yk(P(()=>e.autoLock&&e.visible&&Mn()&&(o.value===document.body||o.value===a))),je(()=>{let g=!1;be([()=>e.visible,()=>e.getContainer],(v,h)=>{let[b,y]=v,[S,$]=h;ku&&(c=MC(e.getContainer),c===document.body&&(b&&!S?Dl+=1:g&&(Dl-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),ot(()=>{u()||(l.value=Ye(()=>{i.value+=1}))})}),Ze(()=>{const{visible:g}=e;ku&&c===document.body&&(Dl=g&&Dl?Dl-1:Dl),s(),Ye.cancel(l.value)}),()=>{const{forceRender:g,visible:v}=e;let h=null;const b={getOpenCount:()=>Dl,getContainer:d};return i.value&&(g||v||r.value)&&(h=p(xI,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),qk=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],wi=oe({compatConfig:{MODE:3},name:"Trigger",mixins:[xi],inheritAttrs:!1,props:JP(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:l,builtinPlacements:i}=e;return r&&i?IC(i,r,l):l}),n=te(null),o=r=>{n.value=r};return{vcTriggerContext:He("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:te(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,qk.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Ge("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),G0(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Mt(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Mt(n,"touchstart",this.onDocumentClick,nn?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Mt(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Mt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&rl((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){rl(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!rl(n,t)||this.isContextMenuOnly())&&!rl(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const l=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Hn(this.triggerRef);return Hn(r(l))}try{const l=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Hn(this.triggerRef);if(l)return l}catch{}return Hn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(Vk(r,l,e,i)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?IC(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[nn?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:l,popupClassName:i,popupAnimation:a,popupTransitionName:s,popupStyle:c,mask:u,maskAnimation:d,maskTransitionName:f,zIndex:g,stretch:v,alignPoint:h,mobile:b,arrow:y,forceRender:S}=this.$props,{sPopupVisible:$,point:x}=this.$data,C=m(m({prefixCls:r,arrow:y,destroyPopupOnHide:l,visible:$,point:h?x:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:u,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:f,class:i,style:c,onAlign:o.onPopupAlign||QP},e),{ref:this.setPopupRef,mobile:b,forceRender:S});return p(jk,C,{default:this.$slots.popup||(()=>VO(this,"popup"))})},attachParent(e){Ye.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Ye(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(xr(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=g$(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=_t(Gf(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=g$(r);const l={key:"trigger"};this.isContextmenuToShow()?l.onContextmenu=this.onContextmenu:l.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMousedown=this.onMousedown,l[nn?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(l.onClick=this.createTwoChains("onClick"),l.onMousedown=this.createTwoChains("onMousedown"),l[nn?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(l.onMouseenter=this.onMouseenter,n&&(l.onMousemove=this.onMouseMove)):l.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?l.onMouseleave=this.onMouseleave:l.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=c=>{c&&(!c.relatedTarget||!rl(c.target,c.relatedTarget))&&this.createTwoChains("onBlur")(c)});const i=ie(r&&r.props&&r.props.class,e.class);i&&(l.class=i);const a=dt(r,m(m({},l),{ref:"triggerRef"}),!0,!0),s=p(Ic,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p(We,null,[a,s])}});var Zk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},Jk=oe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=P(()=>{const{dropdownMatchSelectWidth:a}=e;return Qk(a)}),i=le();return r({getPopupElement:()=>i.value}),()=>{const a=m(m({},e),o),{empty:s=!1}=a,c=Zk(a,["empty"]),{visible:u,dropdownAlign:d,prefixCls:f,popupElement:g,dropdownClassName:v,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:I,onPopupVisibleChange:T,onPopupMouseEnter:_,onPopupFocusin:E,onPopupFocusout:A}=c,R=`${f}-dropdown`;let z=g;x&&(z=x({menuNode:g,props:e}));const M=C?`${R}-${C}`:O,B=m({minWidth:`${$}px`},h);return typeof S=="number"?B.width=`${S}px`:S&&(B.width=`${$}px`),p(wi,D(D({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:l.value,prefixCls:R,popupTransitionName:M,popupAlign:d,popupVisible:u,getPopupContainer:w,popupClassName:ie(v,{[`${R}-empty`]:s}),popupStyle:B,getTriggerDOMNode:I,onPopupVisibleChange:T}),{default:n.default,popup:()=>p("div",{ref:i,onMouseenter:_,onFocusin:E,onFocusout:A},[z])})}}}),ez=Jk,rt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=rt.F1&&n<=rt.F12)return!1;switch(n){case rt.ALT:case rt.CAPS_LOCK:case rt.CONTEXT_MENU:case rt.CTRL:case rt.DOWN:case rt.END:case rt.ESC:case rt.HOME:case rt.INSERT:case rt.LEFT:case rt.MAC_FF_META:case rt.META:case rt.NUMLOCK:case rt.NUM_CENTER:case rt.PAGE_DOWN:case rt.PAGE_UP:case rt.PAUSE:case rt.PRINT_SCREEN:case rt.RIGHT:case rt.SHIFT:case rt.UP:case rt.WIN_KEY:case rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=rt.ZERO&&t<=rt.NINE||t>=rt.NUM_ZERO&&t<=rt.NUM_MULTIPLY||t>=rt.A&&t<=rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case rt.SPACE:case rt.QUESTION_MARK:case rt.NUM_PLUS:case rt.NUM_MINUS:case rt.NUM_PERIOD:case rt.NUM_DIVISION:case rt.SEMICOLON:case rt.DASH:case rt.EQUALS:case rt.COMMA:case rt.PERIOD:case rt.SLASH:case rt.APOSTROPHE:case rt.SINGLE_QUOTE:case rt.OPEN_SQUARE_BRACKET:case rt.BACKSLASH:case rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Oe=rt,dp=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let c;return typeof l=="function"?c=l(i):c=Yt(l)?sn(l):l,p("span",{class:r,onMousedown:u=>{u.preventDefault(),a&&a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[c!==void 0?c:p("span",{class:r.split(/\s+/).map(u=>`${u}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};dp.inheritAttrs=!1;dp.displayName="TransBtn";dp.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const Hd=dp;var tz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(s,c,u)=>{var d;(d=o.value)===null||d===void 0||d.setSelectionRange(s,c,u)},select:()=>{var s;(s=o.value)===null||s===void 0||s.select()},getSelectionStart:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionStart},getSelectionEnd:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionEnd},getScrollTop:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.scrollTop}}),()=>{const{tag:s,value:c}=e,u=tz(e,["tag","value"]);return p(s,D(D({},u),{},{ref:o,value:c}),null)}}}),oz=nz;function rz(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function jd(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lz(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function iz(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o>"u"||o===null||(t+=`${n}: ${e[n]};`),t},"")}var az=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,a],()=>{a.value||(i.value=e.value)},{immediate:!0});const s=w=>{n("change",w)},c=w=>{a.value=!0,w.target.composing=!0,n("compositionstart",w)},u=w=>{a.value=!1,w.target.composing=!1,n("compositionend",w);const I=document.createEvent("HTMLEvents");I.initEvent("input",!0,!0),w.target.dispatchEvent(I),s(w)},d=w=>{if(a.value&&e.lazy){i.value=w.target.value;return}n("input",w)},f=w=>{n("blur",w)},g=w=>{n("focus",w)},v=()=>{l.value&&l.value.focus()},h=()=>{l.value&&l.value.blur()},b=w=>{n("keydown",w)},y=w=>{n("keyup",w)},S=(w,I,T)=>{var _;(_=l.value)===null||_===void 0||_.setSelectionRange(w,I,T)},$=()=>{var w;(w=l.value)===null||w===void 0||w.select()};r({focus:v,blur:h,input:P(()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.input}),setSelectionRange:S,select:$,getSelectionStart:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getScrollTop()}});const x=w=>{n("mousedown",w)},C=w=>{n("paste",w)},O=P(()=>e.style&&typeof e.style!="string"?iz(e.style):e.style);return()=>{const w=az(e,["style","lazy"]);return p(oz,D(D(D({},w),o),{},{style:O.value,onInput:d,onChange:s,onBlur:f,onFocus:g,ref:l,value:i.value,onCompositionstart:c,onCompositionend:u,onKeyup:y,onKeydown:b,onPaste:C,onMousedown:x}),null)}}}),Na=sz,cz={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},uz=oe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:cz,setup(e){let t=null;const n=He("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:f,value:g,onKeydown:v,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:I}=e;let T=i||p(Na,null,null);const _=T.props||{},{onKeydown:E,onInput:A,onFocus:R,onBlur:z,onMousedown:M,onCompositionstart:B,onCompositionend:N,style:F}=_;return T=dt(T,m(m(m(m(m({type:"search"},_),{id:l,ref:w,disabled:a,tabindex:s,lazy:!1,autocomplete:u||"off",autofocus:c,class:ie(`${r}-selection-search-input`,(o=T==null?void 0:T.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":f}),I),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:m(m({},F),{opacity:d?null:0}),onKeydown:L=>{v(L),E&&E(L)},onMousedown:L=>{h(L),M&&M(L)},onInput:L=>{b(L),A&&A(L)},onCompositionstart(L){S(L),B&&B(L)},onCompositionend(L){$(L),N&&N(L)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var L=arguments.length,k=new Array(L),j=0;j{z&&z(k[0]),C&&C(k[0]),n==null||n.blur(k[0])},100)}}),T.type==="textarea"?{}:{type:"search"}),!0,!0),T}}}),wI=uz,dz=`accept acceptcharset accesskey action allowfullscreen allowtransparency -alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge -charset checked classid classname colspan cols content contenteditable contextmenu -controls coords crossorigin data datetime default defer dir disabled download draggable -enctype form formaction formenctype formmethod formnovalidate formtarget frameborder -headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity -is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media -mediagroup method min minlength multiple muted name novalidate nonce open -optimum pattern placeholder poster preload radiogroup readonly rel required -reversed role rowspan rows sandbox scope scoped scrolling seamless selected -shape size sizes span spellcheck src srcdoc srclang srcset start step style -summary tabindex target title type usemap value width wmode wrap`,fz=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown - onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick - onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown - onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel - onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough - onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata - onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,_C=`${dz} ${fz}`.split(/[\s\n]+/),pz="aria-",gz="data-";function AC(e,t){return e.indexOf(t)===0}function wl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=m({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||AC(r,pz))||n.data&&AC(r,gz)||n.attr&&(_C.includes(r)||_C.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const OI=Symbol("OverflowContextProviderKey"),Dv=oe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(OI,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),hz=()=>He(OI,P(()=>null));var vz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),l=le();o({itemNodeRef:l});function i(a){e.registerSize(e.itemKey,a)}return Rn(()=>{i(null)}),()=>{var a;const{prefixCls:s,invalidate:c,item:u,renderItem:d,responsive:f,registerSize:g,itemKey:v,display:h,order:b,component:y="div"}=e,S=vz(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(a=n.default)===null||a===void 0?void 0:a.call(n),x=d&&u!==Ri?d(u):$;let C;c||(C={opacity:r.value?0:1,height:r.value?0:Ri,overflowY:r.value?"hidden":Ri,order:f?b:Ri,pointerEvents:r.value?"none":Ri,position:r.value?"absolute":Ri});const O={};return r.value&&(O["aria-hidden"]=!0),p(xo,{disabled:!f,onResize:w=>{let{offsetWidth:I}=w;i(I)}},{default:()=>p(y,D(D(D({class:ie(!c&&s),style:C},O),S),{},{ref:l}),{default:()=>[x]})})}}});var Ug=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;if(!r.value){const{component:d="div"}=e,f=Ug(e,["component"]);return p(d,D(D({},f),o),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}const i=r.value,{className:a}=i,s=Ug(i,["className"]),{class:c}=o,u=Ug(o,["class"]);return p(Dv,{value:null},{default:()=>[p(zu,D(D(D({class:ie(a,c)},s),u),e),n)]})}}});var bz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:V.any,component:String,itemComponent:V.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),fp=oe({name:"Overflow",inheritAttrs:!1,props:Sz(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const l=P(()=>e.ssr==="full"),i=te(null),a=P(()=>i.value||0),s=te(new Map),c=te(0),u=te(0),d=te(0),f=te(null),g=te(null),v=P(()=>g.value===null&&l.value?Number.MAX_SAFE_INTEGER:g.value||0),h=te(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(c.value,u.value)),S=P(()=>!!(e.data.length&&e.maxCount===PI)),$=P(()=>e.maxCount===II),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let M=e.data;return S.value?i.value===null&&l.value?M=e.data:M=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&(M=e.data.slice(0,e.maxCount)),M}),O=P(()=>S.value?e.data.slice(v.value+1):e.data.slice(C.value.length)),w=(M,B)=>{var N;return typeof e.itemKey=="function"?e.itemKey(M):(N=e.itemKey&&(M==null?void 0:M[e.itemKey]))!==null&&N!==void 0?N:B},I=P(()=>e.renderItem||(M=>M)),T=(M,B)=>{g.value=M,B||(h.value=M{i.value=B.clientWidth},E=(M,B)=>{const N=new Map(s.value);B===null?N.delete(M):N.set(M,B),s.value=N},A=(M,B)=>{c.value=u.value,u.value=B},R=(M,B)=>{d.value=B},z=M=>s.value.get(w(C.value[M],M));return be([a,s,u,d,()=>e.itemKey,C],()=>{if(a.value&&y.value&&C.value){let M=d.value;const B=C.value.length,N=B-1;if(!B){T(0),f.value=null;return}for(let F=0;Fa.value){T(F-1),f.value=M-L-d.value+u.value;break}}e.suffix&&z(0)+d.value>a.value&&(f.value=null)}}),()=>{const M=h.value&&!!O.value.length,{itemComponent:B,renderRawItem:N,renderRawRest:F,renderRest:L,prefixCls:k="rc-overflow",suffix:j,component:H="div",id:Y,onMousedown:Z}=e,{class:U,style:ee}=n,G=bz(n,["class","style"]);let J={};f.value!==null&&S.value&&(J={position:"absolute",left:`${f.value}px`,top:0});const Q={prefixCls:b.value,responsive:S.value,component:B,invalidate:$.value},K=N?(X,ne)=>{const ae=w(X,ne);return p(Dv,{key:ae,value:m(m({},Q),{order:ne,item:X,itemKey:ae,registerSize:E,display:ne<=v.value})},{default:()=>[N(X,ne)]})}:(X,ne)=>{const ae=w(X,ne);return p(zu,D(D({},Q),{},{order:ne,key:ae,item:X,renderItem:I.value,itemKey:ae,registerSize:E,display:ne<=v.value}),null)};let q=()=>null;const pe={order:M?v.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:A,display:M};if(F)F&&(q=()=>p(Dv,{value:m(m({},Q),pe)},{default:()=>[F(O.value)]}));else{const X=L||yz;q=()=>p(zu,D(D({},Q),pe),{default:()=>typeof X=="function"?X(O.value):X})}const W=()=>{var X;return p(H,D({id:Y,class:ie(!$.value&&k,U),style:ee,onMousedown:Z,role:e.role},G),{default:()=>[C.value.map(K),x.value?q():null,j&&p(zu,D(D({},Q),{},{order:v.value,class:`${b.value}-suffix`,registerSize:R,display:!0,style:J}),{default:()=>j}),(X=r.default)===null||X===void 0?void 0:X.call(r)]})};return p(xo,{disabled:!S.value,onResize:_},{default:W})}}});fp.Item=mz;fp.RESPONSIVE=PI;fp.INVALIDATE=II;const sa=fp,TI=Symbol("TreeSelectLegacyContextPropsKey");function $z(e){return Ge(TI,e)}function pp(){return He(TI,{})}const Cz={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},RC=e=>{e.preventDefault(),e.stopPropagation()},xz=oe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Cz,setup(e){const t=te(),n=te(0),o=te(!1),r=pp(),l=P(()=>`${e.prefixCls}-selection`),i=P(()=>e.open||e.mode==="tags"?e.searchValue:""),a=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),s=le("");ke(()=>{s.value=i.value}),je(()=>{be(s,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function c(v,h,b,y,S){return p("span",{class:ie(`${l.value}-item`,{[`${l.value}-item-disabled`]:b}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[p("span",{class:`${l.value}-item-content`},[h]),y&&p(Hd,{class:`${l.value}-item-remove`,onMousedown:RC,onClick:S,customizeIcon:e.removeIcon},{default:()=>[Lt("×")]})])}function u(v,h,b,y,S,$){var x;const C=w=>{RC(w),e.onToggleOpen(!open)};let O=$;return r.keyEntities&&(O=((x=r.keyEntities[v])===null||x===void 0?void 0:x.node)||{}),p("span",{key:v,onMousedown:C},[e.tagRender({label:h,value:v,disabled:b,closable:y,onClose:S,option:O})])}function d(v){const{disabled:h,label:b,value:y,option:S}=v,$=!e.disabled&&!h;let x=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const O=String(x);O.length>e.maxTagTextLength&&(x=`${O.slice(0,e.maxTagTextLength)}...`)}const C=O=>{var w;O&&O.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,v)};return typeof e.tagRender=="function"?u(y,x,h,$,C,S):c(b,x,h,$,C)}function f(v){const{maxTagPlaceholder:h=y=>`+ ${y.length} ...`}=e,b=typeof h=="function"?h(v):h;return c(b,b,!1)}const g=v=>{const h=v.target.composing;s.value=v.target.value,h||e.onInputChange(v)};return()=>{const{id:v,prefixCls:h,values:b,open:y,inputRef:S,placeholder:$,disabled:x,autofocus:C,autocomplete:O,activeDescendantId:w,tabindex:I,compositionStatus:T,onInputPaste:_,onInputKeyDown:E,onInputMouseDown:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=p("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[p(wI,{inputRef:S,open:y,prefixCls:h,id:v,inputElement:null,disabled:x,autofocus:C,autocomplete:O,editable:a.value,activeDescendantId:w,value:s.value,onKeydown:E,onMousedown:A,onChange:g,onPaste:_,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),p("span",{ref:t,class:`${l.value}-search-mirror`,"aria-hidden":!0},[s.value,Lt(" ")])]),B=p(sa,{prefixCls:`${l.value}-overflow`,data:b,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return p(We,null,[B,!b.length&&!i.value&&!T&&p("span",{class:`${l.value}-placeholder`},[$])])}}}),wz=xz,Oz={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},X0=oe({name:"SingleSelector",setup(e){const t=te(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),l=pp();be([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value||e.compositionStatus),a=P(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=i.value?{visibility:"hidden"}:void 0;return p("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])},c=u=>{u.target.composing||(t.value=!0,e.onInputChange(u))};return()=>{var u,d,f,g;const{inputElement:v,prefixCls:h,id:b,values:y,inputRef:S,disabled:$,autofocus:x,autocomplete:C,activeDescendantId:O,open:w,tabindex:I,optionLabelRender:T,onInputKeyDown:_,onInputMouseDown:E,onInputPaste:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=y[0];let B=null;if(M&&l.customSlots){const N=(u=M.key)!==null&&u!==void 0?u:M.value,F=((d=l.keyEntities[N])===null||d===void 0?void 0:d.node)||{};B=l.customSlots[(f=F.slots)===null||f===void 0?void 0:f.title]||l.customSlots.title||M.label,typeof B=="function"&&(B=B(F))}else B=T&&M?T(M.option):M==null?void 0:M.label;return p(We,null,[p("span",{class:`${h}-selection-search`},[p(wI,{inputRef:S,prefixCls:h,id:b,open:w,inputElement:v,disabled:$,autofocus:x,autocomplete:C,editable:o.value,activeDescendantId:O,value:r.value,onKeydown:_,onMousedown:E,onChange:c,onPaste:A,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0)},null)]),!n.value&&M&&!i.value&&p("span",{class:`${h}-selection-item`,title:a.value},[p(We,{key:(g=M.key)!==null&&g!==void 0?g:M.value},[B])]),s()])}}});X0.props=Oz;X0.inheritAttrs=!1;const Pz=X0;function Iz(e){return![Oe.ESC,Oe.SHIFT,Oe.BACKSPACE,Oe.TAB,Oe.WIN_KEY,Oe.ALT,Oe.META,Oe.WIN_KEY_RIGHT,Oe.CTRL,Oe.SEMICOLON,Oe.EQUALS,Oe.CAPS_LOCK,Oe.CONTEXT_MENU,Oe.F1,Oe.F2,Oe.F3,Oe.F4,Oe.F5,Oe.F6,Oe.F7,Oe.F8,Oe.F9,Oe.F10,Oe.F11,Oe.F12].includes(e)}function EI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Ze(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function sc(){const e=t=>{e.current=t};return e}const Tz=oe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=sc(),r=le(!1),[l,i]=EI(0),a=y=>{const{which:S}=y;(S===Oe.UP||S===Oe.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===Oe.ENTER&&e.mode==="tags"&&!r.value&&!e.open&&e.onSearchSubmit(y.target.value),Iz(S)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let c=null;const u=y=>{e.onSearch(y,!0,r.value)!==!1&&e.onToggleOpen(!0)},d=()=>{r.value=!0},f=y=>{r.value=!1,e.mode!=="combobox"&&u(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const $=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,c)}c=null,u(S)},v=y=>{const{clipboardData:S}=y;c=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=l();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:g,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:f},C=$==="multiple"||$==="tags"?p(wz,D(D({},e),x),null):p(Pz,D(D({},e),x),null);return p("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}}),Ez=Tz;function Mz(e,t,n){function o(r){var l,i,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const c=[(l=e[0])===null||l===void 0?void 0:l.value,(a=(i=e[1])===null||i===void 0?void 0:i.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&c.every(u=>u&&!u.contains(s)&&u!==s)&&n(!1)}je(()=>{window.addEventListener("mousedown",o)}),Ze(()=>{window.removeEventListener("mousedown",o)})}function _z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=te(!1);let n;const o=()=>{clearTimeout(n)};return je(()=>{o()}),[t,(l,i)=>{o(),n=setTimeout(()=>{t.value=l,i&&i()},e)},o]}const MI=Symbol("BaseSelectContextKey");function Az(e){return Ge(MI,e)}function Tc(){return He(MI,{})}const U0=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substring(0,4))};function Wd(e){if(!kt(e))return ut(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ut(t)}var Rz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),gp=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Nz=()=>m(m({},Bz()),gp());function _I(e){return e==="tags"||e==="multiple"}const Y0=oe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:qe(Nz(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=P(()=>_I(e.mode)),i=P(()=>e.showSearch!==void 0?e.showSearch:l.value||e.mode==="combobox"),a=te(!1);je(()=>{a.value=U0()});const s=pp(),c=te(null),u=sc(),d=te(null),f=te(null),g=te(null),v=le(!1),[h,b,y]=_z();o({focus:()=>{var K;(K=f.value)===null||K===void 0||K.focus()},blur:()=>{var K;(K=f.value)===null||K===void 0||K.blur()},scrollTo:K=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(K)}});const x=P(()=>{var K;if(e.mode!=="combobox")return e.searchValue;const q=(K=e.displayValues[0])===null||K===void 0?void 0:K.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=te(C),w=te(C),I=K=>{O.value=e.open!==void 0?e.open:K,w.value=O.value};be(()=>e.open,()=>{I(e.open)});const T=P(()=>!e.notFoundContent&&e.emptyOptions);ke(()=>{w.value=O.value,(e.disabled||T.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const _=P(()=>T.value?!1:w.value),E=K=>{const q=K!==void 0?K:!w.value;w.value!==q&&!e.disabled&&(I(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q),!q&&H.value&&(H.value=!1,b(!1,()=>{k.value=!1,v.value=!1})))},A=P(()=>(e.tokenSeparators||[]).some(K=>[` -`,`\r -`].includes(K))),R=(K,q,pe)=>{var W,X;let ne=!0,ae=K;(W=e.onActiveValueChange)===null||W===void 0||W.call(e,null);const se=pe?null:sN(K,e.tokenSeparators);return e.mode!=="combobox"&&se&&(ae="",(X=e.onSearchSplit)===null||X===void 0||X.call(e,se),E(!1),ne=!1),e.onSearch&&x.value!==ae&&e.onSearch(ae,{source:q?"typing":"effect"}),ne},z=K=>{var q;!K||!K.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,K,{source:"submit"})};be(w,()=>{!w.value&&!l.value&&e.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),be(()=>e.disabled,()=>{O.value&&e.disabled&&I(!1),e.disabled&&!v.value&&b(!1)},{immediate:!0});const[M,B]=EI(),N=function(K){var q;const pe=M(),{which:W}=K;if(W===Oe.ENTER&&(e.mode!=="combobox"&&K.preventDefault(),w.value||E(!0)),B(!!x.value),W===Oe.BACKSPACE&&!pe&&l.value&&!x.value&&e.displayValues.length){const se=[...e.displayValues];let re=null;for(let de=se.length-1;de>=0;de-=1){const ge=se[de];if(!ge.disabled){se.splice(de,1),re=ge;break}}re&&e.onDisplayValuesChange(se,{type:"remove",values:[re]})}for(var X=arguments.length,ne=new Array(X>1?X-1:0),ae=1;ae1?q-1:0),W=1;W{const q=e.displayValues.filter(pe=>pe!==K);e.onDisplayValuesChange(q,{type:"remove",values:[K]})},k=te(!1),j=function(){b(!0),e.disabled||(e.onFocus&&!k.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&E(!0)),k.value=!0},H=le(!1),Y=function(){if(H.value||(v.value=!0,b(!1,()=>{k.value=!1,v.value=!1,E(!1)}),e.disabled))return;const K=x.value;K&&(e.mode==="tags"?e.onSearch(K,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},Z=()=>{H.value=!0},U=()=>{H.value=!1};Ge("VCSelectContainerEvent",{focus:j,blur:Y});const ee=[];je(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)}),Ze(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)});const G=function(K){var q,pe;const{target:W}=K,X=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(X&&X.contains(W)){const re=setTimeout(()=>{var de;const ge=ee.indexOf(re);ge!==-1&&ee.splice(ge,1),y(),!a.value&&!X.contains(document.activeElement)&&((de=f.value)===null||de===void 0||de.focus())});ee.push(re)}for(var ne=arguments.length,ae=new Array(ne>1?ne-1:0),se=1;se{};return je(()=>{be(_,()=>{var K;if(_.value){const q=Math.ceil((K=c.value)===null||K===void 0?void 0:K.offsetWidth);J.value!==q&&!Number.isNaN(q)&&(J.value=q)}},{immediate:!0,flush:"post"})}),Mz([c,d],_,E),Az(Wd(m(m({},No(e)),{open:w,triggerOpen:_,showSearch:i,multiple:l,toggleOpen:E}))),()=>{const K=m(m({},e),n),{prefixCls:q,id:pe,open:W,defaultOpen:X,mode:ne,showSearch:ae,searchValue:se,onSearch:re,allowClear:de,clearIcon:ge,showArrow:me,inputIcon:fe,disabled:ye,loading:Se,getInputElement:ue,getPopupContainer:ce,placement:he,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,showAction:Ne,direction:_e,tokenSeparators:De,tagRender:Je,optionLabelRender:ft,onPopupScroll:it,onDropdownVisibleChange:pt,onFocus:ht,onBlur:Ut,onKeyup:Jt,onKeydown:rn,onMousedown:jt,onClear:xn,omitDomProps:Wn,getRawInputElement:uo,displayValues:To,onDisplayValuesChange:Vn,emptyOptions:El,activeDescendantId:Ee,activeValue:Ue,OptionList:Ke}=K,Ct=Rz(K,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),en=ne==="combobox"&&ue&&ue()||null,Wt=typeof uo=="function"&&uo(),Kn=m({},Ct);let gn;Wt&&(gn=Mo=>{E(Mo)}),Dz.forEach(Mo=>{delete Kn[Mo]}),Wn==null||Wn.forEach(Mo=>{delete Kn[Mo]});const Go=me!==void 0?me:Se||!l.value&&ne!=="combobox";let Jn;Go&&(Jn=p(Hd,{class:ie(`${q}-arrow`,{[`${q}-arrow-loading`]:Se}),customizeIcon:fe,customizeIconProps:{loading:Se,searchValue:x.value,open:w.value,focused:h.value,showSearch:i.value}},null));let fo;const At=()=>{xn==null||xn(),Vn([],{type:"clear",values:To}),R("",!1,!1)};!ye&&de&&(To.length||x.value)&&(fo=p(Hd,{class:`${q}-clear`,onMousedown:At,customizeIcon:ge},{default:()=>[Lt("×")]}));const Eo=p(Ke,{ref:g},m(m({},s.customSlots),{option:r.option})),po=ie(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:l.value,[`${q}-single`]:!l.value,[`${q}-allow-clear`]:de,[`${q}-show-arrow`]:Go,[`${q}-disabled`]:ye,[`${q}-loading`]:Se,[`${q}-open`]:w.value,[`${q}-customize-input`]:en,[`${q}-show-search`]:i.value}),Wr=p(ez,{ref:d,disabled:ye,prefixCls:q,visible:_.value,popupElement:Eo,containerWidth:J.value,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,direction:_e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,placement:he,getPopupContainer:ce,empty:El,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:gn,onPopupMouseEnter:Q,onPopupFocusin:Z,onPopupFocusout:U},{default:()=>Wt?Kt(Wt)&&dt(Wt,{ref:u},!1,!0):p(Ez,D(D({},e),{},{domRef:u,prefixCls:q,inputElement:en,ref:f,id:pe,showSearch:i.value,mode:ne,activeDescendantId:Ee,tagRender:Je,optionLabelRender:ft,values:To,open:w.value,onToggleOpen:E,activeValue:Ue,searchValue:x.value,onSearch:R,onSearchSubmit:z,onRemove:L,tokenWithEnter:A.value}),null)});let Vr;return Wt?Vr=Wr:Vr=p("div",D(D({},Kn),{},{class:po,ref:c,onMousedown:G,onKeydown:N,onKeyup:F}),[h.value&&!w.value&&p("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${To.map(Mo=>{let{label:Ei,value:_o}=Mo;return["number","string"].includes(typeof Ei)?Ei:_o}).join(", ")}`]),Wr,Jn,fo]),Vr}}}),hp=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=m(m({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),p("div",{style:s},[p(xo,{onResize:u=>{let{offsetHeight:d}=u;d&&l&&l()}},{default:()=>[p("div",{style:c,class:ie({[`${r}-holder-inner`]:r})},[(a=i.default)===null||a===void 0?void 0:a.call(i)])]})])};hp.displayName="Filter";hp.inheritAttrs=!1;hp.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Fz=hp,AI=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=yt((r=o.default)===null||r===void 0?void 0:r.call(o));return l&&l.length?sn(l[0],{ref:n}):l};AI.props={setRef:{type:Function,default:()=>{}}};const Lz=AI,kz=20;function DC(e){return"touches"in e?e.touches[0].pageY:e.pageY}const zz=oe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:sc(),thumbRef:sc(),visibleTimeout:null,state:ut({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Ye.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;m(this.state,{dragging:!0,pageY:DC(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(Ye.cancel(this.moveRaf),t){const l=DC(e)-n,i=o+l,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),c=s?i/s:0,u=Math.ceil(c*a);this.moveRaf=Ye(()=>{r(u)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,kz),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return p("div",{ref:this.scrollbarRef,class:ie(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p("div",{ref:this.thumbRef,class:ie(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Hz(e,t,n,o){const r=new Map,l=new Map,i=le(Symbol("update"));be(e,()=>{i.value=Symbol("update")});let a;function s(){Ye.cancel(a)}function c(){s(),a=Ye(()=>{r.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;l.get(f)!==g&&(i.value=Symbol("update"),l.set(f,d.offsetHeight))}})})}function u(d,f){const g=t(d),v=r.get(g);f?(r.set(g,f.$el||f),c()):r.delete(g),!v!=!f&&(f?n==null||n(d):o==null||o(d))}return Rn(()=>{s()}),[u,c,l,i]}function jz(e,t,n,o,r,l,i,a){let s;return c=>{if(c==null){a();return}Ye.cancel(s);const u=t.value,d=o.itemHeight;if(typeof c=="number")i(c);else if(c&&typeof c=="object"){let f;const{align:g}=c;"index"in c?{index:f}=c:f=u.findIndex(b=>r(b)===c.key);const{offset:v=0}=c,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,I=0;const T=Math.min(u.length,f);for(let A=0;A<=T;A+=1){const R=r(u[A]);w=O;const z=n.get(R);I=w+(z===void 0?d:z),O=I,A===f&&z===void 0&&($=!0)}const _=e.value.scrollTop;let E=null;switch(C){case"top":E=w-v;break;case"bottom":E=I-S+v;break;default:{const A=_+S;w<_?x="top":I>A&&(x="bottom")}}E!==null&&E!==_&&i(E)}s=Ye(()=>{$&&l(),h(b-1,x)},2)};h(5)}}}const Wz=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Vz=Wz,RI=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=l<0&&e.value||l>0&&t.value;return i&&a?(clearTimeout(o),n=!1):(!a||n)&&r(),!n&&a}};function Kz(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=RI(t,n);function c(d){if(!e.value)return;Ye.cancel(l);const{deltaY:f}=d;r+=f,i=f,!s(f)&&(Vz||d.preventDefault(),l=Ye(()=>{o(r*(a?10:1)),r=0}))}function u(d){e.value&&(a=d.detail===i)}return[c,u]}const Gz=14/15;function Xz(e,t,n){let o=!1,r=0,l=null,i=null;const a=()=>{l&&(l.removeEventListener("touchmove",s),l.removeEventListener("touchend",c))},s=f=>{if(o){const g=Math.ceil(f.touches[0].pageY);let v=r-g;r=g,n(v)&&f.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=Gz,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},c=()=>{o=!1,a()},u=f=>{a(),f.touches.length===1&&!o&&(o=!0,r=Math.ceil(f.touches[0].pageY),l=f.target,l.addEventListener("touchmove",s,{passive:!1}),l.addEventListener("touchend",c))},d=()=>{};je(()=>{document.addEventListener("touchmove",d,{passive:!1}),be(e,f=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(i),f&&t.value.addEventListener("touchstart",u,{passive:!1})},{immediate:!0})}),Ze(()=>{document.removeEventListener("touchmove",d)})}var Uz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const c=t+s,u=r(a,c,{}),d=i(a);return p(Lz,{key:d,setRef:f=>o(a,f)},{default:()=>[u]})})}const Qz=oe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:L,itemHeight:k,virtual:j}=e;return!!(j!==!1&&L&&k)}),r=P(()=>{const{height:L,itemHeight:k,data:j}=e;return o.value&&j&&k*j.length>L}),l=ut({scrollTop:0,scrollMoving:!1}),i=P(()=>e.data||Yz),a=te([]);be(i,()=>{a.value=Qe(i.value).slice()},{immediate:!0});const s=te(L=>{});be(()=>e.itemKey,L=>{typeof L=="function"?s.value=L:s.value=k=>k==null?void 0:k[L]},{immediate:!0});const c=te(),u=te(),d=te(),f=L=>s.value(L),g={getKey:f};function v(L){let k;typeof L=="function"?k=L(l.scrollTop):k=L;const j=O(k);c.value&&(c.value.scrollTop=j),l.scrollTop=j}const[h,b,y,S]=Hz(a,f,null,null),$=ut({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=te(0);je(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),An(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),be([o,a],()=>{o.value||m($,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),be([o,a,x,r],()=>{o.value&&!r.value&&m($,{scrollHeight:x.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(l.scrollTop=c.value.scrollTop)},{immediate:!0}),be([r,o,()=>l.scrollTop,a,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let L=0,k,j,H;const Y=a.value.length,Z=a.value,U=l.scrollTop,{itemHeight:ee,height:G}=e,J=U+G;for(let Q=0;Q=U&&(k=Q,j=L),H===void 0&&W>J&&(H=Q),L=W}k===void 0&&(k=0,j=0,H=Math.ceil(G/ee)),H===void 0&&(H=Y-1),H=Math.min(H+1,Y),m($,{scrollHeight:L,start:k,end:H,offset:j})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(L){let k=L;return Number.isNaN(C.value)||(k=Math.min(k,C.value)),k=Math.max(k,0),k}const w=P(()=>l.scrollTop<=0),I=P(()=>l.scrollTop>=C.value),T=RI(w,I);function _(L){v(L)}function E(L){var k;const{scrollTop:j}=L.currentTarget;j!==l.scrollTop&&v(j),(k=e.onScroll)===null||k===void 0||k.call(e,L)}const[A,R]=Kz(o,w,I,L=>{v(k=>k+L)});Xz(o,c,(L,k)=>T(L,k)?!1:(A({preventDefault(){},deltaY:L}),!0));function z(L){o.value&&L.preventDefault()}const M=()=>{c.value&&(c.value.removeEventListener("wheel",A,nn?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",R),c.value.removeEventListener("MozMousePixelScroll",z))};ke(()=>{ot(()=>{c.value&&(M(),c.value.addEventListener("wheel",A,nn?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",R),c.value.addEventListener("MozMousePixelScroll",z))})}),Ze(()=>{M()});const B=jz(c,a,y,e,f,b,v,()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()});n({scrollTo:B});const N=P(()=>{let L=null;return e.height&&(L=m({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},qz),o.value&&(L.overflowY="hidden",l.scrollMoving&&(L.pointerEvents="none"))),L});return be([()=>$.start,()=>$.end,a],()=>{if(e.onVisibleChange){const L=a.value.slice($.start,$.end+1);e.onVisibleChange(L,a.value)}},{flush:"post"}),{state:l,mergedData:a,componentStyle:N,onFallbackScroll:E,onScrollBar:_,componentRef:c,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()}}},render(){const e=m(m({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:f}=e,g=Uz(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=ie(t,f),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:I,sharedConfig:T,setInstance:_,mergedData:E,delayHideScrollBar:A}=this;return p("div",D({style:m(m({},d),{position:"relative"}),class:v},g),[p(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:A},{default:()=>[p(Fz,{prefixCls:t,height:b,offset:y,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>Zz(E,S,$,_,u,T)})]}),w&&p(zz,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:E.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),DI=Qz;function q0(e,t,n){const o=le(e());return be(t,(r,l)=>{n?n(r,l)&&(o.value=e()):o.value=e()}),o}function Jz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const BI=Symbol("SelectContextKey");function eH(e){return Ge(BI,e)}function tH(){return He(BI,{})}var nH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),a=q0(()=>l.flattenOptions,[()=>r.open,()=>l.flattenOptions],C=>C[0]),s=sc(),c=C=>{C.preventDefault()},u=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=a.value.length;for(let I=0;I1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=C;const w={source:O?"keyboard":"mouse"},I=a.value[C];if(!I){l.onActiveValue(null,-1,w);return}l.onActiveValue(I.value,C,w)};be([()=>a.value.length,()=>r.searchValue],()=>{g(l.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=C=>l.rawValues.has(C)&&r.mode!=="combobox";be([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&l.rawValues.size===1){const C=Array.from(l.rawValues)[0],O=Qe(a.value).findIndex(w=>{let{data:I}=w;return I[l.fieldNames.value]===C});O!==-1&&(g(O),ot(()=>{u(O)}))}r.open&&ot(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&l.onSelect(C,{selected:!l.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=a.value[C];if(!O)return null;const w=O.data||{},{value:I}=w,{group:T}=O,_=wl(w,!0),E=b(O);return O?p("div",D(D({"aria-label":typeof E=="string"&&!T?E:null},_),{},{key:C,role:T?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":v(I)}),[I]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case Oe.N:case Oe.P:case Oe.UP:case Oe.DOWN:{let I=0;if(O===Oe.UP?I=-1:O===Oe.DOWN?I=1:Jz()&&w&&(O===Oe.N?I=1:O===Oe.P&&(I=-1)),I!==0){const T=d(f.activeIndex+I,I);u(T),g(T,!0)}break}case Oe.ENTER:{const I=a.value[f.activeIndex];I&&!I.data.disabled?h(I.value):h(void 0),r.open&&C.preventDefault();break}case Oe.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{u(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:I,fieldNames:T,virtual:_,listHeight:E,listItemHeight:A}=l,R=o.option,{activeIndex:z}=f,M=Object.keys(T).map(B=>T[B]);return a.value.length===0?p("div",{role:"listbox",id:`${C}_list`,class:`${i.value}-empty`,onMousedown:c},[O]):p(We,null,[p("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(z-1),y(z),y(z+1)]),p(DI,{itemKey:"key",ref:s,data:a.value,height:E,itemHeight:A,fullHeight:!1,onMousedown:c,onScroll:w,virtual:_},{default:(B,N)=>{var F;const{group:L,groupOption:k,data:j,value:H}=B,{key:Y}=j,Z=typeof B.label=="function"?B.label():B.label;if(L){const ge=(F=j.title)!==null&&F!==void 0?F:BC(Z)&&Z;return p("div",{class:ie(i.value,`${i.value}-group`),title:ge},[R?R(j):Z!==void 0?Z:Y])}const{disabled:U,title:ee,children:G,style:J,class:Q,className:K}=j,q=nH(j,["disabled","title","children","style","class","className"]),pe=et(q,M),W=v(H),X=`${i.value}-option`,ne=ie(i.value,X,Q,K,{[`${X}-grouped`]:k,[`${X}-active`]:z===N&&!U,[`${X}-disabled`]:U,[`${X}-selected`]:W}),ae=b(B),se=!I||typeof I=="function"||W,re=typeof ae=="number"?ae:ae||H;let de=BC(re)?re.toString():void 0;return ee!==void 0&&(de=ee),p("div",D(D({},pe),{},{"aria-selected":W,class:ne,title:de,onMousemove:ge=>{q.onMousemove&&q.onMousemove(ge),!(z===N||U)&&g(N)},onClick:ge=>{U||h(H),q.onClick&&q.onClick(ge)},style:J}),[p("div",{class:`${X}-content`},[R?R(j):re]),Kt(I)||W,se&&p(Hd,{class:`${i.value}-option-state`,customizeIcon:I,customizeIconProps:{isSelected:W}},{default:()=>[W?"✓":null]})])}})])}}}),rH=oH;var lH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return yt(e).map((o,r)=>{var l;if(!Kt(o)||!o.type)return null;const{type:{isSelectOptGroup:i},key:a,children:s,props:c}=o;if(t||!i)return iH(o);const u=s&&s.default?s.default():void 0,d=(c==null?void 0:c.label)||((l=s.label)===null||l===void 0?void 0:l.call(s))||a;return m(m({key:`__RC_SELECT_GRP__${a===null?r:String(a)}__`},c),{label:d,options:NI(u||[])})}).filter(o=>o)}function aH(e,t,n){const o=te(),r=te(),l=te(),i=te([]);return be([e,t],()=>{e.value?i.value=Qe(e.value).slice():i.value=NI(t.value)},{immediate:!0,deep:!0}),ke(()=>{const a=i.value,s=new Map,c=new Map,u=n.value;function d(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:le("");const t=`rc_select_${cH()}`;return e.value||t}function FI(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Yg(e,t){return FI(e).join("").toUpperCase().includes(t)}const uH=(e,t,n,o,r)=>P(()=>{const l=n.value,i=r==null?void 0:r.value,a=o==null?void 0:o.value;if(!l||a===!1)return e.value;const{options:s,label:c,value:u}=t.value,d=[],f=typeof a=="function",g=l.toUpperCase(),v=f?a:(b,y)=>i?Yg(y[i],g):y[s]?Yg(y[c!=="children"?c:"label"],g):Yg(y[u],g),h=f?b=>Ov(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(v(l,h(b)))d.push(b);else{const S=b[s].filter($=>v(l,h($)));S.length&&d.push(m(m({},b),{[s]:S}))}return}v(l,h(b))&&d.push(b)}),d}),dH=(e,t)=>{const n=te({values:new Map,options:new Map});return[P(()=>{const{values:l,options:i}=n.value,a=e.value.map(u=>{var d;return u.label===void 0?m(m({},u),{label:(d=l.get(u.value))===null||d===void 0?void 0:d.label}):u}),s=new Map,c=new Map;return a.forEach(u=>{s.set(u.value,u),c.set(u.value,t.value.get(u.value)||i.get(u.value))}),n.value.values=s,n.value.options=c,a}),l=>t.value.get(l)||n.value.options.get(l)]};function Pt(e,t){const{defaultValue:n,value:o=le()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=$t(o)),n!==void 0&&(r=typeof n=="function"?n():n);const l=le(r),i=le(r);ke(()=>{let s=o.value!==void 0?o.value:l.value;t.postState&&(s=t.postState(s)),i.value=s});function a(s){const c=i.value;l.value=s,Qe(i.value)!==s&&t.onChange&&t.onChange(s,c)}return be(o,()=>{l.value=o.value}),[i,a]}function vt(e){const t=typeof e=="function"?e():e,n=le(t);function o(r){n.value=r}return[n,o]}const fH=["inputValue"];function LI(){return m(m({},gp()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function pH(e){return!e||typeof e!="object"}const gH=oe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:qe(LI(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>_I(e.mode)),a=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),c=P(()=>ZP(e.fieldNames,a.value)),[u,d]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Q=>Q||""}),f=aH(ze(e,"options"),ze(e,"children"),c),{valueOptions:g,labelOptions:v,options:h}=f,b=Q=>FI(Q).map(q=>{var pe,W;let X,ne,ae,se;pH(q)?X=q:(ae=q.key,ne=q.label,X=(pe=q.value)!==null&&pe!==void 0?pe:ae);const re=g.value.get(X);return re&&(ne===void 0&&(ne=re==null?void 0:re[e.optionLabelProp||c.value.label]),ae===void 0&&(ae=(W=re==null?void 0:re.key)!==null&&W!==void 0?W:X),se=re==null?void 0:re.disabled),{label:ne,value:X,key:ae,disabled:se,option:re}}),[y,S]=Pt(e.defaultValue,{value:ze(e,"value")}),$=P(()=>{var Q;const K=b(y.value);return e.mode==="combobox"&&!(!((Q=K[0])===null||Q===void 0)&&Q.value)?[]:K}),[x,C]=dH($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Q=x.value[0];if(Q.value===null&&(Q.label===null||Q.label===void 0))return[]}return x.value.map(Q=>{var K;return m(m({},Q),{label:(K=typeof Q.label=="function"?Q.label():Q.label)!==null&&K!==void 0?K:Q.value})})}),w=P(()=>new Set(x.value.map(Q=>Q.value)));ke(()=>{var Q;if(e.mode==="combobox"){const K=(Q=x.value[0])===null||Q===void 0?void 0:Q.value;K!=null&&d(String(K))}},{flush:"post"});const I=(Q,K)=>{const q=K??Q;return{[c.value.value]:Q,[c.value.label]:q}},T=te();ke(()=>{if(e.mode!=="tags"){T.value=h.value;return}const Q=h.value.slice(),K=q=>g.value.has(q);[...x.value].sort((q,pe)=>q.value{const pe=q.value;K(pe)||Q.push(I(pe,q.label))}),T.value=Q});const _=uH(T,c,u,s,ze(e,"optionFilterProp")),E=P(()=>e.mode!=="tags"||!u.value||_.value.some(Q=>Q[e.optionFilterProp||"value"]===u.value)?_.value:[I(u.value),..._.value]),A=P(()=>e.filterSort?[...E.value].sort((Q,K)=>e.filterSort(Q,K)):E.value),R=P(()=>aN(A.value,{fieldNames:c.value,childrenAsData:a.value})),z=Q=>{const K=b(Q);if(S(K),e.onChange&&(K.length!==x.value.length||K.some((q,pe)=>{var W;return((W=x.value[pe])===null||W===void 0?void 0:W.value)!==(q==null?void 0:q.value)}))){const q=e.labelInValue?K.map(W=>m(m({},W),{originLabel:W.label,label:typeof W.label=="function"?W.label():W.label})):K.map(W=>W.value),pe=K.map(W=>Ov(C(W.value)));e.onChange(i.value?q:q[0],i.value?pe:pe[0])}},[M,B]=vt(null),[N,F]=vt(0),L=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),k=function(Q,K){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F(K),e.backfill&&e.mode==="combobox"&&Q!==null&&q==="keyboard"&&B(String(Q))},j=(Q,K)=>{const q=()=>{var pe;const W=C(Q),X=W==null?void 0:W[c.value.label];return[e.labelInValue?{label:typeof X=="function"?X():X,originLabel:X,value:Q,key:(pe=W==null?void 0:W.key)!==null&&pe!==void 0?pe:Q}:Q,Ov(W)]};if(K&&e.onSelect){const[pe,W]=q();e.onSelect(pe,W)}else if(!K&&e.onDeselect){const[pe,W]=q();e.onDeselect(pe,W)}},H=(Q,K)=>{let q;const pe=i.value?K.selected:!0;pe?q=i.value?[...x.value,Q]:[Q]:q=x.value.filter(W=>W.value!==Q),z(q),j(Q,pe),e.mode==="combobox"?B(""):(!i.value||e.autoClearSearchValue)&&(d(""),B(""))},Y=(Q,K)=>{z(Q),(K.type==="remove"||K.type==="clear")&&K.values.forEach(q=>{j(q.value,!1)})},Z=(Q,K)=>{var q;if(d(Q),B(null),K.source==="submit"){const pe=(Q||"").trim();if(pe){const W=Array.from(new Set([...w.value,pe]));z(W),j(pe,!0),d("")}return}K.source!=="blur"&&(e.mode==="combobox"&&z(Q),(q=e.onSearch)===null||q===void 0||q.call(e,Q))},U=Q=>{let K=Q;e.mode!=="tags"&&(K=Q.map(pe=>{const W=v.value.get(pe);return W==null?void 0:W.value}).filter(pe=>pe!==void 0));const q=Array.from(new Set([...w.value,...K]));z(q),q.forEach(pe=>{j(pe,!0)})},ee=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);eH(Wd(m(m({},f),{flattenOptions:R,onActiveValue:k,defaultActiveFirstOption:L,onSelect:H,menuItemSelectedIcon:ze(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:c,virtual:ee,listHeight:ze(e,"listHeight"),listItemHeight:ze(e,"listItemHeight"),childrenAsData:a})));const G=le();n({focus(){var Q;(Q=G.value)===null||Q===void 0||Q.focus()},blur(){var Q;(Q=G.value)===null||Q===void 0||Q.blur()},scrollTo(Q){var K;(K=G.value)===null||K===void 0||K.scrollTo(Q)}});const J=P(()=>et(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>p(Y0,D(D(D({},J.value),o),{},{id:l,prefixCls:e.prefixCls,ref:G,omitDomProps:fH,mode:e.mode,displayValues:O.value,onDisplayValuesChange:Y,searchValue:u.value,onSearch:Z,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:rH,emptyOptions:!R.value.length,activeValue:M.value,activeDescendantId:`${l}_list_${N.value}`}),r)}}),Q0=()=>null;Q0.isSelectOption=!0;Q0.displayName="ASelectOption";const hH=Q0,J0=()=>null;J0.isSelectOptGroup=!0;J0.displayName="ASelectOptGroup";const vH=J0;var mH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const bH=mH;var yH=Symbol("iconContext"),kI=function(){return He(yH,{prefixCls:le("anticon"),rootClassName:le(""),csp:le()})};function eb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function SH(e,t){return e&&e.contains?e.contains(t):!1}var FC="data-vc-order",$H="vc-icon-key",Bv=new Map;function zI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$H}function tb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HI(e){return Array.from((Bv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!eb())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(FC,CH(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=tb(t),i=l.firstChild;if(o){if(o==="queue"){var a=HI(l).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(FC))});if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function xH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tb(t);return HI(n).find(function(o){return o.getAttribute(zI(t))===e})}function wH(e,t){var n=Bv.get(e);if(!n||!SH(document,n)){var o=jI("",t),r=o.parentNode;Bv.set(e,r),e.removeChild(o)}}function OH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=tb(n);wH(o,n);var r=xH(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var l=jI(e,n);return l.setAttribute(zI(n),t),l}function LC(e){for(var t=1;t * { - 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); - } -} -`;function KI(e){return e&&e.getRootNode&&e.getRootNode()}function TH(e){return eb()?KI(e)instanceof ShadowRoot:!1}function EH(e){return TH(e)?KI(e):null}var MH=function(){var t=kI(),n=t.prefixCls,o=t.csp,r=pn(),l=IH;n&&(l=l.replace(/anticon/g,n.value)),ot(function(){if(eb()){var i=r.vnode.el,a=EH(i);OH(l,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:a})}})},_H=["icon","primaryColor","secondaryColor"];function AH(e,t){if(e==null)return{};var n=RH(e,t),o,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function RH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}function Hu(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function ZH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}GI(Y9.primary);var La=function(t,n){var o,r=jC({},t,n.attrs),l=r.class,i=r.icon,a=r.spin,s=r.rotate,c=r.tabindex,u=r.twoToneColor,d=r.onClick,f=qH(r,VH),g=kI(),v=g.prefixCls,h=g.rootClassName,b=(o={},ss(o,h.value,!!h.value),ss(o,v.value,!0),ss(o,"".concat(v.value,"-").concat(i.name),!!i.name),ss(o,"".concat(v.value,"-spin"),!!a||i.name==="loading"),o),y=c;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=VI(u),x=KH($,2),C=x[0],O=x[1];return p("span",jC({role:"img","aria-label":i.name},f,{onClick:d,class:[b,l],tabindex:y}),[p(nb,{icon:i,primaryColor:C,secondaryColor:O,style:S},null),p(WH,null,null)])};La.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};La.displayName="AntdIcon";La.inheritAttrs=!1;La.getTwoToneColor=jH;La.setTwoToneColor=GI;const tt=La;function WC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:l,feedbackIcon:i,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=c??p(Qn,null,null),g=y=>p(We,null,[a!==!1&&y,l&&i]);let v=null;if(s!==void 0)v=g(s);else if(n)v=g(p(co,{spin:!0},null));else{const y=`${r}-suffix`;v=S=>{let{open:$,showSearch:x}=S;return g($&&x?p(mp,{class:y},null):p(Ec,{class:y},null))}}let h=null;u!==void 0?h=u:o?h=p(vp,null,null):h=null;let b=null;return d!==void 0?b=d:b=p(Zn,null,null),{clearIcon:f,suffixIcon:v,itemIcon:h,removeIcon:b}}function ub(e){const t=Symbol("contextKey");return{useProvide:(r,l)=>{const i=ut({});return Ge(t,i),ke(()=>{m(i,r,l||{})}),i},useInject:()=>He(t,e)||{}}}const Vd=Symbol("ContextProps"),Kd=Symbol("InternalContextProps"),gj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=le(new Map),o=(l,i)=>{n.value.set(l,i),n.value=new Map(n.value)},r=l=>{n.value.delete(l),n.value=new Map(n.value)};pn(),be([t,n],()=>{}),Ge(Vd,e),Ge(Kd,{addFormItemField:o,removeFormItemField:r})},Fv={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Lv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qt=()=>{const e=He(Kd,Lv),t=Symbol("FormItemFieldKey"),n=pn();return e.addFormItemField(t,n.type),Ze(()=>{e.removeFormItemField(t)}),Ge(Kd,Lv),Ge(Vd,Fv),He(Vd,Fv)},Gd=oe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Ge(Kd,Lv),Ge(Vd,Fv),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),un=ub({}),Xd=oe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return un.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return ie({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ko=(e,t)=>t||e,hj=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vj=hj,mj=e=>{const{componentCls:t}=e;return{[t]:{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"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},XI=Ve("Space",e=>[mj(e),vj(e)]);var bj="[object Symbol]";function bp(e){return typeof e=="symbol"||jo(e)&&xl(e)==bj}function yp(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=Nj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zj(e){return function(){return e}}var Hj=function(){try{var e=Ci(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ud=Hj;var jj=Ud?function(e,t){return Ud(e,"toString",{configurable:!0,enumerable:!1,value:zj(t),writable:!0})}:db;const Wj=jj;var Vj=kj(Wj);const YI=Vj;function Kj(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}function QI(e,t,n){t=="__proto__"&&Ud?Ud(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yj=Object.prototype,qj=Yj.hasOwnProperty;function fb(e,t,n){var o=e[t];(!(qj.call(e,t)&&F0(o,n))||n===void 0&&!(t in e))&&QI(e,t,n)}function Mc(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l0&&n(a)?t>1?eT(a,t-1,n,o,r):k0(r,a):o||(r[r.length]=a)}return r}function hW(e){var t=e==null?0:e.length;return t?eT(e,1):[]}function tT(e){return YI(JI(e,void 0,hW),e+"")}var vW=SI(Object.getPrototypeOf,Object);const vb=vW;var mW="[object Object]",bW=Function.prototype,yW=Object.prototype,nT=bW.toString,SW=yW.hasOwnProperty,$W=nT.call(Object);function mb(e){if(!jo(e)||xl(e)!=mW)return!1;var t=vb(e);if(t===null)return!0;var n=SW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nT.call(n)==$W}function CW(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o=t||w<0||d&&I>=l}function y(){var O=qg();if(b(O))return S(O);a=setTimeout(y,h(O))}function S(O){return a=void 0,f&&o?g(O):(o=r=void 0,i)}function $(){a!==void 0&&clearTimeout(a),c=0,o=s=r=a=void 0}function x(){return a===void 0?i:S(qg())}function C(){var O=qg(),w=b(O);if(o=arguments,r=this,s=O,w){if(a===void 0)return v(s);if(d)return clearTimeout(a),a=setTimeout(y,t),g(s)}return a===void 0&&(a=setTimeout(y,t)),i}return C.cancel=$,C.flush=x,C}function hK(e){return jo(e)&&Da(e)}function fT(e,t,n){for(var o=-1,r=e==null?0:e.length;++o-1?r[l?t[i]:i]:void 0}}var bK=Math.max;function yK(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:Mj(n);return r<0&&(r=bK(o+r,0)),qI(e,yb(t),r)}var SK=mK(yK);const $K=SK;function CK(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&u.length>=120)?new Ia(i&&u):void 0}u=e[0];var d=-1,f=a[0];e:for(;++d1),l}),Mc(e,lT(e),n),o&&(n=Ms(n,FK|LK|kK,NK));for(var r=t.length;r--;)BK(n,t[r]);return n});const HK=zK;function jK(e,t,n,o){if(!Ho(e))return e;t=ka(t,e);for(var r=-1,l=t.length,i=l-1,a=e;a!=null&&++r=ZK){var c=t?null:qK(e);if(c)return L0(c);i=!1,r=Ld,s=new Ia}else s=t?[]:a;e:for(;++o({compactSize:String,compactDirection:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),isFirstItem:Ce(),isLastItem:Ce()}),$p=ub(null),Ol=(e,t)=>{const n=$p.useInject(),o=P(()=>{if(!n||pT(n))return"";const{compactDirection:r,isFirstItem:l,isLastItem:i}=n,a=r==="vertical"?"-vertical-":"-";return ie({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:l,[`${e.value}-compact${a}last-item`]:i,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n==null?void 0:n.compactSize),compactDirection:P(()=>n==null?void 0:n.compactDirection),compactItemClassnames:o}},cc=oe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return $p.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),eG=()=>({prefixCls:String,size:{type:String},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),tG=oe({name:"CompactItem",props:JK(),setup(e,t){let{slots:n}=t;return $p.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),nG=oe({name:"ASpaceCompact",inheritAttrs:!1,props:eG(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("space-compact",e),i=$p.useInject(),[a,s]=XI(r),c=P(()=>ie(r.value,s.value,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var u;const d=yt(((u=o.default)===null||u===void 0?void 0:u.call(o))||[]);return d.length===0?null:a(p("div",D(D({},n),{},{class:[c.value,n.class]}),[d.map((f,g)=>{var v;const h=f&&f.key||`${r.value}-item-${g}`,b=!i||pT(i);return p(tG,{key:h,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||(i==null?void 0:i.isFirstItem)),isLastItem:g===d.length-1&&(b||(i==null?void 0:i.isLastItem))},{default:()=>[f]})})]))}}}),Yd=nG,oG=e=>({animationDuration:e,animationFillMode:"both"}),rG=e=>({animationDuration:e,animationFillMode:"both"}),_c=function(e,t,n,o){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${l}${e}-enter, - ${l}${e}-appear - `]:m(m({},oG(o)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:m(m({},rG(o)),{animationPlayState:"paused"}),[` - ${l}${e}-enter${e}-enter-active, - ${l}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lG=new nt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),iG=new nt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[_c(o,lG,iG,e.motionDurationMid,t),{[` - ${r}${o}-enter, - ${r}${o}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},aG=new nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sG=new nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cG=new nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uG=new nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dG=new nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fG=new nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pG=new nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gG=new nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hG={"move-up":{inKeyframes:pG,outKeyframes:gG},"move-down":{inKeyframes:aG,outKeyframes:sG},"move-left":{inKeyframes:cG,outKeyframes:uG},"move-right":{inKeyframes:dG,outKeyframes:fG}},Ma=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=hG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cp=new nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xp=new nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wp=new nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Op=new nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vG=new nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mG=new nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bG=new nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yG=new nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),SG={"slide-up":{inKeyframes:Cp,outKeyframes:xp},"slide-down":{inKeyframes:wp,outKeyframes:Op},"slide-left":{inKeyframes:vG,outKeyframes:mG},"slide-right":{inKeyframes:bG,outKeyframes:yG}},sr=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=SG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Cb=new nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$G=new nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cx=new nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ux=new nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),CG=new nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xG=new nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wG=new nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OG=new nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),PG=new nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IG=new nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TG=new nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),EG=new nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),MG={zoom:{inKeyframes:Cb,outKeyframes:$G},"zoom-big":{inKeyframes:cx,outKeyframes:ux},"zoom-big-fast":{inKeyframes:cx,outKeyframes:ux},"zoom-left":{inKeyframes:wG,outKeyframes:OG},"zoom-right":{inKeyframes:PG,outKeyframes:IG},"zoom-up":{inKeyframes:CG,outKeyframes:xG},"zoom-down":{inKeyframes:TG,outKeyframes:EG}},Ha=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=MG[t];return[_c(o,r,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_G=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ac=_G,dx=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},AG=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:m(m({},Xe(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:Cp},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:wp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:xp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Op},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:m(m({},dx(e)),{color:e.colorTextDisabled}),[`${o}`]:m(m({},dx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":m({flex:"auto"},Gt),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},RG=AG,Di=2;function hT(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o,l=Math.ceil(r/2);return[r,l]}function Qg(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=hT(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Di}px ${Di*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Di}px 0`,lineHeight:`${l}px`,content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:Di,marginBottom:Di,lineHeight:`${l-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Di*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":m(m({},yi()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function DG(e){const{componentCls:t}=e,n=Fe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=hT(e);return[Qg(e),Qg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Qg(Fe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Jg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:m(m({},Xe(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function BG(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Jg(e),Jg(Fe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.fontSize*1.5}}}},Jg(Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function NG(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":m(m({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function FG(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ja(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:m(m({},NG(e,o,t)),FG(n,o,t))}}const LG=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},eh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:m(m({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},kG=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},zG=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:m(m({},LG(e)),kG(e)),[`${t}-selection-item`]:m({flex:1,fontWeight:"normal"},Gt),[`${t}-selection-placeholder`]:m(m({},Gt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:m(m({},yi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},HG=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},zG(e),BG(e),DG(e),RG(e),{[`${t}-rtl`]:{direction:"rtl"}},eh(t,Fe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),eh(`${t}-status-error`,Fe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),eh(`${t}-status-warning`,Fe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ja(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xb=Ve("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[HG(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Pp=()=>m(m({},et(LI(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Le([Array,Object,String,Number]),defaultValue:Le([Array,Object,String,Number]),notFoundContent:V.any,suffixIcon:V.any,itemIcon:V.any,size:Be(),mode:Be(),bordered:Ce(!0),transitionName:String,choiceTransitionName:Be(""),popupClassName:String,dropdownClassName:String,placement:Be(),status:Be(),"onUpdate:value":ve()}),fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",er=oe({compatConfig:{MODE:3},name:"ASelect",Option:hH,OptGroup:vH,inheritAttrs:!1,props:qe(Pp(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:fx,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:l}=t;const i=le(),a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),u=()=>{var H;(H=i.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=i.value)===null||H===void 0||H.blur()},f=H=>{var Y;(Y=i.value)===null||Y===void 0||Y.scrollTo(H)},g=P(()=>{const{mode:H}=e;if(H!=="combobox")return H===fx?"combobox":H}),{prefixCls:v,direction:h,configProvider:b,renderEmpty:y,size:S,getPrefixCls:$,getPopupContainer:x,disabled:C,select:O}=Te("select",e),{compactSize:w,compactItemClassnames:I}=Ol(v,h),T=P(()=>w.value||S.value),_=qn(),E=P(()=>{var H;return(H=C.value)!==null&&H!==void 0?H:_.value}),[A,R]=xb(v),z=P(()=>$()),M=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),B=P(()=>_n(z.value,K0(M.value),e.transitionName)),N=P(()=>ie({[`${v.value}-lg`]:T.value==="large",[`${v.value}-sm`]:T.value==="small",[`${v.value}-rtl`]:h.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Tn(v.value,c.value,s.hasFeedback),I.value,R.value)),F=function(){for(var H=arguments.length,Y=new Array(H),Z=0;Z{o("blur",H),a.onFieldBlur()};l({blur:d,focus:u,scrollTo:f});const k=P(()=>g.value==="multiple"||g.value==="tags"),j=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(k.value||g.value==="combobox"));return()=>{var H,Y,Z,U;const{notFoundContent:ee,listHeight:G=256,listItemHeight:J=24,popupClassName:Q,dropdownClassName:K,virtual:q,dropdownMatchSelectWidth:pe,id:W=a.id.value,placeholder:X=(H=r.placeholder)===null||H===void 0?void 0:H.call(r),showArrow:ne}=e,{hasFeedback:ae,feedbackIcon:se}=s;let re;ee!==void 0?re=ee:r.notFoundContent?re=r.notFoundContent():g.value==="combobox"?re=null:re=(y==null?void 0:y("Select"))||p(O0,{componentName:"Select"},null);const{suffixIcon:de,itemIcon:ge,removeIcon:me,clearIcon:fe}=cb(m(m({},e),{multiple:k.value,prefixCls:v.value,hasFeedback:ae,feedbackIcon:se,showArrow:j.value}),r),ye=et(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Se=ie(Q||K,{[`${v.value}-dropdown-${h.value}`]:h.value==="rtl"},R.value);return A(p(gH,D(D(D({ref:i,virtual:q,dropdownMatchSelectWidth:pe},ye),n),{},{showSearch:(Y=e.showSearch)!==null&&Y!==void 0?Y:(Z=O==null?void 0:O.value)===null||Z===void 0?void 0:Z.showSearch,placeholder:X,listHeight:G,listItemHeight:J,mode:g.value,prefixCls:v.value,direction:h.value,inputIcon:de,menuItemSelectedIcon:ge,removeIcon:me,clearIcon:fe,notFoundContent:re,class:[N.value,n.class],getPopupContainer:x==null?void 0:x.value,dropdownClassName:Se,onChange:F,onBlur:L,id:W,dropdownRender:ye.dropdownRender||r.dropdownRender,transitionName:B.value,children:(U=r.default)===null||U===void 0?void 0:U.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ae||ne,disabled:E.value}),{option:r.option}))}}});er.install=function(e){return e.component(er.name,er),e.component(er.Option.displayName,er.Option),e.component(er.OptGroup.displayName,er.OptGroup),e};const jG=er.Option,WG=er.OptGroup,Dr=er,wb=()=>null;wb.isSelectOption=!0;wb.displayName="AAutoCompleteOption";const ca=wb,Ob=()=>null;Ob.isSelectOptGroup=!0;Ob.displayName="AAutoCompleteOptGroup";const Wu=Ob;function VG(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const KG=()=>m(m({},et(Pp(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),GG=ca,XG=Wu,th=oe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:KG(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;It(),It(),It(!e.dropdownClassName);const l=le(),i=()=>{var u;const d=yt((u=n.default)===null||u===void 0?void 0:u.call(n));return d.length?d[0]:void 0};r({focus:()=>{var u;(u=l.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=l.value)===null||u===void 0||u.blur()}});const{prefixCls:c}=Te("select",e);return()=>{var u,d,f;const{size:g,dataSource:v,notFoundContent:h=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${c.value}-lg`]:g==="large",[`${c.value}-sm`]:g==="small",[`${c.value}-show-search`]:!0,[`${c.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];x.length&&VG(x[0])?b=x:b=v?v.map(C=>{if(Kt(C))return C;switch(typeof C){case"string":return p(ca,{key:C,value:C},{default:()=>[C]});case"object":return p(ca,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=et(m(m(m({},e),o),{mode:Dr.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:l}),["dataSource","loading"]);return p(Dr,$,D({default:()=>[b]},et(n,["default","dataSource","options"])))}}}),UG=m(th,{Option:ca,OptGroup:Wu,install(e){return e.component(th.name,th),e.component(ca.displayName,ca),e.component(Wu.displayName,Wu),e}});var YG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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:"check-circle",theme:"outlined"};const qG=YG;function px(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),vX=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:l,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:h}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, - padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},mX=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:l,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:g}=e;return{[t]:{"&-success":fu(r,o,n,e,t),"&-info":fu(g,f,d,e,t),"&-warning":fu(a,i,l,e,t),"&-error":m(m({},fu(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},bX=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:l,colorIcon:i,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:l,lineHeight:`${l}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}},yX=e=>[vX(e),mX(e),bX(e)],SX=Ve("Alert",e=>{const{fontSizeHeading3:t}=e,n=Fe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[yX(n)]}),$X={success:zr,info:Wa,error:Qn,warning:Hr},CX={success:vT,info:bT,error:yT,warning:mT},xX=Cn("success","info","warning","error"),wX=()=>({type:V.oneOf(xX),closable:{type:Boolean,default:void 0},closeText:V.any,message:V.any,description:V.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:V.any,closeIcon:V.any,onClose:Function}),OX=oe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:wX(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("alert",e),[s,c]=SX(i),u=te(!1),d=te(!1),f=te(),g=y=>{y.preventDefault();const S=f.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,u.value=!0,o("close",y)},v=()=>{var y;u.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});l({animationEnd:v});const b=te({});return()=>{var y,S,$,x,C,O,w,I,T,_;const{banner:E,closeIcon:A=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:R,showIcon:z}=e;const M=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),B=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),N=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),F=(I=e.icon)!==null&&I!==void 0?I:(T=n.icon)===null||T===void 0?void 0:T.call(n),L=(_=n.action)===null||_===void 0?void 0:_.call(n);z=E&&z===void 0?!0:z;const k=(B?CX:$X)[h.value]||null;M&&(R=!0);const j=i.value,H=ie(j,{[`${j}-${h.value}`]:!0,[`${j}-closing`]:u.value,[`${j}-with-description`]:!!B,[`${j}-no-icon`]:!z,[`${j}-banner`]:!!E,[`${j}-closable`]:R,[`${j}-rtl`]:a.value==="rtl",[c.value]:!0}),Y=R?p("button",{type:"button",onClick:g,class:`${j}-close-icon`,tabindex:0},[M?p("span",{class:`${j}-close-text`},[M]):A===void 0?p(Zn,null,null):A]):null,Z=F&&(Kt(F)?dt(F,{class:`${j}-icon`}):p("span",{class:`${j}-icon`},[F]))||p(k,{class:`${j}-icon`},null),U=Po(`${j}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:ee=>{ee.style.maxHeight=`${ee.offsetHeight}px`},onLeave:ee=>{ee.style.maxHeight="0px"}});return s(d.value?null:p(cn,U,{default:()=>[$n(p("div",D(D({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,H],"data-show":!u.value,ref:f}),[z?Z:null,p("div",{class:`${j}-content`},[N?p("div",{class:`${j}-message`},[N]):null,B?p("div",{class:`${j}-description`},[B]):null]),L?p("div",{class:`${j}-action`},[L]):null,Y]),[[En,!u.value]])]}))}}}),PX=Tt(OX),Or=["xxxl","xxl","xl","lg","md","sm","xs"],IX=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function Rb(){const[,e]=Fr();return P(()=>{const t=IX(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(l){return r=l,n.forEach(i=>i(r)),n.size>=1},subscribe(l){return n.size||this.register(),o+=1,n.set(o,l),l(r),o},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(t).forEach(l=>{const i=t[l],a=this.matchHandlers[i];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(l=>{const i=t[l],a=c=>{let{matches:u}=c;this.dispatch(m(m({},r),{[l]:u}))},s=window.matchMedia(i);s.addListener(a),this.matchHandlers[i]={mql:s,listener:a},a(s)})},responsiveMap:t}})}function Va(){const e=te({});let t=null;const n=Rb();return je(()=>{t=n.value.subscribe(o=>{e.value=o})}),Rn(()=>{n.value.unsubscribe(t)}),e}function ro(e){const t=te();return ke(()=>{t.value=e()},{flush:"sync"}),t}const TX=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,c,f)),{"&-lg":m({},y(a,u,g)),"&-sm":m({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},EX=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},ST=Ve("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Fe(e,{avatarBg:n,avatarColor:t});return[TX(o),EX(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}),$T=Symbol("AvatarContextKey"),MX=()=>He($T,{}),_X=e=>Ge($T,e),AX=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:V.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),RX=oe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:AX(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=te(!0),l=te(!1),i=te(1),a=te(null),s=te(null),{prefixCls:c}=Te("avatar",e),[u,d]=ST(c),f=MX(),g=P(()=>e.size==="default"?f.size:e.size),v=Va(),h=ro(()=>{if(typeof e.size!="object")return;const $=Or.find(C=>v.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!a.value||!s.value)return;const $=a.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;($==null?void 0:$())!==!1&&(r.value=!1)};return be(()=>e.src,()=>{ot(()=>{r.value=!0,i.value=1})}),be(()=>e.gap,()=>{ot(()=>{y()})}),je(()=>{ot(()=>{y(),l.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:I,draggable:T,crossOrigin:_}=e,E=($=f.shape)!==null&&$!==void 0?$:C,A=qt(n,e,"icon"),R=c.value,z={[`${o.class}`]:!!o.class,[R]:!0,[`${R}-lg`]:g.value==="large",[`${R}-sm`]:g.value==="small",[`${R}-${E}`]:!0,[`${R}-image`]:O&&r.value,[`${R}-icon`]:A,[d.value]:!0},M=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:A?`${g.value/2}px`:"18px"}:{},B=(x=n.default)===null||x===void 0?void 0:x.call(n);let N;if(O&&r.value)N=p("img",{draggable:T,src:O,srcset:I,onError:S,alt:w,crossorigin:_},null);else if(A)N=A;else if(l.value||i.value!==1){const F=`scale(${i.value}) translateX(-50%)`,L={msTransform:F,WebkitTransform:F,transform:F},k=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};N=p(xo,{onResize:y},{default:()=>[p("span",{class:`${R}-string`,ref:a,style:m(m({},k),L)},[B])]})}else N=p("span",{class:`${R}-string`,ref:a,style:{opacity:0}},[B]);return u(p("span",D(D({},o),{},{ref:s,class:z,style:[M,b(!!A),o.style]}),[N]))}}}),ni=RX,ho={adjustX:1,adjustY:1},vo=[0,0],CT={left:{points:["cr","cl"],overflow:ho,offset:[-4,0],targetOffset:vo},right:{points:["cl","cr"],overflow:ho,offset:[4,0],targetOffset:vo},top:{points:["bc","tc"],overflow:ho,offset:[0,-4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:ho,offset:[0,4],targetOffset:vo},topLeft:{points:["bl","tl"],overflow:ho,offset:[0,-4],targetOffset:vo},leftTop:{points:["tr","tl"],overflow:ho,offset:[-4,0],targetOffset:vo},topRight:{points:["br","tr"],overflow:ho,offset:[0,-4],targetOffset:vo},rightTop:{points:["tl","tr"],overflow:ho,offset:[4,0],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:ho,offset:[0,4],targetOffset:vo},rightBottom:{points:["bl","br"],overflow:ho,offset:[4,0],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:ho,offset:[0,4],targetOffset:vo},leftBottom:{points:["br","bl"],overflow:ho,offset:[-4,0],targetOffset:vo}},DX={prefixCls:String,id:String,overlayInnerStyle:V.any},BX=oe({compatConfig:{MODE:3},name:"TooltipContent",props:DX,setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var NX=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:V.string.def("rc-tooltip"),mouseEnterDelay:V.number.def(.1),mouseLeaveDelay:V.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:V.object.def(()=>({})),arrowContent:V.any.def(null),tipId:String,builtinPlacements:V.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=te(),i=()=>{const{prefixCls:u,tipId:d,overlayInnerStyle:f}=e;return[e.arrow?p("div",{class:`${u}-arrow`,key:"arrow"},[qt(n,e,"arrowContent")]):null,p(BX,{key:"content",prefixCls:u,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var u;return(u=l.value)===null||u===void 0?void 0:u.forcePopupAlign()}});const s=te(!1),c=te(!1);return ke(()=>{const{destroyTooltipOnHide:u}=e;if(typeof u=="boolean")s.value=u;else if(u&&typeof u=="object"){const{keepParent:d}=u;s.value=d===!0,c.value=d===!1}}),()=>{const{overlayClassName:u,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:g,overlayStyle:v,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=NX(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),I=m({},w);e.visible!==void 0&&(I.popupVisible=e.visible);const T=m(m(m({popupClassName:u,prefixCls:h,action:d,builtinPlacements:CT,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:c.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:f},I),o),{onPopupVisibleChange:e.onVisibleChange||Sx,onPopupAlign:e.onPopupAlign||Sx,ref:l,arrow:!!e.arrow,popup:i()});return p(wi,T,{default:n.default})}}}),Db=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Re(),overlayInnerStyle:Re(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Re(),builtinPlacements:Re(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),LX={adjustX:1,adjustY:1},$x={adjustX:0,adjustY:0},kX=[0,0];function Cx(e){return typeof e=="boolean"?e?LX:$x:m(m({},$x),e)}function Bb(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach(a=>{i[a]=l?m(m({},i[a]),{overflow:Cx(r),targetOffset:kX}):m(m({},CT[a]),{overflow:Cx(r)}),i[a].ignoreShake=!0}),i}function qd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),HX=["success","processing","error","default","warning"];function Ip(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...zX,...nc].includes(e):nc.includes(e)}function jX(e){return HX.includes(e)}function WX(e,t){const n=Ip(t),o=ie({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}function pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Nb=8;function xT(e){const t=Nb,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:l}=e,i=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-i,s=l?t-i:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:s}}function Fb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=xT({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:i,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[m(m({position:"absolute",zIndex:1,display:"block"},x0(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[pu(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingBottom:v},[pu(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingTop:v},[pu(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingRight:{_skip_check_:!0,value:v}},[pu(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const VX=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:m(m(m(m({},Xe(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,Nb)}},[`${t}-content`]:{position:"relative"}}),Bd(e,(f,g)=>{let{darkColor:v}=g;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Fb(Fe(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},KX=(e,t)=>Ve("Tooltip",o=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:l,colorBgDefault:i,borderRadiusOuter:a}=o,s=Fe(o,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:r,tooltipBg:i,tooltipRadiusOuter:a>4?4:a});return[VX(s),Ha(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:l}=o;return{zIndexPopup:r+70,colorBgDefault:l}})(e),GX=(e,t)=>{const n={},o=m({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},wT=()=>m(m({},Db()),{title:V.any}),OT=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),XX=oe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:qe(wT(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,getPopupContainer:a,direction:s,rootPrefixCls:c}=Te("tooltip",e),u=P(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible}),d=le(qd([e.open,e.visible])),f=le();let g;be(u,_=>{Ye.cancel(g),g=Ye(()=>{d.value=!!_})});const v=()=>{var _;const E=(_=e.title)!==null&&_!==void 0?_:n.title;return!E&&E!==0},h=_=>{const E=v();u.value===void 0&&(d.value=E?!1:_),E||(o("update:visible",_),o("visibleChange",_),o("update:open",_),o("openChange",_))};l({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var _;return(_=f.value)===null||_===void 0?void 0:_.forcePopupAlign()}});const y=P(()=>{var _;const{builtinPlacements:E,autoAdjustOverflow:A,arrow:R,arrowPointAtCenter:z}=e;let M=z;return typeof R=="object"&&(M=(_=R.pointAtCenter)!==null&&_!==void 0?_:z),E||Bb({arrowPointAtCenter:M,autoAdjustOverflow:A})}),S=_=>_||_==="",$=_=>{const E=_.type;if(typeof E=="object"&&_.props&&((E.__ANT_BUTTON===!0||E==="button")&&S(_.props.disabled)||E.__ANT_SWITCH===!0&&(S(_.props.disabled)||S(_.props.loading))||E.__ANT_RADIO===!0&&S(_.props.disabled))){const{picked:A,omitted:R}=GX(KO(_),["position","left","right","top","bottom","float","display","zIndex"]),z=m(m({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:_.props&&_.props.block?"100%":void 0}),M=m(m({},R),{pointerEvents:"none"}),B=dt(_,{style:M},!0);return p("span",{style:z,class:`${i.value}-disabled-compatible-wrapper`},[B])}return _},x=()=>{var _,E;return(_=e.title)!==null&&_!==void 0?_:(E=n.title)===null||E===void 0?void 0:E.call(n)},C=(_,E)=>{const A=y.value,R=Object.keys(A).find(z=>{var M,B;return A[z].points[0]===((M=E.points)===null||M===void 0?void 0:M[0])&&A[z].points[1]===((B=E.points)===null||B===void 0?void 0:B[1])});if(R){const z=_.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${z.height-E.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-E.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${z.width-E.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-E.offset[0]}px`),_.style.transformOrigin=`${M.left} ${M.top}`}},O=P(()=>WX(i.value,e.color)),w=P(()=>r["data-popover-inject"]),[I,T]=KX(i,P(()=>!w.value));return()=>{var _,E;const{openClassName:A,overlayClassName:R,overlayStyle:z,overlayInnerStyle:M}=e;let B=(E=_t((_=n.default)===null||_===void 0?void 0:_.call(n)))!==null&&E!==void 0?E:null;B=B.length===1?B[0]:B;let N=d.value;if(u.value===void 0&&v()&&(N=!1),!B)return null;const F=$(Kt(B)&&!oD(B)?B:p("span",null,[B])),L=ie({[A||`${i.value}-open`]:!0,[F.props&&F.props.class]:F.props&&F.props.class}),k=ie(R,{[`${i.value}-rtl`]:s.value==="rtl"},O.value.className,T.value),j=m(m({},O.value.overlayStyle),M),H=O.value.arrowStyle,Y=m(m(m({},r),e),{prefixCls:i.value,arrow:!!e.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:y.value,visible:N,ref:f,overlayClassName:k,overlayStyle:m(m({},H),z),overlayInnerStyle:j,onVisibleChange:h,onPopupAlign:C,transitionName:_n(c.value,"zoom-big-fast",e.transitionName)});return I(p(FX,Y,{default:()=>[d.value?dt(F,{class:L}):F],arrowContent:()=>p("span",{class:`${i.value}-arrow-content`},null),overlay:x}))}}}),Yn=Tt(XX),UX=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},Fb(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},YX=e=>{const{componentCls:t}=e;return{[t]:nc.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},qX=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:c}=e,u=i-Math.round(a*s),d=u/2,f=u/2-n,g=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${f}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${g}px`}}}},ZX=Ve("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Fe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[UX(r),YX(r),o&&qX(r),Ha(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),QX=()=>m(m({},Db()),{content:St(),title:St()}),JX=oe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:qe(QX(),m(m({},OT()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le();It(e.visible===void 0),n({getPopupDomNode:()=>{var f,g;return(g=(f=l.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||g===void 0?void 0:g.call(f)}});const{prefixCls:i,configProvider:a}=Te("popover",e),[s,c]=ZX(i),u=P(()=>a.getPrefixCls()),d=()=>{var f,g;const{title:v=_t((f=o.title)===null||f===void 0?void 0:f.call(o)),content:h=_t((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!b&&!y?null:p(We,null,[b&&p("div",{class:`${i.value}-title`},[v]),p("div",{class:`${i.value}-inner-content`},[h])])};return()=>{const f=ie(e.overlayClassName,c.value);return s(p(Yn,D(D(D({},et(e,["title","content"])),r),{},{prefixCls:i.value,ref:l,overlayClassName:f,transitionName:_n(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Lb=Tt(JX),eU=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),tU=oe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:eU(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("avatar",e),i=P(()=>`${r.value}-group`),[a,s]=ST(r);return ke(()=>{const c={size:e.size,shape:e.shape};_X(c)}),()=>{const{maxPopoverPlacement:c="top",maxCount:u,maxStyle:d,maxPopoverTrigger:f="hover",shape:g}=e,v={[i.value]:!0,[`${i.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=qt(n,e),b=yt(h).map((S,$)=>dt(S,{key:`avatar-key-${$}`})),y=b.length;if(u&&u[p(ni,{style:d,shape:g},{default:()=>[`+${y-u}`]})]})),a(p("div",D(D({},o),{},{class:v,style:o.style}),[S]))}return a(p("div",D(D({},o),{},{class:v,style:o.style}),[b]))}}}),Zd=tU;ni.Group=Zd;ni.install=function(e){return e.component(ni.name,ni),e.component(Zd.name,Zd),e};function xx(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,l;return r&&(l={position:"absolute",top:`${r}00%`,left:0}),p("p",{style:l,class:ie(`${t}-only-unit`,{current:o})},[n])}function nU(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const oU=oe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=ut({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},l=le();return be(t,()=>{clearTimeout(l.value),l.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),Rn(()=>{clearTimeout(l.value)}),()=>{let i,a={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))i=[xx(m(m({},e),{current:!0}))],a={transition:"none"};else{i=[];const c=s+10,u=[];for(let g=s;g<=c;g+=1)u.push(g);const d=u.findIndex(g=>g%10===o.prevValue);i=u.map((g,v)=>{const h=g%10;return xx(m(m({},e),{value:h,offset:v-d,current:v===d}))});const f=o.prevCountr()},[i])}}});var rU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;const i=m(m({},e),n),{prefixCls:a,count:s,title:c,show:u,component:d="sup",class:f,style:g}=i,v=rU(i,["prefixCls","count","title","show","component","class","style"]),h=m(m({},v),{style:g,"data-show":e.show,class:ie(r.value,f),title:c});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>p(oU,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=m(m({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=_t((l=o.default)===null||l===void 0?void 0:l.call(o));return y&&y.length?dt(y,{class:ie(`${r.value}-custom-component`)},!1):p(d,h,{default:()=>[b]})}}}),aU=new nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),sU=new nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cU=new nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),uU=new nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dU=new nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fU=new nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pU=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:l,badgeHeightSm:i,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,f=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,v=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${f}-color-${b}`]:{background:S,color:S}}});return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:fU,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:aU,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:sU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${f}`]:m(m(m(m({},Xe(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},PT=Ve("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:l,colorBorderBg:i}=e,a=Math.round(t*n),s=r,c="auto",u=a-2*s,d=e.colorBgContainer,f="normal",g=o,v=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=Fe(e,{badgeFontHeight:a,badgeShadowSize:s,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:g,badgeColor:v,badgeColorHover:h,badgeShadowColor:i,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[pU(x)]});var gU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:V.any,placement:{type:String,default:"end"}}),Qd=oe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:hU(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("ribbon",e),[i,a]=PT(r),s=P(()=>Ip(e.color,!1)),c=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var u,d;const{class:f,style:g}=n,v=gU(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),i(p("div",D({class:`${r.value}-wrapper ${a.value}`},v),[(u=o.default)===null||u===void 0?void 0:u.call(o),p("div",{class:[c.value,f,a.value],style:m(m({},h),g)},[p("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),p("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),vU=e=>!isNaN(parseFloat(e))&&isFinite(e),Jd=vU,mU=()=>({count:V.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:V.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),_s=oe({compatConfig:{MODE:3},name:"ABadge",Ribbon:Qd,inheritAttrs:!1,props:mU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("badge",e),[i,a]=PT(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),c=P(()=>s.value==="0"||s.value===0),u=P(()=>e.count===null||c.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&u.value),f=P(()=>e.dot&&!c.value),g=P(()=>f.value?"":s.value),v=P(()=>(g.value===null||g.value===void 0||g.value===""||c.value&&!e.showZero)&&!f.value),h=le(e.count),b=le(g.value),y=le(f.value);be([()=>e.count,g,f],()=>{v.value||(h.value=e.count,b.value=g.value,y.value=f.value)},{immediate:!0});const S=P(()=>Ip(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:I,title:T,color:_}=e,E=o.style,A=qt(n,e,"text"),R=r.value,z=h.value;let M=yt((O=n.default)===null||O===void 0?void 0:O.call(n));M=M.length?M:null;const B=!!(!v.value||n.count),N=(()=>{if(!I)return m({},E);const Z={marginTop:Jd(I[1])?`${I[1]}px`:I[1]};return l.value==="rtl"?Z.left=`${parseInt(I[0],10)}px`:Z.right=`${-parseInt(I[0],10)}px`,m(m({},Z),E)})(),F=T??(typeof z=="string"||typeof z=="number"?z:void 0),L=B||!A?null:p("span",{class:`${R}-status-text`},[A]),k=typeof z=="object"||z===void 0&&n.count?dt(z??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:N},!1):null,j=ie(R,{[`${R}-status`]:d.value,[`${R}-not-a-wrapper`]:!M,[`${R}-rtl`]:l.value==="rtl"},o.class,a.value);if(!M&&d.value){const Z=N.color;return i(p("span",D(D({},o),{},{class:j,style:N}),[p("span",{class:$.value,style:x.value},null),p("span",{style:{color:Z},class:`${R}-status-text`},[A])]))}const H=Po(M?`${R}-zoom`:"",{appear:!1});let Y=m(m({},N),e.numberStyle);return _&&!S.value&&(Y=Y||{},Y.background=_),i(p("span",D(D({},o),{},{class:j}),[M,p(cn,H,{default:()=>[$n(p(iU,{prefixCls:e.scrollNumberPrefixCls,show:B,class:C.value,count:b.value,title:F,style:Y,key:"scrollNumber"},{default:()=>[k]}),[[En,B]])]}),L]))}}});_s.install=function(e){return e.component(_s.name,_s),e.component(Qd.name,Qd),e};const Bi={adjustX:1,adjustY:1},Ni=[0,0],bU={topLeft:{points:["bl","tl"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topCenter:{points:["bc","tc"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Bi,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomCenter:{points:["tc","bc"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Bi,offset:[0,4],targetOffset:Ni}},yU=bU;var SU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(l.value=g)});const i=le();r({triggerRef:i});const a=g=>{e.visible===void 0&&(l.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(l.value=g),o("visibleChange",g)},c=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:a};return p(We,{key:jO},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),dt(v,h,!1)])},u=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return l.value&&v?dt(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,I=SU(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(wi,D(D({},I),{},{prefixCls:g,ref:i,popupClassName:ie(w,{[`${g}-show-arrow`]:v}),popupStyle:b,builtinPlacements:yU,action:y,showAction:h,hideAction:f.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:l.value,stretch:u.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:c,default:d})}}}),$U=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},CU=Ve("Wave",e=>[$U(e)]);function xU(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function nh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&xU(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wU(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return nh(t)?t:nh(n)?n:nh(o)?o:null}function oh(e){return Number.isNaN(e)?0:e}const OU=oe({props:{target:Re(),className:String},setup(e){const t=te(null),[n,o]=vt(null),[r,l]=vt([]),[i,a]=vt(0),[s,c]=vt(0),[u,d]=vt(0),[f,g]=vt(0),[v,h]=vt(!1);function b(){const{target:w}=e,I=getComputedStyle(w);o(wU(w));const T=I.position==="static",{borderLeftWidth:_,borderTopWidth:E}=I;a(T?w.offsetLeft:oh(-parseFloat(_))),c(T?w.offsetTop:oh(-parseFloat(E))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:R,borderBottomLeftRadius:z,borderBottomRightRadius:M}=I;l([A,R,M,z].map(B=>oh(parseFloat(B))))}let y,S,$;const x=()=>{clearTimeout($),Ye.cancel(S),y==null||y.disconnect()},C=()=>{var w;const I=(w=t.value)===null||w===void 0?void 0:w.parentElement;I&&(bl(null,I),I.parentElement&&I.parentElement.removeChild(I))};je(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=Ye(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Ze(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!v.value)return null;const w={left:`${i.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${f.value}px`,borderRadius:r.value.map(I=>`${I}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p(cn,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function PU(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),bl(p(OU,{target:e,className:t},null),n),()=>{bl(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function IU(e,t){const n=pn();let o;function r(){var l;const i=Hn(n);o==null||o(),!(!((l=t==null?void 0:t.value)===null||l===void 0)&&l.disabled||!i)&&(o=PU(i,e.value))}return Ze(()=>{o==null||o()}),r}const kb=oe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=pn(),{prefixCls:r,wave:l}=Te("wave",e),[,i]=CU(r),a=IU(P(()=>ie(r.value,i.value)),l);let s;const c=()=>{Hn(o).removeEventListener("click",s,!0)};return je(()=>{be(()=>e.disabled,()=>{c(),ot(()=>{const u=Hn(o);u==null||u.removeEventListener("click",s,!0),!(!u||u.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!op(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||a()},u.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Ze(()=>{c()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function ef(e){return e==="danger"?{danger:!0}:{type:e}}const TU=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:V.any,href:String,target:String,title:String,onClick:si(),onMousedown:si()}),TT=TU,wx=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Ox=e=>{ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Px=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},EU=oe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return p("span",{class:`${n}-loading-icon`},[p(co,null,null)]);const r=!!o;return p(cn,{name:`${n}-loading-icon-motion`,onBeforeEnter:wx,onEnter:Ox,onAfterEnter:Px,onBeforeLeave:Ox,onLeave:l=>{setTimeout(()=>{wx(l)})},onAfterLeave:Px},{default:()=>[r?p("span",{class:`${n}-loading-icon`},[p(co,null,null)]):null]})}}}),Ix=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MU=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ix(`${t}-primary`,r),Ix(`${t}-danger`,l)]}},_U=MU;function AU(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function RU(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function DU(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:m(m({},AU(e,t)),RU(e.componentCls,t))}}const BU=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":m({},Rr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Br=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),NU=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),FU=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),zv=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),tf=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:m(m({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Br(m({backgroundColor:"transparent"},l),m({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),zb=e=>({"&:disabled":m({},zv(e))}),ET=e=>m({},zb(e)),nf=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),MT=e=>m(m(m(m(m({},ET(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Br({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:m(m(m({color:e.colorError,borderColor:e.colorError},Br({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),zb(e))}),LU=e=>m(m(m(m(m({},ET(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Br({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:m(m(m({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Br({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zb(e))}),kU=e=>m(m({},MT(e)),{borderStyle:"dashed"}),zU=e=>m(m(m({color:e.colorLink},Br({color:e.colorLinkHover},{color:e.colorLinkActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},Br({color:e.colorErrorHover},{color:e.colorErrorActive})),nf(e))}),HU=e=>m(m(m({},Br({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},nf(e)),Br({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),jU=e=>m(m({},zv(e)),{[`&${e.componentCls}:hover`]:m({},zv(e))}),WU=e=>{const{componentCls:t}=e;return{[`${t}-default`]:MT(e),[`${t}-primary`]:LU(e),[`${t}-dashed`]:kU(e),[`${t}-link`]:zU(e),[`${t}-text`]:HU(e),[`${t}-disabled`]:jU(e)}},Hb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=Math.max(0,(r-l*i)/2-a),d=c-a,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:NU(e)},{[`${n}${n}-round${t}`]:FU(e)}]},VU=e=>Hb(e),KU=e=>{const t=Fe(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Hb(t,`${e.componentCls}-sm`)},GU=e=>{const t=Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Hb(t,`${e.componentCls}-lg`)},XU=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},UU=Ve("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Fe(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[BU(o),KU(o),VU(o),GU(o),XU(o),WU(o),_U(o),ja(e,{focus:!1}),DU(e)]}),YU=()=>({prefixCls:String,size:{type:String}}),_T=ub(),of=oe({compatConfig:{MODE:3},name:"AButtonGroup",props:YU(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("btn-group",e),[,,l]=Fr();_T.useProvide(ut({size:P(()=>e.size)}));const i=P(()=>{const{size:a}=e;let s="";switch(a){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:xt(!a,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[l.value]:!0}});return()=>{var a;return p("div",{class:i.value},[yt((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),Tx=/^[\u4e00-\u9fa5]{2}$/,Ex=Tx.test.bind(Tx);function gu(e){return e==="text"||e==="link"}const zt=oe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:qe(TT(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,autoInsertSpaceInButton:a,direction:s,size:c}=Te("btn",e),[u,d]=UU(i),f=_T.useInject(),g=qn(),v=P(()=>{var M;return(M=e.disabled)!==null&&M!==void 0?M:g.value}),h=te(null),b=te(void 0);let y=!1;const S=te(!1),$=te(!1),x=P(()=>a.value!==!1),{compactSize:C,compactItemClassnames:O}=Ol(i,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);be(w,M=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=M},w.value):S.value=M},{immediate:!0});const I=P(()=>{const{type:M,shape:B="default",ghost:N,block:F,danger:L}=e,k=i.value,j={large:"lg",small:"sm",middle:void 0},H=C.value||(f==null?void 0:f.size)||c.value,Y=H&&j[H]||"";return[O.value,{[d.value]:!0,[`${k}`]:!0,[`${k}-${B}`]:B!=="default"&&B,[`${k}-${M}`]:M,[`${k}-${Y}`]:Y,[`${k}-loading`]:S.value,[`${k}-background-ghost`]:N&&!gu(M),[`${k}-two-chinese-chars`]:$.value&&x.value,[`${k}-block`]:F,[`${k}-dangerous`]:!!L,[`${k}-rtl`]:s.value==="rtl"}]}),T=()=>{const M=h.value;if(!M||a.value===!1)return;const B=M.textContent;y&&Ex(B)?$.value||($.value=!0):$.value&&($.value=!1)},_=M=>{if(S.value||v.value){M.preventDefault();return}r("click",M)},E=M=>{r("mousedown",M)},A=(M,B)=>{const N=B?" ":"";if(M.type===Cl){let F=M.children.trim();return Ex(F)&&(F=F.split("").join(N)),p("span",null,[F])}return M};return ke(()=>{xt(!(e.ghost&&gu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(T),An(T),Ze(()=>{b.value&&clearTimeout(b.value)}),l({focus:()=>{var M;(M=h.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=h.value)===null||M===void 0||M.blur()}}),()=>{var M,B;const{icon:N=(M=n.icon)===null||M===void 0?void 0:M.call(n)}=e,F=yt((B=n.default)===null||B===void 0?void 0:B.call(n));y=F.length===1&&!N&&!gu(e.type);const{type:L,htmlType:k,href:j,title:H,target:Y}=e,Z=S.value?"loading":N,U=m(m({},o),{title:H,disabled:v.value,class:[I.value,o.class,{[`${i.value}-icon-only`]:F.length===0&&!!Z}],onClick:_,onMousedown:E});v.value||delete U.disabled;const ee=N&&!S.value?N:p(EU,{existIcon:!!N,prefixCls:i.value,loading:!!S.value},null),G=F.map(Q=>A(Q,y&&x.value));if(j!==void 0)return u(p("a",D(D({},U),{},{href:j,target:Y,ref:h}),[ee,G]));let J=p("button",D(D({},U),{},{ref:h,type:k}),[ee,G]);if(!gu(L)){const Q=function(){return J}();J=p(kb,{ref:"wave",disabled:!!S.value},{default:()=>[Q]})}return u(J)}}});zt.Group=of;zt.install=function(e){return e.component(zt.name,zt),e.component(of.name,of),e};const AT=()=>({arrow:Le([Boolean,Object]),trigger:{type:[Array,String]},menu:Re(),overlay:V.any,visible:Ce(),open:Ce(),disabled:Ce(),danger:Ce(),autofocus:Ce(),align:Re(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Re(),forceRender:Ce(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Ce(),destroyPopupOnHide:Ce(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),rh=TT(),qU=()=>m(m({},AT()),{type:rh.type,size:String,htmlType:rh.htmlType,href:String,disabled:Ce(),prefixCls:String,icon:V.any,title:String,loading:rh.loading,onClick:si()});var ZU={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"};const QU=ZU;function Mx(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},tY=eY,nY=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},oY=nY,rY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` - &-show-arrow${t}-placement-topLeft, - &-show-arrow${t}-placement-top, - &-show-arrow${t}-placement-topRight - `]:{paddingBottom:r},[` - &-show-arrow${t}-placement-bottomLeft, - &-show-arrow${t}-placement-bottom, - &-show-arrow${t}-placement-bottomRight - `]:{paddingTop:r},[`${t}-arrow`]:m({position:"absolute",zIndex:1,display:"block"},x0(i,e.borderRadiusXS,e.borderRadiusOuter,b,y)),[` - &-placement-top > ${t}-arrow, - &-placement-topLeft > ${t}-arrow, - &-placement-topRight > ${t}-arrow - `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[` - &-placement-bottom > ${t}-arrow, - &-placement-bottomLeft > ${t}-arrow, - &-placement-bottomRight > ${t}-arrow - `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Cp},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wp},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xp},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Op}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:m(m({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Rr(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:m(m({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Rr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down"),Ha(e,"zoom-big")]]},RT=Ve("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,f=(l-i*a)/2,{dropdownArrowOffset:g}=xT({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),v=Fe(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[rY(v),tY(v),oY(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var lY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",f),r("visibleChange",f),r("update:open",f),r("openChange",f)},{prefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),c=P(()=>`${i.value}-button`),[u,d]=RT(i);return()=>{var f,g;const v=m(m({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:O,align:w,open:I,visible:T,onVisibleChange:_,placement:E=a.value==="rtl"?"bottomLeft":"bottomRight",href:A,title:R,icon:z=((g=n.icon)===null||g===void 0?void 0:g.call(n))||p(Wb,null,null),mouseEnterDelay:M,mouseLeaveDelay:B,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L,onClick:k,"onUpdate:open":j}=v,H=lY(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Y={align:w,disabled:b,trigger:b?[]:O,placement:E,getPopupContainer:s==null?void 0:s.value,onOpenChange:l,mouseEnterDelay:M,mouseLeaveDelay:B,open:I??T,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L},Z=p(zt,{danger:y,type:h,disabled:b,loading:S,onClick:k,htmlType:$,href:A,title:R},{default:n.default}),U=p(zt,{danger:y,type:h,icon:z},null);return u(p(iY,D(D({},H),{},{class:ie(c.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:Z}):Z,p(rr,Y,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var aY={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"};const sY=aY;function _x(e){for(var t=1;tHe(DT,void 0),Kb=e=>{var t,n,o;const{prefixCls:r,mode:l,selectable:i,validator:a,onClick:s,expandIcon:c}=BT()||{};Ge(DT,{prefixCls:P(()=>{var u,d;return(d=(u=e.prefixCls)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:r==null?void 0:r.value}),mode:P(()=>{var u,d;return(d=(u=e.mode)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:l==null?void 0:l.value}),selectable:P(()=>{var u,d;return(d=(u=e.selectable)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),validator:(t=e.validator)!==null&&t!==void 0?t:a,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:c==null?void 0:c.value})},NT=oe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:qe(AT(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,rootPrefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),[c,u]=RT(l),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});Kb({prefixCls:P(()=>`${l.value}-menu`),expandIcon:P(()=>p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{It()}});const f=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};xt(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,I=typeof w<"u"&&Kt(w)?w:p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)]);return Kt(x)?dt(x,{mode:"vertical",selectable:O,expandIcon:()=>I}):x},g=P(()=>{const b=e.placement;if(!b)return a.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return xt(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),v=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=dt(O,m({class:ie((y=O==null?void 0:O.props)===null||y===void 0?void 0:y.class,{[`${l.value}-rtl`]:a.value==="rtl"},`${l.value}-trigger`)},x?{disabled:x}:{})),I=ie(C,u.value,{[`${l.value}-rtl`]:a.value==="rtl"}),T=x?[]:$;let _;T&&T.includes("contextmenu")&&(_=!0);const E=Bb({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),A=et(m(m(m({},e),o),{visible:v.value,builtinPlacements:E,overlayClassName:I,arrow:!!S,alignPoint:_,prefixCls:l.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:T,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return c(p(IT,A,{default:()=>[w],overlay:f}))}}});NT.Button=uc;const rr=NT;var uY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:V.any,dropdownProps:Re(),overlay:V.any,onClick:si()}),dc=oe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:dY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l}=Te("breadcrumb",e),i=(s,c)=>{const u=qt(n,e,"overlay");return u?p(rr,D(D({},e.dropdownProps),{},{overlay:u,placement:"bottom"}),{default:()=>[p("span",{class:`${c}-overlay-link`},[s,p(Ec,null,null)])]}):s},a=s=>{r("click",s)};return()=>{var s;const c=(s=qt(n,e,"separator"))!==null&&s!==void 0?s:"/",u=qt(n,e),{class:d,style:f}=o,g=uY(o,["class","style"]);let v;return e.href!==void 0?v=p("a",D({class:`${l.value}-link`,onClick:a},g),[u]):v=p("span",D({class:`${l.value}-link`,onClick:a},g),[u]),v=i(v,l.value),u!=null?p("li",{class:d,style:f},[v,c&&p("span",{class:`${l.value}-separator`},[c])]):null}}});function fY(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Ge(FT,e)},jr=()=>He(FT),kT=Symbol("ForceRenderKey"),pY=e=>{Ge(kT,e)},zT=()=>He(kT,!1),HT=Symbol("menuFirstLevelContextKey"),jT=e=>{Ge(HT,e)},gY=()=>He(HT,!0),rf=oe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=jr(),r=m({},o);return e.mode!==void 0&&(r.mode=ze(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=ze(e,"overflowDisabled")),LT(r),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),hY=LT,WT=Symbol("siderCollapsed"),VT=Symbol("siderHookProvider"),hu="$$__vc-menu-more__key",KT=Symbol("KeyPathContext"),Gb=()=>He(KT,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),vY=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Gb(),l=P(()=>[...o.value,e]),i=P(()=>[...r.value,t]);return Ge(KT,{parentEventKeys:l,parentKeys:i,parentInfo:n}),i},GT=Symbol("measure"),Ax=oe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Ge(GT,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Xb=()=>He(GT,!1),mY=vY;function XT(e){const{mode:t,rtl:n,inlineIndent:o}=jr();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let bY=0;const yY=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:V.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Re()}),lr=oe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:yY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=pn(),i=Xb(),a=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;xt(typeof l.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++bY}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=Gb(),{prefixCls:d,activeKeys:f,disabled:g,changeActiveKeys:v,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=jr(),O=gY(),w=te(!1),I=P(()=>[...u.value,a]);x(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Ze(()=>{C(s)}),be(f,()=>{w.value=!!f.value.find(j=>j===a)},{immediate:!0});const _=P(()=>g.value||e.disabled),E=P(()=>$.value.includes(a)),A=P(()=>{const j=`${d.value}-item`;return{[`${j}`]:!0,[`${j}-danger`]:e.danger,[`${j}-active`]:w.value,[`${j}-selected`]:E.value,[`${j}-disabled`]:_.value}}),R=j=>({key:a,eventKey:s,keyPath:I.value,eventKeyPath:[...c.value,s],domEvent:j,item:m(m({},e),r)}),z=j=>{if(_.value)return;const H=R(j);o("click",j),S(H)},M=j=>{_.value||(v(I.value),o("mouseenter",j))},B=j=>{_.value||(v([]),o("mouseleave",j))},N=j=>{if(o("keydown",j),j.which===Oe.ENTER){const H=R(j);o("click",j),S(H)}},F=j=>{v(I.value),o("focus",j)},L=(j,H)=>{const Y=p("span",{class:`${d.value}-title-content`},[H]);return(!j||Kt(H)&&H.type==="span")&&H&&b.value&&O&&typeof H=="string"?p("div",{class:`${d.value}-inline-collapsed-noicon`},[H.charAt(0)]):Y},k=XT(P(()=>I.value.length));return()=>{var j,H,Y,Z,U;if(i)return null;const ee=(j=e.title)!==null&&j!==void 0?j:(H=n.title)===null||H===void 0?void 0:H.call(n),G=yt((Y=n.default)===null||Y===void 0?void 0:Y.call(n)),J=G.length;let Q=ee;typeof ee>"u"?Q=O&&J?G:"":ee===!1&&(Q="");const K={title:Q};!y.value&&!b.value&&(K.title=null,K.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=E.value);const pe=(Z=e.icon)!==null&&Z!==void 0?Z:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return p(Yn,D(D({},K),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[p(sa.Item,D(D(D({component:"li"},r),{},{id:e.id,style:m(m({},r.style||{}),k.value),class:[A.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(pe?J+1:J)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},q),{},{onMouseenter:M,onMouseleave:B,onClick:z,onKeydown:N,onFocus:F,title:typeof ee=="string"?ee:void 0}),{default:()=>[dt(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${d.value}-item-icon`},!1),L(pe,G)]})]})}}}),cl={adjustX:1,adjustY:1},SY={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},$Y={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},CY={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rx=oe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=te(!1),{getPopupContainer:l,rtl:i,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:f,defaultMotions:g,rootClassName:v}=jr(),h=zT(),b=P(()=>i.value?m(m({},$Y),c.value):m(m({},SY),c.value)),y=P(()=>CY[e.mode]),S=te();be(()=>e.visible,C=>{Ye.cancel(S.value),S.value=Ye(()=>{r.value=C})},{immediate:!0}),Ze(()=>{Ye.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=f.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),I=typeof w=="function"?w():w;return I?Po(I.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:I,disabled:T}=e;return p(wi,{prefixCls:C,popupClassName:ie(`${C}-popup`,{[`${C}-rtl`]:i.value},O,v.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:l.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:I&&{offset:I},action:T?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),UT=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=jr();return p("ul",D(D({},o),{},{class:ie(l.value,`${l.value}-sub`,`${l.value}-${i.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};UT.displayName="SubMenuList";const YT=UT,xY=oe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:l,defaultMotions:i}=jr(),a=P(()=>l.value===o.value),s=le(!a.value),c=P(()=>a.value?e.open:!1);be(l,()=>{a.value&&(s.value=!1)},{flush:"post"});const u=P(()=>{var d,f;const g=r.value||((d=i.value)===null||d===void 0?void 0:d[o.value])||((f=i.value)===null||f===void 0?void 0:f.other),v=typeof g=="function"?g():g;return m(m({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:p(rf,{mode:o.value},{default:()=>[p(cn,u.value,{default:()=>[$n(p(YT,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[En,c.value]])]})]})}}});let Dx=0;const wY=()=>({icon:V.any,title:V.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Re()}),fi=oe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:wY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var l,i;jT(!1);const a=Xb(),s=pn(),c=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;xt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=fv(c)?c:`sub_menu_${++Dx}_$$_not_set_key`,d=(l=e.eventKey)!==null&&l!==void 0?l:fv(c)?`sub_menu_${++Dx}_$$_${c}`:u,{parentEventKeys:f,parentInfo:g,parentKeys:v}=Gb(),h=P(()=>[...v.value,u]),b=te([]),y={eventKey:d,key:u,parentEventKeys:f,childrenEventKeys:b,parentKeys:v};(i=g.childrenEventKeys)===null||i===void 0||i.value.push(d),Ze(()=>{var de;g.childrenEventKeys&&(g.childrenEventKeys.value=(de=g.childrenEventKeys)===null||de===void 0?void 0:de.value.filter(ge=>ge!=d))}),mY(d,u,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:I,overflowDisabled:T,onOpenChange:_,registerMenuInfo:E,unRegisterMenuInfo:A,selectedSubMenuKeys:R,expandIcon:z,theme:M}=jr(),B=c!=null,N=!a&&(zT()||!B);pY(N),(a&&B||!a&&!B||N)&&(E(d,y),Ze(()=>{A(d)}));const F=P(()=>`${S.value}-submenu`),L=P(()=>x.value||e.disabled),k=te(),j=te(),H=P(()=>I.value.includes(u)),Y=P(()=>!T.value&&H.value),Z=P(()=>R.value.includes(u)),U=te(!1);be($,()=>{U.value=!!$.value.find(de=>de===u)},{immediate:!0});const ee=de=>{L.value||(r("titleClick",de,u),O.value==="inline"&&_(u,!H.value))},G=de=>{L.value||(C(h.value),r("mouseenter",de))},J=de=>{L.value||(C([]),r("mouseleave",de))},Q=XT(P(()=>h.value.length)),K=de=>{O.value!=="inline"&&_(u,de)},q=()=>{C(h.value)},pe=d&&`${d}-popup`,W=P(()=>ie(S.value,`${S.value}-${e.theme||M.value}`,e.popupClassName)),X=(de,ge)=>{if(!ge)return w.value&&!v.value.length&&de&&typeof de=="string"?p("div",{class:`${S.value}-inline-collapsed-noicon`},[de.charAt(0)]):p("span",{class:`${S.value}-title-content`},[de]);const me=Kt(de)&&de.type==="span";return p(We,null,[dt(typeof ge=="function"?ge(e.originItemValue):ge,{class:`${S.value}-item-icon`},!1),me?de:p("span",{class:`${S.value}-title-content`},[de])])},ne=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ae=P(()=>O.value==="horizontal"?"vertical":O.value),se=P(()=>ne.value==="horizontal"?"vertical":ne.value),re=()=>{var de,ge;const me=F.value,fe=(de=e.icon)!==null&&de!==void 0?de:(ge=n.icon)===null||ge===void 0?void 0:ge.call(n,e),ye=e.expandIcon||n.expandIcon||z.value,Se=X(qt(n,e,"title"),fe);return p("div",{style:Q.value,class:`${me}-title`,tabindex:L.value?null:-1,ref:k,title:typeof Se=="string"?Se:null,"data-menu-id":u,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":pe,"aria-disabled":L.value,onClick:ee,onFocus:q},[Se,O.value!=="horizontal"&&ye?ye(m(m({},e),{isOpen:Y.value})):p("i",{class:`${me}-arrow`},null)])};return()=>{var de;if(a)return B?(de=n.default)===null||de===void 0?void 0:de.call(n):null;const ge=F.value;let me=()=>null;if(!T.value&&O.value!=="inline"){const fe=O.value==="horizontal"?[0,8]:[10,0];me=()=>p(Rx,{mode:ne.value,prefixCls:ge,visible:!e.internalPopupClose&&Y.value,popupClassName:W.value,popupOffset:e.popupOffset||fe,disabled:L.value,onVisibleChange:K},{default:()=>[re()],popup:()=>p(rf,{mode:se.value},{default:()=>[p(YT,{id:pe,ref:j},{default:n.default})]})})}else me=()=>p(Rx,null,{default:re});return p(rf,{mode:ae.value},{default:()=>[p(sa.Item,D(D({component:"li"},o),{},{role:"none",class:ie(ge,`${ge}-${O.value}`,o.class,{[`${ge}-open`]:Y.value,[`${ge}-active`]:U.value,[`${ge}-selected`]:Z.value,[`${ge}-disabled`]:L.value}),onMouseenter:G,onMouseleave:J,"data-submenu-id":u}),{default:()=>p(We,null,[me(),!T.value&&p(xY,{id:pe,open:Y.value,keyPath:h.value},{default:n.default})])})]})}}});function qT(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function lf(e,t){e.classList?e.classList.add(t):qT(e,t)||(e.className=`${e.className} ${t}`)}function af(e,t){if(e.classList)e.classList.remove(t);else if(qT(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const OY=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",lf(n,e)},onEnter:n=>{ot(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(af(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{lf(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(af(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},Rc=OY,PY=()=>({title:V.any,originItemValue:Re()}),fc=oe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:PY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=jr(),l=P(()=>`${r.value}-item-group`),i=Xb();return()=>{var a,s;return i?(a=n.default)===null||a===void 0?void 0:a.call(n):p("li",D(D({},o),{},{onClick:c=>c.stopPropagation(),class:l.value}),[p("div",{title:typeof e.title=="string"?e.title:void 0,class:`${l.value}-title`},[qt(n,e,"title")]),p("ul",{class:`${l.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),IY=()=>({prefixCls:String,dashed:Boolean}),pc=oe({compatConfig:{MODE:3},name:"AMenuDivider",props:IY(),setup(e){const{prefixCls:t}=jr(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>p("li",{class:n.value},null)}});var TY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const l=o,{label:i,children:a,key:s,type:c}=l,u=TY(l,["label","children","key","type"]),d=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:d,key:d,parentEventKeys:le(f),parentKeys:le(f),childrenEventKeys:le(g),isLeaf:!1};if(a||c==="group"){if(c==="group"){const b=Hv(a,t,n);return p(fc,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[b]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const h=Hv(a,t,{childrenEventKeys:g,parentKeys:[].concat(f,d)});return p(fi,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[h]})}return c==="divider"?p(pc,D({key:d},u),null):(v.isLeaf=!0,t.set(d,v),p(lr,D(D({key:d},u),{},{originItemValue:o}),{default:()=>[i]}))}return null}).filter(o=>o)}function EY(e){const t=te([]),n=te(!1),o=te(new Map);return be(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Hv(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const MY=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},_Y=MY,AY=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},RY=AY,Bx=e=>m({},Ar(e)),DY=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:I,colorDangerItemBgSelected:T,colorItemBgHover:_,menuSubMenuBg:E,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:R}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:m({},Bx(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:m({},Bx(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:m(m({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:R,"&::after":{borderBottomWidth:c,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},Nx=DY,Fx=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e,s=r+l+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:s}}},BY=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:v}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":m({[`&${t}-root`]:{boxShadow:"none"}},Fx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:m(m({},Fx(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:m(m({},Gt),{paddingInline:g})}}]},NY=BY,Lx=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:m({},yi()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:l*.6,height:l*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},FY=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:h,menuArrowOffset:b,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:m(m({},zo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:m(m(m(m(m(m(m({},Xe(e)),zo()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:m(m(m({borderRadius:g},Lx(e)),kx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),kx(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},LY=(e,t)=>Ve("Menu",(o,r)=>{let{overrideComponentToken:l}=r;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:i,colorPrimary:a,colorError:s,colorErrorHover:c,colorTextLightSolid:u}=o,{controlHeightLG:d,fontSize:f}=o,g=f/7*5,v=Fe(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),h=new gt(u).setAlpha(.65).toRgbString(),b=Fe(v,{colorItemText:h,colorItemTextHover:u,colorGroupTitle:h,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new gt(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:c,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},m({},l));return[FY(v),_Y(v),NY(v),Nx(v,"light"),Nx(b,"dark"),RY(v),Ac(v),sr(v,"slide-up"),sr(v,"slide-down"),Ha(v,"zoom-big")]},o=>{const{colorPrimary:r,colorError:l,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:c,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:u,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:i,colorDangerItemText:l,colorDangerItemTextHover:l,colorDangerItemTextSelected:l,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e),kY=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),zx=[],Vt=oe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:kY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:l,getPrefixCls:i}=Te("menu",e),a=BT(),s=P(()=>{var G;return i("menu",e.prefixCls||((G=a==null?void 0:a.prefixCls)===null||G===void 0?void 0:G.value))}),[c,u]=LY(s,P(()=>!a)),d=te(new Map),f=He(WT,le(void 0)),g=P(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=EY(e),h=te(!1);je(()=>{h.value=!0}),ke(()=>{xt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),xt(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=le([]),y=le([]),S=le({});be(d,()=>{const G={};for(const J of d.value.values())G[J.key]=J;S.value=G},{flush:"post"}),ke(()=>{if(e.activeKey!==void 0){let G=[];const J=e.activeKey?S.value[e.activeKey]:void 0;J&&e.activeKey!==void 0?G=Zg([].concat($t(J.parentKeys),e.activeKey)):G=[],Wi(b.value,G)||(b.value=G)}}),be(()=>e.selectedKeys,G=>{G&&(y.value=G.slice())},{immediate:!0,deep:!0});const $=le([]);be([S,y],()=>{let G=[];y.value.forEach(J=>{const Q=S.value[J];Q&&(G=G.concat($t(Q.parentKeys)))}),G=Zg(G),Wi($.value,G)||($.value=G)},{immediate:!0});const x=G=>{if(e.selectable){const{key:J}=G,Q=y.value.includes(J);let K;e.multiple?Q?K=y.value.filter(pe=>pe!==J):K=[...y.value,J]:K=[J];const q=m(m({},G),{selectedKeys:K});Wi(K,y.value)||(e.selectedKeys===void 0&&(y.value=K),o("update:selectedKeys",K),Q&&e.multiple?o("deselect",q):o("select",q))}_.value!=="inline"&&!e.multiple&&C.value.length&&R(zx)},C=le([]);be(()=>e.openKeys,function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;Wi(C.value,G)||(C.value=G.slice())},{immediate:!0,deep:!0});let O;const w=G=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=G),o("update:activeKey",G[G.length-1])})},I=P(()=>!!e.disabled),T=P(()=>l.value==="rtl"),_=le("vertical"),E=te(!1);ke(()=>{var G;(e.mode==="inline"||e.mode==="vertical")&&g.value?(_.value="vertical",E.value=g.value):(_.value=e.mode,E.value=!1),!((G=a==null?void 0:a.mode)===null||G===void 0)&&G.value&&(_.value=a.mode.value)});const A=P(()=>_.value==="inline"),R=G=>{C.value=G,o("update:openKeys",G),o("openChange",G)},z=le(C.value),M=te(!1);be(C,()=>{A.value&&(z.value=C.value)},{immediate:!0}),be(A,()=>{if(!M.value){M.value=!0;return}A.value?C.value=z.value:R(zx)},{immediate:!0});const B=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${_.value}`]:!0,[`${s.value}-inline-collapsed`]:E.value,[`${s.value}-rtl`]:T.value,[`${s.value}-${e.theme}`]:!0})),N=P(()=>i()),F=P(()=>({horizontal:{name:`${N.value}-slide-up`},inline:Rc(`${N.value}-motion-collapse`),other:{name:`${N.value}-zoom-big`}}));jT(!0);const L=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const J=[],Q=d.value;return G.forEach(K=>{const{key:q,childrenEventKeys:pe}=Q.get(K);J.push(q,...L($t(pe)))}),J},k=G=>{var J;o("click",G),x(G),(J=a==null?void 0:a.onClick)===null||J===void 0||J.call(a)},j=(G,J)=>{var Q;const K=((Q=S.value[G])===null||Q===void 0?void 0:Q.childrenEventKeys)||[];let q=C.value.filter(pe=>pe!==G);if(J)q.push(G);else if(_.value!=="inline"){const pe=L($t(K));q=Zg(q.filter(W=>!pe.includes(W)))}Wi(C,q)||R(q)},H=(G,J)=>{d.value.set(G,J),d.value=new Map(d.value)},Y=G=>{d.value.delete(G),d.value=new Map(d.value)},Z=le(0),U=P(()=>{var G;return e.expandIcon||n.expandIcon||!((G=a==null?void 0:a.expandIcon)===null||G===void 0)&&G.value?J=>{let Q=e.expandIcon||n.expandIcon;return Q=typeof Q=="function"?Q(J):Q,dt(Q,{class:`${s.value}-submenu-expand-icon`},!1)}:null});hY({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:I,rtl:T,mode:_,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:E,theme:P(()=>e.theme),siderCollapsed:f,defaultMotions:P(()=>h.value?F.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:te(void 0),onOpenChange:j,onItemClick:k,registerMenuInfo:H,unRegisterMenuInfo:Y,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:u});const ee=()=>{var G;return v.value||yt((G=n.default)===null||G===void 0?void 0:G.call(n))};return()=>{var G;const J=ee(),Q=Z.value>=J.length-1||_.value!=="horizontal"||e.disabledOverflow,K=pe=>_.value!=="horizontal"||e.disabledOverflow?pe:pe.map((W,X)=>p(rf,{key:W.key,overflowDisabled:X>Z.value},{default:()=>W})),q=((G=n.overflowedIndicator)===null||G===void 0?void 0:G.call(n))||p(Wb,null,null);return c(p(sa,D(D({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:lr,class:[B.value,r.class,u.value],role:"menu",id:e.id,data:K(J),renderRawItem:pe=>pe,renderRawRest:pe=>{const W=pe.length,X=W?J.slice(-W):null;return p(We,null,[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X}),p(Ax,null,{default:()=>[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X})]})])},maxCount:_.value!=="horizontal"||e.disabledOverflow?sa.INVALIDATE:sa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:pe=>{Z.value=pe}}),{default:()=>[p(Jm,{to:"body"},{default:()=>[p("div",{style:{display:"none"},"aria-hidden":!0},[p(Ax,null,{default:()=>[K(ee())]})])]})]}))}}});Vt.install=function(e){return e.component(Vt.name,Vt),e.component(lr.name,lr),e.component(fi.name,fi),e.component(pc.name,pc),e.component(fc.name,fc),e};Vt.Item=lr;Vt.Divider=pc;Vt.SubMenu=fi;Vt.ItemGroup=fc;const zY=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:m({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Rr(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` - > ${n} + span, - > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},HY=Ve("Breadcrumb",e=>{const t=Fe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[zY(t)]}),jY=()=>({prefixCls:String,routes:{type:Array},params:V.any,separator:V.any,itemRender:{type:Function}});function WY(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,l)=>t[l]||r)}function Hx(e){const{route:t,params:n,routes:o,paths:r}=e,l=o.indexOf(t)===o.length-1,i=WY(t,n);return l?p("span",null,[i]):p("a",{href:`#/${r.join("/")}`},[i])}const oi=oe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:jY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("breadcrumb",e),[i,a]=HY(r),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(g=>{d=d.replace(`:${g}`,f[g])}),d),c=(d,f,g)=>{const v=[...d],h=s(f||"",g);return h&&v.push(h),v},u=d=>{let{routes:f=[],params:g={},separator:v,itemRender:h=Hx}=d;const b=[];return f.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=p(Vt,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:f,paths:c($,O.path,g)})}))},null));const C={separator:v};return x&&(C.overlay=x),p(dc,D(D({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:f,paths:$})]})})};return()=>{var d;let f;const{routes:g,params:v={}}=e,h=yt(qt(n,e)),b=(d=qt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||Hx;g&&g.length>0?f=u({routes:g,params:v,separator:b,itemRender:y}):h.length&&(f=h.map(($,x)=>(It(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),sn($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[a.value]:!0};return i(p("nav",D(D({},o),{},{class:S}),[p("ol",null,[f])]))}}});var VY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),sf=oe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:KY(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("breadcrumb",e);return()=>{var l;const{separator:i,class:a}=o,s=VY(o,["separator","class"]),c=yt((l=n.default)===null||l===void 0?void 0:l.call(n));return p("span",D({class:[`${r.value}-separator`,a]},s),[c.length>0?c:"/"])}}});oi.Item=dc;oi.Separator=sf;oi.install=function(e){return e.component(oi.name,oi),e.component(dc.name,dc),e.component(sf.name,sf),e};var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZT={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n=1e3,o=6e4,r=36e5,l="millisecond",i="second",a="minute",s="hour",c="day",u="week",d="month",f="quarter",g="year",v="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,S={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(z){var M=["th","st","nd","rd"],B=z%100;return"["+z+(M[(B-20)%10]||M[B]||M[0])+"]"}},$=function(z,M,B){var N=String(z);return!N||N.length>=M?z:""+Array(M+1-N.length).join(B)+z},x={s:$,z:function(z){var M=-z.utcOffset(),B=Math.abs(M),N=Math.floor(B/60),F=B%60;return(M<=0?"+":"-")+$(N,2,"0")+":"+$(F,2,"0")},m:function z(M,B){if(M.date()1)return z(k[0])}else{var j=M.name;O[j]=M,F=j}return!N&&F&&(C=F),F||!N&&C},_=function(z,M){if(I(z))return z.clone();var B=typeof M=="object"?M:{};return B.date=z,B.args=arguments,new A(B)},E=x;E.l=T,E.i=I,E.w=function(z,M){return _(z,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=function(){function z(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[w]=!0}var M=z.prototype;return M.parse=function(B){this.$d=function(N){var F=N.date,L=N.utc;if(F===null)return new Date(NaN);if(E.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var k=F.match(b);if(k){var j=k[2]-1||0,H=(k[7]||"0").substring(0,3);return L?new Date(Date.UTC(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)):new Date(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)}}return new Date(F)}(B),this.init()},M.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(B,N){var F=_(B);return this.startOf(N)<=F&&F<=this.endOf(N)},M.isAfter=function(B,N){return _(B)25){var u=i(this).startOf(o).add(1,o).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var f=i(this).startOf(o).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(e6);var ZY=e6.exports;const QY=Il(ZY);var t6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),l=this.week(),i=this.year();return l===1&&r===11?i+1:r===0&&l>=52?i-1:i}}})})(t6);var JY=t6.exports;const eq=Il(JY);var n6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n="month",o="quarter";return function(r,l){var i=l.prototype;i.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var a=i.add;i.add=function(c,u){return c=Number(c),this.$utils().p(u)===o?this.add(3*c,n):a.bind(this)(c,u)};var s=i.startOf;i.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;if(d.p(c)===o){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(c,u)}}})})(n6);var tq=n6.exports;const nq=Il(tq);var o6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){var r=o.prototype,l=r.format;r.format=function(i){var a=this,s=this.$locale();if(!this.isValid())return l.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}});return l.bind(this)(u)}}})})(o6);var oq=o6.exports;const rq=Il(oq);var r6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,l=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(y){this[b]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),$=60*S[1]+(+S[2]||0);return $===0?0:S[0]==="+"?-$:$}(b)}],f=function(b){var y=s[b];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(b,y){var S,$=s.meridiem;if($){for(var x=1;x<=24;x+=1)if(b.indexOf($(x,0,y))>-1){S=x>12;break}}else S=b===(y?"pm":"PM");return S},v={A:[a,function(b){this.afternoon=g(b,!1)}],a:[a,function(b){this.afternoon=g(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[l,u("day")],Do:[a,function(b){var y=s.ordinal,S=b.match(/\d+/);if(this.day=S[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===b&&(this.day=$)}],w:[i,u("week")],ww:[l,u("week")],M:[i,u("month")],MM:[l,u("month")],MMM:[a,function(b){var y=f("months"),S=(f("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[a,function(b){var y=f("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function h(b){var y,S;y=b,S=s&&s.formats;for(var $=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,E,A){var R=A&&A.toUpperCase();return E||S[A]||n[A]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,M,B){return M||B.slice(1)})})).match(o),x=$.length,C=0;C-1)return new Date((F==="X"?1e3:1)*N);var j=h(F)(N),H=j.year,Y=j.month,Z=j.day,U=j.hours,ee=j.minutes,G=j.seconds,J=j.milliseconds,Q=j.zone,K=j.week,q=new Date,pe=Z||(H||Y?1:q.getDate()),W=H||q.getFullYear(),X=0;H&&!Y||(X=Y>0?Y-1:q.getMonth());var ne,ae=U||0,se=ee||0,re=G||0,de=J||0;return Q?new Date(Date.UTC(W,X,pe,ae,se,re,de+60*Q.offset*1e3)):L?new Date(Date.UTC(W,X,pe,ae,se,re,de)):(ne=new Date(W,X,pe,ae,se,re,de),K&&(ne=k(ne).week(K).toDate()),ne)}catch{return new Date("")}}(O,T,w,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),A&&O!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var z=T.length,M=1;M<=z;M+=1){I[1]=T[M-1];var B=S.apply(this,I);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}M===z&&(this.$d=new Date(""))}else x.call(this,C)}}})})(r6);var lq=r6.exports;const iq=Il(lq);ln.extend(iq);ln.extend(rq);ln.extend(UY);ln.extend(qY);ln.extend(QY);ln.extend(eq);ln.extend(nq);ln.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(l){const i=(l||"").replace("Wo","wo");return o.bind(this)(i)}});const aq={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Bl=e=>aq[e]||e.split("_")[0],jx=()=>{ID(!1,"Not match any format. Please help to fire a issue about this.")},sq=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function Wx(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let l=0;lt)return i;r+=n.length}}const Vx=(e,t)=>{if(!e)return null;if(ln.isDayjs(e))return e;const n=t.matchAll(sq);let o=ln(e,t);if(n===null)return o;for(const r of n){const l=r[0],i=r.index;if(l==="Q"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(l.toLowerCase()==="wo"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.week(parseInt(s))}l.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(i,i+l.length)))),l.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(i,i+l.length+1))))}return o},cq={getNow:()=>ln(),getFixedDate:e=>ln(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>ln().locale(Bl(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Bl(e)).weekday(0),getWeek:(e,t)=>t.locale(Bl(e)).week(),getShortWeekDays:e=>ln().locale(Bl(e)).localeData().weekdaysMin(),getShortMonths:e=>ln().locale(Bl(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Bl(e)).format(n),parse:(e,t,n)=>{const o=Bl(e);for(let r=0;rArray.isArray(e)?e.map(n=>Vx(n,t)):Vx(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>ln.isDayjs(n)?n.format(t):n):ln.isDayjs(e)?e.format(t):e},Ub=cq;function Xt(e){const t=D_();return m(m({},e),t)}const l6=Symbol("PanelContextProps"),Yb=e=>{Ge(l6,e)},cr=()=>He(l6,{}),vu={visibility:"hidden"};function Tl(e,t){let{slots:n}=t;var o;const r=Xt(e),{prefixCls:l,prevIcon:i="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:f,onNext:g}=r,{hideNextBtn:v,hidePrevBtn:h}=cr();return p("div",{class:l},[u&&p("button",{type:"button",onClick:u,tabindex:-1,class:`${l}-super-prev-btn`,style:h.value?vu:{}},[s]),f&&p("button",{type:"button",onClick:f,tabindex:-1,class:`${l}-prev-btn`,style:h.value?vu:{}},[i]),p("div",{class:`${l}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&p("button",{type:"button",onClick:g,tabindex:-1,class:`${l}-next-btn`,style:v.value?vu:{}},[a]),d&&p("button",{type:"button",onClick:d,tabindex:-1,class:`${l}-super-next-btn`,style:v.value?vu:{}},[c])])}Tl.displayName="Header";Tl.inheritAttrs=!1;function qb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:l,onNextDecades:i}=t,{hideHeader:a}=cr();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/Pr)*Pr,d=u+Pr-1;return p(Tl,D(D({},t),{},{prefixCls:s,onSuperPrev:l,onSuperNext:i}),{default:()=>[u,Lt("-"),d]})}qb.displayName="DecadeHeader";qb.inheritAttrs=!1;function i6(e,t,n,o,r){let l=e.setHour(t,n);return l=e.setMinute(l,o),l=e.setSecond(l,r),l}function Vu(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function uq(e,t,n,o,r,l){const i=Math.floor(e/o)*o;if(i{z.stopPropagation(),A||o(E)},onMouseenter:()=>{!A&&y&&y(E)},onMouseleave:()=>{!A&&S&&S(E)}},[f?f(E):p("div",{class:`${x}-inner`},[d(E)])]))}C.push(p("tr",{key:O,class:s&&s(I)},[w]))}return p("div",{class:`${t}-body`},[p("table",{class:`${t}-content`},[b&&p("thead",null,[p("tr",null,[b])]),p("tbody",null,[C])])])}Oi.displayName="PanelBody";Oi.inheritAttrs=!1;const jv=3,Kx=4;function Zb(e){const t=Xt(e),n=Ro-1,{prefixCls:o,viewDate:r,generateConfig:l}=t,i=`${o}-cell`,a=l.getYear(r),s=Math.floor(a/Ro)*Ro,c=Math.floor(a/Pr)*Pr,u=c+Pr-1,d=l.setYear(r,c-Math.ceil((jv*Kx*Ro-Pr)/2)),f=g=>{const v=l.getYear(g),h=v+n;return{[`${i}-in-view`]:c<=v&&h<=u,[`${i}-selected`]:v===s}};return p(Oi,D(D({},t),{},{rowNum:Kx,colNum:jv,baseDate:d,getCellText:g=>{const v=l.getYear(g);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(g,v)=>l.addYear(g,v*Ro)}),null)}Zb.displayName="DecadeBody";Zb.inheritAttrs=!1;const mu=new Map;function fq(e,t){let n;function o(){op(e)?t():n=Ye(()=>{o()})}return o(),()=>{Ye.cancel(n)}}function Wv(e,t,n){if(mu.get(e)&&Ye.cancel(mu.get(e)),n<=0){mu.set(e,Ye(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;mu.set(e,Ye(()=>{e.scrollTop+=r,e.scrollTop!==t&&Wv(e,t,n-10)}))}function Ka(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:l,onEnter:i}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Oe.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Oe.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Oe.UP:if(r)return r(-1),!0;break;case Oe.DOWN:if(r)return r(1),!0;break;case Oe.PAGE_UP:if(l)return l(-1),!0;break;case Oe.PAGE_DOWN:if(l)return l(1),!0;break;case Oe.ENTER:if(i)return i(),!0;break}return!1}function a6(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function s6(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let os=null;const bu=new Set;function pq(e){return!os&&typeof window<"u"&&window.addEventListener&&(os=t=>{[...bu].forEach(n=>{n(t)})},window.addEventListener("mousedown",os)),bu.add(e),()=>{bu.delete(e),bu.size===0&&(window.removeEventListener("mousedown",os),os=null)}}function gq(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const hq=e=>e==="month"||e==="date"?"year":e,vq=e=>e==="date"?"month":e,mq=e=>e==="month"||e==="date"?"quarter":e,bq=e=>e==="date"?"week":e,yq={year:hq,month:vq,quarter:mq,week:bq,time:null,date:null};function c6(e,t){return e.some(n=>n&&n.contains(t))}const Ro=10,Pr=Ro*10;function Qb(e){const t=Xt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:l,operationRef:i,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;i.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{a(r.addYear(l,g*Ro),"key")},onCtrlLeftRight:g=>{a(r.addYear(l,g*Pr),"key")},onUpDown:g=>{a(r.addYear(l,g*Ro*jv),"key")},onEnter:()=>{s("year",l)}})};const u=f=>{const g=r.addYear(l,f*Pr);o(g),s(null,g)},d=f=>{a(f,"mouse"),s("year",f)};return p("div",{class:c},[p(qb,D(D({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),p(Zb,D(D({},t),{},{prefixCls:n,onSelect:d}),null)])}Qb.displayName="DecadePanel";Qb.inheritAttrs=!1;const Ku=7;function Pi(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function Sq(e,t,n){const o=Pi(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),l=Math.floor(e.getYear(n)/10);return r===l}function Tp(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function Vv(e,t){return Math.floor(e.getMonth(t)/3)+1}function u6(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&Vv(e,t)===Vv(e,n)}function Jb(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ir(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function $q(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function d6(e,t,n,o){const r=Pi(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function ua(e,t,n){return Ir(e,t,n)&&$q(e,t,n)}function yu(e,t,n,o){return!t||!n||!o?!1:!Ir(e,t,o)&&!Ir(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function Cq(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),l=t.getWeekDay(r);let i=t.addDate(r,o-l);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function As(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function yn(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function f6(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function Kv(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const l=(i,a,s)=>{let c=a;for(;c<=s;){let u;switch(i){case"date":{if(u=r.setDate(t,c),!o(u))return!1;break}case"month":{if(u=r.setMonth(t,c),!Kv({cellDate:u,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(u=r.setYear(t,c),!Kv({cellDate:u,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}c+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const a=r.getDate(r.getEndDate(t));return l("date",1,a)}case"quarter":{const i=Math.floor(r.getMonth(t)/3)*3,a=i+2;return l("month",i,a)}case"year":return l("month",0,11);case"decade":{const i=r.getYear(t),a=Math.floor(i/Ro)*Ro,s=a+Ro-1;return l("year",a,s)}}}function ey(e){const t=Xt(e),{hideHeader:n}=cr();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:l,value:i,format:a}=t,s=`${o}-header`;return p(Tl,{prefixCls:s},{default:()=>[i?yn(i,{locale:l,format:a,generateConfig:r}):" "]})}ey.displayName="TimeHeader";ey.inheritAttrs=!1;const Su=oe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=cr(),n=te(null),o=le(new Map),r=le();return be(()=>e.value,()=>{const l=o.value.get(e.value);l&&t.value!==!1&&Wv(n.value,l.offsetTop,120)}),Ze(()=>{var l;(l=r.value)===null||l===void 0||l.call(r)}),be(t,()=>{var l;(l=r.value)===null||l===void 0||l.call(r),ot(()=>{if(t.value){const i=o.value.get(e.value);i&&(r.value=fq(i,()=>{Wv(n.value,i.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:l,units:i,onSelect:a,value:s,active:c,hideDisabledOptions:u}=e,d=`${l}-cell`;return p("ul",{class:ie(`${l}-column`,{[`${l}-column-active`]:c}),ref:n,style:{position:"relative"}},[i.map(f=>u&&f.disabled?null:p("li",{key:f.value,ref:g=>{o.value.set(f.value,g)},class:ie(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||a(f.value)}},[p("div",{class:`${d}-inner`},[f.label])]))])}}});function p6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function mt(e,t){return e?e[t]:null}function bo(e,t,n){const o=[mt(e,0),mt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function lh(e,t,n,o){const r=[];for(let l=e;l<=t;l+=n)r.push({label:p6(l,2),value:l,disabled:(o||[]).includes(l)});return r}const wq=oe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),l=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),i=le(e.generateConfig.getNow()),a=le(),s=le(),c=le();Lf(()=>{i.value=e.generateConfig.getNow()}),ke(()=>{if(e.disabledTime){const b=e.disabledTime(i);[a.value,s.value,c.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const u=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=i6(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return lh(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,a.value&&a.value())}),f=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":p6(y,2);return m(m({},b),{label:S,value:y})}):d.value),v=P(()=>{var b;return lh(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return lh(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,c.value&&c.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:I}=e,T=[],_=`${b}-content`,E=`${b}-time-panel`;y.value={onUpDown:z=>{const M=T[S];if(M){const B=M.units.findIndex(F=>F.value===M.value),N=M.units.length;for(let F=1;F{I(u(n.value,z,r.value,l.value),"mouse")}),A(x,p(Su,{key:"minute"},null),r.value,v.value,z=>{I(u(n.value,o.value,z,l.value),"mouse")}),A(C,p(Su,{key:"second"},null),l.value,h.value,z=>{I(u(n.value,o.value,r.value,z),"mouse")});let R=-1;return typeof n.value=="boolean"&&(R=n.value?1:0),A(O===!0,p(Su,{key:"12hours"},null),R,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],z=>{I(u(!!z,o.value,r.value,l.value),"mouse")}),p("div",{class:_},[T.map(z=>{let{node:M}=z;return M})])}}}),Oq=wq,Pq=e=>e.filter(t=>t!==!1).length;function Ep(e){const t=Xt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:l,operationRef:i,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:f}=t,g=`${r}-time-panel`,v=le(),h=le(-1),b=Pq([a,s,c,u]);return i.value={onKeydown:y=>Ka(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:v.value&&v.value.onUpDown(S)},onEnter:()=>{d(f||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ey,D(D({},t),{},{format:o,prefixCls:r}),null),p(Oq,D(D({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:v}),null)])}Ep.displayName="TimePanel";Ep.inheritAttrs=!1;function Mp(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:l,isSameCell:i,offsetCell:a,today:s,value:c}=e;function u(d){const f=a(d,-1),g=a(d,1),v=mt(o,0),h=mt(o,1),b=mt(r,0),y=mt(r,1),S=yu(n,b,y,d);function $(T){return i(v,T)}function x(T){return i(h,T)}const C=i(b,d),O=i(y,d),w=(S||O)&&(!l(f)||x(f)),I=(S||C)&&(!l(g)||$(g));return{[`${t}-in-view`]:l(d),[`${t}-in-range`]:yu(n,v,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!v,[`${t}-range-start-near-hover`]:$(d)&&(i(f,b)||yu(n,b,y,f)),[`${t}-range-end-near-hover`]:x(d)&&(i(g,y)||yu(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:I,[`${t}-range-hover-edge-start-near-range`]:w&&i(f,h),[`${t}-range-hover-edge-end-near-range`]:I&&i(g,v),[`${t}-today`]:i(s,d),[`${t}-selected`]:i(c,d)}}return u}const v6=Symbol("RangeContextProps"),Iq=e=>{Ge(v6,e)},Dc=()=>He(v6,{rangedValue:le(),hoverRangedValue:le(),inRange:le(),panelPosition:le()}),Tq=oe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:le(e.value.rangedValue),hoverRangedValue:le(e.value.hoverRangedValue),inRange:le(e.value.inRange),panelPosition:le(e.value.panelPosition)};return Iq(o),be(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function _p(e){const t=Xt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:l,rowCount:i,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=Dc(),f=Cq(l.locale,o,a),g=`${n}-cell`,v=o.locale.getWeekFirstDay(l.locale),h=o.getNow(),b=[],y=l.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(l.locale):[]);r&&b.push(p("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xIr(o,x,C),isInView:x=>Jb(o,x,a),offsetCell:(x,C)=>o.addDate(x,C)}),$=c?x=>c({current:x,today:h}):void 0;return p(Oi,D(D({},t),{},{rowNum:i,colNum:Ku,baseDate:f,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>yn(x,{locale:l,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}_p.displayName="DateBody";_p.inheritAttrs=!1;_p.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function ty(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextMonth:i,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:f}=cr();if(f.value)return null;const g=`${n}-header`,v=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(l),b=p("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})]),y=p("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?yn(l,{locale:r,format:r.monthFormat,generateConfig:o}):v[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return p(Tl,D(D({},t),{},{prefixCls:g,onSuperPrev:c,onPrev:a,onNext:i,onSuperNext:s}),{default:()=>[S]})}ty.displayName="DateHeader";ty.inheritAttrs=!1;const Eq=6;function Bc(e){const t=Xt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:l,operationRef:i,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:f}=t,g=`${n}-${o}-panel`;i.value={onKeydown:b=>Ka(b,m({onLeftRight:y=>{f(a.addDate(s||c,y),"key")},onCtrlLeftRight:y=>{f(a.addYear(s||c,y),"key")},onUpDown:y=>{f(a.addDate(s||c,y*Ku),"key")},onPageUpDown:y=>{f(a.addMonth(s||c,y),"key")}},r))};const v=b=>{const y=a.addYear(c,b);u(y),d(null,y)},h=b=>{const y=a.addMonth(c,b);u(y),d(null,y)};return p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ty,D(D({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),p(_p,D(D({},t),{},{onSelect:b=>f(b,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:Eq}),null)])}Bc.displayName="DatePanel";Bc.inheritAttrs=!1;const Gx=xq("date","time");function ny(e){const t=Xt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:l,defaultValue:i,disabledTime:a,showTime:s,onSelect:c}=t,u=`${n}-datetime-panel`,d=le(null),f=le({}),g=le({}),v=typeof s=="object"?m({},s):{};function h($){const x=Gx.indexOf(d.value)+$;return Gx[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===Oe.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?f:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!l&&v.defaultValue?(C=r.setHour(C,r.getHour(v.defaultValue)),C=r.setMinute(C,r.getMinute(v.defaultValue)),C=r.setSecond(C,r.getSecond(v.defaultValue))):x==="time"&&!l&&i&&(C=r.setYear(C,r.getYear(i)),C=r.setMonth(C,r.getMonth(i)),C=r.setDate(C,r.getDate(i))),c&&c(C,"mouse")},S=a?a(l||null):{};return p("div",{class:ie(u,{[`${u}-active`]:d.value})},[p(Bc,D(D({},t),{},{operationRef:f,active:d.value==="date",onSelect:$=>{y(Vu(r,$,!l&&typeof s=="object"?s.defaultValue:null),"date")}}),null),p(Ep,D(D(D(D({},t),{},{format:void 0},v),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}ny.displayName="DatetimePanel";ny.inheritAttrs=!1;function oy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,value:l}=t,i=`${n}-cell`,a=u=>p("td",{key:"week",class:ie(i,`${i}-week`)},[o.locale.getWeek(r.locale,u)]),s=`${n}-week-panel-row`,c=u=>ie(s,{[`${s}-selected`]:d6(o,r.locale,l,u)});return p(Bc,D(D({},t),{},{panelName:"week",prefixColumn:a,rowClassName:c,keyboardConfig:{onLeftRight:null}}),null)}oy.displayName="WeekPanel";oy.inheritAttrs=!1;function ry(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ry.displayName="MonthHeader";ry.inheritAttrs=!1;const m6=3,Mq=4;function ly(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=Dc(),u=`${n}-cell`,d=Mp({cellPrefixCls:u,value:r,generateConfig:i,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(h,b)=>Jb(i,h,b),isInView:()=>!0,offsetCell:(h,b)=>i.addMonth(h,b)}),f=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),g=i.setMonth(l,0),v=a?h=>a({current:h,locale:o}):void 0;return p(Oi,D(D({},t),{},{rowNum:Mq,colNum:m6,baseDate:g,getCellNode:v,getCellText:h=>o.monthFormat?yn(h,{locale:o,format:o.monthFormat,generateConfig:i}):f[i.getMonth(h)],getCellClassName:d,getCellDate:i.addMonth,titleCell:h=>yn(h,{locale:o,format:"YYYY-MM",generateConfig:i})}),null)}ly.displayName="MonthBody";ly.inheritAttrs=!1;function iy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addMonth(i||a,g*m6),"key")},onEnter:()=>{s("date",i||a)}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ry,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(ly,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse"),s("date",f)}}),null)])}iy.displayName="MonthPanel";iy.inheritAttrs=!1;function ay(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ay.displayName="QuarterHeader";ay.inheritAttrs=!1;const _q=4,Aq=1;function sy(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=Mp({cellPrefixCls:c,value:r,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(f,g)=>u6(i,f,g),isInView:()=>!0,offsetCell:(f,g)=>i.addMonth(f,g*3)}),d=i.setDate(i.setMonth(l,0),1);return p(Oi,D(D({},t),{},{rowNum:Aq,colNum:_q,baseDate:d,getCellText:f=>yn(f,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:u,getCellDate:(f,g)=>i.addMonth(f,g*3),titleCell:f=>yn(f,{locale:o,format:"YYYY-[Q]Q",generateConfig:i})}),null)}sy.displayName="QuarterBody";sy.inheritAttrs=!1;function cy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g*3),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addYear(i||a,g),"key")}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ay,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(sy,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse")}}),null)])}cy.displayName="QuarterPanel";cy.inheritAttrs=!1;function uy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:l,onNextDecade:i,onDecadeClick:a}=t,{hideHeader:s}=cr();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1;return p(Tl,D(D({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Lt("-"),f])]})}uy.displayName="YearHeader";uy.inheritAttrs=!1;const Gv=3,Xx=4;function dy(e){const t=Xt(e),{prefixCls:n,value:o,viewDate:r,locale:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=i.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1,g=i.setYear(r,d-Math.ceil((Gv*Xx-ul)/2)),v=b=>{const y=i.getYear(b);return d<=y&&y<=f},h=Mp({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(b,y)=>Tp(i,b,y),isInView:v,offsetCell:(b,y)=>i.addYear(b,y)});return p(Oi,D(D({},t),{},{rowNum:Xx,colNum:Gv,baseDate:g,getCellText:i.getYear,getCellClassName:h,getCellDate:i.addYear,titleCell:b=>yn(b,{locale:l,format:"YYYY",generateConfig:i})}),null)}dy.displayName="YearBody";dy.inheritAttrs=!1;const ul=10;function fy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>Ka(g,{onLeftRight:v=>{c(l.addYear(i||a,v),"key")},onCtrlLeftRight:v=>{c(l.addYear(i||a,v*ul),"key")},onUpDown:v=>{c(l.addYear(i||a,v*Gv),"key")},onEnter:()=>{u(s==="date"?"date":"month",i||a)}})};const f=g=>{const v=l.addYear(a,g*10);r(v),u(null,v)};return p("div",{class:d},[p(uy,D(D({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{u("decade",a)}}),null),p(dy,D(D({},t),{},{prefixCls:n,onSelect:g=>{u(s==="date"?"date":"month",g),c(g,"mouse")}}),null)])}fy.displayName="YearPanel";fy.inheritAttrs=!1;function b6(e,t,n){return n?p("div",{class:`${e}-footer-extra`},[n(t)]):null}function y6(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:l,okDisabled:i,showNow:a,locale:s}=e,c,u;if(o){const d=n.button||"button";r&&a!==!1&&(c=p("li",{class:`${t}-now`},[p("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),u=o&&p("li",{class:`${t}-ok`},[p(d,{disabled:i,onClick:f=>{f.stopPropagation(),l&&l()}},{default:()=>[s.ok]})])}return!c&&!u?null:p("ul",{class:`${t}-ranges`},[c,u])}function Rq(){return oe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),l=P(()=>60%e.minuteStep===0),i=P(()=>60%e.secondStep===0),a=cr(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:f,panelPosition:g,rangedValue:v,hoverRangedValue:h}=Dc(),b=le({}),[y,S]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:N=>!N&&(d!=null&&d.value)&&e.picker==="time"?d.value:N}),[$,x]=Pt(null,{value:ze(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:N=>{const{generateConfig:F,showTime:L,defaultValue:k}=e,j=F.getNow();return N?!y.value&&e.showTime?typeof L=="object"?Vu(F,Array.isArray(N)?N[0]:N,L.defaultValue||j):k?Vu(F,Array.isArray(N)?N[0]:N,k):Vu(F,Array.isArray(N)?N[0]:N,j):N:j}}),C=N=>{x(N),e.onPickerValueChange&&e.onPickerValueChange(N)},O=N=>{const F=yq[e.picker];return F?F(N):N},[w,I]=Pt(()=>e.picker==="time"?"time":O("date"),{value:ze(e,"mode")});be(()=>e.picker,()=>{I(e.picker)});const T=le(w.value),_=N=>{T.value=N},E=(N,F)=>{const{onPanelChange:L,generateConfig:k}=e,j=O(N||w.value);_(w.value),I(j),L&&(w.value!==j||ua(k,$.value,$.value))&&L(F,j)},A=function(N,F){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:k,generateConfig:j,onSelect:H,onChange:Y,disabledDate:Z}=e;(w.value===k||L)&&(S(N),H&&H(N),c&&c(N,F),Y&&!ua(j,N,y.value)&&!(Z!=null&&Z(N))&&Y(N))},R=N=>b.value&&b.value.onKeydown?([Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN,Oe.PAGE_UP,Oe.PAGE_DOWN,Oe.ENTER].includes(N.which)&&N.preventDefault(),b.value.onKeydown(N)):!1,z=N=>{b.value&&b.value.onBlur&&b.value.onBlur(N)},M=()=>{const{generateConfig:N,hourStep:F,minuteStep:L,secondStep:k}=e,j=N.getNow(),H=uq(N.getHour(j),N.getMinute(j),N.getSecond(j),r.value?F:1,l.value?L:1,i.value?k:1),Y=i6(N,j,H[0],H[1],H[2]);A(Y,"submit")},B=P(()=>{const{prefixCls:N,direction:F}=e;return ie(`${N}-panel`,{[`${N}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${N}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${N}-panel-rtl`]:F==="rtl"})});return Yb(m(m({},a),{mode:w,hideHeader:P(()=>{var N;return e.hideHeader!==void 0?e.hideHeader:(N=a.hideHeader)===null||N===void 0?void 0:N.value}),hidePrevBtn:P(()=>f.value&&g.value==="right"),hideNextBtn:P(()=>f.value&&g.value==="left")})),be(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:N="ant-picker",locale:F,generateConfig:L,disabledDate:k,picker:j="date",tabindex:H=0,showNow:Y,showTime:Z,showToday:U,renderExtraFooter:ee,onMousedown:G,onOk:J,components:Q}=e;s&&g.value!=="right"&&(s.value={onKeydown:R,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let K;const q=m(m(m({},n),e),{operationRef:b,prefixCls:N,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:T.value,onPanelChange:E,disabledDate:k});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":K=p(Qb,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"year":K=p(fy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"month":K=p(iy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"quarter":K=p(cy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"week":K=p(oy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"time":delete q.showTime,K=p(Ep,D(D(D({},q),typeof Z=="object"?Z:null),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;default:Z?K=p(ny,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null):K=p(Bc,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null)}let pe,W;u!=null&&u.value||(pe=b6(N,w.value,ee),W=y6({prefixCls:N,components:Q,needConfirmButton:o.value,okDisabled:!y.value||k&&k(y.value),locale:F,showNow:Y,onNow:o.value&&M,onOk:()=>{y.value&&(A(y.value,"submit",!0),J&&J(y.value))}}));let X;if(U&&w.value==="date"&&j==="date"&&!Z){const ne=L.getNow(),ae=`${N}-today-btn`,se=k&&k(ne);X=p("a",{class:ie(ae,se&&`${ae}-disabled`),"aria-disabled":se,onClick:()=>{se||A(ne,"mouse",!0)}},[F.today])}return p("div",{tabindex:H,class:ie(B.value,n.class),style:n.style,onKeydown:R,onBlur:z,onMousedown:G},[K,pe||W||X?p("div",{class:`${N}-footer`},[pe,W,X]):null])}}})}const Dq=Rq(),py=e=>p(Dq,e),Bq={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function S6(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:l,dropdownClassName:i,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:f}=Xt(e),g=`${o}-dropdown`;return p(wi,{showAction:[],hideAction:[],popupPlacement:(()=>d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft")(),builtinPlacements:Bq,prefixCls:g,popupTransitionName:s,popupAlign:a,popupVisible:l,popupClassName:ie(i,{[`${g}-range`]:u,[`${g}-rtl`]:f==="rtl"}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const $6=oe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?p("div",{class:`${e.prefixCls}-presets`},[p("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return p("li",{key:n,onClick:l=>{l.stopPropagation(),e.onClick(r)},onMouseenter:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,r)},onMouseleave:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,null)}},[o])})])]):null}});function Xv(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:l,onKeydown:i,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const f=te(!1),g=te(!1),v=te(!1),h=te(!1),b=te(!1),y=P(()=>({onMousedown:()=>{f.value=!0,r(!0)},onKeydown:$=>{if(i($,()=>{b.value=!0}),!b.value){switch($.which){case Oe.ENTER:{t.value?s()!==!1&&(f.value=!0):r(!0),$.preventDefault();return}case Oe.TAB:{f.value&&t.value&&!$.shiftKey?(f.value=!1,$.preventDefault()):!f.value&&t.value&&!l($)&&$.shiftKey&&(f.value=!0,$.preventDefault());return}case Oe.ESC:{f.value=!0,c();return}}!t.value&&![Oe.SHIFT].includes($.which)?r(!0):f.value||l($)}},onFocus:$=>{f.value=!0,g.value=!0,u&&u($)},onBlur:$=>{if(v.value||!o(document.activeElement)){v.value=!1;return}a.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&c()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));be(t,()=>{h.value=!1}),be(n,()=>{h.value=!0});const S=te();return je(()=>{S.value=pq($=>{const x=gq($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(v.value=!0,Ye(()=>{v.value=!1}))}})}),Ze(()=>{S.value&&S.value()}),[y,{focused:g,typing:f}]}function Uv(e){let{valueTexts:t,onTextChange:n}=e;const o=le("");function r(i){o.value=i,n(i)}function l(){o.value=t.value[0]}return be(()=>[...t.value],function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.join("||")!==a.join("||")&&t.value.every(s=>s!==o.value)&&l()},{immediate:!0}),[o,r,l]}function cf(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=q0(()=>{if(!e.value)return[[""],""];let s="";const c=[];for(let u=0;uc[0]!==s[0]||!Wi(c[1],s[1])),i=P(()=>l.value[0]),a=P(()=>l.value[1]);return[i,a]}function Yv(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=le(null);let i;function a(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ye.cancel(i),f){l.value=d;return}i=Ye(()=>{l.value=d})}const[,s]=cf(l,{formatList:n,generateConfig:o,locale:r});function c(d){a(d)}function u(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;a(null,d)}return be(e,()=>{u(!0)}),Ze(()=>{Ye.cancel(i)}),[s,c,u]}function C6(e,t){return P(()=>e!=null&&e.value?e.value:t!=null&&t.value?(Yf(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],l=typeof r=="function"?r():r;return{label:o,value:l}})):[])}function Nq(){return oe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=le(null),l=P(()=>e.presets),i=C6(l),a=P(()=>{var k;return(k=e.picker)!==null&&k!==void 0?k:"date"}),s=P(()=>a.value==="date"&&!!e.showTime||a.value==="time"),c=P(()=>g6(a6(e.format,a.value,e.showTime,e.use12Hours))),u=le(null),d=le(null),f=le(null),[g,v]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue}),h=le(g.value),b=k=>{h.value=k},y=le(null),[S,$]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:k=>e.disabled?!1:k,onChange:k=>{e.onOpenChange&&e.onOpenChange(k),!k&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=cf(h,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),[O,w,I]=Uv({valueTexts:x,onTextChange:k=>{const j=f6(k,{locale:e.locale,formatList:c.value,generateConfig:e.generateConfig});j&&(!e.disabledDate||!e.disabledDate(j))&&b(j)}}),T=k=>{const{onChange:j,generateConfig:H,locale:Y}=e;b(k),v(k),j&&!ua(H,g.value,k)&&j(k,k?yn(k,{generateConfig:H,locale:Y,format:c.value[0]}):"")},_=k=>{e.disabled&&k||$(k)},E=k=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(k):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),_(!0))},[R,{focused:z,typing:M}]=Xv({blurToCancel:s,open:S,value:O,triggerOpen:_,forwardKeydown:E,isClickOutside:k=>!c6([u.value,d.value,f.value],k),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(T(h.value),_(!1),I(),!0),onCancel:()=>{_(!1),b(g.value),I()},onKeydown:(k,j)=>{var H;(H=e.onKeydown)===null||H===void 0||H.call(e,k,j)},onFocus:k=>{var j;(j=e.onFocus)===null||j===void 0||j.call(e,k)},onBlur:k=>{var j;(j=e.onBlur)===null||j===void 0||j.call(e,k)}});be([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&I())}),be(a,()=>{S.value||I()}),be(g,()=>{b(g.value)});const[B,N,F]=Yv(O,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),L=(k,j)=>{(j==="submit"||j!=="key"&&!s.value)&&(T(k),_(!1))};return Yb({operationRef:y,hideHeader:P(()=>a.value==="time"),onSelect:L,open:S,defaultOpenValue:ze(e,"defaultOpenValue"),onDateMouseenter:N,onDateMouseleave:F}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:k="rc-picker",id:j,tabindex:H,dropdownClassName:Y,dropdownAlign:Z,popupStyle:U,transitionName:ee,generateConfig:G,locale:J,inputReadOnly:Q,allowClear:K,autofocus:q,picker:pe="date",defaultOpenValue:W,suffixIcon:X,clearIcon:ne,disabled:ae,placeholder:se,getPopupContainer:re,panelRender:de,onMousedown:ge,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se,onSelect:ue,direction:ce,autocomplete:he="off"}=e,Pe=m(m(m({},e),n),{class:ie({[`${k}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Ie=p("div",{class:`${k}-panel-layout`},[p($6,{prefixCls:k,presets:i.value,onClick:_e=>{T(_e),_(!1)}},null),p(py,D(D({},Pe),{},{generateConfig:G,value:h.value,locale:J,tabindex:-1,onSelect:_e=>{ue==null||ue(_e),b(_e)},direction:ce,onPanelChange:(_e,De)=>{const{onPanelChange:Je}=e;F(!0),Je==null||Je(_e,De)}}),null)]);de&&(Ie=de(Ie));const Ae=p("div",{class:`${k}-panel-container`,ref:u,onMousedown:_e=>{_e.preventDefault()}},[Ie]);let $e;X&&($e=p("span",{class:`${k}-suffix`},[X]));let xe;K&&g.value&&!ae&&(xe=p("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),T(null),_(!1)},class:`${k}-clear`,role:"button"},[ne||p("span",{class:`${k}-clear-btn`},null)]));const we=m(m(m(m({id:j,tabindex:H,disabled:ae,readonly:Q||typeof c.value[0]=="function"||!M.value,value:B.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:se,ref:r,title:O.value},R.value),{size:s6(pe,c.value[0],G)}),h6(e)),{autocomplete:he}),Me=e.inputRender?e.inputRender(we):p("input",we,null),Ne=ce==="rtl"?"bottomRight":"bottomLeft";return p("div",{ref:f,class:ie(k,n.class,{[`${k}-disabled`]:ae,[`${k}-focused`]:z.value,[`${k}-rtl`]:ce==="rtl"}),style:n.style,onMousedown:ge,onMouseup:A,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se},[p("div",{class:ie(`${k}-input`,{[`${k}-input-placeholder`]:!!B.value}),ref:d},[Me,$e,xe]),p(S6,{visible:S.value,popupStyle:U,prefixCls:k,dropdownClassName:Y,dropdownAlign:Z,getPopupContainer:re,transitionName:ee,popupPlacement:Ne,direction:ce},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const Fq=Nq();function Lq(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:l,disabled:i,generateConfig:a}=e;const s=P(()=>mt(r.value,0)),c=P(()=>mt(r.value,1));function u(h){return a.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=a.value.getYear(h),y=a.value.getMonth(h);return b*100+y}function f(h){const b=a.value.getYear(h),y=Vv(a.value,h);return b*10+y}return[h=>{var b;if(l&&(!((b=l==null?void 0:l.value)===null||b===void 0)&&b.call(l,h)))return!0;if(i[1]&&c)return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return f(h)>f(c.value);case"month":return d(h)>d(c.value);case"week":return u(h)>u(c.value);default:return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value)}return!1},h=>{var b;if(!((b=l.value)===null||b===void 0)&&b.call(l,h))return!0;if(i[0]&&s)return!Ir(a.value,h,c.value)&&a.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(h)Sq(o,i,a));case"quarter":case"month":return l((i,a)=>Tp(o,i,a));default:return l((i,a)=>Jb(o,i,a))}}function zq(e,t,n,o){const r=mt(e,0),l=mt(e,1);if(t===0)return r;if(r&&l)switch(kq(r,l,n,o)){case"same":return r;case"closing":return r;default:return As(l,n,o,-1)}return r}function Hq(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const l=le([mt(o,0),mt(o,1)]),i=le(null),a=P(()=>mt(t.value,0)),s=P(()=>mt(t.value,1)),c=g=>l.value[g]?l.value[g]:mt(i.value,g)||zq(t.value,g,n.value,r.value)||a.value||s.value||r.value.getNow(),u=le(null),d=le(null);ke(()=>{u.value=c(0),d.value=c(1)});function f(g,v){if(g){let h=bo(i.value,g,v);l.value=bo(l.value,null,v)||[null,null];const b=(v+1)%2;mt(t.value,b)||(h=bo(h,g,b)),i.value=h}else(a.value||s.value)&&(i.value=null)}return[u,d,f]}function x6(e){return Wm()?(o3(e),!0):!1}function jq(e){return typeof e=="function"?e():$t(e)}function gy(e){var t;const n=jq(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Wq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;pn()?je(e):t?e():ot(e)}function w6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=te(),o=()=>n.value=!!e();return o(),Wq(o,t),n}var ih;const O6=typeof window<"u";O6&&(!((ih=window==null?void 0:window.navigator)===null||ih===void 0)&&ih.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const P6=O6?window:void 0;var Vq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Vq(n,["window"]);let l;const i=w6(()=>o&&"ResizeObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new ResizeObserver(t),l.observe(u,r))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}function rs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=te(t.width),l=te(t.height);return Kq(e,i=>{let[a]=i;const s=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;s?(r.value=s.reduce((c,u)=>{let{inlineSize:d}=u;return c+d},0),l.value=s.reduce((c,u)=>{let{blockSize:d}=u;return c+d},0)):(r.value=a.contentRect.width,l.value=a.contentRect.height)},n),be(()=>gy(e),i=>{r.value=i?t.width:0,l.value=i?t.height:0}),{width:r,height:l}}function Ux(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Yx(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function Gq(){return oe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),l=P(()=>e.presets),i=P(()=>e.ranges),a=C6(l,i),s=le({}),c=le(null),u=le(null),d=le(null),f=le(null),g=le(null),v=le(null),h=le(null),b=le(null),y=P(()=>g6(a6(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Pt(0,{value:ze(e,"activePickerIndex")}),x=le(null),C=P(()=>{const{disabled:Ee}=e;return Array.isArray(Ee)?Ee:[Ee||!1,Ee||!1]}),[O,w]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:Ee=>e.picker==="time"&&!e.order?Ee:Ux(Ee,e.generateConfig)}),[I,T,_]=Hq({values:O,picker:ze(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ze(e,"generateConfig")}),[E,A]=Pt(O.value,{postState:Ee=>{let Ue=Ee;if(C.value[0]&&C.value[1])return Ue;for(let Ke=0;Ke<2;Ke+=1)C.value[Ke]&&!mt(Ue,Ke)&&!mt(e.allowEmpty,Ke)&&(Ue=bo(Ue,e.generateConfig.getNow(),Ke));return Ue}}),[R,z]=Pt([e.picker,e.picker],{value:ze(e,"mode")});be(()=>e.picker,()=>{z([e.picker,e.picker])});const M=(Ee,Ue)=>{var Ke;z(Ee),(Ke=e.onPanelChange)===null||Ke===void 0||Ke.call(e,Ue,Ee)},[B,N]=Lq({picker:ze(e,"picker"),selectedValue:E,locale:ze(e,"locale"),disabled:C,disabledDate:ze(e,"disabledDate"),generateConfig:ze(e,"generateConfig")},s),[F,L]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:Ee=>C.value[S.value]?!1:Ee,onChange:Ee=>{var Ue;(Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,Ee),!Ee&&x.value&&x.value.onClose&&x.value.onClose()}}),k=P(()=>F.value&&S.value===0),j=P(()=>F.value&&S.value===1),H=le(0),Y=le(0),Z=le(0),{width:U}=rs(c);be([F,U],()=>{!F.value&&c.value&&(Z.value=U.value)});const{width:ee}=rs(u),{width:G}=rs(b),{width:J}=rs(d),{width:Q}=rs(g);be([S,F,ee,G,J,Q,()=>e.direction],()=>{Y.value=0,S.value?d.value&&g.value&&(Y.value=J.value+Q.value,ee.value&&G.value&&Y.value>ee.value-G.value-(e.direction==="rtl"||b.value.offsetLeft>Y.value?0:b.value.offsetLeft)&&(H.value=Y.value)):S.value===0&&(H.value=0)},{immediate:!0});const K=le();function q(Ee,Ue){if(Ee)clearTimeout(K.value),s.value[Ue]=!0,$(Ue),L(Ee),F.value||_(null,Ue);else if(S.value===Ue){L(Ee);const Ke=s.value;K.value=setTimeout(()=>{Ke===s.value&&(s.value={})})}}function pe(Ee){q(!0,Ee),setTimeout(()=>{const Ue=[v,h][Ee];Ue.value&&Ue.value.focus()},0)}function W(Ee,Ue){let Ke=Ee,Ct=mt(Ke,0),en=mt(Ke,1);const{generateConfig:Wt,locale:Kn,picker:gn,order:Go,onCalendarChange:Jn,allowEmpty:fo,onChange:At,showTime:Eo}=e;Ct&&en&&Wt.isAfter(Ct,en)&&(gn==="week"&&!d6(Wt,Kn.locale,Ct,en)||gn==="quarter"&&!u6(Wt,Ct,en)||gn!=="week"&&gn!=="quarter"&&gn!=="time"&&!(Eo?ua(Wt,Ct,en):Ir(Wt,Ct,en))?(Ue===0?(Ke=[Ct,null],en=null):(Ct=null,Ke=[null,en]),s.value={[Ue]:!0}):(gn!=="time"||Go!==!1)&&(Ke=Ux(Ke,Wt))),A(Ke);const po=Ke&&Ke[0]?yn(Ke[0],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"",Wr=Ke&&Ke[1]?yn(Ke[1],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"";Jn&&Jn(Ke,[po,Wr],{range:Ue===0?"start":"end"});const Vr=Yx(Ct,0,C.value,fo),Mo=Yx(en,1,C.value,fo);(Ke===null||Vr&&Mo)&&(w(Ke),At&&(!ua(Wt,mt(O.value,0),Ct)||!ua(Wt,mt(O.value,1),en))&&At(Ke,[po,Wr]));let _o=null;Ue===0&&!C.value[1]?_o=1:Ue===1&&!C.value[0]&&(_o=0),_o!==null&&_o!==S.value&&(!s.value[_o]||!mt(Ke,_o))&&mt(Ke,Ue)?pe(_o):q(!1,Ue)}const X=Ee=>F&&x.value&&x.value.onKeydown?x.value.onKeydown(Ee):!1,ne={formatList:y,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")},[ae,se]=cf(P(()=>mt(E.value,0)),ne),[re,de]=cf(P(()=>mt(E.value,1)),ne),ge=(Ee,Ue)=>{const Ke=f6(Ee,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Ke&&!(Ue===0?B:N)(Ke)&&(A(bo(E.value,Ke,Ue)),_(Ke,Ue))},[me,fe,ye]=Uv({valueTexts:ae,onTextChange:Ee=>ge(Ee,0)}),[Se,ue,ce]=Uv({valueTexts:re,onTextChange:Ee=>ge(Ee,1)}),[he,Pe]=vt(null),[Ie,Ae]=vt(null),[$e,xe,we]=Yv(me,ne),[Me,Ne,_e]=Yv(Se,ne),De=Ee=>{Ae(bo(E.value,Ee,S.value)),S.value===0?xe(Ee):Ne(Ee)},Je=()=>{Ae(bo(E.value,null,S.value)),S.value===0?we():_e()},ft=(Ee,Ue)=>({forwardKeydown:X,onBlur:Ke=>{var Ct;(Ct=e.onBlur)===null||Ct===void 0||Ct.call(e,Ke)},isClickOutside:Ke=>!c6([u.value,d.value,f.value,c.value],Ke),onFocus:Ke=>{var Ct;$(Ee),(Ct=e.onFocus)===null||Ct===void 0||Ct.call(e,Ke)},triggerOpen:Ke=>{q(Ke,Ee)},onSubmit:()=>{if(!E.value||e.disabledDate&&e.disabledDate(E.value[Ee]))return!1;W(E.value,Ee),Ue()},onCancel:()=>{q(!1,Ee),A(O.value),Ue()}}),[it,{focused:pt,typing:ht}]=Xv(m(m({},ft(0,ye)),{blurToCancel:r,open:k,value:me,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),[Ut,{focused:Jt,typing:rn}]=Xv(m(m({},ft(1,ce)),{blurToCancel:r,open:j,value:Se,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),jt=Ee=>{var Ue;(Ue=e.onClick)===null||Ue===void 0||Ue.call(e,Ee),!F.value&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&(C.value[0]?C.value[1]||pe(1):pe(0))},xn=Ee=>{var Ue;(Ue=e.onMousedown)===null||Ue===void 0||Ue.call(e,Ee),F.value&&(pt.value||Jt.value)&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&Ee.preventDefault()},Wn=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[0]?yn(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),uo=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[1]?yn(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});be([F,ae,re],()=>{F.value||(A(O.value),!ae.value.length||ae.value[0]===""?fe(""):se.value!==me.value&&ye(),!re.value.length||re.value[0]===""?ue(""):de.value!==Se.value&&ce())}),be([Wn,uo],()=>{A(O.value)}),o({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),h.value&&h.value.blur()}});const To=P(()=>F.value&&Ie.value&&Ie.value[0]&&Ie.value[1]&&e.generateConfig.isAfter(Ie.value[1],Ie.value[0])?Ie.value:null);function Vn(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ke,showTime:Ct,dateRender:en,direction:Wt,disabledTime:Kn,prefixCls:gn,locale:Go}=e;let Jn=Ct;if(Ct&&typeof Ct=="object"&&Ct.defaultValue){const At=Ct.defaultValue;Jn=m(m({},Ct),{defaultValue:mt(At,S.value)||void 0})}let fo=null;return en&&(fo=At=>{let{current:Eo,today:po}=At;return en({current:Eo,today:po,info:{range:S.value?"end":"start"}})}),p(Tq,{value:{inRange:!0,panelPosition:Ee,rangedValue:he.value||E.value,hoverRangedValue:To.value}},{default:()=>[p(py,D(D(D({},e),Ue),{},{dateRender:fo,showTime:Jn,mode:R.value[S.value],generateConfig:Ke,style:void 0,direction:Wt,disabledDate:S.value===0?B:N,disabledTime:At=>Kn?Kn(At,S.value===0?"start":"end"):!1,class:ie({[`${gn}-panel-focused`]:S.value===0?!ht.value:!rn.value}),value:mt(E.value,S.value),locale:Go,tabIndex:-1,onPanelChange:(At,Eo)=>{S.value===0&&we(!0),S.value===1&&_e(!0),M(bo(R.value,Eo,S.value),bo(E.value,At,S.value));let po=At;Ee==="right"&&R.value[S.value]===Eo&&(po=As(po,Eo,Ke,-1)),_(po,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?mt(E.value,1):mt(E.value,0)}),null)]})}const El=(Ee,Ue)=>{const Ke=bo(E.value,Ee,S.value);Ue==="submit"||Ue!=="key"&&!r.value?(W(Ke,S.value),S.value===0?we():_e()):A(Ke)};return Yb({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:De,onDateMouseleave:Je,hideRanges:P(()=>!0),onSelect:El,open:F}),()=>{const{prefixCls:Ee="rc-picker",id:Ue,popupStyle:Ke,dropdownClassName:Ct,transitionName:en,dropdownAlign:Wt,getPopupContainer:Kn,generateConfig:gn,locale:Go,placeholder:Jn,autofocus:fo,picker:At="date",showTime:Eo,separator:po="~",disabledDate:Wr,panelRender:Vr,allowClear:Mo,suffixIcon:Ei,clearIcon:_o,inputReadOnly:ig,renderExtraFooter:wM,onMouseenter:OM,onMouseleave:PM,onMouseup:IM,onOk:J1,components:TM,direction:Xa,autocomplete:eS="off"}=e,EM=Xa==="rtl"?{right:`${Y.value}px`}:{left:`${Y.value}px`};function MM(){let Gn;const Kr=b6(Ee,R.value[S.value],wM),rS=y6({prefixCls:Ee,components:TM,needConfirmButton:r.value,okDisabled:!mt(E.value,S.value)||Wr&&Wr(E.value[S.value]),locale:Go,onOk:()=>{mt(E.value,S.value)&&(W(E.value,S.value),J1&&J1(E.value))}});if(At!=="time"&&!Eo){const Gr=S.value===0?I.value:T.value,RM=As(Gr,At,gn),ug=R.value[S.value]===At,lS=Vn(ug?"left":!1,{pickerValue:Gr,onPickerValueChange:dg=>{_(dg,S.value)}}),iS=Vn("right",{pickerValue:RM,onPickerValueChange:dg=>{_(As(dg,At,gn,-1),S.value)}});Xa==="rtl"?Gn=p(We,null,[iS,ug&&lS]):Gn=p(We,null,[lS,ug&&iS])}else Gn=Vn();let cg=p("div",{class:`${Ee}-panel-layout`},[p($6,{prefixCls:Ee,presets:a.value,onClick:Gr=>{W(Gr,null),q(!1,S.value)},onHover:Gr=>{Pe(Gr)}},null),p("div",null,[p("div",{class:`${Ee}-panels`},[Gn]),(Kr||rS)&&p("div",{class:`${Ee}-footer`},[Kr,rS])])]);return Vr&&(cg=Vr(cg)),p("div",{class:`${Ee}-panel-container`,style:{marginLeft:`${H.value}px`},ref:u,onMousedown:Gr=>{Gr.preventDefault()}},[cg])}const _M=p("div",{class:ie(`${Ee}-range-wrapper`,`${Ee}-${At}-range-wrapper`),style:{minWidth:`${Z.value}px`}},[p("div",{ref:b,class:`${Ee}-range-arrow`,style:EM},null),MM()]);let tS;Ei&&(tS=p("span",{class:`${Ee}-suffix`},[Ei]));let nS;Mo&&(mt(O.value,0)&&!C.value[0]||mt(O.value,1)&&!C.value[1])&&(nS=p("span",{onMousedown:Gn=>{Gn.preventDefault(),Gn.stopPropagation()},onMouseup:Gn=>{Gn.preventDefault(),Gn.stopPropagation();let Kr=O.value;C.value[0]||(Kr=bo(Kr,null,0)),C.value[1]||(Kr=bo(Kr,null,1)),W(Kr,null),q(!1,S.value)},class:`${Ee}-clear`},[_o||p("span",{class:`${Ee}-clear-btn`},null)]));const oS={size:s6(At,y.value[0],gn)};let ag=0,sg=0;d.value&&f.value&&g.value&&(S.value===0?sg=d.value.offsetWidth:(ag=Y.value,sg=f.value.offsetWidth));const AM=Xa==="rtl"?{right:`${ag}px`}:{left:`${ag}px`};return p("div",D({ref:c,class:ie(Ee,`${Ee}-range`,n.class,{[`${Ee}-disabled`]:C.value[0]&&C.value[1],[`${Ee}-focused`]:S.value===0?pt.value:Jt.value,[`${Ee}-rtl`]:Xa==="rtl"}),style:n.style,onClick:jt,onMouseenter:OM,onMouseleave:PM,onMousedown:xn,onMouseup:IM},h6(e)),[p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===0,[`${Ee}-input-placeholder`]:!!$e.value}),ref:d},[p("input",D(D(D({id:Ue,disabled:C.value[0],readonly:ig||typeof y.value[0]=="function"||!ht.value,value:$e.value||me.value,onInput:Gn=>{fe(Gn.target.value)},autofocus:fo,placeholder:mt(Jn,0)||"",ref:v},it.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-range-separator`,ref:g},[po]),p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===1,[`${Ee}-input-placeholder`]:!!Me.value}),ref:f},[p("input",D(D(D({disabled:C.value[1],readonly:ig||typeof y.value[0]=="function"||!rn.value,value:Me.value||Se.value,onInput:Gn=>{ue(Gn.target.value)},placeholder:mt(Jn,1)||"",ref:h},Ut.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-active-bar`,style:m(m({},AM),{width:`${sg}px`,position:"absolute"})},null),tS,nS,p(S6,{visible:F.value,popupStyle:Ke,prefixCls:Ee,dropdownClassName:Ct,dropdownAlign:Wt,getPopupContainer:Kn,transitionName:en,range:!0,direction:Xa},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>_M})])}}})}const Xq=Gq(),Uq=Xq;var Yq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{l.value=e.checked}),r({focus(){var u;(u=i.value)===null||u===void 0||u.focus()},blur(){var u;(u=i.value)===null||u===void 0||u.blur()}});const a=le(),s=u=>{if(e.disabled)return;e.checked===void 0&&(l.value=u.target.checked),u.shiftKey=a.value;const d={target:m(m({},e),{checked:u.target.checked}),stopPropagation(){u.stopPropagation()},preventDefault(){u.preventDefault()},nativeEvent:u};e.checked!==void 0&&(i.value.checked=!!e.checked),o("change",d),a.value=!1},c=u=>{o("click",u),a.value=u.shiftKey};return()=>{const{prefixCls:u,name:d,id:f,type:g,disabled:v,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=Yq(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_}=n,E=m(m({},x),n),A=Object.keys(E).reduce((M,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(M[B]=E[B]),M),{}),R=ie(u,C,{[`${u}-checked`]:l.value,[`${u}-disabled`]:v}),z=m(m({name:d,id:f,type:g,readonly:h,disabled:v,tabindex:b,class:`${u}-input`,checked:!!l.value,autofocus:y,value:S},A),{onChange:s,onClick:c,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_,required:$});return p("span",{class:R},[p("input",D({ref:i},z),null),p("span",{class:`${u}-inner`},null)])}}}),T6=Symbol("radioGroupContextKey"),Zq=e=>{Ge(T6,e)},Qq=()=>He(T6,void 0),E6=Symbol("radioOptionTypeContextKey"),Jq=e=>{Ge(E6,e)},eZ=()=>He(E6,void 0),tZ=new nt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),nZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:m(m({},Xe(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},oZ=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:m(m({},Xe(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:tZ,animationDuration:l,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:m({},Ar(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${l} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?c:o,"&::after":{transform:`scale(${f/r})`,opacity:1,transition:`all ${l} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},rZ=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:l,colorBorder:i,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:I,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:E}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${l} ${i}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${l} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:v,paddingInline:h-r,paddingBlock:0,lineHeight:`${v-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":m({},Ar(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:I,backgroundColor:T,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:T,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:_,backgroundColor:E,borderColor:i,boxShadow:"none"}}}},M6=Ve("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:l,fontSizeLG:i,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,b=`0 0 0 ${g}px ${a}`,y=b,S=i,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=u,I=s,T=c,_=t-n,R=Fe(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:v,radioButtonBg:l,radioButtonCheckedBg:l,radioButtonColor:w,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:f});return[nZ(R),oZ(R),rZ(R)]});var lZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,autofocus:Ce(),onChange:ve(),onFocus:ve(),onBlur:ve(),onClick:ve(),"onUpdate:checked":ve(),"onUpdate:value":ve()}),Nn=oe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:_6(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:l}=t;const i=Qt(),a=un.useInject(),s=eZ(),c=Qq(),u=qn(),d=P(()=>{var I;return(I=h.value)!==null&&I!==void 0?I:u.value}),f=le(),{prefixCls:g,direction:v,disabled:h}=Te("radio",e),b=P(()=>(c==null?void 0:c.optionType.value)==="button"||s==="button"?`${g.value}-button`:g.value),y=qn(),[S,$]=M6(g);o({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const O=I=>{const T=I.target.checked;n("update:checked",T),n("update:value",T),n("change",I),i.onFieldChange()},w=I=>{n("change",I),c&&c.onChange&&c.onChange(I)};return()=>{var I;const T=c,{prefixCls:_,id:E=i.id.value}=e,A=lZ(e,["prefixCls","id"]),R=m(m({prefixCls:b.value,id:E},et(A,["onUpdate:checked","onUpdate:value"])),{disabled:(I=h.value)!==null&&I!==void 0?I:y.value});T?(R.name=T.name.value,R.onChange=w,R.checked=e.value===T.value.value,R.disabled=d.value||T.disabled.value):R.onChange=O;const z=ie({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-rtl`]:v.value==="rtl",[`${b.value}-wrapper-in-form-item`]:a.isFormItemInput},l.class,$.value);return S(p("label",D(D({},l),{},{class:z}),[p(I6,D(D({},R),{},{type:"radio",ref:f}),null),r.default&&p("span",null,[r.default()])]))}}}),iZ=()=>({prefixCls:String,value:V.any,size:Be(),options:at(),disabled:Ce(),name:String,buttonStyle:Be("outline"),id:String,optionType:Be("default"),onChange:ve(),"onUpdate:value":ve()}),hy=oe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:iZ(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=Qt(),{prefixCls:i,direction:a,size:s}=Te("radio",e),[c,u]=M6(i),d=le(e.value),f=le(!1);return be(()=>e.value,v=>{d.value=v,f.value=!1}),Zq({onChange:v=>{const h=d.value,{value:b}=v.target;"value"in e||(d.value=b),!f.value&&b!==h&&(f.value=!0,o("update:value",b),o("change",v),l.onFieldChange()),ot(()=>{f.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var v;const{options:h,buttonStyle:b,id:y=l.id.value}=e,S=`${i.value}-group`,$=ie(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:a.value==="rtl"},r.class,u.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return p(Nn,{key:C,prefixCls:i.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:I}=C;return p(Nn,{key:`radio-group-value-options-${O}`,prefixCls:i.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[I]})}):x=(v=n.default)===null||v===void 0?void 0:v.call(n),c(p("div",D(D({},r),{},{class:$,id:y}),[x]))}}}),uf=oe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:_6(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("radio",e);return Jq("button"),()=>{var l;return p(Nn,D(D(D({},o),e),{},{prefixCls:r.value}),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}}});Nn.Group=hy;Nn.Button=uf;Nn.install=function(e){return e.component(Nn.name,Nn),e.component(Nn.Group.name,Nn.Group),e.component(Nn.Button.name,Nn.Button),e};const aZ=10,sZ=20;function A6(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:l,value:i,onChange:a,divRef:s}=e,c=o.getYear(i||o.getNow());let u=c-aZ,d=u+sZ;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const f=r&&r.year==="年"?"年":"",g=[];for(let v=u;v{let h=o.setYear(i,v);if(n){const[b,y]=n,S=o.getYear(h),$=o.getMonth(h);S===o.getYear(y)&&$>o.getMonth(y)&&(h=o.setMonth(h,o.getMonth(y))),S===o.getYear(b)&&$s.value},null)}A6.inheritAttrs=!1;function R6(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:l,locale:i,onChange:a,divRef:s}=e,c=l.getMonth(r||l.getNow());let u=0,d=11;if(o){const[v,h]=o,b=l.getYear(r);l.getYear(h)===b&&(d=l.getMonth(h)),l.getYear(v)===b&&(u=l.getMonth(v))}const f=i.shortMonths||l.locale.getShortMonths(i.locale),g=[];for(let v=u;v<=d;v+=1)g.push({label:f[v],value:v});return p(Dr,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:g,onChange:v=>{a(l.setMonth(r,v))},getPopupContainer:()=>s.value},null)}R6.inheritAttrs=!1;function D6(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:l}=e;return p(hy,{onChange:i=>{let{target:{value:a}}=i;l(a)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[p(uf,{value:"month"},{default:()=>[n.month]}),p(uf,{value:"year"},{default:()=>[n.year]})]})}D6.inheritAttrs=!1;const cZ=oe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=le(null),r=un.useInject();return un.useProvide(r,{isFormItemInput:!1}),()=>{const l=m(m({},e),n),{prefixCls:i,fullscreen:a,mode:s,onChange:c,onModeChange:u}=l,d=m(m({},l),{fullscreen:a,divRef:o});return p("div",{class:`${i}-header`,ref:o},[p(A6,D(D({},d),{},{onChange:f=>{c(f,"year")}}),null),s==="month"&&p(R6,D(D({},d),{},{onChange:f=>{c(f,"month")}}),null),p(D6,D(D({},d),{},{onModeChange:u}),null)])}}}),vy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ga=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),yl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),my=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":m({},Ga(Fe(e,{inputBorderHoverColor:e.colorBorder})))}),B6=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},by=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Nc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},Ii=e=>m(m({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vy(e.colorTextPlaceholder)),{"&:hover":m({},Ga(e)),"&:focus, &-focused":m({},yl(e)),"&-disabled, &[disabled]":m({},my(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":m({},B6(e)),"&-sm":m({},by(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),N6=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:m({},B6(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:m({},by(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:m(m({display:"block"},zo()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},uZ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=16,l=(n-o*2-r)/2;return{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}}})}},dZ=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},fZ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:m(m(m(m(m({},Ii(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dZ(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Nc(e,`${t}-affix-wrapper`))}},pZ=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:m(m(m({},Xe(e)),N6(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},gZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Ti(e){return Fe(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const hZ=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},yy=Ve("Input",e=>{const t=Ti(e);return[uZ(t),hZ(t),fZ(t),pZ(t),gZ(t),ja(t)]}),ah=(e,t,n,o)=>{const{lineHeight:r}=e,l=Math.floor(n*r)+2,i=Math.max((t-l)/2,0),a=Math.max(t-l-i,0);return{padding:`${i}px ${o}px ${a}px`}},vZ=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:l,borderRadiusSM:i,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:g,controlHeightSM:v,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:b,pickerBasicCellHoverWithRangeColor:y,pickerPanelCellWidth:S,colorTextDisabled:$,colorBgContainerDisabled:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:i,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view), - &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${o}, - &-in-view${n}-range-start ${o}, - &-in-view${n}-range-end ${o}`]:{color:g,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), - &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-start${n}-range-start-single, - &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, - &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, - &-in-view${n}-range-hover-end${n}-range-end-single, - &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${c}px dashed ${h}`,borderBottom:`${c}px dashed ${h}`,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:b},[`&-in-view${n}-in-range${n}-range-hover::before, - &-in-view${n}-range-start${n}-range-hover::before, - &-in-view${n}-range-end${n}-range-hover::before, - &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, - &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-start::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:y},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, - tr > &-in-view${n}-range-hover-end:first-child::after, - &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, - &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, - &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(S-r)/2,borderInlineStart:`${c}px dashed ${h}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after, - tr > &-in-view${n}-range-hover-start:last-child::after, - &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, - &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, - &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${c}px dashed ${h}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},F6=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:l,paddingSM:i,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:f,colorPrimary:g,colorTextHeading:v,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:I,colorText:T,fontSize:_,pickerBasicCellHoverWithRangeColor:E,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:R,pickerQuarterPanelContentHeight:z,colorLink:M,colorLinkActive:B,colorLinkHover:N,pickerDateHoverRangeBorderColor:F,borderRadiusSM:L,colorTextLightSolid:k,borderRadius:j,controlItemBgHover:H,pickerTimePanelColumnHeight:Y,pickerTimePanelColumnWidth:Z,pickerTimePanelCellHeight:U,controlItemBgActive:ee,marginXXS:G}=e,J=l*7+i*2+4,Q=(J-a*2)/3-o-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${h}`,borderRadius:f,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${a}px`,color:v,borderBottom:`${u}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:T,verticalAlign:"middle"}},"&-cell":m({padding:`${w}px 0`,color:I,cursor:"pointer","&-in-view":{color:T}},vZ(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, - &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:E,transition:`all ${A}`,content:'""'}},[`&-date-panel - ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start - ${n}::after`]:{insetInlineEnd:-(l-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:R*4},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:z}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*u}px`,textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:`${S-2*u}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:M,"&:hover":{color:N},"&:active":{color:B},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:L,borderBottomStartRadius:L,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:L,borderBottomEndRadius:L}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n}, - &-selected ${n}, - ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${$}`,"&:first-child":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td":{background:H},"&-selected td,\n &-selected:hover td":{background:g,[`&${t}-cell-week`]:{color:new gt(k).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:k},[n]:{color:k}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-content`]:{width:l*7,th:{width:l}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${h}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Y},"&-column":{flex:"1 0 auto",width:Z,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:Y-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${h}`},"&-active":{background:new gt(ee).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:G,[`${t}-time-panel-cell-inner`]:{display:"block",width:Z-2*G,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Z-U)/2,color:T,lineHeight:`${U}px`,borderRadius:L,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ee}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Y-U+s*2}}}},mZ=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:l,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:l},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:l,inputBorderHoverColor:l,controlOutline:i}))),[`${t}-active-bar`]:{background:l}}}}},bZ=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:l,inputPaddingHorizontal:i,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:g,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:I,colorPrimary:T,motionDurationSlow:_,zIndexPopup:E,paddingXXS:A,paddingSM:R,pickerTextHeight:z,controlItemBgActive:M,colorPrimaryBorder:B,sizePopupArrow:N,borderRadiusXS:F,borderRadiusOuter:L,colorBgElevated:k,borderRadiusLG:j,boxShadowSecondary:H,borderRadiusSM:Y,colorSplit:Z,controlItemBgHover:U,presetsWidth:ee,presetsMaxWidth:G}=e;return[{[t]:m(m(m({},Xe(e)),ah(e,r,l,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":m({},Ga(e)),"&-focused":m({},yl(e)),[`&${t}-disabled`]:{background:g,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":m(m({},Ii(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":m(m({},ah(e,b,y,i)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":m({},ah(e,S,l,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:v,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:i,background:T,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":m(m(m({},Xe(e)),F6(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:wp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Cp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Op},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:xp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-ranges`]:{marginBottom:0,padding:`${A}px ${R}px`,overflow:"hidden",lineHeight:`${z-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:M,borderColor:B,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:m({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${_} ease-out`},x0(N,F,L,k,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:j,boxShadow:H,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:G,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${c} ${Z}`,li:m(m({},Gt),{borderRadius:Y,paddingInline:x,paddingBlock:(S-Math.round(l*I))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},L6=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:l,paddingXXS:i}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new gt(l).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new gt(l).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},k6=Ve("DatePicker",e=>{const t=Fe(Ti(e),L6(e));return[bZ(t),mZ(t),ja(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),yZ=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:l}=e;return{[t]:m(m(m({},F6(e)),Xe(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:l}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},SZ=Ve("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Fe(Ti(e),L6(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[yZ(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function $Z(e){function t(l,i){return l&&i&&e.getYear(l)===e.getYear(i)}function n(l,i){return t(l,i)&&e.getMonth(l)===e.getMonth(i)}function o(l,i){return n(l,i)&&e.getDate(l)===e.getDate(i)}const r=oe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(l,i){let{emit:a,slots:s,attrs:c}=i;const u=l,{prefixCls:d,direction:f}=Te("picker",u),[g,v]=SZ(d),h=P(()=>`${d.value}-calendar`),b=M=>u.valueFormat?e.toString(M,u.valueFormat):M,y=P(()=>u.value?u.valueFormat?e.toDate(u.value,u.valueFormat):u.value:u.value===""?void 0:u.value),S=P(()=>u.defaultValue?u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue:u.defaultValue===""?void 0:u.defaultValue),[$,x]=Pt(()=>y.value||e.getNow(),{defaultValue:S.value,value:y}),[C,O]=Pt("month",{value:ze(u,"mode")}),w=P(()=>C.value==="year"?"month":"date"),I=P(()=>M=>{var B;return(u.validRange?e.isAfter(u.validRange[0],M)||e.isAfter(M,u.validRange[1]):!1)||!!(!((B=u.disabledDate)===null||B===void 0)&&B.call(u,M))}),T=(M,B)=>{a("panelChange",b(M),B)},_=M=>{if(x(M),!o(M,$.value)){(w.value==="date"&&!n(M,$.value)||w.value==="month"&&!t(M,$.value))&&T(M,C.value);const B=b(M);a("update:value",B),a("change",B)}},E=M=>{O(M),T($.value,M)},A=(M,B)=>{_(M),a("select",b(M),{source:B})},R=P(()=>{const{locale:M}=u,B=m(m({},Js),M);return B.lang=m(m({},B.lang),(M||{}).lang),B}),[z]=Io("Calendar",R);return()=>{const M=e.getNow(),{dateFullCellRender:B=s==null?void 0:s.dateFullCellRender,dateCellRender:N=s==null?void 0:s.dateCellRender,monthFullCellRender:F=s==null?void 0:s.monthFullCellRender,monthCellRender:L=s==null?void 0:s.monthCellRender,headerRender:k=s==null?void 0:s.headerRender,fullscreen:j=!0,validRange:H}=u,Y=U=>{let{current:ee}=U;return B?B({current:ee}):p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(M,ee)})},[p("div",{class:`${h.value}-date-value`},[String(e.getDate(ee)).padStart(2,"0")]),p("div",{class:`${h.value}-date-content`},[N&&N({current:ee})])])},Z=(U,ee)=>{let{current:G}=U;if(F)return F({current:G});const J=ee.shortMonths||e.locale.getShortMonths(ee.locale);return p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(M,G)})},[p("div",{class:`${h.value}-date-value`},[J[e.getMonth(G)]]),p("div",{class:`${h.value}-date-content`},[L&&L({current:G})])])};return g(p("div",D(D({},c),{},{class:ie(h.value,{[`${h.value}-full`]:j,[`${h.value}-mini`]:!j,[`${h.value}-rtl`]:f.value==="rtl"},c.class,v.value)}),[k?k({value:$.value,type:C.value,onChange:U=>{A(U,"customize")},onTypeChange:E}):p(cZ,{prefixCls:h.value,value:$.value,generateConfig:e,mode:C.value,fullscreen:j,locale:z.value.lang,validRange:H,onChange:A,onModeChange:E},null),p(py,{value:$.value,prefixCls:d.value,locale:z.value.lang,generateConfig:e,dateRender:Y,monthCellRender:U=>Z(U,z.value.lang),onSelect:U=>{A(U,w.value)},mode:w.value,picker:w.value,disabledDate:I.value,hideHeader:!0},null)]))}}});return r.install=function(l){return l.component(r.name,r),l},r}const CZ=$Z(Ub),xZ=Tt(CZ);function wZ(e){const t=te(),n=te(!1);function o(){for(var r=arguments.length,l=new Array(r),i=0;i{e(...l)}))}return Ze(()=>{n.value=!0,Ye.cancel(t.value)}),o}function OZ(e){const t=te([]),n=te(typeof e=="function"?e():e),o=wZ(()=>{let l=n.value;t.value.forEach(i=>{l=i(l)}),t.value=[],n.value=l});function r(l){t.value.push(l),o()}return[n,r]}const PZ=oe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=le();function l(s){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(s)}n({domRef:r});function i(s){var c;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:s})}const a=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:c,id:u,active:d,tab:{key:f,tab:g,disabled:v,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${c}-tab`,C=p("div",{key:f,ref:r,class:ie(x,{[`${x}-with-remove`]:a.value,[`${x}-active`]:d,[`${x}-disabled`]:v}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":d,id:u&&`${u}-tab-${f}`,class:`${x}-btn`,"aria-controls":u&&`${u}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:O=>{O.stopPropagation(),l(O)},onKeydown:O=>{[Oe.SPACE,Oe.ENTER].includes(O.which)&&(O.preventDefault(),l(O))},onFocus:$},[typeof g=="function"?g():g]),a.value&&p("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),i(O)}},[(h==null?void 0:h())||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),qx={width:0,height:0,left:0,top:0};function IZ(e,t){const n=le(new Map);return ke(()=>{var o,r;const l=new Map,i=e.value,a=t.value.get((o=i[0])===null||o===void 0?void 0:o.key)||qx,s=a.left+a.width;for(let c=0;c{const{prefixCls:l,editable:i,locale:a}=e;return!i||i.showAdd===!1?null:p("button",{ref:r,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:s=>{i.onEdit("add",{event:s})}},[i.addIcon?i.addIcon():"+"])}}}),TZ={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:V.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ve()},EZ=oe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:TZ,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,l]=vt(!1),[i,a]=vt(null),s=g=>{const v=e.tabs.filter(y=>!y.disabled);let h=v.findIndex(y=>y.key===i.value)||0;const b=v.length;for(let y=0;y{const{which:v}=g;if(!r.value){[Oe.DOWN,Oe.SPACE,Oe.ENTER].includes(v)&&(l(!0),g.preventDefault());return}switch(v){case Oe.UP:s(-1),g.preventDefault();break;case Oe.DOWN:s(1),g.preventDefault();break;case Oe.ESC:l(!1);break;case Oe.SPACE:case Oe.ENTER:i.value!==null&&e.onTabClick(i.value,g);break}},u=P(()=>`${e.id}-more-popup`),d=P(()=>i.value!==null?`${u.value}-${i.value}`:null),f=(g,v)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:v,event:g})};return je(()=>{be(i,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),be(r,()=>{r.value||a(null)}),Kb({}),()=>{var g;const{prefixCls:v,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||p(Wb,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:I,popupClassName:T}=e;if(!b.length)return null;const _=`${v}-dropdown`,E=y==null?void 0:y.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:O};b.length||(A.visibility="hidden",A.order=1);const R=ie({[`${_}-rtl`]:w,[`${T}`]:!0}),z=S?null:p(IT,{prefixCls:_,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:l,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(Vt,{onClick:M=>{let{key:B,domEvent:N}=M;I(B,N),l(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[i.value],"aria-label":E!==void 0?E:"expanded dropdown"},{default:()=>[b.map(M=>{var B,N;const F=C&&M.closable!==!1&&!M.disabled;return p(lr,{key:M.key,id:`${u.value}-${M.key}`,role:"option","aria-controls":h&&`${h}-panel-${M.key}`,disabled:M.disabled},{default:()=>[p("span",null,[typeof M.tab=="function"?M.tab():M.tab]),F&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${_}-menu-item-remove`,onClick:L=>{L.stopPropagation(),f(L,M.key)}},[((B=M.closeIcon)===null||B===void 0?void 0:B.call(M))||((N=C.removeIcon)===null||N===void 0?void 0:N.call(C))||"×"])]})})]}),default:()=>p("button",{type:"button",class:`${v}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:c},[$])});return p("div",{class:ie(`${v}-nav-operations`,n.class),style:n.style},[z,p(z6,{prefixCls:v,locale:y,editable:C},null)])}}}),H6=Symbol("tabsContextKey"),MZ=e=>{Ge(H6,e)},j6=()=>He(H6,{tabs:le([]),prefixCls:le()}),_Z=.1,Zx=.01,Gu=20,Qx=Math.pow(.995,Gu);function AZ(e,t){const[n,o]=vt(),[r,l]=vt(0),[i,a]=vt(0),[s,c]=vt(),u=le();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(u.value)}function f(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],I=O-n.value.x,T=w-n.value.y;t(I,T),o({x:O,y:w});const _=Date.now();a(_-r.value),l(_),c({x:I,y:T})}function g(){if(!n.value)return;const C=s.value;if(o(null),c(null),C){const O=C.x/i.value,w=C.y/i.value,I=Math.abs(O),T=Math.abs(w);if(Math.max(I,T)<_Z)return;let _=O,E=w;u.value=setInterval(()=>{if(Math.abs(_)_?(I=O,v.value="x"):(I=w,v.value="y"),t(-I,-I)&&C.preventDefault()}const b=le({onTouchStart:d,onTouchMove:f,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}je(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Ze(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function Jx(e,t){const n=le(e);function o(r){const l=typeof r=="function"?r(n.value):r;l!==n.value&&t(l,n.value),n.value=l}return[n,o]}const RZ=()=>{const e=le(new Map),t=n=>o=>{e.value.set(n,o)};return Lf(()=>{e.value=new Map}),[t,e]},Sy=RZ,ew={width:0,height:0,left:0,top:0,right:0},DZ=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Re(),editable:Re(),moreIcon:V.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Re(),popupClassName:String,getPopupContainer:ve(),onTabClick:{type:Function},onTabScroll:{type:Function}}),BZ=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:l}=e,{width:i,height:a,x:s,y:c}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,a,s-t.x,c-t.y]:[n,o,l,r]},tw=oe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:DZ(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:l}=j6(),i=te(),a=te(),s=te(),c=te(),[u,d]=Sy(),f=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,v]=Jx(0,(re,de)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"left":"right"})}),[h,b]=Jx(0,(re,de)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"top":"bottom"})}),[y,S]=vt(0),[$,x]=vt(0),[C,O]=vt(null),[w,I]=vt(null),[T,_]=vt(0),[E,A]=vt(0),[R,z]=OZ(new Map),M=IZ(r,R),B=P(()=>`${l.value}-nav-operations-hidden`),N=te(0),F=te(0);ke(()=>{f.value?e.rtl?(N.value=0,F.value=Math.max(0,y.value-C.value)):(N.value=Math.min(0,C.value-y.value),F.value=0):(N.value=Math.min(0,w.value-$.value),F.value=0)});const L=re=>reF.value?F.value:re,k=te(),[j,H]=vt(),Y=()=>{H(Date.now())},Z=()=>{clearTimeout(k.value)},U=(re,de)=>{re(ge=>L(ge+de))};AZ(i,(re,de)=>{if(f.value){if(C.value>=y.value)return!1;U(v,re)}else{if(w.value>=$.value)return!1;U(b,de)}return Z(),Y(),!0}),be(j,()=>{Z(),j.value&&(k.value=setTimeout(()=>{H(0)},100))});const ee=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const de=M.value.get(re)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let ge=g.value;e.rtl?de.rightg.value+C.value&&(ge=de.right+de.width-C.value):de.left<-g.value?ge=-de.left:de.left+de.width>-g.value+C.value&&(ge=-(de.left+de.width-C.value)),b(0),v(L(ge))}else{let ge=h.value;de.top<-h.value?ge=-de.top:de.top+de.height>-h.value+w.value&&(ge=-(de.top+de.height-w.value)),v(0),b(L(ge))}},G=te(0),J=te(0);ke(()=>{let re,de,ge,me,fe,ye;const Se=M.value;["top","bottom"].includes(e.tabPosition)?(re="width",me=C.value,fe=y.value,ye=T.value,de=e.rtl?"right":"left",ge=Math.abs(g.value)):(re="height",me=w.value,fe=y.value,ye=E.value,de="top",ge=-h.value);let ue=me;fe+ye>me&&fege+ue){Pe=Ae-1;break}}let Ie=0;for(let Ae=he-1;Ae>=0;Ae-=1)if((Se.get(ce[Ae].key)||ew)[de]{z(()=>{var re;const de=new Map,ge=(re=a.value)===null||re===void 0?void 0:re.getBoundingClientRect();return r.value.forEach(me=>{let{key:fe}=me;const ye=d.value.get(fe),Se=(ye==null?void 0:ye.$el)||ye;if(Se){const[ue,ce,he,Pe]=BZ(Se,ge);de.set(fe,{width:ue,height:ce,left:he,top:Pe})}}),de})};be(()=>r.value.map(re=>re.key).join("%%"),()=>{Q()},{flush:"post"});const K=()=>{var re,de,ge,me,fe;const ye=((re=i.value)===null||re===void 0?void 0:re.offsetWidth)||0,Se=((de=i.value)===null||de===void 0?void 0:de.offsetHeight)||0,ue=((ge=c.value)===null||ge===void 0?void 0:ge.$el)||{},ce=ue.offsetWidth||0,he=ue.offsetHeight||0;O(ye),I(Se),_(ce),A(he);const Pe=(((me=a.value)===null||me===void 0?void 0:me.offsetWidth)||0)-ce,Ie=(((fe=a.value)===null||fe===void 0?void 0:fe.offsetHeight)||0)-he;S(Pe),x(Ie),Q()},q=P(()=>[...r.value.slice(0,G.value),...r.value.slice(J.value+1)]),[pe,W]=vt(),X=P(()=>M.value.get(e.activeKey)),ne=te(),ae=()=>{Ye.cancel(ne.value)};be([X,f,()=>e.rtl],()=>{const re={};X.value&&(f.value?(e.rtl?re.right=Vl(X.value.right):re.left=Vl(X.value.left),re.width=Vl(X.value.width)):(re.top=Vl(X.value.top),re.height=Vl(X.value.height))),ae(),ne.value=Ye(()=>{W(re)})}),be([()=>e.activeKey,X,M,f],()=>{ee()},{flush:"post"}),be([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{K()},{flush:"post"});const se=re=>{let{position:de,prefixCls:ge,extra:me}=re;if(!me)return null;const fe=me==null?void 0:me({position:de});return fe?p("div",{class:`${ge}-extra-content`},[fe]):null};return Ze(()=>{Z(),ae()}),()=>{const{id:re,animated:de,activeKey:ge,rtl:me,editable:fe,locale:ye,tabPosition:Se,tabBarGutter:ue,onTabClick:ce}=e,{class:he,style:Pe}=n,Ie=l.value,Ae=!!q.value.length,$e=`${Ie}-nav-wrap`;let xe,we,Me,Ne;f.value?me?(we=g.value>0,xe=g.value+C.value{const{key:it}=Je;return p(PZ,{id:re,prefixCls:Ie,key:it,tab:Je,style:ft===0?void 0:_e,closable:Je.closable,editable:fe,active:it===ge,removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:u(it),onClick:pt=>{ce(it,pt)},onFocus:()=>{ee(it),Y(),i.value&&(me||(i.value.scrollLeft=0),i.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${Ie}-nav`,he),style:Pe,onKeydown:()=>{Y()}},[p(se,{position:"left",prefixCls:Ie,extra:o.leftExtra},null),p(xo,{onResize:K},{default:()=>[p("div",{class:ie($e,{[`${$e}-ping-left`]:xe,[`${$e}-ping-right`]:we,[`${$e}-ping-top`]:Me,[`${$e}-ping-bottom`]:Ne}),ref:i},[p(xo,{onResize:K},{default:()=>[p("div",{ref:a,class:`${Ie}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:j.value?"none":void 0}},[De,p(z6,{ref:c,prefixCls:Ie,locale:ye,editable:fe,style:m(m({},De.length===0?void 0:_e),{visibility:Ae?"hidden":null})},null),p("div",{class:ie(`${Ie}-ink-bar`,{[`${Ie}-ink-bar-animated`]:de.inkBar}),style:pe.value},null)])]})])]}),p(EZ,D(D({},e),{},{removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:s,prefixCls:Ie,tabs:q.value,class:!Ae&&B.value}),gT(o,["moreIcon"])),p(se,{position:"right",prefixCls:Ie,extra:o.rightExtra},null),p(se,{position:"right",prefixCls:Ie,extra:o.tabBarExtraContent},null)])}}}),NZ=oe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=j6();return()=>{const{id:o,activeKey:r,animated:l,tabPosition:i,rtl:a,destroyInactiveTabPane:s}=e,c=l.tabPane,u=n.value,d=t.value.findIndex(f=>f.key===r);return p("div",{class:`${u}-content-holder`},[p("div",{class:[`${u}-content`,`${u}-content-${i}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>dt(f.node,{key:f.key,prefixCls:u,tabKey:f.key,id:o,animated:c,active:f.key===r,destroyInactiveTabPane:s}))])])}}});var FZ={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"};const LZ=FZ;function nw(e){for(var t=1;t{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}`}}}}},[sr(e,"slide-up"),sr(e,"slide-down")]]},jZ=HZ,WZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VZ=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:m(m({},Xe(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:`${o}px 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":m(m({},Gt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},KZ=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},GZ=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},XZ=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:l}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":m({"&:focus:not(:focus-visible), &:active":{color:n}},Rr(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:o},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},UZ=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{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:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},YZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:l,tabsActiveColor:i,colorSplit:a}=e;return{[t]:m(m(m(m({},Xe(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,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:m({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:i}},Rr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),XZ(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},qZ=Ve("Tabs",e=>{const t=e.controlHeightLG,n=Fe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[GZ(n),UZ(n),KZ(n),VZ(n),WZ(n),YZ(n),jZ(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let ow=0;const W6=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ve(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Be(),animated:Le([Boolean,Object]),renderTabBar:ve(),tabBarGutter:{type:Number},tabBarStyle:Re(),tabPosition:Be(),destroyInactiveTabPane:Ce(),hideAdd:Boolean,type:Be(),size:Be(),centered:Boolean,onEdit:ve(),onChange:ve(),onTabClick:ve(),onTabScroll:ve(),"onUpdate:activeKey":ve(),locale:Re(),onPrevClick:ve(),onNextClick:ve(),tabBarExtraContent:V.any});function ZZ(e){return e.map(t=>{if(Kt(t)){const n=m({},t.props||{});for(const[f,g]of Object.entries(n))delete n[f],n[mi(f)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:l=o.tab,disabled:i,forceRender:a,closable:s,animated:c,active:u,destroyInactiveTabPane:d}=n;return m(m({key:r},n),{node:t,closeIcon:o.closeIcon,tab:l,disabled:i===""||i,forceRender:a===""||a,closable:s===""||s,animated:c===""||c,active:u===""||u,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const QZ=oe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:m(m({},qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:at()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;xt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),xt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),xt(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:l,size:i,rootPrefixCls:a,getPopupContainer:s}=Te("tabs",e),[c,u]=qZ(r),d=P(()=>l.value==="rtl"),f=P(()=>{const{animated:w,tabPosition:I}=e;return w===!1||["left","right"].includes(I)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:m({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,v]=vt(!1);je(()=>{v(U0())});const[h,b]=Pt(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=vt(()=>e.tabs.findIndex(w=>w.key===h.value));ke(()=>{var w;let I=e.tabs.findIndex(T=>T.key===h.value);I===-1&&(I=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[I])===null||w===void 0?void 0:w.key)),S(I)});const[$,x]=Pt(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);je(()=>{e.id||(x(`rc-tabs-${ow}`),ow+=1)});const O=(w,I)=>{var T,_;(T=e.onTabClick)===null||T===void 0||T.call(e,w,I);const E=w!==h.value;b(w),E&&((_=e.onChange)===null||_===void 0||_.call(e,w))};return MZ({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:I,tabBarGutter:T,tabBarStyle:_,locale:E,destroyInactiveTabPane:A,renderTabBar:R=o.renderTabBar,onTabScroll:z,hideAdd:M,centered:B}=e,N={id:$.value,activeKey:h.value,animated:f.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let F;I==="editable-card"&&(F={onEdit:(H,Y)=>{let{key:Z,event:U}=Y;var ee;(ee=e.onEdit)===null||ee===void 0||ee.call(e,H==="add"?U:Z,H)},removeIcon:()=>p(Zn,null,null),addIcon:o.addIcon?o.addIcon:()=>p(zZ,null,null),showAdd:M!==!0});let L;const k=m(m({},N),{moreTransitionName:`${a.value}-slide-up`,editable:F,locale:E,tabBarGutter:T,onTabClick:O,onTabScroll:z,style:_,getPopupContainer:s.value,popupClassName:ie(e.popupClassName,u.value)});R?L=R(m(m({},k),{DefaultTabBar:tw})):L=p(tw,k,gT(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const j=r.value;return c(p("div",D(D({},n),{},{id:w,class:ie(j,`${j}-${C.value}`,{[u.value]:!0,[`${j}-${i.value}`]:i.value,[`${j}-card`]:["card","editable-card"].includes(I),[`${j}-editable-card`]:I==="editable-card",[`${j}-centered`]:B,[`${j}-mobile`]:g.value,[`${j}-editable`]:I==="editable-card",[`${j}-rtl`]:d.value},n.class)}),[L,p(NZ,D(D({destroyInactiveTabPane:A},N),{},{animated:f.value}),null)]))}}}),ri=oe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=i=>{r("update:activeKey",i),r("change",i)};return()=>{var i;const a=ZZ(yt((i=o.default)===null||i===void 0?void 0:i.call(o)));return p(QZ,D(D(D({},et(e,["onUpdate:activeKey"])),n),{},{onChange:l,tabs:a}),o)}}}),JZ=()=>({tab:V.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),df=oe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:JZ(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.forceRender);be([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const l=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:a,forceRender:s,id:c,active:u,tabKey:d}=e;return p("div",{id:c&&`${c}-panel-${d}`,role:"tabpanel",tabindex:u?0:-1,"aria-labelledby":c&&`${c}-tab-${d}`,"aria-hidden":!u,style:[l.value,n.style],class:[`${a}-tabpane`,u&&`${a}-tabpane-active`,n.class]},[(u||r.value||s)&&((i=o.default)===null||i===void 0?void 0:i.call(o))])}}});ri.TabPane=df;ri.install=function(e){return e.component(ri.name,ri),e.component(df.name,df),e};const eQ=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return m(m({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},zo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":m(m({display:"inline-block",flex:1},Gt),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},tQ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${r}px 0 0 0 ${n}, - 0 ${r}px 0 0 ${n}, - ${r}px ${r}px 0 0 ${n}, - ${r}px 0 0 0 ${n} inset, - 0 ${r}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},nQ=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:l}=e;return m(m({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},zo()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},oQ=e=>m(m({margin:`-${e.marginXXS}px 0`,display:"flex"},zo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":m({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Gt),"&-description":{color:e.colorTextDescription}}),rQ=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},lQ=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},iQ=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:l,cardPaddingBase:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:eQ(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:m({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},zo()),[`${t}-grid`]:tQ(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:nQ(e),[`${t}-meta`]:oQ(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:rQ(e),[`${t}-loading`]:lQ(e),[`${t}-rtl`]:{direction:"rtl"}}},aQ=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},sQ=Ve("Card",e=>{const t=Fe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[iQ(t),aQ(t)]}),cQ=()=>({prefixCls:String,width:{type:[Number,String]}}),uQ=oe({compatConfig:{MODE:3},name:"SkeletonTitle",props:cQ(),setup(e){return()=>{const{prefixCls:t,width:n}=e,o=typeof n=="number"?`${n}px`:n;return p("h3",{class:t,style:{width:o}},null)}}}),Ap=uQ,dQ=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),fQ=oe({compatConfig:{MODE:3},name:"SkeletonParagraph",props:dQ(),setup(e){const t=n=>{const{width:o,rows:r=2}=e;if(Array.isArray(o))return o[n];if(r-1===n)return o};return()=>{const{prefixCls:n,rows:o}=e,r=[...Array(o)].map((l,i)=>{const a=t(i);return p("li",{key:i,style:{width:typeof a=="number"?`${a}px`:a}},null)});return p("ul",{class:n},[r])}}}),pQ=fQ,Rp=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),V6=e=>{const{prefixCls:t,size:n,shape:o}=e,r=ie({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=ie({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),i=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return p("span",{class:ie(t,r,l),style:i},null)};V6.displayName="SkeletonElement";const Dp=V6,gQ=new nt("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Bp=e=>({height:e,lineHeight:`${e}px`}),da=e=>m({width:e},Bp(e)),hQ=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:gQ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),sh=e=>m({width:e*5,minWidth:e*5},Bp(e)),vQ=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l}=e;return{[`${t}`]:m({display:"inline-block",verticalAlign:"top",background:n},da(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:m({},da(r)),[`${t}${t}-sm`]:m({},da(l))}},mQ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return{[`${o}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},sh(t)),[`${o}-lg`]:m({},sh(r)),[`${o}-sm`]:m({},sh(l))}},rw=e=>m({width:e},Bp(e)),bQ=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:m(m({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},rw(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:m(m({},rw(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ch=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},uh=e=>m({width:e*2,minWidth:e*2},Bp(e)),yQ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return m(m(m(m(m({[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:o*2,minWidth:o*2},uh(o))},ch(e,o,n)),{[`${n}-lg`]:m({},uh(r))}),ch(e,r,`${n}-lg`)),{[`${n}-sm`]:m({},uh(l))}),ch(e,l,`${n}-sm`))},SQ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:f,marginSM:g,borderRadius:v,skeletonTitleHeight:h,skeletonBlockRadius:b,skeletonParagraphLineHeight:y,controlHeightXS:S,skeletonParagraphMarginTop:$}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:d},da(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:m({},da(c)),[`${n}-sm`]:m({},da(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:h,background:d,borderRadius:b,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:b,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:m(m(m(m({display:"inline-block",width:"auto"},yQ(e)),vQ(e)),mQ(e)),bQ(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${o}, - ${r} > li, - ${n}, - ${l}, - ${i}, - ${a} - `]:m({},hQ(e))}}},Fc=Ve("Skeleton",e=>{const{componentCls:t}=e,n=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[SQ(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),$Q=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function dh(e){return e&&typeof e=="object"?e:{}}function CQ(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xQ(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function wQ(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const OQ=oe({compatConfig:{MODE:3},name:"ASkeleton",props:qe($Q(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("skeleton",e),[l,i]=Fc(o);return()=>{var a;const{loading:s,avatar:c,title:u,paragraph:d,active:f,round:g}=e,v=o.value;if(s||e.loading===void 0){const h=!!c||c==="",b=!!u||u==="",y=!!d||d==="";let S;if(h){const C=m(m({prefixCls:`${v}-avatar`},CQ(b,y)),dh(c));S=p("div",{class:`${v}-header`},[p(Dp,C,null)])}let $;if(b||y){let C;if(b){const w=m(m({prefixCls:`${v}-title`},xQ(h,y)),dh(u));C=p(Ap,w,null)}let O;if(y){const w=m(m({prefixCls:`${v}-paragraph`},wQ(h,b)),dh(d));O=p(pQ,w,null)}$=p("div",{class:`${v}-content`},[C,O])}const x=ie(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:f,[`${v}-rtl`]:r.value==="rtl",[`${v}-round`]:g,[i.value]:!0});return l(p("div",{class:x},[S,$]))}return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),On=OQ,PQ=()=>m(m({},Rp()),{size:String,block:Boolean}),IQ=oe({compatConfig:{MODE:3},name:"ASkeletonButton",props:qe(PQ(),{size:"default"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Cy=IQ,TQ=oe({compatConfig:{MODE:3},name:"ASkeletonInput",props:m(m({},et(Rp(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),xy=TQ,EQ="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",MQ=oe({compatConfig:{MODE:3},name:"ASkeletonImage",props:et(Rp(),["size","shape","active"]),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,o.value));return()=>n(p("div",{class:r.value},[p("div",{class:`${t.value}-image`},[p("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[p("path",{d:EQ,class:`${t.value}-image-path`},null)])])]))}}),wy=MQ,_Q=()=>m(m({},Rp()),{shape:String}),AQ=oe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:qe(_Q(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),Oy=AQ;On.Button=Cy;On.Avatar=Oy;On.Input=xy;On.Image=wy;On.Title=Ap;On.install=function(e){return e.component(On.name,On),e.component(On.Button.name,Cy),e.component(On.Avatar.name,Oy),e.component(On.Input.name,xy),e.component(On.Image.name,wy),e.component(On.Title.name,Ap),e};const{TabPane:RQ}=ri,DQ=()=>({prefixCls:String,title:V.any,extra:V.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:V.any,tabList:{type:Array},tabBarExtraContent:V.any,activeTabKey:String,defaultActiveTabKey:String,cover:V.any,onTabChange:{type:Function}}),BQ=oe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:DQ(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,size:i}=Te("card",e),[a,s]=sQ(r),c=f=>f.map((v,h)=>Yt(v)&&!wc(v)||!Yt(v)?p("li",{style:{width:`${100/f.length}%`},key:`action-${h}`},[p("span",null,[v])]):null),u=f=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return f.forEach(v=>{v&&mb(v.type)&&v.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var f,g,v,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:I,activeTabKey:T,defaultActiveTabKey:_,tabBarExtraContent:E=Ja((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:A=Ja((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:R=Ja((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:z=Ja((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:M=Ja((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,B=yt((y=n.default)===null||y===void 0?void 0:y.call(n)),N=r.value,F={[`${N}`]:!0,[s.value]:!0,[`${N}-loading`]:x,[`${N}-bordered`]:C,[`${N}-hoverable`]:!!I,[`${N}-contain-grid`]:d(B),[`${N}-contain-tabs`]:w&&w.length,[`${N}-${i.value}`]:i.value,[`${N}-type-${O}`]:!!O,[`${N}-rtl`]:l.value==="rtl"},L=p(On,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[B]}),k=T!==void 0,j={size:"large",[k?"activeKey":"defaultActiveKey"]:k?T:_,onChange:u,class:`${N}-head-tabs`};let H;const Y=w&&w.length?p(ri,j,{default:()=>[w.map(G=>{const{tab:J,slots:Q}=G,K=Q==null?void 0:Q.tab;xt(!Q,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=J!==void 0?J:n[K]?n[K](G):null;return q=np(n,"customTab",G,()=>[q]),p(RQ,{tab:q,key:G.key,disabled:G.disabled},null)})],rightExtra:E?()=>E:null}):null;(A||R||Y)&&(H=p("div",{class:`${N}-head`,style:S},[p("div",{class:`${N}-head-wrapper`},[A&&p("div",{class:`${N}-head-title`},[A]),R&&p("div",{class:`${N}-extra`},[R])]),Y]));const Z=M?p("div",{class:`${N}-cover`},[M]):null,U=p("div",{class:`${N}-body`,style:$},[x?L:B]),ee=z&&z.length?p("ul",{class:`${N}-actions`},[c(z)]):null;return a(p("div",D(D({ref:"cardContainerRef"},o),{},{class:[F,o.class]}),[H,Z,B&&B.length?U:null,ee]))}}}),fa=BQ,NQ=()=>({prefixCls:String,title:In(),description:In(),avatar:In()}),ff=oe({compatConfig:{MODE:3},name:"ACardMeta",props:NQ(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e);return()=>{const r={[`${o.value}-meta`]:!0},l=qt(n,e,"avatar"),i=qt(n,e,"title"),a=qt(n,e,"description"),s=l?p("div",{class:`${o.value}-meta-avatar`},[l]):null,c=i?p("div",{class:`${o.value}-meta-title`},[i]):null,u=a?p("div",{class:`${o.value}-meta-description`},[a]):null,d=c||u?p("div",{class:`${o.value}-meta-detail`},[c,u]):null;return p("div",{class:r},[s,d])}}}),FQ=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),pf=oe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:FQ(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var l;return p("div",{class:r.value},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}});fa.Meta=ff;fa.Grid=pf;fa.install=function(e){return e.component(fa.name,fa),e.component(ff.name,ff),e.component(pf.name,pf),e};const LQ=()=>({prefixCls:String,activeKey:Le([Array,Number,String]),defaultActiveKey:Le([Array,Number,String]),accordion:Ce(),destroyInactivePanel:Ce(),bordered:Ce(),expandIcon:ve(),openAnimation:V.object,expandIconPosition:Be(),collapsible:Be(),ghost:Ce(),onChange:ve(),"onUpdate:activeKey":ve()}),K6=()=>({openAnimation:V.object,prefixCls:String,header:V.any,headerClass:String,showArrow:Ce(),isActive:Ce(),destroyInactivePanel:Ce(),disabled:Ce(),accordion:Ce(),forceRender:Ce(),expandIcon:ve(),extra:V.any,panelKey:Le(),collapsible:Be(),role:String,onItemClick:ve()}),kQ=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:l,collapseHeaderPadding:i,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:f,colorTextDisabled:g,fontSize:v,lineHeight:h,marginSM:b,paddingSM:y,motionDurationSlow:S,fontSizeIcon:$}=e,x=`${s}px ${c} ${u}`;return{[t]:m(m({},Xe(e)),{backgroundColor:l,border:x,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*h,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:m(m({},yi()),{fontSize:$,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:y}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},zQ=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HQ=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},jQ=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},WQ=Ve("Collapse",e=>{const t=Fe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[kQ(t),HQ(t),jQ(t),zQ(t),Ac(t)]});function lw(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Rs=oe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:qe(LQ(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=le(lw(qd([e.activeKey,e.defaultActiveKey])));be(()=>e.activeKey,()=>{l.value=lw(e.activeKey)},{deep:!0});const{prefixCls:i,direction:a,rootPrefixCls:s}=Te("collapse",e),[c,u]=WQ(i),d=P(()=>{const{expandIconPosition:y}=e;return y!==void 0?y:a.value==="rtl"?"end":"start"}),f=y=>{const{expandIcon:S=o.expandIcon}=e,$=S?S(y):p(Wo,{rotate:y.isActive?90:void 0},null);return p("div",{class:[`${i.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&v(y.panelKey)},[Kt(Array.isArray(S)?$[0]:$)?dt($,{class:`${i.value}-arrow`},!1):$])},g=y=>{e.activeKey===void 0&&(l.value=y);const S=e.accordion?y[0]:y;r("update:activeKey",S),r("change",S)},v=y=>{let S=l.value;if(e.accordion)S=S[0]===y?[]:[y];else{S=[...S];const $=S.indexOf(y);$>-1?S.splice($,1):S.push(y)}g(S)},h=(y,S)=>{var $,x,C;if(wc(y))return;const O=l.value,{accordion:w,destroyInactivePanel:I,collapsible:T,openAnimation:_}=e,E=_||Rc(`${s.value}-motion-collapse`),A=String(($=y.key)!==null&&$!==void 0?$:S),{header:R=(C=(x=y.children)===null||x===void 0?void 0:x.header)===null||C===void 0?void 0:C.call(x),headerClass:z,collapsible:M,disabled:B}=y.props||{};let N=!1;w?N=O[0]===A:N=O.indexOf(A)>-1;let F=M??T;(B||B==="")&&(F="disabled");const L={key:A,panelKey:A,header:R,headerClass:z,isActive:N,prefixCls:i.value,destroyInactivePanel:I,openAnimation:E,accordion:w,onItemClick:F==="disabled"?null:v,expandIcon:f,collapsible:F};return dt(y,L)},b=()=>{var y;return yt((y=o.default)===null||y===void 0?void 0:y.call(o)).map(h)};return()=>{const{accordion:y,bordered:S,ghost:$}=e,x=ie(i.value,{[`${i.value}-borderless`]:!S,[`${i.value}-icon-position-${d.value}`]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-ghost`]:!!$,[n.class]:!!n.class},u.value);return c(p("div",D(D({class:x},RR(n)),{},{style:n.style,role:y?"tablist":null}),[b()]))}}}),VQ=oe({compatConfig:{MODE:3},name:"PanelContent",props:K6(),setup(e,t){let{slots:n}=t;const o=te(!1);return ke(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var r;if(!o.value)return null;const{prefixCls:l,isActive:i,role:a}=e;return p("div",{class:ie(`${l}-content`,{[`${l}-content-active`]:i,[`${l}-content-inactive`]:!i}),role:a},[p("div",{class:`${l}-content-box`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}}),gf=oe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:qe(K6(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;xt(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:l}=Te("collapse",e),i=()=>{o("itemClick",e.panelKey)},a=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&i()};return()=>{var s,c;const{header:u=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:g,destroyInactivePanel:v,accordion:h,forceRender:b,openAnimation:y,expandIcon:S=n.expandIcon,extra:$=(c=n.extra)===null||c===void 0?void 0:c.call(n),collapsible:x}=e,C=x==="disabled",O=l.value,w=ie(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:x==="header",[`${O}-icon-collapsible-only`]:x==="icon"}),I=ie({[`${O}-item`]:!0,[`${O}-item-active`]:f,[`${O}-item-disabled`]:C,[`${O}-no-arrow`]:!g,[`${r.class}`]:!!r.class});let T=p("i",{class:"arrow"},null);g&&typeof S=="function"&&(T=S(e));const _=$n(p(VQ,{prefixCls:O,isActive:f,forceRender:b,role:h?"tabpanel":null},{default:n.default}),[[En,f]]),E=m({appear:!1,css:!1},y);return p("div",D(D({},r),{},{class:I}),[p("div",{class:w,onClick:()=>!["header","icon"].includes(x)&&i(),role:h?"tab":"button",tabindex:C?-1:0,"aria-expanded":f,onKeypress:a},[g&&T,p("span",{onClick:()=>x==="header"&&i(),class:`${O}-header-text`},[u]),$&&p("div",{class:`${O}-extra`},[$])]),p(cn,E,{default:()=>[!v||f?_:null]})])}}});Rs.Panel=gf;Rs.install=function(e){return e.component(Rs.name,Rs),e.component(gf.name,gf),e};const KQ=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},GQ=function(e){return/[height|width]$/.test(e)},iw=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let l=e[o];o=KQ(o),GQ(o)&&typeof l=="number"&&(l=l+"px"),l===!0?t+=o:l===!1?t+="not "+o:t+="("+o+": "+l+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},hf=e=>{const t=[],n=X6(e),o=U6(e);for(let r=n;re.currentSlide-qQ(e),U6=e=>e.currentSlide+ZQ(e),qQ=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,ZQ=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Zv=e=>e&&e.offsetWidth||0,Py=e=>e&&e.offsetHeight||0,Y6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,l=Math.atan2(r,o);return n=Math.round(l*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Np=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},ph=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},QQ=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(Zv(n)),r=e.trackRef,l=Math.ceil(Zv(r));let i;if(e.vertical)i=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),i=Math.ceil((o-g)/e.slidesToShow)}const a=n&&Py(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=hf(m(m({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const f={slideCount:t,slideWidth:i,listWidth:o,trackWidth:l,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},JQ=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:l,slideCount:i,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let v=l,h,b,y,S={},$={};const x=r?l:qv(l,0,i-1);if(o){if(!r&&(l<0||l>=i))return{};l<0?v=l+i:l>=i&&(v=l-i),a&&g.indexOf(v)<0&&(g=g.concat(v)),S={animating:!0,currentSlide:v,lazyLoadedList:g,targetSlide:v},$={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+i,r?i%u!==0&&(h=i-i%u):h=0):!Np(e)&&v>s?v=h=s:c&&v>=i?(v=r?i:i-1,h=r?0:i-1):v>=i&&(h=v-i,r?i%u!==0&&(h=0):h=i-d),!r&&v+d>=i&&(h=i-d),b=hc(m(m({},e),{slideIndex:v})),y=hc(m(m({},e),{slideIndex:h})),r||(b===y&&(v=h),b=y),a&&(g=g.concat(hf(m(m({},e),{currentSlide:v})))),f?(S={animating:!0,currentSlide:h,trackStyle:q6(m(m({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},eJ=(e,t)=>{let n,o,r;const{slidesToScroll:l,slidesToShow:i,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,g=a%l!==0?0:(a-s)%l;if(t.message==="previous")o=g===0?l:i-g,r=s-o,u&&!d&&(n=s-o,r=n===-1?a-1:n),d||(r=c-l);else if(t.message==="next")o=g===0?l:g,r=s+o,u&&!d&&(r=(s+l)%a+g),d||(r=c+l);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const v=aJ(m(m({},e),{targetSlide:r}));r>t.currentSlide&&v==="left"?r=r-a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",nJ=(e,t,n)=>(e.target.tagName==="IMG"&&pa(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),oJ=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:l,verticalSwiping:i,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:f,swiping:g,slideCount:v,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return pa(e);r&&l&&i&&pa(e);let C,O={};const w=hc(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!i&&!g&&I>10)return{scrolling:!0};i&&(y.swipeLength=I);let T=(a?-1:1)*(y.curX>y.startX?1:-1);i&&(T=y.curY>y.startY?1:-1);const _=Math.ceil(v/h),E=Y6(t.touchObject,i);let A=y.swipeLength;return b||(s===0&&(E==="right"||E==="down")||s+1>=_&&(E==="left"||E==="up")||!Np(t)&&(E==="left"||E==="up"))&&(A=y.swipeLength*c,u===!1&&d&&(d(E),O.edgeDragged=!0)),!f&&S&&(S(E),O.swiped=!0),r?C=w+A*($/x)*T:a?C=w-A*T:C=w+A*T,i&&(C=w+A*T),O=m(m({},O),{touchObject:y,swipeLeft:C,trackStyle:gc(m(m({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,pa(e)),O},rJ=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:l,touchThreshold:i,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:f,currentSlide:g,infinite:v}=t;if(!n)return o&&pa(e),{};const h=a?s/i:l/i,b=Y6(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!r.swipeLength)return y;if(r.swipeLength>h){pa(e),d&&d(b);let S,$;const x=v?g:f;switch(b){case"left":case"up":$=x+sw(t),S=c?aw(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-sw(t),S=c?aw(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=hc(t);y.trackStyle=q6(m(m({},t),{left:S}))}return y},lJ=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=lJ(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(a=>{if(e.vertical){if(a.offsetTop+Py(a)/2>e.swipeLeft*-1)return n=a,!1}else if(a.offsetLeft-t+Zv(a)/2>e.swipeLeft*-1)return n=a,!1;return!0}),!n)return 0;const l=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-l)||1}else return e.slidesToScroll},Iy=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),gc=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=iJ(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=m(m({},r),{WebkitTransform:l,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},q6=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=gc(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},hc=e=>{if(e.unslick)return 0;Iy(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:l,slidesToShow:i,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:f,vertical:g}=e;let v=0,h,b,y=0;if(f||e.slideCount===1)return 0;let S=0;if(o?(S=-Tr(e),l%a!==0&&t+a>l&&(S=-(t>l?i-(t-l):l%a)),r&&(S+=parseInt(i/2))):(l%a!==0&&t+a>l&&(S=i-l%a),r&&(S=parseInt(i/2))),v=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+v,u===!0){let $;const x=n;if($=t+Tr(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+Tr(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(c-b.offsetWidth)/2}}return h},Tr=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Xu=e=>e.unslick||!e.infinite?0:e.slideCount,iJ=e=>e.slideCount===1?1:Tr(e)+e.slideCount+Xu(e),aJ=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+sJ(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),o&&t%2===0&&(l+=1),l}return o?0:t-1},cJ=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),!o&&t%2===0&&(l+=1),l}return o?t-1:0},cw=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),gh=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const l=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?i=e.targetSlide-e.slideCount:i=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":l,"slick-current":r===i}},uJ=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},hh=(e,t)=>e.key+"-"+t,dJ=function(e,t){let n;const o=[],r=[],l=[],i=t.length,a=X6(e),s=U6(e);return t.forEach((c,u)=>{let d;const f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d=c:d=p("div");const g=uJ(m(m({},e),{index:u})),v=d.props.class||"";let h=gh(m(m({},e),{index:u}));if(o.push(Is(d,{key:"original"+hh(d,u),tabindex:"-1","data-index":u,"aria-hidden":!h["slick-active"],class:ie(h,v),style:m(m({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const b=i-u;b<=Tr(e)&&i!==e.slidesToShow&&(n=-b,n>=a&&(d=c),h=gh(m(m({},e),{index:n})),r.push(Is(d,{key:"precloned"+hh(d,n),class:ie(h,v),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:m(m({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),i!==e.slidesToShow&&(n=i+u,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?r.concat(o,l).reverse():r.concat(o,l)},Z6=(e,t)=>{let{attrs:n,slots:o}=t;const r=dJ(n,yt(o==null?void 0:o.default())),{onMouseenter:l,onMouseover:i,onMouseleave:a}=n,s={onMouseenter:l,onMouseover:i,onMouseleave:a},c=m({class:"slick-track",style:n.trackStyle},s);return p("div",c,[r])};Z6.inheritAttrs=!1;const fJ=Z6,pJ=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},Q6=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:f,onMouseover:g,onMouseleave:v}=n,h=pJ({slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i}),b={onMouseenter:f,onMouseover:g,onMouseleave:v};let y=[];for(let S=0;S=O&&a<=x:a===O}),I={message:"dots",index:S,slidesToScroll:r,currentSlide:a};y=y.concat(p("li",{key:S,class:w},[dt(c({i:S}),{onClick:T})]))}return dt(s({dots:y}),m({class:d},b))};Q6.inheritAttrs=!1;const gJ=Q6;function J6(){}function e8(e,t,n){n&&n.preventDefault(),t(e,n)}const t8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:l,slideCount:i,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(g){e8({message:"previous"},o,g)};!r&&(l===0||i<=a)&&(s["slick-disabled"]=!0,c=J6);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:l,slideCount:i};let f;return n.prevArrow?f=dt(n.prevArrow(m(m({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):f=p("button",D({key:"0",type:"button"},u),[" ",Lt("Previous")]),f};t8.inheritAttrs=!1;const n8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:l}=n,i={"slick-arrow":!0,"slick-next":!0};let a=function(d){e8({message:"next"},o,d)};Np(n)||(i["slick-disabled"]=!0,a=J6);const s={key:"1","data-role":"none",class:ie(i),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:l};let u;return n.nextArrow?u=dt(n.nextArrow(m(m({},s),c)),{key:"1",class:ie(i),style:{display:"block"},onClick:a},!1):u=p("button",D({key:"1",type:"button"},s),[" ",Lt("Next")]),u};n8.inheritAttrs=!1;var hJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=m({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=m({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new f0(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=Py(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Sb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=m(m({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=QQ(e);e=m(m(m({},e),o),{slideIndex:o.currentSlide});const r=hc(e);e=m(m({},e),{left:r});const l=gc(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=l),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,c=0;const u=[],d=Tr(m(m(m({},this.$props),this.$data),{slideCount:e.length})),f=Xu(m(m(m({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var h,b;const y=((b=(h=v.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;u.push(y),s+=y});for(let v=0;v{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const l=o.onclick;o.onclick=()=>{l(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=m(m({},this.$props),this.$data);for(let n=this.currentSlide;n=-Tr(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,beforeChange:o,speed:r,afterChange:l}=this.$props,{state:i,nextState:a}=JQ(m(m(m({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;o&&o(this.currentSlide,i.currentSlide);const s=i.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&s.length>0&&this.__emit("lazyLoad",s),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(this.currentSlide),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=a,u=hJ(a,["animating"]);this.setState(u,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),l&&l(i.currentSlide),delete this.animationEndCallback})},r))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=m(m({},this.$props),this.$data),o=eJ(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=tJ(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=nJ(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=oJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=rJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Np(m(m({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return p("button",null,[t+1])},appendDots(e){let{dots:t}=e;return p("ul",{style:{display:"block"}},[t])}},render(){const e=ie("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=m(m({},this.$props),this.$data);let n=ph(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=m(m({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:to,onMouseover:o?this.onTrackOver:to});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=ph(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=m(m({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:to,onMouseleave:$?this.onDotsLeave:to}),r=p(gJ,b,null)}let l,i;const a=ph(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(l=p(t8,a,null),i=p(n8,a,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=m(m({},u),d),g=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:g?this.swipeStart:to,onMousemove:this.dragging&&g?this.swipeMove:to,onMouseup:g?this.swipeEnd:to,onMouseleave:this.dragging&&g?this.swipeEnd:to,[nn?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:to,[nn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:to,onTouchend:g?this.touchEnd:to,onTouchcancel:this.dragging&&g?this.swipeEnd:to,onKeydown:this.accessibility?this.keyHandler:to},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},h={class:e}),p("div",h,[this.unslick?"":l,p("div",v,[p(fJ,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":r])}},mJ=oe({name:"Slider",mixins:[xi],inheritAttrs:!1,props:m({},G6),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=fh({minWidth:0,maxWidth:n}):r=fh({minWidth:e[o-1]+1,maxWidth:n}),cw()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=fh({minWidth:e.slice(-1)[0]});cw()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:l}=r;l&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(a=>a.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":m(m({},this.$props),n[0].settings)):t=m({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=Gf(this)||[];o=o.filter(a=>typeof a=="string"?!!a.trim():!!a),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let l=null;for(let a=0;a=o.length));d+=1)u.push(dt(o[d],{key:100*a+10*c+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(p("div",{key:10*a+c},[u]))}t.variableWidth?r.push(p("div",{key:a,style:{width:l}},[s])):r.push(p("div",{key:a},[s]))}if(t==="unslick"){const a="regular slider "+(this.className||"");return p("div",{class:a},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const i=m(m(m({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return p(vJ,D(D({},i),{},{__propsSymbol__:[]}),this.$slots)}}),bJ=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:l}=e,i=-o*1.25,a=l;return{[t]:m(m({},Xe(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},yJ=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:m(m({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":m(m({},r),{button:r})})}}}},SJ=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},$J=Ve("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Fe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[bJ(o),yJ(o),SJ(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var CJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:Be(),dots:Ce(!0),vertical:Ce(),autoplay:Ce(),easing:String,beforeChange:ve(),afterChange:ve(),prefixCls:String,accessibility:Ce(),nextArrow:V.any,prevArrow:V.any,pauseOnHover:Ce(),adaptiveHeight:Ce(),arrows:Ce(!1),autoplaySpeed:Number,centerMode:Ce(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Ce(!1),fade:Ce(),focusOnSelect:Ce(),infinite:Ce(),initialSlide:Number,lazyLoad:Be(),rtl:Ce(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Ce(),swipeToSlide:Ce(),swipeEvent:ve(),touchMove:Ce(),touchThreshold:Number,variableWidth:Ce(),useCSS:Ce(),slickGoTo:Number,responsive:Array,dotPosition:Be(),verticalSwiping:Ce(!1)}),wJ=oe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:xJ(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();r({goTo:function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=l.value)===null||b===void 0||b.slickGoTo(v,h)},autoplay:v=>{var h,b;(b=(h=l.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(v)},prev:()=>{var v;(v=l.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=l.value)===null||v===void 0||v.slickNext()},innerSlider:P(()=>{var v;return(v=l.value)===null||v===void 0?void 0:v.innerSlider})}),ke(()=>{It(e.vertical===void 0)});const{prefixCls:a,direction:s}=Te("carousel",e),[c,u]=$J(a),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const v="slick-dots";return ie({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=CJ(o,["class","style"]),C=y==="fade"?!0:e.fade,O=ie(a.value,{[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-vertical`]:f.value,[`${S}`]:!!S},u.value);return c(p("div",{class:O,style:$},[p(mJ,D(D(D({ref:l},e),x),{},{dots:!!v,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:f.value}),n)]))}}}),OJ=Tt(wJ),Ty="__RC_CASCADER_SPLIT__",o8="SHOW_PARENT",r8="SHOW_CHILD";function gl(e){return e.join(Ty)}function Zi(e){return e.map(gl)}function PJ(e){return e.split(Ty)}function IJ(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function cs(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function TJ(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const l8=Symbol("TreeContextKey"),EJ=oe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(l8,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Ey=()=>He(l8,P(()=>({}))),i8=Symbol("KeysStateKey"),MJ=e=>{Ge(i8,e)},a8=()=>He(i8,{expandedKeys:te([]),selectedKeys:te([]),loadedKeys:te([]),loadingKeys:te([]),checkedKeys:te([]),halfCheckedKeys:te([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:te([])}),_J=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const l=`${t}-indent-unit`,i=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:V.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:V.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:V.any,switcherIcon:V.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var DJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+ue+"` ")}`;const l=te(!1),i=Ey(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:f}=a8(),{dragOverNodeKey:g,dropPosition:v,keyEntities:h}=i.value,b=P(()=>Uu(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:g,dropPosition:v,keyEntities:h})),y=ro(()=>b.value.expanded),S=ro(()=>b.value.selected),$=ro(()=>b.value.checked),x=ro(()=>b.value.loaded),C=ro(()=>b.value.loading),O=ro(()=>b.value.halfChecked),w=ro(()=>b.value.dragOver),I=ro(()=>b.value.dragOverGapTop),T=ro(()=>b.value.dragOverGapBottom),_=ro(()=>b.value.pos),E=te(),A=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{children:he}=ce[ue]||{};return!!(he||[]).length}),R=P(()=>{const{isLeaf:ue}=e,{loadData:ce}=i.value,he=A.value;return ue===!1?!1:ue||!ce&&!he||ce&&x.value&&!he}),z=P(()=>R.value?null:y.value?uw:dw),M=P(()=>{const{disabled:ue}=e,{disabled:ce}=i.value;return!!(ce||ue)}),B=P(()=>{const{checkable:ue}=e,{checkable:ce}=i.value;return!ce||ue===!1?!1:ce}),N=P(()=>{const{selectable:ue}=e,{selectable:ce}=i.value;return typeof ue=="boolean"?ue:ce}),F=P(()=>{const{data:ue,active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae}=e;return m(m({active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae},ue),{dataRef:ue,data:ue,isLeaf:R.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),L=pn(),k=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{parent:he}=ce[ue]||{};return m(m({},Yu(m({},e,b.value))),{parent:he})}),j=ut({eventData:k,eventKey:P(()=>e.eventKey),selectHandle:E,pos:_,key:L.vnode.key});r(j);const H=ue=>{const{onNodeDoubleClick:ce}=i.value;ce(ue,k.value)},Y=ue=>{if(M.value)return;const{onNodeSelect:ce}=i.value;ue.preventDefault(),ce(ue,k.value)},Z=ue=>{if(M.value)return;const{disableCheckbox:ce}=e,{onNodeCheck:he}=i.value;if(!B.value||ce)return;ue.preventDefault();const Pe=!$.value;he(ue,k.value,Pe)},U=ue=>{const{onNodeClick:ce}=i.value;ce(ue,k.value),N.value?Y(ue):Z(ue)},ee=ue=>{const{onNodeMouseEnter:ce}=i.value;ce(ue,k.value)},G=ue=>{const{onNodeMouseLeave:ce}=i.value;ce(ue,k.value)},J=ue=>{const{onNodeContextMenu:ce}=i.value;ce(ue,k.value)},Q=ue=>{const{onNodeDragStart:ce}=i.value;ue.stopPropagation(),l.value=!0,ce(ue,j);try{ue.dataTransfer.setData("text/plain","")}catch{}},K=ue=>{const{onNodeDragEnter:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},q=ue=>{const{onNodeDragOver:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},pe=ue=>{const{onNodeDragLeave:ce}=i.value;ue.stopPropagation(),ce(ue,j)},W=ue=>{const{onNodeDragEnd:ce}=i.value;ue.stopPropagation(),l.value=!1,ce(ue,j)},X=ue=>{const{onNodeDrop:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),l.value=!1,ce(ue,j)},ne=ue=>{const{onNodeExpand:ce}=i.value;C.value||ce(ue,k.value)},ae=()=>{const{data:ue}=e,{draggable:ce}=i.value;return!!(ce&&(!ce.nodeDraggable||ce.nodeDraggable(ue)))},se=()=>{const{draggable:ue,prefixCls:ce}=i.value;return ue&&(ue!=null&&ue.icon)?p("span",{class:`${ce}-draggable-icon`},[ue.icon]):null},re=()=>{var ue,ce,he;const{switcherIcon:Pe=o.switcherIcon||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.switcherIcon])}=e,{switcherIcon:Ie}=i.value,Ae=Pe||Ie;return typeof Ae=="function"?Ae(F.value):Ae},de=()=>{const{loadData:ue,onNodeLoad:ce}=i.value;C.value||ue&&y.value&&!R.value&&!A.value&&!x.value&&ce(k.value)};je(()=>{de()}),An(()=>{de()});const ge=()=>{const{prefixCls:ue}=i.value,ce=re();if(R.value)return ce!==!1?p("span",{class:ie(`${ue}-switcher`,`${ue}-switcher-noop`)},[ce]):null;const he=ie(`${ue}-switcher`,`${ue}-switcher_${y.value?uw:dw}`);return ce!==!1?p("span",{onClick:ne,class:he},[ce]):null},me=()=>{var ue,ce;const{disableCheckbox:he}=e,{prefixCls:Pe}=i.value,Ie=M.value;return B.value?p("span",{class:ie(`${Pe}-checkbox`,$.value&&`${Pe}-checkbox-checked`,!$.value&&O.value&&`${Pe}-checkbox-indeterminate`,(Ie||he)&&`${Pe}-checkbox-disabled`),onClick:Z},[(ce=(ue=i.value).customCheckable)===null||ce===void 0?void 0:ce.call(ue)]):null},fe=()=>{const{prefixCls:ue}=i.value;return p("span",{class:ie(`${ue}-iconEle`,`${ue}-icon__${z.value||"docu"}`,C.value&&`${ue}-icon_loading`)},null)},ye=()=>{const{disabled:ue,eventKey:ce}=e,{draggable:he,dropLevelOffset:Pe,dropPosition:Ie,prefixCls:Ae,indent:$e,dropIndicatorRender:xe,dragOverNodeKey:we,direction:Me}=i.value;return!ue&&he!==!1&&we===ce?xe({dropPosition:Ie,dropLevelOffset:Pe,indent:$e,prefixCls:Ae,direction:Me}):null},Se=()=>{var ue,ce,he,Pe,Ie,Ae;const{icon:$e=o.icon,data:xe}=e,we=o.title||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.title])||((Pe=i.value.slots)===null||Pe===void 0?void 0:Pe.title)||e.title,{prefixCls:Me,showIcon:Ne,icon:_e,loadData:De}=i.value,Je=M.value,ft=`${Me}-node-content-wrapper`;let it;if(Ne){const Ut=$e||((Ie=i.value.slots)===null||Ie===void 0?void 0:Ie[(Ae=xe==null?void 0:xe.slots)===null||Ae===void 0?void 0:Ae.icon])||_e;it=Ut?p("span",{class:ie(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ut=="function"?Ut(F.value):Ut]):fe()}else De&&C.value&&(it=fe());let pt;typeof we=="function"?pt=we(F.value):pt=we,pt=pt===void 0?BJ:pt;const ht=p("span",{class:`${Me}-title`},[pt]);return p("span",{ref:E,title:typeof we=="string"?we:"",class:ie(`${ft}`,`${ft}-${z.value||"normal"}`,!Je&&(S.value||l.value)&&`${Me}-node-selected`),onMouseenter:ee,onMouseleave:G,onContextmenu:J,onClick:U,onDblclick:H},[it,ht,ye()])};return()=>{const ue=m(m({},e),n),{eventKey:ce,isLeaf:he,isStart:Pe,isEnd:Ie,domRef:Ae,active:$e,data:xe,onMousemove:we,selectable:Me}=ue,Ne=DJ(ue,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:De,keyEntities:Je,dropContainerKey:ft,dropTargetKey:it,draggingNodeKey:pt}=i.value,ht=M.value,Ut=wl(Ne,{aria:!0,data:!0}),{level:Jt}=Je[ce]||{},rn=Ie[Ie.length-1],jt=ae(),xn=!ht&&jt,Wn=pt===ce,uo=Me!==void 0?{"aria-selected":!!Me}:void 0;return p("div",D(D({ref:Ae,class:ie(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:ht,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!he,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:$e,[`${_e}-treenode-leaf-last`]:rn,[`${_e}-treenode-draggable`]:xn,dragging:Wn,"drop-target":it===ce,"drop-container":ft===ce,"drag-over":!ht&&w.value,"drag-over-gap-top":!ht&&I.value,"drag-over-gap-bottom":!ht&&T.value,"filter-node":De&&De(k.value)}),style:n.style,draggable:xn,"aria-grabbed":Wn,onDragstart:xn?Q:void 0,onDragenter:jt?K:void 0,onDragover:jt?q:void 0,onDragleave:jt?pe:void 0,onDrop:jt?X:void 0,onDragend:jt?W:void 0,onMousemove:we},uo),Ut),[p(AJ,{prefixCls:_e,level:Jt,isStart:Pe,isEnd:Ie},null),se(),ge(),me(),Se()])}}});globalThis&&globalThis.__rest;function qo(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function mr(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function My(e){return e.split("-")}function u8(e,t){return`${e}-${t}`}function NJ(e){return e&&e.type&&e.type.isTreeNode}function FJ(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:a,children:s}=i;n.push(a),r(s)})}return r(o.children),n}function LJ(e){if(e.parent){const t=My(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kJ(e){const t=My(e.pos);return Number(t[t.length-1])===0}function fw(e,t,n,o,r,l,i,a,s,c){var u;const{clientX:d,clientY:f}=e,{top:g,height:v}=e.target.getBoundingClientRect(),b=((c==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-d)-12)/o;let y=a[n.eventKey];if(fR.key===y.key),E=_<=0?0:_-1,A=i[E].key;y=a[A]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let _=0;_-1.5?l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:0})?C=0:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((u=y.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:T}}function pw(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function vh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Jv(e,t){const n=new Set;function o(r){if(n.has(r))return;const l=t[r];if(!l)return;n.add(r);const{parent:i,node:a}=l;a.disabled||i&&o(i.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var zJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(r=>{var l,i,a,s;if(!NJ(r))return null;const c=r.children||{},u=r.key,d={};for(const[_,E]of Object.entries(r.props))d[mi(_)]=E;const{isLeaf:f,checkable:g,selectable:v,disabled:h,disableCheckbox:b}=d,y={isLeaf:f||f===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=m(m({},d),y),{title:$=(l=c.title)===null||l===void 0?void 0:l.call(c,S),icon:x=(i=c.icon)===null||i===void 0?void 0:i.call(c,S),switcherIcon:C=(a=c.switcherIcon)===null||a===void 0?void 0:a.call(c,S)}=d,O=zJ(d,["title","icon","switcherIcon"]),w=(s=c.default)===null||s===void 0?void 0:s.call(c),I=m(m(m({},O),{title:$,icon:x,switcherIcon:C,key:u,isLeaf:f}),y),T=t(w);return T.length&&(I.children=T),I})}return t(e)}function HJ(e,t,n){const{_title:o,key:r,children:l}=Fp(n),i=new Set(t===!0?[]:t),a=[];function s(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map((d,f)=>{const g=u8(u?u.pos:"0",f),v=Lc(d[r],g);let h;for(let y=0;yf[l]:typeof l=="function"&&(u=f=>l(f)):u=(f,g)=>Lc(f[a],g);function d(f,g,v,h){const b=f?f[c]:e,y=f?u8(v.pos,g):"0",S=f?[...h,f]:[];if(f){const $=u(f,y),x={node:f,index:g,pos:y,key:$,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:f,pos:y,level:v?v.level+1:-1},S)})}d(null)}function kc(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:l,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;const s=r||a,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),jJ(e,f=>{const{node:g,index:v,pos:h,key:b,parentPos:y,level:S,nodes:$}=f,x={node:g,nodes:$,index:v,key:b,pos:h,level:S},C=Lc(b,h);c[h]=x,u[C]=x,x.parent=c[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:l,fieldNames:i}),o&&o(d),d}function Uu(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:l,checkedKeysSet:i,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:l.has(e),checked:i.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function Yu(e){const{data:t,expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g}=e,v=m(m({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const WJ=(e,t)=>P(()=>kc(e.value,{fieldNames:t.value,initWrapper:o=>m(m({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const l=o.nodes.map(i=>i[t.value.value]).join(Ty);r.pathKeyEntities[l]=o,o.key=l}}).pathKeyEntities);function VJ(e){const t=te(!1),n=le({});return ke(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=m(m({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ds="__rc_cascader_search_mark__",KJ=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},GJ=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},XJ=(e,t,n,o,r,l)=>P(()=>{const{filter:i=KJ,render:a=GJ,limit:s=50,sort:c}=r.value,u=[];if(!e.value)return[];function d(f,g){f.forEach(v=>{if(!c&&s>0&&u.length>=s)return;const h=[...g,v],b=v[n.value.children];(!b||b.length===0||l.value)&&i(e.value,h,{label:n.value.label})&&u.push(m(m({},v),{[n.value.label]:a({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ds]:h})),b&&d(v[n.value.children],h)})}return d(t.value,[]),c&&u.sort((f,g)=>c(f[Ds],g[Ds],e.value,n.value)),s>0?u.slice(0,s):u});function gw(e,t,n){const o=new Set(e);return e.filter(r=>{const l=t[r],i=l?l.parent:null,a=l?l.children:null;return n===r8?!(a&&a.some(s=>s.key&&o.has(s.key))):!(i&&!i.node.disabled&&o.has(i.key))})}function vc(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let l=t;const i=[];for(let a=0;a{const f=d[n.value];return o?String(f)===String(s):f===s}),u=c!==-1?l==null?void 0:l[c]:null;i.push({value:(r=u==null?void 0:u[n.value])!==null&&r!==void 0?r:s,index:c,option:u}),l=u==null?void 0:u[n.children]}return i}const UJ=(e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(l=>{vc(l,e.value,t.value).every(a=>a.option)?r.push(l):o.push(l)}),[r,o]});function d8(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function YJ(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function qJ(e,t,n,o){const r=new Set(e),l=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(c=>{const{key:u,node:d,children:f=[]}=c;r.has(u)&&!o(d)&&f.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const i=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach(c=>{const{parent:u,node:d}=c;if(o(d)||!c.parent||i.has(c.parent.key))return;if(o(c.parent.node)){i.add(u.key);return}let f=!0,g=!1;(u.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:h}=v;const b=r.has(h);f&&!b&&(f=!1),!g&&(b||l.has(h))&&(g=!0)}),f&&r.add(u.key),g&&l.add(u.key),i.add(u.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(d8(l,r))}}function ZJ(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(u=>{const{key:d,node:f,children:g=[]}=u;!l.has(d)&&!i.has(d)&&!r(f)&&g.filter(v=>!r(v.node)).forEach(v=>{l.delete(v.key)})});i=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(u=>{const{parent:d,node:f}=u;if(r(f)||!u.parent||a.has(u.parent.key))return;if(r(u.parent.node)){a.add(d.key);return}let g=!0,v=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=l.has(b);g&&!y&&(g=!1),!v&&(y||i.has(b))&&(v=!0)}),g||l.delete(d.key),v&&i.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(d8(i,l))}}function So(e,t,n,o,r,l){let i;l?i=l:i=YJ;const a=new Set(e.filter(c=>!!n[c]));let s;return t===!0?s=qJ(a,r,o,i):s=ZJ(a,t.halfCheckedKeys,r,o,i),s}const QJ=(e,t,n,o,r)=>P(()=>{const l=r.value||(i=>{let{labels:a}=i;const s=o.value?a.slice(-1):a,c=" / ";return s.every(u=>["string","number"].includes(typeof u))?s.join(c):s.reduce((u,d,f)=>{const g=Kt(d)?dt(d,{key:f}):d;return f===0?[g]:[...u,c,g]},[])});return e.value.map(i=>{const a=vc(i,t.value,n.value),s=l({labels:a.map(u=>{let{option:d,value:f}=u;var g;return(g=d==null?void 0:d[n.value.label])!==null&&g!==void 0?g:f}),selectedOptions:a.map(u=>{let{option:d}=u;return d})}),c=gl(i);return{label:s,value:c,key:c,valueCells:i}})}),f8=Symbol("CascaderContextKey"),JJ=e=>{Ge(f8,e)},Lp=()=>He(f8),eee=()=>{const e=Tc(),{values:t}=Lp(),[n,o]=vt([]);return be(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]},tee=(e,t,n,o,r,l)=>{const i=Tc(),a=P(()=>i.direction==="rtl"),[s,c,u]=[le([]),le(),le([])];ke(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},f=h=>{const b=u.value.length;let y=c.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else i.toggleOpen(!1)},v=()=>{var h;const y=(((h=u.value[c.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case Oe.UP:case Oe.DOWN:{let y=0;b===Oe.UP?y=-1:b===Oe.DOWN&&(y=1),y!==0&&f(y);break}case Oe.LEFT:{a.value?v():g();break}case Oe.RIGHT:{a.value?g():v();break}case Oe.BACKSPACE:{i.searchValue||g();break}case Oe.ENTER:{if(s.value.length){const y=u.value[c.value],S=(y==null?void 0:y[Ds])||[];S.length?l(S.map($=>$[n.value.value]),S[S.length-1]):l(s.value,y)}break}case Oe.ESC:i.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})};function kp(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=Lp(),s=a.value!==!1?i.value.checkable:a.value,c=typeof s=="function"?s():typeof s=="boolean"?null:s;return p("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[c])}kp.props=["prefixCls","checked","halfChecked","disabled","onClick"];kp.displayName="Checkbox";kp.inheritAttrs=!1;const p8="__cascader_fix_label__";function zp(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:f}=e;var g,v,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:I,loadingIcon:T,dropdownMenuColumnStyle:_,customSlots:E}=Lp(),A=(g=I.value)!==null&&g!==void 0?g:(h=(v=E.value).expandIcon)===null||h===void 0?void 0:h.call(v),R=(b=T.value)!==null&&b!==void 0?b:(S=(y=E.value).loadingIcon)===null||S===void 0?void 0:S.call(y),z=w.value==="hover";return p("ul",{class:$,role:"menu"},[o.map(M=>{var B;const{disabled:N}=M,F=M[Ds],L=(B=M[p8])!==null&&B!==void 0?B:M[C.value.label],k=M[C.value.value],j=cs(M,C.value),H=F?F.map(K=>K[C.value.value]):[...l,k],Y=gl(H),Z=d.includes(Y),U=c.has(Y),ee=u.has(Y),G=()=>{!N&&(!z||!j)&&s(H)},J=()=>{f(M)&&a(H,j)};let Q;return typeof M.title=="string"?Q=M.title:typeof L=="string"&&(Q=L),p("li",{key:Y,class:[x,{[`${x}-expand`]:!j,[`${x}-active`]:r===k,[`${x}-disabled`]:N,[`${x}-loading`]:Z}],style:_.value,role:"menuitemcheckbox",title:Q,"aria-checked":U,"data-path-key":Y,onClick:()=>{G(),(!n||j)&&J()},onDblclick:()=>{O.value&&i(!1)},onMouseenter:()=>{z&&G()},onMousedown:K=>{K.preventDefault()}},[n&&p(kp,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:ee,disabled:N,onClick:K=>{K.stopPropagation(),J()}},null),p("div",{class:`${x}-content`},[L]),!Z&&A&&!j&&p("div",{class:`${x}-expand-icon`},[dt(A)]),Z&&R&&p("div",{class:`${x}-loading-icon`},[dt(R)])])})])}zp.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];zp.displayName="Column";zp.inheritAttrs=!1;const nee=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Tc(),l=le(),i=P(()=>r.direction==="rtl"),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:f,searchOptions:g,dropdownPrefixCls:v,loadData:h,expandTrigger:b,customSlots:y}=Lp(),S=P(()=>v.value||r.prefixCls),$=te([]),x=B=>{if(!h.value||r.searchValue)return;const F=vc(B,a.value,u.value).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];if(L&&!cs(L,u.value)){const k=gl(B);$.value=[...$.value,k],h.value(F)}};ke(()=>{$.value.length&&$.value.forEach(B=>{const N=PJ(B),F=vc(N,a.value,u.value,!0).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];(!L||L[u.value.children]||cs(L,u.value))&&($.value=$.value.filter(k=>k!==B))})});const C=P(()=>new Set(Zi(s.value))),O=P(()=>new Set(Zi(c.value))),[w,I]=eee(),T=B=>{I(B),x(B)},_=B=>{const{disabled:N}=B,F=cs(B,u.value);return!N&&(F||d.value||r.multiple)},E=function(B,N){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(B),!r.multiple&&(N||d.value&&(b.value==="hover"||F))&&r.toggleOpen(!1)},A=P(()=>r.searchValue?g.value:a.value),R=P(()=>{const B=[{options:A.value}];let N=A.value;for(let F=0;FH[u.value.value]===L),j=k==null?void 0:k[u.value.children];if(!(j!=null&&j.length))break;N=j,B.push({options:j})}return B});tee(t,A,u,w,T,(B,N)=>{_(N)&&E(B,cs(N,u.value),!0)});const M=B=>{B.preventDefault()};return je(()=>{be(w,B=>{var N;for(let F=0;F{var B,N,F,L,k;const{notFoundContent:j=((B=o.notFoundContent)===null||B===void 0?void 0:B.call(o))||((F=(N=y.value).notFoundContent)===null||F===void 0?void 0:F.call(N)),multiple:H,toggleOpen:Y}=r,Z=!(!((k=(L=R.value[0])===null||L===void 0?void 0:L.options)===null||k===void 0)&&k.length),U=[{[u.value.value]:"__EMPTY__",[p8]:j,disabled:!0}],ee=m(m({},n),{multiple:!Z&&H,onSelect:E,onActive:T,onToggleOpen:Y,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:_}),J=(Z?[{options:U}]:R.value).map((Q,K)=>{const q=w.value.slice(0,K),pe=w.value[K];return p(zp,D(D({key:K},ee),{},{prefixCls:S.value,options:Q.options,prevValuePath:q,activeValue:pe}),null)});return p("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:Z,[`${S.value}-rtl`]:i.value}],onMousedown:M,ref:l},[J])}}});function Hp(e){const t=le(0),n=te();return ke(()=>{const o=new Map;let r=0;const l=e.value||{};for(const i in l)if(Object.prototype.hasOwnProperty.call(l,i)){const a=l[i],{level:s}=a;let c=o.get(s);c||(c=new Set,o.set(s,c)),c.add(a),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function oee(){return m(m({},et(gp(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Re(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:o8},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:V.any,loadingIcon:V.any})}function g8(){return m(m({},oee()),{onChange:Function,customSlots:Object})}function ree(e){return Array.isArray(e)&&Array.isArray(e[0])}function hw(e){return e?ree(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const lee=oe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:qe(g8(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>!!e.checkable),[a,s]=Pt(e.defaultValue,{value:P(()=>e.value),postState:hw}),c=P(()=>IJ(e.fieldNames)),u=P(()=>e.options||[]),d=WJ(u,c),f=K=>{const q=d.value;return K.map(pe=>{const{nodes:W}=q[pe];return W.map(X=>X[c.value.value])})},[g,v]=Pt("",{value:P(()=>e.searchValue),postState:K=>K||""}),h=(K,q)=>{v(K),q.source!=="blur"&&e.onSearch&&e.onSearch(K)},{showSearch:b,searchConfig:y}=VJ(ze(e,"showSearch")),S=XJ(g,u,c,P(()=>e.dropdownPrefixCls||e.prefixCls),y,ze(e,"changeOnSelect")),$=UJ(u,c,a),[x,C,O]=[le([]),le([]),le([])],{maxLevel:w,levelEntities:I}=Hp(d);ke(()=>{const[K,q]=$.value;if(!i.value||!a.value.length){[x.value,C.value,O.value]=[K,[],q];return}const pe=Zi(K),W=d.value,{checkedKeys:X,halfCheckedKeys:ne}=So(pe,!0,W,w.value,I.value);[x.value,C.value,O.value]=[f(X),f(ne),q]});const T=P(()=>{const K=Zi(x.value),q=gw(K,d.value,e.showCheckedStrategy);return[...O.value,...f(q)]}),_=QJ(T,u,c,i,ze(e,"displayRender")),E=K=>{if(s(K),e.onChange){const q=hw(K),pe=q.map(ne=>vc(ne,u.value,c.value).map(ae=>ae.option)),W=i.value?q:q[0],X=i.value?pe:pe[0];e.onChange(W,X)}},A=K=>{if(v(""),!i.value)E(K);else{const q=gl(K),pe=Zi(x.value),W=Zi(C.value),X=pe.includes(q),ne=O.value.some(re=>gl(re)===q);let ae=x.value,se=O.value;if(ne&&!X)se=O.value.filter(re=>gl(re)!==q);else{const re=X?pe.filter(me=>me!==q):[...pe,q];let de;X?{checkedKeys:de}=So(re,{checked:!1,halfCheckedKeys:W},d.value,w.value,I.value):{checkedKeys:de}=So(re,!0,d.value,w.value,I.value);const ge=gw(de,d.value,e.showCheckedStrategy);ae=f(ge)}E([...se,...ae])}},R=(K,q)=>{if(q.type==="clear"){E([]);return}const{valueCells:pe}=q.values[0];A(pe)},z=P(()=>e.open!==void 0?e.open:e.popupVisible),M=P(()=>e.dropdownStyle||e.popupStyle||{}),B=P(()=>e.placement||e.popupPlacement),N=K=>{var q,pe;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,K),(pe=e.onPopupVisibleChange)===null||pe===void 0||pe.call(e,K)},{changeOnSelect:F,checkable:L,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee,dropdownClassName:G}=No(e);JJ({options:u,fieldNames:c,values:x,halfValues:C,changeOnSelect:F,onSelect:A,checkable:L,searchOptions:S,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee});const J=le();o({focus(){var K;(K=J.value)===null||K===void 0||K.focus()},blur(){var K;(K=J.value)===null||K===void 0||K.blur()},scrollTo(K){var q;(q=J.value)===null||q===void 0||q.scrollTo(K)}});const Q=P(()=>et(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const K=!(g.value?S.value:u.value).length,{dropdownMatchSelectWidth:q=!1}=e,pe=g.value&&y.value.matchInputWidth||K?{}:{minWidth:"auto"};return p(Y0,D(D(D({},Q.value),n),{},{ref:J,id:l,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:m(m({},M.value),pe),displayValues:_.value,onDisplayValuesChange:R,mode:i.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:nee,emptyOptions:K,open:z.value,dropdownClassName:G.value,placement:B.value,onDropdownVisibleChange:N,getRawInputElement:()=>{var W;return(W=r.default)===null||W===void 0?void 0:W.call(r)}}),r)}}});var iee={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"};const aee=iee;function vw(e){for(var t=1;tMn()&&window.document.documentElement,v8=e=>{if(Mn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},cee=(e,t)=>{if(!v8(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function Ay(e,t){return!Array.isArray(e)&&t!==void 0?cee(e,t):v8(e)}let $u;const uee=()=>{if(!h8())return!1;if($u!==void 0)return $u;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$u=e.scrollHeight===1,document.body.removeChild(e),$u},m8=()=>{const e=te(!1);return je(()=>{e.value=uee()}),e},b8=Symbol("rowContextKey"),dee=e=>{Ge(b8,e)},fee=()=>He(b8,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),pee=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},gee=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},hee=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let l=o;l>=0;l--)l===0?(r[`${n}${t}-${l}`]={display:"none"},r[`${n}-push-${l}`]={insetInlineStart:"auto"},r[`${n}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${l}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${l}`]={marginInlineEnd:0},r[`${n}${t}-order-${l}`]={order:0}):(r[`${n}${t}-${l}`]={display:"block",flex:`0 0 ${l/o*100}%`,maxWidth:`${l/o*100}%`},r[`${n}${t}-push-${l}`]={insetInlineStart:`${l/o*100}%`},r[`${n}${t}-pull-${l}`]={insetInlineEnd:`${l/o*100}%`},r[`${n}${t}-offset-${l}`]={marginInlineStart:`${l/o*100}%`},r[`${n}${t}-order-${l}`]={order:l});return r},tm=(e,t)=>hee(e,t),vee=(e,t,n)=>({[`@media (min-width: ${t}px)`]:m({},tm(e,n))}),mee=Ve("Grid",e=>[pee(e)]),bee=Ve("Grid",e=>{const t=Fe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gee(t),tm(t,""),tm(t,"-xs"),Object.keys(n).map(o=>vee(t,n[o],o)).reduce((o,r)=>m(m({},o),r),{})]}),yee=()=>({align:Le([String,Object]),justify:Le([String,Object]),prefixCls:String,gutter:Le([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),See=oe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:yee(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("row",e),[i,a]=mee(r);let s;const c=Rb(),u=le({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=le({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x{s=c.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(u.value=$)})}),Ze(()=>{c.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let I=0;Ie.wrap)});const y=P(()=>ie(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${v.value}`]:v.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return i(p("div",D(D({},o),{},{class:y.value,style:m(m({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}}),Ry=See;function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e,t,n){return Cee()?qu=Reflect.construct.bind():qu=function(r,l,i){var a=[null];a.push.apply(a,l);var s=Function.bind.apply(r,a),c=new s;return i&&mc(c,i.prototype),c},qu.apply(null,arguments)}function xee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function om(e){var t=typeof Map=="function"?new Map:void 0;return om=function(o){if(o===null||!xee(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return qu(o,arguments,nm(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mc(r,o)},om(e)}var wee=/%[sdj%]/g,Oee=function(){};typeof process<"u"&&process.env;function rm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=l)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return i}return e}function Pee(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Pee(t)&&typeof e=="string"&&!e)}function Iee(e,t,n){var o=[],r=0,l=e.length;function i(a){o.push.apply(o,a||[]),r++,r===l&&n(o)}e.forEach(function(a){t(a,i)})}function mw(e,t,n){var o=0,r=e.length;function l(i){if(i&&i.length){n(i);return}var a=o;o=o+1,a()\[\]\\.,;:\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},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($w.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ree())},hex:function(t){return typeof t=="string"&&!!t.match($w.hex)}},Dee=function(t,n,o,r,l){if(t.required&&n===void 0){y8(t,n,o,r,l);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?us[a](n)||r.push(io(l.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(io(l.messages.types[a],t.fullField,t.type))},Bee=function(t,n,o,r,l){var i=typeof t.len=="number",a=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(f?d="number":g?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&r.push(io(l.messages[d].len,t.fullField,t.len)):a&&!s&&ut.max?r.push(io(l.messages[d].max,t.fullField,t.max)):a&&s&&(ut.max)&&r.push(io(l.messages[d].range,t.fullField,t.min,t.max))},Fi="enum",Nee=function(t,n,o,r,l){t[Fi]=Array.isArray(t[Fi])?t[Fi]:[],t[Fi].indexOf(n)===-1&&r.push(io(l.messages[Fi],t.fullField,t[Fi].join(", ")))},Fee=function(t,n,o,r,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},bt={required:y8,whitespace:Aee,type:Dee,range:Bee,enum:Nee,pattern:Fee},Lee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l,"string"),dn(n,"string")||(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l),bt.pattern(t,n,r,i,l),t.whitespace===!0&&bt.whitespace(t,n,r,i,l))}o(i)},kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},zee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Hee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},jee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),dn(n)||bt.type(t,n,r,i,l)}o(i)},Wee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Vee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();bt.required(t,n,r,i,l,"array"),n!=null&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Gee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},Xee="enum",Uee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt[Xee](t,n,r,i,l)}o(i)},Yee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l),dn(n,"string")||bt.pattern(t,n,r,i,l)}o(i)},qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"date")&&!t.required)return o();if(bt.required(t,n,r,i,l),!dn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),bt.type(t,s,r,i,l),s&&bt.range(t,s.getTime(),r,i,l)}}o(i)},Zee=function(t,n,o,r,l){var i=[],a=Array.isArray(n)?"array":typeof n;bt.required(t,n,r,i,l,a),o(i)},mh=function(t,n,o,r,l){var i=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(dn(n,i)&&!t.required)return o();bt.required(t,n,r,a,l,i),dn(n,i)||bt.type(t,n,r,a,l)}o(a)},Qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l)}o(i)},Bs={string:Lee,method:kee,number:zee,boolean:Hee,regexp:jee,integer:Wee,float:Vee,array:Kee,object:Gee,enum:Uee,pattern:Yee,date:qee,url:mh,hex:mh,email:mh,required:Zee,any:Qee};function lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var im=lm(),zc=function(){function e(n){this.rules=null,this._messages=im,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var i=o[l];r.rules[l]=Array.isArray(i)?i:[i]})},t.messages=function(o){return o&&(this._messages=Sw(lm(),o)),this._messages},t.validate=function(o,r,l){var i=this;r===void 0&&(r={}),l===void 0&&(l=function(){});var a=o,s=r,c=l;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!S8(e,t.slice(0,-1))?e:$8(e,t,n,o)}function am(e){return hl(e)}function ete(e,t){return S8(e,t)}function tte(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Jee(e,t,n,o)}function nte(e,t){return e&&e.some(n=>rte(n,t))}function Cw(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function C8(e,t){const n=Array.isArray(e)?[...e]:m({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],l=t[o],i=Cw(r)&&Cw(l);n[o]=i?C8(r,l||{}):l}),n}function ote(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oC8(r,l),e)}function xw(e,t){let n={};return t.forEach(o=>{const r=ete(e,o);n=tte(n,o,r)}),n}function rte(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const no="'${name}' is not a valid ${type}",jp={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:no,method:no,array:no,object:no,number:no,date:no,boolean:no,integer:no,float:no,regexp:no,email:no,url:no,hex:no},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}"}};var Wp=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const lte=zc;function ite(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function sm(e,t,n,o,r){return Wp(this,void 0,void 0,function*(){const l=m({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&l.type==="array"&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new lte({[e]:[l]}),s=ote({},jp,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},m({},o)))}catch(f){f.errors?c=f.errors.map((g,v)=>{let{message:h}=g;return Kt(h)?sn(h,{key:`error_${v}`}):h}):(console.error(f),c=[s.default()])}if(!c.length&&i)return(yield Promise.all(t.map((g,v)=>sm(`${e}.${v}`,g,i,o,r)))).reduce((g,v)=>[...g,...v],[]);const u=m(m(m({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return c.map(f=>typeof f=="string"?ite(f,u):f)})}function x8(e,t,n,o,r,l){const i=e.join("."),a=n.map((c,u)=>{const d=c.validator,f=m(m({},c),{ruleIndex:u});return d&&(f.validator=(g,v,h)=>{let b=!1;const S=d(g,v,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),f}).sort((c,u)=>{let{warningOnly:d,ruleIndex:f}=c,{warningOnly:g,ruleIndex:v}=u;return!!d==!!g?f-v:d?1:-1});let s;if(r===!0)s=new Promise((c,u)=>Wp(this,void 0,void 0,function*(){for(let d=0;dsm(i,t,u,o,l).then(d=>({errors:d,rule:u})));s=(r?ste(c):ate(c)).then(u=>Promise.reject(u))}return s.catch(c=>c),s}function ate(e){return Wp(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function ste(e){return Wp(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const w8=Symbol("formContextKey"),O8=e=>{Ge(w8,e)},Dy=()=>He(w8,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>jp)}),P8=Symbol("formItemPrefixContextKey"),cte=e=>{Ge(P8,e)},ute=()=>He(P8,{prefixCls:P(()=>"")});function dte(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fte=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),pte=["xs","sm","md","lg","xl","xxl"],Vp=oe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:fte(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:l,wrap:i}=fee(),{prefixCls:a,direction:s}=Te("col",e),[c,u]=bee(a),d=P(()=>{const{span:g,order:v,offset:h,push:b,pull:y}=e,S=a.value;let $={};return pte.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=m(m({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),ie(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${v}`]:v,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,u.value)}),f=P(()=>{const{flex:g}=e,v=r.value,h={};if(v&&v[0]>0){const b=`${v[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(v&&v[1]>0&&!l.value){const b=`${v[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=dte(g),i.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return c(p("div",D(D({},o),{},{class:d.value,style:[f.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var gte={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"};const hte=gte;function ww(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var l,i,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:f,labelAlign:g,colon:v,required:h,requiredMark:b}=m(m({},e),r),[y]=Io("Form"),S=(l=e.label)!==null&&l!==void 0?l:(i=n.label)===null||i===void 0?void 0:i.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=Dy(),I=f||(C==null?void 0:C.value)||{},T=g||(x==null?void 0:x.value),_=`${u}-item-label`,E=ie(_,T==="left"&&`${_}-left`,I.class,{[`${_}-wrap`]:!!O.value});let A=S;const R=v===!0||(w==null?void 0:w.value)!==!1&&v!==!1;if(R&&!$.value&&typeof S=="string"&&S.trim()!==""&&(A=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const B=p("span",{class:`${u}-item-tooltip`},[p(Yn,{title:e.tooltip},{default:()=>[p(mte,null,null)]})]);A=p(We,null,[A,n.tooltip?(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${u}-item-tooltip`}):B])}b==="optional"&&!h&&(A=p(We,null,[A,p("span",{class:`${u}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((c=jn.Form)===null||c===void 0?void 0:c.optional)])]));const M=ie({[`${u}-item-required`]:h,[`${u}-item-required-mark-optional`]:b==="optional",[`${u}-item-no-colon`]:!R});return p(Vp,D(D({},I),{},{class:E}),{default:()=>[p("label",{for:d,class:M,title:typeof S=="string"?S:"",onClick:B=>o("click",B)},[A])]})};Ny.displayName="FormItemLabel";Ny.inheritAttrs=!1;const bte=Ny,yte=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},Ste=yte,$te=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ow=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Cte=e=>{const{componentCls:t}=e;return{[e.componentCls]:m(m(m({},Xe(e)),$te(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":m({},Ow(e,e.controlHeightSM)),"&-large":m({},Ow(e,e.controlHeightLG))})}},xte=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:m(m({},Xe(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},wte=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Ote=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Vi=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Pte=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Vi(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, - ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Ite=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, - .${o}-col-24${n}-label, - .${o}-col-xl-24${n}-label`]:Vi(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Pte(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Vi(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Vi(e)}}}},Fy=Ve("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Cte(o),xte(o),Ste(o),wte(o),Ote(o),Ite(o),Ac(o),Cb]}),Tte=oe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=ute(),l=P(()=>`${o.value}-item-explain`),i=P(()=>!!(e.errors&&e.errors.length)),a=le(r.value),[,s]=Fy(o);return be([i,r],()=>{i.value&&(a.value=r.value)}),()=>{var c,u;const d=Rc(`${o.value}-show-help-item`),f=up(`${o.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,l.value,n.class,`${o.value}-show-help`],p(cn,D(D({},Po(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[$n(p(Hf,D(D({},f),{},{tag:"div"}),{default:()=>[(u=e.errors)===null||u===void 0?void 0:u.map((g,v)=>p("div",{key:v,class:a.value?`${l.value}-${a.value}`:""},[g]))]}),[[En,!!(!((c=e.errors)===null||c===void 0)&&c.length)]])]})}}}),Ete=oe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=Dy(),{wrapperCol:r}=o,l=m({},o);return delete l.labelCol,delete l.wrapperCol,O8(l),cte({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var i,a,s;const{prefixCls:c,wrapperCol:u,marginBottom:d,onErrorVisibleChanged:f,help:g=(i=n.help)===null||i===void 0?void 0:i.call(n),errors:v=_t((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${c}-item`,y=u||(r==null?void 0:r.value)||{},S=ie(`${b}-control`,y.class);return p(Vp,D(D({},y),{},{class:S}),{default:()=>{var $;return p(We,null,[p("div",{class:`${b}-control-input`},[p("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||v.length?p("div",{style:{display:"flex",flexWrap:"nowrap"}},[p(Tte,{errors:v,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&p("div",{style:{width:0,height:`${d}px`}},null)]):null,h?p("div",{class:`${b}-extra`},[h]):null])}})}}}),Mte=Ete;function _te(e){const t=te(e.value.slice());let n=null;return ke(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Cn("success","warning","error","validating","");const Ate={success:zr,warning:Hr,error:Qn,validating:co};function bh(e,t,n){let o=e;const r=t;let l=0;try{for(let i=r.length;l({htmlFor:String,prefixCls:String,label:V.any,help:V.any,extra:V.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:V.oneOf(Cn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Dte=0;const Bte="form_item",I8=oe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Rte(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const l=`form-item-${++Dte}`,{prefixCls:i}=Te("form",e),[a,s]=Fy(i),c=te(),u=Dy(),d=P(()=>e.name||e.prop),f=te([]),g=te(!1),v=te(),h=P(()=>{const U=d.value;return am(U)}),b=P(()=>{if(h.value.length){const U=u.name.value,ee=h.value.join("_");return U?`${U}_${ee}`:`${Bte}_${ee}`}else return}),y=()=>{const U=u.model.value;if(!(!U||!d.value))return bh(U,h.value,!0).v},S=P(()=>y()),$=te(ju(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:u.validateTrigger.value;return U=U===void 0?"change":U,hl(U)}),C=P(()=>{let U=u.rules.value;const ee=e.rules,G=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],J=bh(U,h.value);U=U?J.o[J.k]||J.v:[];const Q=[].concat(ee||U||[]);return $K(Q,K=>K.required)?Q:Q.concat(G)}),O=P(()=>{const U=C.value;let ee=!1;return U&&U.length&&U.every(G=>G.required?(ee=!0,!1):!0),ee||e.required}),w=te();ke(()=>{w.value=e.validateStatus});const I=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=m(m({},U),e.messageVariables)),U}),T=U=>{if(h.value.length===0)return;const{validateFirst:ee=!1}=e,{triggerName:G}=U||{};let J=C.value;if(G&&(J=J.filter(K=>{const{trigger:q}=K;return!q&&!x.value.length?!0:hl(q||x.value).includes(G)})),!J.length)return Promise.resolve();const Q=x8(h.value,S.value,J,m({validateMessages:u.validateMessages.value},U),ee,I.value);return w.value="validating",f.value=[],Q.catch(K=>K).then(function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=K.filter(pe=>pe&&pe.errors.length);w.value=q.length?"error":"success",f.value=q.map(pe=>pe.errors),u.onValidate(d.value,!f.value.length,f.value.length?Qe(f.value[0]):null)}}),Q},_=()=>{T({triggerName:"blur"})},E=()=>{if(g.value){g.value=!1;return}T({triggerName:"change"})},A=()=>{w.value=e.validateStatus,g.value=!1,f.value=[]},R=()=>{var U;w.value=e.validateStatus,g.value=!0,f.value=[];const ee=u.model.value||{},G=S.value,J=bh(ee,h.value,!0);Array.isArray(G)?J.o[J.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):J.o[J.k]=$.value,ot(()=>{g.value=!1})},z=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),M=()=>{const U=z.value;if(!U||!v.value)return;const ee=v.value.$el.querySelector(`[id="${U}"]`);ee&&ee.focus&&ee.focus()};r({onFieldBlur:_,onFieldChange:E,clearValidate:A,resetField:R}),gj({id:b,onFieldBlur:()=>{e.autoLink&&_()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:A},P(()=>!!(e.autoLink&&u.model.value&&d.value)));let B=!1;be(d,U=>{U?B||(B=!0,u.addField(l,{fieldValue:S,fieldId:b,fieldName:d,resetField:R,clearValidate:A,namePath:h,validateRules:T,rules:C})):(B=!1,u.removeField(l))},{immediate:!0}),Ze(()=>{u.removeField(l)});const N=_te(f),F=P(()=>e.validateStatus!==void 0?e.validateStatus:N.value.length?"error":w.value),L=P(()=>({[`${i.value}-item`]:!0,[s.value]:!0,[`${i.value}-item-has-feedback`]:F.value&&e.hasFeedback,[`${i.value}-item-has-success`]:F.value==="success",[`${i.value}-item-has-warning`]:F.value==="warning",[`${i.value}-item-has-error`]:F.value==="error",[`${i.value}-item-is-validating`]:F.value==="validating",[`${i.value}-item-hidden`]:e.hidden})),k=ut({});un.useProvide(k),ke(()=>{let U;if(e.hasFeedback){const ee=F.value&&Ate[F.value];U=ee?p("span",{class:ie(`${i.value}-item-feedback-icon`,`${i.value}-item-feedback-icon-${F.value}`)},[p(ee,null,null)]):null}m(k,{status:F.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const j=te(null),H=te(!1),Y=()=>{if(c.value){const U=getComputedStyle(c.value);j.value=parseInt(U.marginBottom,10)}};je(()=>{be(H,()=>{H.value&&Y()},{flush:"post",immediate:!0})});const Z=U=>{U||(j.value=null)};return()=>{var U,ee;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const G=(ee=e.help)!==null&&ee!==void 0?ee:n.help?_t(n.help()):null,J=!!(G!=null&&Array.isArray(G)&&G.length||N.value.length);return H.value=J,a(p("div",{class:[L.value,J?`${i.value}-item-with-help`:"",o.class],ref:c},[p(Ry,D(D({},o),{},{class:`${i.value}-item-row`,key:"row"}),{default:()=>{var Q,K;return p(We,null,[p(bte,D(D({},e),{},{htmlFor:z.value,required:O.value,requiredMark:u.requiredMark.value,prefixCls:i.value,onClick:M,label:e.label}),{label:n.label,tooltip:n.tooltip}),p(Mte,D(D({},e),{},{errors:G!=null?hl(G):N.value,marginBottom:j.value,prefixCls:i.value,status:F.value,ref:v,help:G,extra:(Q=e.extra)!==null&&Q!==void 0?Q:(K=n.extra)===null||K===void 0?void 0:K.call(n),onErrorVisibleChanged:Z}),{default:n.default})])}}),!!j.value&&p("div",{class:`${i.value}-margin-offset`,style:{marginBottom:`-${j.value}px`}},null)]))}}});function T8(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,l)=>{e.forEach((i,a)=>{i.catch(s=>(t=!0,s)).then(s=>{n-=1,o[a]=s,!(n>0)&&(t&&l(o),r(o))})})}):Promise.resolve([])}function Pw(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function Iw(e){return e==null?[]:Array.isArray(e)?e:[e]}function yh(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let l=0;for(let i=r.length;l1&&arguments[1]!==void 0?arguments[1]:le({}),n=arguments.length>2?arguments[2]:void 0;const o=ju($t(e)),r=ut({}),l=te([]),i=$=>{m($t(e),m(m({},ju(o)),$)),ot(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:Pw($t(t)[x])}})})},a=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=Iw(C.trigger||"change");return IK(O,x).length}):$};let s=null;const c=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let _=0;_<$.length;_++){const E=$[_],A=yh($t(e),E,C);if(!A.isValid)continue;w[E]=A.v;const R=a($t(t)[E],Iw(x&&x.trigger));R.length&&O.push(u(E,A.v,R,x||{}).then(()=>({name:E,errors:[],warnings:[]})).catch(z=>{const M=[],B=[];return z.forEach(N=>{let{rule:{warningOnly:F},errors:L}=N;F?B.push(...L):M.push(...L)}),M.length?Promise.reject({name:E,errors:M,warnings:B}):{name:E,errors:M,warnings:B}}))}const I=T8(O);s=I;const T=I.then(()=>s===I?Promise.resolve(w):Promise.reject([])).catch(_=>{const E=_.filter(A=>A&&A.errors.length);return E.length?Promise.reject({values:w,errorFields:E,outOfDate:s!==I}):Promise.resolve(w)});return T.catch(_=>_),T},u=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=x8([$],x,C,m({validateMessages:jp},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(I=>I).then(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var T;if(r[$].validateStatus==="validating"){const _=I.filter(E=>E&&E.errors.length);r[$].validateStatus=_.length?"error":"success",r[$].help=_.length?_.map(E=>E.errors):null,(T=n==null?void 0:n.onValidate)===null||T===void 0||T.call(n,$,!_.length,_.length?Qe(r[$].help[0]):null)}}),w):w.catch(I=>I)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=l.value);const w=c(C,x||{},O);return w.catch(I=>I),w},f=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=l.value,x.forEach(C=>{r[C]&&m(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];l.value.forEach(C=>{const O=yh($,C,!1),w=yh(v,C,!1);(h&&(n==null?void 0:n.immediate)&&O.isValid||!V0(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,v=ju(Qe($))},y=n==null?void 0:n.debounce;let S=!0;return be(t,()=>{l.value=t?Object.keys($t(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),be(l,()=>{const $={};l.value.forEach(x=>{$[x]=m({},r[x],{autoLink:!1,required:Pw($t(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];m(r,$)},{immediate:!0}),be(e,y&&y.wait?Sb(b,y.wait,HK(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:i,validate:d,validateField:u,mergeValidateInfo:g,clearValidate:f}}const Fte=()=>({layout:V.oneOf(Cn("horizontal","inline","vertical")),labelCol:Re(),wrapperCol:Re(),colon:Ce(),labelAlign:Be(),labelWrap:Ce(),prefixCls:String,requiredMark:Le([String,Boolean]),hideRequiredMark:Ce(),model:V.object,rules:Re(),validateMessages:Re(),validateOnRuleChange:Ce(),scrollToFirstError:St(),onSubmit:ve(),name:String,validateTrigger:Le([String,Array]),size:Be(),disabled:Ce(),onValuesChange:ve(),onFieldsChange:ve(),onFinish:ve(),onFinishFailed:ve(),onValidate:ve()});function Lte(e,t){return V0(hl(e),hl(t))}const kte=oe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:qe(Fte(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:I8,useForm:Nte,setup(e,t){let{emit:n,slots:o,expose:r,attrs:l}=t;const{prefixCls:i,direction:a,form:s,size:c,disabled:u}=Te("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),f=P(()=>{var N;return d.value!==void 0?d.value:s&&((N=s.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});NP(c),eP(u);const g=P(()=>{var N,F;return(N=e.colon)!==null&&N!==void 0?N:(F=s.value)===null||F===void 0?void 0:F.colon}),{validateMessages:v}=sD(),h=P(()=>m(m(m({},jp),v.value),e.validateMessages)),[b,y]=Fy(i),S=P(()=>ie(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:f.value===!1,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-${c.value}`]:c.value},y.value)),$=le(),x={},C=(N,F)=>{x[N]=F},O=N=>{delete x[N]},w=N=>{const F=!!N,L=F?hl(N).map(am):[];return F?Object.values(x).filter(k=>L.findIndex(j=>Lte(j,k.fieldName.value))>-1):Object.values(x)},I=N=>{if(!e.model){It();return}w(N).forEach(F=>{F.resetField()})},T=N=>{w(N).forEach(F=>{F.clearValidate()})},_=N=>{const{scrollToFirstError:F}=e;if(n("finishFailed",N),F&&N.errorFields.length){let L={};typeof F=="object"&&(L=F),A(N.errorFields[0].name,L)}},E=function(){return M(...arguments)},A=function(N){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=w(N?[N]:void 0);if(L.length){const k=L[0].fieldId.value,j=k?document.getElementById(k):null;j&&kP(j,m({scrollMode:"if-needed",block:"nearest"},F))}},R=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const F=[];return Object.values(x).forEach(L=>{let{namePath:k}=L;F.push(k.value)}),xw(e.model,F)}else return xw(e.model,N)},z=(N,F)=>{if(It(),!e.model)return It(),Promise.reject("Form `model` is required for validateFields to work.");const L=!!N,k=L?hl(N).map(am):[],j=[];Object.values(x).forEach(Z=>{var U;if(L||k.push(Z.namePath.value),!(!((U=Z.rules)===null||U===void 0)&&U.value.length))return;const ee=Z.namePath.value;if(!L||nte(k,ee)){const G=Z.validateRules(m({validateMessages:h.value},F));j.push(G.then(()=>({name:ee,errors:[],warnings:[]})).catch(J=>{const Q=[],K=[];return J.forEach(q=>{let{rule:{warningOnly:pe},errors:W}=q;pe?K.push(...W):Q.push(...W)}),Q.length?Promise.reject({name:ee,errors:Q,warnings:K}):{name:ee,errors:Q,warnings:K}}))}});const H=T8(j);$.value=H;const Y=H.then(()=>$.value===H?Promise.resolve(R(k)):Promise.reject([])).catch(Z=>{const U=Z.filter(ee=>ee&&ee.errors.length);return Promise.reject({values:R(k),errorFields:U,outOfDate:$.value!==H})});return Y.catch(Z=>Z),Y},M=function(){return z(...arguments)},B=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),e.model&&z().then(L=>{n("finish",L)}).catch(L=>{_(L)})};return r({resetFields:I,clearValidate:T,validateFields:z,getFieldsValue:R,validate:E,scrollToField:A}),O8({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:f,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(N,F,L)=>{n("validate",N,F,L)},validateMessages:h}),be(()=>e.rules,()=>{e.validateOnRuleChange&&z()}),()=>{var N;return b(p("form",D(D({},l),{},{onSubmit:B,class:[S.value,l.class]}),[(N=o.default)===null||N===void 0?void 0:N.call(o)]))}}}),il=kte;il.useInjectFormItemContext=Qt;il.ItemRest=Gd;il.install=function(e){return e.component(il.name,il),e.component(il.Item.name,il.Item),e.component(Gd.name,Gd),e};const zte=new nt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Hte=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:m(m({},Xe(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:m(m({},Xe(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:m(m({},Xe(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:m({},Ar(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:zte,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Kp(e,t){const n=Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Hte(n)]}const E8=Ve("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Kp(n,e)]}),jte=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=` - &${r}-expand ${r}-expand-icon, - ${r}-loading-icon - `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Kp(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":m(m({},Gt),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},ja(e)]},Wte=Ve("Cascader",e=>[jte(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Vte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[a]:[...i,t,a],[]),r=[];let l=0;return o.forEach((i,a)=>{const s=l+i.length;let c=e.slice(l,s);l=s,a%2===1&&(c=p("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[c])),r.push(c)}),r}const Gte=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach((a,s)=>{s!==0&&l.push(" / ");let c=a[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=Kte(String(c),i,o)),l.push(c)}),l};function Xte(){return m(m({},et(g8(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:V.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Ute=oe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:qe(Xte(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:l}=t;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:f,getPopupContainer:g,renderEmpty:v,size:h,disabled:b}=Te("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=Ol(y,f),x=P(()=>S.value||h.value),C=qn(),O=P(()=>{var F;return(F=b.value)!==null&&F!==void 0?F:C.value}),[w,I]=xb(y),[T]=Wte(c),_=P(()=>f.value==="rtl"),E=P(()=>{if(!e.showSearch)return e.showSearch;let F={render:Gte};return typeof e.showSearch=="object"&&(F=m(m({},F),e.showSearch)),F}),A=P(()=>ie(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:_.value},I.value)),R=le();o({focus(){var F;(F=R.value)===null||F===void 0||F.focus()},blur(){var F;(F=R.value)===null||F===void 0||F.blur()}});const z=function(){for(var F=arguments.length,L=new Array(F),k=0;ke.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),N=P(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var F,L;const{notFoundContent:k=(F=r.notFoundContent)===null||F===void 0?void 0:F.call(r),expandIcon:j=(L=r.expandIcon)===null||L===void 0?void 0:L.call(r),multiple:H,bordered:Y,allowClear:Z,choiceTransitionName:U,transitionName:ee,id:G=i.id.value}=e,J=Vte(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Q=k||v("Cascader");let K=j;j||(K=_.value?p(Sl,null,null):p(Wo,null,null));const q=p("span",{class:`${y.value}-menu-item-loading-icon`},[p(co,{spin:!0},null)]),{suffixIcon:pe,removeIcon:W,clearIcon:X}=cb(m(m({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:H,prefixCls:y.value,showArrow:B.value}),r);return T(w(p(lee,D(D(D({},J),n),{},{id:G,prefixCls:y.value,class:[c.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:_.value,[`${y.value}-borderless`]:!Y,[`${y.value}-in-form-item`]:a.isFormItemInput},Tn(y.value,s.value,a.hasFeedback),$.value,n.class,I.value],disabled:O.value,direction:f.value,placement:N.value,notFoundContent:Q,allowClear:Z,showSearch:E.value,expandIcon:K,inputIcon:pe,removeIcon:W,clearIcon:X,loadingIcon:q,checkable:!!H,dropdownClassName:A.value,dropdownPrefixCls:c.value,choiceTransitionName:_n(u.value,"",U),transitionName:_n(u.value,K0(N.value),ee),getPopupContainer:g==null?void 0:g.value,customSlots:m(m({},r),{checkable:()=>p("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:z,onBlur:M,ref:R}),r)))}}}),Yte=Tt(m(Ute,{SHOW_CHILD:r8,SHOW_PARENT:o8})),qte=()=>({name:String,prefixCls:String,options:at([]),disabled:Boolean,id:String}),Zte=()=>m(m({},qte()),{defaultValue:at(),value:at(),onChange:ve(),"onUpdate:value":ve()}),Qte=()=>({prefixCls:String,defaultChecked:Ce(),checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,indeterminate:Ce(),type:Be("checkbox"),autofocus:Ce(),onChange:ve(),"onUpdate:checked":ve(),onClick:ve(),skipGroup:Ce(!1)}),Jte=()=>m(m({},Qte()),{indeterminate:Ce(!1)}),M8=Symbol("CheckboxGroupContext");var Tw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(v==null?void 0:v.disabled.value)||u.value);ke(()=>{!e.skipGroup&&v&&v.registerValue(h,e.value)}),Ze(()=>{v&&v.cancelValue(h)}),je(()=>{It(!!(e.checked!==void 0||v||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),i.onFieldChange()},S=le();return l({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=yt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:I,id:T=i.id.value}=e,_=Tw(e,["indeterminate","skipGroup","id"]),{onMouseenter:E,onMouseleave:A,onInput:R,class:z,style:M}=o,B=Tw(o,["onMouseenter","onMouseleave","onInput","class","style"]),N=m(m(m(m({},_),{id:T,prefixCls:s.value}),B),{disabled:b.value});v&&!I?(N.onChange=function(){for(var j=arguments.length,H=new Array(j),Y=0;Y`${a.value}-group`),[u,d]=E8(c),f=le((e.value===void 0?e.defaultValue:e.value)||[]);be(()=>e.value,()=>{f.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),v=le(Symbol()),h=le(new Map),b=x=>{h.value.delete(x),v.value=Symbol()},y=(x,C)=>{h.value.set(x,C),v.value=Symbol()},S=le(new Map);return be(v,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Ge(M8,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=f.value.indexOf(x.value),O=[...f.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(f.value=O);const w=O.filter(I=>S.value.has(I)).sort((I,T)=>{const _=g.value.findIndex(A=>A.value===I),E=g.value.findIndex(A=>A.value===T);return _-E});r("update:value",w),r("change",w),i.onFieldChange()},mergedValue:f,name:P(()=>e.name),disabled:P(()=>e.disabled)}),l({mergedValue:f}),()=>{var x;const{id:C=i.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var I;return p($o,{prefixCls:a.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:f.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${c.value}-item`},{default:()=>[n.label!==void 0?(I=n.label)===null||I===void 0?void 0:I.call(n,w):w.label]})})),u(p("div",D(D({},o),{},{class:[c.value,{[`${c.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});$o.Group=vf;$o.install=function(e){return e.component($o.name,$o),e.component(vf.name,vf),e};const ene={useBreakpoint:Va},tne=Tt(Vp),nne=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:l,commentFontSizeSm:i,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:g}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:l,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:l,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:a,fontSize:l,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:g,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},one=Ve("Comment",e=>{const t=Fe(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[nne(t)]}),rne=()=>({actions:Array,author:V.any,avatar:V.any,content:V.any,prefixCls:String,datetime:V.any}),lne=oe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:rne(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("comment",e),[i,a]=one(r),s=(u,d)=>p("div",{class:`${u}-nested`},[d]),c=u=>!u||!u.length?null:u.map((f,g)=>p("li",{key:`action-${g}`},[f]));return()=>{var u,d,f,g,v,h,b,y,S,$,x;const C=r.value,O=(u=e.actions)!==null&&u!==void 0?u:(d=n.actions)===null||d===void 0?void 0:d.call(n),w=(f=e.author)!==null&&f!==void 0?f:(g=n.author)===null||g===void 0?void 0:g.call(n),I=(v=e.avatar)!==null&&v!==void 0?v:(h=n.avatar)===null||h===void 0?void 0:h.call(n),T=(b=e.content)!==null&&b!==void 0?b:(y=n.content)===null||y===void 0?void 0:y.call(n),_=(S=e.datetime)!==null&&S!==void 0?S:($=n.datetime)===null||$===void 0?void 0:$.call(n),E=p("div",{class:`${C}-avatar`},[typeof I=="string"?p("img",{src:I,alt:"comment-avatar"},null):I]),A=O?p("ul",{class:`${C}-actions`},[c(Array.isArray(O)?O:[O])]):null,R=p("div",{class:`${C}-content-author`},[w&&p("span",{class:`${C}-content-author-name`},[w]),_&&p("span",{class:`${C}-content-author-time`},[_])]),z=p("div",{class:`${C}-content`},[R,p("div",{class:`${C}-content-detail`},[T]),A]),M=p("div",{class:`${C}-inner`},[E,z]),B=yt((x=n.default)===null||x===void 0?void 0:x.call(n));return i(p("div",D(D({},o),{},{class:[C,{[`${C}-rtl`]:l.value==="rtl"},o.class,a.value]}),[M,B&&B.length?s(C,B):null]))}}}),ine=Tt(lne);let Zu=m({},jn.Modal);function ane(e){e?Zu=m(m({},Zu),e):Zu=m({},jn.Modal)}function sne(){return Zu}const cm="internalMark",Qu=oe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;It(e.ANT_MARK__===cm);const o=ut({antLocale:m(m({},e.locale),{exist:!0}),ANT_MARK__:cm});return Ge("localeData",o),be(()=>e.locale,r=>{ane(r&&r.Modal),o.antLocale=m(m({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});Qu.install=function(e){return e.component(Qu.name,Qu),e};const _8=Tt(Qu),A8=oe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,l=!1;const i=P(()=>e.duration===void 0?4.5:e.duration),a=()=>{i.value&&!l&&(r=setTimeout(()=>{c()},i.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},c=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:g}=e;f&&f(g)},u=()=>{s(),a()};return je(()=>{a()}),Rn(()=>{l=!0,s()}),be([i,()=>e.updateMark,()=>e.visible],(d,f)=>{let[g,v,h]=d,[b,y,S]=f;(g!==b||v!==y||h!==S&&S)&&u()},{flush:"post"}),()=>{var d,f;const{prefixCls:g,closable:v,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(w[I]=n[I]),w),{}),O=p("div",D({class:ie(x,S,{[`${x}-closable`]:v}),style:$,onMouseenter:s,onMouseleave:a,onClick:b},C),[p("div",{class:`${x}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),v?p("a",{tabindex:0,onClick:c,class:`${x}-close`},[h||p("span",{class:`${x}-close-x`},null)]):null]);return y?p(Jm,{to:y},{default:()=>O}):O}}});var cne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:u,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${u}-${d}`),up(f)}),s=(u,d)=>{const f=u.key||Mw(),g=m(m({},u),{key:f}),{maxCount:v}=e,h=i.value.map(y=>y.notice.key).indexOf(f),b=i.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(v&&i.value.length>=v&&(g.key=b[0].notice.key,g.updateMark=Mw(),g.userPassKey=f,b.shift()),b.push({notice:g,holderCallback:d})),i.value=b},c=u=>{i.value=Qe(i.value).filter(d=>{let{notice:{key:f,userPassKey:g}}=d;return(g||f)!==u})};return o({add:s,remove:c,notices:i}),()=>{var u;const{prefixCls:d,closeIcon:f=(u=r.closeIcon)===null||u===void 0?void 0:u.call(r,{prefixCls:d})}=e,g=i.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===i.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:I=>{var T;c(I),(T=y.onClose)===null||T===void 0||T.call(y)},onClick:y.onClick});return S?p("div",{key:x,class:`${d}-hook-holder`,ref:I=>{typeof x>"u"||(I?(l.set(x,I),S(I,w)):l.delete(x))}},null):p(A8,D(D({},w),{},{class:ie(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[p(Hf,D({tag:"div"},a.value),{default:()=>[g]})])}}});um.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:l,appContext:i,prefixCls:a,rootPrefixCls:s,transitionName:c,hasTransitionName:u,useStyle:d}=o,f=cne(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");l?l().appendChild(g):document.body.appendChild(g);const h=p(oe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=te(),x=P(()=>vn.getPrefixCls(r,a)),[,C]=d(x);return je(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){bl(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=vn,w=O.getRootPrefixCls(s,x.value),I=u?c:`${x.value}-${c}`;return p(zy,D(D({},O),{},{prefixCls:w}),{default:()=>[p(um,D(D({ref:$},S),{},{prefixCls:x.value,transitionName:I,hashId:C.value}),null)]})}}}),f);h.appContext=i||h.appContext,bl(h,g)};const R8=um;let _w=0;const dne=Date.now();function Aw(){const e=_w;return _w+=1,`rcNotification_${dne}_${e}`}const fne=oe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,l=P(()=>e.notices),i=P(()=>{let u=e.transitionName;if(!u&&e.animation)switch(typeof e.animation){case"string":u=e.animation;break;case"function":u=e.animation().name;break;case"object":u=e.animation.name;break;default:u=`${e.prefixCls}-fade`;break}return up(u)}),a=u=>e.remove(u),s=le({});be(l,()=>{const u={};Object.keys(s.value).forEach(d=>{u[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(u[f]=u[f]||[],u[f].push(d))}),s.value=u});const c=P(()=>Object.keys(s.value));return()=>{var u;const{prefixCls:d,closeIcon:f=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o,{prefixCls:d})}=e,g=c.value.map(v=>{var h,b;const y=s.value[v],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,v),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,v),x=y.map((w,I)=>{let{notice:T,holderCallback:_}=w;const E=I===l.value.length-1?T.updateMark:void 0,{key:A,userPassKey:R}=T,{content:z}=T,M=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},T),T.props),{key:A,noticeKey:R||A,updateMark:E,onClose:B=>{var N;a(B),(N=T.onClose)===null||N===void 0||N.call(T)},onClick:T.onClick});return _?p("div",{key:A,class:`${d}-hook-holder`,ref:B=>{typeof A>"u"||(B?(r.set(A,B),_(B,M)):r.delete(A))}},null):p(A8,D(D({},M),{},{class:ie(M.class,e.hashId)}),{default:()=>[typeof z=="function"?z({prefixCls:d}):z]})}),C={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,v),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return p("div",{key:v,class:C,style:n.style||$||{top:"65px",left:"50%"}},[p(Hf,D(D({tag:"div"},i.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return p(xI,{getContainer:e.getContainer},{default:()=>[g]})}}}),pne=fne;var gne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let Rw=0;function vne(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(l=>{const i=r[l];i!==void 0&&(e[l]=i)})}),e}function D8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=hne,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:i,onAllRemoved:a}=e,s=gne(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=te([]),u=te(),d=(y,S)=>{const $=y.key||Aw(),x=m(m({},y),{key:$}),C=c.value.map(w=>w.notice.key).indexOf($),O=c.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&c.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=Aw(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),c.value=O},f=y=>{c.value=c.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{c.value=[]},v=()=>p(pne,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:f,getClassName:l,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),h=te([]),b={open:y=>{const S=vne(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${Rw}`,Rw+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return be(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":f(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,v]}const mne=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:m(m({},Xe(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:g,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:r,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[` - ${t}-info ${n}, - ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},B8=Ve("Message",e=>{const t=Fe(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[mne(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),bne={info:p(Wa,null,null),success:p(zr,null,null),error:p(Qn,null,null),warning:p(Hr,null,null),loading:p(co,null,null)},yne=oe({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:ie(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||bne[e.type],p("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var Sne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rl("message",e.prefixCls)),[,s]=B8(a),c=()=>{var h;const b=(h=e.top)!==null&&h!==void 0?h:$ne;return{left:"50%",transform:"translateX(-50%)",top:typeof b=="number"?`${b}px`:b}},u=()=>ie(s.value,e.rtl?`${a.value}-rtl`:""),d=()=>{var h;return _0({prefixCls:a.value,animation:(h=e.animation)!==null&&h!==void 0?h:"move-up",transitionName:e.transitionName})},f=p("span",{class:`${a.value}-close-x`},[p(Zn,{class:`${a.value}-close-icon`},null)]),[g,v]=D8({getStyles:c,prefixCls:a.value,getClassName:u,motion:d,closable:!1,closeIcon:f,duration:(o=e.duration)!==null&&o!==void 0?o:Cne,getContainer:(r=e.staticGetContainer)!==null&&r!==void 0?r:i.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(m(m({},g),{prefixCls:a,hashId:s})),v}});let Dw=0;function wne(e){const t=te(null),n=Symbol("messageHolderKey"),o=s=>{var c;(c=t.value)===null||c===void 0||c.close(s)},r=s=>{if(!t.value){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,hashId:d}=t.value,f=`${u}-notice`,{content:g,icon:v,type:h,key:b,class:y,onClose:S}=s,$=Sne(s,["content","icon","type","key","class","onClose"]);let x=b;return x==null&&(Dw+=1,x=`antd-message-${Dw}`),DR(C=>(c(m(m({},$),{key:x,content:()=>p(yne,{prefixCls:u,type:h,icon:typeof v=="function"?v():v},{default:()=>[typeof g=="function"?g():g]}),placement:"top",class:ie(h&&`${f}-${h}`,d,y),onClose:()=>{S==null||S(),C()}})),()=>{o(x)}))},i={open:r,destroy:s=>{var c;s!==void 0?o(s):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(u,d,f)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let v,h;typeof d=="function"?h=d:(v=d,h=f);const b=m(m({onClose:h,duration:v},g),{type:s});return r(b)};i[s]=c}),[i,()=>p(xne,D(D({key:n},e),{},{ref:t}),null)]}function N8(e){return wne(e)}let F8=3,L8,kn,One=1,k8="",z8="move-up",H8=!1,j8=()=>document.body,W8,V8=!1;function Pne(){return One++}function Ine(e){e.top!==void 0&&(L8=e.top,kn=null),e.duration!==void 0&&(F8=e.duration),e.prefixCls!==void 0&&(k8=e.prefixCls),e.getContainer!==void 0&&(j8=e.getContainer,kn=null),e.transitionName!==void 0&&(z8=e.transitionName,kn=null,H8=!0),e.maxCount!==void 0&&(W8=e.maxCount,kn=null),e.rtl!==void 0&&(V8=e.rtl)}function Tne(e,t){if(kn){t(kn);return}R8.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||k8,rootPrefixCls:e.rootPrefixCls,transitionName:z8,hasTransitionName:H8,style:{top:L8},getContainer:j8||e.getPopupContainer,maxCount:W8,name:"message",useStyle:B8},n=>{if(kn){t(kn);return}kn=n,t(n)})}const K8={info:Wa,success:zr,error:Qn,warning:Hr,loading:co},Ene=Object.keys(K8);function Mne(e){const t=e.duration!==void 0?e.duration:F8,n=e.key||Pne(),o=new Promise(l=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),l(!0));Tne(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:c}=s;const u=K8[e.type],d=u?p(u,null,null):"",f=ie(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:V8===!0});return p("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,p("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),r=()=>{kn&&kn.removeNotice(n)};return r.then=(l,i)=>o.then(l,i),r.promise=o,r}function _ne(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const bc={open:Mne,config:Ine,destroy(e){if(kn)if(e){const{removeNotice:t}=kn;t(e)}else{const{destroy:t}=kn;t(),kn=null}}};function Ane(e,t){e[t]=(n,o,r)=>_ne(n)?e.open(m(m({},n),{type:t})):(typeof o=="function"&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}Ene.forEach(e=>Ane(bc,e));bc.warn=bc.warning;bc.useMessage=N8;const ga=bc,Rne=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new nt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new nt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new nt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},Dne=Rne,Bne=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:g,notificationMarginEdge:v,motionDurationMid:h,motionEaseInOut:b,fontSize:y,lineHeight:S,width:$,notificationIconSize:x}=e,C=`${n}-notice`,O=new nt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:$},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new nt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:m(m(m(m({},Xe(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:b,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:b,animationFillMode:"both",animationDuration:h,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),Dne(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[C]:{position:"relative",width:$,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:l,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:S,wordWrap:"break-word",background:f,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:r},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+x,fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${C}-pure-panel`]:{margin:0}}]},G8=Ve("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=Fe(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Bne(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function Nne(e,t){return t||p("span",{class:`${e}-close-x`},[p(Zn,{class:`${e}-close-icon`},null)])}p(Wa,null,null),p(zr,null,null),p(Qn,null,null),p(Hr,null,null),p(co,null,null);const Fne={success:zr,info:Wa,error:Qn,warning:Hr};function Lne(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=p("span",{class:`${t}-icon`},[Xi(n)]);else if(o){const s=Fne[o];a=p(s,{class:`${t}-icon ${t}-icon-${o}`},null)}return p("div",{class:ie({[`${t}-with-icon`]:a}),role:"alert"},[a,p("div",{class:`${t}-message`},[r]),p("div",{class:`${t}-description`},[l]),i&&p("div",{class:`${t}-btn`},[i])])}function X8(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function kne(e){return{name:`${e}-fade`}}var zne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification")),i=f=>{var g,v;return X8(f,(g=e.top)!==null&&g!==void 0?g:Bw,(v=e.bottom)!==null&&v!==void 0?v:Bw)},[,a]=G8(l),s=()=>ie(a.value,{[`${l.value}-rtl`]:e.rtl}),c=()=>kne(l.value),[u,d]=D8({prefixCls:l.value,getStyles:i,getClassName:s,motion:c,closable:!0,closeIcon:Nne(l.value),duration:Hne,getContainer:()=>{var f,g;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((g=r.value)===null||g===void 0?void 0:g.call(r))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return n(m(m({},u),{prefixCls:l.value,hashId:a})),d}});function Wne(e){const t=te(null),n=Symbol("notificationHolderKey"),o=a=>{if(!t.value)return;const{open:s,prefixCls:c,hashId:u}=t.value,d=`${c}-notice`,{message:f,description:g,icon:v,type:h,btn:b,class:y}=a,S=zne(a,["message","description","icon","type","btn","class"]);return s(m(m({placement:"topRight"},S),{content:()=>p(Lne,{prefixCls:d,icon:typeof v=="function"?v():v,type:h,message:typeof f=="function"?f():f,description:typeof g=="function"?g():g,btn:typeof b=="function"?b():b},null),class:ie(h&&`${d}-${h}`,u,y)}))},l={open:o,destroy:a=>{var s,c;a!==void 0?(s=t.value)===null||s===void 0||s.close(a):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{l[a]=s=>o(m(m({},s),{type:a}))}),[l,()=>p(jne,D(D({key:n},e),{},{ref:t}),null)]}function U8(e){return Wne(e)}globalThis&&globalThis.__awaiter;const Xl={};let Y8=4.5,q8="24px",Z8="24px",dm="",Q8="topRight",J8=()=>document.body,eE=null,fm=!1,tE;function Vne(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;a!==void 0&&(dm=a),t!==void 0&&(Y8=t),n!==void 0&&(Q8=n),o!==void 0&&(Z8=typeof o=="number"?`${o}px`:o),r!==void 0&&(q8=typeof r=="number"?`${r}px`:r),l!==void 0&&(J8=l),i!==void 0&&(eE=i),e.rtl!==void 0&&(fm=e.rtl),e.maxCount!==void 0&&(tE=e.maxCount)}function Kne(e,t){let{prefixCls:n,placement:o=Q8,getContainer:r=J8,top:l,bottom:i,closeIcon:a=eE,appContext:s}=e;const{getPrefixCls:c}=roe(),u=c("notification",n||dm),d=`${u}-${o}-${fm}`,f=Xl[d];if(f){Promise.resolve(f).then(v=>{t(v)});return}const g=ie(`${u}-${o}`,{[`${u}-rtl`]:fm===!0});R8.newInstance({name:"notification",prefixCls:n||dm,useStyle:G8,class:g,style:X8(o,l??q8,i??Z8),appContext:s,getContainer:r,closeIcon:v=>{let{prefixCls:h}=v;return p("span",{class:`${h}-close-x`},[Xi(a,{},p(Zn,{class:`${h}-close-icon`},null))])},maxCount:tE,hasTransitionName:!0},v=>{Xl[d]=v,t(v)})}const Gne={success:vT,info:bT,error:yT,warning:mT};function Xne(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=e.duration===void 0?Y8:e.duration;Kne(e,a=>{a.notice({content:s=>{let{prefixCls:c}=s;const u=`${c}-notice`;let d=null;if(t)d=()=>p("span",{class:`${u}-icon`},[Xi(t)]);else if(n){const f=Gne[n];d=()=>p(f,{class:`${u}-icon ${u}-icon-${n}`},null)}return p("div",{class:d?`${u}-with-icon`:""},[d&&d(),p("div",{class:`${u}-message`},[!o&&d?p("span",{class:`${u}-message-single-line-auto-margin`},null):null,Xi(r)]),p("div",{class:`${u}-description`},[Xi(o)]),l?p("span",{class:`${u}-btn`},[Xi(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const _a={open:Xne,close(e){Object.keys(Xl).forEach(t=>Promise.resolve(Xl[t]).then(n=>{n.removeNotice(e)}))},config:Vne,destroy(){Object.keys(Xl).forEach(e=>{Promise.resolve(Xl[e]).then(t=>{t.destroy()}),delete Xl[e]})}},Une=["success","info","warning","error"];Une.forEach(e=>{_a[e]=t=>_a.open(m(m({},t),{type:e}))});_a.warn=_a.warning;_a.useNotification=U8;const Ly=_a,Yne=`-ant-${Date.now()}-${Math.random()}`;function qne(e,t){const n={},o=(i,a)=>{let s=i.clone();return s=(a==null?void 0:a(s))||s,s.toRgbString()},r=(i,a)=>{const s=new gt(i),c=ci(s.toRgbString());n[`${a}-color`]=o(s),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){r(t.primaryColor,"primary");const i=new gt(t.primaryColor),a=ci(i.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=o(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=o(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=o(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=o(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=o(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new gt(a[0]);n["primary-color-active-deprecated-f-30"]=o(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(s,c=>c.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` -`)} - } - `.trim()}function Zne(e,t){const n=qne(e,t);Mn()?ec(n,`${Yne}-dynamic-theme`):It()}const Qne=e=>{const[t,n]=Fr();return Dd(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:m(m({},yi()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},Jne=Qne;function eoe(e,t){const n=P(()=>(e==null?void 0:e.value)||{}),o=P(()=>n.value.inherit===!1||!(t!=null&&t.value)?EP:t.value);return P(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const l=m({},o.value.components);return Object.keys(e.value.components||{}).forEach(i=>{l[i]=m(m({},l[i]),e.value.components[i])}),m(m(m({},o.value),n.value),{token:m(m({},o.value.token),n.value.token),components:l})})}var toe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{m(vn,ky),vn.prefixCls=ha(),vn.iconPrefixCls=nE(),vn.getPrefixCls=(e,t)=>t||(e?`${vn.prefixCls}-${e}`:vn.prefixCls),vn.getRootPrefixCls=()=>vn.prefixCls?vn.prefixCls:ha()});let Sh;const ooe=e=>{Sh&&Sh(),Sh=ke(()=>{m(ky,ut(e)),m(vn,ut(e))}),e.theme&&Zne(ha(),e.theme)},roe=()=>({getPrefixCls:(e,t)=>t||(e?`${ha()}-${e}`:ha()),getIconPrefixCls:nE,getRootPrefixCls:()=>vn.prefixCls?vn.prefixCls:ha()}),Ns=oe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:cD(),setup(e,t){let{slots:n}=t;const o=Xf(),r=(M,B)=>{const{prefixCls:N="ant"}=e;if(B)return B;const F=N||o.getPrefixCls("");return M?`${F}-${M}`:F},l=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||h0),i=P(()=>l.value!==o.iconPrefixCls.value),a=P(()=>{var M;return e.csp||((M=o.csp)===null||M===void 0?void 0:M.value)}),s=Jne(l),c=eoe(P(()=>e.theme),P(()=>{var M;return(M=o.theme)===null||M===void 0?void 0:M.value})),u=M=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||wB)(M),d=P(()=>{var M,B;return(M=e.autoInsertSpaceInButton)!==null&&M!==void 0?M:(B=o.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),f=P(()=>{var M;return e.locale||((M=o.locale)===null||M===void 0?void 0:M.value)});be(f,()=>{ky.locale=f.value},{immediate:!0});const g=P(()=>{var M;return e.direction||((M=o.direction)===null||M===void 0?void 0:M.value)}),v=P(()=>{var M,B;return(M=e.space)!==null&&M!==void 0?M:(B=o.space)===null||B===void 0?void 0:B.value}),h=P(()=>{var M,B;return(M=e.virtual)!==null&&M!==void 0?M:(B=o.virtual)===null||B===void 0?void 0:B.value}),b=P(()=>{var M,B;return(M=e.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(B=o.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=P(()=>{var M;return e.getTargetContainer!==void 0?e.getTargetContainer:(M=o.getTargetContainer)===null||M===void 0?void 0:M.value}),S=P(()=>{var M;return e.getPopupContainer!==void 0?e.getPopupContainer:(M=o.getPopupContainer)===null||M===void 0?void 0:M.value}),$=P(()=>{var M;return e.pageHeader!==void 0?e.pageHeader:(M=o.pageHeader)===null||M===void 0?void 0:M.value}),x=P(()=>{var M;return e.input!==void 0?e.input:(M=o.input)===null||M===void 0?void 0:M.value}),C=P(()=>{var M;return e.pagination!==void 0?e.pagination:(M=o.pagination)===null||M===void 0?void 0:M.value}),O=P(()=>{var M;return e.form!==void 0?e.form:(M=o.form)===null||M===void 0?void 0:M.value}),w=P(()=>{var M;return e.select!==void 0?e.select:(M=o.select)===null||M===void 0?void 0:M.value}),I=P(()=>e.componentSize),T=P(()=>e.componentDisabled),_=P(()=>{var M,B;return(M=e.wave)!==null&&M!==void 0?M:(B=o.wave)===null||B===void 0?void 0:B.value}),E={csp:a,autoInsertSpaceInButton:d,locale:f,direction:g,space:v,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:l,theme:P(()=>{var M,B;return(M=c.value)!==null&&M!==void 0?M:(B=o.theme)===null||B===void 0?void 0:B.value}),renderEmpty:u,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:I,componentDisabled:T,transformCellText:P(()=>e.transformCellText),wave:_},A=P(()=>{const M=c.value||{},{algorithm:B,token:N}=M,F=toe(M,["algorithm","token"]),L=B&&(!Array.isArray(B)||B.length>0)?S0(B):void 0;return m(m({},F),{theme:L,token:m(m({},Qf),N)})}),R=P(()=>{var M,B;let N={};return f.value&&(N=((M=f.value.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||((B=jn.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(N=m(m({},N),e.form.validateMessages)),N});uD(E),aD({validateMessages:R}),NP(I),eP(T);const z=M=>{var B,N;let F=i.value?s((B=n.default)===null||B===void 0?void 0:B.call(n)):(N=n.default)===null||N===void 0?void 0:N.call(n);if(e.theme){const L=function(){return F}();F=p(bB,{value:A.value},{default:()=>[L]})}return p(_8,{locale:f.value||M,ANT_MARK__:cm},{default:()=>[F]})};return ke(()=>{g.value&&(ga.config({rtl:g.value==="rtl"}),Ly.config({rtl:g.value==="rtl"}))}),()=>p(bi,{children:(M,B,N)=>z(N)},null)}});Ns.config=ooe;Ns.install=function(e){e.component(Ns.name,Ns)};const zy=Ns,loe=(e,t)=>{let{attrs:n,slots:o}=t;return p(zt,D(D({size:"small",type:"primary"},e),n),o)},ioe=loe,xu=(e,t,n)=>{const o=MR(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aoe=e=>Bd(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:l,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),soe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,l=o-n,i=t-n;return{[r]:m(m({},Xe(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-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(${r}-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}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},oE=Ve("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,l=Math.round(t*n),i=e.fontSizeSM,a=l-o*2,s=e.colorFillAlter,c=e.colorText,u=Fe(e,{tagFontSize:i,tagLineHeight:a,tagDefaultBg:s,tagDefaultColor:c,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[soe(u),aoe(u),xu(u,"success","Success"),xu(u,"processing","Info"),xu(u,"error","Error"),xu(u,"warning","Warning")]}),coe=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),uoe=oe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:coe(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l}=Te("tag",e),[i,a]=oE(l),s=u=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",u)},c=P(()=>ie(l.value,a.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:e.checked}));return()=>{var u;return i(p("span",D(D({},r),{},{class:[c.value,r.class],onClick:s}),[(u=n.default)===null||u===void 0?void 0:u.call(n)]))}}}),mf=uoe,doe=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:V.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:si(),"onUpdate:visible":Function,icon:V.any,bordered:{type:Boolean,default:!0}}),Fs=oe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:doe(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l,direction:i}=Te("tag",e),[a,s]=oE(l),c=te(!0);ke(()=>{e.visible!==void 0&&(c.value=e.visible)});const u=v=>{v.stopPropagation(),o("update:visible",!1),o("close",v),!v.defaultPrevented&&e.visible===void 0&&(c.value=!1)},d=P(()=>Ip(e.color)||jX(e.color)),f=P(()=>ie(l.value,s.value,{[`${l.value}-${e.color}`]:d.value,[`${l.value}-has-color`]:e.color&&!d.value,[`${l.value}-hidden`]:!c.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-borderless`]:!e.bordered})),g=v=>{o("click",v)};return()=>{var v,h,b;const{icon:y=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?p("span",{class:`${l.value}-close-icon`,onClick:u},[$]):p(Zn,{class:`${l.value}-close-icon`,onClick:u},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,I=(b=n.default)===null||b===void 0?void 0:b.call(n),T=w?p(We,null,[w,p("span",null,[I])]):I,_=e.onClick!==void 0,E=p("span",D(D({},r),{},{onClick:g,class:[f.value,r.class],style:[O,r.style]}),[T,C()]);return a(_?p(kb,null,{default:()=>[E]}):E)}}});Fs.CheckableTag=mf;Fs.install=function(e){return e.component(Fs.name,Fs),e.component(mf.name,mf),e};const rE=Fs;function foe(e,t){let{slots:n,attrs:o}=t;return p(rE,D(D({color:"blue"},e),o),n)}var poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const goe=poe;function Nw(e){for(var t=1;tE.value||I.value),[z,M]=k6(C),B=le();h({focus:()=>{var J;(J=B.value)===null||J===void 0||J.focus()},blur:()=>{var J;(J=B.value)===null||J===void 0||J.blur()}});const N=J=>S.valueFormat?e.toString(J,S.valueFormat):J,F=(J,Q)=>{const K=N(J);y("update:value",K),y("change",K,Q),$.onFieldChange()},L=J=>{y("update:open",J),y("openChange",J)},k=J=>{y("focus",J)},j=J=>{y("blur",J),$.onFieldBlur()},H=(J,Q)=>{const K=N(J);y("panelChange",K,Q)},Y=J=>{const Q=N(J);y("ok",Q)},[Z]=Io("DatePicker",Js),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),ee=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),G=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var J,Q,K,q,pe,W;const X=m(m({},Z.value),S.locale),ne=m(m({},S),b),{bordered:ae=!0,placeholder:se,suffixIcon:re=(J=v.suffixIcon)===null||J===void 0?void 0:J.call(v),showToday:de=!0,transitionName:ge,allowClear:me=!0,dateRender:fe=v.dateRender,renderExtraFooter:ye=v.renderExtraFooter,monthCellRender:Se=v.monthCellRender||S.monthCellContentRender||v.monthCellContentRender,clearIcon:ue=(Q=v.clearIcon)===null||Q===void 0?void 0:Q.call(v),id:ce=$.id.value}=ne,he=$oe(ne,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),Pe=ne.showTime===""?!0:ne.showTime,{format:Ie}=ne;let Ae={};c&&(Ae.picker=c);const $e=c||ne.picker||"date";Ae=m(m(m({},Ae),Pe?yf(m({format:Ie,picker:$e},typeof Pe=="object"?Pe:{})):{}),$e==="time"?yf(m(m({format:Ie},he),{picker:$e})):{});const xe=C.value,we=p(We,null,[re||p(c==="time"?iE:lE,null,null),x.hasFeedback&&x.feedbackIcon]);return z(p(Fq,D(D(D({monthCellRender:Se,dateRender:fe,renderExtraFooter:ye,ref:B,placeholder:yoe(X,$e,se),suffixIcon:we,dropdownAlign:aE(O.value,S.placement),clearIcon:ue||p(Qn,null,null),allowClear:me,transitionName:ge||`${T.value}-slide-up`},he),Ae),{},{id:ce,picker:$e,value:U.value,defaultValue:ee.value,defaultPickerValue:G.value,showToday:de,locale:X.lang,class:ie({[`${xe}-${R.value}`]:R.value,[`${xe}-borderless`]:!ae},Tn(xe,Ko(x.status,S.status),x.hasFeedback),b.class,M.value,A.value),disabled:_.value,prefixCls:xe,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((K=v.prevIcon)===null||K===void 0?void 0:K.call(v))||p("span",{class:`${xe}-prev-icon`},null),nextIcon:((q=v.nextIcon)===null||q===void 0?void 0:q.call(v))||p("span",{class:`${xe}-next-icon`},null),superPrevIcon:((pe=v.superPrevIcon)===null||pe===void 0?void 0:pe.call(v))||p("span",{class:`${xe}-super-prev-icon`},null),superNextIcon:((W=v.superNextIcon)===null||W===void 0?void 0:W.call(v))||p("span",{class:`${xe}-super-next-icon`},null),components:uE,direction:O.value,dropdownClassName:ie(M.value,S.popupClassName,S.dropdownClassName),onChange:F,onOpenChange:L,onFocus:k,onBlur:j,onPanelChange:H,onOk:Y}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),l=n("month","AMonthPicker"),i=n("year","AYearPicker"),a=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:l,YearPicker:i,TimePicker:a,QuarterPicker:s}}var xoe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const woe=xoe;function Lw(e){for(var t=1;tS.value||h.value),[C,O]=k6(f),w=le();l({focus:()=>{var k;(k=w.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=w.value)===null||k===void 0||k.blur()}});const I=k=>c.valueFormat?e.toString(k,c.valueFormat):k,T=(k,j)=>{const H=I(k);s("update:value",H),s("change",H,j),u.onFieldChange()},_=k=>{s("update:open",k),s("openChange",k)},E=k=>{s("focus",k)},A=k=>{s("blur",k),u.onFieldBlur()},R=(k,j)=>{const H=I(k);s("panelChange",H,j)},z=k=>{const j=I(k);s("ok",j)},M=(k,j,H)=>{const Y=I(k);s("calendarChange",Y,j,H)},[B]=Io("DatePicker",Js),N=P(()=>c.value&&c.valueFormat?e.toDate(c.value,c.valueFormat):c.value),F=P(()=>c.defaultValue&&c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue),L=P(()=>c.defaultPickerValue&&c.valueFormat?e.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue);return()=>{var k,j,H,Y,Z,U,ee;const G=m(m({},B.value),c.locale),J=m(m({},c),a),{prefixCls:Q,bordered:K=!0,placeholder:q,suffixIcon:pe=(k=i.suffixIcon)===null||k===void 0?void 0:k.call(i),picker:W="date",transitionName:X,allowClear:ne=!0,dateRender:ae=i.dateRender,renderExtraFooter:se=i.renderExtraFooter,separator:re=(j=i.separator)===null||j===void 0?void 0:j.call(i),clearIcon:de=(H=i.clearIcon)===null||H===void 0?void 0:H.call(i),id:ge=u.id.value}=J,me=Ioe(J,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete me["onUpdate:value"],delete me["onUpdate:open"];const{format:fe,showTime:ye}=J;let Se={};Se=m(m(m({},Se),ye?yf(m({format:fe,picker:W},ye)):{}),W==="time"?yf(m(m({format:fe},et(me,["disabledTime"])),{picker:W})):{});const ue=f.value,ce=p(We,null,[pe||p(W==="time"?iE:lE,null,null),d.hasFeedback&&d.feedbackIcon]);return C(p(Uq,D(D(D({dateRender:ae,renderExtraFooter:se,separator:re||p("span",{"aria-label":"to",class:`${ue}-separator`},[p(Poe,null,null)]),ref:w,dropdownAlign:aE(g.value,c.placement),placeholder:Soe(G,W,q),suffixIcon:ce,clearIcon:de||p(Qn,null,null),allowClear:ne,transitionName:X||`${b.value}-slide-up`},me),Se),{},{disabled:y.value,id:ge,value:N.value,defaultValue:F.value,defaultPickerValue:L.value,picker:W,class:ie({[`${ue}-${x.value}`]:x.value,[`${ue}-borderless`]:!K},Tn(ue,Ko(d.status,c.status),d.hasFeedback),a.class,O.value,$.value),locale:G.lang,prefixCls:ue,getPopupContainer:a.getCalendarContainer||v.value,generateConfig:e,prevIcon:((Y=i.prevIcon)===null||Y===void 0?void 0:Y.call(i))||p("span",{class:`${ue}-prev-icon`},null),nextIcon:((Z=i.nextIcon)===null||Z===void 0?void 0:Z.call(i))||p("span",{class:`${ue}-next-icon`},null),superPrevIcon:((U=i.superPrevIcon)===null||U===void 0?void 0:U.call(i))||p("span",{class:`${ue}-super-prev-icon`},null),superNextIcon:((ee=i.superNextIcon)===null||ee===void 0?void 0:ee.call(i))||p("span",{class:`${ue}-super-next-icon`},null),components:uE,direction:g.value,dropdownClassName:ie(O.value,c.popupClassName,c.dropdownClassName),onChange:T,onOpenChange:_,onFocus:E,onBlur:A,onPanelChange:R,onOk:z,onCalendarChange:M}),null))}}})}const uE={button:ioe,rangeItem:foe};function Eoe(e){return e?Array.isArray(e)?e:[e]:[]}function yf(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:l,use12Hours:i}=e,a=Eoe(t)[0],s=m({},e);return a&&typeof a=="string"&&(!a.includes("s")&&l===void 0&&(s.showSecond=!1),!a.includes("m")&&r===void 0&&(s.showMinute=!1),!a.includes("H")&&!a.includes("h")&&o===void 0&&(s.showHour=!1),(a.includes("a")||a.includes("A"))&&i===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof a=="function"&&delete s.format,{showTime:s})}function dE(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a}=Coe(e,t),s=Toe(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a,RangePicker:s}}const{DatePicker:$h,WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,TimePicker:_oe,QuarterPicker:td,RangePicker:nd}=dE(Ub),Aoe=m($h,{WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,RangePicker:nd,TimePicker:_oe,QuarterPicker:td,install:e=>(e.component($h.name,$h),e.component(nd.name,nd),e.component(ed.name,ed),e.component(Ju.name,Ju),e.component(td.name,td),e)});function wu(e){return e!=null}const Roe=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:l,bordered:i,label:a,content:s,colon:c}=e,u=n;return i?p(u,{class:[{[`${t}-item-label`]:wu(a),[`${t}-item-content`]:wu(s)}],colSpan:o},{default:()=>[wu(a)&&p("span",{style:r},[a]),wu(s)&&p("span",{style:l},[s])]}):p(u,{class:[`${t}-item`],colSpan:o},{default:()=>[p("div",{class:`${t}-item-container`},[(a||a===0)&&p("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||s===0)&&p("span",{class:`${t}-item-content`,style:l},[s])])]})},Ch=Roe,Doe=e=>{const t=(c,u,d)=>{let{colon:f,prefixCls:g,bordered:v}=u,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return c.map((C,O)=>{var w,I;const T=C.props||{},{prefixCls:_=g,span:E=1,labelStyle:A=T["label-style"],contentStyle:R=T["content-style"],label:z=(I=(w=C.children)===null||w===void 0?void 0:w.label)===null||I===void 0?void 0:I.call(w)}=T,M=Gf(C),B=nD(C),N=KO(C),{key:F}=C;return typeof h=="string"?p(Ch,{key:`${b}-${String(F)||O}`,class:B,style:N,labelStyle:m(m({},$),A),contentStyle:m(m({},x),R),span:E,colon:f,component:h,itemPrefixCls:_,bordered:v,label:y?z:null,content:S?M:null},null):[p(Ch,{key:`label-${String(F)||O}`,class:B,style:m(m(m({},$),N),A),span:1,colon:f,component:h[0],itemPrefixCls:_,bordered:v,label:z},null),p(Ch,{key:`content-${String(F)||O}`,class:B,style:m(m(m({},x),N),R),span:E*2-1,component:h[1],itemPrefixCls:_,bordered:v,content:M},null)]})},{prefixCls:n,vertical:o,row:r,index:l,bordered:i}=e,{labelStyle:a,contentStyle:s}=He(gE,{labelStyle:le({}),contentStyle:le({})});return o?p(We,null,[p("tr",{key:`label-${l}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),p("tr",{key:`content-${l}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):p("tr",{key:l,class:`${n}-row`},[t(r,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},Boe=Doe,Noe=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:l}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:l,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},Foe=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:l,descriptionsTitleMarginBottom:i}=e;return{[t]:m(m(m({},Xe(e)),Noe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:m(m({},Gt),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${l}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Loe=Ve("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,l=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,c=e.marginXXS/2,u=Fe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:r,descriptionsDefaultPadding:l,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:c});return[Foe(u)]});V.any;const koe=()=>({prefixCls:String,label:V.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),fE=oe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:koe(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),pE={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function zoe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=dt(e,{span:t}),It()),o}function Hoe(e,t){const n=yt(e),o=[];let r=[],l=t;return n.forEach((i,a)=>{var s;const c=(s=i.props)===null||s===void 0?void 0:s.span,u=c||1;if(a===n.length-1){r.push(kw(i,l,c)),o.push(r);return}u({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:V.any,extra:V.any,column:{type:[Number,Object],default:()=>pE},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),gE=Symbol("descriptionsContext"),Ki=oe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:joe(),slots:Object,Item:fE,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("descriptions",e);let i;const a=le({}),[s,c]=Loe(r),u=Rb();Ff(()=>{i=u.value.subscribe(f=>{typeof e.column=="object"&&(a.value=f)})}),Ze(()=>{u.value.unsubscribe(i)}),Ge(gE,{labelStyle:ze(e,"labelStyle"),contentStyle:ze(e,"contentStyle")});const d=P(()=>zoe(e.column,a.value));return()=>{var f,g,v;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(v=n.default)===null||v===void 0?void 0:v.call(n),O=Hoe(C,d.value);return s(p("div",D(D({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:l.value==="rtl"},o.class,c.value]}),[($||x)&&p("div",{class:`${r.value}-header`},[$&&p("div",{class:`${r.value}-title`},[$]),x&&p("div",{class:`${r.value}-extra`},[x])]),p("div",{class:`${r.value}-view`},[p("table",null,[p("tbody",null,[O.map((w,I)=>p(Boe,{key:I,index:I,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});Ki.install=function(e){return e.component(Ki.name,Ki),e.component(Ki.Item.name,Ki.Item),e};const Woe=Ki,Voe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:m(m({},Xe(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Koe=Ve("Divider",e=>{const t=Fe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Voe(t)]},{sizePaddingEdgeHorizontal:0}),Goe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),Xoe=oe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:Goe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("divider",e),[i,a]=Koe(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),c=P(()=>e.orientation==="right"&&e.orientationMargin!=null),u=P(()=>{const{type:g,dashed:v,plain:h}=e,b=r.value;return{[b]:!0,[a.value]:!!a.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!v,[`${b}-plain`]:!!h,[`${b}-rtl`]:l.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:c.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return m(m({},s.value&&{marginLeft:g}),c.value&&{marginRight:g})}),f=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const v=yt((g=n.default)===null||g===void 0?void 0:g.call(n));return i(p("div",D(D({},o),{},{class:[u.value,v.length?`${r.value}-with-text ${r.value}-with-text${f.value}`:"",o.class],role:"separator"}),[v.length?p("span",{class:`${r.value}-inner-text`,style:d.value},[v]):null]))}}}),Uoe=Tt(Xoe);rr.Button=uc;rr.install=function(e){return e.component(rr.name,rr),e.component(uc.name,uc),e};const hE=()=>({prefixCls:String,width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:Re(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:at(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ve(),maskMotion:Re()}),Yoe=()=>m(m({},hE()),{forceRender:{type:Boolean,default:void 0},getContainer:V.oneOfType([V.string,V.func,V.object,V.looseBool])}),qoe=()=>m(m({},hE()),{getContainer:Function,getOpenCount:Function,scrollLocker:V.any,inline:Boolean});function Zoe(e){return Array.isArray(e)?e:[e]}const Qoe={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(Qoe).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Joe=!(typeof window<"u"&&window.document&&window.document.createElement);var ere=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{ot(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$==null?void 0:$();v(e),S&&(O&&(O.parentNode,document.body),ot(()=>{C&&u()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),be(()=>e.level,()=>{v(e)},{flush:"post"}),be(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S==null?void 0:S();O&&(O.parentNode,document.body),y?(C&&u(),x&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),Rn(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),be(()=>e.placement,y=>{y&&(s.value=null)});const u=()=>{var y,S;(S=(y=l.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},f=y=>{y.keyCode===Oe.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},v=y=>{let{level:S,getContainer:$}=y;if(Joe)return;const x=$==null?void 0:$(),C=x?x.parentNode:null;c=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&c.push(w)}):S&&Zoe(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{c.push(w)})})},h=y=>{n("handleClick",y)},b=te(!1);return be(l,()=>{ot(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:I,levelMove:T,ease:_,duration:E,getContainer:A,onChange:R,afterVisibleChange:z,showMask:M,maskClosable:B,maskStyle:N,keyboard:F,getOpenCount:L,scrollLocker:k,contentWrapperStyle:j,style:H,class:Y,rootClassName:Z,rootStyle:U,maskMotion:ee,motion:G,inline:J}=e,Q=ere(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),K=C&&b.value,q=ie(O,{[`${O}-${w}`]:!0,[`${O}-open`]:K,[`${O}-inline`]:J,"no-mask":!M,[Z]:!0}),pe=typeof G=="function"?G(w):G;return p("div",D(D({},et(Q,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:l,onKeydown:K&&F?f:void 0}),[p(cn,ee,{default:()=>[M&&$n(p("div",{class:`${O}-mask`,onClick:B?d:void 0,style:N,ref:i},null),[[En,K]])]}),p(cn,D(D({},pe),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[$n(p("div",{class:`${O}-content-wrapper`,style:[j],ref:r},[p("div",{class:[`${O}-content`,Y],style:H,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?p("div",{onClick:h,ref:a},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[En,K]])]})])}}}),zw=tre;var Hw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=le(null),l=a=>{n("handleClick",a)},i=a=>{n("close",a)};return()=>{const{getContainer:a,wrapperClassName:s,rootClassName:c,rootStyle:u,forceRender:d}=e,f=Hw(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!a)return p(zw,D(D({},f),{},{rootClassName:c,rootStyle:u,open:e.open,onClose:i,onHandleClick:l,inline:!0}),o);const v=!!o.handler||d;return(v||e.open||r.value)&&(g=p(Ic,{autoLock:!0,visible:e.open,forceRender:v,getContainer:a,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=Hw(h,["visible","afterClose"]);return p(zw,D(D(D({ref:r},f),S),{},{rootClassName:c,rootStyle:u,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:i,onHandleClick:l}),o)}})),g}}}),ore=nre,rre=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},lre=rre,ire=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:l,motionDurationMid:i,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:g,marginSM:v,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:h,fontWeight:S,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${f} ${g}`},"&-rtl":{direction:"rtl"}}}},are=Ve("Drawer",e=>{const t=Fe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[ire(t),lre(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var sre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:V.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:Re(),rootClassName:String,rootStyle:Re(),size:{type:String},drawerStyle:Re(),headerStyle:Re(),bodyStyle:Re(),contentWrapperStyle:{type:Object,default:void 0},title:V.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),zIndex:Number,prefixCls:String,push:V.oneOfType([V.looseBool,{type:Object}]),placement:V.oneOf(cre),keyboard:{type:Boolean,default:void 0},extra:V.any,footer:V.any,footerStyle:Re(),level:V.any,levelMove:{type:[Number,Array,Function]},handle:V.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),dre=oe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:qe(ure(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:jw}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const l=te(!1),i=te(!1),a=te(null),s=te(!1),c=te(!1),u=P(()=>{var L;return(L=e.open)!==null&&L!==void 0?L:e.visible});be(u,()=>{u.value?s.value=!0:c.value=!1},{immediate:!0}),be([u,s],()=>{u.value&&s.value&&(c.value=!0)},{immediate:!0});const d=He("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:g,direction:v}=Te("drawer",e),[h,b]=are(f),y=P(()=>e.getContainer===void 0&&(g!=null&&g.value)?()=>g.value(document.body):e.getContainer);xt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Ge("parentDrawerOpts",{setPush:()=>{l.value=!0},setPull:()=>{l.value=!1,ot(()=>{x()})}}),je(()=>{u.value&&d&&d.setPush()}),Rn(()=>{d&&d.setPull()}),be(c,()=>{d&&(c.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var L,k;(k=(L=a.value)===null||L===void 0?void 0:L.domFocus)===null||k===void 0||k.call(L)},C=L=>{n("update:visible",!1),n("update:open",!1),n("close",L)},O=L=>{var k;L||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(s.value=!1)),(k=e.afterVisibleChange)===null||k===void 0||k.call(e,L),n("afterVisibleChange",L),n("afterOpenChange",L)},w=P(()=>{const{push:L,placement:k}=e;let j;return typeof L=="boolean"?j=L?jw.distance:0:j=L.distance,j=parseFloat(String(j||0)),k==="left"||k==="right"?`translateX(${k==="left"?j:-j}px)`:k==="top"||k==="bottom"?`translateY(${k==="top"?j:-j}px)`:null}),I=P(()=>{var L;return(L=e.width)!==null&&L!==void 0?L:e.size==="large"?736:378}),T=P(()=>{var L;return(L=e.height)!==null&&L!==void 0?L:e.size==="large"?736:378}),_=P(()=>{const{mask:L,placement:k}=e;if(!c.value&&!L)return{};const j={};return k==="left"||k==="right"?j.width=Jd(I.value)?`${I.value}px`:I.value:j.height=Jd(T.value)?`${T.value}px`:T.value,j}),E=P(()=>{const{zIndex:L,contentWrapperStyle:k}=e,j=_.value;return[{zIndex:L,transform:l.value?w.value:void 0},m({},k),j]}),A=L=>{const{closable:k,headerStyle:j}=e,H=qt(o,e,"extra"),Y=qt(o,e,"title");return!Y&&!k?null:p("div",{class:ie(`${L}-header`,{[`${L}-header-close-only`]:k&&!Y&&!H}),style:j},[p("div",{class:`${L}-header-title`},[R(L),Y&&p("div",{class:`${L}-title`},[Y])]),H&&p("div",{class:`${L}-extra`},[H])])},R=L=>{var k;const{closable:j}=e,H=o.closeIcon?(k=o.closeIcon)===null||k===void 0?void 0:k.call(o):e.closeIcon;return j&&p("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${L}-close`},[H===void 0?p(Zn,null,null):H])},z=L=>{var k;if(i.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:j,drawerStyle:H}=e;return p("div",{class:`${L}-wrapper-body`,style:H},[A(L),p("div",{key:"body",class:`${L}-body`,style:j},[(k=o.default)===null||k===void 0?void 0:k.call(o)]),M(L)])},M=L=>{const k=qt(o,e,"footer");if(!k)return null;const j=`${L}-footer`;return p("div",{class:j,style:e.footerStyle},[k])},B=P(()=>ie({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,b.value)),N=P(()=>Po(_n(f.value,"mask-motion"))),F=L=>Po(_n(f.value,`panel-motion-${L}`));return()=>{const{width:L,height:k,placement:j,mask:H,forceRender:Y}=e,Z=sre(e,["width","height","placement","mask","forceRender"]),U=m(m(m({},r),et(Z,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:f.value,open:c.value,showMask:H,placement:j,ref:a});return h(p(cc,null,{default:()=>[p(ore,D(D({},U),{},{maskMotion:N.value,motion:F,width:I.value,height:T.value,getContainer:y.value,rootClassName:B.value,rootStyle:e.rootStyle,contentWrapperStyle:E.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>z(f.value)})]}))}}}),fre=Tt(dre);var pre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const gre=pre;function Ww(e){for(var t=1;t({prefixCls:String,description:V.any,type:Be("default"),shape:Be("circle"),tooltip:V.any,href:String,target:String,badge:Re(),onClick:ve()}),vre=()=>({prefixCls:Be()}),mre=()=>m(m({},Ky()),{trigger:Be(),open:Ce(),onOpenChange:ve(),"onUpdate:open":ve()}),bre=()=>m(m({},Ky()),{prefixCls:String,duration:Number,target:ve(),visibilityHeight:Number,onClick:ve()}),yre=oe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:vre(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var r;const{prefixCls:l}=e,i=_t((r=o.description)===null||r===void 0?void 0:r.call(o));return p("div",D(D({},n),{},{class:[n.class,`${l}-content`]}),[o.icon||i.length?p(We,null,[o.icon&&p("div",{class:`${l}-icon`},[o.icon()]),i.length?p("div",{class:`${l}-description`},[i]):null]):p("div",{class:`${l}-icon`},[p(vE,null,null)])])}}}),Sre=yre,mE=Symbol("floatButtonGroupContext"),$re=e=>(Ge(mE,e),e),bE=()=>He(mE,{shape:le()}),Cre=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Vw=Cre,xre=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,l=`${t}-group`,i=new nt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new nt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:m({},_c(`${l}-wrap`,i,a,o,!0))},{[`${l}-wrap`]:{[` - &${l}-wrap-enter, - &${l}-wrap-appear - `]:{opacity:0,animationTimingFunction:r},[`&${l}-wrap-leave`]:{animationTimingFunction:r}}}]},wre=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:l,borderRadiusSM:i,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:m(m({},Xe(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},Ore=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:l,borderRadiusLG:i,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:m(m({},Xe(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Gy=Ve("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:l,fontSize:i,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=Fe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:a*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-c*2,floatButtonBodyPadding:c,badgeOffset:c*1.5,dotOffsetInCircle:Vw(o/2),dotOffsetInSquare:Vw(u)});return[wre(d),Ore(d),$b(e),xre(d)]});var Pre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:g="default",shape:v="circle",description:h=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:b,badge:y={}}=e,S=Pre(e,["prefixCls","type","shape","description","tooltip","badge"]),$=ie(r.value,`${r.value}-${g}`,`${r.value}-${u.value}`,{[`${r.value}-rtl`]:l.value==="rtl"},n.class,a.value),x=p(Yn,{placement:"left"},{title:o.tooltip||b?()=>o.tooltip&&o.tooltip()||b:void 0,default:()=>p(_s,y,{default:()=>[p("div",{class:`${r.value}-body`},[p(Sre,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return i(e.href?p("a",D(D(D({ref:c},n),S),{},{class:$}),[x]):p("button",D(D(D({ref:c},n),S),{},{class:$,type:"button"}),[x]))}}}),vl=Ire,Tre=oe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:qe(mre(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a,s]=Gy(l),[c,u]=Pt(!1,{value:P(()=>e.open)}),d=le(null),f=le(null);$re({shape:P(()=>e.shape)});const g={onMouseenter(){var y;u(!0),r("update:open",!0),(y=e.onOpenChange)===null||y===void 0||y.call(e,!0)},onMouseleave(){var y;u(!1),r("update:open",!1),(y=e.onOpenChange)===null||y===void 0||y.call(e,!1)}},v=P(()=>e.trigger==="hover"?g:{}),h=()=>{var y;const S=!c.value;r("update:open",S),(y=e.onOpenChange)===null||y===void 0||y.call(e,S),u(S)},b=y=>{var S,$,x;if(!((S=d.value)===null||S===void 0)&&S.contains(y.target)){!(($=Hn(f.value))===null||$===void 0)&&$.contains(y.target)&&h();return}u(!1),r("update:open",!1),(x=e.onOpenChange)===null||x===void 0||x.call(e,!1)};return be(P(()=>e.trigger),y=>{Mn()&&(document.removeEventListener("click",b),y==="click"&&document.addEventListener("click",b))},{immediate:!0}),Ze(()=>{document.removeEventListener("click",b)}),()=>{var y;const{shape:S="circle",type:$="default",tooltip:x,description:C,trigger:O}=e,w=`${l.value}-group`,I=ie(w,s.value,n.class,{[`${w}-rtl`]:i.value==="rtl",[`${w}-${S}`]:S,[`${w}-${S}-shadow`]:!O}),T=ie(s.value,`${w}-wrap`),_=Po(`${w}-wrap`);return a(p("div",D(D({ref:d},n),{},{class:I},v.value),[O&&["click","hover"].includes(O)?p(We,null,[p(cn,_,{default:()=>[$n(p("div",{class:T},[o.default&&o.default()]),[[En,c.value]])]}),p(vl,{ref:f,type:$,shape:S,tooltip:x,description:C},{icon:()=>{var E,A;return c.value?((E=o.closeIcon)===null||E===void 0?void 0:E.call(o))||p(Zn,null,null):((A=o.icon)===null||A===void 0?void 0:A.call(o))||p(vE,null,null)},tooltip:o.tooltip,description:o.description})]):(y=o.default)===null||y===void 0?void 0:y.call(o)]))}}}),Sf=Tre;var Ere={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const Mre=Ere;function Kw(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a]=Gy(l),s=le(),c=ut({visible:e.visibilityHeight===0,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=b=>{const{target:y=u,duration:S}=e;I0(0,{getContainer:y,duration:S}),r("click",b)},f=pv(b=>{const{visibilityHeight:y}=e,S=P0(b.target,!0);c.visible=S>=y}),g=()=>{const{target:b}=e,S=(b||u)();f({target:S}),S==null||S.addEventListener("scroll",f)},v=()=>{const{target:b}=e,S=(b||u)();f.cancel(),S==null||S.removeEventListener("scroll",f)};be(()=>e.target,()=>{v(),ot(()=>{g()})}),je(()=>{ot(()=>{g()})}),Bf(()=>{ot(()=>{g()})}),k3(()=>{v()}),Ze(()=>{v()});const h=bE();return()=>{const{description:b,type:y,shape:S,tooltip:$,badge:x}=e,C=m(m({},o),{shape:(h==null?void 0:h.shape.value)||S,onClick:d,class:{[`${l.value}`]:!0,[`${o.class}`]:o.class,[`${l.value}-rtl`]:i.value==="rtl"},description:b,type:y,tooltip:$,badge:x}),O=Po("fade");return a(p(cn,O,{default:()=>[$n(p(vl,D(D({},C),{},{ref:s}),{icon:()=>{var w;return((w=n.icon)===null||w===void 0?void 0:w.call(n))||p(Are,null,null)}}),[[En,c.visible]])]}))}}}),$f=Rre;vl.Group=Sf;vl.BackTop=$f;vl.install=function(e){return e.component(vl.name,vl),e.component(Sf.name,Sf),e.component($f.name,$f),e};const Ls=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function Yy(e){return Ls(e.prefix)||Ls(e.suffix)||Ls(e.allowClear)}function od(e){return Ls(e.addonBefore)||Ls(e.addonAfter)}function pm(e){return typeof e>"u"||e===null?"":String(e)}function ks(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const l=e.cloneNode(!0);r.target=l,r.currentTarget=l,l.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function yE(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const Dre=()=>({addonBefore:V.any,addonAfter:V.any,prefix:V.any,suffix:V.any,clearIcon:V.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),SE=()=>m(m({},Dre()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:V.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),$E=()=>m(m({},SE()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Be("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Bre=oe({name:"BaseInput",inheritAttrs:!1,props:SE(),setup(e,t){let{slots:n,attrs:o}=t;const r=le(),l=a=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(a.target)){const{triggerFocus:c}=e;c==null||c()}},i=()=>{var a;const{allowClear:s,value:c,disabled:u,readonly:d,handleReset:f,suffix:g=n.suffix,prefixCls:v}=e;if(!s)return null;const h=!u&&!d&&c,b=`${v}-clear-icon`,y=((a=n.clearIcon)===null||a===void 0?void 0:a.call(n))||"*";return p("span",{onClick:f,onMousedown:S=>S.preventDefault(),class:ie({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var a,s;const{focused:c,value:u,disabled:d,allowClear:f,readonly:g,hidden:v,prefixCls:h,prefix:b=(a=n.prefix)===null||a===void 0?void 0:a.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let I=dt(x,{value:u,hidden:v});if(Yy({prefix:b,suffix:y,allowClear:f})){const T=`${h}-affix-wrapper`,_=ie(T,{[`${T}-disabled`]:d,[`${T}-focused`]:c,[`${T}-readonly`]:g,[`${T}-input-with-clear-btn`]:y&&f&&u},!od({addonAfter:S,addonBefore:$})&&o.class,C),E=(y||f)&&p("span",{class:`${h}-suffix`},[i(),y]);I=p("span",{class:_,style:o.style,hidden:!od({addonAfter:S,addonBefore:$})&&v,onMousedown:l,ref:r},[b&&p("span",{class:`${h}-prefix`},[b]),dt(x,{style:null,value:u,hidden:null}),E])}if(od({addonAfter:S,addonBefore:$})){const T=`${h}-group`,_=`${T}-addon`,E=ie(`${h}-wrapper`,T,O),A=ie(`${h}-group-wrapper`,o.class,w);return p("span",{class:A,style:o.style,hidden:v},[p("span",{class:E},[$&&p("span",{class:_},[$]),dt(I,{style:null,hidden:null}),S&&p("span",{class:_},[S])])])}return I}}});var Nre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{i.value=e.value}),be(()=>e.disabled,()=>{e.disabled&&(a.value=!1)});const u=w=>{s.value&&yE(s.value.input,w)},d=()=>{var w;(w=s.value.input)===null||w===void 0||w.blur()},f=(w,I,T)=>{var _;(_=s.value.input)===null||_===void 0||_.setSelectionRange(w,I,T)},g=()=>{var w;(w=s.value.input)===null||w===void 0||w.select()};r({focus:u,blur:d,input:P(()=>{var w;return(w=s.value.input)===null||w===void 0?void 0:w.input}),stateValue:i,setSelectionRange:f,select:g});const v=w=>{l("change",w)},h=(w,I)=>{i.value!==w&&(e.value===void 0?i.value=w:ot(()=>{var T;s.value.input.value!==i.value&&((T=c.value)===null||T===void 0||T.$forceUpdate())}),ot(()=>{I&&I()}))},b=w=>{const{value:I}=w.target;if(i.value===I)return;const T=w.target.value;ks(s.value.input,w,v),h(T)},y=w=>{w.keyCode===13&&l("pressEnter",w),l("keydown",w)},S=w=>{a.value=!0,l("focus",w)},$=w=>{a.value=!1,l("blur",w)},x=w=>{ks(s.value.input,w,v),h("",()=>{u()})},C=()=>{var w,I;const{addonBefore:T=n.addonBefore,addonAfter:_=n.addonAfter,disabled:E,valueModifiers:A={},htmlSize:R,autocomplete:z,prefixCls:M,inputClassName:B,prefix:N=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:F=(I=n.suffix)===null||I===void 0?void 0:I.call(n),allowClear:L,type:k="text"}=e,j=et(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=m(m(m({},j),o),{autocomplete:z,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:ie(M,{[`${M}-disabled`]:E},B,!od({addonAfter:_,addonBefore:T})&&!Yy({prefix:N,suffix:F,allowClear:L})&&o.class),ref:s,key:"ant-input",size:R,type:k,lazy:e.lazy});return A.lazy&&delete H.onInput,H.autofocus||delete H.autofocus,p(Na,et(H,["size"]),null)},O=()=>{var w;const{maxlength:I,suffix:T=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:_,prefixCls:E}=e,A=Number(I)>0;if(T||_){const R=[...pm(i.value)].length,z=typeof _=="object"?_.formatter({count:R,maxlength:I}):`${R}${A?` / ${I}`:""}`;return p(We,null,[!!_&&p("span",{class:ie(`${E}-show-count-suffix`,{[`${E}-show-count-has-suffix`]:!!T})},[z]),T])}return null};return je(()=>{}),()=>{const{prefixCls:w,disabled:I}=e,T=Nre(e,["prefixCls","disabled"]);return p(Bre,D(D(D({},T),o),{},{ref:c,prefixCls:w,inputElement:C(),handleReset:x,value:pm(i.value),focused:a.value,triggerFocus:u,suffix:O(),disabled:I}),n)}}}),CE=()=>et($E(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),qy=CE,xE=()=>m(m({},et(CE(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:si(),onCompositionend:si(),valueModifiers:Object});var Lre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKo(s.status,e.status)),{direction:u,prefixCls:d,size:f,autocomplete:g}=Te("input",e),{compactSize:v,compactItemClassnames:h}=Ol(d,u),b=P(()=>v.value||f.value),[y,S]=yy(d),$=qn();r({focus:R=>{var z;(z=i.value)===null||z===void 0||z.focus(R)},blur:()=>{var R;(R=i.value)===null||R===void 0||R.blur()},input:i,setSelectionRange:(R,z,M)=>{var B;(B=i.value)===null||B===void 0||B.setSelectionRange(R,z,M)},select:()=>{var R;(R=i.value)===null||R===void 0||R.select()}});const I=le([]),T=()=>{I.value.push(setTimeout(()=>{var R,z,M,B;!((R=i.value)===null||R===void 0)&&R.input&&((z=i.value)===null||z===void 0?void 0:z.input.getAttribute("type"))==="password"&&(!((M=i.value)===null||M===void 0)&&M.input.hasAttribute("value"))&&((B=i.value)===null||B===void 0||B.input.removeAttribute("value"))}))};je(()=>{T()}),Lf(()=>{I.value.forEach(R=>clearTimeout(R))}),Ze(()=>{I.value.forEach(R=>clearTimeout(R))});const _=R=>{T(),l("blur",R),a.onFieldBlur()},E=R=>{T(),l("focus",R)},A=R=>{l("update:value",R.target.value),l("change",R),l("input",R),a.onFieldChange()};return()=>{var R,z,M,B,N,F;const{hasFeedback:L,feedbackIcon:k}=s,{allowClear:j,bordered:H=!0,prefix:Y=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:Z=(z=n.suffix)===null||z===void 0?void 0:z.call(n),addonAfter:U=(M=n.addonAfter)===null||M===void 0?void 0:M.call(n),addonBefore:ee=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:G=(N=a.id)===null||N===void 0?void 0:N.value}=e,J=Lre(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Q=(L||Z)&&p(We,null,[Z,L&&k]),K=d.value,q=Yy({prefix:Y,suffix:Z})||!!L,pe=n.clearIcon||(()=>p(Qn,null,null));return y(p(Fre,D(D(D({},o),et(J,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:G,disabled:(F=e.disabled)!==null&&F!==void 0?F:$.value,ref:i,prefixCls:K,autocomplete:g.value,onBlur:_,onFocus:E,prefix:Y,suffix:Q,allowClear:j,addonAfter:U&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[U]})]}),addonBefore:ee&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[ee]})]}),class:[o.class,h.value],inputClassName:ie({[`${K}-sm`]:b.value==="small",[`${K}-lg`]:b.value==="large",[`${K}-rtl`]:u.value==="rtl",[`${K}-borderless`]:!H},!q&&Tn(K,c.value),S.value),affixWrapperClassName:ie({[`${K}-affix-wrapper-sm`]:b.value==="small",[`${K}-affix-wrapper-lg`]:b.value==="large",[`${K}-affix-wrapper-rtl`]:u.value==="rtl",[`${K}-affix-wrapper-borderless`]:!H},Tn(`${K}-affix-wrapper`,c.value,L),S.value),wrapperClassName:ie({[`${K}-group-rtl`]:u.value==="rtl"},S.value),groupClassName:ie({[`${K}-group-wrapper-sm`]:b.value==="small",[`${K}-group-wrapper-lg`]:b.value==="large",[`${K}-group-wrapper-rtl`]:u.value==="rtl"},Tn(`${K}-group-wrapper`,c.value,L),S.value)}),m(m({},n),{clearIcon:pe})))}}}),wE=oe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,getPrefixCls:i}=Te("input-group",e),a=un.useInject();un.useProvide(a,{isFormItemInput:!1});const s=P(()=>i("input")),[c,u]=yy(s),d=P(()=>{const f=r.value;return{[`${f}`]:!0,[u.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:l.value==="rtl"}});return()=>{var f;return c(p("span",D(D({},o),{},{class:ie(d.value,o.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var kre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=i.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=i.value)===null||C===void 0||C.blur()}});const u=C=>{l("update:value",C.target.value),C&&C.target&&C.type==="click"&&l("search",C.target.value,C),l("change",C)},d=C=>{var O;document.activeElement===((O=i.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},f=C=>{var O,w;l("search",(w=(O=i.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{a.value||e.loading||f(C)},v=C=>{a.value=!0,l("compositionstart",C)},h=C=>{a.value=!1,l("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Te("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,I;const{disabled:T,loading:_,addonAfter:E=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:A=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,R=kre(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:z=(I=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&I!==void 0?I:!1}=e;z=z||z==="";const M=typeof z=="boolean"?p(mp,null,null):null,B=`${b.value}-button`,N=Array.isArray(z)?z[0]:z;let F;const L=N.type&&mb(N.type)&&N.type.__ANT_BUTTON;if(L||N.tagName==="button")F=dt(N,m({onMousedown:d,onClick:f,key:"enterButton"},L?{class:B,size:$.value}:{}),!1);else{const j=M&&!z;F=p(zt,{class:B,type:z?"primary":void 0,size:$.value,disabled:T,key:"enterButton",onMousedown:d,onClick:f,loading:_,icon:j?M:null},{default:()=>[j?null:M||z]})}E&&(F=[F,E]);const k=ie(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!z},o.class);return p(tn,D(D(D({ref:i},et(R,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:F,suffix:A,onChange:u,class:k,disabled:T}),n)}}}),Gw=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function zre(e){return Gw(e.addonBefore)||Gw(e.addonAfter)}const Hre=["text","input"],jre=oe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:V.oneOf(Cn("text","input")),value:St(),defaultValue:St(),allowClear:{type:Boolean,default:void 0},element:St(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:St(),prefix:St(),addonBefore:St(),addonAfter:St(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=un.useInject(),l=a=>{const{value:s,disabled:c,readonly:u,handleReset:d,suffix:f=n.suffix}=e,g=!c&&!u&&s,v=`${a}-clear-icon`;return p(Qn,{onClick:d,onMousedown:h=>h.preventDefault(),class:ie({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},i=(a,s)=>{const{value:c,allowClear:u,direction:d,bordered:f,hidden:g,status:v,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!u)return dt(s,{value:c,disabled:e.disabled});const x=ie(`${a}-affix-wrapper`,`${a}-affix-wrapper-textarea-with-clear-btn`,Tn(`${a}-affix-wrapper`,Ko(S,v),$),{[`${a}-affix-wrapper-rtl`]:d==="rtl",[`${a}-affix-wrapper-borderless`]:!f,[`${o.class}`]:!zre({addonAfter:h,addonBefore:b})&&o.class},y);return p("span",{class:x,style:o.style,hidden:g},[dt(s,{style:null,value:c,disabled:e.disabled}),l(a)])};return()=>{var a;const{prefixCls:s,inputType:c,element:u=(a=n.element)===null||a===void 0?void 0:a.call(n)}=e;return c===Hre[0]?i(s,u):null}}}),Wre=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,Vre=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xh={};let mo;function Kre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xh[n])return xh[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:Vre.map(c=>`${c}:${o.getPropertyValue(c)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(xh[n]=s),s}function Gre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;mo||(mo=document.createElement("textarea"),mo.setAttribute("tab-index","-1"),mo.setAttribute("aria-hidden","true"),document.body.appendChild(mo)),e.getAttribute("wrap")?mo.setAttribute("wrap",e.getAttribute("wrap")):mo.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=Kre(e,t);mo.setAttribute("style",`${a};${Wre}`),mo.value=e.value||e.placeholder||"";let s,c,u,d=mo.scrollHeight;if(i==="border-box"?d+=l:i==="content-box"&&(d-=r),n!==null||o!==null){mo.value=" ";const g=mo.scrollHeight-r;n!==null&&(s=g*n,i==="border-box"&&(s=s+r+l),d=Math.max(s,d)),o!==null&&(c=g*o,i==="border-box"&&(c=c+r+l),u=d>c?"":"hidden",d=Math.min(c,d))}const f={height:`${d}px`,overflowY:u,resize:"none"};return s&&(f.minHeight=`${s}px`),c&&(f.maxHeight=`${c}px`),f}const wh=0,Oh=1,Ph=2,Xre=oe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,l,i;const a=le(),s=le({}),c=le(Ph);Ze(()=>{Ye.cancel(l),Ye.cancel(i)});const u=()=>{try{if(a.value&&document.activeElement===a.value.input){const O=a.value.getSelectionStart(),w=a.value.getSelectionEnd(),I=a.value.getScrollTop();a.value.setSelectionRange(O,w),a.value.setScrollTop(I)}}catch{}},d=le(),f=le();ke(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,f.value=O.maxRows):(d.value=void 0,f.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),v=()=>{c.value=wh};be([()=>e.value,d,f,g],()=>{g.value&&v()},{immediate:!0});const h=le();be([c,a],()=>{if(a.value)if(c.value===wh)c.value=Oh;else if(c.value===Oh){const O=Gre(a.value.input,!1,d.value,f.value);c.value=Ph,h.value=O}else u()},{immediate:!0,flush:"post"});const b=pn(),y=le(),S=()=>{Ye.cancel(y.value)},$=O=>{c.value===Ph&&(o("resize",O),g.value&&(S(),y.value=Ye(()=>{v()})))};Ze(()=>{S()}),r({resizeTextarea:()=>{v()},textArea:P(()=>{var O;return(O=a.value)===null||O===void 0?void 0:O.input}),instance:b}),It(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,I=et(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=ie(O,n.class,{[`${O}-disabled`]:w}),_=g.value?h.value:null,E=[n.style,s.value,_],A=m(m(m({},I),n),{style:E,class:T});return(c.value===wh||c.value===Oh)&&E.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p(xo,{onResize:$,disabled:!g.value},{default:()=>[p(Na,D(D({},A),{},{ref:a,tag:"textarea"}),null)]})};return()=>C()}}),Ure=Xre;function PE(e,t){return[...e||""].slice(0,t).join("")}function Xw(e,t,n,o){let r=n;return e?r=PE(n,o):[...t||""].lengtho&&(r=t),r}const Zy=oe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;var l;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),c=te((l=e.value)!==null&&l!==void 0?l:e.defaultValue),u=te(),d=te(""),{prefixCls:f,size:g,direction:v}=Te("input",e),[h,b]=yy(f),y=qn(),S=P(()=>e.showCount===""||e.showCount||!1),$=P(()=>Number(e.maxlength)>0),x=te(!1),C=te(),O=te(0),w=L=>{x.value=!0,C.value=d.value,O.value=L.currentTarget.selectionStart,r("compositionstart",L)},I=L=>{var k;x.value=!1;let j=L.currentTarget.value;if($.value){const H=O.value>=e.maxlength+1||O.value===((k=C.value)===null||k===void 0?void 0:k.length);j=Xw(H,C.value,j,e.maxlength)}j!==d.value&&(A(j),ks(L.currentTarget,L,M,j)),r("compositionend",L)},T=pn();be(()=>e.value,()=>{var L;"value"in T.vnode.props,c.value=(L=e.value)!==null&&L!==void 0?L:""});const _=L=>{var k;yE((k=u.value)===null||k===void 0?void 0:k.textArea,L)},E=()=>{var L,k;(k=(L=u.value)===null||L===void 0?void 0:L.textArea)===null||k===void 0||k.blur()},A=(L,k)=>{c.value!==L&&(e.value===void 0?c.value=L:ot(()=>{var j,H,Y;u.value.textArea.value!==d.value&&((Y=(j=u.value)===null||j===void 0?void 0:(H=j.instance).update)===null||Y===void 0||Y.call(H))}),ot(()=>{k&&k()}))},R=L=>{L.keyCode===13&&r("pressEnter",L),r("keydown",L)},z=L=>{const{onBlur:k}=e;k==null||k(L),i.onFieldBlur()},M=L=>{r("update:value",L.target.value),r("change",L),r("input",L),i.onFieldChange()},B=L=>{ks(u.value.textArea,L,M),A("",()=>{_()})},N=L=>{let k=L.target.value;if(c.value!==k){if($.value){const j=L.target,H=j.selectionStart>=e.maxlength+1||j.selectionStart===k.length||!j.selectionStart;k=Xw(H,d.value,k,e.maxlength)}ks(L.currentTarget,L,M,k),A(k)}},F=()=>{var L,k;const{class:j}=n,{bordered:H=!0}=e,Y=m(m(m({},et(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!H,[`${j}`]:j&&!S.value,[`${f.value}-sm`]:g.value==="small",[`${f.value}-lg`]:g.value==="large"},Tn(f.value,s.value),b.value],disabled:y.value,showCount:null,prefixCls:f.value,onInput:N,onChange:N,onBlur:z,onKeydown:R,onCompositionstart:w,onCompositionend:I});return!((L=e.valueModifiers)===null||L===void 0)&&L.lazy&&delete Y.onInput,p(Ure,D(D({},Y),{},{id:(k=Y==null?void 0:Y.id)!==null&&k!==void 0?k:i.id.value,ref:u,maxlength:e.maxlength,lazy:e.lazy}),null)};return o({focus:_,blur:E,resizableTextArea:u}),ke(()=>{let L=pm(c.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(L=PE(L,e.maxlength)),d.value=L}),()=>{var L;const{maxlength:k,bordered:j=!0,hidden:H}=e,{style:Y,class:Z}=n,U=m(m(m({},e),n),{prefixCls:f.value,inputType:"text",handleReset:B,direction:v.value,bordered:j,style:S.value?void 0:Y,hashId:b.value,disabled:(L=e.disabled)!==null&&L!==void 0?L:y.value});let ee=p(jre,D(D({},U),{},{value:d.value,status:e.status}),{element:F});if(S.value||a.hasFeedback){const G=[...d.value].length;let J="";typeof S.value=="object"?J=S.value.formatter({value:d.value,count:G,maxlength:k}):J=`${G}${$.value?` / ${k}`:""}`,ee=p("div",{hidden:H,class:ie(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:v.value==="rtl",[`${f.value}-textarea-show-count`]:S.value,[`${f.value}-textarea-in-form-item`]:a.isFormItemInput},`${f.value}-textarea-show-count`,Z,b.value),style:Y,"data-count":typeof J!="object"?J:void 0},[ee,a.hasFeedback&&p("span",{class:`${f.value}-textarea-suffix`},[a.feedbackIcon])])}return h(ee)}}});var Yre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const qre=Yre;function Uw(e){for(var t=1;tp(e?Jy:tle,null,null),IE=oe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:m(m({},qy()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:l}=t;const i=te(!1),a=()=>{const{disabled:b}=e;b||(i.value=!i.value,l("update:visible",i.value))};ke(()=>{e.visible!==void 0&&(i.value=!!e.visible)});const s=te();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||rle}=e,$=ole[y]||"",x=S(i.value),C={[$]:a,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return dt(Kt(x)?x:p("span",null,[x]),C)},{prefixCls:f,getPrefixCls:g}=Te("input-password",e),v=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=nle(e,["size","visibilityToggle"]),$=y&&d(f.value),x=ie(f.value,o.class,{[`${f.value}-${b}`]:!!b}),C=m(m(m({},et(S,["suffix","iconRender","action"])),o),{type:i.value?"text":"password",class:x,prefixCls:v.value,suffix:$});return b&&(C.size=b),p(tn,D({ref:s},C),n)};return()=>h()}});tn.Group=wE;tn.Search=OE;tn.TextArea=Zy;tn.Password=IE;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Group.name,tn.Group),e.component(tn.Search.name,tn.Search),e.component(tn.TextArea.name,tn.TextArea),e.component(tn.Password.name,tn.Password),e};function Gp(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:V.shape({x:Number,y:Number}).loose,title:V.any,footer:V.any,transitionName:String,maskTransitionName:String,animation:V.any,maskAnimation:V.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:V.any,maskProps:V.any,wrapProps:V.any,getContainer:V.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:V.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function qw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let Zw=-1;function lle(){return Zw+=1,Zw}function Qw(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function ile(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Qw(r),n.top+=Qw(r,!0),n}const ale={width:0,height:0,overflow:"hidden",outline:"none"},sle={outline:"none"},cle=oe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:m(m({},Gp()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le(),i=le(),a=le();n({focus:()=>{var f;(f=l.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:g}=document;f&&g===i.value?l.value.focus({preventScroll:!0}):!f&&g===l.value&&i.value.focus({preventScroll:!0})}});const s=le(),c=P(()=>{const{width:f,height:g}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),g!==void 0&&(v.height=typeof g=="number"?`${g}px`:g),s.value&&(v.transformOrigin=s.value),v}),u=()=>{ot(()=>{if(a.value){const f=ile(a.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,g,v,h;const{prefixCls:b,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClose:O,bodyStyle:w,bodyProps:I,onMousedown:T,onMouseup:_,visible:E,modalRender:A=o.modalRender,destroyOnClose:R,motionName:z}=e;let M;y&&(M=p("div",{class:`${b}-footer`},[y]));let B;S&&(B=p("div",{class:`${b}-header`},[p("div",{class:`${b}-title`,id:$},[S])]));let N;x&&(N=p("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||p("span",{class:`${b}-close-x`},null)]));const F=p("div",{class:`${b}-content`},[N,B,p("div",D({class:`${b}-body`,style:w},I),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),M]),L=Po(z);return p(cn,D(D({},L),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!R?$n(p("div",D(D({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[b,r.class],onMousedown:T,onMouseup:_}),[p("div",{tabindex:0,ref:l,style:sle},[A?A({originVNode:F}):F]),p("div",{tabindex:0,ref:i,style:ale},null)]),[[En,E]]):null]})}}}),ule=oe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:l}=e,i=Po(l);return p(cn,i,{default:()=>[$n(p("div",D({class:`${n}-mask`},r),null),[[En,o]])]})}}}),Jw=oe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:qe(m(m({},Gp()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=te(),l=te(),i=te(),a=te(e.visible),s=te(`vcDialogTitle${lle()}`),c=y=>{var S,$;if(y)rl(l.value,document.activeElement)||(r.value=document.activeElement,(S=i.value)===null||S===void 0||S.focus());else{const x=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},u=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=te(!1),f=te(),g=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:l.value===y.target&&u(y)},b=y=>{if(e.keyboard&&y.keyCode===Oe.ESC){y.stopPropagation(),u(y);return}e.visible&&y.keyCode===Oe.TAB&&i.value.changeActive(!y.shiftKey)};return be(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),Ze(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ke(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),a.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:I,wrapStyle:T,closable:_,maskProps:E,maskStyle:A,transitionName:R,animation:z,wrapProps:M,title:B=o.title}=e,{style:N,class:F}=n;return p("div",D({class:[`${y}-root`,I]},wl(e,{data:!0})),[p(ule,{prefixCls:y,visible:S&&$,motionName:qw(y,x,C),style:m({zIndex:O},A),maskProps:E},null),p("div",D({tabIndex:-1,onKeydown:b,class:ie(`${y}-wrap`,w),ref:l,onClick:h,role:"dialog","aria-labelledby":B?s.value:null,style:m(m({zIndex:O},T),{display:a.value?null:"none"})},M),[p(cle,D(D({},et(e,["scrollLocker"])),{},{style:N,class:F,onMousedown:g,onMouseup:v,ref:i,closable:_,ariaId:s.value,prefixCls:y,visible:$,onClose:u,onVisibleChanged:c,motionName:qw(y,R,z)}),o)])])}}}),dle=Gp(),fle=oe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:qe(dle,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.visible);return G0({},{inTriggerContext:!1}),be(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:l,getContainer:i,forceRender:a,destroyOnClose:s=!1,afterClose:c}=e;let u=m(m(m({},e),n),{ref:"_component",key:"dialog"});return i===!1?p(Jw,D(D({},u),{},{getOpenCount:()=>2}),o):!a&&s&&!r.value?null:p(Ic,{autoLock:!0,visible:l,forceRender:a,getContainer:i},{default:d=>(u=m(m(m({},u),d),{afterClose:()=>{c==null||c(),r.value=!1}}),p(Jw,u,o))})}}}),TE=fle;function ple(e){const t=le(null),n=ut(m({},e)),o=le([]),r=l=>{t.value===null&&(o.value=[],t.value=Ye(()=>{let i;o.value.forEach(a=>{i=m(m({},i),a)}),m(n,i),t.value=null})),o.value.push(l)};return je(()=>{t.value&&Ye.cancel(t.value)}),[n,r]}function e2(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&ro)return{[e]:t<0?l:-l};return{}}function gle(e,t,n,o){const{width:r,height:l}=rz();let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=m(m({},e2("x",n,e,r)),e2("y",o,t,l))),i}var hle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Ge(t2,e)},inject:()=>He(t2,{isPreviewGroup:te(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:le(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},vle=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),mle=oe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:vle(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?AE(e.preview,C):C}),r=ut(new Map),l=le(),i=P(()=>o.value.visible),a=P(()=>o.value.getContainer),s=(C,O)=>{var w,I;(I=(w=o.value).onVisibleChange)===null||I===void 0||I.call(w,C,O)},[c,u]=Pt(!!i.value,{value:i,onChange:s}),d=le(null),f=P(()=>i.value!==void 0),g=P(()=>Array.from(r.keys())),v=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{l.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),I},x=C=>{C==null||C.stopPropagation(),u(!1),S(null)};return be(v,C=>{y(C)},{immediate:!0,flush:"post"}),ke(()=>{c.value&&f.value&&y(v.value)},{flush:"post"}),t1.provide({isPreviewGroup:te(!0),previewUrls:h,setPreviewUrls:b,current:l,setCurrent:y,setShowPreview:u,setMousePosition:S,registerImage:$}),()=>{const C=hle(o.value,[]);return p(We,null,[n.default&&n.default(),p(ME,D(D({},C),{},{"ria-hidden":!c.value,visible:c.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(l.value),icons:e.icons,getContainer:a.value}),null)])}}}),EE=mle,Nl={x:0,y:0},ble=m(m({},Gp()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),yle=oe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:ble,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:l,zoomIn:i,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:f}=ut(e.icons),g=te(1),v=te(0),h=ut({x:1,y:1}),[b,y]=ple(Nl),S=()=>n("close"),$=te(),x=ut({originX:0,originY:0,deltaX:0,deltaY:0}),C=te(!1),O=t1.inject(),{previewUrls:w,current:I,isPreviewGroup:T,setCurrent:_}=O,E=P(()=>w.value.size),A=P(()=>Array.from(w.value.keys())),R=P(()=>A.value.indexOf(I.value)),z=P(()=>T.value?w.value.get(I.value):e.src),M=P(()=>T.value&&E.value>1),B=te({wheelDirection:0}),N=()=>{g.value=1,v.value=0,h.x=1,h.y=1,y(Nl),n("afterClose")},F=se=>{se?g.value+=.5:g.value++,y(Nl)},L=se=>{g.value>1&&(se?g.value-=.5:g.value--),y(Nl)},k=()=>{v.value+=90},j=()=>{v.value-=90},H=()=>{h.x=-h.x},Y=()=>{h.y=-h.y},Z=se=>{se.preventDefault(),se.stopPropagation(),R.value>0&&_(A.value[R.value-1])},U=se=>{se.preventDefault(),se.stopPropagation(),R.valueF(),type:"zoomIn"},{icon:a,onClick:()=>L(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:l,onClick:k,type:"rotateRight"},{icon:r,onClick:j,type:"rotateLeft"},{icon:d,onClick:H,type:"flipX"},{icon:f,onClick:Y,type:"flipY"}],K=()=>{if(e.visible&&C.value){const se=$.value.offsetWidth*g.value,re=$.value.offsetHeight*g.value,{left:de,top:ge}=jd($.value),me=v.value%180!==0;C.value=!1;const fe=gle(me?re:se,me?se:re,de,ge);fe&&y(m({},fe))}},q=se=>{se.button===0&&(se.preventDefault(),se.stopPropagation(),x.deltaX=se.pageX-b.x,x.deltaY=se.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},pe=se=>{e.visible&&C.value&&y({x:se.pageX-x.deltaX,y:se.pageY-x.deltaY})},W=se=>{if(!e.visible)return;se.preventDefault();const re=se.deltaY;B.value={wheelDirection:re}},X=se=>{!e.visible||!M.value||(se.preventDefault(),se.keyCode===Oe.LEFT?R.value>0&&_(A.value[R.value-1]):se.keyCode===Oe.RIGHT&&R.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==Nl.x||b.y!==Nl.y)&&y(Nl))};let ae=()=>{};return je(()=>{be([()=>e.visible,C],()=>{ae();let se,re;const de=Mt(window,"mouseup",K,!1),ge=Mt(window,"mousemove",pe,!1),me=Mt(window,"wheel",W,{passive:!1}),fe=Mt(window,"keydown",X,!1);try{window.top!==window.self&&(se=Mt(window.top,"mouseup",K,!1),re=Mt(window.top,"mousemove",pe,!1))}catch{}ae=()=>{de.remove(),ge.remove(),me.remove(),fe.remove(),se&&se.remove(),re&&re.remove()}},{flush:"post",immediate:!0}),be([B],()=>{const{wheelDirection:se}=B.value;se>0?L(!0):se<0&&F(!0)})}),Rn(()=>{ae()}),()=>{const{visible:se,prefixCls:re,rootClassName:de}=e;return p(TE,D(D({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:re,onClose:S,afterClose:N,visible:se,wrapClassName:ee,rootClassName:de,getContainer:e.getContainer}),{default:()=>[p("div",{class:[`${e.prefixCls}-operations-wrapper`,de]},[p("ul",{class:`${e.prefixCls}-operations`},[Q.map(ge=>{let{icon:me,onClick:fe,type:ye,disabled:Se}=ge;return p("li",{class:ie(G,{[`${e.prefixCls}-operations-operation-disabled`]:Se&&(Se==null?void 0:Se.value)}),onClick:fe,key:ye},[sn(me,{class:J})])})])]),p("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[p("img",{onMousedown:q,onDblclick:ne,ref:$,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${v.value}deg)`}},null)]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:Z},[c]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:R.value>=E.value-1}),onClick:U},[u])]})}}}),ME=yle;var Sle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:V.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),AE=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let $le=0;const RE=oe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:_E(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.prefixCls),i=P(()=>`${l.value}-preview`),a=P(()=>{const F={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?AE(e.preview,F):F}),s=P(()=>{var F;return(F=a.value.src)!==null&&F!==void 0?F:e.src}),c=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),u=P(()=>a.value.visible),d=P(()=>a.value.getContainer),f=P(()=>u.value!==void 0),g=(F,L)=>{var k,j;(j=(k=a.value).onVisibleChange)===null||j===void 0||j.call(k,F,L)},[v,h]=Pt(!!u.value,{value:u,onChange:g}),b=le(c.value?"loading":"normal");be(()=>e.src,()=>{b.value=c.value?"loading":"normal"});const y=le(null),S=P(()=>b.value==="error"),$=t1.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:I}=$,T=le($le++),_=P(()=>e.preview&&!S.value),E=()=>{b.value="normal"},A=F=>{b.value="error",r("error",F)},R=F=>{if(!f.value){const{left:L,top:k}=jd(F.target);x.value?(C(T.value),w({x:L,y:k})):y.value={x:L,y:k}}x.value?O(!0):h(!0),r("click",F)},z=()=>{h(!1),f.value||(y.value=null)},M=le(null);be(()=>M,()=>{b.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&E()});let B=()=>{};je(()=>{be([s,_],()=>{if(B(),!x.value)return()=>{};B=I(T.value,s.value,_.value),_.value||B()},{flush:"post",immediate:!0})}),Rn(()=>{B()});const N=F=>DK(F)?F+"px":F;return()=>{const{prefixCls:F,wrapperClassName:L,fallback:k,src:j,placeholder:H,wrapperStyle:Y,rootClassName:Z,width:U,height:ee,crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,class:W,style:X}=m(m({},e),n),ne=a.value,{icons:ae,maskClassName:se}=ne,re=Sle(ne,["icons","maskClassName"]),de=ie(F,L,Z,{[`${F}-error`]:S.value}),ge=S.value&&k?k:s.value,me={crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,width:U,height:ee,class:ie(`${F}-img`,{[`${F}-img-placeholder`]:H===!0},W),style:m({height:N(ee)},X)};return p(We,null,[p("div",{class:de,onClick:_.value?R:fe=>{r("click",fe)},style:m({width:N(U),height:N(ee)},Y)},[p("img",D(D(D({},me),S.value&&k?{src:k}:{onLoad:E,onError:A,src:j}),{},{ref:M}),null),b.value==="loading"&&p("div",{"aria-hidden":"true",class:`${F}-placeholder`},[H||o.placeholder&&o.placeholder()]),o.previewMask&&_.value&&p("div",{class:[`${F}-mask`,se]},[o.previewMask()])]),!x.value&&_.value&&p(ME,D(D({},re),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:i.value,onClose:z,mousePosition:y.value,src:ge,alt:Q,getContainer:d.value,icons:ae,rootClassName:Z}),null)])}}});RE.PreviewGroup=EE;const Cle=RE;var xle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const wle=xle;function n2(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:m(m({},s2("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:m(m({},s2("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$b(e)}]},jle=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:m(m({},Xe(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:m({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Rr(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Wle=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:m({},zo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Vle=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Kle=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},Gle=Ve("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=Fe(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[jle(r),Wle(r),Vle(r),DE(r),e.wireframe&&Kle(r),Ha(r,"zoom")]}),gm=e=>({position:e||"absolute",inset:0}),Xle=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new gt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:m(m({},Gt),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Ule=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new gt(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:m(m({},Xe(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Yle=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new gt(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},qle=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:m(m({},gm()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":m(m({},gm()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Ule(e),Yle(e)]}]},Zle=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:m({},Xle(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:m({},gm())}}},Qle=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ha(e,"zoom"),"&":$b(e,!0)}},BE=Ve("Image",e=>{const t=`${e.componentCls}-preview`,n=Fe(e,{previewCls:t,modalMaskBg:new gt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Zle(n),qle(n),DE(Fe(n,{componentCls:t})),Qle(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new gt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new gt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),NE={rotateLeft:p(Ple,null,null),rotateRight:p(Mle,null,null),zoomIn:p(Dle,null,null),zoomOut:p(Lle,null,null),close:p(Zn,null,null),left:p(Sl,null,null),right:p(Wo,null,null),flipX:p(a2,null,null),flipY:p(a2,{rotate:90},null)},Jle=()=>({previewPrefixCls:String,preview:St()}),eie=oe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Jle(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:l}=Te("image",e),i=P(()=>`${r.value}-preview`),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({},d),{rootClassName:s.value,transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>a(p(EE,D(D({},m(m({},n),e)),{},{preview:c.value,icons:NE,previewPrefixCls:i.value}),o))}}),FE=eie,Ul=oe({name:"AImage",inheritAttrs:!1,props:_E(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:l,configProvider:i}=Te("image",e),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({icons:NE},d),{transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>{var u,d;const f=((d=(u=i.locale)===null||u===void 0?void 0:u.value)===null||d===void 0?void 0:d.Image)||jn.Image,g=()=>p("div",{class:`${r.value}-mask-info`},[p(Jy,null,null),f==null?void 0:f.preview]),{previewMask:v=n.previewMask||g}=e;return a(p(Cle,D(D({},m(m(m({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:ie(e.rootClassName,s.value)}),m(m({},n),{previewMask:typeof v=="function"?v:null})))}}});Ul.PreviewGroup=FE;Ul.install=function(e){return e.component(Ul.name,Ul),e.component(Ul.PreviewGroup.name,Ul.PreviewGroup),e};const tie=Ul;var nie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const oie=nie;function c2(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(hm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new Yl(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":c1(this.number):this.origin}}class Qi{constructor(t){if(this.origin="",LE(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(s1(n)&&(n=Number(n)),n=typeof n=="string"?n:c1(n),u1(n)){const o=zs(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const l=r[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new Qi(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new Qi(t);const n=new Qi(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),l=n.alignDecimal(o),i=(r+l).toString(),{negativeStr:a,trimStr:s}=zs(i),c=`${a}${s.padStart(o+1,"0")}`;return new Qi(`${c.slice(0,-o)}.${c.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":zs(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Qo(e){return hm()?new Qi(e):new Yl(e)}function vm(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:l,decimalStr:i}=zs(e),a=`${t}${i}`,s=`${r}${l}`;if(n>=0){const c=Number(i[n]);if(c>=5&&!o){const u=Qo(e).add(`${r}0.${"0".repeat(n)}${10-c}`);return vm(u.toString(),t,n,o)}return n===0?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return a===".0"?s:`${s}${a}`}const iie=200,aie=600,sie=oe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ve()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=le(),l=(a,s)=>{a.preventDefault(),o("step",s);function c(){o("step",s),r.value=setTimeout(c,iie)}r.value=setTimeout(c,aie)},i=()=>{clearTimeout(r.value)};return Ze(()=>{i()}),()=>{if(U0())return null;const{prefixCls:a,upDisabled:s,downDisabled:c}=e,u=`${a}-handler`,d=ie(u,`${u}-up`,{[`${u}-up-disabled`]:s}),f=ie(u,`${u}-down`,{[`${u}-down-disabled`]:c}),g={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:v,downNode:h}=n;return p("div",{class:`${u}-wrap`},[p("span",D(D({},g),{},{onMousedown:b=>{l(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(v==null?void 0:v())||p("span",{unselectable:"on",class:`${a}-handler-up-inner`},null)]),p("span",D(D({},g),{},{onMousedown:b=>{l(b,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:f}),[(h==null?void 0:h())||p("span",{unselectable:"on",class:`${a}-handler-down-inner`},null)])])}}});function cie(e,t){const n=le(null);function o(){try{const{selectionStart:l,selectionEnd:i,value:a}=e.value,s=a.substring(0,l),c=a.substring(i);n.value={start:l,end:i,value:a,beforeTxt:s,afterTxt:c}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:l}=e.value,{beforeTxt:i,afterTxt:a,start:s}=n.value;let c=l.length;if(l.endsWith(a))c=l.length-n.value.afterTxt.length;else if(l.startsWith(i))c=i.length;else{const u=i[s-1],d=l.indexOf(u,s-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}catch(l){`${l.message}`}}return[o,r]}const uie=()=>{const e=te(0),t=()=>{Ye.cancel(e.value)};return Ze(()=>{t()}),n=>{t(),e.value=Ye(()=>{n()})}};var die=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),d2=e=>{const t=Qo(e);return t.isInvalidate()?null:t},kE=()=>({stringMode:Ce(),defaultValue:Le([String,Number]),value:Le([String,Number]),prefixCls:Be(),min:Le([String,Number]),max:Le([String,Number]),step:Le([String,Number],1),tabindex:Number,controls:Ce(!0),readonly:Ce(),disabled:Ce(),autofocus:Ce(),keyboard:Ce(!0),parser:ve(),formatter:ve(),precision:Number,decimalSeparator:String,onInput:ve(),onChange:ve(),onPressEnter:ve(),onStep:ve(),onBlur:ve(),onFocus:ve()}),fie=oe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:m(m({},kE()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const i=te(),a=te(!1),s=te(!1),c=te(!1),u=te(Qo(e.value));function d(H){e.value===void 0&&(u.value=H)}const f=(H,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(yc(H),yc(e.step))},g=H=>{const Y=String(H);if(e.parser)return e.parser(Y);let Z=Y;return e.decimalSeparator&&(Z=Z.replace(e.decimalSeparator,".")),Z.replace(/[^\w.-]+/g,"")},v=te(""),h=(H,Y)=>{if(e.formatter)return e.formatter(H,{userTyping:Y,input:String(v.value)});let Z=typeof H=="number"?c1(H):H;if(!Y){const U=f(Z,Y);if(u1(Z)&&(e.decimalSeparator||U>=0)){const ee=e.decimalSeparator||".";Z=vm(Z,ee,U)}}return Z},b=(()=>{const H=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:h(u.value.toString(),!1)})();v.value=b;function y(H,Y){v.value=h(H.isInvalidate()?H.toString(!1):H.toString(!Y),Y)}const S=P(()=>d2(e.max)),$=P(()=>d2(e.min)),x=P(()=>!S.value||!u.value||u.value.isInvalidate()?!1:S.value.lessEquals(u.value)),C=P(()=>!$.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals($.value)),[O,w]=cie(i,a),I=H=>S.value&&!H.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(H)?$.value:null,T=H=>!I(H),_=(H,Y)=>{var Z;let U=H,ee=T(U)||U.isEmpty();if(!U.isEmpty()&&!Y&&(U=I(U)||U,ee=!0),!e.readonly&&!e.disabled&&ee){const G=U.toString(),J=f(G,Y);return J>=0&&(U=Qo(vm(G,".",J))),U.equals(u.value)||(d(U),(Z=e.onChange)===null||Z===void 0||Z.call(e,U.isEmpty()?null:u2(e.stringMode,U)),e.value===void 0&&y(U,Y)),U}return u.value},E=uie(),A=H=>{var Y;if(O(),v.value=H,!c.value){const Z=g(H),U=Qo(Z);U.isNaN()||_(U,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,H),E(()=>{let Z=H;e.parser||(Z=H.replace(/。/g,".")),Z!==H&&A(Z)})},R=()=>{c.value=!0},z=()=>{c.value=!1,A(i.value.value)},M=H=>{A(H.target.value)},B=H=>{var Y,Z;if(H&&x.value||!H&&C.value)return;s.value=!1;let U=Qo(e.step);H||(U=U.negate());const ee=(u.value||Qo(0)).add(U.toString()),G=_(ee,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,u2(e.stringMode,G),{offset:e.step,type:H?"up":"down"}),(Z=i.value)===null||Z===void 0||Z.focus()},N=H=>{const Y=Qo(g(v.value));let Z=Y;Y.isNaN()?Z=u.value:Z=_(Y,H),e.value!==void 0?y(u.value,!1):Z.isNaN()||y(Z,!1)},F=()=>{s.value=!0},L=H=>{var Y;const{which:Z}=H;s.value=!0,Z===Oe.ENTER&&(c.value||(s.value=!1),N(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,H)),e.keyboard!==!1&&!c.value&&[Oe.UP,Oe.DOWN].includes(Z)&&(B(Oe.UP===Z),H.preventDefault())},k=()=>{s.value=!1},j=H=>{N(!1),a.value=!1,s.value=!1,r("blur",H)};return be(()=>e.precision,()=>{u.value.isInvalidate()||y(u.value,!1)},{flush:"post"}),be(()=>e.value,()=>{const H=Qo(e.value);u.value=H;const Y=Qo(g(v.value));(!H.equals(Y)||!s.value||e.formatter)&&y(H,s.value)},{flush:"post"}),be(v,()=>{e.formatter&&w()},{flush:"post"}),be(()=>e.disabled,H=>{H&&(a.value=!1)}),l({focus:()=>{var H;(H=i.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=i.value)===null||H===void 0||H.blur()}}),()=>{const H=m(m({},n),e),{prefixCls:Y="rc-input-number",min:Z,max:U,step:ee=1,defaultValue:G,value:J,disabled:Q,readonly:K,keyboard:q,controls:pe=!0,autofocus:W,stringMode:X,parser:ne,formatter:ae,precision:se,decimalSeparator:re,onChange:de,onInput:ge,onPressEnter:me,onStep:fe,lazy:ye,class:Se,style:ue}=H,ce=die(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:he,downHandler:Pe}=o,Ie=`${Y}-input`,Ae={};return ye?Ae.onChange=M:Ae.onInput=M,p("div",{class:ie(Y,Se,{[`${Y}-focused`]:a.value,[`${Y}-disabled`]:Q,[`${Y}-readonly`]:K,[`${Y}-not-a-number`]:u.value.isNaN(),[`${Y}-out-of-range`]:!u.value.isInvalidate()&&!T(u.value)}),style:ue,onKeydown:L,onKeyup:k},[pe&&p(sie,{prefixCls:Y,upDisabled:x.value,downDisabled:C.value,onStep:B},{upNode:he,downNode:Pe}),p("div",{class:`${Ie}-wrap`},[p("input",D(D(D({autofocus:W,autocomplete:"off",role:"spinbutton","aria-valuemin":Z,"aria-valuemax":U,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:ee},ce),{},{ref:i,class:Ie,value:v.value,disabled:Q,readonly:K,onFocus:$e=>{a.value=!0,r("focus",$e)}},Ae),{},{onBlur:j,onCompositionstart:R,onCompositionend:z,onBeforeinput:F}),null)])])}}});function Ih(e){return e!=null}const pie=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:l,fontSizeLG:i,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:l,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":m({},Ga(e)),"&-focused":m({},yl(e)),"&-disabled":m(m({},my(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":m(m(m({},Xe(e)),N6(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":m(m({width:"100%",height:v-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},vy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:g}},"&-up-inner, &-down-inner":m(m({},yi()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:l},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gie=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:l,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:m(m(m({},Ii(e)),Nc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},hie=Ve("InputNumber",e=>{const t=Ti(e);return[pie(t),gie(t),ja(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var vie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},f2),{size:Be(),bordered:Ce(!0),placeholder:String,name:String,id:String,type:String,addonBefore:V.any,addonAfter:V.any,prefix:V.any,"onUpdate:value":f2.onChange,valueModifiers:Object,status:Be()}),Th=oe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:mie(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:l}=t;var i;const a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),{prefixCls:u,size:d,direction:f,disabled:g}=Te("input-number",e),{compactSize:v,compactItemClassnames:h}=Ol(u,f),b=qn(),y=P(()=>{var R;return(R=g.value)!==null&&R!==void 0?R:b.value}),[S,$]=hie(u),x=P(()=>v.value||d.value),C=te((i=e.value)!==null&&i!==void 0?i:e.defaultValue),O=te(!1);be(()=>e.value,()=>{C.value=e.value});const w=te(null),I=()=>{var R;(R=w.value)===null||R===void 0||R.focus()};o({focus:I,blur:()=>{var R;(R=w.value)===null||R===void 0||R.blur()}});const _=R=>{e.value===void 0&&(C.value=R),n("update:value",R),n("change",R),a.onFieldChange()},E=R=>{O.value=!1,n("blur",R),a.onFieldBlur()},A=R=>{O.value=!0,n("focus",R)};return()=>{var R,z,M,B;const{hasFeedback:N,isFormItemInput:F,feedbackIcon:L}=s,k=(R=e.id)!==null&&R!==void 0?R:a.id.value,j=m(m(m({},r),e),{id:k,disabled:y.value}),{class:H,bordered:Y,readonly:Z,style:U,addonBefore:ee=(z=l.addonBefore)===null||z===void 0?void 0:z.call(l),addonAfter:G=(M=l.addonAfter)===null||M===void 0?void 0:M.call(l),prefix:J=(B=l.prefix)===null||B===void 0?void 0:B.call(l),valueModifiers:Q={}}=j,K=vie(j,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),q=u.value,pe=ie({[`${q}-lg`]:x.value==="large",[`${q}-sm`]:x.value==="small",[`${q}-rtl`]:f.value==="rtl",[`${q}-readonly`]:Z,[`${q}-borderless`]:!Y,[`${q}-in-form-item`]:F},Tn(q,c.value),H,h.value,$.value);let W=p(fie,D(D({},et(K,["size","defaultValue"])),{},{ref:w,lazy:!!Q.lazy,value:C.value,class:pe,prefixCls:q,readonly:Z,onChange:_,onBlur:E,onFocus:A}),{upHandler:l.upIcon?()=>p("span",{class:`${q}-handler-up-inner`},[l.upIcon()]):()=>p(lie,{class:`${q}-handler-up-inner`},null),downHandler:l.downIcon?()=>p("span",{class:`${q}-handler-down-inner`},[l.downIcon()]):()=>p(Ec,{class:`${q}-handler-down-inner`},null)});const X=Ih(ee)||Ih(G),ne=Ih(J);if(ne||N){const ae=ie(`${q}-affix-wrapper`,Tn(`${q}-affix-wrapper`,c.value,N),{[`${q}-affix-wrapper-focused`]:O.value,[`${q}-affix-wrapper-disabled`]:y.value,[`${q}-affix-wrapper-sm`]:x.value==="small",[`${q}-affix-wrapper-lg`]:x.value==="large",[`${q}-affix-wrapper-rtl`]:f.value==="rtl",[`${q}-affix-wrapper-readonly`]:Z,[`${q}-affix-wrapper-borderless`]:!Y,[`${H}`]:!X&&H},$.value);W=p("div",{class:ae,style:U,onClick:I},[ne&&p("span",{class:`${q}-prefix`},[J]),W,N&&p("span",{class:`${q}-suffix`},[L])])}if(X){const ae=`${q}-group`,se=`${ae}-addon`,re=ee?p("div",{class:se},[ee]):null,de=G?p("div",{class:se},[G]):null,ge=ie(`${q}-wrapper`,ae,{[`${ae}-rtl`]:f.value==="rtl"},$.value),me=ie(`${q}-group-wrapper`,{[`${q}-group-wrapper-sm`]:x.value==="small",[`${q}-group-wrapper-lg`]:x.value==="large",[`${q}-group-wrapper-rtl`]:f.value==="rtl"},Tn(`${u}-group-wrapper`,c.value,N),H,$.value);W=p("div",{class:me,style:U},[p("div",{class:ge},[re&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[re]})]}),W,de&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[de]})]})])])}return S(dt(W,{style:U}))}}}),bie=m(Th,{install:e=>(e.component(Th.name,Th),e)}),yie=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},Sie=yie,$ie=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:l,colorBgBody:i,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:m(m({display:"flex",flex:"auto",flexDirection:"column",color:o,minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:l,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:l,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:r,lineHeight:`${f}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:l,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},Sie(e)),{"&-rtl":{direction:"rtl"}})}},Cie=Ve("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:l}=e,i=r*1.25,a=Fe(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:r+l*2,layoutZeroTriggerSize:r});return[$ie(a)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),d1=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function Xp(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>oe({compatConfig:{MODE:3},name:o,props:d1(),setup(i,a){let{slots:s}=a;const{prefixCls:c}=Te(t,i);return()=>{const u=m(m({},i),{prefixCls:c.value,tagName:n});return p(r,u,s)}}})}const f1=oe({compatConfig:{MODE:3},props:d1(),setup(e,t){let{slots:n}=t;return()=>p(e.tagName,{class:e.prefixCls},n)}}),xie=oe({compatConfig:{MODE:3},inheritAttrs:!1,props:d1(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("",e),[i,a]=Cie(r),s=le([]);Ge(VT,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const u=P(()=>{const{prefixCls:d,hasSider:f}=e;return{[a.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:l.value==="rtl"}});return()=>{const{tagName:d}=e;return i(p(d,m(m({},o),{class:[u.value,o.class]}),n))}}}),wie=Xp({suffixCls:"layout",tagName:"section",name:"ALayout"})(xie),rd=Xp({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(f1),ld=Xp({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(f1),id=Xp({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(f1),Eh=wie;var Oie={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"};const Pie=Oie;function p2(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:V.any,width:V.oneOfType([V.number,V.string]),collapsedWidth:V.oneOfType([V.number,V.string]),breakpoint:V.oneOf(Cn("xs","sm","md","lg","xl","xxl","xxxl")),theme:V.oneOf(Cn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Mie=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ad=oe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:qe(Eie(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:l}=Te("layout-sider",e),i=He(VT,void 0),a=te(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=te(!1);be(()=>e.collapsed,()=>{a.value=!!e.collapsed}),Ge(WT,a);const c=(h,b)=>{e.collapsed===void 0&&(a.value=h),n("update:collapsed",h),n("collapse",h,b)},u=te(h=>{s.value=h.matches,n("breakpoint",h.matches),a.value!==h.matches&&c(h.matches,"responsive")});let d;function f(h){return u.value(h)}const g=Mie("ant-sider-");i&&i.addSider(g),je(()=>{be(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in g2){d=h(`(max-width: ${g2[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Ze(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}i&&i.removeSider(g)});const v=()=>{c(!a.value,"clickTrigger")};return()=>{var h,b;const y=l.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:I}=e,T=a.value?S:$,_=Jd(T)?`${T}px`:String(T),E=parseFloat(String(S||0))===0?p("span",{onClick:v,class:ie(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||p(Tie,null,null)]):null,A={expanded:p(x?Wo:Sl,null,null),collapsed:p(x?Sl:Wo,null,null)},R=a.value?"collapsed":"expanded",z=A[R],M=O!==null?E||p("div",{class:`${y}-trigger`,onClick:v,style:{width:_}},[O||z]):null,B=[o.style,{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}],N=ie(y,`${y}-${I}`,{[`${y}-collapsed`]:!!a.value,[`${y}-has-trigger`]:w&&O!==null&&!E,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(_)===0},o.class);return p("aside",D(D({},o),{},{class:N,style:B}),[p("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&E?M:null])}}}),_ie=rd,Aie=ld,Rie=ad,Die=id,Bie=m(Eh,{Header:rd,Footer:ld,Content:id,Sider:ad,install:e=>(e.component(Eh.name,Eh),e.component(rd.name,rd),e.component(ld.name,ld),e.component(ad.name,ad),e.component(id.name,id),e)});function Nie(e,t,n){var o=n||{},r=o.noTrailing,l=r===void 0?!1:r,i=o.noLeading,a=i===void 0?!1:i,s=o.debounceMode,c=s===void 0?void 0:s,u,d=!1,f=0;function g(){u&&clearTimeout(u)}function v(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?a?(f=Date.now(),l||(u=setTimeout(c?O:C,e))):C():l!==!0&&(u=setTimeout(c?O:C,c===void 0?e-x:e))}return h.cancel=v,h}function Fie(e,t,n){var o=n||{},r=o.atBegin,l=r===void 0?!1:r;return Nie(e,t,{debounceMode:l!==!1})}const Lie=new nt("antSpinMove",{to:{opacity:1}}),kie=new nt("antRotate",{to:{transform:"rotate(405deg)"}}),zie=e=>({[`${e.componentCls}`]:m(m({},Xe(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Lie,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:kie,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Hie=Ve("Spin",e=>{const t=Fe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[zie(t)]},{contentHeight:400});var jie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:V.any,delay:Number,indicator:V.any});let sd=null;function Vie(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Kie(e){const t=e.indicator;sd=typeof t=="function"?t:()=>p(t,null,null)}const ir=oe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:qe(Wie(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:l,direction:i}=Te("spin",e),[a,s]=Hie(r),c=te(e.spinning&&!Vie(e.spinning,e.delay));let u;return be([()=>e.spinning,()=>e.delay],()=>{u==null||u.cancel(),u=Fie(e.delay,()=>{c.value=e.spinning}),u==null||u()},{immediate:!0,flush:"post"}),Ze(()=>{u==null||u.cancel()}),()=>{var d,f;const{class:g}=n,v=jie(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(f=o.default)===null||f===void 0?void 0:f.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:l.value==="small",[`${r.value}-lg`]:l.value==="large",[`${r.value}-spinning`]:c.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:i.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=qt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),Yt(O)?sn(O,{class:C}):sd&&Yt(sd())?sn(sd(),{class:C}):p("span",{class:`${C} ${x}-dot-spin`},[p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null)]))}const $=p("div",D(D({},v),{},{class:y,"aria-live":"polite","aria-busy":c.value}),[S(r.value),h?p("div",{class:`${r.value}-text`},[h]):null]);if(b&&_t(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:c.value};return a(p("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[c.value&&p("div",{key:"loading"},[$]),p("div",{class:x,key:"container"},[b])]))}return a($)}}});ir.setDefaultIndicator=Kie;ir.install=function(e){return e.component(ir.name,ir),e};var Gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Xie=Gie;function h2(e){for(var t=1;t{const r=m(m(m({},e),{size:"small"}),n);return p(Dr,r,o)}}}),Jie=oe({name:"MiddleSelect",inheritAttrs:!1,props:Pp(),Option:Dr.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=m(m(m({},e),{size:"middle"}),n);return p(Dr,r,o)}}}),Fl=oe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:V.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},l=i=>{n("keypress",i,r,e.page)};return()=>{const{showTitle:i,page:a,itemRender:s}=e,{class:c,style:u}=o,d=`${e.rootPrefixCls}-item`,f=ie(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},c);return p("li",{onClick:r,onKeypress:l,title:i?String(a):null,tabindex:"0",class:f,style:u},[s({page:a,type:"page",originalElement:p("a",{rel:"nofollow"},[a])})])}}}),jl={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},eae=oe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:V.any,current:Number,pageSizeOptions:V.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:V.object,rootPrefixCls:String,selectPrefixCls:String,goButton:V.any},setup(e){const t=le(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:c}=s.target;t.value!==c&&(t.value=c)},l=s=>{const{goButton:c,quickGo:u,rootPrefixCls:d}=e;if(!(c||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else u(n.value),t.value=""},i=s=>{t.value!==""&&(s.keyCode===jl.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},a=P(()=>{const{pageSize:s,pageSizeOptions:c}=e;return c.some(u=>u.toString()===s.toString())?c:c.concat([s.toString()]).sort((u,d)=>{const f=isNaN(Number(u))?0:Number(u),g=isNaN(Number(d))?0:Number(d);return f-g})});return()=>{const{rootPrefixCls:s,locale:c,changeSize:u,quickGo:d,goButton:f,selectComponentClass:g,selectPrefixCls:v,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!u&&!d)return null;if(u&&g){const C=e.buildOptionText||o,O=a.value.map((w,I)=>p(g.Option,{key:I,value:w},{default:()=>[C({value:w})]}));S=p(g,{disabled:b,prefixCls:v,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||a.value[0]).toString(),onChange:w=>u(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(f&&(x=typeof f=="boolean"?p("button",{type:"button",onClick:i,onKeyup:i,disabled:b,class:`${y}-quick-jumper-button`},[c.jump_to_confirm]):p("span",{onClick:i,onKeyup:i},[f])),$=p("div",{class:`${y}-quick-jumper`},[c.jump_to,p(Na,{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:i,onBlur:l},null),c.page,x])),p("li",{class:`${y}`},[S,$])}}}),tae={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var nae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const lae=oe({compatConfig:{MODE:3},name:"Pagination",mixins:[xi],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:V.string.def("rc-pagination"),selectPrefixCls:V.string.def("rc-select"),current:Number,defaultCurrent:V.number.def(1),total:V.number.def(0),pageSize:Number,defaultPageSize:V.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:V.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:V.oneOfType([V.looseBool,V.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:V.object.def(tae),itemRender:V.func.def(rae),prevIcon:V.any,nextIcon:V.any,jumpPrevIcon:V.any,jumpNextIcon:V.any,totalBoundaryShowSizeChanger:V.number.def(50)},data(){const e=this.$props;let t=qd([this.current,this.defaultCurrent]);const n=qd([this.pageSize,this.defaultPageSize]);return t=Math.min(t,hr(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=hr(e,this.$data,this.$props);n=n>o?o:n,xr(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=hr(this.pageSize,this.$data,this.$props);if(xr(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(hr(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return VO(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=hr(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return oae(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===jl.ARROW_UP||e.keyCode===jl.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===jl.ENTER?this.handleChange(t):e.keyCode===jl.ARROW_UP?this.handleChange(t-1):e.keyCode===jl.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=hr(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(xr(this,"pageSize")||this.setState({statePageSize:e}),xr(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=hr(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),xr(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,B=y+1=z*2&&y!==1+2&&(w[0]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.unshift(I)),O-y>=z*2&&y!==O-2&&(w[w.length-1]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ee,page:ee,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.push(T)),U!==1&&w.unshift(_),ee!==O&&w.push(E)}let L=null;s&&(L=p("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const k=!N||!O,j=!F||!O,H=this.buildOptionText||this.$slots.buildOptionText;return p("ul",D(D({unselectable:"on",ref:"paginationNode"},C),{},{class:ie({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[L,p("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:k?null:0,onKeypress:this.runIfEnterPrev,class:ie(`${e}-prev`,{[`${e}-disabled`]:k}),"aria-disabled":k},[this.renderPrev(M)]),w,p("li",{title:a?r.next_page:null,onClick:this.next,tabindex:j?null:0,onKeypress:this.runIfEnterNext,class:ie(`${e}-next`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderNext(B)]),p(eae,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:H||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R},null)])}}),iae=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},aae=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:m(m({},by(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},sae=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},cae=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":m({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ar(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:m({},Ar(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:m(m({},Ii(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},uae=e=>{const{componentCls:t}=e;return{[`${t}-item`]:m(m({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Rr(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},dae=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m({},Xe(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),uae(e)),cae(e)),sae(e)),aae(e)),iae(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},fae=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pae=Ve("Pagination",e=>{const t=Fe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ti(e));return[dae(t),e.wireframe&&fae(t)]});var gae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:Ce(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Ce(),showSizeChanger:Ce(),pageSizeOptions:at(),buildOptionText:ve(),showQuickJumper:Le([Boolean,Object]),showTotal:ve(),size:Be(),simple:Ce(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:ve(),role:String,responsive:Boolean,showLessItems:Ce(),onChange:ve(),onShowSizeChange:ve(),"onUpdate:current":ve(),"onUpdate:pageSize":ve()}),vae=oe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:hae(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:l,direction:i,size:a}=Te("pagination",e),[s,c]=pae(r),u=P(()=>l.getPrefixCls("select",e.selectPrefixCls)),d=Va(),[f]=Io("Pagination",tP,ze(e,"locale")),g=v=>{const h=p("span",{class:`${v}-item-ellipsis`},[Lt("•••")]),b=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Wo,null,null):p(Sl,null,null)]),y=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Sl,null,null):p(Wo,null,null)]),S=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(b2,{class:`${v}-item-link-icon`},null):p(v2,{class:`${v}-item-link-icon`},null),h])]),$=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(v2,{class:`${v}-item-link-icon`},null):p(b2,{class:`${v}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var v;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=gae(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=a.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!a.value&&S),C=m(m(m(m(m({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:y||(x?Qie:Jie),locale:f.value,buildOptionText:b}),o),{class:ie({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:i.value==="rtl"},o.class,c.value),itemRender:h});return s(p(lae,C,null))}}}),Up=Tt(vae),mae=()=>({avatar:V.any,description:V.any,prefixCls:String,title:V.any}),zE=oe({compatConfig:{MODE:3},name:"AListItemMeta",props:mae(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("list",e);return()=>{var r,l,i,a,s,c;const u=`${o.value}-item-meta`,d=(r=e.title)!==null&&r!==void 0?r:(l=n.title)===null||l===void 0?void 0:l.call(n),f=(i=e.description)!==null&&i!==void 0?i:(a=n.description)===null||a===void 0?void 0:a.call(n),g=(s=e.avatar)!==null&&s!==void 0?s:(c=n.avatar)===null||c===void 0?void 0:c.call(n),v=p("div",{class:`${o.value}-item-meta-content`},[d&&p("h4",{class:`${o.value}-item-meta-title`},[d]),f&&p("div",{class:`${o.value}-item-meta-description`},[f])]);return p("div",{class:u},[g&&p("div",{class:`${o.value}-item-meta-avatar`},[g]),(d||f)&&v])}}}),HE=Symbol("ListContextKey");var bae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,extra:V.any,actions:V.array,grid:Object,colStyle:{type:Object,default:void 0}}),jE=oe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:zE,props:yae(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:l}=He(HE,{grid:le(),itemLayout:le()}),{prefixCls:i}=Te("list",e),a=()=>{var c;const u=((c=n.default)===null||c===void 0?void 0:c.call(n))||[];let d;return u.forEach(f=>{lD(f)&&!wc(f)&&(d=!0)}),d&&u.length>1},s=()=>{var c,u;const d=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n);return r.value==="vertical"?!!d:!a()};return()=>{var c,u,d,f,g;const{class:v}=o,h=bae(o,["class"]),b=i.value,y=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n),S=(d=n.default)===null||d===void 0?void 0:d.call(n);let $=(f=e.actions)!==null&&f!==void 0?f:yt((g=n.actions)===null||g===void 0?void 0:g.call(n));$=$&&!Array.isArray($)?[$]:$;const x=$&&$.length>0&&p("ul",{class:`${b}-item-action`,key:"actions"},[$.map((w,I)=>p("li",{key:`${b}-item-action-${I}`},[w,I!==$.length-1&&p("em",{class:`${b}-item-action-split`},null)]))]),C=l.value?"div":"li",O=p(C,D(D({},h),{},{class:ie(`${b}-item`,{[`${b}-item-no-flex`]:!s()},v)}),{default:()=>[r.value==="vertical"&&y?[p("div",{class:`${b}-item-main`,key:"content"},[S,x]),p("div",{class:`${b}-item-extra`,key:"extra"},[y])]:[S,x,dt(y,{key:"extra"})]]});return l.value?p(Vp,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),Sae=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:l,listItemPaddingSM:i,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${l}px ${o}px`}}}},$ae=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:l,margin:i}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},Cae=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:l,marginLG:i,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:f,margin:g,colorText:v,colorTextDescription:h,motionDurationSlow:b,lineWidth:y}=e;return{[`${t}`]:m(m({},Xe(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${b}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:l,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},xae=Ve("List",e=>{const t=Fe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Cae(t),Sae(t),$ae(t)]},{contentWidth:220}),wae=()=>({bordered:Ce(),dataSource:at(),extra:In(),grid:Re(),itemLayout:String,loading:Le([Boolean,Object]),loadMore:In(),pagination:Le([Boolean,Object]),prefixCls:String,rowKey:Le([String,Number,Function]),renderItem:ve(),size:String,split:Ce(),header:In(),footer:In(),locale:Re()}),Qr=oe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:jE,props:qe(wae(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,l;Ge(HE,{grid:ze(e,"grid"),itemLayout:ze(e,"itemLayout")});const i={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=Te("list",e),[u,d]=xae(a),f=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),g=le((r=f.value.defaultCurrent)!==null&&r!==void 0?r:1),v=le((l=f.value.defaultPageSize)!==null&&l!==void 0?l:10);be(f,()=>{"current"in f.value&&(g.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const h=[],b=R=>(z,M)=>{g.value=z,v.value=M,f.value[R]&&f.value[R](z,M)},y=b("onChange"),S=b("onShowSizeChange"),$=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>$.value&&$.value.spinning),C=P(()=>{let R="";switch(e.size){case"large":R="lg";break;case"small":R="sm";break}return R}),O=P(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${C.value}`]:C.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:x.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:s.value==="rtl"})),w=P(()=>{const R=m(m(m({},i),{total:e.dataSource.length,current:g.value,pageSize:v.value}),e.pagination||{}),z=Math.ceil(R.total/R.pageSize);return R.current>z&&(R.current=z),R}),I=P(()=>{let R=[...e.dataSource];return e.pagination&&e.dataSource.length>(w.value.current-1)*w.value.pageSize&&(R=[...e.dataSource].splice((w.value.current-1)*w.value.pageSize,w.value.pageSize)),R}),T=Va(),_=ro(()=>{for(let R=0;R{if(!e.grid)return;const R=_.value&&e.grid[_.value]?e.grid[_.value]:e.grid.column;if(R)return{width:`${100/R}%`,maxWidth:`${100/R}%`}}),A=(R,z)=>{var M;const B=(M=e.renderItem)!==null&&M!==void 0?M:n.renderItem;if(!B)return null;let N;const F=typeof e.rowKey;return F==="function"?N=e.rowKey(R):F==="string"||F==="number"?N=R[e.rowKey]:N=R.key,N||(N=`list-item-${z}`),h[z]=N,B({item:R,index:z})};return()=>{var R,z,M,B,N,F,L,k;const j=(R=e.loadMore)!==null&&R!==void 0?R:(z=n.loadMore)===null||z===void 0?void 0:z.call(n),H=(M=e.footer)!==null&&M!==void 0?M:(B=n.footer)===null||B===void 0?void 0:B.call(n),Y=(N=e.header)!==null&&N!==void 0?N:(F=n.header)===null||F===void 0?void 0:F.call(n),Z=yt((L=n.default)===null||L===void 0?void 0:L.call(n)),U=!!(j||e.pagination||H),ee=ie(m(m({},O.value),{[`${a.value}-something-after-last-item`]:U}),o.class,d.value),G=e.pagination?p("div",{class:`${a.value}-pagination`},[p(Up,D(D({},w.value),{},{onChange:y,onShowSizeChange:S}),null)]):null;let J=x.value&&p("div",{style:{minHeight:"53px"}},null);if(I.value.length>0){h.length=0;const K=I.value.map((pe,W)=>A(pe,W)),q=K.map((pe,W)=>p("div",{key:h[W],style:E.value},[pe]));J=e.grid?p(Ry,{gutter:e.grid.gutter},{default:()=>[q]}):p("ul",{class:`${a.value}-items`},[K])}else!Z.length&&!x.value&&(J=p("div",{class:`${a.value}-empty-text`},[((k=e.locale)===null||k===void 0?void 0:k.emptyText)||c("List")]));const Q=w.value.position||"bottom";return u(p("div",D(D({},o),{},{class:ee}),[(Q==="top"||Q==="both")&&G,Y&&p("div",{class:`${a.value}-header`},[Y]),p(ir,$.value,{default:()=>[J,Z]}),H&&p("div",{class:`${a.value}-footer`},[H]),j||(Q==="bottom"||Q==="both")&&G]))}}});Qr.install=function(e){return e.component(Qr.name,Qr),e.component(Qr.Item.name,Qr.Item),e.component(Qr.Item.Meta.name,Qr.Item.Meta),e};const Oae=Qr;function Pae(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Iae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,r)=>{const l=e.lastIndexOf(r);return l>o.location?{location:l,prefix:r}:o},{location:-1,prefix:""})}function y2(e){return(e||"").toLowerCase()}function Tae(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const l=t.length;for(let i=0;i[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:l,onFocus:i=Dae,loading:a}=He(WE,{activeIndex:te(),loading:te(!1)});let s;const c=u=>{clearTimeout(s),s=setTimeout(()=>{i(u)})};return Ze(()=>{clearTimeout(s)}),()=>{var u;const{prefixCls:d,options:f}=e,g=f[o.value]||{};return p(Vt,{prefixCls:`${d}-menu`,activeKey:g.value,onSelect:v=>{let{key:h}=v;const b=f.find(y=>{let{value:S}=y;return S===h});l(b)},onMousedown:c},{default:()=>[!a.value&&f.map((v,h)=>{var b,y;const{value:S,disabled:$,label:x=v.value,class:C,style:O}=v;return p(lr,{key:S,disabled:$,onMouseenter:()=>{r(h)},class:C,style:O},{default:()=>[(y=(b=n.option)===null||b===void 0?void 0:b.call(n,v))!==null&&y!==void 0?y:typeof x=="function"?x(v):x]})}),!a.value&&f.length===0?p(lr,{key:"notFoundContent",disabled:!0},{default:()=>[(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)]}):null,a.value&&p(lr,{key:"loading",disabled:!0},{default:()=>[p(ir,{size:"small"},null)]})]})}}}),Nae={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},Fae=oe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:i}=e;return p(Bae,{prefixCls:o(),options:i},{notFoundContent:n.notFoundContent,option:n.option})},l=P(()=>{const{placement:i,direction:a}=e;let s="topRight";return a==="rtl"?s=i==="top"?"topLeft":"bottomLeft":s=i==="top"?"topRight":"bottomRight",s});return()=>{const{visible:i,transitionName:a,getPopupContainer:s}=e;return p(wi,{prefixCls:o(),popupVisible:i,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:l.value,popupTransitionName:a,builtinPlacements:Nae,getPopupContainer:s},{default:n.default})}}}),Lae=Cn("top","bottom"),VE={autofocus:{type:Boolean,default:void 0},prefix:V.oneOfType([V.string,V.arrayOf(V.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:V.oneOf(Lae),character:V.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:at(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},KE=m(m({},VE),{dropdownClassName:String}),GE={prefix:"@",split:" ",rows:1,validateSearch:_ae,filterOption:()=>Aae};qe(KE,GE);var S2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{c.value=e.value});const u=E=>{n("change",E)},d=E=>{let{target:{value:A}}=E;u(A)},f=(E,A,R)=>{m(c,{measuring:!0,measureText:E,measurePrefix:A,measureLocation:R,activeIndex:0})},g=E=>{m(c,{measuring:!1,measureLocation:0,measureText:null}),E==null||E()},v=E=>{const{which:A}=E;if(c.measuring){if(A===Oe.UP||A===Oe.DOWN){const R=I.value.length,z=A===Oe.UP?-1:1,M=(c.activeIndex+z+R)%R;c.activeIndex=M,E.preventDefault()}else if(A===Oe.ESC)g();else if(A===Oe.ENTER){if(E.preventDefault(),!I.value.length){g();return}const R=I.value[c.activeIndex];C(R)}}},h=E=>{const{key:A,which:R}=E,{measureText:z,measuring:M}=c,{prefix:B,validateSearch:N}=e,F=E.target;if(F.composing)return;const L=Pae(F),{location:k,prefix:j}=Iae(L,B);if([Oe.ESC,Oe.UP,Oe.DOWN,Oe.ENTER].indexOf(R)===-1)if(k!==-1){const H=L.slice(k+j.length),Y=N(H,e),Z=!!w(H).length;Y?(A===j||A==="Shift"||M||H!==z&&Z)&&f(H,j,k):M&&g(),Y&&n("search",H,j)}else M&&g()},b=E=>{c.measuring||n("pressenter",E)},y=E=>{$(E)},S=E=>{x(E)},$=E=>{clearTimeout(s.value);const{isFocus:A}=c;!A&&E&&n("focus",E),c.isFocus=!0},x=E=>{s.value=setTimeout(()=>{c.isFocus=!1,g(),n("blur",E)},100)},C=E=>{const{split:A}=e,{value:R=""}=E,{text:z,selectionLocation:M}=Eae(c.value,{measureLocation:c.measureLocation,targetText:R,prefix:c.measurePrefix,selectionStart:a.value.getSelectionStart(),split:A});u(z),g(()=>{Mae(a.value.input,M)}),n("select",E,c.measurePrefix)},O=E=>{c.activeIndex=E},w=E=>{const A=E||c.measureText||"",{filterOption:R}=e;return e.options.filter(M=>R?R(A,M):!0)},I=P(()=>w());return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Ge(WE,{activeIndex:ze(c,"activeIndex"),setActiveIndex:O,selectOption:C,onFocus:$,onBlur:x,loading:ze(e,"loading")}),An(()=>{ot(()=>{c.measuring&&(i.value.scrollTop=a.value.getScrollTop())})}),()=>{const{measureLocation:E,measurePrefix:A,measuring:R}=c,{prefixCls:z,placement:M,transitionName:B,getPopupContainer:N,direction:F}=e,L=S2(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:k,style:j}=o,H=S2(o,["class","style"]),Y=et(L,["value","prefix","split","validateSearch","filterOption","options","loading"]),Z=m(m(m({},Y),H),{onChange:$2,onSelect:$2,value:c.value,onInput:d,onBlur:S,onKeydown:v,onKeyup:h,onFocus:y,onPressenter:b});return p("div",{class:ie(z,k),style:j},[p(Na,D(D({},Z),{},{ref:a,tag:"textarea"}),null),R&&p("div",{ref:i,class:`${z}-measure`},[c.value.slice(0,E),p(Fae,{prefixCls:z,transitionName:B,dropdownClassName:e.dropdownClassName,placement:M,options:R?I.value:[],visible:!0,direction:F,getPopupContainer:N},{default:()=>[p("span",null,[A])],notFoundContent:l.notFoundContent,option:l.option}),c.value.slice(E+A.length)])])}}}),zae={value:String,disabled:Boolean,payload:Re()},XE=m(m({},zae),{label:St([])}),UE={name:"Option",props:XE,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};m({compatConfig:{MODE:3}},UE);const Hae=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:l,motionDurationSlow:i,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:f,borderRadiusLG:g,boxShadowSecondary:v}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:m(m(m(m(m({},Xe(e)),Ii(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Nc(e,t)),{"&-disabled":{"> textarea":m({},my(e))},"&-focused":m({},yl(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:l,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":m({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},vy(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":m(m({},Xe(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:g,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":m(m({},Gt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:l,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:g,borderEndEndRadius:g},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:l,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},jae=Ve("Mentions",e=>{const t=Ti(e);return[Hae(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var C2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=null;return r.some(a=>l.slice(0,a.length)===a?(i=a,!0):!1),i!==null?{prefix:i,value:l.slice(i.length)}:null}).filter(l=>!!l&&!!l.value)},Kae=()=>m(m({},VE),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:V.any,defaultValue:String,id:String,status:String}),Mh=oe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:Kae(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;var i,a;const{prefixCls:s,renderEmpty:c,direction:u}=Te("mentions",e),[d,f]=jae(s),g=te(!1),v=te(null),h=te((a=(i=e.value)!==null&&i!==void 0?i:e.defaultValue)!==null&&a!==void 0?a:""),b=Qt(),y=un.useInject(),S=P(()=>Ko(y.status,e.status));Kb({prefixCls:P(()=>`${s.value}-menu`),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:A=>{It()}}),be(()=>e.value,A=>{h.value=A});const $=A=>{g.value=!0,o("focus",A)},x=A=>{g.value=!1,o("blur",A),b.onFieldBlur()},C=function(){for(var A=arguments.length,R=new Array(A),z=0;z{e.value===void 0&&(h.value=A),o("update:value",A),o("change",A),b.onFieldChange()},w=()=>{const A=e.notFoundContent;return A!==void 0?A:n.notFoundContent?n.notFoundContent():c("Select")},I=()=>{var A;return yt(((A=n.default)===null||A===void 0?void 0:A.call(n))||[]).map(R=>{var z,M;return m(m({},WO(R)),{label:(M=(z=R.children)===null||z===void 0?void 0:z.default)===null||M===void 0?void 0:M.call(z)})})};l({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const E=P(()=>e.loading?Wae:e.filterOption);return()=>{const{disabled:A,getPopupContainer:R,rows:z=1,id:M=b.id.value}=e,B=C2(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:N,feedbackIcon:F}=y,{class:L}=r,k=C2(r,["class"]),j=et(B,["defaultValue","onUpdate:value","prefixCls"]),H=ie({[`${s.value}-disabled`]:A,[`${s.value}-focused`]:g.value,[`${s.value}-rtl`]:u.value==="rtl"},Tn(s.value,S.value),!N&&L,f.value),Y=m(m(m(m({prefixCls:s.value},j),{disabled:A,direction:u.value,filterOption:E.value,getPopupContainer:R,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:p(ir,{size:"small"},null)}]:e.options||I(),class:H}),k),{rows:z,onChange:O,onSelect:C,onFocus:$,onBlur:x,ref:v,value:h.value,id:M}),Z=p(kae,D(D({},Y),{},{dropdownClassName:f.value}),{notFoundContent:w,option:n.option});return d(N?p("div",{class:ie(`${s.value}-affix-wrapper`,Tn(`${s.value}-affix-wrapper`,S.value,N),L,f.value)},[Z,p("span",{class:`${s.value}-suffix`},[F])]):Z)}}}),cd=oe(m(m({compatConfig:{MODE:3}},UE),{name:"AMentionsOption",props:XE})),Gae=m(Mh,{Option:cd,getMentions:Vae,install:e=>(e.component(Mh.name,Mh),e.component(cd.name,cd),e)});var Xae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{mm={x:e.pageX,y:e.pageY},setTimeout(()=>mm=null,100)};h8()&&Mt(document.documentElement,"click",Uae,!0);const Yae=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:V.any,closable:{type:Boolean,default:void 0},closeIcon:V.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:V.any,okText:V.any,okType:String,cancelText:V.any,icon:V.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Re(),cancelButtonProps:Re(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Re(),maskStyle:Re(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Re()}),an=oe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:qe(Yae(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[l]=Io("Modal"),{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c}=Te("modal",e),[u,d]=Gle(i);It(e.visible===void 0);const f=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},v=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return p(We,null,[p(zt,D({onClick:f},e.cancelButtonProps),{default:()=>[$||l.value.cancelText]}),p(zt,D(D({},ef(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||l.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:I=!0}=e,T=Xae(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),_=ie(x,{[`${i.value}-centered`]:!!C,[`${i.value}-wrap-rtl`]:s.value==="rtl"});return u(p(TE,D(D(D({},T),r),{},{rootClassName:d.value,class:ie(d.value,r.class),getContainer:O||(c==null?void 0:c.value),prefixCls:i.value,wrapClassName:_,visible:$??S,onClose:f,focusTriggerAfterClose:I,transitionName:_n(a.value,"zoom",e.transitionName),maskTransitionName:_n(a.value,"fade",e.maskTransitionName),mousePosition:(b=T.mousePosition)!==null&&b!==void 0?b:mm}),m(m({},o),{footer:o.footer||v,closeIcon:()=>p("span",{class:`${i.value}-close-x`},[w||p(Zn,{class:`${i.value}-close-icon`},null)])})))}}}),qae=()=>{const e=te(!1);return Ze(()=>{e.value=!0}),e},YE=qae,Zae={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Re(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function x2(e){return!!(e&&e.then)}const bm=oe({compatConfig:{MODE:3},name:"ActionButton",props:Zae,setup(e,t){let{slots:n}=t;const o=te(!1),r=te(),l=te(!1);let i;const a=YE();je(()=>{e.autofocus&&(i=setTimeout(()=>{var d,f;return(f=(d=Hn(r.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Ze(()=>{clearTimeout(i)});const s=function(){for(var d,f=arguments.length,g=new Array(f),v=0;v{x2(d)&&(l.value=!0,d.then(function(){a.value||(l.value=!1),s(...arguments),o.value=!1},f=>(a.value||(l.value=!1),o.value=!1,Promise.reject(f))))},u=d=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){s();return}let g;if(e.emitEvent){if(g=f(d),e.quitOnNullishReturnValue&&!x2(g)){o.value=!1,s(d);return}}else if(f.length)g=f(e.close),o.value=!1;else if(g=f(),!g){s();return}c(g)};return()=>{const{type:d,prefixCls:f,buttonProps:g}=e;return p(zt,D(D(D({},ef(d)),{},{onClick:u,loading:l.value,prefixCls:f},g),{},{ref:r}),n)}}});function Li(e){return typeof e=="function"?e():e}const qE=oe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Io("Modal");return()=>{const{icon:r,onCancel:l,onOk:i,close:a,okText:s,closable:c=!1,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:I,content:T,direction:_,closeIcon:E,modalRender:A,focusTriggerAfterClose:R,rootPrefixCls:z,bodyStyle:M,wrapClassName:B,footer:N}=e;let F=r;if(!r&&r!==null)switch(O){case"info":F=p(Wa,null,null);break;case"success":F=p(zr,null,null);break;case"error":F=p(Qn,null,null);break;default:F=p(Hr,null,null)}const L=e.okType||"primary",k=e.prefixCls||"ant-modal",j=`${k}-confirm`,H=n.style||{},Y=S??O==="confirm",Z=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${k}-confirm`,ee=ie(U,`${U}-${e.type}`,{[`${U}-rtl`]:_==="rtl"},n.class),G=o.value,J=Y&&p(bm,{actionFn:l,close:a,autofocus:Z==="cancel",buttonProps:y,prefixCls:`${z}-btn`},{default:()=>[Li(e.cancelText)||G.cancelText]});return p(an,{prefixCls:k,class:ee,wrapClassName:ie({[`${U}-centered`]:!!g},B),onCancel:Q=>a==null?void 0:a({triggerCancel:!0},Q),open:w,title:"",footer:"",transitionName:_n(z,"zoom",e.transitionName),maskTransitionName:_n(z,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:H,bodyStyle:M,width:$,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,closable:c,closeIcon:E,modalRender:A,focusTriggerAfterClose:R},{default:()=>[p("div",{class:`${j}-body-wrapper`},[p("div",{class:`${j}-body`},[Li(F),I===void 0?null:p("span",{class:`${j}-title`},[Li(I)]),p("div",{class:`${j}-content`},[Li(T)])]),N!==void 0?Li(N):p("div",{class:`${j}-btns`},[J,p(bm,{type:L,actionFn:i,close:a,autofocus:Z==="ok",buttonProps:b,prefixCls:`${z}-btn`},{default:()=>[Li(s)||(Y?G.okText:G.justOkText)]})])])]})}}}),Qae=[],Ql=Qae,Jae=e=>{const t=document.createDocumentFragment();let n=m(m({},et(e,["parentContext","appContext"])),{close:l,open:!0}),o=null;function r(){o&&(bl(null,t),o=null);for(var c=arguments.length,u=new Array(c),d=0;dg&&g.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...u.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,u)}}),n.visible&&delete n.visible,i(n)}function i(c){typeof c=="function"?n=c(n):n=m(m({},n),c),o&&KN(o,n,t)}const a=c=>{const u=vn,d=u.prefixCls,f=c.prefixCls||`${d}-modal`,g=u.iconPrefixCls,v=sne();return p(zy,D(D({},u),{},{prefixCls:d}),{default:()=>[p(qE,D(D({},c),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:g,locale:v,cancelText:c.cancelText||v.cancelText}),null)]})};function s(c){const u=p(a,m({},c));return u.appContext=e.parentContext||e.appContext||u.appContext,bl(u,t),u}return o=s(n),Ql.push(l),{destroy:l,update:i}},Hc=Jae;function ZE(e){return m(m({},e),{type:"warning"})}function QE(e){return m(m({},e),{type:"info"})}function JE(e){return m(m({},e),{type:"success"})}function e5(e){return m(m({},e),{type:"error"})}function t5(e){return m(m({},e),{type:"confirm"})}const ese=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),tse=oe({name:"HookModal",inheritAttrs:!1,props:qe(ese(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),l=P(()=>e.config),{direction:i,getPrefixCls:a}=Xf(),s=a("modal"),c=a(),u=()=>{var v,h;e==null||e.afterClose(),(h=(v=l.value).afterClose)===null||h===void 0||h.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(o=l.value.okCancel)!==null&&o!==void 0?o:l.value.type==="confirm",[g]=Io("Modal",jn.Modal);return()=>p(qE,D(D({prefixCls:s,rootPrefixCls:c},l.value),{},{close:d,open:r.value,afterClose:u,okText:l.value.okText||(f?g==null?void 0:g.value.okText:g==null?void 0:g.value.justOkText),direction:l.value.direction||i.value,cancelText:l.value.cancelText||(g==null?void 0:g.value.cancelText)}),null)}});let w2=0;const nse=oe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=te([]);return n({addModal:l=>(o.value.push(l),o.value=o.value.slice(),()=>{o.value=o.value.filter(i=>i!==l)})}),()=>o.value.map(l=>l())}});function n5(){const e=te(null),t=te([]);be(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=l=>function(a){var s;w2+=1;const c=te(!0),u=te(null),d=te($t(a)),f=te({});be(()=>a,$=>{b(m(m({},kt($)?$.value:$),f.value))});const g=function(){c.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let v;const h=()=>p(tse,{key:`modal-${w2}`,config:l(d.value),ref:u,open:c.value,destroyAction:g,afterClose:()=>{v==null||v()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(h),v&&Ql.push(v);const b=$=>{d.value=m(m({},d.value),$)};return{destroy:()=>{u.value?g():t.value=[...t.value,g]},update:$=>{f.value=$,u.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(QE),success:n(JE),error:n(e5),warning:n(ZE),confirm:n(t5)})),r=Symbol("modalHolderKey");return[o.value,()=>p(nse,{key:r,ref:e},null)]}function o5(e){return Hc(ZE(e))}an.useModal=n5;an.info=function(t){return Hc(QE(t))};an.success=function(t){return Hc(JE(t))};an.error=function(t){return Hc(e5(t))};an.warning=o5;an.warn=o5;an.confirm=function(t){return Hc(t5(t))};an.destroyAll=function(){for(;Ql.length;){const t=Ql.pop();t&&t()}};an.install=function(e){return e.component(an.name,an),e};const r5=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:l="",prefixCls:i}=e;let a;if(typeof n=="function")a=n({value:t});else{const s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c)a=s;else{const u=c[1];let d=c[2]||"0",f=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof o=="number"&&(f=f.padEnd(o,"0").slice(0,o>0?o:0)),f&&(f=`${r}${f}`),a=[p("span",{key:"int",class:`${i}-content-value-int`},[u,d]),f&&p("span",{key:"decimal",class:`${i}-content-value-decimal`},[f])]}}return p("span",{class:`${i}-content-value`},[a])};r5.displayName="StatisticNumber";const ose=r5,rse=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:l,colorTextHeading:i,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:m(m({},Xe(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:i,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},lse=Ve("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=Fe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[rse(r)]}),l5=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Le([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:ve(),formatter:St(),precision:Number,prefix:In(),suffix:In(),title:In(),loading:Ce()}),wr=oe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:qe(l5(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("statistic",e),[i,a]=lse(r);return()=>{var s,c,u,d,f,g,v;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(c=n.title)===null||c===void 0?void 0:c.call(n),x=(u=e.prefix)!==null&&u!==void 0?u:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(f=e.suffix)!==null&&f!==void 0?f:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let w=p(ose,D({"data-for-update":Date.now()},m(m({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),i(p("div",D(D({},o),{},{class:[S,{[`${S}-rtl`]:l.value==="rtl"},o.class,a.value]}),[$&&p("div",{class:`${S}-title`},[$]),p(On,{paragraph:!1,loading:e.loading},{default:()=>[p("div",{style:b,class:`${S}-content`},[x&&p("span",{class:`${S}-content-prefix`},[x]),w,C&&p("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),ise=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ase(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),l=t.replace(o,"[]"),i=ise.reduce((s,c)=>{let[u,d]=c;if(s.includes(u)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${u}+`,"g"),g=>{const v=g.length;return f.toString().padStart(v,"0")})}return s},l);let a=0;return i.replace(o,()=>{const s=r[a];return a+=1,s})}function sse(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),l=Math.max(o-r,0);return ase(l,n)}const cse=1e3/30;function _h(e){return new Date(e).getTime()}const use=()=>m(m({},l5()),{value:Le([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),dse=oe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:qe(use(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=le(),l=le(),i=()=>{const{value:d}=e;_h(d)>=Date.now()?a():s()},a=()=>{if(r.value)return;const d=_h(e.value);r.value=setInterval(()=>{l.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),i()},cse)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,_h(d){let{value:f,config:g}=d;const{format:v}=e;return sse(f,m(m({},g),{format:v}))},u=d=>d;return je(()=>{i()}),An(()=>{i()}),Ze(()=>{s()}),()=>{const d=e.value;return p(wr,D({ref:l},m(m({},et(e,["onFinish","onChange"])),{value:d,valueRender:u,formatter:c})),o)}}});wr.Countdown=dse;wr.install=function(e){return e.component(wr.name,wr),e.component(wr.Countdown.name,wr.Countdown),e};const fse=wr.Countdown;var pse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const gse=pse;function O2(e){for(var t=1;t{const{keyCode:g}=f;g===Oe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:g}=f;g===Oe.ENTER&&o("click",f)},c=f=>{o("click",f)},u=()=>{i.value&&i.value.focus()},d=()=>{i.value&&i.value.blur()};return je(()=>{e.autofocus&&u()}),l({focus:u,blur:d}),()=>{var f;const{noStyle:g,disabled:v}=e,h=$se(e,["noStyle","disabled"]);let b={};return g||(b=m({},Cse)),v&&(b.pointerEvents="none"),p("div",D(D(D({role:"button",tabindex:0,ref:i},h),r),{},{onClick:c,onKeydown:a,onKeyup:s,style:m(m({},b),r.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Cf=xse,wse={small:8,middle:16,large:24},Ose=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),wrap:Ce()});function Pse(e){return typeof e=="string"?wse[e]:e||0}const Hs=oe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:Ose(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:l,direction:i}=Te("space",e),[a,s]=XI(r),c=m8(),u=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=l==null?void 0:l.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=le(),f=le();be(u,()=>{[d.value,f.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(y=>Pse(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=P(()=>ie(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>i.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return c.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${f.value}px`),m(m({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=_t(C),w=O.length;if(w===0)return null;const I=(S=n.split)===null||S===void 0?void 0:S.call(n),T=`${r.value}-item`,_=d.value,E=w-1;return p("div",D(D({},o),{},{class:[v.value,o.class],style:[b.value,o.style]}),[O.map((A,R)=>{let z=C.indexOf(A);z===-1&&(z=`$$space-${R}`);let M={};return c.value||(x==="vertical"?R{const{componentCls:t,antCls:n}=e;return{[t]:m(m({},Xe(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":m(m({},Jf(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":m({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Gt),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":m({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Gt),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Tse=Ve("PageHeader",e=>{const t=Fe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Ise(t)]}),Ese=()=>({backIcon:In(),prefixCls:String,title:In(),subTitle:In(),breadcrumb:V.object,tags:In(),footer:In(),extra:In(),avatar:Re(),ghost:{type:Boolean,default:void 0},onBack:Function}),Mse=oe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ese(),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,pageHeader:a}=Te("page-header",e),[s,c]=Tse(l),u=te(!1),d=YE(),f=x=>{let{width:C}=x;d.value||(u.value=C<768)},g=P(()=>{var x,C,O;return(O=(x=e.ghost)!==null&&x!==void 0?x:(C=a==null?void 0:a.value)===null||C===void 0?void 0:C.ghost)!==null&&O!==void 0?O:!0}),v=()=>{var x,C,O;return(O=(x=e.backIcon)!==null&&x!==void 0?x:(C=o.backIcon)===null||C===void 0?void 0:C.call(o))!==null&&O!==void 0?O:i.value==="rtl"?p(Sse,null,null):p(vse,null,null)},h=x=>!x||!e.onBack?null:p(bi,{componentName:"PageHeader",children:C=>{let{back:O}=C;return p("div",{class:`${l.value}-back`},[p(Cf,{onClick:w=>{n("back",w)},class:`${l.value}-back-button`,"aria-label":O},{default:()=>[x]})])}},null),b=()=>{var x;return e.breadcrumb?p(oi,e.breadcrumb,null):(x=o.breadcrumb)===null||x===void 0?void 0:x.call(o)},y=()=>{var x,C,O,w,I,T,_,E,A;const{avatar:R}=e,z=(x=e.title)!==null&&x!==void 0?x:(C=o.title)===null||C===void 0?void 0:C.call(o),M=(O=e.subTitle)!==null&&O!==void 0?O:(w=o.subTitle)===null||w===void 0?void 0:w.call(o),B=(I=e.tags)!==null&&I!==void 0?I:(T=o.tags)===null||T===void 0?void 0:T.call(o),N=(_=e.extra)!==null&&_!==void 0?_:(E=o.extra)===null||E===void 0?void 0:E.call(o),F=`${l.value}-heading`,L=z||M||B||N;if(!L)return null;const k=v(),j=h(k);return p("div",{class:F},[(j||R||L)&&p("div",{class:`${F}-left`},[j,R?p(ni,R,null):(A=o.avatar)===null||A===void 0?void 0:A.call(o),z&&p("span",{class:`${F}-title`,title:typeof z=="string"?z:void 0},[z]),M&&p("span",{class:`${F}-sub-title`,title:typeof M=="string"?M:void 0},[M]),B&&p("span",{class:`${F}-tags`},[B])]),N&&p("span",{class:`${F}-extra`},[p(i5,null,{default:()=>[N]})])])},S=()=>{var x,C;const O=(x=e.footer)!==null&&x!==void 0?x:_t((C=o.footer)===null||C===void 0?void 0:C.call(o));return rD(O)?null:p("div",{class:`${l.value}-footer`},[O])},$=x=>p("div",{class:`${l.value}-content`},[x]);return()=>{var x,C;const O=((x=e.breadcrumb)===null||x===void 0?void 0:x.routes)||o.breadcrumb,w=e.footer||o.footer,I=yt((C=o.default)===null||C===void 0?void 0:C.call(o)),T=ie(l.value,{"has-breadcrumb":O,"has-footer":w,[`${l.value}-ghost`]:g.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-compact`]:u.value},r.class,c.value);return s(p(xo,{onResize:f},{default:()=>[p("div",D(D({},r),{},{class:T}),[b(),y(),I.length?$(I):null,S()])]}))}}}),_se=Tt(Mse),Ase=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:l,marginXS:i,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:i,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+i,marginBottom:i,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},Rse=Ve("Popconfirm",e=>Ase(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var Dse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Db()),{prefixCls:String,content:St(),title:St(),description:St(),okType:Be("primary"),disabled:{type:Boolean,default:!1},okText:St(),cancelText:St(),icon:St(),okButtonProps:Re(),cancelButtonProps:Re(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Nse=oe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:qe(Bse(),m(m({},OT()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=le();It(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=i.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[a,s]=Pt(!1,{value:ze(e,"open")}),c=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},u=O=>{c(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},f=O=>{var w;c(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===Oe.ESC&&a&&c(!1,O)},v=O=>{const{disabled:w}=e;w||c(O)},{prefixCls:h,getPrefixCls:b}=Te("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=Rse(h),[x]=Io("Popconfirm",jn.Popconfirm),C=()=>{var O,w,I,T,_;const{okButtonProps:E,cancelButtonProps:A,title:R=(O=n.title)===null||O===void 0?void 0:O.call(n),description:z=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:M=(I=n.cancel)===null||I===void 0?void 0:I.call(n),okText:B=(T=n.okText)===null||T===void 0?void 0:T.call(n),okType:N,icon:F=((_=n.icon)===null||_===void 0?void 0:_.call(n))||p(Hr,null,null),showCancel:L=!0}=e,{cancelButton:k,okButton:j}=n,H=m({onClick:f,size:"small"},A),Y=m(m(m({onClick:d},ef(N)),{size:"small"}),E);return p("div",{class:`${h.value}-inner-content`},[p("div",{class:`${h.value}-message`},[F&&p("span",{class:`${h.value}-message-icon`},[F]),p("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!z}]},[R])]),z&&p("div",{class:`${h.value}-description`},[z]),p("div",{class:`${h.value}-buttons`},[L?k?k(H):p(zt,H,{default:()=>[M||x.value.cancelText]}):null,j?j(Y):p(bm,{buttonProps:m(m({size:"small"},ef(N)),E),actionFn:d,close:u,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[B||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:I,trigger:T="click"}=e,_=Dse(e,["placement","overlayClassName","trigger"]),E=et(_,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),A=ie(h.value,I);return $(p(Lb,D(D(D({},E),l),{},{trigger:T,placement:w,onOpenChange:v,open:a.value,overlayClassName:A,transitionName:_n(y.value,"zoom-big",e.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[VN(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:R=>{g(R)}},!1)],content:C}))}}}),Fse=Tt(Nse),Lse=["normal","exception","active","success"],Yp=()=>({prefixCls:String,type:Be(),percent:Number,format:ve(),status:Be(),showInfo:Ce(),strokeWidth:Number,strokeLinecap:Be(),strokeColor:St(),trailColor:String,width:Number,success:Re(),gapDegree:Number,gapPosition:Be(),size:Le([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Be()});function li(e){return!e||e<0?0:e>100?100:e}function xf(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(xt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function kse(e){let{percent:t,success:n,successPercent:o}=e;const r=li(xf({success:n,successPercent:o}));return[r,li(li(t)-r)]}function zse(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||la.green,n||null]}const qp=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,s=u??8):typeof e=="number"?[a,s]=[e,e]:[a=14,s=8]=e,a*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[a,s]=[e,e]:[a=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,s]=[e,e]:(a=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(i=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&i!==void 0?i:120));return{width:a,height:s}};var Hse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Yp()),{strokeColor:St(),direction:Be()}),Wse=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},Vse=(e,t)=>{const{from:n=la.blue,to:o=la.blue,direction:r=t==="rtl"?"to left":"to right"}=e,l=Hse(e,["from","to","direction"]);if(Object.keys(l).length!==0){const i=Wse(l);return{backgroundImage:`linear-gradient(${r}, ${i})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},Kse=oe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:jse(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Vse(g,v):{backgroundColor:g}}),l=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),a=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>qp(a.value,"line",{strokeWidth:e.strokeWidth})),c=P(()=>{const{percent:g}=e;return m({width:`${li(g)}%`,height:`${s.value.height}px`,borderRadius:l.value},r.value)}),u=P(()=>xf(e)),d=P(()=>{const{success:g}=e;return{width:`${li(u.value)}%`,height:`${s.value.height}px`,borderRadius:l.value,backgroundColor:g==null?void 0:g.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return p(We,null,[p("div",D(D({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,f]}),[p("div",{class:`${e.prefixCls}-inner`,style:i.value},[p("div",{class:`${e.prefixCls}-bg`,style:c.value},null),u.value!==void 0?p("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),Gse={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Xse=e=>{const t=le(null);return An(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const l=(r==null?void 0:r.$el)||r;if(!l)return;o=!0;const i=l.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Use={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Yse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;const i=50-o/2;let a=0,s=-i,c=0,u=-2*i;switch(l){case"left":a=-i,s=0,c=2*i,u=0;break;case"right":a=i,s=0,c=-2*i,u=0;break;case"bottom":s=i,u=2*i;break}const d=`M 50,50 m ${a},${s} - a ${i},${i} 0 1 1 ${c},${-u} - a ${i},${i} 0 1 1 ${-c},${u}`,f=Math.PI*2*i,g={stroke:n,strokeDasharray:`${t/100*(f-r)}px ${f}px`,strokeDashoffset:`-${r/2+e/100*(f-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const qse=oe({compatConfig:{MODE:3},name:"VCCircle",props:qe(Use,Gse),setup(e){I2+=1;const t=le(I2),n=P(()=>E2(e.percent)),o=P(()=>E2(e.strokeColor)),[r,l]=Sy();Xse(l);const i=()=>{const{prefixCls:a,strokeWidth:s,strokeLinecap:c,gapDegree:u,gapPosition:d}=e;let f=0;return n.value.map((g,v)=>{const h=o.value[v]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${a}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=M2(f,g,h,s,u,d);f+=g;const $={key:v,d:y,stroke:b,"stroke-linecap":c,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${a}-circle-path`,style:S};return p("path",D({ref:r(v)},$),null)})};return()=>{const{prefixCls:a,strokeWidth:s,trailWidth:c,gapDegree:u,gapPosition:d,trailColor:f,strokeLinecap:g,strokeColor:v}=e,h=Yse(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=M2(0,100,f,s,u,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:f,"stroke-linecap":g,"stroke-width":c||s,"fill-opacity":"0",class:`${a}-circle-trail`,style:y};return p("svg",D({class:`${a}-circle`,viewBox:"0 0 100 100"},h),[S&&p("defs",null,[p("linearGradient",{id:`${a}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>T2(x)-T2(C)).map((x,C)=>p("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),p("path",$,null),i().reverse()])}}}),Zse=()=>m(m({},Yp()),{strokeColor:St()}),Qse=3,Jse=e=>Qse/e*100,ece=oe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:qe(Zse(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),l=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),i=P(()=>qp(l.value,"circle")),a=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),c=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(Jse(i.value.width),6)}),u=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>kse(e)),f=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>zse({success:e.success,strokeColor:e.strokeColor})),v=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var h;const b=p(qse,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return p("div",D(D({},o),{},{class:[v.value,o.class],style:[o.style,s.value]}),[i.value.width<=20?p(Yn,null,{default:()=>[p("span",null,[b])],title:n.default}):p(We,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),tce=()=>m(m({},Yp()),{steps:Number,strokeColor:Le(),trailColor:String}),nce=oe({compatConfig:{MODE:3},name:"Steps",props:tce(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[e.size==="small"?2:14,e.strokeWidth||8]}),l=P(()=>qp(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=P(()=>{const{steps:a,strokeColor:s,trailColor:c,prefixCls:u}=e,d=[];for(let f=0;f{var a;return p("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),oce=new nt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),rce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:oce,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},lce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ice=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},ace=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},sce=Ve("Progress",e=>{const t=e.marginXXS/2,n=Fe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[rce(n),lce(n),ice(n),ace(n)]});var cce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),c=P(()=>{const{percent:v=0}=e,h=xf(e);return parseInt(h!==void 0?h.toString():v.toString(),10)}),u=P(()=>{const{status:v}=e;return!Lse.includes(v)&&c.value>=100?"success":v||"normal"}),d=P(()=>{const{type:v,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:v==="circle"&&qp(b,"circle").width<=20,[`${y}-${v==="dashboard"&&"circle"||v}`]:!0,[`${y}-status-${u.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:l.value==="rtl",[a.value]:!0}}),f=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:h,type:b,percent:y,title:S}=e,$=xf(e);if(!v)return null;let x;const C=h||(n==null?void 0:n.format)||(w=>`${w}%`),O=b==="line";return h||n!=null&&n.format||u.value!=="exception"&&u.value!=="success"?x=C(li(y),li($)):u.value==="exception"?x=p(O?Qn:Zn,null,null):u.value==="success"&&(x=p(O?zr:vp,null,null)),p("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:v,steps:h,title:b}=e,{class:y}=o,S=cce(o,["class"]),$=g();let x;return v==="line"?x=h?p(nce,D(D({},e),{},{strokeColor:f.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):p(Kse,D(D({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:l.value}),{default:()=>[$]}):(v==="circle"||v==="dashboard")&&(x=p(ece,D(D({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[$]})),i(p("div",D(D({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),b1=Tt(uce);function dce(e){let t=e.scrollX;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function fce(e){let t,n;const o=e.ownerDocument,{body:r}=o,l=o&&o.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=l.clientLeft||r.clientLeft||0,n-=l.clientTop||r.clientTop||0,{left:t,top:n}}function pce(e){const t=fce(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=dce(o),t.left}var gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const hce=gce;function _2(e){for(var t=1;t{const{index:s}=e;n("hover",a,s)},r=a=>{const{index:s}=e;n("click",a,s)},l=a=>{const{index:s}=e;a.keyCode===13&&n("click",a,s)},i=P(()=>{const{prefixCls:a,index:s,value:c,allowHalf:u,focused:d}=e,f=s+1;let g=a;return c===0&&s===0&&d?g+=` ${a}-focused`:u&&c+.5>=f&&c{const{disabled:a,prefixCls:s,characterRender:c,character:u,index:d,count:f,value:g}=e,v=typeof u=="function"?u({disabled:a,prefixCls:s,index:d,count:f,value:g}):u;let h=p("li",{class:i.value},[p("div",{onClick:a?null:r,onKeydown:a?null:l,onMousemove:a?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:a?-1:0},[p("div",{class:`${s}-first`},[v]),p("div",{class:`${s}-second`},[v])])]);return c&&(h=c(h,e)),h}}}),Sce=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},$ce=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Cce=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Sce(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),$ce(e))}},xce=Ve("Rate",e=>{const{colorFillContent:t}=e,n=Fe(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Cce(n)]}),wce=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:V.any,autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),Oce=oe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:qe(wce(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("rate",e),[s,c]=xce(i),u=Qt(),d=le(),[f,g]=Sy(),v=ut({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});be(()=>e.value,()=>{v.value=e.value});const h=E=>Hn(g.value.get(E)),b=(E,A)=>{const R=a.value==="rtl";let z=E+1;if(e.allowHalf){const M=h(E),B=pce(M),N=M.clientWidth;(R&&A-B>N/2||!R&&A-B{e.value===void 0&&(v.value=E),r("update:value",E),r("change",E),u.onFieldChange()},S=(E,A)=>{const R=b(A,E.pageX);R!==v.cleanedValue&&(v.hoverValue=R,v.cleanedValue=null),r("hoverChange",R)},$=()=>{v.hoverValue=void 0,v.cleanedValue=null,r("hoverChange",void 0)},x=(E,A)=>{const{allowClear:R}=e,z=b(A,E.pageX);let M=!1;R&&(M=z===v.value),$(),y(M?0:z),v.cleanedValue=M?z:null},C=E=>{v.focused=!0,r("focus",E)},O=E=>{v.focused=!1,r("blur",E),u.onFieldBlur()},w=E=>{const{keyCode:A}=E,{count:R,allowHalf:z}=e,M=a.value==="rtl";A===Oe.RIGHT&&v.value0&&!M||A===Oe.RIGHT&&v.value>0&&M?(z?v.value-=.5:v.value-=1,y(v.value),E.preventDefault()):A===Oe.LEFT&&v.value{e.disabled||d.value.focus()};l({focus:I,blur:()=>{e.disabled||d.value.blur()}}),je(()=>{const{autofocus:E,disabled:A}=e;E&&!A&&I()});const _=(E,A)=>{let{index:R}=A;const{tooltips:z}=e;return z?p(Yn,{title:z[R]},{default:()=>[E]}):E};return()=>{const{count:E,allowHalf:A,disabled:R,tabindex:z,id:M=u.id.value}=e,{class:B,style:N}=o,F=[],L=R?`${i.value}-disabled`:"",k=e.character||n.character||(()=>p(mce,null,null));for(let H=0;Hp("svg",{width:"252",height:"294"},[p("defs",null,[p("path",{d:"M0 .387h251.772v251.772H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .012)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),p("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),p("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),p("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),p("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),p("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),p("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),p("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),p("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),p("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),p("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),p("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),p("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),p("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),p("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),p("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),p("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),p("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),p("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),p("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),p("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),p("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),p("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),p("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),p("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),p("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),p("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),p("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),p("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),p("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),p("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),p("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),p("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),p("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),p("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),p("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),p("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Ace=_ce,Rce=()=>p("svg",{width:"254",height:"294"},[p("defs",null,[p("path",{d:"M0 .335h253.49v253.49H0z"},null),p("path",{d:"M0 293.665h253.49V.401H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .067)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),p("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),p("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),p("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),p("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),p("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),p("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),p("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),p("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),p("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),p("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),p("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),p("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),p("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),p("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),p("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),p("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),p("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),p("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),p("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),p("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),p("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),p("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),p("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),p("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),p("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),p("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),p("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),p("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),p("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),p("mask",{fill:"#fff"},null),p("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),p("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),p("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),p("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Dce=Rce,Bce=()=>p("svg",{width:"251",height:"294"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),p("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),p("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),p("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),p("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),p("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),p("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),p("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),p("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),p("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),p("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),p("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),p("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),p("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),p("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),p("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),p("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),p("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),p("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),p("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),p("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),p("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),p("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),p("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),p("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),p("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),p("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),p("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),p("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),p("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),p("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),p("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),p("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),p("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),p("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),p("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Nce=Bce,Fce=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:l,paddingXS:i,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${a*2}px ${l}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Lce=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},kce=e=>[Fce(e),Lce(e)],zce=e=>kce(e),Hce=Ve("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,l=e.colorInfo,i=e.colorError,a=e.colorSuccess,s=e.colorWarning,c=Fe(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:l,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:s});return[zce(c)]},{imageWidth:250,imageHeight:295}),jce={success:zr,error:Qn,info:Hr,warning:Mce},jc={404:Ace,500:Dce,403:Nce},Wce=Object.keys(jc),Vce=()=>({prefixCls:String,icon:V.any,status:{type:[Number,String],default:"info"},title:V.any,subTitle:V.any,extra:V.any}),Kce=(e,t)=>{let{status:n,icon:o}=t;if(Wce.includes(`${n}`)){const i=jc[n];return p("div",{class:`${e}-icon ${e}-image`},[p(i,null,null)])}const r=jce[n],l=o||p(r,null,null);return p("div",{class:`${e}-icon`},[l])},Gce=(e,t)=>t&&p("div",{class:`${e}-extra`},[t]),ii=oe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:Vce(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("result",e),[i,a]=Hce(r),s=P(()=>ie(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:l.value==="rtl"}));return()=>{var c,u,d,f,g,v,h,b;const y=(c=e.title)!==null&&c!==void 0?c:(u=n.title)===null||u===void 0?void 0:u.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(v=n.icon)===null||v===void 0?void 0:v.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return i(p("div",D(D({},o),{},{class:[s.value,o.class]}),[Kce(C,{status:e.status,icon:$}),p("div",{class:`${C}-title`},[y]),S&&p("div",{class:`${C}-subtitle`},[S]),Gce(C,x),n.default&&p("div",{class:`${C}-content`},[n.default()])]))}}});ii.PRESENTED_IMAGE_403=jc[403];ii.PRESENTED_IMAGE_404=jc[404];ii.PRESENTED_IMAGE_500=jc[500];ii.install=function(e){return e.component(ii.name,ii),e};const Xce=ii,Uce=Tt(Ry),a5=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:l,class:i}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=m(m({},l),u);return o?p("div",{class:i,style:d},null):null};a5.inheritAttrs=!1;const s5=a5,Yce=(e,t,n,o,r,l)=>{It();const i=Object.keys(t).map(parseFloat).sort((a,s)=>a-s);if(n&&o)for(let a=r;a<=l;a+=o)i.indexOf(a)===-1&&i.push(a);return i},c5=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:l,marks:i,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:f,min:g,dotStyle:v,activeDotStyle:h}=n,b=f-g,y=Yce(r,i,a,s,g,f).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!c&&S===d||c&&S<=d&&S>=u;let C=r?m(m({},v),{[l?"top":"bottom"]:$}):m(m({},v),{[l?"right":"left"]:$});x&&(C=m(m({},C),h));const O=ie({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:l});return p("span",{class:O,style:C,key:S},null)});return p("div",{class:`${o}-step`},[y])};c5.inheritAttrs=!1;const qce=c5,u5=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:l,reverse:i,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:f,onClickLabel:g}=n,v=Object.keys(a),h=o.mark,b=d-f,y=v.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof a[S]=="function"?a[S]():a[S],x=typeof $=="object"&&!Kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===c||s&&S<=c&&S>=u,w=ie({[`${r}-text`]:!0,[`${r}-text-active`]:O}),I={marginBottom:"-50%",[i?"top":"bottom"]:`${(S-f)/b*100}%`},T={transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:`${(S-f)/b*100}%`},_=l?I:T,E=x?m(m({},_),$.style):_,A={[nn?"onTouchstartPassive":"onTouchstart"]:R=>g(R,S)};return p("span",D({class:w,style:E,key:S,onMousedown:R=>g(R,S)},A),[C])});return p("div",{class:r},[y])};u5.inheritAttrs=!1;const Zce=u5,d5=oe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=te(!1),i=te(),a=()=>{document.activeElement===i.value&&(l.value=!0)},s=b=>{l.value=!1,o("blur",b)},c=()=>{l.value=!1},u=()=>{var b;(b=i.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=i.value)===null||b===void 0||b.blur()},f=()=>{l.value=!0,u()},g=b=>{b.preventDefault(),u(),o("mousedown",b)};r({focus:u,blur:d,clickFocus:f,ref:i});let v=null;je(()=>{v=Mt(document,"mouseup",a)}),Ze(()=>{v==null||v.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:I,onMouseenter:T,onMouseleave:_}=e,E=ie(n.class,{[`${b}-handle-click-focused`]:l.value}),A={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},R=[n.style,h.value];let z=C||0;(y||C===null)&&(z=null);let M;I&&(M=I(x));const B=m(m(m(m({},n),{role:"slider",tabindex:z}),A),{class:E,onBlur:s,onKeydown:c,onMousedown:g,onMouseenter:T,onMouseleave:_,ref:i,style:R});return p("div",D(D({},B),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":M}),null)}}});function Ah(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function f5(e,t){let{min:n,max:o}=t;return eo}function R2(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function D2(e,t){let{marks:n,step:o,min:r,max:l}=t;const i=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,p5(o)),c=Math.floor((l*s-r*s)/(o*s)),u=Math.min((e-r)/o,c),d=Math.round(u)*o+r;i.push(d)}const a=i.map(s=>Math.abs(e-s));return i[a.indexOf(Math.min(...a))]}function p5(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function B2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function N2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function F2(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function $1(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function g5(e,t){const{step:n}=t,o=isFinite(D2(e,t))?D2(e,t):0;return n===null?o:parseFloat(o.toFixed(p5(n)))}function Aa(e){e.stopPropagation(),e.preventDefault()}function Qce(e,t,n){const o={increase:(i,a)=>i+a,decrease:(i,a)=>i-a},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),l=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[l]?n.marks[l]:t}function h5(e,t,n){const o="increase",r="decrease";let l=o;switch(e.keyCode){case Oe.UP:l=t&&n?r:o;break;case Oe.RIGHT:l=!t&&n?r:o;break;case Oe.DOWN:l=t&&n?o:r;break;case Oe.LEFT:l=!t&&n?o:r;break;case Oe.END:return(i,a)=>a.max;case Oe.HOME:return(i,a)=>a.min;case Oe.PAGE_UP:return(i,a)=>i+a.step*2;case Oe.PAGE_DOWN:return(i,a)=>i-a.step*2;default:return}return(i,a)=>Qce(l,i,a)}var Jce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:l,style:i}=n,a=Jce(n,["index","directives","className","style"]);if(delete a.dragging,a.value===null)return null;const s=m(m({},a),{class:l,style:i,key:o});return p(d5,s,null)},onDown(n,o){let r=o;const{draggableTrack:l,vertical:i}=this.$props,{bounds:a}=this.$data,s=l&&this.positionGetValue?this.positionGetValue(r)||[]:[],c=Ah(n,this.handlesRefs);if(this.dragTrack=l&&a.length>=2&&!c&&!s.map((u,d)=>{const f=d?!0:u>=a[d];return d===s.length-1?u<=a[d]:f}).some(u=>!u),this.dragTrack)this.dragOffset=r,this.startBounds=[...a];else{if(!c)this.dragOffset=0;else{const u=F2(i,n.target);this.dragOffset=r-u,r=u}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=B2(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(R2(n))return;const o=this.vertical,r=N2(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Aa(n)},onFocus(n){const{vertical:o}=this;if(Ah(n,this.handlesRefs)&&!this.dragTrack){const r=F2(o,n.target);this.dragOffset=0,this.onStart(r),Aa(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=B2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(R2(n)||!this.sliderRef){this.onEnd();return}const o=N2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Ah(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,l=n.getBoundingClientRect();return o?r?l.bottom:l.top:window.scrollX+(r?l.right:l.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=Mt(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Mt(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Mt(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Mt(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:l}=this,i=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-i)*(l-r)+r:i*(l-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,l=(n-o)/(r-o);return Math.max(0,l*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:l,included:i,disabled:a,vertical:s,reverse:c,min:u,max:d,maximumTrackStyle:f,railStyle:g,dotStyle:v,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=ie(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:a,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,reverse:c,class:`${n}-mark`,onClickLabel:a?Ll:this.onClickMarkLabel},w={[nn?"onTouchstartPassive":"onTouchstart"]:a?Ll:this.onTouchStart};return p("div",D(D({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:a?Ll:this.onMouseDown,onMouseup:a?Ll:this.onMouseUp,onKeydown:a?Ll:this.onKeyDown,onFocus:a?Ll:this.onFocus,onBlur:a?Ll:this.onBlur,style:S}),[p("div",{class:`${n}-rail`,style:m(m({},f),g)},null),$,p(qce,{prefixCls:n,vertical:s,reverse:c,marks:o,dots:r,step:l,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,dotStyle:v,activeDotStyle:h},null),x,p(Zce,O,{mark:this.$slots.mark}),Gf(this)])}})}const eue=oe({compatConfig:{MODE:3},name:"Slider",mixins:[xi],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),f5(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!xr(this,"value"),n=e.sValue>this.max?m(m({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Aa(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{sValue:r}=this,l=o(r,this.$props),i=this.trimAlignValue(l);if(i===r)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=m(m({},this.$props),t),o=$1(e,n);return g5(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:l,mergedTrackStyle:i,length:a,offset:s}=e;return p(s5,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:m(m({},l),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:l,handleStyle:i,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:f,startPoint:g,reverse:v,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:f,reverse:v,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:i[0]||i,ref:I=>this.saveHandle(0,I),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=l[0]||l;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),tue=v5(eue),ls=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:l,pushable:i}=r,a=Number(i),s=$1(t,r);let c=s;return!l&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),g5(c,r)},nue={defaultValue:V.arrayOf(V.number),value:V.arrayOf(V.number),count:Number,pushable:qP(V.oneOfType([V.looseBool,V.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:V.arrayOf(V.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},oue=oe({compatConfig:{MODE:3},name:"Range",mixins:[xi],inheritAttrs:!1,props:qe(nue,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=xr(this,"defaultValue")?this.defaultValue:o;let{value:l}=this;l===void 0&&(l=r);const i=l.map((s,c)=>ls({value:s,handle:c,props:this.$props}));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>ls({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>ls({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>f5(o,this.$props))){const o=e.map(r=>$1(r,this.$props));this.$emit("change",o)}},onChange(e){if(!xr(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(l=>{e[l]!==void 0&&(r[l]=e[l])}),Object.keys(r).length&&this.setState(r)}const o=m(m({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),l=t[r];if(n===l)return null;const i=[...t];return i[r]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const l=[...t];l[this.prevMovedHandleIndex]=n,this.onChange({bounds:l})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Aa(e);const{$data:r,$props:l}=this,i=l.max||100,a=l.min||0;if(n){let f=l.vertical?-t:t;f=l.reverse?-f:f;const g=i-Math.max(...o),v=a-Math.min(...o),h=Math.min(Math.max(f/(this.getSliderLength()/100),v),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,i),a)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t),d=s[c];u!==d&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{bounds:r,sHandle:l}=this,i=r[l===null?this.recent:l],a=o(i,this.$props),s=ls({value:a,handle:l,bounds:r,props:this.$props});if(s===i)return;const c=!0;this.moveTo(s,c)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)a-s),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,l=o===null?r:o;n[l]=e;let i=l;this.$props.pushable!==!1?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort((a,s)=>a-s),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[i].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let l=0;if(e[t+1]-n=o.length||l<0)return!1;const i=t+n,a=o[l],{pushable:s}=this,c=Number(s),u=n*(e[i]-a);return this.pushHandle(e,i,n,c-u)?(e[t]=a,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return ls({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const l=this.$data||{},{bounds:i}=l;if(e=e===void 0?l.sHandle:e,r=Number(r),!o&&e!=null&&i!==void 0){if(e>0&&t<=i[e-1]+r)return i[e-1]+r;if(e=i[e+1]-r)return i[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:l,offsets:i,trackStyle:a}=e;return t.slice(0,-1).map((s,c)=>{const u=c+1,d=ie({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return p(s5,{class:d,vertical:r,reverse:o,included:l,offset:i[u-1],length:i[u]-i[u-1],style:a[c],key:u},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:l,min:i,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:f,tabindex:g,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=c||u,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(l||g[O]===null)&&(w=null);const I=e===O;return y({class:ie({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:I}),prefixCls:n,vertical:o,dragging:I,offset:S[O],value:C,index:O,tabindex:w,min:i,max:a,reverse:s,disabled:l,style:f[O],ref:T=>this.saveHandle(O,T),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),rue=v5(oue),lue=oe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:wT(),setup(e,t){let{attrs:n,slots:o}=t;const r=le(null),l=le(null);function i(){Ye.cancel(l.value),l.value=null}function a(){l.value=Ye(()=>{var c;(c=r.value)===null||c===void 0||c.forcePopupAlign(),l.value=null})}const s=()=>{i(),e.open&&a()};return be([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Bf(()=>{s()}),Ze(()=>{i()}),()=>p(Yn,D(D({ref:r},e),n),o)}}),iue=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:l,colorFillContentHover:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",height:n,margin:`${l}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${l}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${e.motionDurationMid}, - inset-block-start ${e.motionDurationMid}, - width ${e.motionDurationMid}, - height ${e.motionDurationMid}, - box-shadow ${e.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}}})}},m5=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:l}=e,i=t?"paddingBlock":"paddingInline",a=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return{[i]:o,[s]:o*3,[`${n}-rail`]:{[a]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[c]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:o,[a]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[c]:(o-l)/2}}},aue=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:m(m({},m5(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sue=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:m(m({},m5(e,!1)),{height:"100%"})}},cue=Ve("Slider",e=>{const t=Fe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[iue(t),aue(t),sue(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:l}});var L2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",due=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Le([Boolean,Object]),reverse:Ce(),min:Number,max:Number,step:Le([Object,Number]),marks:Re(),dots:Ce(),value:Le([Array,Number]),defaultValue:Le([Array,Number]),included:Ce(),disabled:Ce(),vertical:Ce(),tipFormatter:Le([Function,Object],()=>uue),tooltipOpen:Ce(),tooltipVisible:Ce(),tooltipPlacement:Be(),getTooltipPopupContainer:ve(),autofocus:Ce(),handleStyle:Le([Array,Object]),trackStyle:Le([Array,Object]),onChange:ve(),onAfterChange:ve(),onFocus:ve(),onBlur:ve(),"onUpdate:value":ve()}),fue=oe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:due(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=Te("slider",e),[d,f]=cue(i),g=Qt(),v=le(),h=le({}),b=(w,I)=>{h.value[w]=I},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=v.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=v.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};l({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:I}=w,T=w.info,{value:_,dragging:E,index:A}=T,R=L2(T,["value","dragging","index"]);const{tipFormatter:z,tooltipOpen:M=e.tooltipVisible,getTooltipPopupContainer:B}=e,N=z?h.value[A]||E:!1,F=M||M===void 0&&N;return p(lue,{prefixCls:I,title:z?z(_):"",open:F,placement:y.value,transitionName:`${a.value}-zoom-down`,key:A,overlayClassName:`${i.value}-tooltip`,getPopupContainer:B||(c==null?void 0:c.value)},{default:()=>[p(d5,D(D({},R),{},{value:_,onMouseenter:()=>b(A,!0),onMouseleave:()=>b(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:I,id:T=g.id.value}=e,_=L2(e,["tooltipPrefixCls","range","id"]),E=u.getPrefixCls("tooltip",w),A=ie(n.class,{[`${i.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!_.vertical&&(_.reverse=!_.reverse);let R;return typeof I=="object"&&(R=I.draggableTrack),d(I?p(rue,D(D(D({},n),_),{},{step:_.step,draggableTrack:R,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}):p(tue,D(D(D({},n),_),{},{id:T,step:_.step,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),pue=Tt(fue);function k2(e){return typeof e=="string"}function gue(){}const b5=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Be(),iconPrefix:String,icon:V.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:V.any,title:V.any,subTitle:V.any,progressDot:qP(V.oneOfType([V.looseBool,V.func])),tailContent:V.any,icons:V.shape({finish:V.any,error:V.any}).loose,onClick:ve(),onStepClick:ve(),stepIcon:ve(),itemRender:ve(),__legacy:Ce()}),y5=oe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:b5(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=a=>{o("click",a),o("stepClick",e.stepIndex)},i=a=>{let{icon:s,title:c,description:u}=a;const{prefixCls:d,stepNumber:f,status:g,iconPrefix:v,icons:h,progressDot:b=n.progressDot,stepIcon:y=n.stepIcon}=e;let S;const $=ie(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&k2(s),[`${v}icon-check`]:!s&&g==="finish"&&(h&&!h.finish||!h),[`${v}icon-cross`]:!s&&g==="error"&&(h&&!h.error||!h)}),x=p("span",{class:`${d}-icon-dot`},null);return b?typeof b=="function"?S=p("span",{class:`${d}-icon`},[b({iconDot:x,index:f-1,status:g,title:c,description:u,prefixCls:d})]):S=p("span",{class:`${d}-icon`},[x]):s&&!k2(s)?S=p("span",{class:`${d}-icon`},[s]):h&&h.finish&&g==="finish"?S=p("span",{class:`${d}-icon`},[h.finish]):h&&h.error&&g==="error"?S=p("span",{class:`${d}-icon`},[h.error]):s||g==="finish"||g==="error"?S=p("span",{class:$},null):S=p("span",{class:`${d}-icon`},[f]),y&&(S=y({index:f-1,status:g,title:c,description:u,node:S})),S};return()=>{var a,s,c,u;const{prefixCls:d,itemWidth:f,active:g,status:v="wait",tailContent:h,adjustMarginRight:b,disabled:y,title:S=(a=n.title)===null||a===void 0?void 0:a.call(n),description:$=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:x=(c=n.subTitle)===null||c===void 0?void 0:c.call(n),icon:C=(u=n.icon)===null||u===void 0?void 0:u.call(n),onClick:O,onStepClick:w}=e,I=v||"wait",T=ie(`${d}-item`,`${d}-item-${I}`,{[`${d}-item-custom`]:C,[`${d}-item-active`]:g,[`${d}-item-disabled`]:y===!0}),_={};f&&(_.width=f),b&&(_.marginRight=b);const E={onClick:O||gue};w&&!y&&(E.role="button",E.tabindex=0,E.onClick=l);const A=p("div",D(D({},et(r,["__legacy"])),{},{class:[T,r.class],style:[r.style,_]}),[p("div",D(D({},E),{},{class:`${d}-item-container`}),[p("div",{class:`${d}-item-tail`},[h]),p("div",{class:`${d}-item-icon`},[i({icon:C,title:S,description:$})]),p("div",{class:`${d}-item-content`},[p("div",{class:`${d}-item-title`},[S,x&&p("div",{title:typeof x=="string"?x:void 0,class:`${d}-item-subtitle`},[x])]),$&&p("div",{class:`${d}-item-description`},[$])])])]);return e.itemRender?e.itemRender(A):A}}});var hue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r[]),icons:V.shape({finish:V.any,error:V.any}).loose,stepIcon:ve(),isInline:V.looseBool,itemRender:ve()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=a=>{const{current:s}=e;s!==a&&o("change",a)},l=(a,s,c)=>{const{prefixCls:u,iconPrefix:d,status:f,current:g,initial:v,icons:h,stepIcon:b=n.stepIcon,isInline:y,itemRender:S,progressDot:$=n.progressDot}=e,x=y||$,C=m(m({},a),{class:""}),O=v+s,w={active:O===g,stepNumber:O+1,stepIndex:O,key:O,prefixCls:u,iconPrefix:d,progressDot:x,stepIcon:b,icons:h,onStepClick:r};return f==="error"&&s===g-1&&(C.class=`${u}-next-error`),C.status||(O===g?C.status=f:OS(C,I)),p(y5,D(D(D({},C),w),{},{__legacy:!1}),null))},i=(a,s)=>l(m({},a.props),s,c=>dt(a,c));return()=>{var a;const{prefixCls:s,direction:c,type:u,labelPlacement:d,iconPrefix:f,status:g,size:v,current:h,progressDot:b=n.progressDot,initial:y,icons:S,items:$,isInline:x,itemRender:C}=e,O=hue(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),w=u==="navigation",I=x||b,T=x?"horizontal":c,_=x?void 0:v,E=I?"vertical":d,A=ie(s,`${s}-${c}`,{[`${s}-${_}`]:_,[`${s}-label-${E}`]:T==="horizontal",[`${s}-dot`]:!!I,[`${s}-navigation`]:w,[`${s}-inline`]:x});return p("div",D({class:A},O),[$.filter(R=>R).map((R,z)=>l(R,z)),_t((a=n.default)===null||a===void 0?void 0:a.call(n)).map(i)])}}}),mue=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},bue=mue,yue=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},Sue=yue,$ue=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:l}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${l}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:m(m({maxWidth:"100%",paddingInlineEnd:0},Gt),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${l}, inset-inline-start ${l}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Cue=$ue,xue=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},wue=xue,Oue=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:l,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:l,height:l,marginInlineStart:(e.descriptionWidth-l)/2,paddingInlineEnd:0,lineHeight:`${l}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(l-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(l-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-l)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(l-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-l)/2,insetInlineStart:0,margin:0,padding:`${l+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(l-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-l)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-l)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Pue=Oue,Iue=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Tue=Iue,Eue=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:l}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:l,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Mue=Eue,_ue=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Aue=_ue,Rue=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,l=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:l+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":m({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-finish":m({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-error":i,"&-active, &-process":m({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},Due=Rue;var Ji;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(Ji||(Ji={}));const Ou=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,l=`${e}DescriptionColor`,i=`${e}TailColor`,a=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[l]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},Bue=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return m(m(m(m(m(m({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Ou(Ji.wait,e)),Ou(Ji.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Ou(Ji.finish,e)),Ou(Ji.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},Nue=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},Fue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m(m(m(m(m(m({},Xe(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Bue(e)),Nue(e)),bue(e)),Mue(e)),Aue(e)),Sue(e)),Pue(e)),Cue(e)),Tue(e)),wue(e)),Due(e))}},Lue=Ve("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:l,controlHeightLG:i,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:g,controlItemBgActive:v,colorError:h,colorBgContainer:b,colorBorderSecondary:y}=e,S=e.controlHeight,$=e.colorSplit,x=Fe(e,{processTailColor:$,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:l,stepsSmallIconSize:o,stepsDotSize:l/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:$,waitIconBgColor:t?b:g,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?b:v,finishIconBorderColor:t?c:v,finishDotColor:c,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:$,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:y});return[Fue(x)]},{descriptionWidth:140}),kue=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Ce(),items:at(),labelPlacement:Be(),status:Be(),size:Be(),direction:Be(),progressDot:Le([Boolean,Function]),type:Be(),onChange:ve(),"onUpdate:current":ve()}),Rh=oe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:qe(kue(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i,configProvider:a}=Te("steps",e),[s,c]=Lue(l),[,u]=Fr(),d=Va(),f=P(()=>e.responsive&&d.value.xs?"vertical":e.direction),g=P(()=>a.getPrefixCls("",e.iconPrefix)),v=$=>{r("update:current",$),r("change",$)},h=P(()=>e.type==="inline"),b=P(()=>h.value?void 0:e.percent),y=$=>{let{node:x,status:C}=$;if(C==="process"&&e.percent!==void 0){const O=e.size==="small"?u.value.controlHeight:u.value.controlHeightLG;return p("div",{class:`${l.value}-progress-icon`},[p(b1,{type:"circle",percent:b.value,size:O,strokeWidth:4,format:()=>null},null),x])}return x},S=P(()=>({finish:p(vp,{class:`${l.value}-finish-icon`},null),error:p(Zn,{class:`${l.value}-error-icon`},null)}));return()=>{const $=ie({[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-with-progress`]:b.value!==void 0},n.class,c.value),x=(C,O)=>C.description?p(Yn,{title:C.description},{default:()=>[O]}):O;return s(p(vue,D(D(D({icons:S.value},n),et(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:l.value,iconPrefix:g.value,class:$,onChange:v,isInline:h.value,itemRender:h.value?x:void 0}),m({stepIcon:y},o)))}}}),ud=oe(m(m({compatConfig:{MODE:3}},y5),{name:"AStep",props:b5()})),zue=m(Rh,{Step:ud,install:e=>(e.component(Rh.name,Rh),e.component(ud.name,ud),e)}),Hue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},jue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Wue=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Vue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},Kue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Rr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Gue=Ve("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,l=n-o*2,i=Fe(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:l*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:l/2,switchInnerMarginMaxSM:l+o+o*2,switchPinSizeSM:l,switchHandleShadow:`0 2px 4px 0 ${new gt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kue(i),Vue(i),Wue(i),jue(i),Hue(i)]}),Xue=Cn("small","default"),Uue=()=>({id:String,prefixCls:String,size:V.oneOf(Xue),disabled:{type:Boolean,default:void 0},checkedChildren:V.any,unCheckedChildren:V.any,tabindex:V.oneOfType([V.string,V.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:V.oneOfType([V.string,V.number,V.looseBool]),checkedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!0),unCheckedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),Yue=oe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:Uue(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;const i=Qt(),a=qn(),s=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:a.value});Ff(()=>{It(),It()});const c=le(e.checked!==void 0?e.checked:n.defaultChecked),u=P(()=>c.value===e.checkedValue);be(()=>e.checked,()=>{c.value=e.checked});const{prefixCls:d,direction:f,size:g}=Te("switch",e),[v,h]=Gue(d),b=le(),y=()=>{var T;(T=b.value)===null||T===void 0||T.focus()};r({focus:y,blur:()=>{var T;(T=b.value)===null||T===void 0||T.blur()}}),je(()=>{ot(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(T,_)=>{s.value||(l("update:checked",T),l("change",T,_),i.onFieldChange())},x=T=>{l("blur",T)},C=T=>{y();const _=u.value?e.unCheckedValue:e.checkedValue;$(_,T),l("click",_,T)},O=T=>{T.keyCode===Oe.LEFT?$(e.unCheckedValue,T):T.keyCode===Oe.RIGHT&&$(e.checkedValue,T),l("keydown",T)},w=T=>{var _;(_=b.value)===null||_===void 0||_.blur(),l("mouseup",T)},I=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[h.value]:!0}));return()=>{var T;return v(p(kb,null,{default:()=>[p("button",D(D(D({},et(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(T=e.id)!==null&&T!==void 0?T:i.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,I.value],ref:b}),[p("div",{class:`${d.value}-handle`},[e.loading?p(co,{class:`${d.value}-loading-icon`},null):null]),p("span",{class:`${d.value}-inner`},[p("span",{class:`${d.value}-inner-checked`},[qt(o,e,"checkedChildren")]),p("span",{class:`${d.value}-inner-unchecked`},[qt(o,e,"unCheckedChildren")])])])]}))}}}),que=Tt(Yue),S5=Symbol("TableContextProps"),Zue=e=>{Ge(S5,e)},ur=()=>He(S5,{}),Que="RC_TABLE_KEY";function $5(e){return e==null?[]:Array.isArray(e)?e:[e]}function C5(e,t){if(!t&&typeof t!="number")return e;const n=$5(t);let o=e;for(let r=0;r{const{key:r,dataIndex:l}=o||{};let i=r||$5(l).join("-")||Que;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function Jue(){const e={};function t(l,i){i&&Object.keys(i).forEach(a=>{const s=i[a];s&&typeof s=="object"?(l[a]=l[a]||{},t(l[a],s)):l[a]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,l)}),e}function ym(e){return e!=null}const x5=Symbol("SlotsContextProps"),ede=e=>{Ge(x5,e)},C1=()=>He(x5,P(()=>({}))),w5=Symbol("ContextProps"),tde=e=>{Ge(w5,e)},nde=()=>He(w5,{onResizeColumn:()=>{}});globalThis&&globalThis.__rest;const va="RC_TABLE_INTERNAL_COL_DEFINE",O5=Symbol("HoverContextProps"),ode=e=>{Ge(O5,e)},rde=()=>He(O5,{startRow:te(-1),endRow:te(-1),onHover(){}}),Sm=te(!1),lde=()=>{je(()=>{Sm.value=Sm.value||Ay("position","sticky")})},ide=()=>Sm;var ade=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function cde(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Yt(e)}const Qp=oe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=C1(),{onHover:r,startRow:l,endRow:i}=rde(),a=P(()=>{var h,b,y,S;return(y=(h=e.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=P(()=>{var h,b,y,S;return(y=(h=e.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),c=ro(()=>{const{index:h}=e;return sde(h,s.value||1,l.value,i.value)}),u=ide(),d=(h,b)=>{var y;const{record:S,index:$,additionalProps:x}=e;S&&r($,$+b-1),(y=x==null?void 0:x.onMouseenter)===null||y===void 0||y.call(x,h)},f=h=>{var b;const{record:y,additionalProps:S}=e;y&&r(-1,-1),(b=S==null?void 0:S.onMouseleave)===null||b===void 0||b.call(S,h)},g=h=>{const b=_t(h)[0];return Yt(b)?b.type===Cl?b.children:Array.isArray(b.children)?g(b.children):void 0:b},v=te(null);return be([c,()=>e.prefixCls,v],()=>{const h=Hn(v.value);h&&(c.value?lf(h,`${e.prefixCls}-cell-row-hover`):af(h,`${e.prefixCls}-cell-row-hover`))}),()=>{var h,b,y,S,$,x;const{prefixCls:C,record:O,index:w,renderIndex:I,dataIndex:T,customRender:_,component:E="td",fixLeft:A,fixRight:R,firstFixLeft:z,lastFixLeft:M,firstFixRight:B,lastFixRight:N,appendNode:F=(h=n.appendNode)===null||h===void 0?void 0:h.call(n),additionalProps:L={},ellipsis:k,align:j,rowType:H,isSticky:Y,column:Z={},cellType:U}=e,ee=`${C}-cell`;let G,J;const Q=(b=n.default)===null||b===void 0?void 0:b.call(n);if(ym(Q)||U==="header")J=Q;else{const ue=C5(O,T);if(J=ue,_){const ce=_({text:ue,value:ue,record:O,index:w,renderIndex:I,column:Z.__originColumn__});cde(ce)?(J=ce.children,G=ce.props):J=ce}if(!(va in Z)&&U==="body"&&o.value.bodyCell&&!(!((y=Z.slots)===null||y===void 0)&&y.customRender)){const ce=np(o.value,"bodyCell",{text:ue,value:ue,record:O,index:w,column:Z.__originColumn__},()=>{const he=J===void 0?ue:J;return[typeof he=="object"&&Kt(he)||typeof he!="object"?he:null]});J=yt(ce)}e.transformCellText&&(J=e.transformCellText({text:J,record:O,index:w,column:Z.__originColumn__}))}typeof J=="object"&&!Array.isArray(J)&&!Yt(J)&&(J=null),k&&(M||B)&&(J=p("span",{class:`${ee}-content`},[J])),Array.isArray(J)&&J.length===1&&(J=J[0]);const K=G||{},{colSpan:q,rowSpan:pe,style:W,class:X}=K,ne=ade(K,["colSpan","rowSpan","style","class"]),ae=(S=q!==void 0?q:a.value)!==null&&S!==void 0?S:1,se=($=pe!==void 0?pe:s.value)!==null&&$!==void 0?$:1;if(ae===0||se===0)return null;const re={},de=typeof A=="number"&&u.value,ge=typeof R=="number"&&u.value;de&&(re.position="sticky",re.left=`${A}px`),ge&&(re.position="sticky",re.right=`${R}px`);const me={};j&&(me.textAlign=j);let fe;const ye=k===!0?{showTitle:!0}:k;ye&&(ye.showTitle||H==="header")&&(typeof J=="string"||typeof J=="number"?fe=J.toString():Yt(J)&&(fe=g([J])));const Se=m(m(m({title:fe},ne),L),{colSpan:ae!==1?ae:null,rowSpan:se!==1?se:null,class:ie(ee,{[`${ee}-fix-left`]:de&&u.value,[`${ee}-fix-left-first`]:z&&u.value,[`${ee}-fix-left-last`]:M&&u.value,[`${ee}-fix-right`]:ge&&u.value,[`${ee}-fix-right-first`]:B&&u.value,[`${ee}-fix-right-last`]:N&&u.value,[`${ee}-ellipsis`]:k,[`${ee}-with-append`]:F,[`${ee}-fix-sticky`]:(de||ge)&&Y&&u.value},L.class,X),onMouseenter:ue=>{d(ue,se)},onMouseleave:f,style:[L.style,me,re,W]});return p(E,D(D({},Se),{},{ref:v}),{default:()=>[F,J,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function x1(e,t,n,o,r){const l=n[e]||{},i=n[t]||{};let a,s;l.fixed==="left"?a=o.left[e]:i.fixed==="right"&&(s=o.right[t]);let c=!1,u=!1,d=!1,f=!1;const g=n[t+1],v=n[e-1];return r==="rtl"?a!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):a!==void 0?c=!(g&&g.fixed==="left"):s!==void 0&&(u=!(v&&v.fixed==="right")),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const z2={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},H2=50,ude=oe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:H2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};Rn(()=>{r()}),ke(()=>{xt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:l}=nde(),i=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:H2),a=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=pn();let c=0;const u=te(!1);let d;const f=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(c-C,i.value);O=Math.min(O,a.value),Ye.cancel(d),d=Ye(()=>{l(O,e.column.__originColumn__)})},g=$=>{f($)},v=$=>{u.value=!1,f($),r()},h=($,x)=>{u.value=!0,r(),c=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=Mt(document.documentElement,x.move,g),o=Mt(document.documentElement,x.stop,v))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[nn?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return p("div",D(D({class:`${$}-resize-handle ${u.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[p("div",{class:`${$}-resize-handle-line`},null)])}}}),dde=oe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=ur();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:l,flattenColumns:i,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map(g=>g.column),u));const f=Zp(r.map(g=>g.column));return p(a,d,{default:()=>[r.map((g,v)=>{const{column:h}=g,b=x1(g.colStart,g.colEnd,i,l,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return p(Qp,D(D(D({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:f[v]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?p(ude,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function fde(e){const t=[];function n(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let a=l;return r.filter(Boolean).map(c=>{const u={key:c.key,class:ie(c.className,c.class),column:c,colStart:a};let d=1;const f=c.children;return f&&f.length>0&&(d=n(f,a,i+1).reduce((g,v)=>g+v,0),u.hasSubColumns=!0),"colSpan"in c&&({colSpan:d}=c),"rowSpan"in c&&(u.rowSpan=c.rowSpan),u.colSpan=d,u.colEnd=u.colStart+d-1,t[i].push(u),a+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=o-r)});return t}const j2=oe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=ur(),n=P(()=>fde(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:l,flattenColumns:i,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return p(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,f)=>p(dde,{key:f,flattenColumns:i,cells:d,stickyOffsets:l,rowComponent:c,cellComponent:u,customHeaderRow:a,index:f},null))]})}}}),P5=Symbol("ExpandedRowProps"),pde=e=>{Ge(P5,e)},gde=()=>He(P5,{}),I5=oe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=ur(),l=gde(),{fixHeader:i,fixColumn:a,componentWidth:s,horizonScroll:c}=l;return()=>{const{prefixCls:u,component:d,cellComponent:f,expanded:g,colSpan:v,isEmpty:h}=e;return p(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[p(Qp,{component:f,prefixCls:u,colSpan:v},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?c.value:a.value)&&(y=p("div",{style:{width:`${s.value-(i.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${u}-expanded-row-fixed`},[y])),y}})]})}}}),hde=oe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=le();return je(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>p(xo,{onResize:r=>{let{offsetWidth:l}=r;n("columnResize",e.columnKey,l)}},{default:()=>[p("td",{ref:o,style:{padding:0,border:0,height:0}},[p("div",{style:{height:0,overflow:"hidden"}},[Lt(" ")])])]})}}),T5=Symbol("BodyContextProps"),vde=e=>{Ge(T5,e)},E5=()=>He(T5,{}),mde=oe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=ur(),r=E5(),l=te(!1),i=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ke(()=>{i.value&&(l.value=!0)});const a=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),c=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),u=P(()=>a.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},f=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&u.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=f.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},v=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>Zp(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:I,fixedInfoList:T,transformCellText:_}=o,{flattenColumns:E,expandedRowClassName:A,indentSize:R,expandIcon:z,expandedRowRender:M,expandIconColumnIndex:B}=r,N=p(O,D(D({},f.value),{},{"data-row-key":x,class:ie(b,`${I}-row`,`${I}-row-level-${C}`,v.value,f.value.class),style:[y,f.value.style],onClick:g}),{default:()=>[E.map((L,k)=>{const{customRender:j,dataIndex:H,className:Y}=L,Z=h[k],U=T[k];let ee;L.customCell&&(ee=L.customCell(S,$,L));const G=k===(B||0)&&s.value?p(We,null,[p("span",{style:{paddingLeft:`${R*C}px`},class:`${I}-row-indent indent-level-${C}`},null),z({prefixCls:I,expanded:i.value,expandable:c.value,record:S,onExpand:d})]):null;return p(Qp,D(D({cellType:"body",class:Y,ellipsis:L.ellipsis,align:L.align,component:w,prefixCls:I,key:Z,record:S,index:$,renderIndex:e.renderIndex,dataIndex:H,customRender:j},U),{},{additionalProps:ee,column:L,transformCellText:_,appendNode:G}),null)})]});let F;if(a.value&&(l.value||i.value)){const L=M({record:S,index:$,indent:C+1,expanded:i.value}),k=A&&A(S,$,C);F=p(I5,{expanded:i.value,class:ie(`${I}-expanded-row`,`${I}-expanded-row-level-${C+1}`,k),prefixCls:I,component:O,cellComponent:w,colSpan:E.length,isEmpty:!1},{default:()=>[L]})}return p(We,null,[N,F])}}});function M5(e,t,n,o,r,l){const i=[];i.push({record:e,indent:t,index:l});const a=r(e),s=o==null?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{const l=t.value,i=n.value,a=e.value;if(i!=null&&i.size){const s=[];for(let c=0;c<(a==null?void 0:a.length);c+=1){const u=a[c];s.push(...M5(u,0,l,i,o.value,c))}return s}return a==null?void 0:a.map((s,c)=>({record:s,indent:0,index:c}))})}const _5=Symbol("ResizeContextProps"),yde=e=>{Ge(_5,e)},Sde=()=>He(_5,{onColumnResize:()=>{}}),$de=oe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Sde(),r=ur(),l=E5(),i=bde(ze(e,"data"),ze(e,"childrenColumnName"),ze(e,"expandedKeys"),ze(e,"getRowKey")),a=te(-1),s=te(-1);let c;return ode({startRow:a,endRow:s,onHover:(u,d)=>{clearTimeout(c),c=setTimeout(()=>{a.value=u,s.value=d},100)}}),()=>{var u;const{data:d,getRowKey:f,measureColumnWidth:g,expandedKeys:v,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=l,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),I=x(["body","cell"],"td");let T;d.length?T=i.value.map((E,A)=>{const{record:R,indent:z,index:M}=E,B=f(R,A);return p(mde,{key:B,rowKey:B,record:R,recordKey:B,index:A,renderIndex:M,rowComponent:w,cellComponent:I,expandedKeys:v,customRow:h,getRowKey:f,rowExpandable:b,childrenColumnName:y,indent:z},null)}):T=p(I5,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:I,colSpan:C.length,isEmpty:!0},{default:()=>[(u=n.emptyNode)===null||u===void 0?void 0:u.call(n)]});const _=Zp(C);return p(O,{class:`${$}-tbody`},{default:()=>[g&&p("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[_.map(E=>p(hde,{key:E,columnKey:E,onColumnResize:S},null))]),T]})}}}),ol={};var Cde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,l=n.children;return l&&l.length>0?[...t,...$m(l).map(i=>m({fixed:r},i))]:[...t,m(m({},n),{fixed:r})]},[])}function xde(e){return e.map(t=>{const{fixed:n}=t,o=Cde(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),m({fixed:r},o)})}function wde(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:l,getRowKey:i,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:f,expandColumnWidth:g,expandFixed:v}=e;const h=C1(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(ol)){const R=u.value||0;R>=0&&$.splice(R,0,ol)}const x=$.indexOf(ol);$=$.filter((R,z)=>R!==ol||z===x);const C=o.value[x];let O;(v.value==="left"||v.value)&&!u.value?O="left":(v.value==="right"||v.value)&&u.value===o.value.length?O="right":O=C?C.fixed:null;const w=l.value,I=c.value,T=s.value,_=n.value,E=f.value,A={[va]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:np(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:R=>{let{record:z,index:M}=R;const B=i.value(z,M),N=w.has(B),F=I?I(z):!0,L=T({prefixCls:_,expanded:N,expandable:F,record:z,onExpand:a});return E?p("span",{onClick:k=>k.stopPropagation()},[L]):L}};return $.map(R=>R===ol?A:R)}return o.value.filter($=>$!==ol)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?xde($m(y.value)):$m(y.value));return[y,S]}function A5(e){const t=te(e);let n;const o=te([]);function r(l){o.value.push(l),Ye.cancel(n),n=Ye(()=>{const i=o.value;o.value=[],i.forEach(a=>{t.value=a(t.value)})})}return Ze(()=>{Ye.cancel(n)}),[t,r]}function Ode(e){const t=le(e||null),n=le();function o(){clearTimeout(n.value)}function r(i){t.value=i,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function l(){return t.value}return Ze(()=>{o()}),[r,l]}function Pde(e,t,n){return P(()=>{const r=[],l=[];let i=0,a=0;const s=e.value,c=t.value,u=n.value;for(let d=0;d=0;a-=1){const s=t[a],c=n&&n[a],u=c&&c[va];if(s||u||i){const d=u||{},f=Ide(d,["columnType"]);r.unshift(p("col",D({key:a,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),i=!0}}return p("colgroup",null,[r])}function Cm(e,t){let{slots:n}=t;var o;return p("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}Cm.displayName="Panel";let Tde=0;const Ede=oe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=ur(),r=`table-summary-uni-key-${++Tde}`,l=P(()=>e.fixed===""||e.fixed);return ke(()=>{o.summaryCollect(r,l.value)}),Ze(()=>{o.summaryCollect(r,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),Mde=Ede,_de=oe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return p("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),D5=Symbol("SummaryContextProps"),Ade=e=>{Ge(D5,e)},Rde=()=>He(D5,{}),Dde=oe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=ur(),l=Rde();return()=>{const{index:i,colSpan:a=1,rowSpan:s,align:c}=e,{prefixCls:u,direction:d}=r,{scrollColumnIndex:f,stickyOffsets:g,flattenColumns:v}=l,b=i+a-1+1===f?a+1:a,y=x1(i,i+b-1,v,g,d);return p(Qp,D({class:n.class,index:i,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Pu=oe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=ur();return Ade(ut({stickyOffsets:ze(e,"stickyOffsets"),flattenColumns:ze(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,l=e.flattenColumns[r];return l!=null&&l.scrollbar?r:null})})),()=>{var r;const{prefixCls:l}=o;return p("tfoot",{class:`${l}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Bde=Mde;function Nde(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:l}=e;const i=`${t}-row-expand-icon`;if(!l)return p("span",{class:[i,`${t}-row-spaced`]},null);const a=s=>{o(n,s),s.stopPropagation()};return p("span",{class:{[i]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:a},null)}function Fde(e,t,n){const o=[];function r(l){(l||[]).forEach((i,a)=>{o.push(t(i,a)),r(i[n])})}return r(e),o}const Lde=oe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=ur(),l=te(0),i=te(0),a=te(0);ke(()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,a.value=l.value&&i.value*(i.value/l.value)},{flush:"post"});const s=te(),[c,u]=A5({scrollLeft:0,isHiddenScrollBar:!0}),d=le({delta:0,x:0}),f=te(!1),g=()=>{f.value=!1},v=w=>{d.value={delta:w.pageX-c.value.scrollLeft,x:0},f.value=!0,w.preventDefault()},h=w=>{const{buttons:I}=w||(window==null?void 0:window.event);if(!f.value||I===0){f.value&&(f.value=!1);return}let T=d.value.x+w.pageX-d.value.x-d.value.delta;T<=0&&(T=0),T+a.value>=i.value&&(T=i.value-a.value),n("scroll",{scrollLeft:T/i.value*(l.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=jd(e.scrollBodyRef.value).top,I=w+e.scrollBodyRef.value.offsetHeight,T=e.container===window?document.documentElement.scrollTop+window.innerHeight:jd(e.container).top+e.container.clientHeight;I-zd()<=T||w>=T-e.offsetScroll?u(_=>m(m({},_),{isHiddenScrollBar:!0})):u(_=>m(m({},_),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{u(I=>m(m({},I),{scrollLeft:w/l.value*i.value||0}))}});let S=null,$=null,x=null,C=null;je(()=>{S=Mt(document.body,"mouseup",g,!1),$=Mt(document.body,"mousemove",h,!1),x=Mt(window,"resize",b,!1)}),Bf(()=>{ot(()=>{b()})}),je(()=>{setTimeout(()=>{be([a,f],()=>{b()},{immediate:!0,flush:"post"})})}),be(()=>e.container,()=>{C==null||C.remove(),C=Mt(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Ze(()=>{S==null||S.remove(),$==null||$.remove(),C==null||C.remove(),x==null||x.remove()}),be(()=>m({},c.value),(w,I)=>{w.isHiddenScrollBar!==(I==null?void 0:I.isHiddenScrollBar)&&!w.isHiddenScrollBar&&u(T=>{const _=e.scrollBodyRef.value;return _?m(m({},T),{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):T})},{immediate:!0});const O=zd();return()=>{if(l.value<=i.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return p("div",{style:{height:`${O}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[p("div",{onMousedown:v,ref:s,class:ie(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:f.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),W2=Mn()?window:null;function kde(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:l=()=>W2}=typeof e.value=="object"?e.value:{},i=l()||W2,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:i}})}function zde(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let l=0;ll.isSticky&&!e.fixHeader?0:l.scrollbarSize),a=le(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},c=le();je(()=>{ot(()=>{c.value=Mt(a.value,"wheel",s)})}),Ze(()=>{var h;(h=c.value)===null||h===void 0||h.remove()});const u=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=le([]),f=le([]);ke(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};d.value=i.value?[...e.columns,b]:e.columns,f.value=i.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return m(m({},h),{left:b==="rtl"?[...S.map($=>$+i.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+i.value),0],isSticky:l.isSticky})}),v=zde(ze(e,"colWidths"),ze(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=l;return p("div",{style:m({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:a,class:ie(n.class,{[x]:!!x})},[p("table",{style:{tableLayout:"fixed",visibility:b||v.value?null:"hidden"}},[(!b||!C||u.value)&&p(R5,{colWidths:v.value?[...v.value,i.value]:[],columCount:y+1,columns:f.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,m(m({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:f.value}))])])}}});function K2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,ze(e,r)])))}const Hde=[],jde={},xm="rc-table-internal-hook",Wde=oe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.data||Hde),i=P(()=>!!l.value.length),a=P(()=>Jue(e.components,{})),s=(ce,he)=>C5(a.value,ce)||he,c=P(()=>{const ce=e.rowKey;return typeof ce=="function"?ce:he=>he&&he[ce]}),u=P(()=>e.expandIcon||Nde),d=P(()=>e.childrenColumnName||"children"),f=P(()=>e.expandedRowRender?"row":e.canExpandable||l.value.some(ce=>ce&&typeof ce=="object"&&ce[d.value])?"nest":!1),g=te([]);ke(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Fde(l.value,c.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=ce=>{const he=c.value(ce,l.value.indexOf(ce));let Pe;const Ie=h.value.has(he);Ie?(h.value.delete(he),Pe=[...h.value]):Pe=[...h.value,he],g.value=Pe,r("expand",!Ie,ce),r("update:expandedRowKeys",Pe),r("expandedRowsChange",Pe)},y=le(0),[S,$]=wde(m(m({},No(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:c,onTriggerExpand:b,expandIcon:u}),P(()=>e.internalHooks===xm?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=le(),O=le(),w=le(),I=le({scrollWidth:0,clientWidth:0}),T=le(),[_,E]=vt(!1),[A,R]=vt(!1),[z,M]=A5(new Map),B=P(()=>Zp($.value)),N=P(()=>B.value.map(ce=>z.value.get(ce))),F=P(()=>$.value.length),L=Pde(N,F,ze(e,"direction")),k=P(()=>e.scroll&&ym(e.scroll.y)),j=P(()=>e.scroll&&ym(e.scroll.x)||!!e.expandFixed),H=P(()=>j.value&&$.value.some(ce=>{let{fixed:he}=ce;return he})),Y=le(),Z=kde(ze(e,"sticky"),ze(e,"prefixCls")),U=ut({}),ee=P(()=>{const ce=Object.values(U)[0];return(k.value||Z.value.isSticky)&&ce}),G=(ce,he)=>{he?U[ce]=he:delete U[ce]},J=le({}),Q=le({}),K=le({});ke(()=>{k.value&&(Q.value={overflowY:"scroll",maxHeight:Vl(e.scroll.y)}),j.value&&(J.value={overflowX:"auto"},k.value||(Q.value={overflowY:"hidden"}),K.value={width:e.scroll.x===!0?"auto":Vl(e.scroll.x),minWidth:"100%"})});const q=(ce,he)=>{op(C.value)&&M(Pe=>{if(Pe.get(ce)!==he){const Ie=new Map(Pe);return Ie.set(ce,he),Ie}return Pe})},[pe,W]=Ode(null);function X(ce,he){if(!he)return;if(typeof he=="function"){he(ce);return}const Pe=he.$el||he;Pe.scrollLeft!==ce&&(Pe.scrollLeft=ce)}const ne=ce=>{let{currentTarget:he,scrollLeft:Pe}=ce;var Ie;const Ae=e.direction==="rtl",$e=typeof Pe=="number"?Pe:he.scrollLeft,xe=he||jde;if((!W()||W()===xe)&&(pe(xe),X($e,O.value),X($e,w.value),X($e,T.value),X($e,(Ie=Y.value)===null||Ie===void 0?void 0:Ie.setScrollLeft)),he){const{scrollWidth:we,clientWidth:Me}=he;Ae?(E(-$e0)):(E($e>0),R($e{j.value&&w.value?ne({currentTarget:w.value}):(E(!1),R(!1))};let se;const re=ce=>{ce!==y.value&&(ae(),y.value=C.value?C.value.offsetWidth:ce)},de=ce=>{let{width:he}=ce;if(clearTimeout(se),y.value===0){re(he);return}se=setTimeout(()=>{re(he)},100)};be([j,()=>e.data,()=>e.columns],()=>{j.value&&ae()},{flush:"post"});const[ge,me]=vt(0);lde(),je(()=>{ot(()=>{var ce,he;ae(),me(Gk(w.value).width),I.value={scrollWidth:((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,clientWidth:((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0}})}),An(()=>{ot(()=>{var ce,he;const Pe=((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,Ie=((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0;(I.value.scrollWidth!==Pe||I.value.clientWidth!==Ie)&&(I.value={scrollWidth:Pe,clientWidth:Ie})})}),ke(()=>{e.internalHooks===xm&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const fe=P(()=>e.tableLayout?e.tableLayout:H.value?e.scroll.x==="max-content"?"auto":"fixed":k.value||Z.value.isSticky||$.value.some(ce=>{let{ellipsis:he}=ce;return he})?"fixed":"auto"),ye=()=>{var ce;return i.value?null:((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||"No Data"};Zue(ut(m(m({},No(K2(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ge,fixedInfoList:P(()=>$.value.map((ce,he)=>x1(he,he,$.value,L.value,e.direction))),isSticky:P(()=>Z.value.isSticky),summaryCollect:G}))),vde(ut(m(m({},No(K2(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:fe,expandIcon:u,expandableType:f,onTriggerExpand:b}))),yde({onColumnResize:q}),pde({componentWidth:y,fixHeader:k,fixColumn:H,horizonScroll:j});const Se=()=>p($de,{data:l.value,measureColumnWidth:k.value||j.value||Z.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:ye}),ue=()=>p(R5,{colWidths:$.value.map(ce=>{let{width:he}=ce;return he}),columns:$.value},null);return()=>{var ce;const{prefixCls:he,scroll:Pe,tableLayout:Ie,direction:Ae,title:$e=o.title,footer:xe=o.footer,id:we,showHeader:Me,customHeaderRow:Ne}=e,{isSticky:_e,offsetHeader:De,offsetSummary:Je,offsetScroll:ft,stickyClassName:it,container:pt}=Z.value,ht=s(["table"],"table"),Ut=s(["body"]),Jt=(ce=o.summary)===null||ce===void 0?void 0:ce.call(o,{pageData:l.value});let rn=()=>null;const jt={colWidths:N.value,columCount:$.value.length,stickyOffsets:L.value,customHeaderRow:Ne,fixHeader:k.value,scroll:Pe};if(k.value||_e){let uo=()=>null;typeof Ut=="function"?(uo=()=>Ut(l.value,{scrollbarSize:ge.value,ref:w,onScroll:ne}),jt.colWidths=$.value.map((Vn,El)=>{let{width:Ee}=Vn;const Ue=El===S.value.length-1?Ee-ge.value:Ee;return typeof Ue=="number"&&!Number.isNaN(Ue)?Ue:0})):uo=()=>p("div",{style:m(m({},J.value),Q.value),onScroll:ne,ref:w,class:ie(`${he}-body`)},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Se(),!ee.value&&Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const To=m(m(m({noData:!l.value.length,maxContentScroll:j.value&&Pe.x==="max-content"},jt),x.value),{direction:Ae,stickyClassName:it,onScroll:ne});rn=()=>p(We,null,[Me!==!1&&p(V2,D(D({},To),{},{stickyTopOffset:De,class:`${he}-header`,ref:O}),{default:Vn=>p(We,null,[p(j2,Vn,null),ee.value==="top"&&p(Pu,Vn,{default:()=>[Jt]})])}),uo(),ee.value&&ee.value!=="top"&&p(V2,D(D({},To),{},{stickyBottomOffset:Je,class:`${he}-summary`,ref:T}),{default:Vn=>p(Pu,Vn,{default:()=>[Jt]})}),_e&&w.value&&p(Lde,{ref:Y,offsetScroll:ft,scrollBodyRef:w,onScroll:ne,container:pt,scrollBodySizeInfo:I.value},null)])}else rn=()=>p("div",{style:m(m({},J.value),Q.value),class:ie(`${he}-content`),onScroll:ne,ref:w},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Me!==!1&&p(j2,D(D({},jt),x.value),null),Se(),Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const xn=wl(n,{aria:!0,data:!0}),Wn=()=>p("div",D(D({},xn),{},{class:ie(he,{[`${he}-rtl`]:Ae==="rtl",[`${he}-ping-left`]:_.value,[`${he}-ping-right`]:A.value,[`${he}-layout-fixed`]:Ie==="fixed",[`${he}-fixed-header`]:k.value,[`${he}-fixed-column`]:H.value,[`${he}-scroll-horizontal`]:j.value,[`${he}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${he}-has-fix-right`]:$.value[F.value-1]&&$.value[F.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:we,ref:C}),[$e&&p(Cm,{class:`${he}-title`},{default:()=>[$e(l.value)]}),p("div",{class:`${he}-container`},[rn()]),xe&&p(Cm,{class:`${he}-footer`},{default:()=>[xe(l.value)]})]);return j.value?p(xo,{onResize:de},{default:Wn}):Wn()}}});function Vde(){const e=m({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const wm=10;function Kde(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const l=e[r];typeof l!="function"&&(n[r]=l)}),n}function Gde(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[l,i]=vt(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:wm})),a=P(()=>{const u=Vde(l.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/u.pageSize);return u.current>d&&(u.current=d||1),u}),s=(u,d)=>{t.value!==!1&&i({current:u??1,pageSize:d||a.value.pageSize})},c=(u,d)=>{var f,g;t.value&&((g=(f=o.value).onChange)===null||g===void 0||g.call(f,u,d)),s(u,d),n(u,d||a.value.pageSize)};return[P(()=>t.value===!1?{}:m(m({},a.value),{onChange:c})),s]}function Xde(e,t,n){const o=te({});be([e,t,n],()=>{const l=new Map,i=n.value,a=t.value;function s(c){c.forEach((u,d)=>{const f=i(u,d);l.set(f,u),u&&typeof u=="object"&&a in u&&s(u[a]||[])})}s(e.value),o.value={kvMap:l}},{deep:!0,immediate:!0});function r(l){return o.value.kvMap.get(l)}return[r]}const yr={},Om="SELECT_ALL",Pm="SELECT_INVERT",Im="SELECT_NONE",Ude=[];function B5(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...B5(e,o[e])])}),n}function Yde(e,t){const n=P(()=>{const T=e.value||{},{checkStrictly:_=!0}=T;return m(m({},T),{checkStrictly:_})}),[o,r]=Pt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Ude,{value:P(()=>n.value.selectedRowKeys)}),l=te(new Map),i=T=>{if(n.value.preserveSelectedRowKeys){const _=new Map;T.forEach(E=>{let A=t.getRecordByKey(E);!A&&l.value.has(E)&&(A=l.value.get(E)),_.set(E,A)}),l.value=_}};ke(()=>{i(o.value)});const a=P(()=>n.value.checkStrictly?null:kc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>B5(t.childrenColumnName.value,t.pageData.value)),c=P(()=>{const T=new Map,_=t.getRowKey.value,E=n.value.getCheckboxProps;return s.value.forEach((A,R)=>{const z=_(A,R),M=(E?E(A):null)||{};T.set(z,M)}),T}),{maxLevel:u,levelEntities:d}=Hp(a),f=T=>{var _;return!!(!((_=c.value.get(t.getRowKey.value(T)))===null||_===void 0)&&_.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:T,halfCheckedKeys:_}=So(o.value,!0,a.value,u.value,d.value,f);return[T||[],_]}),v=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const T=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(T)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=vt(null),x=T=>{let _,E;i(T);const{preserveSelectedRowKeys:A,onChange:R}=n.value,{getRecordByKey:z}=t;A?(_=T,E=T.map(M=>l.value.get(M))):(_=[],E=[],T.forEach(M=>{const B=z(M);B!==void 0&&(_.push(M),E.push(B))})),r(_),R==null||R(_,E)},C=(T,_,E,A)=>{const{onSelect:R}=n.value,{getRecordByKey:z}=t||{};if(R){const M=E.map(B=>z(B));R(z(T),_,M,A)}x(E)},O=P(()=>{const{onSelectInvert:T,onSelectNone:_,selections:E,hideSelectAll:A}=n.value,{data:R,pageData:z,getRowKey:M,locale:B}=t;return!E||A?null:(E===!0?[Om,Pm,Im]:E).map(F=>F===Om?{key:"all",text:B.value.selectionAll,onSelect(){x(R.value.map((L,k)=>M.value(L,k)).filter(L=>{const k=c.value.get(L);return!(k!=null&&k.disabled)||b.value.has(L)}))}}:F===Pm?{key:"invert",text:B.value.selectInvert,onSelect(){const L=new Set(b.value);z.value.forEach((j,H)=>{const Y=M.value(j,H),Z=c.value.get(Y);Z!=null&&Z.disabled||(L.has(Y)?L.delete(Y):L.add(Y))});const k=Array.from(L);T&&(xt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),T(k)),x(k)}}:F===Im?{key:"none",text:B.value.selectNone,onSelect(){_==null||_(),x(Array.from(b.value).filter(L=>{const k=c.value.get(L);return k==null?void 0:k.disabled}))}}:F)}),w=P(()=>s.value.length);return[T=>{var _;const{onSelectAll:E,onSelectMultiple:A,columnWidth:R,type:z,fixed:M,renderCell:B,hideSelectAll:N,checkStrictly:F}=n.value,{prefixCls:L,getRecordByKey:k,getRowKey:j,expandType:H,getPopupContainer:Y}=t;if(!e.value)return T.filter(re=>re!==yr);let Z=T.slice();const U=new Set(b.value),ee=s.value.map(j.value).filter(re=>!c.value.get(re).disabled),G=ee.every(re=>U.has(re)),J=ee.some(re=>U.has(re)),Q=()=>{const re=[];G?ee.forEach(ge=>{U.delete(ge),re.push(ge)}):ee.forEach(ge=>{U.has(ge)||(U.add(ge),re.push(ge))});const de=Array.from(U);E==null||E(!G,de.map(ge=>k(ge)),re.map(ge=>k(ge))),x(de)};let K;if(z!=="radio"){let re;if(O.value){const ye=p(Vt,{getPopupContainer:Y.value},{default:()=>[O.value.map((Se,ue)=>{const{key:ce,text:he,onSelect:Pe}=Se;return p(Vt.Item,{key:ce||ue,onClick:()=>{Pe==null||Pe(ee)}},{default:()=>[he]})})]});re=p("div",{class:`${L.value}-selection-extra`},[p(rr,{overlay:ye,getPopupContainer:Y.value},{default:()=>[p("span",null,[p(Ec,null,null)])]})])}const de=s.value.map((ye,Se)=>{const ue=j.value(ye,Se),ce=c.value.get(ue)||{};return m({checked:U.has(ue)},ce)}).filter(ye=>{let{disabled:Se}=ye;return Se}),ge=!!de.length&&de.length===w.value,me=ge&&de.every(ye=>{let{checked:Se}=ye;return Se}),fe=ge&&de.some(ye=>{let{checked:Se}=ye;return Se});K=!N&&p("div",{class:`${L.value}-selection`},[p($o,{checked:ge?me:!!w.value&&G,indeterminate:ge?!me&&fe:!G&&J,onChange:Q,disabled:w.value===0||ge,"aria-label":re?"Custom selection":"Select all",skipGroup:!0},null),re])}let q;z==="radio"?q=re=>{let{record:de,index:ge}=re;const me=j.value(de,ge),fe=U.has(me);return{node:p(Nn,D(D({},c.value.get(me)),{},{checked:fe,onClick:ye=>ye.stopPropagation(),onChange:ye=>{U.has(me)||C(me,!0,[me],ye.nativeEvent)}}),null),checked:fe}}:q=re=>{let{record:de,index:ge}=re;var me;const fe=j.value(de,ge),ye=U.has(fe),Se=y.value.has(fe),ue=c.value.get(fe);let ce;return H.value==="nest"?(ce=Se,xt(typeof(ue==null?void 0:ue.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ce=(me=ue==null?void 0:ue.indeterminate)!==null&&me!==void 0?me:Se,{node:p($o,D(D({},ue),{},{indeterminate:ce,checked:ye,skipGroup:!0,onClick:he=>he.stopPropagation(),onChange:he=>{let{nativeEvent:Pe}=he;const{shiftKey:Ie}=Pe;let Ae=-1,$e=-1;if(Ie&&F){const xe=new Set([S.value,fe]);ee.some((we,Me)=>{if(xe.has(we))if(Ae===-1)Ae=Me;else return $e=Me,!0;return!1})}if($e!==-1&&Ae!==$e&&F){const xe=ee.slice(Ae,$e+1),we=[];ye?xe.forEach(Ne=>{U.has(Ne)&&(we.push(Ne),U.delete(Ne))}):xe.forEach(Ne=>{U.has(Ne)||(we.push(Ne),U.add(Ne))});const Me=Array.from(U);A==null||A(!ye,Me.map(Ne=>k(Ne)),we.map(Ne=>k(Ne))),x(Me)}else{const xe=v.value;if(F){const we=ye?qo(xe,fe):mr(xe,fe);C(fe,!ye,we,Pe)}else{const we=So([...xe,fe],!0,a.value,u.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Ne}=we;let _e=Me;if(ye){const De=new Set(Me);De.delete(fe),_e=So(Array.from(De),{checked:!1,halfCheckedKeys:Ne},a.value,u.value,d.value,f).checkedKeys}C(fe,!ye,_e,Pe)}}$(fe)}}),null),checked:ye}};const pe=re=>{let{record:de,index:ge}=re;const{node:me,checked:fe}=q({record:de,index:ge});return B?B(fe,de,ge,me):me};if(!Z.includes(yr))if(Z.findIndex(re=>{var de;return((de=re[va])===null||de===void 0?void 0:de.columnType)==="EXPAND_COLUMN"})===0){const[re,...de]=Z;Z=[re,yr,...de]}else Z=[yr,...Z];const W=Z.indexOf(yr);Z=Z.filter((re,de)=>re!==yr||de===W);const X=Z[W-1],ne=Z[W+1];let ae=M;ae===void 0&&((ne==null?void 0:ne.fixed)!==void 0?ae=ne.fixed:(X==null?void 0:X.fixed)!==void 0&&(ae=X.fixed)),ae&&X&&((_=X[va])===null||_===void 0?void 0:_.columnType)==="EXPAND_COLUMN"&&X.fixed===void 0&&(X.fixed=ae);const se={fixed:ae,width:R,className:`${L.value}-selection-column`,title:n.value.columnTitle||K,customRender:pe,[va]:{class:`${L.value}-selection-col`}};return Z.map(re=>re===yr?se:re)},b]}var qde={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const Zde=qde;function G2(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=yt(e),n=[];return t.forEach(o=>{var r,l,i,a;if(!o)return;const s=o.key,c=((r=o.props)===null||r===void 0?void 0:r.style)||{},u=((l=o.props)===null||l===void 0?void 0:l.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[mi(b)]=y;const f=o.children||{},{default:g}=f,v=rfe(f,["default"]),h=m(m(m({},v),d),{style:c,class:u});if(s&&(h.key=s),!((i=o.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)h.children=N5(typeof g=="function"?g():g);else{const b=(a=o.children)===null||a===void 0?void 0:a.default;h.customRender=h.customRender||b}n.push(h)}),n}const dd="ascend",Dh="descend";function wf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function U2(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function lfe(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Tm(e,t,n){let o=[];function r(l,i){o.push({column:l,key:pi(l,i),multiplePriority:wf(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,i)=>{const a=Wc(i,n);l.children?("sortOrder"in l&&r(l,a),o=[...o,...Tm(l.children,t,a)]):l.sorter&&("sortOrder"in l?r(l,a):t&&l.defaultSortOrder&&o.push({column:l,key:pi(l,a),multiplePriority:wf(l),sortOrder:l.defaultSortOrder}))}),o}function F5(e,t,n,o,r,l,i,a){return(t||[]).map((s,c)=>{const u=Wc(c,a);let d=s;if(d.sorter){const f=d.sortDirections||r,g=d.showSorterTooltip===void 0?i:d.showSorterTooltip,v=pi(d,u),h=n.find(T=>{let{key:_}=T;return _===v}),b=h?h.sortOrder:null,y=lfe(f,b),S=f.includes(dd)&&p(ofe,{class:ie(`${e}-column-sorter-up`,{active:b===dd}),role:"presentation"},null),$=f.includes(Dh)&&p(Jde,{role:"presentation",class:ie(`${e}-column-sorter-down`,{active:b===Dh})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=l||{};let w=x;y===Dh?w=O:y===dd&&(w=C);const I=typeof g=="object"?g:{title:w};d=m(m({},d),{className:ie(d.className,{[`${e}-column-sort`]:b}),title:T=>{const _=p("div",{class:`${e}-column-sorters`},[p("span",{class:`${e}-column-title`},[P1(s.title,T)]),p("span",{class:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[p("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?p(Yn,I,{default:()=>[_]}):_},customHeaderCell:T=>{const _=s.customHeaderCell&&s.customHeaderCell(T)||{},E=_.onClick,A=_.onKeydown;return _.onClick=R=>{o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),E&&E(R)},_.onKeydown=R=>{R.keyCode===Oe.ENTER&&(o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),A==null||A(R))},b&&(_["aria-sort"]=b==="ascend"?"ascending":"descending"),_.class=ie(_.class,`${e}-column-has-sorters`),_.tabindex=0,_}})}return"children"in d&&(d=m(m({},d),{children:F5(e,d.children,n,o,r,l,i,u)})),d})}function Y2(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function q2(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(Y2);return t.length===0&&e.length?m(m({},Y2(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Em(e,t,n){const o=t.slice().sort((i,a)=>a.multiplePriority-i.multiplePriority),r=e.slice(),l=o.filter(i=>{let{column:{sorter:a},sortOrder:s}=i;return U2(a)&&s});return l.length?r.sort((i,a)=>{for(let s=0;s{const a=i[n];return a?m(m({},i),{[n]:Em(a,t,n)}):i}):r}function ife(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:l,showSorterTooltip:i}=e;const[a,s]=vt(Tm(n.value,!0)),c=P(()=>{let v=!0;const h=Tm(n.value,!1);if(!h.length)return a.value;const b=[];function y($){v?b.push($):b.push(m(m({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?v=!1:S=!0)):(S&&$.multiplePriority!==!1||(v=!1),y($))}),b}),u=P(()=>{const v=c.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let h;v.multiplePriority===!1||!c.value.length||c.value[0].multiplePriority===!1?h=[v]:h=[...c.value.filter(b=>{let{key:y}=b;return y!==v.key}),v],s(h),o(q2(h),h)}const f=v=>F5(t.value,v,c.value,d,r.value,l.value,i.value),g=P(()=>q2(c.value));return[f,c,u,g]}var afe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const sfe=afe;function Z2(e){for(var t=1;t{const{keyCode:t}=e;t===Oe.ENTER&&e.stopPropagation()},ffe=(e,t)=>{let{slots:n}=t;var o;return p("div",{onClick:r=>r.stopPropagation(),onKeydown:dfe},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},pfe=ffe,Q2=oe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Be(),onChange:ve(),filterSearch:Le([Boolean,Function]),tablePrefixCls:Be(),locale:Re()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:l}=e;return o?p("div",{class:`${r}-filter-dropdown-search`},[p(tn,{placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>p(mp,null,null)})]):null}}});var J2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Rc()),s=(c,u)=>{var d,f,g,v;u==="appear"?(f=(d=a.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,c):u==="leave"&&((v=(g=a.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,c)),i.value||e.onMotionEnd(),i.value=!0};return be(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&&ot(()=>{r.value=!1})},{immediate:!0,flush:"post"}),je(()=>{e.motionNodes&&e.onMotionStart()}),Ze(()=>{e.motionNodes&&s()}),()=>{const{motion:c,motionNodes:u,motionType:d,active:f,eventKey:g}=e,v=J2(e,["motion","motionNodes","motionType","active","eventKey"]);return u?p(cn,D(D({},a.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[$n(p("div",{class:`${l.value.prefixCls}-treenode-motion`},[u.map(h=>{const b=J2(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,p(Qv,D(D({},b),{},{title:y,active:f,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[En,r.value]])]}):p(Qv,D(D({class:n.class,style:n.style},v),{},{active:f,eventKey:g}),o)}}});function hfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(l,i){const a=new Map;l.forEach(c=>{a.set(c,!0)});const s=i.filter(c=>!a.has(c));return s.length===1?s[0]:null}return ni.key===n),r=e[o+1],l=t.findIndex(i=>i.key===n);if(r){const i=t.findIndex(a=>a.key===r.key);return t.slice(l+1,i)}return t.slice(l+1)}var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},gi=`RC_TREE_MOTION_${Math.random()}`,Mm={key:gi},L5={key:gi,level:0,index:0,pos:"0",node:Mm,nodes:[Mm]},o4={parent:null,children:[],pos:L5.pos,data:Mm,title:null,key:gi,isStart:[],isEnd:[]};function r4(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function l4(e){const{key:t,pos:n}=e;return Lc(t,n)}function mfe(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const bfe=oe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:RJ,setup(e,t){let{expose:n,attrs:o}=t;const r=le(),l=le(),{expandedKeys:i,flattenNodes:a}=a8();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>l.value.offsetWidth});const s=te(a.value),c=te([]),u=le(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const f=Ey();be([()=>i.value.slice(),a],(h,b)=>{let[y,S]=h,[$,x]=b;const C=hfe($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:I}=e;if(C.add){const T=x.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(x,S,C.key),O,w,I),E=x.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="show"}else{const T=S.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(S,x,C.key),O,w,I),E=S.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="hide"}}else x!==S&&(s.value=S)}),be(()=>f.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:a.value),v=()=>{e.onActiveChange(null)};return()=>{const h=m(m({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:I,activeItem:T,focused:_,tabindex:E,onKeydown:A,onFocus:R,onBlur:z,onListChangeStart:M,onListChangeEnd:B}=h,N=t4(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(We,null,[_&&T&&p("span",{style:n4,"aria-live":"assertive"},[mfe(T)]),p("div",null,[p("input",{style:n4,disabled:I===!1||$,tabindex:I!==!1?E:null,onKeydown:A,onFocus:R,onBlur:z,value:"",onChange:vfe,"aria-label":"for screen reader"},null)]),p("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${b}-indent`},[p("div",{ref:l,class:`${b}-indent-unit`},null)])]),p(DI,D(D({},et(N,["onActiveChange"])),{},{data:g.value,itemKey:l4,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(F,L)=>{const k=new Set(F);L.filter(H=>!k.has(H)).some(H=>l4(H)===gi)&&d()}}),{default:F=>{const{pos:L}=F,k=t4(F.data,[]),{title:j,key:H,isStart:Y,isEnd:Z}=F,U=Lc(H,L);return delete k.key,delete k.children,p(gfe,D(D({},k),{},{eventKey:U,title:j,active:!!T&&H===T.key,data:F.data,isStart:Y,isEnd:Z,motion:x,motionNodes:H===gi?c.value:null,motionType:u.value,onMotionStart:M,onMotionEnd:d,onMousemove:v}),null)}})])}}});function yfe(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return p("div",{style:r},null)}const Sfe=10,k5=oe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:qe(c8(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:yfe,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1);let i={};const a=te(),s=te([]),c=te([]),u=te([]),d=te([]),f=te([]),g=te([]),v={},h=ut({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=te([]);be([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?e.treeData.slice():em(Qe(e.children))},{immediate:!0,deep:!0});const y=te({}),S=te(!1),$=te(null),x=te(!1),C=P(()=>Fp(e.fieldNames)),O=te();let w=null,I=null,T=null;const _=P(()=>({expandedKeysSet:E.value,selectedKeysSet:A.value,loadedKeysSet:R.value,loadingKeysSet:z.value,checkedKeysSet:M.value,halfCheckedKeysSet:B.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),E=P(()=>new Set(g.value)),A=P(()=>new Set(s.value)),R=P(()=>new Set(d.value)),z=P(()=>new Set(f.value)),M=P(()=>new Set(c.value)),B=P(()=>new Set(u.value));ke(()=>{if(b.value){const $e=kc(b.value,{fieldNames:C.value});y.value=m({[gi]:L5},$e.keyEntities)}});let N=!1;be([()=>e.expandedKeys,()=>e.autoExpandParent,y],($e,xe)=>{let[we,Me]=$e,[Ne,_e]=xe,De=g.value;if(e.expandedKeys!==void 0||N&&Me!==_e)De=e.autoExpandParent||!N&&e.defaultExpandParent?Jv(e.expandedKeys,y.value):e.expandedKeys;else if(!N&&e.defaultExpandAll){const Je=m({},y.value);delete Je[gi],De=Object.keys(Je).map(ft=>Je[ft].key)}else!N&&e.defaultExpandedKeys&&(De=e.autoExpandParent||e.defaultExpandParent?Jv(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);De&&(g.value=De),N=!0},{immediate:!0});const F=te([]);ke(()=>{F.value=HJ(b.value,g.value,C.value)}),ke(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=pw(e.selectedKeys,e):!N&&e.defaultSelectedKeys&&(s.value=pw(e.defaultSelectedKeys,e)))});const{maxLevel:L,levelEntities:k}=Hp(y);ke(()=>{if(e.checkable){let $e;if(e.checkedKeys!==void 0?$e=vh(e.checkedKeys)||{}:!N&&e.defaultCheckedKeys?$e=vh(e.defaultCheckedKeys)||{}:b.value&&($e=vh(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),$e){let{checkedKeys:xe=[],halfCheckedKeys:we=[]}=$e;e.checkStrictly||({checkedKeys:xe,halfCheckedKeys:we}=So(xe,!0,y.value,L.value,k.value)),c.value=xe,u.value=we}}}),ke(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const j=()=>{m(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=$e=>{O.value.scrollTo($e)};be(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),be($,$e=>{ot(()=>{$e!==null&&H({key:$e})})},{immediate:!0,flush:"post"});const Y=$e=>{e.expandedKeys===void 0&&(g.value=$e)},Z=()=>{h.draggingNodeKey!==null&&m(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,T=null},U=($e,xe)=>{const{onDragend:we}=e;h.dragOverNodeKey=null,Z(),we==null||we({event:$e,node:xe.eventData}),I=null},ee=$e=>{U($e,null),window.removeEventListener("dragend",ee)},G=($e,xe)=>{const{onDragstart:we}=e,{eventKey:Me,eventData:Ne}=xe;I=xe,w={x:$e.clientX,y:$e.clientY};const _e=qo(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=FJ(Me,y.value),a.value=O.value.getIndentWidth(),Y(_e),window.addEventListener("dragend",ee),we&&we({event:$e,node:Ne})},J=($e,xe)=>{const{onDragenter:we,onExpand:Me,allowDrop:Ne,direction:_e}=e,{pos:De,eventKey:Je}=xe;if(T!==Je&&(T=Je),!I){j();return}const{dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt,dragOverNodeKey:rn}=fw($e,I,xe,a.value,w,Ne,F.value,y.value,E.value,_e);if(h.dragChildrenKeys.indexOf(pt)!==-1||!Jt){j();return}if(i||(i={}),Object.keys(i).forEach(jt=>{clearTimeout(i[jt])}),I.eventKey!==xe.eventKey&&(i[De]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let jt=g.value.slice();const xn=y.value[xe.eventKey];xn&&(xn.children||[]).length&&(jt=mr(g.value,xe.eventKey)),Y(jt),Me&&Me(jt,{node:xe.eventData,expanded:!0,nativeEvent:$e})},800)),I.eventKey===pt&&it===0){j();return}m(h,{dragOverNodeKey:rn,dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt}),we&&we({event:$e,node:xe.eventData,expandedKeys:g.value})},Q=($e,xe)=>{const{onDragover:we,allowDrop:Me,direction:Ne}=e;if(!I)return;const{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropAllowed:it,dropTargetPos:pt,dragOverNodeKey:ht}=fw($e,I,xe,a.value,w,Me,F.value,y.value,E.value,Ne);h.dragChildrenKeys.indexOf(Je)!==-1||!it||(I.eventKey===Je&&De===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||j():_e===h.dropPosition&&De===h.dropLevelOffset&&Je===h.dropTargetKey&&ft===h.dropContainerKey&&pt===h.dropTargetPos&&it===h.dropAllowed&&ht===h.dragOverNodeKey||m(h,{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropTargetPos:pt,dropAllowed:it,dragOverNodeKey:ht}),we&&we({event:$e,node:xe.eventData}))},K=($e,xe)=>{T===xe.eventKey&&!$e.currentTarget.contains($e.relatedTarget)&&(j(),T=null);const{onDragleave:we}=e;we&&we({event:$e,node:xe.eventData})},q=function($e,xe){let we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Ne,dropPosition:_e,dropTargetKey:De,dropTargetPos:Je,dropAllowed:ft}=h;if(!ft)return;const{onDrop:it}=e;if(h.dragOverNodeKey=null,Z(),De===null)return;const pt=m(m({},Uu(De,Qe(_.value))),{active:((Me=he.value)===null||Me===void 0?void 0:Me.key)===De,data:y.value[De].node});Ne.indexOf(De);const ht=My(Je),Ut={event:$e,node:Yu(pt),dragNode:I?I.eventData:null,dragNodesKeys:[I.eventKey].concat(Ne),dropToGap:_e!==0,dropPosition:_e+Number(ht[ht.length-1])};we||it==null||it(Ut),I=null},pe=($e,xe)=>{const{expanded:we,key:Me}=xe,Ne=F.value.filter(De=>De.key===Me)[0],_e=Yu(m(m({},Uu(Me,_.value)),{data:Ne.data}));Y(we?qo(g.value,Me):mr(g.value,Me)),ye($e,_e)},W=($e,xe)=>{const{onClick:we,expandAction:Me}=e;Me==="click"&&pe($e,xe),we&&we($e,xe)},X=($e,xe)=>{const{onDblclick:we,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&pe($e,xe),we&&we($e,xe)},ne=($e,xe)=>{let we=s.value;const{onSelect:Me,multiple:Ne}=e,{selected:_e}=xe,De=xe[C.value.key],Je=!_e;Je?Ne?we=mr(we,De):we=[De]:we=qo(we,De);const ft=y.value,it=we.map(pt=>{const ht=ft[pt];return ht?ht.node:null}).filter(pt=>pt);e.selectedKeys===void 0&&(s.value=we),Me&&Me(we,{event:"select",selected:Je,node:xe,selectedNodes:it,nativeEvent:$e})},ae=($e,xe,we)=>{const{checkStrictly:Me,onCheck:Ne}=e,_e=xe[C.value.key];let De;const Je={event:"check",node:xe,checked:we,nativeEvent:$e},ft=y.value;if(Me){const it=we?mr(c.value,_e):qo(c.value,_e),pt=qo(u.value,_e);De={checked:it,halfChecked:pt},Je.checkedNodes=it.map(ht=>ft[ht]).filter(ht=>ht).map(ht=>ht.node),e.checkedKeys===void 0&&(c.value=it)}else{let{checkedKeys:it,halfCheckedKeys:pt}=So([...c.value,_e],!0,ft,L.value,k.value);if(!we){const ht=new Set(it);ht.delete(_e),{checkedKeys:it,halfCheckedKeys:pt}=So(Array.from(ht),{checked:!1,halfCheckedKeys:pt},ft,L.value,k.value)}De=it,Je.checkedNodes=[],Je.checkedNodesPositions=[],Je.halfCheckedKeys=pt,it.forEach(ht=>{const Ut=ft[ht];if(!Ut)return;const{node:Jt,pos:rn}=Ut;Je.checkedNodes.push(Jt),Je.checkedNodesPositions.push({node:Jt,pos:rn})}),e.checkedKeys===void 0&&(c.value=it,u.value=pt)}Ne&&Ne(De,Je)},se=$e=>{const xe=$e[C.value.key],we=new Promise((Me,Ne)=>{const{loadData:_e,onLoad:De}=e;if(!_e||R.value.has(xe)||z.value.has(xe))return null;_e($e).then(()=>{const ft=mr(d.value,xe),it=qo(f.value,xe);De&&De(ft,{event:"load",node:$e}),e.loadedKeys===void 0&&(d.value=ft),f.value=it,Me()}).catch(ft=>{const it=qo(f.value,xe);if(f.value=it,v[xe]=(v[xe]||0)+1,v[xe]>=Sfe){const pt=mr(d.value,xe);e.loadedKeys===void 0&&(d.value=pt),Me()}Ne(ft)}),f.value=mr(f.value,xe)});return we.catch(()=>{}),we},re=($e,xe)=>{const{onMouseenter:we}=e;we&&we({event:$e,node:xe})},de=($e,xe)=>{const{onMouseleave:we}=e;we&&we({event:$e,node:xe})},ge=($e,xe)=>{const{onRightClick:we}=e;we&&($e.preventDefault(),we({event:$e,node:xe}))},me=$e=>{const{onFocus:xe}=e;S.value=!0,xe&&xe($e)},fe=$e=>{const{onBlur:xe}=e;S.value=!1,ce(null),xe&&xe($e)},ye=($e,xe)=>{let we=g.value;const{onExpand:Me,loadData:Ne}=e,{expanded:_e}=xe,De=xe[C.value.key];if(x.value)return;we.indexOf(De);const Je=!_e;if(Je?we=mr(we,De):we=qo(we,De),Y(we),Me&&Me(we,{node:xe,expanded:Je,nativeEvent:$e}),Je&&Ne){const ft=se(xe);ft&&ft.then(()=>{}).catch(it=>{const pt=qo(g.value,De);Y(pt),Promise.reject(it)})}},Se=()=>{x.value=!0},ue=()=>{setTimeout(()=>{x.value=!1})},ce=$e=>{const{onActiveChange:xe}=e;$.value!==$e&&(e.activeKey!==void 0&&($.value=$e),$e!==null&&H({key:$e}),xe&&xe($e))},he=P(()=>$.value===null?null:F.value.find($e=>{let{key:xe}=$e;return xe===$.value})||null),Pe=$e=>{let xe=F.value.findIndex(Me=>{let{key:Ne}=Me;return Ne===$.value});xe===-1&&$e<0&&(xe=F.value.length),xe=(xe+$e+F.value.length)%F.value.length;const we=F.value[xe];if(we){const{key:Me}=we;ce(Me)}else ce(null)},Ie=P(()=>Yu(m(m({},Uu($.value,_.value)),{data:he.value.data,active:!0}))),Ae=$e=>{const{onKeydown:xe,checkable:we,selectable:Me}=e;switch($e.which){case Oe.UP:{Pe(-1),$e.preventDefault();break}case Oe.DOWN:{Pe(1),$e.preventDefault();break}}const Ne=he.value;if(Ne&&Ne.data){const _e=Ne.data.isLeaf===!1||!!(Ne.data.children||[]).length,De=Ie.value;switch($e.which){case Oe.LEFT:{_e&&E.value.has($.value)?ye({},De):Ne.parent&&ce(Ne.parent.key),$e.preventDefault();break}case Oe.RIGHT:{_e&&!E.value.has($.value)?ye({},De):Ne.children&&Ne.children.length&&ce(Ne.children[0].key),$e.preventDefault();break}case Oe.ENTER:case Oe.SPACE:{we&&!De.disabled&&De.checkable!==!1&&!De.disableCheckbox?ae({},De,!M.value.has($.value)):!we&&Me&&!De.disabled&&De.selectable!==!1&&ne({},De);break}}}xe&&xe($e)};return r({onNodeExpand:ye,scrollTo:H,onKeydown:Ae,selectedKeys:P(()=>s.value),checkedKeys:P(()=>c.value),halfCheckedKeys:P(()=>u.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>f.value),expandedKeys:P(()=>g.value)}),Rn(()=>{window.removeEventListener("dragend",ee),l.value=!0}),MJ({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:E,selectedKeysSet:A,loadedKeysSet:R,loadingKeysSet:z,checkedKeysSet:M,halfCheckedKeysSet:B,flattenNodes:F}),()=>{const{draggingNodeKey:$e,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e}=h,{prefixCls:De,showLine:Je,focusable:ft,tabindex:it=0,selectable:pt,showIcon:ht,icon:Ut=o.icon,switcherIcon:Jt,draggable:rn,checkable:jt,checkStrictly:xn,disabled:Wn,motion:uo,loadData:To,filterTreeNode:Vn,height:El,itemHeight:Ee,virtual:Ue,dropIndicatorRender:Ke,onContextmenu:Ct,onScroll:en,direction:Wt,rootClassName:Kn,rootStyle:gn}=e,{class:Go,style:Jn}=n,fo=wl(m(m({},e),n),{aria:!0,data:!0});let At;return rn?typeof rn=="object"?At=rn:typeof rn=="function"?At={nodeDraggable:rn}:At={}:At=!1,p(EJ,{value:{prefixCls:De,selectable:pt,showIcon:ht,icon:Ut,switcherIcon:Jt,draggable:At,draggingNodeKey:$e,checkable:jt,customCheckable:o.checkable,checkStrictly:xn,disabled:Wn,keyEntities:y.value,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e,dragging:$e!==null,indent:a.value,direction:Wt,dropIndicatorRender:Ke,loadData:To,filterTreeNode:Vn,onNodeClick:W,onNodeDoubleClick:X,onNodeExpand:ye,onNodeSelect:ne,onNodeCheck:ae,onNodeLoad:se,onNodeMouseEnter:re,onNodeMouseLeave:de,onNodeContextMenu:ge,onNodeDragStart:G,onNodeDragEnter:J,onNodeDragOver:Q,onNodeDragLeave:K,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[p("div",{role:"tree",class:ie(De,Go,Kn,{[`${De}-show-line`]:Je,[`${De}-focused`]:S.value,[`${De}-active-focused`]:$.value!==null}),style:gn},[p(bfe,D({ref:O,prefixCls:De,style:Jn,disabled:Wn,selectable:pt,checkable:!!jt,motion:uo,height:El,itemHeight:Ee,virtual:Ue,focusable:ft,focused:S.value,tabindex:it,activeItem:he.value,onFocus:me,onBlur:fe,onKeydown:Ae,onActiveChange:ce,onListChangeStart:Se,onListChangeEnd:ue,onContextmenu:Ct,onScroll:en},fo),null)])]})}}});var $fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Cfe=$fe;function i4(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kfe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),zfe=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l}=t,i=(l-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:m(m({},Xe(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:m({},Ar(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ffe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:m({},Ar(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:l,lineHeight:`${l}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:m(m({},Lfe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${l}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l/2*.8,height:l/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${l}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${l}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:m({lineHeight:`${l}px`,userSelect:"none"},kfe(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${l/2}px !important`}}}}})}},Hfe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},j5=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,l=t.controlHeightSM,i=Fe(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l});return[zfe(e,i),Hfe(i)]},jfe=Ve("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Kp(`${n}-checkbox`,e)},j5(n,e),Ac(e)]}),W5=()=>{const e=c8();return m(m({},e),{showLine:Le([Boolean,Object]),multiple:Ce(),autoExpandParent:Ce(),checkStrictly:Ce(),checkable:Ce(),disabled:Ce(),defaultExpandAll:Ce(),defaultExpandParent:Ce(),defaultExpandedKeys:at(),expandedKeys:at(),checkedKeys:Le([Array,Object]),defaultCheckedKeys:at(),selectedKeys:at(),defaultSelectedKeys:at(),selectable:Ce(),loadedKeys:at(),draggable:Ce(),showIcon:Ce(),icon:ve(),switcherIcon:V.any,prefixCls:String,replaceFields:Re(),blockNode:Ce(),openAnimation:V.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":ve(),"onUpdate:checkedKeys":ve(),"onUpdate:expandedKeys":ve()})},fd=oe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:qe(W5(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:l}=t;e.treeData===void 0&&l.default;const{prefixCls:i,direction:a,virtual:s}=Te("tree",e),[c,u]=jfe(i),d=le();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),ke(()=>{xt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},v=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=l.switcherIcon,icon:$=l.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:I=e.openAnimation,itemHeight:T=28,onDoubleclick:_,onDblclick:E}=e,A=m(m(m({},n),et(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:Nfe,fieldNames:w,icon:$,itemHeight:T}),R=l.default?_t(l.default()):void 0;return c(p(k5,D(D({},A),{},{virtual:s.value,motion:I,ref:d,prefixCls:i.value,class:ie({[`${i.value}-icon-hide`]:!b,[`${i.value}-block-node`]:x,[`${i.value}-unselectable`]:!O,[`${i.value}-rtl`]:a.value==="rtl"},n.class,u.value),direction:a.value,checkable:C,selectable:O,switcherIcon:z=>H5(i.value,S,z,l.leafIcon,y),onCheck:g,onExpand:v,onSelect:h,onDblclick:E||_,children:R}),m(m({},l),{checkable:()=>p("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var Wfe={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"};const Vfe=Wfe;function d4(e){for(var t=1;t{if(a===Sr.End)return!1;if(s(c)){if(i.push(c),a===Sr.None)a=Sr.Start;else if(a===Sr.Start)return a=Sr.End,!1}else a===Sr.Start&&i.push(c);return n.includes(c)}),i}function Bh(e,t,n){const o=[...t],r=[];return D1(e,n,(l,i)=>{const a=o.indexOf(l);return a!==-1&&(r.push(i),o.splice(a,1)),!!o.length}),r}var Qfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},W5()),{expandAction:Le([Boolean,String])});function epe(e){const{isLeaf:t,expanded:n}=e;return p(t?z5:n?Gfe:qfe,null,null)}const pd=oe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:qe(Jfe(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;var i;const a=le(e.treeData||em(_t((i=o.default)===null||i===void 0?void 0:i.call(o))));be(()=>e.treeData,()=>{a.value=e.treeData}),An(()=>{ot(()=>{var T;e.treeData===void 0&&o.default&&(a.value=em(_t((T=o.default)===null||T===void 0?void 0:T.call(o))))})});const s=le(),c=le(),u=P(()=>Fp(e.fieldNames)),d=le();l({scrollTo:T=>{var _;(_=d.value)===null||_===void 0||_.scrollTo(T)},selectedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.selectedKeys}),checkedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.checkedKeys}),halfCheckedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.halfCheckedKeys}),loadedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadedKeys}),loadingKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadingKeys}),expandedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.expandedKeys})});const g=()=>{const{keyEntities:T}=kc(a.value,{fieldNames:u.value});let _;return e.defaultExpandAll?_=Object.keys(T):e.defaultExpandParent?_=Jv(e.expandedKeys||e.defaultExpandedKeys||[],T):_=e.expandedKeys||e.defaultExpandedKeys,_},v=le(e.selectedKeys||e.defaultSelectedKeys||[]),h=le(g());be(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),be(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=Sb((T,_)=>{const{isLeaf:E}=_;E||T.shiftKey||T.metaKey||T.ctrlKey||d.value.onNodeExpand(T,_)},200,{leading:!0}),S=(T,_)=>{e.expandedKeys===void 0&&(h.value=T),r("update:expandedKeys",T),r("expand",T,_)},$=(T,_)=>{const{expandAction:E}=e;E==="click"&&y(T,_),r("click",T,_)},x=(T,_)=>{const{expandAction:E}=e;(E==="dblclick"||E==="doubleclick")&&y(T,_),r("doubleclick",T,_),r("dblclick",T,_)},C=(T,_)=>{const{multiple:E}=e,{node:A,nativeEvent:R}=_,z=A[u.value.key],M=m(m({},_),{selected:!0}),B=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),N=R==null?void 0:R.shiftKey;let F;E&&B?(F=T,s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)):E&&N?(F=Array.from(new Set([...c.value||[],...Zfe({treeData:a.value,expandedKeys:h.value,startKey:z,endKey:s.value,fieldNames:u.value})])),M.selectedNodes=Bh(a.value,F,u.value)):(F=[z],s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)),r("update:selectedKeys",F),r("select",F,M),e.selectedKeys===void 0&&(v.value=F)},O=(T,_)=>{r("update:checkedKeys",T),r("check",T,_)},{prefixCls:w,direction:I}=Te("tree",e);return()=>{const T=ie(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:I.value==="rtl"},n.class),{icon:_=o.icon,blockNode:E=!0}=e,A=Qfe(e,["icon","blockNode"]);return p(fd,D(D(D({},n),{},{icon:_||epe,ref:d,blockNode:E},A),{},{prefixCls:w.value,class:T,expandedKeys:h.value,selectedKeys:v.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),gd=Qv,V5=m(fd,{DirectoryTree:pd,TreeNode:gd,install:e=>(e.component(fd.name,fd),e.component(gd.name,gd),e.component(pd.name,pd),e)});function p4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(l);if(Yf(!s,"Warning: There may be circular references"),s)return!1;if(l===i)return!0;if(n&&a>1)return!1;o.add(l);const c=a+1;if(Array.isArray(l)){if(!Array.isArray(i)||l.length!==i.length)return!1;for(let u=0;ur(l[d],i[d],c))}return!1}return r(e,t)}const{SubMenu:tpe,Item:npe}=Vt;function ope(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function K5(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function G5(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i}=e;return t.map((a,s)=>{const c=String(a.value);if(a.children)return p(tpe,{key:c||s,title:a.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[G5({filters:a.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i})]});const u=r?$o:Nn,d=p(npe,{key:a.value!==void 0?c:s},{default:()=>[p(u,{checked:o.includes(c)},null),p("span",null,[a.text])]});return l.trim()?typeof i=="function"?i(l,a)?d:void 0:K5(l,a.text)?d:void 0:d})}const rpe=oe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=C1(),r=P(()=>{var H;return(H=e.filterMode)!==null&&H!==void 0?H:"menu"}),l=P(()=>{var H;return(H=e.filterSearch)!==null&&H!==void 0?H:!1}),i=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),a=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=te(!1),c=P(()=>{var H;return!!(e.filterState&&(!((H=e.filterState.filteredKeys)===null||H===void 0)&&H.length||e.filterState.forceFiltered))}),u=P(()=>{var H;return Jp((H=e.column)===null||H===void 0?void 0:H.filters)}),d=P(()=>{const{filterDropdown:H,slots:Y={},customFilterDropdown:Z}=e.column;return H||Y.filterDropdown&&o.value[Y.filterDropdown]||Z&&o.value.customFilterDropdown}),f=P(()=>{const{filterIcon:H,slots:Y={}}=e.column;return H||Y.filterIcon&&o.value[Y.filterIcon]||o.value.customFilterIcon}),g=H=>{var Y;s.value=H,(Y=a.value)===null||Y===void 0||Y.call(a,H)},v=P(()=>typeof i.value=="boolean"?i.value:s.value),h=P(()=>{var H;return(H=e.filterState)===null||H===void 0?void 0:H.filteredKeys}),b=te([]),y=H=>{let{selectedKeys:Y}=H;b.value=Y},S=(H,Y)=>{let{node:Z,checked:U}=Y;e.filterMultiple?y({selectedKeys:H}):y({selectedKeys:U&&Z.key?[Z.key]:[]})};be(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=te([]),x=te(),C=H=>{x.value=setTimeout(()=>{$.value=H})},O=()=>{clearTimeout(x.value)};Ze(()=>{clearTimeout(x.value)});const w=te(""),I=H=>{const{value:Y}=H.target;w.value=Y};be(s,()=>{s.value||(w.value="")});const T=H=>{const{column:Y,columnKey:Z,filterState:U}=e,ee=H&&H.length?H:null;if(ee===null&&(!U||!U.filteredKeys)||p4(ee,U==null?void 0:U.filteredKeys,!0))return null;e.triggerFilter({column:Y,key:Z,filteredKeys:ee})},_=()=>{g(!1),T(b.value)},E=function(){let{confirm:H,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&T([]),Y&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(Z=>String(Z)):b.value=[]},A=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&g(!1),T(b.value)},R=H=>{H&&h.value!==void 0&&(b.value=h.value||[]),g(H),!H&&!d.value&&_()},{direction:z}=Te("",e),M=H=>{if(H.target.checked){const Y=u.value;b.value=Y}else b.value=[]},B=H=>{let{filters:Y}=H;return(Y||[]).map((Z,U)=>{const ee=String(Z.value),G={title:Z.text,key:Z.value!==void 0?ee:U};return Z.children&&(G.children=B({filters:Z.children})),G})},N=H=>{var Y;return m(m({},H),{text:H.title,value:H.key,children:((Y=H.children)===null||Y===void 0?void 0:Y.map(Z=>N(Z)))||[]})},F=P(()=>B({filters:e.column.filters})),L=P(()=>ie({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!ope(e.column.filters||[])})),k=()=>{const H=b.value,{column:Y,locale:Z,tablePrefixCls:U,filterMultiple:ee,dropdownPrefixCls:G,getPopupContainer:J,prefixCls:Q}=e;return(Y.filters||[]).length===0?p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,description:Z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p("div",{class:`${U}-filter-dropdown-tree`},[ee?p($o,{class:`${U}-filter-dropdown-checkall`,onChange:M,checked:H.length===u.value.length,indeterminate:H.length>0&&H.length[Z.filterCheckall]}):null,p(V5,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,class:`${G}-menu`,onCheck:S,checkedKeys:H,selectedKeys:H,showIcon:!1,treeData:F.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?K=>typeof l.value=="function"?l.value(w.value,N(K)):K5(w.value,K.title):void 0},null)])]):p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p(Vt,{multiple:ee,prefixCls:`${G}-menu`,class:L.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:H,getPopupContainer:J,openKeys:$.value,onOpenChange:C},{default:()=>G5({filters:Y.filters||[],filterSearch:l.value,prefixCls:Q,filteredKeys:b.value,filterMultiple:ee,searchValue:w.value})})])},j=P(()=>{const H=b.value;return e.column.filterResetToDefaultFilteredValue?p4((e.column.defaultFilteredValue||[]).map(Y=>String(Y)),H,!0):H.length===0});return()=>{var H;const{tablePrefixCls:Y,prefixCls:Z,column:U,dropdownPrefixCls:ee,locale:G,getPopupContainer:J}=e;let Q;typeof d.value=="function"?Q=d.value({prefixCls:`${ee}-custom`,setSelectedKeys:pe=>y({selectedKeys:pe}),selectedKeys:b.value,confirm:A,clearFilters:E,filters:U.filters,visible:v.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Q=d.value:Q=p(We,null,[k(),p("div",{class:`${Z}-dropdown-btns`},[p(zt,{type:"link",size:"small",disabled:j.value,onClick:()=>E()},{default:()=>[G.filterReset]}),p(zt,{type:"primary",size:"small",onClick:_},{default:()=>[G.filterConfirm]})])]);const K=p(pfe,{class:`${Z}-dropdown`},{default:()=>[Q]});let q;return typeof f.value=="function"?q=f.value({filtered:c.value,column:U.__originColumn__}):f.value?q=f.value:q=p(ufe,null,null),p("div",{class:`${Z}-column`},[p("span",{class:`${Y}-column-title`},[(H=n.default)===null||H===void 0?void 0:H.call(n)]),p(rr,{overlay:K,trigger:["click"],open:v.value,onOpenChange:R,getPopupContainer:J,placement:z.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[p("span",{role:"button",tabindex:-1,class:ie(`${Z}-trigger`,{active:c.value}),onClick:pe=>{pe.stopPropagation()}},[q])]})])}}});function _m(e,t,n){let o=[];return(e||[]).forEach((r,l)=>{var i,a;const s=Wc(l,n),c=r.filterDropdown||((i=r==null?void 0:r.slots)===null||i===void 0?void 0:i.filterDropdown)||r.customFilterDropdown;if(r.filters||c||"onFilter"in r)if("filteredValue"in r){let u=r.filteredValue;c||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),o.push({column:r,key:pi(r,s),filteredKeys:u,forceFiltered:r.filtered})}else o.push({column:r,key:pi(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,..._m(r.children,t,s)])}),o}function X5(e,t,n,o,r,l,i,a){return n.map((s,c)=>{var u;const d=Wc(c,a),{filterMultiple:f=!0,filterMode:g,filterSearch:v}=s;let h=s;const b=s.filterDropdown||((u=s==null?void 0:s.slots)===null||u===void 0?void 0:u.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=pi(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=m(m({},h),{title:$=>p(rpe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:f,filterMode:g,filterSearch:v,triggerFilter:l,locale:r,getPopupContainer:i},{default:()=>[P1(s.title,$)]})})}return"children"in h&&(h=m(m({},h),{children:X5(e,t,h.children,o,r,l,i,d)})),h})}function Jp(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...Jp(r)])}),t}function g4(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:l}=n;var i;const a=l.filterDropdown||((i=l==null?void 0:l.slots)===null||i===void 0?void 0:i.filterDropdown)||l.customFilterDropdown,{filters:s}=l;if(a)t[o]=r||null;else if(Array.isArray(r)){const c=Jp(s);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t}function h4(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:l},filteredKeys:i}=o;return r&&i&&i.length?n.filter(a=>i.some(s=>{const c=Jp(l),u=c.findIndex(f=>String(f)===String(s)),d=u!==-1?c[u]:s;return r(d,a)})):n},e)}function U5(e){return e.flatMap(t=>"children"in t?[t,...U5(t.children||[])]:[t])}function lpe(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:l,getPopupContainer:i}=e;const a=P(()=>U5(o.value)),[s,c]=vt(_m(a.value,!0)),u=P(()=>{const v=_m(a.value,!1);if(v.length===0)return v;let h=!0,b=!0;if(v.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(a.value||[]).map((S,$)=>pi(S,Wc($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=a.value[y.findIndex(x=>x===S.key)];return m(m({},S),{column:m(m({},S.column),$),forceFiltered:$.filtered})})}return xt(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),d=P(()=>g4(u.value)),f=v=>{const h=u.value.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),c(h),l(g4(h),h)};return[v=>X5(t.value,n.value,v,u.value,r.value,f,i.value),u,d]}function Y5(e,t){return e.map(n=>{const o=m({},n);return o.title=P1(o.title,t),"children"in o&&(o.children=Y5(o.children,t)),o})}function ipe(e){return[n=>Y5(n,e.value)]}function ape(e){return function(n){let{prefixCls:o,onExpand:r,record:l,expanded:i,expandable:a}=n;const s=`${o}-row-expand-icon`;return p("button",{type:"button",onClick:c=>{r(l,c),c.stopPropagation()},class:ie(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function q5(e,t){const n=t.value;return e.map(o=>{var r;if(o===yr||o===ol)return o;const l=m({},o),{slots:i={}}=l;return l.__originColumn__=o,xt(!("slots"in l),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(a=>{const s=i[a];l[a]===void 0&&n[s]&&(l[a]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(l.title=np(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in l&&Array.isArray(l.children)&&(l.children=q5(l.children,t)),l})}function spe(e){return[n=>q5(n,e)]}const cpe=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,l,i)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${l}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:m(m(m({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` - > ${t}-content, - > ${t}-header - `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},upe=cpe,dpe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:m(m({},Gt),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},fpe=dpe,ppe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},gpe=ppe,hpe=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:l,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:g,lineHeight:v,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-l,x=$*2+l*3,C=`${l}px ${a} ${s}`,O=S-l;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:m(m({},Jf(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:c,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:l},"&::after":{top:O,bottom:O,insetInlineStart:$,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*v-l*3)/2-Math.ceil((g*1.4-l*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},vpe=hpe,mpe=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T}=e,_=`${n}-dropdown`,E=`${t}-filter-dropdown`,A=`${n}-tree`,R=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:f,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[E]:m(m({},Xe(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:T,[`${_}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:w},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${E}-search`]:{padding:a,borderBottom:R,"&-input":{input:{minWidth:l},[o]:{color:x}}},[`${E}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:R}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},bpe=mpe,ype=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:a}=e,s=o;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:l,background:i},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},Spe=ype,$pe=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Cpe=$pe,xpe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},wpe=xpe,Ope=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},Ppe=Ope,Ipe=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:l,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+l*2},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[o]:{color:i,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},Tpe=Ipe,Epe=e=>{const{componentCls:t}=e,n=(o,r,l,i)=>({[`${t}${t}-${o}`]:{fontSize:i,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:m(m({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Mpe=Epe,_pe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},Ape=_pe,Rpe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Dpe=Rpe,Bpe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:a,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},Npe=Bpe,Fpe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},v4=Fpe,Lpe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:l,lineType:i,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:h,tableSelectedRowBg:b,tableSelectedRowHoverBg:y,tableFooterTextColor:S,tableFooterBg:$,paddingContentVerticalLG:x}=e,C=`${l}px ${i} ${a}`;return{[`${t}-wrapper`]:m(m({clear:"both",maxWidth:"100%"},zo()),{[t]:m(m({},Xe(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${x}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:C,borderBottom:"transparent"},"&:last-child > td":{borderBottom:C},[`&:first-child > td, - &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:C}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` - &${t}-row:hover > td, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},kpe=Ve("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:l,colorBorderSecondary:i,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:g,colorIconHover:v,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new gt(g),O=new gt(v),w=t,I=2,T=new gt($).onBackground(b).toHexString(),_=new gt(S).onBackground(b).toHexString(),E=new gt(f).onBackground(b).toHexString(),A=Fe(e,{tableFontSize:a,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:i,tableHeaderTextColor:r,tableHeaderBg:E,tableFooterTextColor:r,tableFooterBg:E,tableHeaderCellSplitColor:i,tableHeaderSortBg:T,tableHeaderSortHoverBg:_,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:E,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:I,zIndexTableSticky:I+1,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:l});return[Lpe(A),Cpe(A),v4(A),Dpe(A),bpe(A),upe(A),wpe(A),vpe(A),v4(A),gpe(A),Tpe(A),Spe(A),Npe(A),fpe(A),Mpe(A),Ape(A),Ppe(A)]}),zpe=[],Z5=()=>({prefixCls:Be(),columns:at(),rowKey:Le([String,Function]),tableLayout:Be(),rowClassName:Le([String,Function]),title:ve(),footer:ve(),id:Be(),showHeader:Ce(),components:Re(),customRow:ve(),customHeaderRow:ve(),direction:Be(),expandFixed:Le([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:at(),defaultExpandedRowKeys:at(),expandedRowRender:ve(),expandRowByClick:Ce(),expandIcon:ve(),onExpand:ve(),onExpandedRowsChange:ve(),"onUpdate:expandedRowKeys":ve(),defaultExpandAllRows:Ce(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ce(),expandedRowClassName:ve(),childrenColumnName:Be(),rowExpandable:ve(),sticky:Le([Boolean,Object]),dropdownPrefixCls:String,dataSource:at(),pagination:Le([Boolean,Object]),loading:Le([Boolean,Object]),size:Be(),bordered:Ce(),locale:Re(),onChange:ve(),onResizeColumn:ve(),rowSelection:Re(),getPopupContainer:ve(),scroll:Re(),sortDirections:at(),showSorterTooltip:Le([Boolean,Object],!0),transformCellText:ve()}),Hpe=oe({name:"InternalTable",inheritAttrs:!1,props:qe(m(m({},Z5()),{contextSlots:Re()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;xt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ede(P(()=>e.contextSlots)),tde({onResizeColumn:(ae,se)=>{l("resizeColumn",ae,se)}});const i=Va(),a=P(()=>{const ae=new Set(Object.keys(i.value).filter(se=>i.value[se]));return e.columns.filter(se=>!se.responsive||se.responsive.some(re=>ae.has(re)))}),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:f}=Te("table",e),[g,v]=kpe(d),h=P(()=>{var ae;return e.transformCellText||((ae=f.transformCellText)===null||ae===void 0?void 0:ae.value)}),[b]=Io("Table",jn.Table,ze(e,"locale")),y=P(()=>e.dataSource||zpe),S=P(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ae=>ae==null?void 0:ae[$.value])?"nest":e.expandedRowRender?"row":null),C=ut({body:null}),O=ae=>{m(C,ae)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ae=>ae==null?void 0:ae[e.rowKey]),[I]=Xde(y,$,w),T={},_=function(ae,se){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:de,scroll:ge,onChange:me}=e,fe=m(m({},T),ae);re&&(T.resetPagination(),fe.pagination.current&&(fe.pagination.current=1),de&&de.onChange&&de.onChange(1,fe.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&C.body&&I0(0,{getContainer:()=>C.body}),me==null||me(fe.pagination,fe.filters,fe.sorter,{currentDataSource:h4(Em(y.value,fe.sorterStates,$.value),fe.filterStates),action:se})},E=(ae,se)=>{_({sorter:ae,sorterStates:se},"sort",!1)},[A,R,z,M]=ife({prefixCls:d,mergedColumns:a,onSorterChange:E,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:ze(e,"showSorterTooltip")}),B=P(()=>Em(y.value,R.value,$.value)),N=(ae,se)=>{_({filters:ae,filterStates:se},"filter",!0)},[F,L,k]=lpe({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:a,onFilterChange:N,getPopupContainer:ze(e,"getPopupContainer")}),j=P(()=>h4(B.value,L.value)),[H]=spe(ze(e,"contextSlots")),Y=P(()=>{const ae={},se=k.value;return Object.keys(se).forEach(re=>{se[re]!==null&&(ae[re]=se[re])}),m(m({},z.value),{filters:ae})}),[Z]=ipe(Y),U=(ae,se)=>{_({pagination:m(m({},T.pagination),{current:ae,pageSize:se})},"paginate")},[ee,G]=Gde(P(()=>j.value.length),ze(e,"pagination"),U);ke(()=>{T.sorter=M.value,T.sorterStates=R.value,T.filters=k.value,T.filterStates=L.value,T.pagination=e.pagination===!1?{}:Kde(ee.value,e.pagination),T.resetPagination=G});const J=P(()=>{if(e.pagination===!1||!ee.value.pageSize)return j.value;const{current:ae=1,total:se,pageSize:re=wm}=ee.value;return xt(ae>0,"Table","`current` should be positive number."),j.value.lengthre?j.value.slice((ae-1)*re,ae*re):j.value:j.value.slice((ae-1)*re,ae*re)});ke(()=>{ot(()=>{const{total:ae,pageSize:se=wm}=ee.value;j.value.lengthse&&xt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Q=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),K=le();be(()=>e.rowSelection,()=>{K.value=e.rowSelection?m({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,pe]=Yde(K,{prefixCls:d,data:j,pageData:J,getRowKey:w,getRecordByKey:I,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),W=(ae,se,re)=>{let de;const{rowClassName:ge}=e;return typeof ge=="function"?de=ie(ge(ae,se,re)):de=ie(ge),ie({[`${d.value}-row-selected`]:pe.value.has(w.value(ae,se))},de)};r({selectedKeySet:pe});const X=P(()=>typeof e.indentSize=="number"?e.indentSize:15),ne=ae=>Z(q(F(A(H(ae)))));return()=>{var ae;const{expandIcon:se=o.expandIcon||ape(b.value),pagination:re,loading:de,bordered:ge}=e;let me,fe;if(re!==!1&&(!((ae=ee.value)===null||ae===void 0)&&ae.total)){let ce;ee.value.size?ce=ee.value.size:ce=s.value==="small"||s.value==="middle"?"small":void 0;const he=Ae=>p(Up,D(D({},ee.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,ee.value.class],size:ce}),null),Pe=u.value==="rtl"?"left":"right",{position:Ie}=ee.value;if(Ie!==null&&Array.isArray(Ie)){const Ae=Ie.find(we=>we.includes("top")),$e=Ie.find(we=>we.includes("bottom")),xe=Ie.every(we=>`${we}`=="none");!Ae&&!$e&&!xe&&(fe=he(Pe)),Ae&&(me=he(Ae.toLowerCase().replace("top",""))),$e&&(fe=he($e.toLowerCase().replace("bottom","")))}else fe=he(Pe)}let ye;typeof de=="boolean"?ye={spinning:de}:typeof de=="object"&&(ye=m({spinning:!0},de));const Se=ie(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:u.value==="rtl"},n.class,v.value),ue=et(e,["columns"]);return g(p("div",{class:Se,style:n.style},[p(ir,D({spinning:!1},ye),{default:()=>[me,p(Wde,D(D(D({},n),ue),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Q.value,indentSize:X.value,expandIcon:se,columns:a.value,direction:u.value,prefixCls:d.value,class:ie({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:ge,[`${d.value}-empty`]:y.value.length===0}),data:J.value,rowKey:w.value,rowClassName:W,internalHooks:xm,internalRefs:C,onUpdateInternalRefs:O,transformColumns:ne,transformCellText:h.value}),m(m({},o),{emptyText:()=>{var ce,he;return((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||((he=e.locale)===null||he===void 0?void 0:he.emptyText)||c("Table")}})),fe]})]))}}}),jpe=oe({name:"ATable",inheritAttrs:!1,props:qe(Z5(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=le();return r({table:l}),()=>{var i;const a=e.columns||N5((i=o.default)===null||i===void 0?void 0:i.call(o));return p(Hpe,D(D(D({ref:l},n),e),{},{columns:a||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:m({},o)}),o)}}}),Nh=jpe,hd=oe({name:"ATableColumn",slots:Object,render(){return null}}),vd=oe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Of=_de,Pf=Dde,md=m(Bde,{Cell:Pf,Row:Of,name:"ATableSummary"}),Wpe=m(Nh,{SELECTION_ALL:Om,SELECTION_INVERT:Pm,SELECTION_NONE:Im,SELECTION_COLUMN:yr,EXPAND_COLUMN:ol,Column:hd,ColumnGroup:vd,Summary:md,install:e=>(e.component(md.name,md),e.component(Pf.name,Pf),e.component(Of.name,Of),e.component(Nh.name,Nh),e.component(hd.name,hd),e.component(vd.name,vd),e)}),Vpe={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},Kpe=oe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:qe(Vpe,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=r=>{var l;n("change",r),r.target.value===""&&((l=e.handleClear)===null||l===void 0||l.call(e))};return()=>{const{placeholder:r,value:l,prefixCls:i,disabled:a}=e;return p(tn,{placeholder:r,class:i,value:l,onChange:o,disabled:a,allowClear:!0},{prefix:()=>p(mp,null,null)})}}});var Gpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Xpe=Gpe;function m4(e){for(var t=1;t{const{renderedText:o,renderedEl:r,item:l,checked:i,disabled:a,prefixCls:s,showRemove:c}=e,u=ie({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:a||l.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer},{default:f=>{const g=p("span",{class:`${s}-content-item-text`},[r]);return c?p("li",{class:u,title:d},[g,p(Cf,{disabled:a||l.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",l)}},{default:()=>[p(Q5,null,null)]})]):p("li",{class:u,title:d,onClick:a||l.disabled?Ype:()=>{n("click",l)}},[p($o,{class:`${s}-checkbox`,checked:i,disabled:a||l.disabled},null),g])}})}}}),Qpe={prefixCls:String,filteredRenderItems:V.array.def([]),selectedKeys:V.array,disabled:Ce(),showRemove:Ce(),pagination:V.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Jpe(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?m(m({},t),e):t}const ege=oe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Qpe,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=le(1),l=d=>{const{selectedKeys:f}=e,g=f.indexOf(d.key)>=0;n("itemSelect",d.key,!g)},i=d=>{n("itemRemove",[d.key])},a=d=>{n("scroll",d)},s=P(()=>Jpe(e.pagination));be([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,d)}},{immediate:!0});const c=P(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),f}),u=d=>{r.value=d};return o({items:c}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:g,disabled:v,showRemove:h}=e;let b=null;s.value&&(b=p(Up,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const y=c.value.map(S=>{let{renderedEl:$,renderedText:x,item:C}=S;const{disabled:O}=C,w=g.indexOf(C.key)>=0;return p(Zpe,{disabled:v||O,key:C.key,item:C,renderedText:x,renderedEl:$,checked:w,prefixCls:d,onClick:l,onRemove:i,showRemove:h},null)});return p(We,null,[p("ul",{class:ie(`${d}-content`,{[`${d}-content-show-remove`]:h}),onScroll:a},[y]),b])}}}),tge=ege,Am=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},nge=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:r,key:l}=n;r&&t.set(l,o)}),t},oge=()=>null;function rge(e){return!!(e&&!Kt(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Iu(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const lge={prefixCls:String,dataSource:at([]),filter:String,filterOption:Function,checkedKeys:V.arrayOf(V.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Ce(!1),searchPlaceholder:String,notFoundContent:V.any,itemUnit:String,itemsUnit:String,renderList:V.any,disabled:Ce(),direction:Be(),showSelectAll:Ce(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:V.any,showRemove:Ce(),pagination:V.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},b4=oe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:lge,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(""),l=le(),i=le(),a=(C,O)=>{let w=C?C(O):null;const I=!!w&&_t(w).length>0;return I||(w=p(tge,D(D({},O),{},{ref:i}),null)),{customize:I,bodyContent:w}},s=C=>{const{renderItem:O=oge}=e,w=O(C),I=rge(w);return{renderedText:I?w.value:w,renderedEl:I?w.label:w,item:C}},c=le([]),u=le([]);ke(()=>{const C=[],O=[];e.dataSource.forEach(w=>{const I=s(w),{renderedText:T}=I;if(r.value&&r.value.trim()&&!y(T,w))return null;C.push(w),O.push(I)}),c.value=C,u.value=O});const d=P(()=>{const{checkedKeys:C}=e;if(C.length===0)return"none";const O=Am(C);return c.value.every(w=>O.has(w.key)||!!w.disabled)?"all":"part"}),f=P(()=>Iu(c.value)),g=(C,O)=>Array.from(new Set([...C,...e.checkedKeys])).filter(w=>O.indexOf(w)===-1),v=C=>{let{disabled:O,prefixCls:w}=C;var I;const T=d.value==="all";return p($o,{disabled:((I=e.dataSource)===null||I===void 0?void 0:I.length)===0||O,checked:T,indeterminate:d.value==="part",class:`${w}-checkbox`,onChange:()=>{const E=f.value;e.onItemSelectAll(g(T?[]:E,T?e.checkedKeys:[]))}},null)},h=C=>{var O;const{target:{value:w}}=C;r.value=w,(O=e.handleFilter)===null||O===void 0||O.call(e,C)},b=C=>{var O;r.value="",(O=e.handleClear)===null||O===void 0||O.call(e,C)},y=(C,O)=>{const{filterOption:w}=e;return w?w(r.value,O):C.includes(r.value)},S=(C,O)=>{const{itemsUnit:w,itemUnit:I,selectAllLabel:T}=e;if(T)return typeof T=="function"?T({selectedCount:C,totalCount:O}):T;const _=O>1?w:I;return p(We,null,[(C>0?`${C}/`:"")+O,Lt(" "),_])},$=P(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),x=(C,O,w,I,T,_)=>{const E=T?p("div",{class:`${C}-body-search-wrapper`},[p(Kpe,{prefixCls:`${C}-search`,onChange:h,handleClear:b,placeholder:O,value:r.value,disabled:_},null)]):null;let A;const{onEvents:R}=p0(n),{bodyContent:z,customize:M}=a(I,m(m(m({},e),{filteredItems:c.value,filteredRenderItems:u.value,selectedKeys:w}),R));return M?A=p("div",{class:`${C}-body-customize-wrapper`},[z]):A=c.value.length?z:p("div",{class:`${C}-body-not-found`},[$.value]),p("div",{class:T?`${C}-body ${C}-body-with-search`:`${C}-body`,ref:l},[E,A])};return()=>{var C,O;const{prefixCls:w,checkedKeys:I,disabled:T,showSearch:_,searchPlaceholder:E,selectAll:A,selectCurrent:R,selectInvert:z,removeAll:M,removeCurrent:B,renderList:N,onItemSelectAll:F,onItemRemove:L,showSelectAll:k=!0,showRemove:j,pagination:H}=e,Y=(C=o.footer)===null||C===void 0?void 0:C.call(o,m({},e)),Z=ie(w,{[`${w}-with-pagination`]:!!H,[`${w}-with-footer`]:!!Y}),U=x(w,E,I,N,_,T),ee=Y?p("div",{class:`${w}-footer`},[Y]):null,G=!j&&!H&&v({disabled:T,prefixCls:w});let J=null;j?J=p(Vt,null,{default:()=>[H&&p(Vt.Item,{key:"removeCurrent",onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));L==null||L(K)}},{default:()=>[B]}),p(Vt.Item,{key:"removeAll",onClick:()=>{L==null||L(f.value)}},{default:()=>[M]})]}):J=p(Vt,null,{default:()=>[p(Vt.Item,{key:"selectAll",onClick:()=>{const K=f.value;F(g(K,[]))}},{default:()=>[A]}),H&&p(Vt.Item,{onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));F(g(K,[]))}},{default:()=>[R]}),p(Vt.Item,{key:"selectInvert",onClick:()=>{let K;H?K=Iu((i.value.items||[]).map(X=>X.item)):K=f.value;const q=new Set(I),pe=[],W=[];K.forEach(X=>{q.has(X)?W.push(X):pe.push(X)}),F(g(pe,W))}},{default:()=>[z]})]});const Q=p(rr,{class:`${w}-header-dropdown`,overlay:J,disabled:T},{default:()=>[p(Ec,null,null)]});return p("div",{class:Z,style:n.style},[p("div",{class:`${w}-header`},[k?p(We,null,[G,Q]):null,p("span",{class:`${w}-header-selected`},[p("span",null,[S(I.length,c.value.length)]),p("span",{class:`${w}-header-title`},[(O=o.titleText)===null||O===void 0?void 0:O.call(o)])])]),U,ee])}}});function y4(){}const N1=e=>{const{disabled:t,moveToLeft:n=y4,moveToRight:o=y4,leftArrowText:r="",rightArrowText:l="",leftActive:i,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return p("div",{class:s,style:c},[p(zt,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p(u!=="rtl"?Wo:Sl,null,null)},{default:()=>[l]}),!d&&p(zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:p(u!=="rtl"?Sl:Wo,null,null)},{default:()=>[r]})])};N1.displayName="Operation";N1.inheritAttrs=!1;const ige=N1,age=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:l,margin:i}=e,a=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${i}px 0 ${l}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},S4=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},sge=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:m({},S4(e,e.colorError)),[`${t}-status-warning`]:m({},S4(e,e.colorWarning))}},cge=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:l,transferHeaderHeight:i,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:f,listWidth:g,listWidthLG:v,fontSizeIcon:h,marginXS:b,paddingSM:y,lineType:S,iconCls:$,motionDurationSlow:x}=e;return{display:"flex",flexDirection:"column",width:g,height:f,border:`${r}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${$}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${a-r}px ${y}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":m(m({},Gt),{flex:"auto",textAlign:"end"}),"&-dropdown":m(m({},yi()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:l,padding:`${s}px ${y}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:b},"> *":{flex:"none"},"&-text":m(m({},Gt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},uge=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:l,marginXXS:i,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:cge(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${l}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},dge=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},fge=Ve("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:l}=e,i=Math.round(t*n),a=r,s=l,c=Fe(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-i)/2),transferItemPaddingVertical:(s-i)/2});return[uge(c),age(c),sge(c),dge(c)]},{listWidth:180,listHeight:200,listWidthLG:250}),pge=()=>({id:String,prefixCls:String,dataSource:at([]),disabled:Ce(),targetKeys:at(),selectedKeys:at(),render:ve(),listStyle:Le([Function,Object],()=>({})),operationStyle:Re(void 0),titles:at(),operations:at(),showSearch:Ce(!1),filterOption:ve(),searchPlaceholder:String,notFoundContent:V.any,locale:Re(),rowKey:ve(),showSelectAll:Ce(),selectAllLabels:at(),children:ve(),oneWay:Ce(),pagination:Le([Object,Boolean]),status:Be(),onChange:ve(),onSelectChange:ve(),onSearch:ve(),onScroll:ve(),"onUpdate:targetKeys":ve(),"onUpdate:selectedKeys":ve()}),gge=oe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:pge(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{configProvider:i,prefixCls:a,direction:s}=Te("transfer",e),[c,u]=fge(a),d=le([]),f=le([]),g=Qt(),v=un.useInject(),h=P(()=>Ko(v.status,e.status));be(()=>e.selectedKeys,()=>{var U,ee;d.value=((U=e.selectedKeys)===null||U===void 0?void 0:U.filter(G=>e.targetKeys.indexOf(G)===-1))||[],f.value=((ee=e.selectedKeys)===null||ee===void 0?void 0:ee.filter(G=>e.targetKeys.indexOf(G)>-1))||[]},{immediate:!0});const b=(U,ee)=>{const G={notFoundContent:ee("Transfer")},J=qt(r,e,"notFoundContent");return J&&(G.notFoundContent=J),e.searchPlaceholder!==void 0&&(G.searchPlaceholder=e.searchPlaceholder),m(m(m({},U),G),e.locale)},y=U=>{const{targetKeys:ee=[],dataSource:G=[]}=e,J=U==="right"?d.value:f.value,Q=nge(G),K=J.filter(X=>!Q.has(X)),q=Am(K),pe=U==="right"?K.concat(ee):ee.filter(X=>!q.has(X)),W=U==="right"?"left":"right";U==="right"?d.value=[]:f.value=[],n("update:targetKeys",pe),w(W,[]),n("change",pe,U,K),g.onFieldChange()},S=()=>{y("left")},$=()=>{y("right")},x=(U,ee)=>{w(U,ee)},C=U=>x("left",U),O=U=>x("right",U),w=(U,ee)=>{U==="left"?(e.selectedKeys||(d.value=ee),n("update:selectedKeys",[...ee,...f.value]),n("selectChange",ee,Qe(f.value))):(e.selectedKeys||(f.value=ee),n("update:selectedKeys",[...ee,...d.value]),n("selectChange",Qe(d.value),ee))},I=(U,ee)=>{const G=ee.target.value;n("search",U,G)},T=U=>{I("left",U)},_=U=>{I("right",U)},E=U=>{n("search",U,"")},A=()=>{E("left")},R=()=>{E("right")},z=(U,ee,G)=>{const J=U==="left"?[...d.value]:[...f.value],Q=J.indexOf(ee);Q>-1&&J.splice(Q,1),G&&J.push(ee),w(U,J)},M=(U,ee)=>z("left",U,ee),B=(U,ee)=>z("right",U,ee),N=U=>{const{targetKeys:ee=[]}=e,G=ee.filter(J=>!U.includes(J));n("update:targetKeys",G),n("change",G,"left",[...U])},F=(U,ee)=>{n("scroll",U,ee)},L=U=>{F("left",U)},k=U=>{F("right",U)},j=(U,ee)=>typeof U=="function"?U({direction:ee}):U,H=le([]),Y=le([]);ke(()=>{const{dataSource:U,rowKey:ee,targetKeys:G=[]}=e,J=[],Q=new Array(G.length),K=Am(G);U.forEach(q=>{ee&&(q.key=ee(q)),K.has(q.key)?Q[K.get(q.key)]=q:J.push(q)}),H.value=J,Y.value=Q}),l({handleSelectChange:w});const Z=U=>{var ee,G,J,Q,K,q;const{disabled:pe,operations:W=[],showSearch:X,listStyle:ne,operationStyle:ae,filterOption:se,showSelectAll:re,selectAllLabels:de=[],oneWay:ge,pagination:me,id:fe=g.id.value}=e,{class:ye,style:Se}=o,ue=r.children,ce=!ue&&me,he=i.renderEmpty,Pe=b(U,he),{footer:Ie}=r,Ae=e.render||r.render,$e=f.value.length>0,xe=d.value.length>0,we=ie(a.value,ye,{[`${a.value}-disabled`]:pe,[`${a.value}-customize-list`]:!!ue,[`${a.value}-rtl`]:s.value==="rtl"},Tn(a.value,h.value,v.hasFeedback),u.value),Me=e.titles,Ne=(J=(ee=Me&&Me[0])!==null&&ee!==void 0?ee:(G=r.leftTitle)===null||G===void 0?void 0:G.call(r))!==null&&J!==void 0?J:(Pe.titles||["",""])[0],_e=(q=(Q=Me&&Me[1])!==null&&Q!==void 0?Q:(K=r.rightTitle)===null||K===void 0?void 0:K.call(r))!==null&&q!==void 0?q:(Pe.titles||["",""])[1];return p("div",D(D({},o),{},{class:we,style:Se,id:fe}),[p(b4,D({key:"leftList",prefixCls:`${a.value}-list`,dataSource:H.value,filterOption:se,style:j(ne,"left"),checkedKeys:d.value,handleFilter:T,handleClear:A,onItemSelect:M,onItemSelectAll:C,renderItem:Ae,showSearch:X,renderList:ue,onScroll:L,disabled:pe,direction:s.value==="rtl"?"right":"left",showSelectAll:re,selectAllLabel:de[0]||r.leftSelectAllLabel,pagination:ce},Pe),{titleText:()=>Ne,footer:Ie}),p(ige,{key:"operation",class:`${a.value}-operation`,rightActive:xe,rightArrowText:W[0],moveToRight:$,leftActive:$e,leftArrowText:W[1],moveToLeft:S,style:ae,disabled:pe,direction:s.value,oneWay:ge},null),p(b4,D({key:"rightList",prefixCls:`${a.value}-list`,dataSource:Y.value,filterOption:se,style:j(ne,"right"),checkedKeys:f.value,handleFilter:_,handleClear:R,onItemSelect:B,onItemSelectAll:O,onItemRemove:N,renderItem:Ae,showSearch:X,renderList:ue,onScroll:k,disabled:pe,direction:s.value==="rtl"?"left":"right",showSelectAll:re,selectAllLabel:de[1]||r.rightSelectAllLabel,showRemove:ge,pagination:ce},Pe),{titleText:()=>_e,footer:Ie})])};return()=>c(p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer,children:Z},null))}}),hge=Tt(gge);function vge(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function mge(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}function Rm(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function bge(e,t){const n=[];function o(r){r.forEach(l=>{n.push(l[t.value]);const i=l[t.children];i&&o(i)})}return o(e),n}function $4(e){return e==null}const J5=Symbol("TreeSelectContextPropsKey");function yge(e){return Ge(J5,e)}function Sge(){return He(J5,{})}const $ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cge=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Tc(),l=pp(),i=Sge(),a=le(),s=q0(()=>i.treeData,[()=>r.open,()=>i.treeData],C=>C[0]),c=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=l;return C?{checked:w,halfChecked:O}:null});be(()=>r.open,()=>{ot(()=>{var C;r.open&&!r.multiple&&l.checkedKeys.length&&((C=a.value)===null||C===void 0||C.scrollTo({key:l.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const u=P(()=>String(r.searchValue).toLowerCase()),d=C=>u.value?String(C[l.treeNodeFilterProp]).toLowerCase().includes(u.value):!1,f=te(l.treeDefaultExpandedKeys),g=te(null);be(()=>r.searchValue,()=>{r.searchValue&&(g.value=bge(Qe(i.treeData),Qe(i.fieldNames)))},{immediate:!0});const v=P(()=>l.treeExpandedKeys?l.treeExpandedKeys.slice():r.searchValue?g.value:f.value),h=C=>{var O;f.value=C,g.value=C,(O=l.onTreeExpand)===null||O===void 0||O.call(l,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var I,T;const{checkable:_,checkedKeys:E}=l;_&&Rm(w)||((I=i.onSelect)===null||I===void 0||I.call(i,w.key,{selected:!E.includes(w.key)}),r.multiple||(T=r.toggleOpen)===null||T===void 0||T.call(r,!1))},S=le(null),$=P(()=>l.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,I=new Array(w),T=0;T{var O;const{which:w}=C;switch(w){case Oe.UP:case Oe.DOWN:case Oe.LEFT:case Oe.RIGHT:(O=a.value)===null||O===void 0||O.onKeydown(C);break;case Oe.ENTER:{if($.value){const{selectable:I,value:T}=$.value.node||{};I!==!1&&y(null,{node:{key:S.value},selected:!l.checkedKeys.includes(T)})}break}case Oe.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:I,open:T,notFoundContent:_=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:E,listItemHeight:A,virtual:R,dropdownMatchSelectWidth:z,treeExpandAction:M}=i,{checkable:B,treeDefaultExpandAll:N,treeIcon:F,showTreeIcon:L,switcherIcon:k,treeLine:j,loadData:H,treeLoadedKeys:Y,treeMotion:Z,onTreeLoad:U,checkedKeys:ee}=l;if(s.value.length===0)return p("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[_]);const G={fieldNames:i.fieldNames};return Y&&(G.loadedKeys=Y),v.value&&(G.expandedKeys=v.value),p("div",{onMousedown:b},[$.value&&T&&p("span",{style:$ge,"aria-live":"assertive"},[$.value.node.value]),p(k5,D(D({ref:a,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:E,itemHeight:A,virtual:R!==!1&&z!==!1,multiple:w,icon:F,showIcon:L,switcherIcon:k,showLine:j,loadData:I?null:H,motion:Z,activeKey:S.value,checkable:B,checkStrictly:!0,checkedKeys:c.value,selectedKeys:B?[]:ee,defaultExpandAll:N},G),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:M}),m(m({},n),{checkable:l.customSlots.treeCheckable}))])}}}),xge="SHOW_ALL",eM="SHOW_PARENT",F1="SHOW_CHILD";function C4(e,t,n,o){const r=new Set(e);return t===F1?e.filter(l=>{const i=n[l];return!(i&&i.children&&i.children.some(a=>{let{node:s}=a;return r.has(s[o.value])})&&i.children.every(a=>{let{node:s}=a;return Rm(s)||r.has(s[o.value])}))}):t===eM?e.filter(l=>{const i=n[l],a=i?i.parent:null;return!(a&&!Rm(a.node)&&r.has(a.key))}):e}const eg=()=>null;eg.inheritAttrs=!1;eg.displayName="ATreeSelectNode";eg.isTreeSelectNode=!0;const L1=eg;var wge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(o=>{var r,l,i;if(!Oge(o))return null;const a=o.children||{},s=o.key,c={};for(const[w,I]of Object.entries(o.props))c[mi(w)]=I;const{isLeaf:u,checkable:d,selectable:f,disabled:g,disableCheckbox:v}=c,h={isLeaf:u||u===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:g||g===""||void 0,disableCheckbox:v||v===""||void 0},b=m(m({},c),h),{title:y=(r=a.title)===null||r===void 0?void 0:r.call(a,b),switcherIcon:S=(l=a.switcherIcon)===null||l===void 0?void 0:l.call(a,b)}=c,$=wge(c,["title","switcherIcon"]),x=(i=a.default)===null||i===void 0?void 0:i.call(a),C=m(m(m({},$),{title:y,switcherIcon:S,key:s,isLeaf:u}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Dm(e){if(!e)return e;const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Ige(e,t,n,o,r,l){let i=null,a=null;function s(){function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map((g,v)=>{const h=`${d}-${v}`,b=g[l.value],y=n.includes(b),S=c(g[l.children]||[],h,y),$=p(L1,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(i=$),y){const x={pos:h,node:$,children:S};return f||a.push(x),x}return null}).filter(g=>g)}a||(a=[],c(o),a.sort((u,d)=>{let{node:{props:{value:f}}}=u,{node:{props:{value:g}}}=d;const v=n.indexOf(f),h=n.indexOf(g);return v-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?a:a.map(c=>{let{node:u}=c;return u})}})}function Tge(e,t){let{id:n,pId:o,rootPId:r}=t;const l={},i=[];return e.map(s=>{const c=m({},s),u=c[n];return l[u]=c,c.key=c.key||u,c}).forEach(s=>{const c=s[o],u=l[c];u&&(u.children=u.children||[],u.children.push(s)),(c===r||!u&&r===null)&&i.push(s)}),i}function Ege(e,t,n){const o=te();return be([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?Tge(Qe(e.value),m({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):Qe(e.value).slice():o.value=Pge(Qe(t.value))},{immediate:!0,deep:!0}),o}const Mge=e=>{const t=te({valueLabels:new Map}),n=te();return be(e,()=>{n.value=Qe(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,l=new Map,i=n.value.map(a=>{var s;const{value:c}=a,u=(s=a.label)!==null&&s!==void 0?s:r.get(c);return l.set(c,u),m(m({},a),{label:u})});return t.value.valueLabels=l,i})]},_ge=(e,t)=>{const n=te(new Map),o=te({});return ke(()=>{const r=t.value,l=kc(e.value,{fieldNames:r,initWrapper:i=>m(m({},i),{valueEntities:new Map}),processEntity:(i,a)=>{const s=i.node[r.value];a.valueEntities.set(s,i)}});n.value=l.valueEntities,o.value=l.keyEntities}),{valueEntities:n,keyEntities:o}},Age=(e,t,n,o,r,l)=>{const i=te([]),a=te([]);return ke(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),c=t.value.map(d=>{let{value:f}=d;return f});const u=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:c}=So(s,!0,o.value,r.value,l.value)),i.value=Array.from(new Set([...u,...s])),a.value=c}),[i,a]},Rge=(e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:l}=n;return P(()=>{const{children:i}=l.value,a=t.value,s=o==null?void 0:o.value;if(!a||r.value===!1)return e.value;let c;if(typeof r.value=="function")c=r.value;else{const d=a.toUpperCase();c=(f,g)=>{const v=g[s];return String(v).toUpperCase().includes(d)}}function u(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let v=0,h=d.length;ve.treeCheckable&&!e.treeCheckStrictly),a=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),c=P(()=>a.value||e.multiple),u=P(()=>mge(e.fieldNames)),[d,f]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:fe=>fe||""}),g=fe=>{var ye;f(fe),(ye=e.onSearch)===null||ye===void 0||ye.call(e,fe)},v=Ege(ze(e,"treeData"),ze(e,"children"),ze(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=_ge(v,u),y=fe=>{const ye=[],Se=[];return fe.forEach(ue=>{b.value.has(ue)?Se.push(ue):ye.push(ue)}),{missingRawValues:ye,existRawValues:Se}},S=Rge(v,d,{fieldNames:u,treeNodeFilterProp:ze(e,"treeNodeFilterProp"),filterTreeNode:ze(e,"filterTreeNode")}),$=fe=>{if(fe){if(e.treeNodeLabelProp)return fe[e.treeNodeLabelProp];const{_title:ye}=u.value;for(let Se=0;Sevge(fe).map(Se=>Dge(Se)?{value:Se}:Se),C=fe=>x(fe).map(Se=>{let{label:ue}=Se;const{value:ce,halfChecked:he}=Se;let Pe;const Ie=b.value.get(ce);return Ie&&(ue=ue??$(Ie.node),Pe=Ie.node.disabled),{label:ue,value:ce,halfChecked:he,disabled:Pe}}),[O,w]=Pt(e.defaultValue,{value:ze(e,"value")}),I=P(()=>x(O.value)),T=te([]),_=te([]);ke(()=>{const fe=[],ye=[];I.value.forEach(Se=>{Se.halfChecked?ye.push(Se):fe.push(Se)}),T.value=fe,_.value=ye});const E=P(()=>T.value.map(fe=>fe.value)),{maxLevel:A,levelEntities:R}=Hp(h),[z,M]=Age(T,_,i,h,A,R),B=P(()=>{const Se=C4(z.value,e.showCheckedStrategy,h.value,u.value).map(he=>{var Pe,Ie,Ae;return(Ae=(Ie=(Pe=h.value[he])===null||Pe===void 0?void 0:Pe.node)===null||Ie===void 0?void 0:Ie[u.value.value])!==null&&Ae!==void 0?Ae:he}).map(he=>{const Pe=T.value.find(Ie=>Ie.value===he);return{value:he,label:Pe==null?void 0:Pe.label}}),ue=C(Se),ce=ue[0];return!c.value&&ce&&$4(ce.value)&&$4(ce.label)?[]:ue.map(he=>{var Pe;return m(m({},he),{label:(Pe=he.label)!==null&&Pe!==void 0?Pe:he.value})})}),[N]=Mge(B),F=(fe,ye,Se)=>{const ue=C(fe);if(w(ue),e.autoClearSearchValue&&f(""),e.onChange){let ce=fe;i.value&&(ce=C4(fe,e.showCheckedStrategy,h.value,u.value).map(Ne=>{const _e=b.value.get(Ne);return _e?_e.node[u.value.value]:Ne}));const{triggerValue:he,selected:Pe}=ye||{triggerValue:void 0,selected:void 0};let Ie=ce;if(e.treeCheckStrictly){const Me=_.value.filter(Ne=>!ce.includes(Ne.value));Ie=[...Ie,...Me]}const Ae=C(Ie),$e={preValue:T.value,triggerValue:he};let xe=!0;(e.treeCheckStrictly||Se==="selection"&&!Pe)&&(xe=!1),Ige($e,he,fe,v.value,xe,u.value),a.value?$e.checked=Pe:$e.selected=Pe;const we=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(c.value?we:we[0],s.value?null:Ae.map(Me=>Me.label),$e)}},L=(fe,ye)=>{let{selected:Se,source:ue}=ye;var ce,he,Pe;const Ie=Qe(h.value),Ae=Qe(b.value),$e=Ie[fe],xe=$e==null?void 0:$e.node,we=(ce=xe==null?void 0:xe[u.value.value])!==null&&ce!==void 0?ce:fe;if(!c.value)F([we],{selected:!0,triggerValue:we},"option");else{let Me=Se?[...E.value,we]:z.value.filter(Ne=>Ne!==we);if(i.value){const{missingRawValues:Ne,existRawValues:_e}=y(Me),De=_e.map(ft=>Ae.get(ft).key);let Je;Se?{checkedKeys:Je}=So(De,!0,Ie,A.value,R.value):{checkedKeys:Je}=So(De,{checked:!1,halfCheckedKeys:M.value},Ie,A.value,R.value),Me=[...Ne,...Je.map(ft=>Ie[ft].node[u.value.value])]}F(Me,{selected:Se,triggerValue:we},ue||"option")}Se||!c.value?(he=e.onSelect)===null||he===void 0||he.call(e,we,Dm(xe)):(Pe=e.onDeselect)===null||Pe===void 0||Pe.call(e,we,Dm(xe))},k=fe=>{if(e.onDropdownVisibleChange){const ye={};Object.defineProperty(ye,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(fe,ye)}},j=(fe,ye)=>{const Se=fe.map(ue=>ue.value);if(ye.type==="clear"){F(Se,{},"selection");return}ye.values.length&&L(ye.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:H,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,virtual:K,listHeight:q,listItemHeight:pe,treeLine:W,treeIcon:X,showTreeIcon:ne,switcherIcon:ae,treeMotion:se,customSlots:re,dropdownMatchSelectWidth:de,treeExpandAction:ge}=No(e);$z(Wd({checkable:a,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,checkedKeys:z,halfCheckedKeys:M,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,treeIcon:X,treeMotion:se,showTreeIcon:ne,switcherIcon:ae,treeLine:W,treeNodeFilterProp:H,keyEntities:h,customSlots:re})),yge(Wd({virtual:K,listHeight:q,listItemHeight:pe,treeData:S,fieldNames:u,onSelect:L,dropdownMatchSelectWidth:de,treeExpandAction:ge}));const me=le();return o({focus(){var fe;(fe=me.value)===null||fe===void 0||fe.focus()},blur(){var fe;(fe=me.value)===null||fe===void 0||fe.blur()},scrollTo(fe){var ye;(ye=me.value)===null||ye===void 0||ye.scrollTo(fe)}}),()=>{var fe;const ye=et(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return p(Y0,D(D(D({ref:me},n),ye),{},{id:l,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:N.value,onDisplayValuesChange:j,searchValue:d.value,onSearch:g,OptionList:Cge,emptyOptions:!v.value.length,onDropdownVisibleChange:k,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(fe=e.dropdownMatchSelectWidth)!==null&&fe!==void 0?fe:!0}),r)}}}),Nge=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},j5(n,Fe(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},Kp(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Fge(e,t){return Ve("TreeSelect",n=>{const o=Fe(n,{treePrefixCls:t.value});return[Nge(o)]})(e)}const x4=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Lge(){return m(m({},et(tM(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:V.any,size:Be(),bordered:Ce(),treeLine:Le([Boolean,Object]),replaceFields:Re(),placement:Be(),status:Be(),popupClassName:String,dropdownClassName:String,"onUpdate:value":ve(),"onUpdate:treeExpandedKeys":ve(),"onUpdate:searchValue":ve()})}const Fh=oe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:qe(Lge(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;e.treeData===void 0&&o.default,xt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),xt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),xt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,renderEmpty:u,direction:d,virtual:f,dropdownMatchSelectWidth:g,size:v,getPopupContainer:h,getPrefixCls:b,disabled:y}=Te("select",e),{compactSize:S,compactItemClassnames:$}=Ol(c,d),x=P(()=>S.value||v.value),C=qn(),O=P(()=>{var Z;return(Z=y.value)!==null&&Z!==void 0?Z:C.value}),w=P(()=>b()),I=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),T=P(()=>x4(w.value,K0(I.value),e.transitionName)),_=P(()=>x4(w.value,"",e.choiceTransitionName)),E=P(()=>b("select-tree",e.prefixCls)),A=P(()=>b("tree-select",e.prefixCls)),[R,z]=xb(c),[M]=Fge(A,E),B=P(()=>ie(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),N=P(()=>!!(e.treeCheckable||e.multiple)),F=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!N.value),L=le();r({focus(){var Z,U;(U=(Z=L.value).focus)===null||U===void 0||U.call(Z)},blur(){var Z,U;(U=(Z=L.value).blur)===null||U===void 0||U.call(Z)}});const k=function(){for(var Z=arguments.length,U=new Array(Z),ee=0;ee{l("update:treeExpandedKeys",Z),l("treeExpand",Z)},H=Z=>{l("update:searchValue",Z),l("search",Z)},Y=Z=>{l("blur",Z),i.onFieldBlur()};return()=>{var Z,U,ee;const{notFoundContent:G=(Z=o.notFoundContent)===null||Z===void 0?void 0:Z.call(o),prefixCls:J,bordered:Q,listHeight:K,listItemHeight:q,multiple:pe,treeIcon:W,treeLine:X,showArrow:ne,switcherIcon:ae=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:se=e.replaceFields,id:re=i.id.value,placeholder:de=(ee=o.placeholder)===null||ee===void 0?void 0:ee.call(o)}=e,{isFormItemInput:ge,hasFeedback:me,feedbackIcon:fe}=a,{suffixIcon:ye,removeIcon:Se,clearIcon:ue}=cb(m(m({},e),{multiple:N.value,showArrow:F.value,hasFeedback:me,feedbackIcon:fe,prefixCls:c.value}),o);let ce;G!==void 0?ce=G:ce=u("Select");const he=et(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),Pe=ie(!J&&A.value,{[`${c.value}-lg`]:x.value==="large",[`${c.value}-sm`]:x.value==="small",[`${c.value}-rtl`]:d.value==="rtl",[`${c.value}-borderless`]:!Q,[`${c.value}-in-form-item`]:ge},Tn(c.value,s.value,me),$.value,n.class,z.value),Ie={};return e.treeData===void 0&&o.default&&(Ie.children=yt(o.default())),R(M(p(Bge,D(D(D(D({},n),he),{},{disabled:O.value,virtual:f.value,dropdownMatchSelectWidth:g.value,id:re,fieldNames:se,ref:L,prefixCls:c.value,class:Pe,listHeight:K,listItemHeight:q,treeLine:!!X,inputIcon:ye,multiple:pe,removeIcon:Se,clearIcon:ue,switcherIcon:Ae=>H5(E.value,ae,Ae,o.leafIcon,X),showTreeIcon:W,notFoundContent:ce,getPopupContainer:h==null?void 0:h.value,treeMotion:null,dropdownClassName:B.value,choiceTransitionName:_.value,onChange:k,onBlur:Y,onSearch:H,onTreeExpand:j},Ie),{},{transitionName:T.value,customSlots:m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:me||ne,placeholder:de}),m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),Bm=L1,kge=m(Fh,{TreeNode:L1,SHOW_ALL:xge,SHOW_PARENT:eM,SHOW_CHILD:F1,install:e=>(e.component(Fh.name,Fh),e.component(Bm.displayName,Bm),e)}),Lh=()=>({format:String,showNow:Ce(),showHour:Ce(),showMinute:Ce(),showSecond:Ce(),use12Hours:Ce(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Ce(),popupClassName:String,status:Be()});function zge(e){const t=dE(e,m(m({},Lh()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=oe({name:"ATimePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),sE()),Lh()),{addon:{type:Function}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=Qt();xt(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=le();c({focus:()=>{var x;(x=v.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=v.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{u("update:value",x),u("change",x,C),g.onFieldChange()},b=x=>{u("update:open",x),u("openChange",x)},y=x=>{u("focus",x)},S=x=>{u("blur",x),g.onFieldBlur()},$=x=>{u("ok",x)};return()=>{const{id:x=g.id.value}=f;return p(n,D(D(D({},d),et(f,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),l=oe({name:"ATimeRangePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),cE()),Lh()),{order:{type:Boolean,default:!0}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=le(),v=Qt();c({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{u("update:value",O),u("change",O,w),v.onFieldChange()},b=O=>{u("update:open",O),u("openChange",O)},y=O=>{u("focus",O)},S=O=>{u("blur",O),v.onFieldBlur()},$=(O,w)=>{u("panelChange",O,w)},x=O=>{u("ok",O)},C=(O,w,I)=>{u("calendarChange",O,w,I)};return()=>{const{id:O=v.id.value}=f;return p(o,D(D(D({},d),et(f,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:l}}const{TimePicker:Tu,TimeRangePicker:bd}=zge(Ub),Hge=m(Tu,{TimePicker:Tu,TimeRangePicker:bd,install:e=>(e.component(Tu.name,Tu),e.component(bd.name,bd),e)}),jge=()=>({prefixCls:String,color:String,dot:V.any,pending:Ce(),position:V.oneOf(Cn("left","right","")).def(""),label:V.any}),Sc=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:qe(jge(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("timeline",e),r=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),l=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),i=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!l.value}));return()=>{var a,s,c;const{label:u=(a=n.label)===null||a===void 0?void 0:a.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return p("li",{class:r.value},[u&&p("div",{class:`${o.value}-item-label`},[u]),p("div",{class:`${o.value}-item-tail`},null),p("div",{class:[i.value,!!d&&`${o.value}-item-head-custom`],style:{borderColor:l.value,color:l.value}},[d]),p("div",{class:`${o.value}-item-content`},[(c=n.default)===null||c===void 0?void 0:c.call(n)])])}}}),Wge=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, - &${t}-right, - &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, - ${t}-item-head, - ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending - ${t}-item-last - ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse - ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Vge=Ve("Timeline",e=>{const t=Fe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Wge(t)]}),Kge=()=>({prefixCls:String,pending:V.any,pendingDot:V.any,reverse:Ce(),mode:V.oneOf(Cn("left","alternate","right",""))}),js=oe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:qe(Kge(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("timeline",e),[i,a]=Vge(r),s=(c,u)=>{const d=c.props||{};return e.mode==="alternate"?d.position==="right"?`${r.value}-item-right`:d.position==="left"?`${r.value}-item-left`:u%2===0?`${r.value}-item-left`:`${r.value}-item-right`:e.mode==="left"?`${r.value}-item-left`:e.mode==="right"?`${r.value}-item-right`:d.position==="right"?`${r.value}-item-right`:""};return()=>{var c,u,d;const{pending:f=(c=n.pending)===null||c===void 0?void 0:c.call(n),pendingDot:g=(u=n.pendingDot)===null||u===void 0?void 0:u.call(n),reverse:v,mode:h}=e,b=typeof f=="boolean"?null:f,y=_t((d=n.default)===null||d===void 0?void 0:d.call(n)),S=f?p(Sc,{pending:!!f,dot:g||p(co,null,null)},{default:()=>[b]}):null;S&&y.push(S);const $=v?y.reverse():y,x=$.length,C=`${r.value}-item-last`,O=$.map((T,_)=>{const E=_===x-2?C:"",A=_===x-1?C:"";return sn(T,{class:ie([!v&&f?E:A,s(T,_)])})}),w=$.some(T=>{var _,E;return!!(!((_=T.props)===null||_===void 0)&&_.label||!((E=T.children)===null||E===void 0)&&E.label)}),I=ie(r.value,{[`${r.value}-pending`]:!!f,[`${r.value}-reverse`]:!!v,[`${r.value}-${h}`]:!!h&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value);return i(p("ul",D(D({},o),{},{class:I}),[O]))}}});js.Item=Sc;js.install=function(e){return e.component(js.name,js),e.component(Sc.name,Sc),e};var Gge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Xge=Gge;function w4(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Zge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` - h${o}&, - div&-h${o}, - div&-h${o} > textarea, - h${o} - `]=qge(e[`fontSizeHeading${o}`],e[`lineHeightHeading${o}`],e.colorTextHeading,e)}),n},Qge=e=>{const{componentCls:t}=e;return{"a&, a":m(m({},Jf(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Jge=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:U9[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ehe=e=>{const{componentCls:t}=e,o=Ti(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},the=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),nhe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ohe=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:m(m(m(m(m(m(m(m(m({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Zge(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Jge()),Qge(e)),{[` - ${t}-expand, - ${t}-edit, - ${t}-copy - `]:m(m({},Jf(e)),{marginInlineStart:e.marginXXS})}),ehe(e)),the(e)),nhe()),{"&-rtl":{direction:"rtl"}})}},nM=Ve("Typography",e=>[ohe(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),rhe=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),lhe=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:rhe(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l}=No(e),i=ut({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});be(()=>e.value,S=>{i.current=S});const a=le();je(()=>{var S;if(a.value){const $=(S=a.value)===null||S===void 0?void 0:S.resizableTextArea,x=$==null?void 0:$.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){a.value=S}function c(S){let{target:{value:$}}=S;i.current=$.replace(/[\r\n]/g,""),n("change",i.current)}function u(){i.inComposition=!0}function d(){i.inComposition=!1}function f(S){const{keyCode:$}=S;$===Oe.ENTER&&S.preventDefault(),!i.inComposition&&(i.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;i.lastKeyCode===$&&!i.inComposition&&!x&&!C&&!O&&!w&&($===Oe.ENTER?(h(),n("end")):$===Oe.ESC&&(i.current=e.originContent,n("cancel")))}function v(){h()}function h(){n("save",i.current.trim())}const[b,y]=nM(l);return()=>{const S=ie({[`${l.value}`]:!0,[`${l.value}-edit-content`]:!0,[`${l.value}-rtl`]:e.direction==="rtl",[e.component?`${l.value}-${e.component}`:""]:!0},r.class,y.value);return b(p("div",D(D({},r),{},{class:S}),[p(Zy,{ref:s,maxlength:e.maxlength,value:i.current,onChange:c,onKeydown:f,onKeyup:g,onCompositionstart:u,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(Yge,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),ihe=lhe,ahe=3,she=8;let Xn;const kh={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function oM(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=lz(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function che(e){const t=document.createElement("div");oM(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const uhe=(e,t,n,o,r)=>{Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const{rows:l,suffix:i=""}=t,a=che(e),s=Math.round(a*l*100)/100;oM(Xn,e);const c=mO({render(){return p("div",{style:kh},[p("span",{style:kh},[n,i]),p("span",{style:kh},[o])])}});c.mount(Xn);function u(){return Math.round(Xn.getBoundingClientRect().height*100)/100-.1<=s}if(u())return c.unmount(),{content:n,text:Xn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==she&&C!==""}),f=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const g=[];Xn.innerHTML="";const v=document.createElement("span");Xn.appendChild(v);const h=document.createTextNode(r+i);v.appendChild(h),f.forEach($=>{Xn.appendChild($)});function b($){v.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const I=Math.floor((C+O)/2),T=x.slice(0,I);if($.textContent=T,C>=O-1)for(let _=O;_>=C;_-=1){const E=x.slice(0,_);if($.textContent=E,u()||!E)return _===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:E}}return u()?y($,x,I,O,I):y($,x,C,I,w)}function S($){if($.nodeType===ahe){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:Xn.innerHTML,ellipsis:!0}};var dhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),phe=oe({name:"ATypography",inheritAttrs:!1,props:fhe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("typography",e),[i,a]=nM(r);return()=>{var s;const c=m(m({},e),o),{prefixCls:u,direction:d,component:f="article"}=c,g=dhe(c,["prefixCls","direction","component"]);return i(p(f,D(D({},g),{},{class:ie(r.value,{[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Un=phe,ghe=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=O4[t.format]||O4.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(i),r.selectNodeContents(i),l.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(c){s&&console.error("unable to copy using execCommand: ",c),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(u){s&&console.error("unable to copy using clipboardData: ",u),s&&console.error("falling back to prompt"),n=mhe("message"in t?t.message:vhe),window.prompt(n,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(r):l.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var yhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const She=yhe;function P4(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Mhe=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Vc(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te("typography",e),a=ut({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=le(),c=le(),u=P(()=>{const M=e.ellipsis;return M?m({rows:1,expandable:!1},typeof M=="object"?M:null):{}});je(()=>{a.clientRendered=!0,I()}),Ze(()=>{clearTimeout(a.copyId),Ye.cancel(a.rafId)}),be([()=>u.value.rows,()=>e.content],()=>{ot(()=>{O()})},{flush:"post",deep:!0}),ke(()=>{e.content===void 0&&(It(!e.editable),It(!e.ellipsis))});function d(){var M;return e.ellipsis||e.editable?e.content:(M=Hn(s.value))===null||M===void 0?void 0:M.innerText}function f(M){const{onExpand:B}=u.value;a.expanded=!0,B==null||B(M)}function g(M){M.preventDefault(),a.originContent=e.content,C(!0)}function v(M){h(M),C(!1)}function h(M){const{onChange:B}=S.value;M!==e.content&&(r("update:content",M),B==null||B(M))}function b(){var M,B;(B=(M=S.value).onCancel)===null||B===void 0||B.call(M),C(!1)}function y(M){M.preventDefault(),M.stopPropagation();const{copyable:B}=e,N=m({},typeof B=="object"?B:null);N.text===void 0&&(N.text=d()),bhe(N.text||""),a.copied=!0,ot(()=>{N.onCopy&&N.onCopy(M),a.copyId=setTimeout(()=>{a.copied=!1},3e3)})}const S=P(()=>{const M=e.editable;return M?m({},typeof M=="object"?M:null):{editing:!1}}),[$,x]=Pt(!1,{value:P(()=>S.value.editing)});function C(M){const{onStart:B}=S.value;M&&B&&B(),x(M)}be($,M=>{var B;M||(B=c.value)===null||B===void 0||B.focus()},{flush:"post"});function O(M){if(M){const{width:B,height:N}=M;if(!B||!N)return}Ye.cancel(a.rafId),a.rafId=Ye(()=>{I()})}const w=P(()=>{const{rows:M,expandable:B,suffix:N,onEllipsis:F,tooltip:L}=u.value;return N||L||e.editable||e.copyable||B||F?!1:M===1?Ehe:The}),I=()=>{const{ellipsisText:M,isEllipsis:B}=a,{rows:N,suffix:F,onEllipsis:L}=u.value;if(!N||N<0||!Hn(s.value)||a.expanded||e.content===void 0||w.value)return;const{content:k,text:j,ellipsis:H}=uhe(Hn(s.value),{rows:N,suffix:F},e.content,z(!0),T4);(M!==j||a.isEllipsis!==H)&&(a.ellipsisText=j,a.ellipsisContent=k,a.isEllipsis=H,B!==H&&L&&L(H))};function T(M,B){let{mark:N,code:F,underline:L,delete:k,strong:j,keyboard:H}=M,Y=B;function Z(U,ee){if(!U)return;const G=function(){return Y}();Y=p(ee,null,{default:()=>[G]})}return Z(j,"strong"),Z(L,"u"),Z(k,"del"),Z(F,"code"),Z(N,"mark"),Z(H,"kbd"),Y}function _(M){const{expandable:B,symbol:N}=u.value;if(!B||!M&&(a.expanded||!a.isEllipsis))return null;const F=(n.ellipsisSymbol?n.ellipsisSymbol():N)||a.expandStr;return p("a",{key:"expand",class:`${l.value}-expand`,onClick:f,"aria-label":a.expandStr},[F])}function E(){if(!e.editable)return;const{tooltip:M,triggerType:B=["icon"]}=e.editable,N=n.editableIcon?n.editableIcon():p(Phe,{role:"button"},null),F=n.editableTooltip?n.editableTooltip():a.editStr,L=typeof F=="string"?F:"";return B.indexOf("icon")!==-1?p(Yn,{key:"edit",title:M===!1?"":F},{default:()=>[p(Cf,{ref:c,class:`${l.value}-edit`,onClick:g,"aria-label":L},{default:()=>[N]})]}):null}function A(){if(!e.copyable)return;const{tooltip:M}=e.copyable,B=a.copied?a.copiedStr:a.copyStr,N=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):B,F=typeof N=="string"?N:"",L=a.copied?p(vp,null,null):p(Che,null,null),k=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):L;return p(Yn,{key:"copy",title:M===!1?"":N},{default:()=>[p(Cf,{class:[`${l.value}-copy`,{[`${l.value}-copy-success`]:a.copied}],onClick:y,"aria-label":F},{default:()=>[k]})]})}function R(){const{class:M,style:B}=o,{maxlength:N,autoSize:F,onEnd:L}=S.value;return p(ihe,{class:M,style:B,prefixCls:l.value,value:e.content,originContent:a.originContent,maxlength:N,autoSize:F,onSave:v,onChange:h,onCancel:b,onEnd:L,direction:i.value,component:e.component},{enterIcon:n.editableEnterIcon})}function z(M){return[_(M),E(),A()].filter(B=>B)}return()=>{var M;const{triggerType:B=["icon"]}=S.value,N=e.ellipsis||e.editable?e.content!==void 0?e.content:(M=n.default)===null||M===void 0?void 0:M.call(n):n.default?n.default():e.content;return $.value?R():p(bi,{componentName:"Text",children:F=>{const L=m(m({},e),o),{type:k,disabled:j,content:H,class:Y,style:Z}=L,U=Ihe(L,["type","disabled","content","class","style"]),{rows:ee,suffix:G,tooltip:J}=u.value,{edit:Q,copy:K,copied:q,expand:pe}=F;a.editStr=Q,a.copyStr=K,a.copiedStr=q,a.expandStr=pe;const W=et(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),X=w.value,ne=ee===1&&X,ae=ee&&ee>1&&X;let se=N,re;if(ee&&a.isEllipsis&&!a.expanded&&!X){const{title:me}=U;let fe=me||"";!me&&(typeof N=="string"||typeof N=="number")&&(fe=String(N)),fe=fe==null?void 0:fe.slice(String(a.ellipsisContent||"").length),se=p(We,null,[Qe(a.ellipsisContent),p("span",{title:fe,"aria-hidden":"true"},[T4]),G])}else se=p(We,null,[N,G]);se=T(e,se);const de=J&&ee&&a.isEllipsis&&!a.expanded&&!X,ge=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(xo,{onResize:O,disabled:!ee},{default:()=>[p(Un,D({ref:s,class:[{[`${l.value}-${k}`]:k,[`${l.value}-disabled`]:j,[`${l.value}-ellipsis`]:ee,[`${l.value}-single-line`]:ee===1&&!a.isEllipsis,[`${l.value}-ellipsis-single-line`]:ne,[`${l.value}-ellipsis-multiple-line`]:ae},Y],style:m(m({},Z),{WebkitLineClamp:ae?ee:void 0}),"aria-label":re,direction:i.value,onClick:B.indexOf("text")!==-1?g:()=>{}},W),{default:()=>[de?p(Yn,{title:J===!0?N:ge},{default:()=>[p("span",null,[se])]}):se,z()]})]})}},null)}}}),Kc=Mhe;var _he=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);ret(m(m({},Vc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),tg=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m({},e),o),{ellipsis:l,rel:i}=r,a=_he(r,["ellipsis","rel"]);It();const s=m(m({},a),{rel:i===void 0&&a.target==="_blank"?"noopener noreferrer":i,ellipsis:!!l,component:"a"});return delete s.navigate,p(Kc,s,n)};tg.displayName="ATypographyLink";tg.inheritAttrs=!1;tg.props=Ahe();const j1=tg,Rhe=()=>et(Vc(),["component"]),ng=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m(m({},e),{component:"div"}),o);return p(Kc,r,n)};ng.displayName="ATypographyParagraph";ng.inheritAttrs=!1;ng.props=Rhe();const W1=ng,Dhe=()=>m(m({},et(Vc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),og=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;It();const l=m(m(m({},e),{ellipsis:r&&typeof r=="object"?et(r,["expandable","rows"]):r,component:"span"}),o);return p(Kc,l,n)};og.displayName="ATypographyText";og.inheritAttrs=!1;og.props=Dhe();const V1=og;var Bhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},et(Vc(),["component","strong"])),{level:Number}),rg=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=Bhe(e,["level"]);let i;Nhe.includes(r)?i=`h${r}`:(It(),i="h1");const a=m(m(m({},l),{component:i}),o);return p(Kc,a,n)};rg.displayName="ATypographyTitle";rg.inheritAttrs=!1;rg.props=Fhe();const K1=rg;Un.Text=V1;Un.Title=K1;Un.Paragraph=W1;Un.Link=j1;Un.Base=Kc;Un.install=function(e){return e.component(Un.name,Un),e.component(Un.Text.displayName,V1),e.component(Un.Title.displayName,K1),e.component(Un.Paragraph.displayName,W1),e.component(Un.Link.displayName,j1),e};function Lhe(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function E4(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function khe(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const l=e.data[r];if(Array.isArray(l)){l.forEach(i=>{n.append(`${r}[]`,i)});return}n.append(r,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(l){e.onError(l)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Lhe(e,t),E4(t)):e.onSuccess(E4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const zhe=+new Date;let Hhe=0;function zh(){return`vc-upload-${zhe}-${++Hhe}`}const Hh=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some(i=>{const a=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(a.charAt(0)==="."){const s=o.toLowerCase(),c=a.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(d=>s.endsWith(d))}return/\/\*$/.test(a)?l===a.replace(/\/.*$/,""):!!(r===a||/^\w+$/.test(a))})}return!0};function jhe(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(l=>{const i=Array.prototype.slice.apply(l);o=o.concat(i),!i.length?t(o):r()})}r()}const Whe=(e,t,n)=>{const o=(r,l)=>{r.path=l||"",r.isFile?r.file(i=>{n(i)&&(r.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t([i]))}):r.isDirectory&&jhe(r,i=>{i.forEach(a=>{o(a,`${l}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},Vhe=Whe,rM=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var Khe=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ghe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKhe(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:I}=e;let T;typeof I=="function"?T=yield I(S):T=I;const _=(typeof C=="object"||typeof C=="string")&&C?C:S;let E;_ instanceof File?E=_:E=new File([_],S.name,{type:S.type});const A=E;return A.uid=S.uid,{origin:S,data:T,parsedFile:A,action:w}}),u=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:I,name:T,headers:_,withCredentials:E,method:A}=e,{uid:R}=x,z=I||khe,M={action:C,filename:T,data:$,file:O,headers:_,withCredentials:E,method:A||"post",onProgress:B=>{const{onProgress:N}=e;N==null||N(B,O)},onSuccess:(B,N)=>{const{onSuccess:F}=e;F==null||F(B,O,N),delete i[R]},onError:(B,N)=>{const{onError:F}=e;F==null||F(B,N,O),delete i[R]}};w(x),i[R]=z(M)},d=()=>{l.value=zh()},f=S=>{if(S){const $=S.uid?S.uid:S;i[$]&&i[$].abort&&i[$].abort(),delete i[$]}else Object.keys(i).forEach($=>{i[$]&&i[$].abort&&i[$].abort(),delete i[$]})};je(()=>{s=!0}),Ze(()=>{s=!1,f()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=zh(),c(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O==null||O(C.map(w=>{let{origin:I,parsedFile:T}=w;return{file:I,parsedFile:T}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{u(w)})})},v=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||Hh(w,$));g(O),d()},h=S=>{const $=a.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)Vhe(Array.prototype.slice.call(S.dataTransfer.items),g,x=>Hh(x,e.accept));else{const x=KK(Array.prototype.slice.call(S.dataTransfer.files),w=>Hh(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:f}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:I,capture:T,directory:_,openFileDialogOnClick:E,onMouseenter:A,onMouseleave:R}=e,z=Ghe(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),M={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},B=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return p($,D(D({},C?{}:{onClick:E?h:()=>{},onKeydown:E?b:()=>{},onMouseenter:A,onMouseleave:R,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:M,role:"button",style:o.style}),{default:()=>[p("input",D(D(D({},wl(z,{aria:!0,data:!0})),{},{id:O,type:"file",ref:a,onClick:F=>F.stopPropagation(),onCancel:F=>F.stopPropagation(),key:l.value,style:{display:"none"},accept:I},B),{},{multiple:w,onChange:v},T!=null?{capture:T}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function jh(){}const M4=oe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:qe(rM(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jh,onError:jh,onSuccess:jh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();return r({abort:a=>{var s;(s=l.value)===null||s===void 0||s.abort(a)}}),()=>p(Xhe,D(D(D({},e),o),{},{ref:l}),n)}});var Uhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const Yhe=Uhe;function _4(e){for(var t=1;t{let{uid:l}=r;return l===e.uid});return o===-1?n.push(e):n[o]=e,n}function Wh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function ave(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const sve=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},iM=e=>e.indexOf("image/")===0,cve=e=>{if(e.type&&!e.thumbUrl)return iM(e.type);const t=e.thumbUrl||e.url||"",n=sve(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Yr=200;function uve(e){return new Promise(t=>{if(!e.type||!iM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Yr,n.height=Yr,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yr}px; height: ${Yr}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:l,height:i}=r;let a=Yr,s=Yr,c=0,u=0;l>i?(s=i*(Yr/l),u=-(s-a)/2):(a=l*(Yr/i),c=-(a-s)/2),o.drawImage(r,c,u,a,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.addEventListener("load",()=>{l.result&&(r.src=l.result)}),l.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var dve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const fve=dve;function D4(e){for(var t=1;t({prefixCls:String,locale:Re(void 0),file:Re(),items:at(),listType:Be(),isImgUrl:ve(),showRemoveIcon:Ce(),showDownloadIcon:Ce(),showPreviewIcon:Ce(),removeIcon:ve(),downloadIcon:ve(),previewIcon:ve(),iconRender:ve(),actionIconRender:ve(),itemRender:ve(),onPreview:ve(),onClose:ve(),onDownload:ve(),progress:Re()}),vve=oe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:hve(),setup(e,t){let{slots:n,attrs:o}=t;var r;const l=te(!1),i=te();je(()=>{i.value=setTimeout(()=>{l.value=!0},300)}),Ze(()=>{clearTimeout(i.value)});const a=te((r=e.file)===null||r===void 0?void 0:r.status);be(()=>{var u;return(u=e.file)===null||u===void 0?void 0:u.status},u=>{u!=="removed"&&(a.value=u)});const{rootPrefixCls:s}=Te("upload",e),c=P(()=>Po(`${s.value}-fade`));return()=>{var u,d;const{prefixCls:f,locale:g,listType:v,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:I,previewIcon:T=n.previewIcon,removeIcon:_=n.removeIcon,downloadIcon:E=n.downloadIcon,onPreview:A,onDownload:R,onClose:z}=e,{class:M,style:B}=o,N=S({file:h});let F=p("div",{class:`${f}-text-icon`},[N]);if(v==="picture"||v==="picture-card")if(a.value==="uploading"||!h.thumbUrl&&!h.url){const W={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:a.value!=="uploading"};F=p("div",{class:W},[N])}else{const W=C!=null&&C(h)?p("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${f}-list-item-image`,crossorigin:h.crossOrigin},null):N,X={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:C&&!C(h)};F=p("a",{class:X,onClick:ne=>A(h,ne),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[W])}const L={[`${f}-list-item`]:!0,[`${f}-list-item-${a.value}`]:!0},k=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,j=w?$({customIcon:_?_({file:h}):p(Q5,null,null),callback:()=>z(h),prefixCls:f,title:g.removeFile}):null,H=I&&a.value==="done"?$({customIcon:E?E({file:h}):p(gve,null,null),callback:()=>R(h),prefixCls:f,title:g.downloadFile}):null,Y=v!=="picture-card"&&p("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[H,j]),Z=`${f}-list-item-name`,U=h.url?[p("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:h.name},k),{},{href:h.url,onClick:W=>A(h,W)}),[h.name]),Y]:[p("span",{key:"view",class:Z,onClick:W=>A(h,W),title:h.name},[h.name]),Y],ee={pointerEvents:"none",opacity:.5},G=O?p("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:ee,onClick:W=>A(h,W),title:g.previewFile},[T?T({file:h}):p(Jy,null,null)]):null,J=v==="picture-card"&&a.value!=="uploading"&&p("span",{class:`${f}-list-item-actions`},[G,a.value==="done"&&H,j]),Q=p("div",{class:L},[F,U,J,l.value&&p(cn,c.value,{default:()=>[$n(p("div",{class:`${f}-list-item-progress`},["percent"in h?p(b1,D(D({},y),{},{type:"line",percent:h.percent}),null):null]),[[En,a.value==="uploading"]])]})]),K={[`${f}-list-item-container`]:!0,[`${M}`]:!!M},q=h.response&&typeof h.response=="string"?h.response:((u=h.error)===null||u===void 0?void 0:u.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,pe=a.value==="error"?p(Yn,{title:q,getPopupContainer:W=>W.parentNode},{default:()=>[Q]}):Q;return p("div",{class:K,style:B},[x?x({originNode:pe,file:h,fileList:b,actions:{download:R.bind(null,h),preview:A.bind(null,h),remove:z.bind(null,h)}}):pe])}}}),mve=(e,t)=>{let{slots:n}=t;var o;return _t((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},bve=oe({compatConfig:{MODE:3},name:"AUploadList",props:qe(ive(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:uve,isImageUrl:cve,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=te(!1);je(()=>{r.value==!0});const l=te([]);be(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.value=h.slice()},{immediate:!0,deep:!0}),ke(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(l.value[y].thumbUrl=$,h=!0)}))}),h&&$3(l)});const i=(h,b)=>{if(e.onPreview)return b==null||b.preventDefault(),e.onPreview(h)},a=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},c=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?p(tve,null,null):p(lve,null,null);let x=p(S?co:Zhe,null,null);return e.listType==="picture"?x=S?p(co,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},u=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return Kt(b)?p(zt,x,{icon:()=>b}):p(zt,x,{default:()=>[p("span",null,[b])]})};o({handlePreview:i,handleDownload:a});const{prefixCls:d,rootPrefixCls:f}=Te("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=P(()=>{const h=m({},Rc(`${f.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=m(m({},up(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?m(m({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:I,appendAction:T,itemRender:_,appendActionVisible:E}=e,A=T==null?void 0:T(),R=l.value;return p(Hf,D(D({},v.value),{},{tag:"div"}),{default:()=>[R.map(z=>{const{uid:M}=z;return p(vve,{key:M,locale:b,prefixCls:d.value,file:z,items:R,progress:I,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:i,onDownload:a,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:_},m(m({},n),{iconRender:c,actionIconRender:u}))}),T?$n(p(mve,{key:"__ant_upload_appendAction"},{default:()=>A}),[[En,!!E]]):null]})}}}),yve=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Sve=yve,$ve=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,c=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:m(m({},zo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:m(m({},Gt),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${s}:focus, - &.picture ${s} - `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cve=$ve,B4=new nt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),N4=new nt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),xve=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:B4},[`${n}-leave`]:{animationName:N4}}},B4,N4]},wve=xve,Ove=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:m(m({},Gt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},Pve=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:m(m({},zo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new gt(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Ive=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Tve=Ive,Eve=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:m(m({},Xe(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Mve=Ve("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=Math.round(n*o),a=Fe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:i/2+r,uploadPicCardSize:l*2.55});return[Eve(a),Sve(a),Ove(a),Pve(a),Cve(a),wve(a),Tve(a),Ac(a)]});var _ve=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ave=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var E;return(E=s.value)!==null&&E!==void 0?E:d.value}),[g,v]=Pt(e.defaultFileList||[],{value:ze(e,"fileList"),postState:E=>{const A=Date.now();return(E??[]).map((R,z)=>(!R.uid&&!Object.isFrozen(R)&&(R.uid=`__AUTO__${A}_${z}__`),R))}}),h=le("drop"),b=le(null);je(()=>{xt(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),xt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),xt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(E,A,R)=>{var z,M;let B=[...A];e.maxCount===1?B=B.slice(-1):e.maxCount&&(B=B.slice(0,e.maxCount)),v(B);const N={file:E,fileList:B};R&&(N.event=R),(z=e["onUpdate:fileList"])===null||z===void 0||z.call(e,N.fileList),(M=e.onChange)===null||M===void 0||M.call(e,N),l.onFieldChange()},S=(E,A)=>_ve(this,void 0,void 0,function*(){const{beforeUpload:R,transformFile:z}=e;let M=E;if(R){const B=yield R(E,A);if(B===!1)return!1;if(delete E[ds],B===ds)return Object.defineProperty(E,ds,{value:!0,configurable:!0}),!1;typeof B=="object"&&B&&(M=B)}return z&&(M=yield z(M)),M}),$=E=>{const A=E.filter(M=>!M.file[ds]);if(!A.length)return;const R=A.map(M=>Eu(M.file));let z=[...g.value];R.forEach(M=>{z=Mu(M,z)}),R.forEach((M,B)=>{let N=M;if(A[B].parsedFile)M.status="uploading";else{const{originFileObj:F}=M;let L;try{L=new File([F],F.name,{type:F.type})}catch{L=new Blob([F],{type:F.type}),L.name=F.name,L.lastModifiedDate=new Date,L.lastModified=new Date().getTime()}L.uid=M.uid,N=L}y(N,z)})},x=(E,A,R)=>{try{typeof E=="string"&&(E=JSON.parse(E))}catch{}if(!Wh(A,g.value))return;const z=Eu(A);z.status="done",z.percent=100,z.response=E,z.xhr=R;const M=Mu(z,g.value);y(z,M)},C=(E,A)=>{if(!Wh(A,g.value))return;const R=Eu(A);R.status="uploading",R.percent=E.percent;const z=Mu(R,g.value);y(R,z,E)},O=(E,A,R)=>{if(!Wh(R,g.value))return;const z=Eu(R);z.error=E,z.response=A,z.status="error";const M=Mu(z,g.value);y(z,M)},w=E=>{let A;const R=e.onRemove||e.remove;Promise.resolve(typeof R=="function"?R(E):R).then(z=>{var M,B;if(z===!1)return;const N=ave(E,g.value);N&&(A=m(m({},E),{status:"removed"}),(M=g.value)===null||M===void 0||M.forEach(F=>{const L=A.uid!==void 0?"uid":"name";F[L]===A[L]&&!Object.isFrozen(F)&&(F.status="removed")}),(B=b.value)===null||B===void 0||B.abort(A),y(A,N))})},I=E=>{var A;h.value=E.type,E.type==="drop"&&((A=e.onDrop)===null||A===void 0||A.call(e,E))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[T]=Io("Upload",jn.Upload,P(()=>e.locale)),_=(E,A)=>{const{removeIcon:R,previewIcon:z,downloadIcon:M,previewFile:B,onPreview:N,onDownload:F,isImageUrl:L,progress:k,itemRender:j,iconRender:H,showUploadList:Y}=e,{showDownloadIcon:Z,showPreviewIcon:U,showRemoveIcon:ee}=typeof Y=="boolean"?{}:Y;return Y?p(bve,{prefixCls:i.value,listType:e.listType,items:g.value,previewFile:B,onPreview:N,onDownload:F,onRemove:w,showRemoveIcon:!f.value&&ee,showPreviewIcon:U,showDownloadIcon:Z,removeIcon:R,previewIcon:z,downloadIcon:M,iconRender:H,locale:T.value,isImageUrl:L,progress:k,itemRender:j,appendActionVisible:A,appendAction:E},m({},n)):E==null?void 0:E()};return()=>{var E,A,R;const{listType:z,type:M}=e,{class:B,style:N}=o,F=Ave(o,["class","style"]),L=m(m(m({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},F),e),{id:(E=e.id)!==null&&E!==void 0?E:l.id.value,prefixCls:i.value,beforeUpload:S,onChange:void 0,disabled:f.value});delete L.remove,(!n.default||f.value)&&delete L.id;const k={[`${i.value}-rtl`]:a.value==="rtl"};if(M==="drag"){const Z=ie(i.value,{[`${i.value}-drag`]:!0,[`${i.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${i.value}-drag-hover`]:h.value==="dragover",[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"},o.class,u.value);return c(p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,B,u.value)}),[p("div",{class:Z,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[p(M4,D(D({},L),{},{ref:b,class:`${i.value}-btn`}),D({default:()=>[p("div",{class:`${i.value}-drag-container`},[(A=n.default)===null||A===void 0?void 0:A.call(n)])]},n))]),_()]))}const j=ie(i.value,{[`${i.value}-select`]:!0,[`${i.value}-select-${z}`]:!0,[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"}),H=yt((R=n.default)===null||R===void 0?void 0:R.call(n)),Y=Z=>p("div",{class:j,style:Z},[p(M4,D(D({},L),{},{ref:b}),n)]);return c(z==="picture-card"?p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,`${i.value}-picture-card-wrapper`,k,o.class,u.value)}),[_(Y,!!(H&&H.length))]):p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,o.class,u.value)}),[Y(H&&H.length?void 0:{display:"none"}),_()]))}}});var F4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,l=F4(e,["height"]),{style:i}=o,a=F4(o,["style"]),s=m(m(m({},l),a),{type:"drag",style:m(m({},i),{height:typeof r=="number"?`${r}px`:r})});return p(yd,s,n)}}}),Rve=Sd,Dve=m(yd,{Dragger:Sd,LIST_IGNORE:ds,install(e){return e.component(yd.name,yd),e.component(Sd.name,Sd),e}});function Bve(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Nve(e){return Object.keys(e).map(t=>`${Bve(t)}: ${e[t]};`).join(" ")}function L4(){return window.devicePixelRatio||1}function Vh(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const Fve=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var Lve=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Lve(n,["window"]);let l;const i=w6(()=>o&&"MutationObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new MutationObserver(t),l.observe(u,r))},{immediate:!0}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}const Kh=2,k4=3,zve=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Le([String,Array]),font:Re(),rootClassName:String,gap:at(),offset:at()}),Hve=oe({name:"AWatermark",inheritAttrs:!1,props:qe(zve(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=Fr(),l=te(),i=te(),a=te(!1),s=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:100}),c=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:100}),u=P(()=>s.value/2),d=P(()=>c.value/2),f=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:u.value}),g=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:d.value}),v=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontSize)!==null&&E!==void 0?E:r.value.fontSizeLG}),h=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontWeight)!==null&&E!==void 0?E:"normal"}),b=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontStyle)!==null&&E!==void 0?E:"normal"}),y=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontFamily)!==null&&E!==void 0?E:"sans-serif"}),S=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.color)!==null&&E!==void 0?E:r.value.colorFill}),$=P(()=>{var _;const E={zIndex:(_=e.zIndex)!==null&&_!==void 0?_:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=f.value-u.value,R=g.value-d.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),R>0&&(E.top=`${R}px`,E.height=`calc(100% - ${R}px)`,R=0),E.backgroundPosition=`${A}px ${R}px`,E}),x=()=>{i.value&&(i.value.remove(),i.value=void 0)},C=(_,E)=>{var A;l.value&&i.value&&(a.value=!0,i.value.setAttribute("style",Nve(m(m({},$.value),{backgroundImage:`url('${_}')`,backgroundSize:`${(s.value+E)*Kh}px`}))),(A=l.value)===null||A===void 0||A.append(i.value),setTimeout(()=>{a.value=!1}))},O=_=>{let E=120,A=64;const R=e.content,z=e.image,M=e.width,B=e.height;if(!z&&_.measureText){_.font=`${Number(v.value)}px ${y.value}`;const N=Array.isArray(R)?R:[R],F=N.map(L=>_.measureText(L).width);E=Math.ceil(Math.max(...F)),A=Number(v.value)*N.length+(N.length-1)*k4}return[M??E,B??A]},w=(_,E,A,R,z)=>{const M=L4(),B=e.content,N=Number(v.value)*M;_.font=`${b.value} normal ${h.value} ${N}px/${z}px ${y.value}`,_.fillStyle=S.value,_.textAlign="center",_.textBaseline="top",_.translate(R/2,0);const F=Array.isArray(B)?B:[B];F==null||F.forEach((L,k)=>{_.fillText(L??"",E,A+k*(N+k4*M))})},I=()=>{var _;const E=document.createElement("canvas"),A=E.getContext("2d"),R=e.image,z=(_=e.rotate)!==null&&_!==void 0?_:-22;if(A){i.value||(i.value=document.createElement("div"));const M=L4(),[B,N]=O(A),F=(s.value+B)*M,L=(c.value+N)*M;E.setAttribute("width",`${F*Kh}px`),E.setAttribute("height",`${L*Kh}px`);const k=s.value*M/2,j=c.value*M/2,H=B*M,Y=N*M,Z=(H+s.value*M)/2,U=(Y+c.value*M)/2,ee=k+F,G=j+L,J=Z+F,Q=U+L;if(A.save(),Vh(A,Z,U,z),R){const K=new Image;K.onload=()=>{A.drawImage(K,k,j,H,Y),A.restore(),Vh(A,J,Q,z),A.drawImage(K,ee,G,H,Y),C(E.toDataURL(),B)},K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=R}else w(A,k,j,H,Y),A.restore(),Vh(A,J,Q,z),w(A,ee,G,H,Y),C(E.toDataURL(),B)}};return je(()=>{I()}),be(()=>[e,r.value.colorFill,r.value.fontSizeLG],()=>{I()},{deep:!0,flush:"post"}),Ze(()=>{x()}),kve(l,_=>{a.value||_.forEach(E=>{Fve(E,i.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var _;return p("div",D(D({},o),{},{ref:l,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(_=n.default)===null||_===void 0?void 0:_.call(n)])}}}),jve=Tt(Hve);function z4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function H4(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Wve=m({overflow:"hidden"},Gt),Vve=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":m(m({},H4(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":m({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Wve),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:m(m({},H4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),z4(`&-disabled ${t}-item`,e)),z4(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Kve=Ve("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:l,colorBgLayout:i,colorBgElevated:a}=e,s=Fe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:i,bgColorHover:l,bgColorSelected:a});return[Vve(s)]}),j4=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,ki=e=>e!==void 0?`${e}px`:void 0,Gve=oe({props:{value:St(),getValueIndex:St(),prefixCls:St(),motionName:St(),onMotionStart:St(),onMotionEnd:St(),direction:St(),containerRef:St()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=le(),r=v=>{var h;const b=e.getValueIndex(v),y=(h=e.containerRef.value)===null||h===void 0?void 0:h.querySelectorAll(`.${e.prefixCls}-item`)[b];return(y==null?void 0:y.offsetParent)&&y},l=le(null),i=le(null);be(()=>e.value,(v,h)=>{const b=r(h),y=r(v),S=j4(b),$=j4(y);l.value=S,i.value=$,n(b&&y?"motionStart":"motionEnd")},{flush:"post"});const a=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=l.value)===null||v===void 0?void 0:v.right)):ki((h=l.value)===null||h===void 0?void 0:h.left)}),s=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=i.value)===null||v===void 0?void 0:v.right)):ki((h=i.value)===null||h===void 0?void 0:h.left)});let c;const u=v=>{clearTimeout(c),ot(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{c=setTimeout(()=>{v&&(lf(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{l.value=null,i.value=null,v&&(v.style.transform=null,v.style.width=null,af(v,`${e.motionName}-appear-active`)),n("motionEnd")},g=P(()=>{var v,h;return{"--thumb-start-left":a.value,"--thumb-start-width":ki((v=l.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":ki((h=i.value)===null||h===void 0?void 0:h.width)}});return Ze(()=>{clearTimeout(c)}),()=>{const v={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return p(cn,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:f},{default:()=>[!l.value||!i.value?null:p("div",v,null)]})}}}),Xve=Gve;function Uve(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const Yve=()=>({prefixCls:String,options:at(),block:Ce(),disabled:Ce(),size:Be(),value:m(m({},Le([String,Number])),{required:!0}),motionName:String,onChange:ve(),"onUpdate:value":ve()}),aM=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:l,payload:i,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e,f=g=>{l||o("change",g,r)};return p("label",{class:ie({[`${s}-item-disabled`]:l},d)},[p("input",{class:`${s}-item-input`,type:"radio",disabled:l,checked:u,onChange:f},null),p("div",{class:`${s}-item-label`,title:typeof a=="string"?a:""},[typeof c=="function"?c({value:r,disabled:l,payload:i,title:a}):c??r])])};aM.inheritAttrs=!1;const qve=oe({name:"ASegmented",inheritAttrs:!1,props:qe(Yve(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,size:a}=Te("segmented",e),[s,c]=Kve(l),u=te(),d=te(!1),f=P(()=>Uve(e.options)),g=(v,h)=>{e.disabled||(n("update:value",h),n("change",h))};return()=>{const v=l.value;return s(p("div",D(D({},r),{},{class:ie(v,{[c.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:a.value=="large",[`${v}-sm`]:a.value=="small",[`${v}-rtl`]:i.value==="rtl"},r.class),ref:u}),[p("div",{class:`${v}-group`},[p(Xve,{containerRef:u,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:i.value,getValueIndex:h=>f.value.findIndex(b=>b.value===h),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(h=>p(aM,D(D({key:h.value,prefixCls:v,checked:h.value===e.value,onChange:g},h),{},{className:ie(h.className,`${v}-item`,{[`${v}-item-selected`]:h.value===e.value&&!d.value}),disabled:!!e.disabled||!!h.disabled}),o))])]))}}}),Zve=Tt(qve),Qve=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Jve=Ve("QRCode",e=>Qve(Fe(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var eme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const tme=eme;function W4(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Be("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:Re()}),rme=()=>m(m({},Z1()),{errorLevel:Be("M"),icon:String,iconSize:{type:Number,default:40},status:Be("active"),bordered:{type:Boolean,default:!0}});/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var hi;(function(e){class t{static encodeText(a,s){const c=e.QrSegment.makeSegments(a);return t.encodeSegments(c,s)}static encodeBinary(a,s){const c=e.QrSegment.makeBytes(a);return t.encodeSegments([c],s)}static encodeSegments(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=c&&c<=u&&u<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let g,v;for(g=c;;g++){const S=t.getNumDataCodewords(g,s)*8,$=l.getTotalBits(a,g);if($<=S){v=$;break}if(g>=u)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(g,S)*8&&(s=S);const h=[];for(const S of a){n(S.mode.modeBits,4,h),n(S.numChars,S.mode.numCharCountBits(g),h);for(const $ of S.getData())h.push($)}r(h.length==v);const b=t.getNumDataCodewords(g,s)*8;r(h.length<=b),n(0,Math.min(4,b-h.length),h),n(0,(8-h.length%8)%8,h),r(h.length%8==0);for(let S=236;h.lengthy[$>>>3]|=S<<7-($&7)),new t(g,s,y,d)}constructor(a,s,c,u){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const d=[];for(let g=0;g>>9)*1335;const u=(s<<10|c)^21522;r(u>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(u,d));this.setFunctionModule(8,7,o(u,6)),this.setFunctionModule(8,8,o(u,7)),this.setFunctionModule(7,8,o(u,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(u,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(u,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(u,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let c=0;c<12;c++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;r(s>>>18==0);for(let c=0;c<18;c++){const u=o(s,c),d=this.size-11+c%3,f=Math.floor(c/3);this.setFunctionModule(d,f,u),this.setFunctionModule(f,d,u)}}drawFinderPattern(a,s){for(let c=-4;c<=4;c++)for(let u=-4;u<=4;u++){const d=Math.max(Math.abs(u),Math.abs(c)),f=a+u,g=s+c;0<=f&&f{(S!=v-d||x>=g)&&y.push($[S])});return r(y.length==f),y}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let u=0;u>>3],7-(s&7)),s++)}}r(s==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][h],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;d5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[h][d],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;df+(g?1:0),s);const c=this.size*this.size,u=Math.ceil(Math.abs(s*20-c*10)/c)-1;return r(0<=u&&u<=9),a+=u*t.PENALTY_N4,r(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,c=[6];for(let u=this.size-7;c.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const c=Math.floor(a/7)+2;s-=(25*c-10)*c-55,a>=7&&(s-=36)}return r(208<=s&&s<=29648),s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let u=0;u0);for(const u of a){const d=u^c.shift();c.push(0),s.forEach((f,g)=>c[g]^=t.reedSolomonMultiply(f,d))}return c}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let c=0;for(let u=7;u>=0;u--)c=c<<1^(c>>>7)*285,c^=(s>>>u&1)*a;return r(c>>>8==0),c}finderPenaltyCountPatterns(a){const s=a[1];r(s<=this.size*3);const c=s>0&&a[2]==s&&a[3]==s*3&&a[4]==s&&a[5]==s;return(c&&a[0]>=s*4&&a[6]>=s?1:0)+(c&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,c){return a&&(this.finderPenaltyAddHistory(s,c),s=0),s+=this.size,this.finderPenaltyAddHistory(s,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(a,s){s[0]==0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let c=a-1;c>=0;c--)s.push(i>>>c&1)}function o(i,a){return(i>>>a&1)!=0}function r(i){if(!i)throw new Error("Assertion error")}class l{static makeBytes(a){const s=[];for(const c of a)n(c,8,s);return new l(l.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!l.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let c=0;c=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,r){let l=null;o.forEach(function(i,a){if(!i&&l!==null){n.push(`M${l+t} ${r+t}h${a-l}v1H${l+t}z`),l=null;return}if(a===o.length-1){if(!i)return;l===null?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${l+t},${r+t} h${a+1-l}v1H${l+t}z`);return}i&&l===null&&(l=a)})}),n.join("")}function gM(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((r,l)=>l=t.x+t.w?r:!1))}function hM(e,t,n,o){if(o==null)return null;const r=e.length+n*2,l=Math.floor(t*ame),i=r/t,a=(o.width||l)*i,s=(o.height||l)*i,c=o.x==null?e.length/2-a/2:o.x*i,u=o.y==null?e.length/2-s/2:o.y*i;let d=null;if(o.excavate){const f=Math.floor(c),g=Math.floor(u),v=Math.ceil(a+c-f),h=Math.ceil(s+u-g);d={x:f,y:g,w:v,h}}return{x:c,y:u,h:s,w:a,excavation:d}}function vM(e,t){return t!=null?Math.floor(t):e?lme:ime}const sme=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),cme=oe({name:"QRCodeCanvas",inheritAttrs:!1,props:m(m({},Z1()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),l=te(null),i=te(null),a=te(!1);return o({toDataURL:(s,c)=>{var u;return(u=l.value)===null||u===void 0?void 0:u.toDataURL(s,c)}}),ke(()=>{const{value:s,size:c=Nm,level:u=cM,bgColor:d=uM,fgColor:f=dM,includeMargin:g=fM,marginSize:v,imageSettings:h}=e;if(l.value!=null){const b=l.value,y=b.getContext("2d");if(!y)return;let S=ea.QrCode.encodeText(s,sM[u]).getModules();const $=vM(g,v),x=S.length+$*2,C=hM(S,c,$,h),O=i.value,w=a.value&&C!=null&&O!==null&&O.complete&&O.naturalHeight!==0&&O.naturalWidth!==0;w&&C.excavation!=null&&(S=gM(S,C.excavation));const I=window.devicePixelRatio||1;b.height=b.width=c*I;const T=c/x*I;y.scale(T,T),y.fillStyle=d,y.fillRect(0,0,x,x),y.fillStyle=f,sme?y.fill(new Path2D(pM(S,$))):S.forEach(function(_,E){_.forEach(function(A,R){A&&y.fillRect(R+$,E+$,1,1)})}),w&&y.drawImage(O,C.x+$,C.y+$,C.w,C.h)}},{flush:"post"}),be(r,()=>{a.value=!1}),()=>{var s;const c=(s=e.size)!==null&&s!==void 0?s:Nm,u={height:`${c}px`,width:`${c}px`};let d=null;return r.value!=null&&(d=p("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:i},null)),p(We,null,[p("canvas",D(D({},n),{},{style:[u,n.style],ref:l}),null),d])}}}),ume=oe({name:"QRCodeSVG",inheritAttrs:!1,props:m(m({},Z1()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,l=null,i=null;return ke(()=>{const{value:a,size:s=Nm,level:c=cM,includeMargin:u=fM,marginSize:d,imageSettings:f}=e;t=ea.QrCode.encodeText(a,sM[c]).getModules(),n=vM(u,d),o=t.length+n*2,r=hM(t,s,n,f),f!=null&&r!=null&&(r.excavation!=null&&(t=gM(t,r.excavation)),i=p("image",{"xlink:href":f.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),l=pM(t,n)}),()=>{const a=e.bgColor&&uM,s=e.fgColor&&dM;return p("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&p("title",null,[e.title]),p("path",{fill:a,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),p("path",{fill:s,d:l,"shape-rendering":"crispEdges"},null),i])}}}),dme=oe({name:"AQrcode",inheritAttrs:!1,props:rme(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[l]=Io("QRCode"),{prefixCls:i}=Te("qrcode",e),[a,s]=Jve(i),[,c]=Fr(),u=le();r({toDataURL:(f,g)=>{var v;return(v=u.value)===null||v===void 0?void 0:v.toDataURL(f,g)}});const d=P(()=>{const{value:f,icon:g="",size:v=160,iconSize:h=40,color:b=c.value.colorText,bgColor:y="transparent",errorLevel:S="M"}=e,$={src:g,x:void 0,y:void 0,height:h,width:h,excavate:!0};return{value:f,size:v-(c.value.paddingSM+c.value.lineWidth)*2,level:S,bgColor:y,fgColor:b,imageSettings:g?$:void 0}});return()=>{const f=i.value;return a(p("div",D(D({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&p("div",{class:`${f}-mask`},[e.status==="loading"&&p(ir,null,null),e.status==="expired"&&p(We,null,[p("p",{class:`${f}-expired`},[l.value.expired]),p(zt,{type:"link",onClick:g=>n("refresh",g)},{default:()=>[l.value.refresh],icon:()=>p(ome,null,null)})]),e.status==="scanned"&&p("p",{class:`${f}-scanned`},[l.value.scanned])]),e.type==="canvas"?p(cme,D({ref:u},d.value),null):p(ume,d.value,null)]))}}}),fme=Tt(dme);function pme(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:l,left:i}=e.getBoundingClientRect();return o>=0&&i>=0&&r<=t&&l<=n}function gme(e,t,n,o){const[r,l]=vt(void 0);ke(()=>{const u=typeof e.value=="function"?e.value():e.value;l(u||null)},{flush:"post"});const[i,a]=vt(null),s=()=>{if(!t.value){a(null);return}if(r.value){!pme(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:u,top:d,width:f,height:g}=r.value.getBoundingClientRect(),v={left:u,top:d,width:f,height:g,radius:0};JSON.stringify(i.value)!==JSON.stringify(v)&&a(v)}else a(null)};return je(()=>{be([t,r],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Ze(()=>{window.removeEventListener("resize",s)}),[P(()=>{var u,d;if(!i.value)return i.value;const f=((u=n.value)===null||u===void 0?void 0:u.offset)||6,g=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:i.value.left-f,top:i.value.top-f,width:i.value.width+f*2,height:i.value.height+f*2,radius:g}}),r]}const hme=()=>({arrow:Le([Boolean,Object]),target:Le([String,Function,Object]),title:Le([String,Object]),description:Le([String,Object]),placement:Be(),mask:Le([Object,Boolean],!0),className:{type:String},style:Re(),scrollIntoViewOptions:Le([Boolean,Object])}),Q1=()=>m(m({},hme()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:ve(),onFinish:ve(),renderPanel:ve(),onPrev:ve(),onNext:ve()}),vme=oe({name:"DefaultPanel",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:r,total:l,title:i,description:a,onClose:s,onPrev:c,onNext:u,onFinish:d}=e;return p("div",D(D({},n),{},{class:ie(`${o}-content`,n.class)}),[p("div",{class:`${o}-inner`},[p("button",{type:"button",onClick:s,"aria-label":"Close",class:`${o}-close`},[p("span",{class:`${o}-close-x`},[Lt("×")])]),p("div",{class:`${o}-header`},[p("div",{class:`${o}-title`},[i])]),p("div",{class:`${o}-description`},[a]),p("div",{class:`${o}-footer`},[p("div",{class:`${o}-sliders`},[l>1?[...Array.from({length:l}).keys()].map((f,g)=>p("span",{key:f,class:g===r?"active":""},null)):null]),p("div",{class:`${o}-buttons`},[r!==0?p("button",{class:`${o}-prev-btn`,onClick:c},[Lt("Prev")]):null,r===l-1?p("button",{class:`${o}-finish-btn`,onClick:d},[Lt("Finish")]):p("button",{class:`${o}-next-btn`,onClick:u},[Lt("Next")])])])])])}}}),mme=vme,bme=oe({name:"TourStep",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:r}=e;return p(We,null,[typeof r=="function"?r(m(m({},n),e),o):p(mme,D(D({},n),e),null)])}}}),yme=bme;let V4=0;const Sme=Mn();function $me(){let e;return Sme?(e=V4,V4+=1):e="TEST_OR_SSR",e}function Cme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le("");const t=`vc_unique_${$me()}`;return e.value||t}const _u={fill:"transparent","pointer-events":"auto"},xme=oe({name:"TourMask",props:{prefixCls:{type:String},pos:Re(),rootClassName:{type:String},showMask:Ce(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Ce(),animated:Le([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=Cme();return()=>{const{prefixCls:r,open:l,rootClassName:i,pos:a,showMask:s,fill:c,animated:u,zIndex:d}=e,f=`${r}-mask-${o}`,g=typeof u=="object"?u==null?void 0:u.placeholder:u;return p(Ic,{visible:l,autoLock:!0},{default:()=>l&&p("div",D(D({},n),{},{class:ie(`${r}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?p("svg",{style:{width:"100%",height:"100%"}},[p("defs",null,[p("mask",{id:f},[p("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&p("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:g?`${r}-placeholder-animated`:""},null)])]),p("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:`url(#${f})`},null),a&&p(We,null,[p("rect",D(D({},_u),{},{x:"0",y:"0",width:"100%",height:a.top}),null),p("rect",D(D({},_u),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),p("rect",D(D({},_u),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),p("rect",D(D({},_u),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),wme=xme,Ome=[0,0],K4={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function mM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(K4).forEach(n=>{t[n]=m(m({},K4[n]),{autoArrow:e,targetOffset:Ome})}),t}mM();var Pme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{builtinPlacements:e,popupAlign:t}=JP();return{builtinPlacements:e,popupAlign:t,steps:at(),open:Ce(),defaultCurrent:{type:Number},current:{type:Number},onChange:ve(),onClose:ve(),onFinish:ve(),mask:Le([Boolean,Object],!0),arrow:Le([Boolean,Object],!0),rootClassName:{type:String},placement:Be("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:ve(),gap:Re(),animated:Le([Boolean,Object]),scrollIntoViewOptions:Le([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Ime=oe({name:"Tour",inheritAttrs:!1,props:qe(bM(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:l,gap:i,arrow:a}=No(e),s=le(),[c,u]=Pt(0,{value:P(()=>e.current),defaultValue:t.value}),[d,f]=Pt(void 0,{value:P(()=>e.open),postState:w=>c.value<0||c.value>=e.steps.length?!1:w??!0}),g=te(d.value);ke(()=>{d.value&&!g.value&&u(0),g.value=d.value});const v=P(()=>e.steps[c.value]||{}),h=P(()=>{var w;return(w=v.value.placement)!==null&&w!==void 0?w:n.value}),b=P(()=>{var w;return d.value&&((w=v.value.mask)!==null&&w!==void 0?w:o.value)}),y=P(()=>{var w;return(w=v.value.scrollIntoViewOptions)!==null&&w!==void 0?w:r.value}),[S,$]=gme(P(()=>v.value.target),l,i,y),x=P(()=>$.value?typeof v.value.arrow>"u"?a.value:v.value.arrow:!1),C=P(()=>typeof x.value=="object"?x.value.pointAtCenter:!1);be(C,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()}),be(c,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()});const O=w=>{var I;u(w),(I=e.onChange)===null||I===void 0||I.call(e,w)};return()=>{var w;const{prefixCls:I,steps:T,onClose:_,onFinish:E,rootClassName:A,renderPanel:R,animated:z,zIndex:M}=e,B=Pme(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if($.value===void 0)return null;const N=()=>{f(!1),_==null||_(c.value)},F=typeof b.value=="boolean"?b.value:!!b.value,L=typeof b.value=="boolean"?void 0:b.value,k=()=>$.value||document.body,j=()=>p(yme,D({arrow:x.value,key:"content",prefixCls:I,total:T.length,renderPanel:R,onPrev:()=>{O(c.value-1)},onNext:()=>{O(c.value+1)},onClose:N,current:c.value,onFinish:()=>{N(),E==null||E()}},v.value),null),H=P(()=>{const Y=S.value||Gh,Z={};return Object.keys(Y).forEach(U=>{typeof Y[U]=="number"?Z[U]=`${Y[U]}px`:Z[U]=Y[U]}),Z});return d.value?p(We,null,[p(wme,{zIndex:M,prefixCls:I,pos:S.value,showMask:F,style:L==null?void 0:L.style,fill:L==null?void 0:L.color,open:d.value,animated:z,rootClassName:A},null),p(wi,D(D({},B),{},{arrow:!!B.arrow,builtinPlacements:v.value.target?(w=B.builtinPlacements)!==null&&w!==void 0?w:mM(C.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:m(m({},v.value.style),{position:"fixed",left:Gh.left,top:Gh.top,transform:"translate(-50%, -50%)"}),popupPlacement:h.value,popupVisible:d.value,popupClassName:ie(A,v.value.className),prefixCls:I,popup:j,forceRender:!1,destroyPopupOnHide:!0,zIndex:M,mask:!1,getTriggerDOMNode:k}),{default:()=>[p(Ic,{visible:d.value,autoLock:!0},{default:()=>[p("div",{class:ie(A,`${I}-target-placeholder`),style:m(m({},H.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),Tme=Ime,Eme=()=>m(m({},bM()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Mme=()=>m(m({},Q1()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),_me=oe({name:"ATourPanel",inheritAttrs:!1,props:Mme(),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:l}=No(e),i=P(()=>r.value===l.value-1),a=c=>{var u;const d=e.prevButtonProps;(u=e.onPrev)===null||u===void 0||u.call(e,c),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=c=>{var u,d;const f=e.nextButtonProps;i.value?(u=e.onFinish)===null||u===void 0||u.call(e,c):(d=e.onNext)===null||d===void 0||d.call(e,c),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:c,title:u,onClose:d,cover:f,description:g,type:v,arrow:h}=e,b=e.prevButtonProps,y=e.nextButtonProps;let S;u&&(S=p("div",{class:`${c}-header`},[p("div",{class:`${c}-title`},[u])]));let $;g&&($=p("div",{class:`${c}-description`},[g]));let x;f&&(x=p("div",{class:`${c}-cover`},[f]));let C;o.indicatorsRender?C=o.indicatorsRender({current:r.value,total:l}):C=[...Array.from({length:l.value}).keys()].map((I,T)=>p("span",{key:I,class:ie(T===r.value&&`${c}-indicator-active`,`${c}-indicator`)},null));const O=v==="primary"?"default":"primary",w={type:"default",ghost:v==="primary"};return p(bi,{componentName:"Tour",defaultLocale:jn.Tour},{default:I=>{var T;return p("div",D(D({},n),{},{class:ie(v==="primary"?`${c}-primary`:"",n.class,`${c}-content`)}),[h&&p("div",{class:`${c}-arrow`,key:"arrow"},null),p("div",{class:`${c}-inner`},[p(Zn,{class:`${c}-close`,onClick:d},null),x,S,$,p("div",{class:`${c}-footer`},[l.value>1&&p("div",{class:`${c}-indicators`},[C]),p("div",{class:`${c}-buttons`},[r.value!==0?p(zt,D(D(D({},w),b),{},{onClick:a,size:"small",class:ie(`${c}-prev-btn`,b==null?void 0:b.className)}),{default:()=>[uv(b==null?void 0:b.children)?b.children():(T=b==null?void 0:b.children)!==null&&T!==void 0?T:I.Previous]}):null,p(zt,D(D({type:O},y),{},{onClick:s,size:"small",class:ie(`${c}-next-btn`,y==null?void 0:y.className)}),{default:()=>[uv(y==null?void 0:y.children)?y==null?void 0:y.children():i.value?I.Finish:I.Next]})])])])])}})}}}),Ame=_me,Rme=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const l=le(r==null?void 0:r.value),i=P(()=>o==null?void 0:o.value);be(i,u=>{l.value=u??(r==null?void 0:r.value)},{immediate:!0});const a=u=>{l.value=u},s=P(()=>{var u,d;return typeof l.value=="number"?n&&((d=(u=n.value)===null||u===void 0?void 0:u[l.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:P(()=>{var u;return(u=s.value)!==null&&u!==void 0?u:t==null?void 0:t.value}),updateInnerCurrent:a}},Dme=Rme,Bme=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:l,borderRadiusXS:i,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:g,fontSize:v,colorBgContainer:h,fontWeightStrong:b,marginXS:y,colorTextLightSolid:S,tourBorderRadius:$,colorWhite:x,colorBgTextHover:C,tourCloseSize:O,motionDurationSlow:w,antCls:I}=e;return[{[t]:m(m({},Xe(e)),{color:s,position:"absolute",zIndex:g,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:$,boxShadow:f,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:O,height:O,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+O+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:b}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${I}-btn`]:{marginInlineStart:y}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:l,boxShadow:f,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new gt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new gt(S).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new gt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:x,"&:hover":{background:new gt(C).onBackground(x).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min($,Nb)}}},Fb(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:$,limitVerticalRadius:!0})]},Nme=Ve("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=Fe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[Bme(r)]});var Fme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{steps:h,current:b,type:y,rootClassName:S}=e,$=Fme(e,["steps","current","type","rootClassName"]),x=ie({[`${c.value}-primary`]:g.value==="primary",[`${c.value}-rtl`]:u.value==="rtl"},f.value,S),C=(I,T)=>p(Ame,D(D({},I),{},{type:y,current:T}),{indicatorsRender:r.indicatorsRender}),O=I=>{v(I),o("update:current",I),o("change",I)},w=P(()=>Bb({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(p(Tme,D(D(D({},n),$),{},{rootClassName:x,prefixCls:c.value,current:b,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:C,onChange:O,steps:h,builtinPlacements:w.value}),null))}}}),kme=Tt(Lme),yM=Symbol("appConfigContext"),zme=e=>Ge(yM,e),Hme=()=>He(yM,{}),SM=Symbol("appContext"),jme=e=>Ge(SM,e),Wme=ut({message:{},notification:{},modal:{}}),Vme=()=>He(SM,Wme),Kme=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:l}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:l}}},Gme=Ve("App",e=>[Kme(e)]),Xme=()=>({rootClassName:String,message:Re(),notification:Re()}),Ume=()=>Vme(),Ws=oe({name:"AApp",props:qe(Xme(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("app",e),[r,l]=Gme(o),i=P(()=>ie(l.value,o.value,e.rootClassName)),a=Hme(),s=P(()=>({message:m(m({},a.message),e.message),notification:m(m({},a.notification),e.notification)}));zme(s.value);const[c,u]=N8(s.value.message),[d,f]=U8(s.value.notification),[g,v]=n5(),h=P(()=>({message:c,notification:d,modal:g}));return jme(h.value),()=>{var b;return r(p("div",{class:i.value},[v(),u(),f(),(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});Ws.useApp=Ume;Ws.install=function(e){e.component(Ws.name,Ws)};const Yme=Ws,$M=["wrap","nowrap","wrap-reverse"],CM=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xM=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qme=(e,t)=>{const n={};return $M.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},Zme=(e,t)=>{const n={};return xM.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Qme=(e,t)=>{const n={};return CM.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function Jme(e,t){return ie(m(m(m({},qme(e,t)),Zme(e,t)),Qme(e,t)))}const e0e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},t0e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},n0e=e=>{const{componentCls:t}=e,n={};return $M.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},o0e=e=>{const{componentCls:t}=e,n={};return xM.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},r0e=e=>{const{componentCls:t}=e,n={};return CM.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},l0e=Ve("Flex",e=>{const t=Fe(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[e0e(t),t0e(t),n0e(t),o0e(t),r0e(t)]});function G4(e){return["small","middle","large"].includes(e)}const i0e=()=>({prefixCls:Be(),vertical:Ce(),wrap:Be(),justify:Be(),align:Be(),flex:Le([Number,String]),gap:Le([Number,String]),component:St()});var a0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var u;return[i.value,s.value,Jme(i.value,e),{[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-gap-${e.gap}`]:G4(e.gap),[`${i.value}-vertical`]:(u=e.vertical)!==null&&u!==void 0?u:r==null?void 0:r.value.vertical}]});return()=>{var u;const{flex:d,gap:f,component:g="div"}=e,v=a0e(e,["flex","gap","component"]),h={};return d&&(h.flex=d),f&&!G4(f)&&(h.gap=`${f}px`),a(p(g,D({class:[o.class,c.value],style:[o.style,h]},et(v,["justify","wrap","align","vertical"])),{default:()=>[(u=n.default)===null||u===void 0?void 0:u.call(n)]}))}}}),c0e=Tt(s0e),X4=Object.freeze(Object.defineProperty({__proto__:null,Affix:FP,Alert:PX,Anchor:Gl,AnchorLink:T0,App:Yme,AutoComplete:UG,AutoCompleteOptGroup:XG,AutoCompleteOption:GG,Avatar:ni,AvatarGroup:Zd,BackTop:$f,Badge:_s,BadgeRibbon:Qd,Breadcrumb:oi,BreadcrumbItem:dc,BreadcrumbSeparator:sf,Button:zt,ButtonGroup:of,Calendar:xZ,Card:fa,CardGrid:pf,CardMeta:ff,Carousel:OJ,Cascader:Yte,CheckableTag:mf,Checkbox:$o,CheckboxGroup:vf,Col:tne,Collapse:Rs,CollapsePanel:gf,Comment:ine,Compact:Yd,ConfigProvider:zy,DatePicker:Aoe,Descriptions:Woe,DescriptionsItem:fE,DirectoryTree:pd,Divider:Uoe,Drawer:fre,Dropdown:rr,DropdownButton:uc,Empty:ll,Flex:c0e,FloatButton:vl,FloatButtonGroup:Sf,Form:il,FormItem:I8,FormItemRest:Gd,Grid:ene,Image:tie,ImagePreviewGroup:FE,Input:tn,InputGroup:wE,InputNumber:bie,InputPassword:IE,InputSearch:OE,Layout:Bie,LayoutContent:Die,LayoutFooter:Aie,LayoutHeader:_ie,LayoutSider:Rie,List:Oae,ListItem:jE,ListItemMeta:zE,LocaleProvider:_8,Mentions:Gae,MentionsOption:cd,Menu:Vt,MenuDivider:pc,MenuItem:lr,MenuItemGroup:fc,Modal:an,MonthPicker:ed,PageHeader:_se,Pagination:Up,Popconfirm:Fse,Popover:Lb,Progress:b1,QRCode:fme,QuarterPicker:td,Radio:Nn,RadioButton:uf,RadioGroup:hy,RangePicker:nd,Rate:Pce,Result:Xce,Row:Uce,Segmented:Zve,Select:Dr,SelectOptGroup:WG,SelectOption:jG,Skeleton:On,SkeletonAvatar:Oy,SkeletonButton:Cy,SkeletonImage:wy,SkeletonInput:xy,SkeletonTitle:Ap,Slider:pue,Space:i5,Spin:ir,Statistic:wr,StatisticCountdown:fse,Step:ud,Steps:zue,SubMenu:fi,Switch:que,TabPane:df,Table:Wpe,TableColumn:hd,TableColumnGroup:vd,TableSummary:md,TableSummaryCell:Pf,TableSummaryRow:Of,Tabs:ri,Tag:rE,Textarea:Zy,TimePicker:Hge,TimeRangePicker:bd,Timeline:js,TimelineItem:Sc,Tooltip:Yn,Tour:kme,Transfer:hge,Tree:V5,TreeNode:gd,TreeSelect:kge,TreeSelectNode:Bm,Typography:Un,TypographyLink:j1,TypographyParagraph:W1,TypographyText:V1,TypographyTitle:K1,Upload:Dve,UploadDragger:Rve,Watermark:jve,WeekPicker:Ju,message:ga,notification:Ly},Symbol.toStringTag,{value:"Module"})),u0e=function(e){return Object.keys(X4).forEach(t=>{const n=X4[t];n.install&&e.use(n)}),e.use(_9.StyleProvider),e.config.globalProperties.$message=ga,e.config.globalProperties.$notification=Ly,e.config.globalProperties.$info=an.info,e.config.globalProperties.$success=an.success,e.config.globalProperties.$error=an.error,e.config.globalProperties.$warning=an.warning,e.config.globalProperties.$confirm=an.confirm,e.config.globalProperties.$destroyAll=an.destroyAll,e},d0e={version:xP,install:u0e};const f0e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},p0e={key:0,class:"env-info"},g0e={class:"env-details"},h0e={class:"env-actions",style:{"margin-top":"12px"}},v0e={__name:"EnvInfo",setup(e){const t=P(()=>!Nt.isProduction),n=le(!1),o=P(()=>{switch(Nt.APP_ENV){case"development":return"blue";case"test":return"orange";case"production":return"green";default:return"default"}}),r=()=>{n.value=!n.value},l=()=>{NO(),ga.success("环境信息已打印到控制台")},i=async()=>{const a=` -环境: ${Nt.APP_ENV} -标题: ${Nt.APP_TITLE} -版本: ${Nt.APP_VERSION} -API地址: ${Nt.API_BASE_URL} -API目标: ${Nt.API_TARGET} -超时时间: ${Nt.API_TIMEOUT}ms -调试模式: ${Nt.DEBUG_MODE?"开启":"关闭"} - `.trim();try{await navigator.clipboard.writeText(a),ga.success("环境信息已复制到剪贴板")}catch{ga.error("复制失败")}};return(a,s)=>{const c=zl("a-button"),u=zl("a-tag"),d=zl("a-descriptions-item"),f=zl("a-descriptions"),g=zl("a-space"),v=zl("a-card");return t.value?(s0(),oO("div",p0e,[p(v,{title:"环境信息",size:"small",style:{position:"fixed",top:"10px",right:"10px",zIndex:9999,width:"300px"}},{extra:hn(()=>[p(c,{size:"small",onClick:r},{default:hn(()=>[Lt(vr(n.value?"隐藏":"显示"),1)]),_:1})]),default:hn(()=>[$n(Gi("div",g0e,[p(f,{size:"small",column:1,bordered:""},{default:hn(()=>[p(d,{label:"环境"},{default:hn(()=>[p(u,{color:o.value},{default:hn(()=>[Lt(vr($t(Nt).APP_ENV),1)]),_:1},8,["color"])]),_:1}),p(d,{label:"标题"},{default:hn(()=>[Lt(vr($t(Nt).APP_TITLE),1)]),_:1}),p(d,{label:"版本"},{default:hn(()=>[Lt(vr($t(Nt).APP_VERSION),1)]),_:1}),p(d,{label:"API地址"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_BASE_URL),1)]),_:1}),p(d,{label:"API目标"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_TARGET),1)]),_:1}),p(d,{label:"超时时间"},{default:hn(()=>[Lt(vr($t(Nt).API_TIMEOUT)+"ms ",1)]),_:1}),p(d,{label:"调试模式"},{default:hn(()=>[p(u,{color:$t(Nt).DEBUG_MODE?"green":"red"},{default:hn(()=>[Lt(vr($t(Nt).DEBUG_MODE?"开启":"关闭"),1)]),_:1},8,["color"])]),_:1})]),_:1}),Gi("div",h0e,[p(g,null,{default:hn(()=>[p(c,{size:"small",onClick:l},{default:hn(()=>s[0]||(s[0]=[Lt(" 打印到控制台 ")])),_:1,__:[0]}),p(c,{size:"small",onClick:i},{default:hn(()=>s[1]||(s[1]=[Lt(" 复制信息 ")])),_:1,__:[1]})]),_:1})])],512),[[En,n.value]])]),_:1})])):gA("",!0)}}},m0e=f0e(v0e,[["__scopeId","data-v-89545570"]]);const b0e={id:"app"},y0e={__name:"App",setup(e){const t=mR();return je(()=>{t.initUser(),xc("App.vue loaded successfully, user:",t.userInfo)}),(n,o)=>{const r=zl("router-view");return s0(),oO("div",b0e,[p(r),p(m0e)])}}};xc("main.js loading...");Nt.DEBUG_MODE&&NO();const lg=mO(y0e);xc("App created");lg.use(r7());lg.use(BO);lg.use(d0e);xc("Plugins loaded");document.title=Nt.APP_TITLE;lg.mount("#app");xc("App mounted");export{be as A,jm as B,moe as C,Xpe as D,Nt as E,We as F,ot as G,WS as H,_r as I,ci as J,LZ as P,tme as R,f0e as _,le as a,zl as b,p as c,xc as d,oO as e,Gi as f,Lt as g,x0e as h,gA as i,P as j,je as k,$t as l,ga as m,dA as n,s0 as o,C0e as p,u7 as q,ut as r,Pl as s,vr as t,w0e as u,Il as v,hn as w,GY as x,ln as y,mR as z}; diff --git a/build-output/web/index.html b/build-output/web/index.html deleted file mode 100644 index 791f0de..0000000 --- a/build-output/web/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - 情绪博物馆 - AI心理健康助手 - - - - - - -
-
加载中...
-
- - - diff --git a/cleanup-project.sh b/cleanup-project.sh new file mode 100755 index 0000000..cbb6104 --- /dev/null +++ b/cleanup-project.sh @@ -0,0 +1,293 @@ +#!/bin/bash + +# 项目文件清理脚本 +# 作者: emotion-museum +# 日期: 2025-07-21 + +set -e + +# 颜色输出 +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' + +log_info() { + echo -e "${BLUE}[INFO]${NC} $1" +} + +log_success() { + echo -e "${GREEN}[SUCCESS]${NC} $1" +} + +log_warning() { + echo -e "${YELLOW}[WARNING]${NC} $1" +} + +log_error() { + echo -e "${RED}[ERROR]${NC} $1" +} + +# 备份重要文件 +backup_important_files() { + log_info "备份重要文件..." + + mkdir -p .backup/$(date +%Y%m%d_%H%M%S) + BACKUP_DIR=".backup/$(date +%Y%m%d_%H%M%S)" + + # 备份重要的配置文件 + cp -r backend/emotion-*/src/main/resources/ "$BACKUP_DIR/resources/" 2>/dev/null || true + cp docker-compose*.yml "$BACKUP_DIR/" 2>/dev/null || true + cp *.md "$BACKUP_DIR/" 2>/dev/null || true + + log_success "重要文件已备份到: $BACKUP_DIR" +} + +# 删除重复和过时的文件 +cleanup_duplicate_files() { + log_info "清理重复和过时的文件..." + + # 删除重复的部署脚本 + rm -f deploy-aliyun*.sh deploy-custom.sh deploy-existing-docker.sh deploy-final.sh deploy.sh + rm -f manage*.sh server-install.sh quick-deploy.sh + + # 删除重复的文档 + rm -f CLAUDE.md CUSTOM_DEPLOYMENT.md DEPLOY.md DEPLOYMENT.md DEPLOYMENT_GUIDE.md + rm -f SERVER_DEPLOYMENT_CHECKLIST.md + + # 删除旧的docker-compose文件,保留最新的 + rm -f docker-compose.custom.yml + + # 删除旧的web目录 + rm -rf web-bak + + # 删除旧的backend目录 + rm -rf emotion-museum-backend + + # 删除iOS项目(如果不需要) + rm -rf EmotionMuseum + + # 删除构建产物目录 + rm -rf build-output packages + + log_success "重复文件清理完成" +} + +# 清理backend目录 +cleanup_backend() { + log_info "清理backend目录..." + + cd backend + + # 删除重复的脚本 + rm -f deploy-test.sh dev-auto.sh dev-start.sh start-services.sh stop-services.sh + rm -f test-auth.sh update-nacos*.sh verify-*.sh + + # 删除重复的文档 + rm -f README-*.md Nacos配置*.md emotion-websocket-*.md 后端模块验证报告.md + rm -f 数据库*.md 认证模块重构总结.md 项目文件清理总结.md + + # 删除日志目录 + rm -rf logs + + # 删除SQL文件(保留在统一位置) + rm -f verify-database-script.sql + + cd .. + + log_success "backend目录清理完成" +} + +# 整理文档结构 +organize_docs() { + log_info "整理文档结构..." + + # 创建docs目录 + mkdir -p docs/{deployment,architecture,database} + + # 移动部署相关文档 + mv backend/Jenkins-Pipeline配置.md docs/deployment/ 2>/dev/null || true + mv backend/Jenkins部署说明.md docs/deployment/ 2>/dev/null || true + mv 部署脚本使用说明.md docs/deployment/ 2>/dev/null || true + + # 移动架构相关文档 + mv "Spring Cloud Alibaba微服务架构设计.md" docs/architecture/ 2>/dev/null || true + mv 技术架构完善建议.md docs/architecture/ 2>/dev/null || true + + # 移动数据库相关文档 + mv backend/sql docs/database/ 2>/dev/null || true + + # 保留核心文档在根目录 + # README.md, MVP功能需求文档.md, 情绪博物馆*.md 等 + + log_success "文档结构整理完成" +} + +# 优化配置文件 +optimize_configs() { + log_info "优化配置文件..." + + # 创建统一的配置目录 + mkdir -p configs/{nginx,docker,env} + + # 移动nginx配置 + mv web-flowith/nginx.conf configs/nginx/ 2>/dev/null || true + mv deploy/nginx/* configs/nginx/ 2>/dev/null || true + + # 移动docker配置 + mv docker-compose*.yml configs/docker/ 2>/dev/null || true + + # 删除空的deploy目录 + rm -rf deploy + + log_success "配置文件优化完成" +} + +# 创建新的项目结构说明 +create_structure_doc() { + log_info "创建项目结构说明..." + + cat > PROJECT_STRUCTURE.md << 'EOF' +# 情感博物馆项目结构 + +## 📁 目录结构 + +``` +emotion-museum/ +├── 📁 backend/ # 后端微服务 +│ ├── 📁 emotion-gateway/ # API网关服务 +│ ├── 📁 emotion-user/ # 用户管理服务 +│ ├── 📁 emotion-ai/ # AI聊天服务 +│ ├── 📁 emotion-auth/ # 认证服务 +│ ├── 📁 emotion-record/ # 记录管理服务 +│ ├── 📁 emotion-growth/ # 成长跟踪服务 +│ ├── 📁 emotion-explore/ # 探索服务 +│ ├── 📁 emotion-reward/ # 奖励服务 +│ ├── 📁 emotion-websocket/ # WebSocket服务 +│ ├── 📁 emotion-stats/ # 统计服务 +│ ├── 📁 emotion-common/ # 公共模块 +│ ├── 🔧 build-all.sh # 构建脚本 +│ ├── 🔧 deploy-all.sh # 综合部署脚本 +│ ├── 🔧 deploy-remote.sh # 远程部署脚本 +│ └── 📄 pom.xml # Maven父项目配置 +├── 📁 web-flowith/ # 前端Vue项目 +│ ├── 📁 src/ # 源代码 +│ ├── 📁 public/ # 静态资源 +│ ├── 🔧 deploy.sh # 前端部署脚本 +│ └── 📄 package.json # 前端依赖配置 +├── 📁 docs/ # 项目文档 +│ ├── 📁 deployment/ # 部署相关文档 +│ ├── 📁 architecture/ # 架构设计文档 +│ └── 📁 database/ # 数据库相关文档 +├── 📁 configs/ # 配置文件 +│ ├── 📁 nginx/ # Nginx配置 +│ ├── 📁 docker/ # Docker配置 +│ └── 📁 env/ # 环境配置 +├── 🔧 one-click-deploy.sh # 一键部署脚本 +├── 🔧 restart-middleware.sh # 中间件重启脚本 +├── 🔧 cleanup-project.sh # 项目清理脚本 +└── 📄 README.md # 项目说明 +``` + +## 🚀 快速开始 + +### 1. 一键部署 +```bash +# 完整部署(前端+后端) +./one-click-deploy.sh + +# 仅部署后端 +./one-click-deploy.sh backend + +# 仅部署前端 +./one-click-deploy.sh frontend + +# 健康检查 +./one-click-deploy.sh check +``` + +### 2. 中间件管理 +```bash +# 重启中间件(MySQL, Redis, Nacos) +./restart-middleware.sh +``` + +### 3. 分步部署 +```bash +# 构建后端 +cd backend && ./build-all.sh + +# 部署后端到远程 +cd backend && ./deploy-remote.sh + +# 部署前端 +cd web-flowith && ./deploy.sh +``` + +## 📋 服务端口 + +| 服务 | 端口 | 描述 | +|------|------|------| +| emotion-gateway | 19000 | API网关 | +| emotion-user | 19001 | 用户服务 | +| emotion-ai | 19002 | AI服务 | +| emotion-record | 19003 | 记录服务 | +| emotion-growth | 19004 | 成长服务 | +| emotion-explore | 19005 | 探索服务 | +| emotion-reward | 19006 | 奖励服务 | +| emotion-websocket | 19007 | WebSocket服务 | +| emotion-auth | 19008 | 认证服务 | +| emotion-stats | 19009 | 统计服务 | + +## 🔧 中间件端口 + +| 服务 | 端口 | 描述 | +|------|------|------| +| MySQL | 3306 | 数据库 | +| Redis | 6379 | 缓存 | +| Nacos | 8848 | 注册中心 | + +## 📖 文档链接 + +- [部署指南](docs/deployment/) +- [架构设计](docs/architecture/) +- [数据库设计](docs/database/) +EOF + + log_success "项目结构说明创建完成" +} + +# 主函数 +main() { + log_info "🧹 开始项目文件清理和整理..." + + # 确认操作 + echo "⚠️ 此操作将删除重复和过时的文件,是否继续?(y/N)" + read -r confirm + if [[ ! "$confirm" =~ ^[Yy]$ ]]; then + log_warning "操作已取消" + exit 0 + fi + + backup_important_files + cleanup_duplicate_files + cleanup_backend + organize_docs + optimize_configs + create_structure_doc + + log_success "🎉 项目清理和整理完成!" + echo "" + echo "📋 清理总结:" + echo " ✅ 删除了重复的部署脚本" + echo " ✅ 删除了过时的文档文件" + echo " ✅ 整理了文档结构到docs目录" + echo " ✅ 优化了配置文件到configs目录" + echo " ✅ 创建了PROJECT_STRUCTURE.md" + echo "" + echo "📁 新的项目结构请查看: PROJECT_STRUCTURE.md" +} + +# 执行主函数 +main "$@" diff --git a/docker-compose.prod.yml b/configs/docker/docker-compose.prod.yml similarity index 100% rename from docker-compose.prod.yml rename to configs/docker/docker-compose.prod.yml diff --git a/docker-compose.yml b/configs/docker/docker-compose.yml similarity index 100% rename from docker-compose.yml rename to configs/docker/docker-compose.yml diff --git a/deploy/nginx/conf.d/emotion-museum.conf b/configs/nginx/conf.d/emotion-museum.conf similarity index 100% rename from deploy/nginx/conf.d/emotion-museum.conf rename to configs/nginx/conf.d/emotion-museum.conf diff --git a/deploy/nginx/nginx.conf b/configs/nginx/nginx.conf similarity index 100% rename from deploy/nginx/nginx.conf rename to configs/nginx/nginx.conf diff --git a/deploy-aliyun-optimized.sh b/deploy-aliyun-optimized.sh deleted file mode 100755 index ccad9a0..0000000 --- a/deploy-aliyun-optimized.sh +++ /dev/null @@ -1,1128 +0,0 @@ -#!/bin/bash - -# 情绪博物馆阿里云服务器优化部署脚本 -# 适配要求:MySQL/Redis/Nacos直接安装,应用服务使用Docker -# 分步骤执行,避免超时,记录密码到MD文件 -# 作者: EmotionMuseum Team -# 日期: 2025-07-13 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' -CYAN='\033[0;36m' -NC='\033[0m' - -# 服务器配置 -SERVER_IP="47.111.10.27" -SERVER_USER="root" -MYSQL_ROOT_PASSWORD="123456" - -# 部署目录配置 -PROGRAMS_DIR="/data/programs" -BUILDS_DIR="/data/builds" -WEB_DIR="/data/www/emotion-museum" -LOGS_DIR="/data/logs/emotion-museum" -CONFIG_FILE="/data/deployment_passwords.md" - -# 生成密码函数 -generate_password() { - echo $(openssl rand -base64 32 | tr -d "=+/" | cut -c1-20) -} - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -log_success() { - echo -e "${GREEN}[SUCCESS]${NC} $1" -} - -log_debug() { - echo -e "${CYAN}[DEBUG]${NC} $1" -} - -# 远程执行命令 -remote_exec() { - local command="$1" - local timeout="${2:-60}" - ssh -o StrictHostKeyChecking=no -o ConnectTimeout="$timeout" -o ServerAliveInterval=30 -o ServerAliveCountMax=3 "${SERVER_USER}@${SERVER_IP}" "$command" -} - -# 复制文件到服务器 -remote_copy() { - local local_path="$1" - local remote_path="$2" - scp -o StrictHostKeyChecking=no -r "$local_path" "${SERVER_USER}@${SERVER_IP}:$remote_path" -} - -# 检查服务器连接 -check_server_connection() { - log_step "检查服务器连接..." - - if ! ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "${SERVER_USER}@${SERVER_IP}" "echo 'Connected to server successfully'" &>/dev/null; then - log_error "无法连接到服务器 ${SERVER_IP},请检查网络连接和SSH配置" - exit 1 - fi - - log_success "服务器连接正常" - - # 显示服务器基本信息 - log_info "服务器信息:" - remote_exec "echo ' 内核版本: '$(uname -r)" - remote_exec "echo ' 当前用户: '$(whoami)" - remote_exec "echo ' 当前时间: '$(date)" -} - -# 创建服务器目录结构 -setup_directories() { - log_step "创建服务器目录结构..." - - remote_exec "mkdir -p ${PROGRAMS_DIR}/{java,maven,nodejs,nacos}" - remote_exec "mkdir -p ${BUILDS_DIR}" - remote_exec "mkdir -p ${WEB_DIR}" - remote_exec "mkdir -p ${LOGS_DIR}/{mysql,redis,nacos,docker,nginx}" - remote_exec "mkdir -p /data/backup" - remote_exec "mkdir -p /data/ssl" - - log_success "目录结构创建完成" - remote_exec "tree /data -L 2 2>/dev/null || ls -la /data" -} - -# 安装基础软件包 -install_basic_packages() { - log_step "安装基础软件包..." - - remote_exec "yum update -y" - remote_exec "yum install -y wget curl git unzip vim net-tools tree htop" - - log_success "基础软件包安装完成" -} - -# 安装Docker -install_docker() { - log_step "安装Docker..." - - remote_exec " - if ! command -v docker &> /dev/null; then - echo '开始安装Docker...' - curl -fsSL https://get.docker.com | sh - systemctl start docker - systemctl enable docker - - # 安装Docker Compose - curl -L \"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-\$(uname -s)-\$(uname -m)\" -o /usr/local/bin/docker-compose - chmod +x /usr/local/bin/docker-compose - ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose - - echo 'Docker和Docker Compose安装完成' - docker --version - docker-compose --version - else - echo 'Docker已安装: '$(docker --version) - if ! command -v docker-compose &> /dev/null; then - echo '安装Docker Compose...' - curl -L \"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-\$(uname -s)-\$(uname -m)\" -o /usr/local/bin/docker-compose - chmod +x /usr/local/bin/docker-compose - ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose - fi - echo 'Docker Compose: '$(docker-compose --version) - fi - " - - log_success "Docker安装检查完成" -} - -# 安装Java环境 -install_java() { - log_step "安装Java环境..." - - remote_exec " - if ! java -version 2>&1 | grep -q '17'; then - echo '安装Java 17...' - yum install -y java-17-openjdk java-17-openjdk-devel - - # 配置环境变量 - echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk' >> /etc/profile - echo 'export PATH=\$JAVA_HOME/bin:\$PATH' >> /etc/profile - source /etc/profile - - echo 'Java 17安装完成' - else - echo 'Java 17已安装' - fi - java -version - " - - log_success "Java环境检查完成" -} - -# 安装Maven环境 -install_maven() { - log_step "安装Maven环境..." - - remote_exec " - if ! command -v mvn &> /dev/null; then - echo '安装Maven...' - MAVEN_VERSION='3.9.5' - cd /tmp - wget https://archive.apache.org/dist/maven/maven-3/\${MAVEN_VERSION}/binaries/apache-maven-\${MAVEN_VERSION}-bin.tar.gz - tar -xzf apache-maven-\${MAVEN_VERSION}-bin.tar.gz - mv apache-maven-\${MAVEN_VERSION} ${PROGRAMS_DIR}/maven - - # 配置环境变量 - echo 'export MAVEN_HOME=${PROGRAMS_DIR}/maven' >> /etc/profile - echo 'export PATH=\$MAVEN_HOME/bin:\$PATH' >> /etc/profile - source /etc/profile - - rm -f apache-maven-\${MAVEN_VERSION}-bin.tar.gz - echo 'Maven安装完成' - else - echo 'Maven已安装' - fi - mvn -version 2>/dev/null || echo 'Maven需要重新登录生效' - " - - log_success "Maven环境检查完成" -} - -# 安装Node.js环境 -install_nodejs() { - log_step "安装Node.js环境..." - - remote_exec " - if ! command -v node &> /dev/null; then - echo '安装Node.js 18...' - curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - - yum install -y nodejs - - # 配置npm镜像 - npm config set registry https://registry.npmmirror.com - - echo 'Node.js安装完成' - else - echo 'Node.js已安装' - fi - node --version - npm --version - " - - log_success "Node.js环境检查完成" -} - -# 验证MySQL连接 -verify_mysql() { - log_step "验证MySQL连接..." - - # 首先检查是否有Docker容器运行MySQL - if remote_exec "docker ps | grep mysql > /dev/null"; then - log_info "检测到Docker MySQL容器" - if remote_exec "docker exec \$(docker ps | grep mysql | awk '{print \$1}') mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;' &>/dev/null"; then - log_success "Docker MySQL连接正常,密码正确" - return 0 - else - log_error "Docker MySQL连接失败,请检查密码" - return 1 - fi - # 检查本地MySQL服务 - elif remote_exec "mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;' &>/dev/null"; then - log_success "本地MySQL连接正常,密码正确" - return 0 - else - log_error "MySQL连接失败,请检查密码或MySQL服务状态" - remote_exec "systemctl status mysqld || systemctl status mysql || echo 'No local MySQL service'" - return 1 - fi -} - -# 配置MySQL数据库 -setup_mysql() { - log_step "配置MySQL数据库..." - - # 首先验证连接 - if ! verify_mysql; then - log_error "MySQL验证失败,请检查MySQL服务和密码" - exit 1 - fi - - # 创建应用数据库和用户 - log_info "创建应用数据库和用户..." - - # 检查是否是Docker MySQL - if remote_exec "docker ps | grep mysql > /dev/null"; then - log_info "使用Docker MySQL容器" - remote_exec " - docker exec \$(docker ps | grep mysql | awk '{print \$1}') mysql -u root -p${MYSQL_ROOT_PASSWORD} -e \" - CREATE DATABASE IF NOT EXISTS emotion_museum CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - CREATE USER IF NOT EXISTS 'emotion'@'%' IDENTIFIED BY 'EmotionDB2024!'; - GRANT ALL PRIVILEGES ON emotion_museum.* TO 'emotion'@'%'; - FLUSH PRIVILEGES; - SELECT 'MySQL数据库配置完成' AS status; - \" - " - else - log_info "使用本地MySQL服务" - remote_exec " - mysql -u root -p${MYSQL_ROOT_PASSWORD} -e \" - CREATE DATABASE IF NOT EXISTS emotion_museum CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - CREATE USER IF NOT EXISTS 'emotion'@'%' IDENTIFIED BY 'EmotionDB2024!'; - GRANT ALL PRIVILEGES ON emotion_museum.* TO 'emotion'@'%'; - FLUSH PRIVILEGES; - SELECT 'MySQL数据库配置完成' AS status; - \" - " - fi - - log_success "MySQL数据库配置完成" -} - -# 配置Redis服务 -setup_redis() { - log_step "配置Redis服务..." - - # 检查是否已有Docker Redis容器运行 - if remote_exec "docker ps | grep redis > /dev/null"; then - log_info "检测到Docker Redis容器正在运行" - - # 获取Redis容器信息 - REDIS_CONTAINER=$(remote_exec "docker ps | grep redis | awk '{print \$1}'") - log_info "Redis容器ID: $REDIS_CONTAINER" - - # 测试Redis连接 - if remote_exec "docker exec \$(docker ps | grep redis | awk '{print \$1}') redis-cli ping 2>/dev/null | grep -q PONG"; then - log_success "Docker Redis服务正常运行" - else - log_warn "Docker Redis可能需要密码,尝试重启容器" - remote_exec "docker restart \$(docker ps | grep redis | awk '{print \$1}')" - sleep 5 - fi - - # 记录Redis信息(从Docker环境变量获取) - REDIS_PASSWORD=$(remote_exec "docker exec \$(docker ps | grep redis | awk '{print \$1}') env | grep REDIS_PASSWORD | cut -d'=' -f2 2>/dev/null || echo 'no-password'") - echo "REDIS_PASSWORD=${REDIS_PASSWORD}" >> /tmp/passwords.txt - - log_success "Docker Redis配置确认完成" - return 0 - fi - - # 如果没有Docker Redis,安装本地Redis - log_info "安装本地Redis服务..." - - # 生成Redis密码 - REDIS_PASSWORD=$(generate_password) - - remote_exec " - # 检查Redis是否已安装 - if ! command -v redis-server &> /dev/null; then - echo '安装Redis...' - yum install -y redis - else - echo 'Redis已安装' - fi - - # 配置Redis - cp /etc/redis.conf /etc/redis.conf.backup 2>/dev/null || true - sed -i 's/^# requirepass foobared/requirepass ${REDIS_PASSWORD}/' /etc/redis.conf - sed -i 's/^bind 127.0.0.1/bind 0.0.0.0/' /etc/redis.conf - - # 启动Redis服务 - systemctl start redis - systemctl enable redis - - echo 'Redis配置完成,密码: ${REDIS_PASSWORD}' - " - - # 记录Redis密码 - echo "REDIS_PASSWORD=${REDIS_PASSWORD}" >> /tmp/passwords.txt - - log_success "本地Redis配置完成,密码已生成" -} - -# 安装配置Nacos -setup_nacos() { - log_step "使用Docker安装配置Nacos..." - - # 检查是否已有Nacos容器运行 - if remote_exec "docker ps | grep nacos > /dev/null"; then - log_info "检测到Nacos容器正在运行" - if remote_exec "curl -s http://localhost:8848/nacos > /dev/null"; then - log_success "Nacos服务正常运行" - return 0 - else - log_warn "Nacos容器存在但服务异常,重启容器" - remote_exec "docker restart \$(docker ps | grep nacos | awk '{print \$1}')" - sleep 10 - fi - fi - - log_info "创建Nacos Docker配置..." - - # 创建Nacos配置目录 - remote_exec "mkdir -p ${PROGRAMS_DIR}/nacos/{conf,data,logs}" - - # 创建Nacos配置文件 - cat > /tmp/nacos-application.properties << 'EOF' -# Nacos配置文件 -server.servlet.contextPath=/nacos -server.port=8848 - -# 数据库配置 - 使用MySQL -spring.datasource.platform=mysql -db.num=1 -db.url.0=jdbc:mysql://host.docker.internal:3306/nacos_config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=Asia/Shanghai -db.user.0=emotion -db.password.0=EmotionDB2024! - -# JVM配置 -nacos.inetutils.prefer-hostname-over-ip=false -nacos.inetutils.ip-address=0.0.0.0 - -# 安全配置 -nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** - -# 集群配置(单机模式) -nacos.naming.distro.taskDispatchThreadCount=10 -nacos.naming.distro.taskDispatchPeriod=200 -nacos.naming.distro.batchSyncKeyCount=1000 -nacos.naming.distro.initDataRatio=0.9 -nacos.naming.distro.syncRetryDelay=5000 -nacos.naming.data.warmup=true -nacos.naming.expireInstance=true - -# 日志配置 -logging.level.root=INFO -logging.level.org.springframework=INFO -logging.level.com.alibaba.nacos=INFO -EOF - - # 上传配置文件 - remote_copy "/tmp/nacos-application.properties" "${PROGRAMS_DIR}/nacos/conf/application.properties" - rm /tmp/nacos-application.properties - - # 创建Nacos数据库 - log_info "创建Nacos数据库..." - if remote_exec "docker ps | grep mysql > /dev/null"; then - remote_exec " - docker exec \$(docker ps | grep mysql | awk '{print \$1}') mysql -u root -p${MYSQL_ROOT_PASSWORD} -e \" - CREATE DATABASE IF NOT EXISTS nacos_config CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - GRANT ALL PRIVILEGES ON nacos_config.* TO 'emotion'@'%'; - FLUSH PRIVILEGES; - \" - " - fi - - # 启动Nacos容器 - log_info "启动Nacos Docker容器..." - remote_exec " - # 停止可能存在的Nacos容器 - docker stop emotion-nacos 2>/dev/null || true - docker rm emotion-nacos 2>/dev/null || true - - # 启动新的Nacos容器 - docker run -d \\ - --name emotion-nacos \\ - --restart=always \\ - -p 8848:8848 \\ - -p 9848:9848 \\ - -p 9849:9849 \\ - -e MODE=standalone \\ - -e PREFER_HOST_MODE=hostname \\ - -e SPRING_DATASOURCE_PLATFORM=mysql \\ - -e MYSQL_SERVICE_HOST=host.docker.internal \\ - -e MYSQL_SERVICE_PORT=3306 \\ - -e MYSQL_SERVICE_DB_NAME=nacos_config \\ - -e MYSQL_SERVICE_USER=emotion \\ - -e MYSQL_SERVICE_PASSWORD=EmotionDB2024! \\ - -e NACOS_AUTH_ENABLE=false \\ - -v ${PROGRAMS_DIR}/nacos/conf:/home/nacos/conf \\ - -v ${PROGRAMS_DIR}/nacos/data:/home/nacos/data \\ - -v ${PROGRAMS_DIR}/nacos/logs:/home/nacos/logs \\ - --add-host=host.docker.internal:host-gateway \\ - nacos/nacos-server:v2.2.0 - - echo 'Nacos容器启动完成' - " - - # 等待Nacos启动 - log_info "等待Nacos服务启动..." - sleep 30 - - # 验证Nacos服务 - if remote_exec "curl -s http://localhost:8848/nacos > /dev/null"; then - log_success "Nacos服务启动成功" - else - log_warn "Nacos服务可能还在启动中,请稍后检查" - fi - - log_success "Docker Nacos安装配置完成" -} - -# 上传构建产物 -upload_artifacts() { - log_step "上传构建产物..." - - # 检查构建产物是否存在 - if [ ! -d "build-output" ]; then - log_error "构建产物不存在,请先运行构建命令" - log_info "可以运行: ./package.sh 或 mvn clean package" - exit 1 - fi - - # 上传JAR文件 - if [ -d "build-output/jars" ]; then - log_info "上传JAR文件..." - for jar in build-output/jars/*.jar; do - if [ -f "$jar" ]; then - remote_copy "$jar" "${BUILDS_DIR}/" - log_info "已上传: $(basename $jar)" - fi - done - fi - - # 上传前端文件 - if [ -d "build-output/web" ]; then - log_info "上传前端文件..." - remote_exec "rm -rf ${WEB_DIR}/*" - - # 直接上传整个目录 - remote_copy "build-output/web/" "${WEB_DIR}/" - - log_info "前端文件上传完成" - fi - - # 上传数据库脚本 - if [ -f "backend/mysql_emotion_museum_final.sql" ]; then - remote_copy "backend/mysql_emotion_museum_final.sql" "/tmp/" - log_info "数据库脚本上传完成" - fi - - log_success "构建产物上传完成" -} - -# 导入数据库 -import_database() { - log_step "导入数据库..." - - if ! remote_exec "[ -f /tmp/mysql_emotion_museum_final.sql ]"; then - log_error "数据库脚本不存在,跳过导入" - return 1 - fi - - # 检查是否是Docker MySQL - if remote_exec "docker ps | grep mysql > /dev/null"; then - log_info "使用Docker MySQL导入数据库..." - remote_exec " - echo '开始导入数据库到Docker MySQL...' - docker exec -i \$(docker ps | grep mysql | awk '{print \$1}') mysql -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum < /tmp/mysql_emotion_museum_final.sql - echo '数据库导入完成' - - # 验证导入结果 - docker exec \$(docker ps | grep mysql | awk '{print \$1}') mysql -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum -e 'SHOW TABLES;' - " - else - log_info "使用本地MySQL导入数据库..." - remote_exec " - echo '开始导入数据库到本地MySQL...' - mysql -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum < /tmp/mysql_emotion_museum_final.sql - echo '数据库导入完成' - - # 验证导入结果 - mysql -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum -e 'SHOW TABLES;' - " - fi - - log_success "数据库导入完成" -} - -# 创建应用启动脚本(不使用Docker) -create_app_scripts() { - log_step "创建应用启动脚本..." - - # 创建启动脚本 - cat > /tmp/start-services.sh << 'EOF' -#!/bin/bash - -# 情绪博物馆应用服务启动脚本 - -BUILDS_DIR="/data/builds" -LOGS_DIR="/data/logs/emotion-museum" - -# 创建日志目录 -mkdir -p ${LOGS_DIR}/{gateway,ai,user} - -# 设置环境变量 -export SPRING_PROFILES_ACTIVE=prod -export NACOS_SERVER_ADDR=localhost:8848 -export MYSQL_HOST=localhost -export MYSQL_PORT=3306 -export MYSQL_DATABASE=emotion_museum -export MYSQL_USERNAME=emotion -export MYSQL_PASSWORD=EmotionDB2024! -export REDIS_HOST=localhost -export REDIS_PORT=6379 -export COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO -export TZ=Asia/Shanghai - -# 停止可能运行的服务 -pkill -f emotion-gateway || true -pkill -f emotion-ai || true -pkill -f emotion-user || true - -sleep 5 - -# 启动网关服务 -echo "启动网关服务..." -nohup java -jar ${BUILDS_DIR}/emotion-gateway-1.0.0.jar \ - --server.port=9000 \ - --spring.profiles.active=prod \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - > ${LOGS_DIR}/gateway/app.log 2>&1 & - -sleep 10 - -# 启动AI服务 -echo "启动AI服务..." -nohup java -jar ${BUILDS_DIR}/emotion-ai-1.0.0.jar \ - --server.port=9002 \ - --spring.profiles.active=prod \ - --spring.main.allow-bean-definition-overriding=true \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai \ - --spring.datasource.username=${MYSQL_USERNAME} \ - --spring.datasource.password=${MYSQL_PASSWORD} \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - --coze.api.token=${COZE_API_TOKEN} \ - > ${LOGS_DIR}/ai/app.log 2>&1 & - -sleep 10 - -# 启动用户服务 -echo "启动用户服务..." -nohup java -jar ${BUILDS_DIR}/emotion-user-1.0.0.jar \ - --server.port=9001 \ - --spring.profiles.active=prod \ - --spring.main.allow-bean-definition-overriding=true \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai \ - --spring.datasource.username=${MYSQL_USERNAME} \ - --spring.datasource.password=${MYSQL_PASSWORD} \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - > ${LOGS_DIR}/user/app.log 2>&1 & - -echo "所有服务启动完成" -echo "查看服务状态: ps aux | grep emotion" -echo "查看日志: tail -f ${LOGS_DIR}/*/app.log" -EOF - - # 创建停止脚本 - cat > /tmp/stop-services.sh << 'EOF' -#!/bin/bash - -echo "停止情绪博物馆应用服务..." - -pkill -f emotion-gateway && echo "网关服务已停止" -pkill -f emotion-ai && echo "AI服务已停止" -pkill -f emotion-user && echo "用户服务已停止" - -echo "所有服务已停止" -EOF - - # 上传脚本 - remote_copy "/tmp/start-services.sh" "${BUILDS_DIR}/start-services.sh" - remote_copy "/tmp/stop-services.sh" "${BUILDS_DIR}/stop-services.sh" - - # 设置执行权限 - remote_exec "chmod +x ${BUILDS_DIR}/start-services.sh ${BUILDS_DIR}/stop-services.sh" - - # 清理临时文件 - rm /tmp/start-services.sh /tmp/stop-services.sh - - log_success "应用启动脚本创建完成" -} - -# 配置Nginx -setup_nginx() { - log_step "配置Nginx..." - - remote_exec " - # 安装Nginx - if ! command -v nginx &> /dev/null; then - yum install -y nginx - fi - - # 备份原配置 - cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.backup - - # 创建新的Nginx配置 - cat > /etc/nginx/nginx.conf << 'NGINX_EOF' -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - log_format main '\$remote_addr - \$remote_user [\$time_local] \"\$request\" ' - '\$status \$body_bytes_sent \"\$http_referer\" ' - '\"\$http_user_agent\" \"\$http_x_forwarded_for\"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 前端应用 - server { - listen 80; - server_name _; - - # 情绪博物馆前端应用 - location /emotion-museum { - alias ${WEB_DIR}; - index index.html; - try_files \$uri \$uri/ /emotion-museum/index.html; - } - - # 根路径重定向到情绪博物馆 - location = / { - return 301 /emotion-museum/; - } - - # API代理到网关 - location /api/ { - proxy_pass http://127.0.0.1:9000/api/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - } - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control \"public, no-transform\"; - } - - # 健康检查 - location /health { - access_log off; - return 200 'healthy'; - add_header Content-Type text/plain; - } - } -} -NGINX_EOF - - # 启动Nginx - systemctl start nginx - systemctl enable nginx - - echo 'Nginx配置完成' - " - - log_success "Nginx配置完成" -} - -# 启动应用服务 -start_app_services() { - log_step "启动应用服务..." - - # 使用脚本启动服务 - remote_exec " - cd ${BUILDS_DIR} - - # 执行启动脚本 - bash start-services.sh - - echo '应用服务启动完成' - " - - # 等待服务启动 - sleep 15 - - # 检查服务状态 - log_info "检查服务状态..." - remote_exec "ps aux | grep -E 'emotion-(gateway|ai|user)' | grep -v grep || echo '没有找到运行的服务'" - - log_success "应用服务启动完成" -} - -# 创建密码记录文件 -create_password_record() { - log_step "创建密码记录文件..." - - # 读取临时密码文件 - REDIS_PASSWORD="" - if [ -f "/tmp/passwords.txt" ]; then - REDIS_PASSWORD=$(grep "REDIS_PASSWORD" /tmp/passwords.txt | cut -d'=' -f2) - fi - - cat > /tmp/deployment_passwords.md << EOF -# 情绪博物馆部署密码记录 - -## 服务器信息 -- 服务器IP: ${SERVER_IP} -- 部署时间: $(date '+%Y-%m-%d %H:%M:%S') -- 部署用户: ${SERVER_USER} - -## 数据库配置 -### MySQL -- 端口: 3306 -- Root用户: root -- Root密码: ${MYSQL_ROOT_PASSWORD} -- 应用数据库: emotion_museum -- 应用用户: emotion -- 应用密码: EmotionDB2024! - -### Redis -- 端口: 6379 -- 密码: ${REDIS_PASSWORD:-"未设置或生成失败"} - -## 服务端口配置 -- Nginx: 80 -- MySQL: 3306 -- Redis: 6379 -- Nacos: 8848 -- 网关服务: 9000 -- 用户服务: 9001 -- AI服务: 9002 - -## 访问地址 -- 前端应用: http://${SERVER_IP} -- API网关: http://${SERVER_IP}:9000 -- Nacos控制台: http://${SERVER_IP}:8848/nacos - - 用户名: nacos - - 密码: nacos - -## API配置 -- Coze API Token: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO - -## 目录结构 -- 程序目录: ${PROGRAMS_DIR} -- 构建目录: ${BUILDS_DIR} -- 前端目录: ${WEB_DIR} -- 日志目录: ${LOGS_DIR} -- 备份目录: /data/backup - -## 管理命令 -\`\`\`bash -# 查看服务状态 -systemctl status mysqld redis nacos nginx -docker ps - -# 查看应用日志 -docker logs -f emotion-gateway -docker logs -f emotion-ai -docker logs -f emotion-user - -# 重启服务 -systemctl restart mysqld redis nacos nginx -docker-compose -f ${BUILDS_DIR}/docker-compose.yml restart - -# 停止所有服务 -docker-compose -f ${BUILDS_DIR}/docker-compose.yml down -systemctl stop nginx redis mysqld -${PROGRAMS_DIR}/nacos/bin/shutdown.sh -\`\`\` - -## 备份命令 -\`\`\`bash -# 数据库备份 -mysqldump -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum > /data/backup/emotion_museum_\$(date +%Y%m%d_%H%M%S).sql - -# 配置备份 -tar -czf /data/backup/config_\$(date +%Y%m%d_%H%M%S).tar.gz /etc/nginx /etc/redis.conf ${PROGRAMS_DIR}/nacos/conf -\`\`\` - -## 安全提醒 -⚠️ 重要提醒: -1. 请及时修改默认密码 -2. 建议配置防火墙规则 -3. 定期备份数据库 -4. 监控服务器资源使用情况 - -## 更新记录 -- $(date '+%Y-%m-%d %H:%M:%S'): 初始部署完成 - ---- -**此文件包含敏感信息,请妥善保管!** -EOF - - # 上传密码记录文件 - remote_copy "/tmp/deployment_passwords.md" "${CONFIG_FILE}" - rm /tmp/deployment_passwords.md - - # 清理临时密码文件 - rm -f /tmp/passwords.txt - - log_success "密码记录文件已创建: ${CONFIG_FILE}" -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - sleep 30 # 等待服务启动 - - log_info "检查基础服务状态..." - remote_exec " - echo '=== 系统服务状态 ===' - systemctl is-active mysqld && echo '✅ MySQL: 运行中' || echo '❌ MySQL: 异常' - systemctl is-active redis && echo '✅ Redis: 运行中' || echo '❌ Redis: 异常' - systemctl is-active nginx && echo '✅ Nginx: 运行中' || echo '❌ Nginx: 异常' - pgrep -f nacos > /dev/null && echo '✅ Nacos: 运行中' || echo '❌ Nacos: 异常' - - echo '' - echo '=== Docker服务状态 ===' - docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' - - echo '' - echo '=== 端口监听状态 ===' - netstat -tlnp | grep -E ':(80|3306|6379|8848|9000|9001|9002)' | awk '{print \$1\" \"\$4}' | sort - " - - log_info "HTTP接口测试..." - - # 测试前端 - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:80 | grep -q 200"; then - log_success "✅ 前端应用访问正常" - else - log_warn "❌ 前端应用访问异常" - fi - - # 测试Nacos - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:8848/nacos | grep -q 200"; then - log_success "✅ Nacos控制台访问正常" - else - log_warn "❌ Nacos控制台访问异常" - fi - - # 测试网关 - sleep 10 # 额外等待网关启动 - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:9000/actuator/health 2>/dev/null | grep -q 200"; then - log_success "✅ API网关访问正常" - else - log_warn "❌ API网关访问异常(可能还在启动中)" - fi - - log_success "健康检查完成" -} - -# 显示部署结果 -show_deployment_result() { - echo "" - echo "🎉 情绪博物馆部署完成!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://${SERVER_IP}" - echo " API网关: http://${SERVER_IP}:9000" - echo " Nacos: http://${SERVER_IP}:8848/nacos" - echo "" - echo "📁 重要文件:" - echo " 密码记录: ${CONFIG_FILE}" - echo " 应用目录: ${BUILDS_DIR}" - echo " 前端目录: ${WEB_DIR}" - echo " 日志目录: ${LOGS_DIR}" - echo "" - echo "🔧 管理命令:" - echo " ssh ${SERVER_USER}@${SERVER_IP}" - echo " docker-compose -f ${BUILDS_DIR}/docker-compose.yml logs -f" - echo " systemctl status mysqld redis nacos nginx" - echo "" - echo "⚠️ 重要提醒:" - echo " 1. 密码信息已保存到服务器 ${CONFIG_FILE} 文件中" - echo " 2. 请及时修改默认密码" - echo " 3. 建议配置防火墙规则" - echo " 4. 定期备份数据库" - echo "" -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆阿里云部署脚本" - echo "" - echo "用法: $0 [选项]" - echo "" - echo "选项:" - echo " check - 检查服务器连接和环境" - echo " env - 安装基础环境(Java、Maven、Node.js、Docker)" - echo " mysql - 配置MySQL数据库" - echo " redis - 配置Redis服务" - echo " nacos - 安装配置Nacos" - echo " upload - 上传构建产物" - echo " import-db - 导入数据库" - echo " deploy - 部署应用服务" - echo " nginx - 配置Nginx" - echo " health - 健康检查" - echo " passwords - 创建密码记录文件" - echo " all - 完整部署(默认)" - echo " help - 显示此帮助信息" - echo "" - echo "分步骤部署示例:" - echo " $0 check # 1. 检查服务器连接" - echo " $0 env # 2. 安装基础环境" - echo " $0 mysql # 3. 配置MySQL" - echo " $0 redis # 4. 配置Redis" - echo " $0 nacos # 5. 安装Nacos" - echo " $0 upload # 6. 上传构建产物" - echo " $0 import-db # 7. 导入数据库" - echo " $0 deploy # 8. 部署应用服务" - echo " $0 nginx # 9. 配置Nginx" - echo " $0 passwords # 10. 创建密码记录" - echo " $0 health # 11. 健康检查" - echo "" - echo "一键部署:" - echo " $0 all # 完整部署所有组件" - echo "" -} - -# 主函数入口 -main() { - case "${1:-all}" in - "check") - check_server_connection - ;; - "env") - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_maven - install_nodejs - log_success "基础环境安装完成!" - echo "下一步: $0 mysql" - ;; - "mysql") - check_server_connection - setup_mysql - log_success "MySQL配置完成!" - echo "下一步: $0 redis" - ;; - "redis") - check_server_connection - setup_redis - log_success "Redis配置完成!" - echo "下一步: $0 nacos" - ;; - "nacos") - check_server_connection - setup_nacos - log_success "Nacos安装完成!" - echo "下一步: $0 upload" - ;; - "upload") - check_server_connection - upload_artifacts - log_success "构建产物上传完成!" - echo "下一步: $0 import-db" - ;; - "import-db") - check_server_connection - import_database - log_success "数据库导入完成!" - echo "下一步: $0 deploy" - ;; - "deploy") - check_server_connection - create_app_scripts - start_app_services - log_success "应用服务部署完成!" - echo "下一步: $0 nginx" - ;; - "nginx") - check_server_connection - setup_nginx - log_success "Nginx配置完成!" - echo "下一步: $0 passwords" - ;; - "passwords") - check_server_connection - create_password_record - log_success "密码记录创建完成!" - echo "下一步: $0 health" - ;; - "health") - check_server_connection - health_check - show_deployment_result - ;; - "help") - show_help - ;; - "all") - echo "🚀 开始完整部署情绪博物馆到阿里云服务器..." - echo "" - - # 完整部署流程 - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_maven - install_nodejs - setup_mysql - setup_redis - setup_nacos - upload_artifacts - import_database - create_app_scripts - start_app_services - setup_nginx - create_password_record - health_check - show_deployment_result - ;; - *) - echo "未知选项: $1" - show_help - exit 1 - ;; - esac -} - -# 执行主函数 -main "$@" diff --git a/deploy-aliyun-simple.sh b/deploy-aliyun-simple.sh deleted file mode 100755 index 2badc0f..0000000 --- a/deploy-aliyun-simple.sh +++ /dev/null @@ -1,660 +0,0 @@ -#!/bin/bash - -# 情绪博物馆阿里云服务器简化部署脚本 -# 分步骤执行,避免超时问题 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 服务器配置 -SERVER_IP="47.111.10.27" -SERVER_USER="root" -MYSQL_ROOT_PASSWORD="123456" - -# 部署目录配置 -PROGRAMS_DIR="/data/programs" -BUILDS_DIR="/data/builds" -WEB_DIR="/data/www/emotion-museum" -CONFIG_FILE="/data/deployment_config.md" - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 远程执行命令 -remote_exec() { - local command="$1" - ssh -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_IP}" "$command" -} - -# 复制文件到服务器 -remote_copy() { - local local_path="$1" - local remote_path="$2" - scp -o StrictHostKeyChecking=no -r "$local_path" "${SERVER_USER}@${SERVER_IP}:$remote_path" -} - -# 检查服务器连接 -check_server_connection() { - log_step "检查服务器连接..." - - if ! ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "${SERVER_USER}@${SERVER_IP}" "echo 'Connected to server successfully'" &>/dev/null; then - log_error "无法连接到服务器 ${SERVER_IP},请检查网络连接和SSH配置" - exit 1 - fi - - log_info "服务器连接正常" -} - -# 创建服务器目录结构 -setup_directories() { - log_step "创建服务器目录结构..." - - remote_exec "mkdir -p ${PROGRAMS_DIR}/{mysql,redis,nacos,java,maven,nodejs}" - remote_exec "mkdir -p ${BUILDS_DIR}" - remote_exec "mkdir -p ${WEB_DIR}" - remote_exec "mkdir -p /data/logs/{mysql,redis,nacos,docker,nginx}" - remote_exec "mkdir -p /data/backup" - - log_info "目录结构创建完成" -} - -# 安装基础软件 -install_basic_packages() { - log_step "安装基础软件包..." - - remote_exec "yum update -y && yum install -y wget curl git unzip vim net-tools" - - log_info "基础软件包安装完成" -} - -# 安装Docker -install_docker() { - log_step "安装Docker..." - - remote_exec " - if ! command -v docker &> /dev/null; then - curl -fsSL https://get.docker.com | sh - systemctl start docker - systemctl enable docker - echo 'Docker安装完成' - else - echo 'Docker已安装' - fi - " - - log_info "Docker安装检查完成" -} - -# 安装Java -install_java() { - log_step "安装Java 17..." - - remote_exec " - if ! java -version 2>&1 | grep -q '17'; then - yum install -y java-17-openjdk java-17-openjdk-devel - echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk' >> /etc/profile - echo 'export PATH=\$JAVA_HOME/bin:\$PATH' >> /etc/profile - source /etc/profile - echo 'Java 17安装完成' - else - echo 'Java 17已安装' - fi - " - - log_info "Java安装检查完成" -} - -# 安装Node.js -install_nodejs() { - log_step "安装Node.js..." - - remote_exec " - if ! command -v node &> /dev/null; then - curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - - yum install -y nodejs - npm config set registry https://registry.npmmirror.com - echo 'Node.js安装完成' - else - echo 'Node.js已安装' - fi - " - - log_info "Node.js安装检查完成" -} - -# 安装和配置MySQL -setup_mysql() { - log_step "配置MySQL..." - - # 检查MySQL是否已运行 - if remote_exec "systemctl is-active --quiet mysqld 2>/dev/null && mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;' &>/dev/null"; then - log_info "MySQL已配置且运行正常" - return 0 - fi - - log_info "配置MySQL数据库..." - remote_exec " - # 测试连接 - if mysql -u root -p${MYSQL_ROOT_PASSWORD} -e 'SELECT 1;' &>/dev/null; then - echo 'MySQL连接正常' - - # 创建应用数据库 - mysql -u root -p${MYSQL_ROOT_PASSWORD} -e \" - CREATE DATABASE IF NOT EXISTS emotion_museum CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - CREATE USER IF NOT EXISTS 'emotion'@'%' IDENTIFIED BY 'EmotionDB2024!'; - GRANT ALL PRIVILEGES ON emotion_museum.* TO 'emotion'@'%'; - FLUSH PRIVILEGES; - \" - echo 'MySQL数据库和用户创建完成' - else - echo 'MySQL连接失败,请检查密码或安装状态' - exit 1 - fi - " - - log_info "MySQL配置完成" -} - -# 安装和配置Redis -setup_redis() { - log_step "配置Redis..." - - if remote_exec "systemctl is-active --quiet redis 2>/dev/null"; then - log_info "Redis已运行" - return 0 - fi - - remote_exec " - # 安装Redis - if ! command -v redis-server &> /dev/null; then - yum install -y epel-release - yum install -y redis - fi - - # 基本配置 - sed -i 's/^bind 127.0.0.1/bind 0.0.0.0/' /etc/redis.conf - - # 启动服务 - systemctl start redis - systemctl enable redis - - echo 'Redis配置完成' - " - - log_info "Redis配置完成" -} - -# 安装Nacos -setup_nacos() { - log_step "配置Nacos..." - - if remote_exec "pgrep -f nacos > /dev/null"; then - log_info "Nacos已运行" - return 0 - fi - - remote_exec " - NACOS_DIR='${PROGRAMS_DIR}/nacos' - - if [ ! -d \"\${NACOS_DIR}\" ]; then - cd /tmp - if [ ! -f nacos-server-2.2.0.tar.gz ]; then - wget https://github.com/alibaba/nacos/releases/download/2.2.0/nacos-server-2.2.0.tar.gz - fi - tar -xzf nacos-server-2.2.0.tar.gz - mv nacos \${NACOS_DIR} - - # 配置单机模式 - cd \${NACOS_DIR}/conf - cp application.properties application.properties.backup - - cat > application.properties << 'EOF' -server.servlet.contextPath=/nacos -server.port=8848 -nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** -EOF - fi - - # 启动Nacos - cd \${NACOS_DIR}/bin - bash startup.sh -m standalone - - echo 'Nacos配置完成' - " - - log_info "Nacos配置完成" -} - -# 上传构建产物 -upload_artifacts() { - log_step "上传构建产物..." - - # 检查构建产物是否存在 - if [ ! -d "build-output" ]; then - log_error "构建产物不存在,请先运行: ./deploy-aliyun.sh build" - exit 1 - fi - - # 上传JAR文件 - if [ -d "build-output/jars" ]; then - for jar in build-output/jars/*.jar; do - if [ -f "$jar" ]; then - remote_copy "$jar" "${BUILDS_DIR}/" - log_info "上传: $(basename $jar)" - fi - done - fi - - # 上传前端文件 - if [ -d "build-output/web" ]; then - remote_exec "rm -rf ${WEB_DIR}/*" - for file in build-output/web/*; do - if [ -e "$file" ]; then - remote_copy "$file" "${WEB_DIR}/" - fi - done - log_info "前端文件上传完成" - fi - - # 上传数据库脚本 - if [ -f "backend/mysql_emotion_museum_final.sql" ]; then - remote_copy "backend/mysql_emotion_museum_final.sql" "/tmp/" - log_info "数据库脚本上传完成" - fi - - log_info "构建产物上传完成" -} - -# 导入数据库 -import_database() { - log_step "导入数据库..." - - remote_exec " - if [ -f /tmp/mysql_emotion_museum_final.sql ]; then - mysql -u root -p${MYSQL_ROOT_PASSWORD} emotion_museum < /tmp/mysql_emotion_museum_final.sql - echo '数据库导入完成' - else - echo '数据库脚本不存在' - exit 1 - fi - " - - log_info "数据库导入完成" -} - -# 创建Docker配置 -create_docker_config() { - log_step "创建Docker配置..." - - # 创建应用Docker Compose文件 - cat > /tmp/docker-compose-app.yml << 'EOF' -version: '3.8' - -services: - # 网关服务 - gateway: - image: openjdk:17-jre-slim - container_name: emotion-gateway - restart: always - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-gateway-1.0.0.jar:/app/app.jar - - /data/logs/docker/gateway:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - - # AI服务 - ai-service: - image: openjdk:17-jre-slim - container_name: emotion-ai - restart: always - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-ai-1.0.0.jar:/app/app.jar - - /data/logs/docker/ai:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - - # 用户服务 - user-service: - image: openjdk:17-jre-slim - container_name: emotion-user - restart: always - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-user-1.0.0.jar:/app/app.jar - - /data/logs/docker/user:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - -networks: - emotion-network: - driver: bridge -EOF - - # 上传配置文件 - remote_copy "/tmp/docker-compose-app.yml" "${BUILDS_DIR}/docker-compose.yml" - rm /tmp/docker-compose-app.yml - - log_info "Docker配置创建完成" -} - -# 配置Nginx -setup_nginx() { - log_step "配置Nginx..." - - remote_exec " - # 安装Nginx - if ! command -v nginx &> /dev/null; then - yum install -y nginx - fi - - # 创建配置文件 - cat > /etc/nginx/nginx.conf << 'NGINX_EOF' -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - log_format main '\$remote_addr - \$remote_user [\$time_local] \"\$request\" ' - '\$status \$body_bytes_sent \"\$http_referer\" ' - '\"\$http_user_agent\" \"\$http_x_forwarded_for\"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - server { - listen 80; - server_name ${SERVER_IP}; - root ${WEB_DIR}; - index index.html; - - # 前端路由 - location / { - try_files \$uri \$uri/ /index.html; - } - - # API代理 - location /api/ { - proxy_pass http://127.0.0.1:9000/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - } - - # 静态资源缓存 - location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control \"public, no-transform\"; - } - } -} -NGINX_EOF - - # 启动Nginx - systemctl start nginx - systemctl enable nginx - - echo 'Nginx配置完成' - " - - log_info "Nginx配置完成" -} - -# 启动应用服务 -start_app_services() { - log_step "启动应用服务..." - - remote_exec " - cd ${BUILDS_DIR} - - # 安装Docker Compose(如果没有) - if ! command -v docker-compose &> /dev/null; then - curl -L \"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-\$(uname -s)-\$(uname -m)\" -o /usr/local/bin/docker-compose - chmod +x /usr/local/bin/docker-compose - fi - - # 启动应用服务 - docker-compose up -d - - echo '应用服务启动完成' - " - - log_info "应用服务启动完成" -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - sleep 30 # 等待服务启动 - - log_info "检查基础服务..." - remote_exec "systemctl is-active mysqld redis nginx || true" - - log_info "检查Nacos服务..." - remote_exec "pgrep -f nacos || echo 'Nacos未运行'" - - log_info "检查Docker服务..." - remote_exec "docker ps" - - log_info "检查端口监听..." - remote_exec "netstat -tlnp | grep -E ':(80|3306|6379|8848|9000|9001|9002)' || true" - - # HTTP健康检查 - log_info "HTTP接口测试..." - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:80 | grep -q 200"; then - log_info "✅ 前端应用正常" - else - log_warn "❌ 前端应用异常" - fi - - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:8848/nacos | grep -q 200"; then - log_info "✅ Nacos控制台正常" - else - log_warn "❌ Nacos控制台异常" - fi - - log_info "健康检查完成" -} - -# 创建配置记录 -create_config_record() { - log_step "创建配置记录..." - - cat > /tmp/deployment_config.md << EOF -# 情绪博物馆部署配置记录 - -## 服务器信息 -- 服务器IP: ${SERVER_IP} -- 部署时间: $(date '+%Y-%m-%d %H:%M:%S') - -## 服务配置 -### 数据库 -- MySQL端口: 3306 -- root密码: ${MYSQL_ROOT_PASSWORD} -- 应用数据库: emotion_museum -- 应用用户: emotion/EmotionDB2024! - -### 服务端口 -- Redis: 6379 -- Nacos: 8848 -- 网关: 9000 -- 用户服务: 9001 -- AI服务: 9002 -- Nginx: 80 - -## 访问地址 -- 前端应用: http://${SERVER_IP} -- API网关: http://${SERVER_IP}:9000 -- Nacos控制台: http://${SERVER_IP}:8848/nacos (nacos/nacos) - -## 管理命令 -\`\`\`bash -# 查看服务状态 -systemctl status mysqld redis nginx -docker ps - -# 查看应用日志 -docker logs -f emotion-gateway -docker logs -f emotion-ai -docker logs -f emotion-user - -# 重启服务 -systemctl restart mysqld redis nginx -docker-compose -f ${BUILDS_DIR}/docker-compose.yml restart - -# 停止所有服务 -docker-compose -f ${BUILDS_DIR}/docker-compose.yml down -systemctl stop nginx redis mysqld -\`\`\` - -## 目录结构 -- 程序目录: ${PROGRAMS_DIR} -- 构建目录: ${BUILDS_DIR} -- 前端目录: ${WEB_DIR} -- 日志目录: /data/logs -- 备份目录: /data/backup -EOF - - remote_copy "/tmp/deployment_config.md" "${CONFIG_FILE}" - rm /tmp/deployment_config.md - - log_info "配置记录已创建: ${CONFIG_FILE}" -} - -# 显示部署结果 -show_result() { - echo "" - echo "🎉 情绪博物馆部署完成!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://${SERVER_IP}" - echo " API网关: http://${SERVER_IP}:9000" - echo " Nacos: http://${SERVER_IP}:8848/nacos" - echo "" - echo "📁 重要文件:" - echo " 配置记录: ${CONFIG_FILE}" - echo " 应用目录: ${BUILDS_DIR}" - echo " 前端目录: ${WEB_DIR}" - echo "" - echo "🔧 管理命令:" - echo " ssh ${SERVER_USER}@${SERVER_IP}" - echo " docker-compose -f ${BUILDS_DIR}/docker-compose.yml logs -f" - echo "" -} - -# 主部署流程 -main() { - echo "🚀 开始部署情绪博物馆到阿里云服务器..." - echo "" - - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_nodejs - setup_mysql - setup_redis - setup_nacos - upload_artifacts - import_database - create_docker_config - setup_nginx - start_app_services - create_config_record - health_check - show_result -} - -# 命令行参数处理 -case "${1:-}" in - "env") - log_info "仅安装环境..." - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_nodejs - setup_mysql - setup_redis - setup_nacos - ;; - "app") - log_info "仅部署应用..." - check_server_connection - upload_artifacts - import_database - create_docker_config - setup_nginx - start_app_services - health_check - ;; - "health") - check_server_connection - health_check - ;; - *) - main - ;; -esac \ No newline at end of file diff --git a/deploy-aliyun.sh b/deploy-aliyun.sh deleted file mode 100755 index 03d6225..0000000 --- a/deploy-aliyun.sh +++ /dev/null @@ -1,1028 +0,0 @@ -#!/bin/bash - -# 情绪博物馆阿里云服务器部署脚本 -# 适配服务器配置: MySQL/Redis/Nacos直接安装,应用服务使用Docker -# 作者: EmotionMuseum Team -# 日期: 2025-07-13 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 服务器配置 -SERVER_IP="47.111.10.27" -SERVER_USER="root" -MYSQL_ROOT_PASSWORD="123456" - -# 部署目录配置 -PROGRAMS_DIR="/data/programs" -BUILDS_DIR="/data/builds" -WEB_DIR="/data/www/emotion-museum" -CONFIG_FILE="/data/deployment_config.md" - -# 密码生成函数 -generate_password() { - echo $(openssl rand -base64 32 | tr -d "=+/" | cut -c1-20) -} - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 远程执行命令 -remote_exec() { - local command="$1" - ssh -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_IP}" "$command" -} - -# 远程执行脚本 -remote_exec_script() { - local script="$1" - ssh -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_IP}" 'bash -s' < "$script" -} - -# 复制文件到服务器 -remote_copy() { - local local_path="$1" - local remote_path="$2" - scp -o StrictHostKeyChecking=no -r "$local_path" "${SERVER_USER}@${SERVER_IP}:$remote_path" -} - -# 检查服务器连接 -check_server_connection() { - log_step "检查服务器连接..." - - if ! ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "${SERVER_USER}@${SERVER_IP}" "echo 'Connected to server successfully'" &>/dev/null; then - log_error "无法连接到服务器 ${SERVER_IP},请检查网络连接和SSH配置" - exit 1 - fi - - log_info "服务器连接正常" -} - -# 创建服务器目录结构 -create_server_directories() { - log_step "创建服务器目录结构..." - - remote_exec "mkdir -p ${PROGRAMS_DIR}/{mysql,redis,nacos,java,maven,nodejs}" - remote_exec "mkdir -p ${BUILDS_DIR}" - remote_exec "mkdir -p ${WEB_DIR}" - remote_exec "mkdir -p /data/logs/{mysql,redis,nacos,docker}" - remote_exec "mkdir -p /data/backup" - - log_info "目录结构创建完成" -} - -# 安装基础环境 -install_base_environment() { - log_step "安装基础环境..." - - # 创建安装脚本 - cat > /tmp/install_base.sh << 'EOF' -#!/bin/bash - -# 更新系统 -yum update -y -yum install -y wget curl git unzip vim net-tools - -# 安装Docker -if ! command -v docker &> /dev/null; then - curl -fsSL https://get.docker.com | sh - systemctl start docker - systemctl enable docker - echo "Docker安装完成" -else - echo "Docker已安装" -fi - -# 安装Docker Compose -if ! command -v docker-compose &> /dev/null; then - curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - chmod +x /usr/local/bin/docker-compose - ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose - echo "Docker Compose安装完成" -else - echo "Docker Compose已安装" -fi -EOF - - remote_exec_script /tmp/install_base.sh - rm /tmp/install_base.sh - - log_info "基础环境安装完成" -} - -# 安装配置Java环境 -install_java() { - log_step "安装Java环境..." - - cat > /tmp/install_java.sh << 'EOF' -#!/bin/bash - -JAVA_VERSION="17" -JAVA_DIR="/data/programs/java" - -# 检查Java是否已安装 -if command -v java &> /dev/null; then - java_ver=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut -d'.' -f1) - if [ "$java_ver" -ge "$JAVA_VERSION" ]; then - echo "Java $java_ver 已安装" - exit 0 - fi -fi - -# 安装OpenJDK 17 -yum install -y java-17-openjdk java-17-openjdk-devel - -# 配置JAVA_HOME -echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk' >> /etc/profile -echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile - -# 立即生效 -source /etc/profile - -echo "Java环境安装完成" -EOF - - remote_exec_script /tmp/install_java.sh - rm /tmp/install_java.sh - - log_info "Java环境安装完成" -} - -# 安装配置Maven环境 -install_maven() { - log_step "安装Maven环境..." - - cat > /tmp/install_maven.sh << 'EOF' -#!/bin/bash - -MAVEN_VERSION="3.9.5" -MAVEN_DIR="/data/programs/maven" - -# 检查Maven是否已安装 -if command -v mvn &> /dev/null; then - echo "Maven已安装: $(mvn -version | head -n 1)" - exit 0 -fi - -# 下载Maven -cd /tmp -wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz - -# 解压到指定目录 -tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -mv apache-maven-${MAVEN_VERSION} ${MAVEN_DIR} - -# 配置环境变量 -echo "export MAVEN_HOME=${MAVEN_DIR}" >> /etc/profile -echo 'export PATH=$MAVEN_HOME/bin:$PATH' >> /etc/profile - -# 立即生效 -source /etc/profile - -# 清理 -rm -f apache-maven-${MAVEN_VERSION}-bin.tar.gz - -echo "Maven环境安装完成" -EOF - - remote_exec_script /tmp/install_maven.sh - rm /tmp/install_maven.sh - - log_info "Maven环境安装完成" -} - -# 安装配置Node.js环境 -install_nodejs() { - log_step "安装Node.js环境..." - - cat > /tmp/install_nodejs.sh << 'EOF' -#!/bin/bash - -NODE_VERSION="18" -NODE_DIR="/data/programs/nodejs" - -# 检查Node.js是否已安装 -if command -v node &> /dev/null; then - node_ver=$(node -v | cut -d'v' -f2 | cut -d'.' -f1) - if [ "$node_ver" -ge "$NODE_VERSION" ]; then - echo "Node.js v$(node -v) 已安装" - exit 0 - fi -fi - -# 安装Node.js 18 -curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - -yum install -y nodejs - -# 配置npm镜像 -npm config set registry https://registry.npmmirror.com - -echo "Node.js环境安装完成" -EOF - - remote_exec_script /tmp/install_nodejs.sh - rm /tmp/install_nodejs.sh - - log_info "Node.js环境安装完成" -} - -# 安装配置MySQL -install_mysql() { - log_step "安装配置MySQL..." - - # 生成新的MySQL密码 - NEW_MYSQL_PASSWORD=$(generate_password) - - cat > /tmp/install_mysql.sh << EOF -#!/bin/bash - -MYSQL_DIR="${PROGRAMS_DIR}/mysql" -CURRENT_PASSWORD="${MYSQL_ROOT_PASSWORD}" -NEW_PASSWORD="${NEW_MYSQL_PASSWORD}" - -# 检查MySQL是否已安装 -if systemctl is-active --quiet mysqld 2>/dev/null; then - echo "MySQL服务已在运行" - # 测试连接 - if mysql -u root -p\${CURRENT_PASSWORD} -e "SELECT 1;" &>/dev/null; then - echo "MySQL连接正常,密码正确" - exit 0 - else - echo "MySQL密码可能已更改" - fi -else - echo "开始安装MySQL..." - - # 安装MySQL 8.0 - wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm - rpm -ivh mysql80-community-release-el7-3.noarch.rpm - yum install -y mysql-server - - # 启动MySQL服务 - systemctl start mysqld - systemctl enable mysqld - - # 获取临时密码 - TEMP_PASSWORD=\$(grep 'temporary password' /var/log/mysqld.log | awk '{print \$NF}') - - # 修改root密码 - mysql -u root -p"\${TEMP_PASSWORD}" --connect-expired-password -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '\${NEW_PASSWORD}';" - - # 创建应用数据库和用户 - mysql -u root -p\${NEW_PASSWORD} -e " - CREATE DATABASE IF NOT EXISTS emotion_museum CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - CREATE USER IF NOT EXISTS 'emotion'@'%' IDENTIFIED BY 'EmotionDB2024!'; - GRANT ALL PRIVILEGES ON emotion_museum.* TO 'emotion'@'%'; - FLUSH PRIVILEGES; - " - - echo "MySQL安装和配置完成" - echo "新的root密码: \${NEW_PASSWORD}" -fi -EOF - - remote_exec_script /tmp/install_mysql.sh - rm /tmp/install_mysql.sh - - # 记录密码信息 - echo "MySQL_ROOT_PASSWORD=${NEW_MYSQL_PASSWORD}" >> /tmp/deployment_config.md - - log_info "MySQL安装配置完成,新密码已生成" -} - -# 安装配置Redis -install_redis() { - log_step "安装配置Redis..." - - # 生成Redis密码 - REDIS_PASSWORD=$(generate_password) - - cat > /tmp/install_redis.sh << EOF -#!/bin/bash - -REDIS_DIR="${PROGRAMS_DIR}/redis" -REDIS_PASSWORD="${REDIS_PASSWORD}" - -# 检查Redis是否已安装 -if systemctl is-active --quiet redis 2>/dev/null; then - echo "Redis服务已在运行" - exit 0 -fi - -# 安装Redis -yum install -y epel-release -yum install -y redis - -# 配置Redis -sed -i 's/^# requirepass foobared/requirepass '\${REDIS_PASSWORD}'/' /etc/redis.conf -sed -i 's/^bind 127.0.0.1/bind 0.0.0.0/' /etc/redis.conf - -# 启动Redis服务 -systemctl start redis -systemctl enable redis - -echo "Redis安装和配置完成" -echo "Redis密码: \${REDIS_PASSWORD}" -EOF - - remote_exec_script /tmp/install_redis.sh - rm /tmp/install_redis.sh - - # 记录密码信息 - echo "REDIS_PASSWORD=${REDIS_PASSWORD}" >> /tmp/deployment_config.md - - log_info "Redis安装配置完成,密码已生成" -} - -# 安装配置Nacos -install_nacos() { - log_step "安装配置Nacos..." - - cat > /tmp/install_nacos.sh << 'EOF' -#!/bin/bash - -NACOS_VERSION="2.2.0" -NACOS_DIR="/data/programs/nacos" - -# 检查Nacos是否已安装 -if [ -d "${NACOS_DIR}" ] && [ -f "${NACOS_DIR}/bin/startup.sh" ]; then - echo "Nacos已安装" - - # 检查是否运行 - if pgrep -f "nacos" > /dev/null; then - echo "Nacos服务正在运行" - exit 0 - else - echo "启动Nacos服务..." - cd ${NACOS_DIR}/bin - bash startup.sh -m standalone - exit 0 - fi -fi - -# 下载Nacos -cd /tmp -wget https://github.com/alibaba/nacos/releases/download/${NACOS_VERSION}/nacos-server-${NACOS_VERSION}.tar.gz - -# 解压到指定目录 -tar -xzf nacos-server-${NACOS_VERSION}.tar.gz -mv nacos ${NACOS_DIR} - -# 配置Nacos -cd ${NACOS_DIR}/conf -cp application.properties application.properties.backup - -# 使用内嵌数据库模式(单机版) -cat > application.properties << 'NACOS_EOF' -server.servlet.contextPath=/nacos -server.port=8848 - -nacos.cmdb.dumpTaskInterval=3600 -nacos.cmdb.eventTaskInterval=10 -nacos.cmdb.labelTaskInterval=300 -nacos.cmdb.loadDataAtStart=false - -management.metrics.export.elastic.enabled=false -management.metrics.export.influx.enabled=false - -server.tomcat.accesslog.enabled=true -server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i -server.tomcat.basedir= - -nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/** - -nacos.naming.distro.taskDispatchThreadCount=10 -nacos.naming.distro.taskDispatchPeriod=200 -nacos.naming.distro.batchSyncKeyCount=1000 -nacos.naming.distro.initDataRatio=0.9 -nacos.naming.distro.syncRetryDelay=5000 -nacos.naming.data.warmup=true -nacos.naming.expireInstance=true - -nacos.istio.mcp.server.enabled=false -NACOS_EOF - -# 启动Nacos -cd ${NACOS_DIR}/bin -bash startup.sh -m standalone - -# 创建启动脚本 -cat > /etc/systemd/system/nacos.service << 'SERVICE_EOF' -[Unit] -Description=Nacos Server -After=network.target - -[Service] -Type=forking -ExecStart=/data/programs/nacos/bin/startup.sh -m standalone -ExecStop=/data/programs/nacos/bin/shutdown.sh -User=root -Group=root -Restart=always - -[Install] -WantedBy=multi-user.target -SERVICE_EOF - -systemctl daemon-reload -systemctl enable nacos - -echo "Nacos安装和配置完成" -EOF - - remote_exec_script /tmp/install_nacos.sh - rm /tmp/install_nacos.sh - - log_info "Nacos安装配置完成" -} - -# 构建后端服务 -build_backend_services() { - log_step "构建后端服务..." - - # 检查后端目录 - if [ ! -d "backend" ]; then - log_error "backend目录不存在,请在项目根目录运行脚本" - exit 1 - fi - - # 构建所有微服务 - log_info "开始构建微服务..." - cd backend - - # 清理和编译 - mvn clean install -DskipTests - - # 创建构建产物目录 - mkdir -p ../build-output/jars - mkdir -p ../build-output/configs - - # 复制JAR文件 - find . -name "*.jar" -not -path "*/target/original-*" | while read jar; do - service_name=$(echo $jar | cut -d'/' -f2) - cp "$jar" "../build-output/jars/${service_name}.jar" - log_info "已构建: ${service_name}.jar" - done - - cd .. - - log_info "后端服务构建完成" -} - -# 构建前端应用 -build_frontend() { - log_step "构建前端应用..." - - # 检查前端目录 - if [ ! -d "web" ]; then - log_error "web目录不存在,请在项目根目录运行脚本" - exit 1 - fi - - cd web - - # 安装依赖 - log_info "安装前端依赖..." - npm install - - # 构建生产版本 - log_info "构建生产版本..." - npm run build - - # 创建构建产物目录 - mkdir -p ../build-output/web - - # 复制构建产物 - cp -r dist/* ../build-output/web/ - - cd .. - - log_info "前端应用构建完成" -} - -# 上传构建产物 -upload_build_artifacts() { - log_step "上传构建产物到服务器..." - - # 上传JAR文件 - if [ -d "build-output/jars" ]; then - remote_copy "build-output/jars/*" "${BUILDS_DIR}/" - log_info "JAR文件上传完成" - fi - - # 上传前端文件 - if [ -d "build-output/web" ]; then - remote_exec "rm -rf ${WEB_DIR}/*" - remote_copy "build-output/web/*" "${WEB_DIR}/" - log_info "前端文件上传完成" - fi - - # 上传配置文件 - remote_copy "backend/mysql_emotion_museum_final.sql" "/tmp/" - - log_info "构建产物上传完成" -} - -# 初始化数据库 -initialize_database() { - log_step "初始化数据库..." - - cat > /tmp/init_database.sh << 'EOF' -#!/bin/bash - -# 导入数据库结构 -mysql -u root -p"${NEW_MYSQL_PASSWORD}" emotion_museum < /tmp/mysql_emotion_museum_final.sql - -echo "数据库初始化完成" -EOF - - remote_exec_script /tmp/init_database.sh - rm /tmp/init_database.sh - - log_info "数据库初始化完成" -} - -# 创建Docker Compose文件 -create_docker_compose() { - log_step "创建Docker Compose配置..." - - cat > /tmp/docker-compose-aliyun.yml << 'EOF' -version: '3.8' - -services: - # 网关服务 - gateway: - build: - context: . - dockerfile: Dockerfile.gateway - image: emotion-gateway:latest - container_name: emotion-gateway - restart: always - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: prod - NACOS_SERVER_ADDR: host.docker.internal:8848 - MYSQL_HOST: host.docker.internal - MYSQL_PORT: 3306 - REDIS_HOST: host.docker.internal - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/logs/docker/gateway:/app/logs - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - - # AI服务 - ai-service: - build: - context: . - dockerfile: Dockerfile.ai - image: emotion-ai:latest - container_name: emotion-ai - restart: always - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: prod - NACOS_SERVER_ADDR: host.docker.internal:8848 - MYSQL_HOST: host.docker.internal - MYSQL_PORT: 3306 - REDIS_HOST: host.docker.internal - REDIS_PORT: 6379 - COZE_API_TOKEN: pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO - TZ: Asia/Shanghai - volumes: - - /data/logs/docker/ai:/app/logs - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - - # 用户服务 - user-service: - build: - context: . - dockerfile: Dockerfile.user - image: emotion-user:latest - container_name: emotion-user - restart: always - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: prod - NACOS_SERVER_ADDR: host.docker.internal:8848 - MYSQL_HOST: host.docker.internal - MYSQL_PORT: 3306 - REDIS_HOST: host.docker.internal - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/logs/docker/user:/app/logs - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - emotion-network - -networks: - emotion-network: - driver: bridge -EOF - - # 上传Docker Compose文件 - remote_copy "/tmp/docker-compose-aliyun.yml" "${BUILDS_DIR}/docker-compose.yml" - rm /tmp/docker-compose-aliyun.yml - - log_info "Docker Compose配置创建完成" -} - -# 创建Dockerfile -create_dockerfiles() { - log_step "创建Dockerfile..." - - # Gateway Dockerfile - cat > /tmp/Dockerfile.gateway << 'EOF' -FROM openjdk:17-jre-slim - -WORKDIR /app -COPY emotion-gateway.jar app.jar - -EXPOSE 9000 - -ENTRYPOINT ["java", "-jar", "app.jar"] -EOF - - # AI Service Dockerfile - cat > /tmp/Dockerfile.ai << 'EOF' -FROM openjdk:17-jre-slim - -WORKDIR /app -COPY emotion-ai.jar app.jar - -EXPOSE 9002 - -ENTRYPOINT ["java", "-jar", "app.jar"] -EOF - - # User Service Dockerfile - cat > /tmp/Dockerfile.user << 'EOF' -FROM openjdk:17-jre-slim - -WORKDIR /app -COPY emotion-user.jar app.jar - -EXPOSE 9001 - -ENTRYPOINT ["java", "-jar", "app.jar"] -EOF - - # 上传Dockerfile - remote_copy "/tmp/Dockerfile.*" "${BUILDS_DIR}/" - - # 清理临时文件 - rm /tmp/Dockerfile.* - - log_info "Dockerfile创建完成" -} - -# 配置Nginx -configure_nginx() { - log_step "配置Nginx..." - - cat > /tmp/setup_nginx.sh << EOF -#!/bin/bash - -WEB_DIR="${WEB_DIR}" - -# 安装Nginx -if ! command -v nginx &> /dev/null; then - yum install -y nginx -fi - -# 创建Nginx配置 -cat > /etc/nginx/nginx.conf << 'NGINX_EOF' -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" ' - '\$status \$body_bytes_sent "\$http_referer" ' - '"\$http_user_agent" "\$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 前端应用 - server { - listen 80; - server_name ${SERVER_IP}; - root ${WEB_DIR}; - index index.html; - - # 前端路由支持 - location / { - try_files \$uri \$uri/ /index.html; - } - - # API代理 - location /api/ { - proxy_pass http://127.0.0.1:9000/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - } - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control "public, no-transform"; - } - } -} -NGINX_EOF - -# 启动Nginx -systemctl start nginx -systemctl enable nginx - -echo "Nginx配置完成" -EOF - - remote_exec_script /tmp/setup_nginx.sh - rm /tmp/setup_nginx.sh - - log_info "Nginx配置完成" -} - -# 启动Docker服务 -start_docker_services() { - log_step "启动Docker服务..." - - cat > /tmp/start_services.sh << EOF -#!/bin/bash - -cd ${BUILDS_DIR} - -# 构建Docker镜像 -docker build -f Dockerfile.gateway -t emotion-gateway:latest . -docker build -f Dockerfile.ai -t emotion-ai:latest . -docker build -f Dockerfile.user -t emotion-user:latest . - -# 启动服务 -docker-compose up -d - -echo "Docker服务启动完成" -EOF - - remote_exec_script /tmp/start_services.sh - rm /tmp/start_services.sh - - log_info "Docker服务启动完成" -} - -# 创建部署配置记录 -create_deployment_config() { - log_step "创建部署配置记录..." - - cat > /tmp/deployment_config.md << EOF -# 情绪博物馆部署配置记录 -## 服务器信息 -- 服务器IP: ${SERVER_IP} -- 部署时间: $(date '+%Y-%m-%d %H:%M:%S') - -## 目录结构 -- 程序目录: ${PROGRAMS_DIR} -- 构建目录: ${BUILDS_DIR} -- 前端目录: ${WEB_DIR} -- 日志目录: /data/logs - -## 服务配置 -- MySQL端口: 3306 -- Redis端口: 6379 -- Nacos端口: 8848 -- 网关端口: 9000 -- AI服务端口: 9002 -- 用户服务端口: 9001 -- Nginx端口: 80 - -## 密码信息 -$(cat /tmp/deployment_config.md 2>/dev/null || echo "# 密码信息将在安装过程中生成") - -## 访问地址 -- 前端应用: http://${SERVER_IP} -- API网关: http://${SERVER_IP}:9000 -- Nacos控制台: http://${SERVER_IP}:8848/nacos (nacos/nacos) - -## 管理命令 -\`\`\`bash -# 查看服务状态 -systemctl status mysql redis nacos nginx -docker ps - -# 查看日志 -tail -f /var/log/mysqld.log -tail -f /var/log/redis/redis.log -tail -f ${PROGRAMS_DIR}/nacos/logs/start.out -docker logs -f emotion-gateway - -# 重启服务 -systemctl restart mysql redis nacos nginx -docker-compose -f ${BUILDS_DIR}/docker-compose.yml restart -\`\`\` - -## 备份和维护 -\`\`\`bash -# 数据库备份 -mysqldump -u root -p emotion_museum > /data/backup/emotion_museum_\$(date +%Y%m%d).sql - -# 清理Docker -docker system prune -f - -# 更新代码 -cd ${BUILDS_DIR} -# 替换JAR文件 -docker-compose restart -\`\`\` -EOF - - # 上传配置文件 - remote_copy "/tmp/deployment_config.md" "${CONFIG_FILE}" - rm /tmp/deployment_config.md - - log_info "部署配置记录已创建: ${CONFIG_FILE}" -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - sleep 30 # 等待服务启动 - - log_info "检查基础服务状态..." - remote_exec "systemctl is-active mysql redis nacos nginx" - - log_info "检查Docker服务状态..." - remote_exec "docker ps" - - log_info "检查端口监听状态..." - remote_exec "netstat -tlnp | grep -E ':(80|3306|6379|8848|9000|9001|9002)'" - - log_info "测试HTTP接口..." - if remote_exec "curl -s http://localhost:80 >/dev/null"; then - log_info "✅ 前端应用访问正常" - else - log_warn "❌ 前端应用访问异常" - fi - - if remote_exec "curl -s http://localhost:9000/actuator/health >/dev/null"; then - log_info "✅ API网关访问正常" - else - log_warn "❌ API网关访问异常" - fi - - if remote_exec "curl -s http://localhost:8848/nacos >/dev/null"; then - log_info "✅ Nacos控制台访问正常" - else - log_warn "❌ Nacos控制台访问异常" - fi - - log_info "健康检查完成" -} - -# 显示部署结果 -show_deployment_result() { - log_step "部署完成!" - - echo "" - echo "🎉 情绪博物馆部署成功!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://${SERVER_IP}" - echo " API网关: http://${SERVER_IP}:9000" - echo " Nacos: http://${SERVER_IP}:8848/nacos (用户名/密码: nacos/nacos)" - echo "" - echo "📁 服务器目录:" - echo " 程序目录: ${PROGRAMS_DIR}" - echo " 构建目录: ${BUILDS_DIR}" - echo " 前端目录: ${WEB_DIR}" - echo " 配置文件: ${CONFIG_FILE}" - echo "" - echo "🔧 管理命令:" - echo " ssh ${SERVER_USER}@${SERVER_IP}" - echo " systemctl status mysql redis nacos nginx" - echo " docker ps" - echo " docker-compose -f ${BUILDS_DIR}/docker-compose.yml logs -f" - echo "" - echo "⚠️ 重要提醒:" - echo " 1. 密码信息已保存到服务器 ${CONFIG_FILE} 文件中" - echo " 2. 请及时修改默认密码" - echo " 3. 建议配置防火墙规则" - echo " 4. 定期备份数据库" - echo "" -} - -# 主部署流程 -main() { - echo "🚀 开始部署情绪博物馆到阿里云服务器..." - echo "" - - # 检查本地构建环境 - if ! command -v mvn &> /dev/null; then - log_error "本地未安装Maven,请先安装Maven" - exit 1 - fi - - if ! command -v npm &> /dev/null; then - log_error "本地未安装Node.js,请先安装Node.js" - exit 1 - fi - - # 执行部署步骤 - check_server_connection - create_server_directories - install_base_environment - install_java - install_maven - install_nodejs - install_mysql - install_redis - install_nacos - - # 本地构建 - build_backend_services - build_frontend - - # 部署到服务器 - upload_build_artifacts - initialize_database - create_docker_compose - create_dockerfiles - configure_nginx - start_docker_services - create_deployment_config - - # 验证部署 - health_check - show_deployment_result -} - -# 处理命令行参数 -case "${1:-}" in - "build") - log_info "仅构建应用..." - build_backend_services - build_frontend - ;; - "deploy-only") - log_info "仅部署到服务器(跳过构建)..." - check_server_connection - upload_build_artifacts - start_docker_services - health_check - ;; - "health") - log_info "执行健康检查..." - check_server_connection - health_check - ;; - *) - main - ;; -esac \ No newline at end of file diff --git a/deploy-custom.sh b/deploy-custom.sh deleted file mode 100755 index b6f2cad..0000000 --- a/deploy-custom.sh +++ /dev/null @@ -1,354 +0,0 @@ -#!/bin/bash - -# 情绪博物馆自定义部署脚本 -# 适用于指定目录结构的部署方案 -# 前端: /data/www/emotion-museum -# 后端: /data/builds -# 日志: /data/logs/emotion-museum - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 配置变量 -FRONTEND_DIR="/data/www/emotion-museum" -BACKEND_DIR="/data/builds" -LOG_DIR="/data/logs/emotion-museum" -PROJECT_DIR=$(pwd) - -# 检查目录结构 -check_directories() { - log_step "检查目录结构..." - - # 创建必要的目录 - sudo mkdir -p "$FRONTEND_DIR" - sudo mkdir -p "$BACKEND_DIR" - sudo mkdir -p "$LOG_DIR"/{nginx,gateway,ai,user,mysql,redis,nacos} - - # 设置权限 - sudo chown -R $USER:$USER "$FRONTEND_DIR" - sudo chown -R $USER:$USER "$BACKEND_DIR" - sudo chown -R $USER:$USER "$LOG_DIR" - - log_info "目录结构检查完成" -} - -# 检查前端构建产物 -check_frontend() { - log_step "检查前端构建产物..." - - if [ ! -d "web/dist" ]; then - log_warn "前端未构建,开始构建..." - cd web - npm ci - npm run build - cd .. - fi - - if [ ! -d "web/dist" ]; then - log_error "前端构建失败" - exit 1 - fi - - log_info "前端构建产物检查完成" -} - -# 检查后端JAR文件 -check_backend() { - log_step "检查后端JAR文件..." - - local services=("emotion-gateway" "emotion-ai" "emotion-user") - local missing_jars=() - - for service in "${services[@]}"; do - local jar_file="backend/${service}/target/${service}-1.0.0.jar" - if [ ! -f "$jar_file" ]; then - missing_jars+=("$service") - fi - done - - if [ ${#missing_jars[@]} -gt 0 ]; then - log_warn "以下服务的JAR文件不存在,开始构建: ${missing_jars[*]}" - cd backend - mvn clean package -DskipTests - cd .. - fi - - # 再次检查 - for service in "${services[@]}"; do - local jar_file="backend/${service}/target/${service}-1.0.0.jar" - if [ ! -f "$jar_file" ]; then - log_error "后端服务 $service 构建失败" - exit 1 - fi - done - - log_info "后端JAR文件检查完成" -} - -# 部署前端文件 -deploy_frontend() { - log_step "部署前端文件..." - - # 清空目标目录 - sudo rm -rf "$FRONTEND_DIR"/* - - # 复制前端构建产物 - sudo cp -r web/dist/* "$FRONTEND_DIR/" - - # 设置权限 - sudo chown -R www-data:www-data "$FRONTEND_DIR" - sudo chmod -R 755 "$FRONTEND_DIR" - - log_info "前端文件部署完成: $FRONTEND_DIR" -} - -# 部署后端JAR文件 -deploy_backend() { - log_step "部署后端JAR文件..." - - local services=("emotion-gateway" "emotion-ai" "emotion-user") - - for service in "${services[@]}"; do - local source_jar="backend/${service}/target/${service}-1.0.0.jar" - local target_jar="$BACKEND_DIR/${service}.jar" - - # 复制JAR文件 - sudo cp "$source_jar" "$target_jar" - - # 设置权限 - sudo chown $USER:$USER "$target_jar" - sudo chmod 644 "$target_jar" - - log_info "部署 $service: $target_jar" - done - - log_info "后端JAR文件部署完成: $BACKEND_DIR" -} - -# 配置环境变量 -setup_environment() { - log_step "配置环境变量..." - - if [ ! -f ".env" ]; then - cat > .env << 'EOF' -# 数据库配置 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_DATABASE=emotion_museum -MYSQL_USER=emotion -MYSQL_PASSWORD=emotion123 - -# Redis配置 -REDIS_PASSWORD= - -# Nacos配置 -NACOS_AUTH_ENABLE=false - -# 应用配置 -SPRING_PROFILES_ACTIVE=docker -TZ=Asia/Shanghai - -# Coze API配置 (与开发环境一致) -COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO -EOF - fi - - log_info "环境变量配置完成" - log_info "COZE_API_TOKEN 已配置为与开发环境一致的值" -} - -# 启动Docker服务 -start_docker_services() { - log_step "启动Docker服务..." - - # 停止现有服务 - docker-compose -f docker-compose.custom.yml down 2>/dev/null || true - - # 启动基础服务 - log_info "启动基础服务 (MySQL, Redis, Nacos)..." - docker-compose -f docker-compose.custom.yml up -d mysql redis nacos - - # 等待基础服务启动 - log_info "等待基础服务启动..." - sleep 30 - - # 启动应用服务 - log_info "启动应用服务..." - docker-compose -f docker-compose.custom.yml up -d emotion-gateway emotion-ai emotion-user - - # 等待应用服务启动 - log_info "等待应用服务启动..." - sleep 20 - - # 启动Nginx - log_info "启动Nginx..." - docker-compose -f docker-compose.custom.yml up -d nginx - - log_info "Docker服务启动完成" -} - -# 验证部署 -verify_deployment() { - log_step "验证部署..." - - sleep 10 - - # 检查容器状态 - log_info "检查容器状态..." - docker-compose -f docker-compose.custom.yml ps - - # 检查服务健康状态 - local services=( - "http://localhost:9000/actuator/health:网关服务" - "http://localhost:9001/actuator/health:用户服务" - "http://localhost:9002/actuator/health:AI服务" - "http://localhost/nginx-health:Nginx服务" - ) - - for service_info in "${services[@]}"; do - IFS=':' read -r url name <<< "$service_info" - if curl -s "$url" > /dev/null; then - log_info "✅ $name 正常" - else - log_warn "❌ $name 异常" - fi - done - - # 检查前端文件 - if [ -f "$FRONTEND_DIR/index.html" ]; then - log_info "✅ 前端文件部署正常" - else - log_warn "❌ 前端文件部署异常" - fi - - # 检查后端JAR文件 - local jar_files=("emotion-gateway.jar" "emotion-ai.jar" "emotion-user.jar") - for jar in "${jar_files[@]}"; do - if [ -f "$BACKEND_DIR/$jar" ]; then - log_info "✅ $jar 部署正常" - else - log_warn "❌ $jar 部署异常" - fi - done - - log_info "部署验证完成" -} - -# 显示部署信息 -show_deployment_info() { - local server_ip=$(hostname -I | awk '{print $1}' 2>/dev/null || echo "localhost") - - echo "" - log_info "🎉 情绪博物馆部署完成!" - echo "" - echo "📁 部署目录:" - echo " 前端文件: $FRONTEND_DIR" - echo " 后端JAR: $BACKEND_DIR" - echo " 日志目录: $LOG_DIR" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://$server_ip" - echo " API网关: http://$server_ip:9000" - echo " Nacos: http://$server_ip:8848/nacos (nacos/nacos)" - echo "" - echo "🔧 管理命令:" - echo " 查看状态: docker-compose -f docker-compose.custom.yml ps" - echo " 查看日志: docker-compose -f docker-compose.custom.yml logs -f [服务名]" - echo " 重启服务: docker-compose -f docker-compose.custom.yml restart [服务名]" - echo " 停止服务: docker-compose -f docker-compose.custom.yml down" - echo "" - echo "📊 日志位置:" - echo " Nginx: $LOG_DIR/nginx/" - echo " Gateway: $LOG_DIR/gateway/" - echo " AI: $LOG_DIR/ai/" - echo " User: $LOG_DIR/user/" - echo "" - echo "📋 部署信息:" - echo " 1. COZE_API_TOKEN 已配置为与开发环境一致" - echo " 2. 前端文件位于: $FRONTEND_DIR" - echo " 3. 后端JAR位于: $BACKEND_DIR" - echo " 4. 所有日志保存在: $LOG_DIR" - echo "" -} - -# 清理函数 -cleanup() { - log_info "清理临时文件..." -} - -# 设置清理陷阱 -trap cleanup EXIT - -# 主函数 -main() { - echo "🚀 开始自定义部署情绪博物馆..." - echo "" - echo "📁 部署配置:" - echo " 前端目录: $FRONTEND_DIR" - echo " 后端目录: $BACKEND_DIR" - echo " 日志目录: $LOG_DIR" - echo "" - - check_directories - check_frontend - check_backend - deploy_frontend - deploy_backend - setup_environment - start_docker_services - verify_deployment - show_deployment_info -} - -# 处理命令行参数 -case "${1:-}" in - "frontend") - check_directories - check_frontend - deploy_frontend - ;; - "backend") - check_directories - check_backend - deploy_backend - ;; - "docker") - setup_environment - start_docker_services - verify_deployment - ;; - "verify") - verify_deployment - ;; - "clean") - log_info "清理部署..." - docker-compose -f docker-compose.custom.yml down - sudo rm -rf "$FRONTEND_DIR"/* - sudo rm -f "$BACKEND_DIR"/*.jar - log_info "清理完成" - ;; - *) - main - ;; -esac diff --git a/deploy-existing-docker.sh b/deploy-existing-docker.sh deleted file mode 100755 index 5515d7a..0000000 --- a/deploy-existing-docker.sh +++ /dev/null @@ -1,659 +0,0 @@ -#!/bin/bash - -# 情绪博物馆阿里云服务器部署脚本 - 适配现有Docker环境 -# 服务器已有MySQL/Redis/Nacos容器运行 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 服务器配置 -SERVER_IP="47.111.10.27" -SERVER_USER="root" - -# 现有Docker容器配置 -MYSQL_ROOT_PASSWORD="123456" -MYSQL_CONTAINER="emotion-mysql-prod" -REDIS_CONTAINER="emotion-redis-prod" -NACOS_CONTAINER="emotion-nacos-prod" - -# 部署目录配置 -BUILDS_DIR="/data/builds" -WEB_DIR="/data/www/emotion-museum" -CONFIG_FILE="/data/deployment_config.md" - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 远程执行命令 -remote_exec() { - local command="$1" - ssh -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_IP}" "$command" -} - -# 复制文件到服务器 -remote_copy() { - local local_path="$1" - local remote_path="$2" - scp -o StrictHostKeyChecking=no -r "$local_path" "${SERVER_USER}@${SERVER_IP}:$remote_path" -} - -# 检查服务器连接 -check_server_connection() { - log_step "检查服务器连接..." - - if ! ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 "${SERVER_USER}@${SERVER_IP}" "echo 'Connected'" &>/dev/null; then - log_error "无法连接到服务器 ${SERVER_IP}" - exit 1 - fi - - log_info "服务器连接正常" -} - -# 检查现有Docker服务 -check_existing_services() { - log_step "检查现有Docker服务..." - - # 检查Docker容器状态 - if remote_exec "docker ps | grep -q ${MYSQL_CONTAINER}"; then - log_info "✅ MySQL容器运行正常" - else - log_error "❌ MySQL容器未运行" - exit 1 - fi - - if remote_exec "docker ps | grep -q ${REDIS_CONTAINER}"; then - log_info "✅ Redis容器运行正常" - else - log_error "❌ Redis容器未运行" - exit 1 - fi - - if remote_exec "docker ps | grep -q ${NACOS_CONTAINER}"; then - log_info "✅ Nacos容器运行正常" - else - log_error "❌ Nacos容器未运行" - exit 1 - fi - - # 测试MySQL连接 - if remote_exec "docker exec ${MYSQL_CONTAINER} mysql -u root -p'${MYSQL_ROOT_PASSWORD}' -e 'SELECT 1;' &>/dev/null"; then - log_info "✅ MySQL连接正常" - else - log_error "❌ MySQL连接失败" - exit 1 - fi - - log_info "现有服务检查完成" -} - -# 创建目录结构 -setup_directories() { - log_step "创建部署目录..." - - remote_exec "mkdir -p ${BUILDS_DIR}" - remote_exec "mkdir -p ${WEB_DIR}" - remote_exec "mkdir -p /data/logs/{app,nginx}" - - log_info "目录创建完成" -} - -# 上传构建产物 -upload_artifacts() { - log_step "上传构建产物..." - - # 检查构建产物 - if [ ! -d "build-output" ]; then - log_error "构建产物不存在,请先运行: ./deploy-aliyun.sh build" - exit 1 - fi - - # 上传JAR文件 - if [ -d "build-output/jars" ]; then - for jar in build-output/jars/*.jar; do - if [ -f "$jar" ]; then - remote_copy "$jar" "${BUILDS_DIR}/" - log_info "上传: $(basename $jar)" - fi - done - fi - - # 上传前端文件 - if [ -d "build-output/web" ]; then - remote_exec "rm -rf ${WEB_DIR}/*" - remote_copy "build-output/web/*" "${WEB_DIR}/" - log_info "前端文件上传完成" - fi - - # 上传数据库脚本 - if [ -f "backend/mysql_emotion_museum_final.sql" ]; then - remote_copy "backend/mysql_emotion_museum_final.sql" "/tmp/" - log_info "数据库脚本上传完成" - fi - - log_info "构建产物上传完成" -} - -# 导入数据库 -import_database() { - log_step "导入数据库..." - - remote_exec " - if [ -f /tmp/mysql_emotion_museum_final.sql ]; then - docker exec -i ${MYSQL_CONTAINER} mysql -u root -p'${MYSQL_ROOT_PASSWORD}' emotion_museum < /tmp/mysql_emotion_museum_final.sql - echo '数据库导入完成' - else - echo '数据库脚本不存在,跳过导入' - fi - " - - log_info "数据库处理完成" -} - -# 创建应用配置文件 -create_app_configs() { - log_step "创建应用配置..." - - # 创建应用properties文件 - cat > /tmp/application-prod.yml << 'EOF' -server: - port: 9000 - -spring: - application: - name: emotion-gateway - cloud: - nacos: - discovery: - server-addr: host.docker.internal:8848 - config: - server-addr: host.docker.internal:8848 - file-extension: yml - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://host.docker.internal:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true - username: emotion - password: emotion123 - redis: - host: host.docker.internal - port: 6379 - timeout: 2000 - jedis: - pool: - max-active: 8 - max-wait: -1 - max-idle: 8 - min-idle: 0 - -logging: - level: - com.emotionmuseum: DEBUG - file: - name: /app/logs/emotion-gateway.log -EOF - - # 上传配置文件 - remote_copy "/tmp/application-prod.yml" "${BUILDS_DIR}/" - rm /tmp/application-prod.yml - - log_info "应用配置创建完成" -} - -# 创建Docker Compose配置 -create_docker_compose() { - log_step "创建应用Docker Compose配置..." - - cat > /tmp/docker-compose.yml << 'EOF' -version: '3.8' - -services: - # 网关服务 - emotion-gateway: - image: openjdk:17-jre-slim - container_name: emotion-gateway - restart: always - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - JAVA_OPTS: '-Xmx512m -Xms256m' - volumes: - - /data/builds/emotion-gateway-1.0.0.jar:/app/app.jar:ro - - /data/builds/application-prod.yml:/app/application-prod.yml:ro - - /data/logs/app:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:172.17.0.1" - networks: - - emotion-network - - # AI服务 - emotion-ai: - image: openjdk:17-jre-slim - container_name: emotion-ai - restart: always - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - JAVA_OPTS: '-Xmx512m -Xms256m' - volumes: - - /data/builds/emotion-ai-1.0.0.jar:/app/app.jar:ro - - /data/logs/app:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:172.17.0.1" - networks: - - emotion-network - - # 用户服务 - emotion-user: - image: openjdk:17-jre-slim - container_name: emotion-user - restart: always - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: prod - TZ: Asia/Shanghai - JAVA_OPTS: '-Xmx512m -Xms256m' - volumes: - - /data/builds/emotion-user-1.0.0.jar:/app/app.jar:ro - - /data/logs/app:/app/logs - working_dir: /app - command: ["java", "-jar", "app.jar"] - extra_hosts: - - "host.docker.internal:172.17.0.1" - networks: - - emotion-network - -networks: - emotion-network: - driver: bridge -EOF - - # 上传Docker Compose文件 - remote_copy "/tmp/docker-compose.yml" "${BUILDS_DIR}/docker-compose.yml" - rm /tmp/docker-compose.yml - - log_info "Docker Compose配置创建完成" -} - -# 配置Nginx -setup_nginx() { - log_step "配置Nginx..." - - # 检查Nginx是否已安装 - if ! remote_exec "command -v nginx &> /dev/null"; then - remote_exec "yum install -y nginx" - fi - - # 创建Nginx配置 - cat > /tmp/nginx.conf << EOF -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" ' - '\$status \$body_bytes_sent "\$http_referer" ' - '"\$http_user_agent" "\$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 前端应用 - server { - listen 80; - server_name ${SERVER_IP} _; - root ${WEB_DIR}; - index index.html; - - # 前端路由 - location / { - try_files \$uri \$uri/ /index.html; - } - - # API代理到网关 - location /api/ { - proxy_pass http://127.0.0.1:9000/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - proxy_connect_timeout 60s; - proxy_read_timeout 60s; - proxy_send_timeout 60s; - } - - # 直接访问网关 - location /gateway/ { - proxy_pass http://127.0.0.1:9000/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - } - - # 静态资源缓存 - location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1y; - add_header Cache-Control "public, no-transform"; - } - - # 健康检查 - location /health { - access_log off; - return 200 "healthy\\n"; - add_header Content-Type text/plain; - } - } -} -EOF - - # 上传并应用Nginx配置 - remote_copy "/tmp/nginx.conf" "/etc/nginx/nginx.conf" - rm /tmp/nginx.conf - - # 启动Nginx - remote_exec " - nginx -t && systemctl start nginx && systemctl enable nginx - echo 'Nginx配置完成' - " - - log_info "Nginx配置完成" -} - -# 启动应用服务 -start_application_services() { - log_step "启动应用服务..." - - remote_exec " - cd ${BUILDS_DIR} - - # 停止可能存在的同名容器 - docker stop emotion-gateway emotion-ai emotion-user 2>/dev/null || true - docker rm emotion-gateway emotion-ai emotion-user 2>/dev/null || true - - # 启动应用服务 - docker-compose up -d - - echo '应用服务启动完成' - " - - log_info "应用服务启动完成" -} - -# 等待服务启动 -wait_for_services() { - log_step "等待服务启动..." - - sleep 20 - - # 检查服务状态 - log_info "检查应用容器状态..." - remote_exec "docker ps | grep -E 'emotion-(gateway|ai|user)'" - - log_info "等待服务完全启动..." - sleep 30 -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - log_info "检查基础服务..." - remote_exec "docker ps | grep -E '(mysql|redis|nacos)'" - - log_info "检查应用服务..." - remote_exec "docker ps | grep -E 'emotion-(gateway|ai|user)'" - - log_info "检查端口监听..." - remote_exec "netstat -tlnp | grep -E ':(80|3306|6379|8848|9000|9001|9002)'" - - # HTTP健康检查 - log_info "HTTP接口测试..." - - # 测试前端 - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost/ | grep -q 200"; then - log_info "✅ 前端应用正常" - else - log_warn "❌ 前端应用异常" - fi - - # 测试网关健康检查 - sleep 10 - if remote_exec "curl -s http://localhost:9000/actuator/health 2>/dev/null | grep -q UP"; then - log_info "✅ 网关服务正常" - else - log_warn "❌ 网关服务异常,检查日志:" - remote_exec "docker logs emotion-gateway | tail -20" - fi - - # 测试Nacos - if remote_exec "curl -s -o /dev/null -w '%{http_code}' http://localhost:8848/nacos | grep -q 200"; then - log_info "✅ Nacos控制台正常" - else - log_warn "❌ Nacos控制台异常" - fi - - log_info "健康检查完成" -} - -# 显示服务日志 -show_logs() { - log_step "显示服务日志..." - - log_info "网关服务日志:" - remote_exec "docker logs emotion-gateway | tail -10" - - log_info "AI服务日志:" - remote_exec "docker logs emotion-ai | tail -10" - - log_info "用户服务日志:" - remote_exec "docker logs emotion-user | tail -10" -} - -# 创建部署记录 -create_deployment_record() { - log_step "创建部署记录..." - - cat > /tmp/deployment_config.md << EOF -# 情绪博物馆部署配置记录 - -## 服务器信息 -- 服务器IP: ${SERVER_IP} -- 部署时间: $(date '+%Y-%m-%d %H:%M:%S') - -## Docker服务配置 -### 基础服务 (现有容器) -- MySQL: ${MYSQL_CONTAINER} (端口: 3306, 密码: ${MYSQL_ROOT_PASSWORD}) -- Redis: ${REDIS_CONTAINER} (端口: 6379) -- Nacos: ${NACOS_CONTAINER} (端口: 8848) - -### 应用服务 (新部署) -- 网关服务: emotion-gateway (端口: 9000) -- AI服务: emotion-ai (端口: 9002) -- 用户服务: emotion-user (端口: 9001) -- Nginx: 系统服务 (端口: 80) - -## 访问地址 -- 前端应用: http://${SERVER_IP}/ -- API网关: http://${SERVER_IP}:9000/ -- Nacos控制台: http://${SERVER_IP}:8848/nacos (nacos/nacos) - -## 目录结构 -- 应用JAR包: ${BUILDS_DIR}/*.jar -- 前端文件: ${WEB_DIR}/ -- Docker配置: ${BUILDS_DIR}/docker-compose.yml -- 应用日志: /data/logs/app/ -- Nginx日志: /var/log/nginx/ - -## 管理命令 -\`\`\`bash -# 查看所有容器状态 -docker ps - -# 查看应用日志 -docker logs -f emotion-gateway -docker logs -f emotion-ai -docker logs -f emotion-user - -# 重启应用服务 -cd ${BUILDS_DIR} -docker-compose restart - -# 更新应用 -docker-compose down -# 替换JAR文件 -docker-compose up -d - -# 重启Nginx -systemctl restart nginx - -# 重启基础服务 -docker restart ${MYSQL_CONTAINER} ${REDIS_CONTAINER} ${NACOS_CONTAINER} -\`\`\` - -## 故障排除 -\`\`\`bash -# 检查服务状态 -docker ps -systemctl status nginx - -# 检查端口占用 -netstat -tlnp | grep -E ':(80|3306|6379|8848|9000|9001|9002)' - -# 查看详细日志 -docker logs emotion-gateway -docker logs emotion-ai -docker logs emotion-user - -# 重新部署应用 -cd ${BUILDS_DIR} -docker-compose down -docker-compose up -d -\`\`\` -EOF - - # 上传部署记录 - remote_copy "/tmp/deployment_config.md" "${CONFIG_FILE}" - rm /tmp/deployment_config.md - - log_info "部署记录已保存到: ${CONFIG_FILE}" -} - -# 显示部署结果 -show_deployment_result() { - echo "" - echo "🎉 情绪博物馆部署完成!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://${SERVER_IP}/" - echo " API网关: http://${SERVER_IP}:9000/" - echo " Nacos: http://${SERVER_IP}:8848/nacos" - echo "" - echo "📁 重要文件:" - echo " 部署记录: ${CONFIG_FILE}" - echo " 应用目录: ${BUILDS_DIR}/" - echo " 前端目录: ${WEB_DIR}/" - echo "" - echo "🔧 管理命令:" - echo " ssh ${SERVER_USER}@${SERVER_IP}" - echo " docker ps" - echo " docker logs -f emotion-gateway" - echo "" - echo "⚠️ 注意事项:" - echo " 1. 基础服务(MySQL/Redis/Nacos)使用现有Docker容器" - echo " 2. 应用服务已部署为新的Docker容器" - echo " 3. 请检查防火墙设置,确保端口80可访问" - echo "" -} - -# 主部署流程 -main() { - echo "🚀 开始部署情绪博物馆应用服务..." - echo "🔍 检测到服务器已有MySQL/Redis/Nacos容器,将使用现有基础设施" - echo "" - - check_server_connection - check_existing_services - setup_directories - upload_artifacts - import_database - create_app_configs - create_docker_compose - setup_nginx - start_application_services - wait_for_services - health_check - show_logs - create_deployment_record - show_deployment_result -} - -# 命令行参数处理 -case "${1:-}" in - "check") - check_server_connection - check_existing_services - ;; - "deploy-app") - log_info "仅部署应用服务..." - check_server_connection - check_existing_services - upload_artifacts - create_app_configs - create_docker_compose - start_application_services - wait_for_services - health_check - ;; - "health") - check_server_connection - health_check - ;; - "logs") - check_server_connection - show_logs - ;; - *) - main - ;; -esac \ No newline at end of file diff --git a/deploy-final.sh b/deploy-final.sh deleted file mode 100755 index 58b39ec..0000000 --- a/deploy-final.sh +++ /dev/null @@ -1,1201 +0,0 @@ -#!/bin/bash - -# =================================================================== -# 情绪博物馆项目 - 最终版本一键部署脚本 -# 支持完整部署、增量更新、服务管理等功能 -# 作者: Emotion Museum Team -# 版本: 1.0.0 -# 日期: 2025-07-13 -# =================================================================== - -set -e # 遇到错误立即退出 - -# =================================================================== -# 全局配置 -# =================================================================== - -# 服务器配置 -readonly SERVER_HOST="47.111.10.27" -readonly SERVER_USER="root" -readonly SERVER_IP="47.111.10.27" - -# 目录配置 -readonly REMOTE_BASE_DIR="/data" -readonly REMOTE_BUILDS_DIR="${REMOTE_BASE_DIR}/builds" -readonly REMOTE_WEB_DIR="${REMOTE_BASE_DIR}/www/emotion-museum/web" -readonly REMOTE_LOGS_DIR="${REMOTE_BASE_DIR}/logs/emotion-museum" -readonly REMOTE_PROGRAMS_DIR="${REMOTE_BASE_DIR}/programs" - -# 数据库配置 -readonly MYSQL_HOST="localhost" -readonly MYSQL_PORT="3306" -readonly MYSQL_DATABASE="emotion_museum" -readonly MYSQL_USERNAME="emotion" -readonly MYSQL_PASSWORD="EmotionDB2024!" -readonly MYSQL_ROOT_PASSWORD="123456" - -# 服务配置 -readonly NACOS_SERVER_ADDR="localhost:8848" -readonly REDIS_HOST="localhost" -readonly REDIS_PORT="6379" -readonly COZE_API_TOKEN="pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO" - -# 应用配置 -readonly APP_VERSION="1.0.0" -readonly SPRING_PROFILES_ACTIVE="prod" - -# 颜色定义 -readonly RED='\033[0;31m' -readonly GREEN='\033[0;32m' -readonly YELLOW='\033[1;33m' -readonly BLUE='\033[0;34m' -readonly PURPLE='\033[0;35m' -readonly CYAN='\033[0;36m' -readonly WHITE='\033[1;37m' -readonly NC='\033[0m' # No Color - -# =================================================================== -# 工具函数 -# =================================================================== - -# 日志函数 -log_info() { - echo -e "${BLUE}[INFO]${NC} $1" -} - -log_success() { - echo -e "${GREEN}[SUCCESS]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${PURPLE}[STEP]${NC} $1" -} - -# 进度显示 -show_progress() { - local current=$1 - local total=$2 - local desc=$3 - local percent=$((current * 100 / total)) - local bar_length=50 - local filled_length=$((percent * bar_length / 100)) - - printf "\r${CYAN}[%3d%%]${NC} [" "$percent" - printf "%*s" "$filled_length" | tr ' ' '=' - printf "%*s" $((bar_length - filled_length)) | tr ' ' '-' - printf "] %s" "$desc" - - if [ "$current" -eq "$total" ]; then - echo "" - fi -} - -# 检查命令是否存在 -check_command() { - if ! command -v "$1" &> /dev/null; then - log_error "命令 '$1' 未找到,请先安装" - exit 1 - fi -} - -# 远程执行命令 -remote_exec() { - ssh -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_HOST}" "$1" -} - -# 检查服务器连接 -check_server_connection() { - log_step "检查服务器连接..." - if ! ssh -o ConnectTimeout=10 -o StrictHostKeyChecking=no "${SERVER_USER}@${SERVER_HOST}" "echo 'Connection OK'" &>/dev/null; then - log_error "无法连接到服务器 ${SERVER_HOST}" - log_info "请检查:" - log_info "1. 服务器IP地址是否正确" - log_info "2. SSH密钥是否配置正确" - log_info "3. 网络连接是否正常" - exit 1 - fi - - log_success "服务器连接正常" - - # 显示服务器信息 - log_info "服务器信息:" - remote_exec " - echo ' 内核版本:' \$(uname -r) - echo ' 当前用户:' \$(whoami) - echo ' 当前时间:' \$(date) - " -} - -# 检查本地环境 -check_local_environment() { - log_step "检查本地环境..." - - # 检查必要的命令 - check_command "ssh" - check_command "scp" - check_command "java" - check_command "mvn" - check_command "npm" - - # 检查Java版本 - local java_version=$(java -version 2>&1 | head -n 1 | cut -d'"' -f2 | cut -d'.' -f1) - if [ "$java_version" -lt 17 ]; then - log_error "需要Java 17或更高版本,当前版本: $java_version" - exit 1 - fi - - log_success "本地环境检查通过" -} - -# =================================================================== -# 构建函数 -# =================================================================== - -# 构建后端服务 -build_backend() { - log_step "构建后端服务..." - - if [ ! -f "backend/pom.xml" ]; then - log_error "未找到backend/pom.xml文件,请在项目根目录执行" - exit 1 - fi - - # 进入backend目录 - cd backend - - # 清理并构建 - log_info "执行Maven构建..." - mvn clean package -DskipTests -Pprod - - # 返回项目根目录 - cd .. - - # 检查构建结果 - local services=("emotion-gateway" "emotion-ai" "emotion-user") - for service in "${services[@]}"; do - local jar_file="backend/${service}/target/${service}-${APP_VERSION}.jar" - if [ ! -f "$jar_file" ]; then - log_error "构建失败: $jar_file 不存在" - exit 1 - fi - log_success "✅ ${service} 构建成功" - done - - log_success "后端服务构建完成" -} - -# 构建前端应用 -build_frontend() { - log_step "构建前端应用..." - - cd web - - # 安装依赖 - if [ ! -d "node_modules" ]; then - log_info "安装前端依赖..." - npm install - fi - - # 构建生产版本 - log_info "构建生产版本..." - npm run build - - # 检查构建结果 - if [ ! -d "dist" ]; then - log_error "前端构建失败: dist目录不存在" - exit 1 - fi - - cd .. - log_success "前端应用构建完成" -} - -# =================================================================== -# 服务器环境配置 -# =================================================================== - -# 创建目录结构 -setup_directories() { - log_step "创建目录结构..." - - remote_exec " - # 创建主要目录 - mkdir -p ${REMOTE_BASE_DIR}/{builds,www/emotion-museum,logs/emotion-museum,programs} - mkdir -p ${REMOTE_LOGS_DIR}/{gateway,ai,user,nacos} - - # 设置权限 - chmod -R 755 ${REMOTE_BASE_DIR} - - echo '目录结构创建完成' - " - - log_success "目录结构创建完成" -} - -# 安装基础软件包 -install_basic_packages() { - log_step "安装基础软件包..." - - remote_exec " - # 更新系统 - yum update -y - - # 安装基础工具 - yum install -y wget curl vim git unzip lsof net-tools - - # 安装开发工具 - yum groupinstall -y 'Development Tools' - - echo '基础软件包安装完成' - " - - log_success "基础软件包安装完成" -} - -# 安装Docker -install_docker() { - log_step "安装Docker..." - - remote_exec " - # 检查Docker是否已安装 - if command -v docker &> /dev/null; then - echo 'Docker已安装,跳过安装步骤' - exit 0 - fi - - # 安装Docker - yum install -y yum-utils - yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo - yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin - - # 启动Docker服务 - systemctl start docker - systemctl enable docker - - # 验证安装 - docker --version - - echo 'Docker安装完成' - " - - log_success "Docker安装完成" -} - -# 安装Java 17 -install_java() { - log_step "安装Java 17..." - - remote_exec " - # 检查Java是否已安装 - if java -version 2>&1 | grep -q '17\\.'; then - echo 'Java 17已安装,跳过安装步骤' - exit 0 - fi - - # 安装OpenJDK 17 - yum install -y java-17-openjdk java-17-openjdk-devel - - # 设置JAVA_HOME - echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk' >> /etc/profile - echo 'export PATH=\$JAVA_HOME/bin:\$PATH' >> /etc/profile - source /etc/profile - - # 验证安装 - java -version - - echo 'Java 17安装完成' - " - - log_success "Java 17安装完成" -} - -# 安装Maven -install_maven() { - log_step "安装Maven..." - - remote_exec " - # 检查Maven是否已安装 - if command -v mvn &> /dev/null; then - echo 'Maven已安装,跳过安装步骤' - exit 0 - fi - - # 下载并安装Maven - cd /opt - wget https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz - tar -xzf apache-maven-3.9.4-bin.tar.gz - ln -sf apache-maven-3.9.4 maven - - # 设置环境变量 - echo 'export MAVEN_HOME=/opt/maven' >> /etc/profile - echo 'export PATH=\$MAVEN_HOME/bin:\$PATH' >> /etc/profile - source /etc/profile - - # 验证安装 - /opt/maven/bin/mvn -version - - echo 'Maven安装完成' - " - - log_success "Maven安装完成" -} - -# 安装Node.js -install_nodejs() { - log_step "安装Node.js..." - - remote_exec " - # 检查Node.js是否已安装 - if command -v node &> /dev/null; then - echo 'Node.js已安装,跳过安装步骤' - exit 0 - fi - - # 安装Node.js 18 - curl -fsSL https://rpm.nodesource.com/setup_18.x | bash - - yum install -y nodejs - - # 验证安装 - node --version - npm --version - - echo 'Node.js安装完成' - " - - log_success "Node.js安装完成" -} - -# =================================================================== -# 数据库和中间件配置 -# =================================================================== - -# 配置MySQL -setup_mysql() { - log_step "配置MySQL..." - - remote_exec " - # 检查MySQL容器是否已存在 - if docker ps -a | grep -q emotion-mysql-prod; then - echo 'MySQL容器已存在,跳过创建步骤' - # 确保容器运行 - docker start emotion-mysql-prod || true - exit 0 - fi - - # 创建MySQL容器 - docker run -d \\ - --name emotion-mysql-prod \\ - --restart=always \\ - -p 3306:3306 \\ - -e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} \\ - -e MYSQL_DATABASE=${MYSQL_DATABASE} \\ - -e MYSQL_USER=${MYSQL_USERNAME} \\ - -e MYSQL_PASSWORD=${MYSQL_PASSWORD} \\ - -v mysql_data:/var/lib/mysql \\ - mysql:8.0 - - # 等待MySQL启动 - echo '等待MySQL启动...' - sleep 30 - - # 验证连接 - docker exec emotion-mysql-prod mysql -u${MYSQL_USERNAME} -p${MYSQL_PASSWORD} -e 'SELECT 1;' - - echo 'MySQL配置完成' - " - - log_success "MySQL配置完成" -} - -# 配置Redis -setup_redis() { - log_step "配置Redis..." - - remote_exec " - # 检查Redis容器是否已存在 - if docker ps -a | grep -q emotion-redis-prod; then - echo 'Redis容器已存在,跳过创建步骤' - # 确保容器运行 - docker start emotion-redis-prod || true - exit 0 - fi - - # 创建Redis容器 - docker run -d \\ - --name emotion-redis-prod \\ - --restart=always \\ - -p 6379:6379 \\ - redis:7-alpine - - # 验证连接 - sleep 5 - docker exec emotion-redis-prod redis-cli ping - - echo 'Redis配置完成' - " - - log_success "Redis配置完成" -} - -# 配置Nacos -setup_nacos() { - log_step "配置Nacos..." - - remote_exec " - # 停止并删除旧的Nacos容器 - docker stop emotion-nacos 2>/dev/null || true - docker rm emotion-nacos 2>/dev/null || true - - # 创建新的Nacos容器 - docker run -d \\ - --name emotion-nacos \\ - --restart=always \\ - -p 8848:8848 \\ - -p 9848:9848 \\ - -p 9849:9849 \\ - -e MODE=standalone \\ - -e PREFER_HOST_MODE=hostname \\ - -e NACOS_AUTH_ENABLE=false \\ - nacos/nacos-server:v2.2.0 - - # 等待Nacos启动 - echo '等待Nacos启动...' - sleep 30 - - # 验证Nacos状态 - curl -s http://localhost:8848/nacos/ | head -5 - - echo 'Nacos配置完成' - " - - log_success "Nacos配置完成" -} - -# =================================================================== -# 应用部署 -# =================================================================== - -# 上传构建产物 -upload_artifacts() { - log_step "上传构建产物..." - - # 上传后端JAR文件 - log_info "上传后端JAR文件..." - local services=("emotion-gateway" "emotion-ai" "emotion-user") - for service in "${services[@]}"; do - local jar_file="backend/${service}/target/${service}-${APP_VERSION}.jar" - if [ -f "$jar_file" ]; then - scp "$jar_file" "${SERVER_USER}@${SERVER_HOST}:${REMOTE_BUILDS_DIR}/" - log_success "✅ ${service} JAR文件上传完成" - else - log_error "JAR文件不存在: $jar_file" - exit 1 - fi - done - - # 上传前端文件 - log_info "上传前端文件..." - if [ -d "web/dist" ]; then - # 创建远程目录 - remote_exec "mkdir -p ${REMOTE_WEB_DIR}" - - # 上传前端文件 - scp -r web/dist/* "${SERVER_USER}@${SERVER_HOST}:${REMOTE_WEB_DIR}/" - log_success "✅ 前端文件上传完成" - else - log_error "前端构建目录不存在: web/dist" - exit 1 - fi - - # 上传数据库脚本 - log_info "上传数据库脚本..." - if [ -f "backend/mysql_emotion_museum_final.sql" ]; then - scp "backend/mysql_emotion_museum_final.sql" "${SERVER_USER}@${SERVER_HOST}:${REMOTE_BUILDS_DIR}/emotion_museum.sql" - log_success "✅ 数据库脚本上传完成" - fi - - log_success "构建产物上传完成" -} - -# 导入数据库 -import_database() { - log_step "导入数据库..." - - remote_exec " - # 检查数据库脚本是否存在 - if [ ! -f '${REMOTE_BUILDS_DIR}/emotion_museum.sql' ]; then - echo '数据库脚本不存在,跳过导入' - exit 0 - fi - - # 等待MySQL完全启动 - echo '等待MySQL服务启动...' - sleep 10 - - # 导入数据库 - echo '导入数据库结构和数据...' - docker exec -i emotion-mysql-prod mysql -u${MYSQL_USERNAME} -p${MYSQL_PASSWORD} ${MYSQL_DATABASE} < ${REMOTE_BUILDS_DIR}/emotion_museum.sql - - echo '数据库导入完成' - " - - log_success "数据库导入完成" -} - -# 创建应用启动脚本 -create_app_scripts() { - log_step "创建应用启动脚本..." - - # 创建启动脚本 - cat > /tmp/start-services.sh << 'EOF' -#!/bin/bash - -# 设置环境变量 -export SPRING_PROFILES_ACTIVE=prod -export NACOS_SERVER_ADDR=localhost:8848 -export MYSQL_HOST=localhost -export MYSQL_PORT=3306 -export MYSQL_DATABASE=emotion_museum -export MYSQL_USERNAME=emotion -export MYSQL_PASSWORD=EmotionDB2024! -export REDIS_HOST=localhost -export REDIS_PORT=6379 -export COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO -export TZ=Asia/Shanghai - -# 停止可能运行的服务 -pkill -f emotion-gateway || true -pkill -f emotion-ai || true -pkill -f emotion-user || true - -sleep 5 - -# 启动网关服务 -echo "启动网关服务..." -nohup java -jar /data/builds/emotion-gateway-1.0.0.jar \ - --server.port=9000 \ - --spring.profiles.active=prod \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - > /data/logs/emotion-museum/gateway/app.log 2>&1 & - -sleep 10 - -# 启动AI服务 -echo "启动AI服务..." -nohup java -jar /data/builds/emotion-ai-1.0.0.jar \ - --server.port=9002 \ - --spring.profiles.active=prod \ - --spring.main.allow-bean-definition-overriding=true \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai \ - --spring.datasource.username=${MYSQL_USERNAME} \ - --spring.datasource.password=${MYSQL_PASSWORD} \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - --coze.api.token=${COZE_API_TOKEN} \ - > /data/logs/emotion-museum/ai/app.log 2>&1 & - -sleep 10 - -# 启动用户服务 -echo "启动用户服务..." -nohup java -jar /data/builds/emotion-user-1.0.0.jar \ - --server.port=9001 \ - --spring.profiles.active=prod \ - --spring.main.allow-bean-definition-overriding=true \ - --spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR} \ - --spring.cloud.nacos.discovery.enabled=true \ - --spring.cloud.nacos.discovery.namespace=public \ - --spring.cloud.nacos.discovery.group=DEFAULT_GROUP \ - --spring.datasource.url=jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai \ - --spring.datasource.username=${MYSQL_USERNAME} \ - --spring.datasource.password=${MYSQL_PASSWORD} \ - --spring.redis.host=${REDIS_HOST} \ - --spring.redis.port=${REDIS_PORT} \ - > /data/logs/emotion-museum/user/app.log 2>&1 & - -sleep 10 - -echo "所有服务启动完成" -echo "查看服务状态: ps aux | grep emotion" -echo "查看日志: tail -f /data/logs/emotion-museum/*/app.log" -EOF - - # 创建停止脚本 - cat > /tmp/stop-services.sh << 'EOF' -#!/bin/bash - -echo "停止所有情绪博物馆服务..." - -# 停止Java服务 -pkill -f emotion-gateway -pkill -f emotion-ai -pkill -f emotion-user - -echo "服务停止完成" -EOF - - # 上传脚本到服务器 - scp /tmp/start-services.sh "${SERVER_USER}@${SERVER_HOST}:${REMOTE_BUILDS_DIR}/" - scp /tmp/stop-services.sh "${SERVER_USER}@${SERVER_HOST}:${REMOTE_BUILDS_DIR}/" - - # 设置执行权限 - remote_exec " - chmod +x ${REMOTE_BUILDS_DIR}/start-services.sh - chmod +x ${REMOTE_BUILDS_DIR}/stop-services.sh - " - - # 清理临时文件 - rm /tmp/start-services.sh /tmp/stop-services.sh - - log_success "应用启动脚本创建完成" -} - -# 启动应用服务 -start_app_services() { - log_step "启动应用服务..." - - # 使用脚本启动服务 - remote_exec " - cd ${REMOTE_BUILDS_DIR} - - # 执行启动脚本 - bash start-services.sh - - echo '应用服务启动完成' - " - - # 等待服务启动 - log_info "等待服务启动..." - sleep 30 - - log_success "应用服务启动完成" -} - -# 配置Nginx -setup_nginx() { - log_step "配置Nginx..." - - remote_exec " - # 安装Nginx - if ! command -v nginx &> /dev/null; then - yum install -y nginx - fi - - # 备份原配置 - cp /etc/nginx/nginx.conf /etc/nginx/nginx.conf.backup 2>/dev/null || true - - # 创建新的Nginx配置 - cat > /etc/nginx/nginx.conf << 'NGINX_EOF' -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log; -pid /run/nginx.pid; - -events { - worker_connections 1024; -} - -http { - log_format main '\$remote_addr - \$remote_user [\$time_local] \"\$request\" ' - '\$status \$body_bytes_sent \"\$http_referer\" ' - '\"\$http_user_agent\" \"\$http_x_forwarded_for\"'; - - access_log /var/log/nginx/access.log main; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - include /etc/nginx/conf.d/*.conf; - - # 前端应用 - server { - listen 80; - server_name _; - - # 情绪博物馆前端应用 - location /emotion-museum { - alias ${REMOTE_WEB_DIR}; - index index.html; - try_files \$uri \$uri/ /emotion-museum/index.html; - } - - # 根路径重定向到情绪博物馆 - location = / { - return 301 /emotion-museum/; - } - - # API代理到网关 - location /api/ { - proxy_pass http://127.0.0.1:9000/api/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - } - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control \"public, no-transform\"; - } - - # 健康检查 - location /health { - access_log off; - return 200 'healthy'; - add_header Content-Type text/plain; - } - } -} -NGINX_EOF - - # 测试配置 - nginx -t - - # 启动Nginx - systemctl start nginx - systemctl enable nginx - - echo 'Nginx配置完成' - " - - log_success "Nginx配置完成" -} - -# =================================================================== -# 健康检查和管理 -# =================================================================== - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - log_info "检查基础服务状态..." - remote_exec " - echo '=== 系统服务状态 ===' - systemctl is-active mysqld 2>/dev/null || echo 'MySQL服务未安装' - echo '✅ MySQL: 运行中' - systemctl is-active redis 2>/dev/null || echo 'Redis服务未安装' - echo '❌ Redis: 异常' - systemctl is-active nginx - echo '✅ Nginx: 运行中' - echo '✅ Nacos: 运行中' - - echo - echo '=== Docker服务状态 ===' - docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' - - echo - echo '=== 端口监听状态 ===' - netstat -tlnp | grep -E ':(3306|6379|80|8848|9000|9001|9002)' | awk '{print \$1, \$4}' - " - - log_info "HTTP接口测试..." - remote_exec " - # 测试前端访问 - if curl -s http://localhost/emotion-museum/ | head -5 | grep -q 'DOCTYPE'; then - echo '[SUCCESS] ✅ 前端应用访问正常' - else - echo '[ERROR] ❌ 前端应用访问异常' - fi - - # 测试Nacos控制台 - if curl -s http://localhost:8848/nacos/ | head -5 | grep -q 'DOCTYPE'; then - echo '[SUCCESS] ✅ Nacos控制台访问正常' - else - echo '[WARN] ❌ Nacos控制台访问异常' - fi - - # 测试API网关 - if curl -s http://localhost:9000/actuator/health | grep -q 'UP'; then - echo '[SUCCESS] ✅ API网关访问正常' - else - echo '[ERROR] ❌ API网关访问异常' - fi - " - - log_success "健康检查完成" -} - -# 显示部署结果 -show_deployment_result() { - echo - echo -e "${GREEN}🎉 情绪博物馆部署完成!${NC}" - echo - echo -e "${CYAN}📱 访问地址:${NC}" - echo -e " 前端应用: ${WHITE}http://${SERVER_IP}/emotion-museum/${NC}" - echo -e " API网关: ${WHITE}http://${SERVER_IP}:9000${NC}" - echo -e " Nacos: ${WHITE}http://${SERVER_IP}:8848/nacos${NC}" - echo - echo -e "${CYAN}📁 重要文件:${NC}" - echo -e " 密码记录: ${WHITE}/data/deployment_passwords.md${NC}" - echo -e " 应用目录: ${WHITE}${REMOTE_BUILDS_DIR}${NC}" - echo -e " 前端目录: ${WHITE}${REMOTE_WEB_DIR}${NC}" - echo -e " 日志目录: ${WHITE}${REMOTE_LOGS_DIR}${NC}" - echo - echo -e "${CYAN}🔧 管理命令:${NC}" - echo -e " ssh ${SERVER_USER}@${SERVER_HOST}" - echo -e " docker ps" - echo -e " systemctl status nginx" - echo - echo -e "${YELLOW}⚠️ 重要提醒:${NC}" - echo -e " 1. 密码信息已保存到服务器 /data/deployment_passwords.md 文件中" - echo -e " 2. 请及时修改默认密码" - echo -e " 3. 建议配置防火墙规则" - echo -e " 4. 定期备份数据库" - echo -} - -# 创建密码记录文件 -create_password_record() { - log_step "创建密码记录文件..." - - remote_exec " - cat > /data/deployment_passwords.md << 'EOF' -# 情绪博物馆部署密码记录 - -## 数据库密码 -- MySQL Root密码: ${MYSQL_ROOT_PASSWORD} -- 应用数据库: ${MYSQL_DATABASE} -- 应用数据库用户: ${MYSQL_USERNAME} -- 应用数据库密码: ${MYSQL_PASSWORD} - -## 服务配置 -- Nacos地址: ${NACOS_SERVER_ADDR} -- Redis地址: ${REDIS_HOST}:${REDIS_PORT} -- Coze API Token: ${COZE_API_TOKEN} - -## 访问地址 -- 前端应用: http://${SERVER_IP}/emotion-museum/ -- API网关: http://${SERVER_IP}:9000 -- Nacos控制台: http://${SERVER_IP}:8848/nacos - -## 部署信息 -- 部署时间: \$(date) -- 应用版本: ${APP_VERSION} -- 部署用户: \$(whoami) - -## 重要提醒 -1. 请及时修改默认密码 -2. 定期备份数据库 -3. 监控服务运行状态 -4. 配置防火墙规则 -EOF - - chmod 600 /data/deployment_passwords.md - echo '密码记录文件创建完成: /data/deployment_passwords.md' - " - - log_success "密码记录文件创建完成" -} - -# =================================================================== -# 服务管理功能 -# =================================================================== - -# 停止服务 -stop_services() { - log_step "停止应用服务..." - - remote_exec " - cd ${REMOTE_BUILDS_DIR} - if [ -f stop-services.sh ]; then - bash stop-services.sh - else - pkill -f emotion-gateway || true - pkill -f emotion-ai || true - pkill -f emotion-user || true - fi - " - - log_success "应用服务已停止" -} - -# 重启服务 -restart_services() { - log_step "重启应用服务..." - - stop_services - sleep 5 - start_app_services - - log_success "应用服务重启完成" -} - -# 查看服务状态 -show_status() { - log_step "查看服务状态..." - - remote_exec " - echo '=== Java进程状态 ===' - ps aux | grep emotion | grep -v grep || echo '没有运行的emotion服务' - - echo - echo '=== Docker容器状态 ===' - docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' - - echo - echo '=== 端口监听状态 ===' - netstat -tlnp | grep -E ':(3306|6379|80|8848|9000|9001|9002)' - - echo - echo '=== 最近日志 ===' - echo '--- 网关服务 ---' - tail -5 ${REMOTE_LOGS_DIR}/gateway/app.log 2>/dev/null || echo '日志文件不存在' - echo '--- AI服务 ---' - tail -5 ${REMOTE_LOGS_DIR}/ai/app.log 2>/dev/null || echo '日志文件不存在' - echo '--- 用户服务 ---' - tail -5 ${REMOTE_LOGS_DIR}/user/app.log 2>/dev/null || echo '日志文件不存在' - " -} - -# 查看日志 -show_logs() { - local service=$1 - - if [ -z "$service" ]; then - log_info "可用的服务: gateway, ai, user" - log_info "使用方法: $0 logs " - return 1 - fi - - log_step "查看${service}服务日志..." - - remote_exec " - if [ -f '${REMOTE_LOGS_DIR}/${service}/app.log' ]; then - tail -f ${REMOTE_LOGS_DIR}/${service}/app.log - else - echo '日志文件不存在: ${REMOTE_LOGS_DIR}/${service}/app.log' - fi - " -} - -# =================================================================== -# 帮助信息 -# =================================================================== - -show_help() { - echo -e "${CYAN}情绪博物馆项目部署脚本${NC}" - echo -e "${WHITE}版本: 1.0.0${NC}" - echo - echo -e "${YELLOW}使用方法:${NC}" - echo " $0 [options]" - echo - echo -e "${YELLOW}可用命令:${NC}" - echo " build - 构建项目(前端+后端)" - echo " env - 配置服务器环境" - echo " mysql - 配置MySQL数据库" - echo " redis - 配置Redis服务" - echo " nacos - 安装配置Nacos" - echo " upload - 上传构建产物" - echo " import-db - 导入数据库" - echo " deploy - 部署应用服务" - echo " nginx - 配置Nginx" - echo " health - 健康检查" - echo " passwords - 创建密码记录文件" - echo " start - 启动应用服务" - echo " stop - 停止应用服务" - echo " restart - 重启应用服务" - echo " status - 查看服务状态" - echo " logs - 查看服务日志" - echo " all - 完整部署(默认)" - echo " help - 显示此帮助信息" - echo - echo -e "${YELLOW}使用示例:${NC}" - echo " $0 build # 1. 构建项目" - echo " $0 env # 2. 配置环境" - echo " $0 mysql # 3. 配置MySQL" - echo " $0 redis # 4. 配置Redis" - echo " $0 nacos # 5. 安装Nacos" - echo " $0 upload # 6. 上传构建产物" - echo " $0 import-db # 7. 导入数据库" - echo " $0 deploy # 8. 部署应用服务" - echo " $0 nginx # 9. 配置Nginx" - echo " $0 passwords # 10. 创建密码记录" - echo " $0 health # 11. 健康检查" - echo - echo "一键部署:" - echo " $0 all # 完整部署所有组件" - echo - echo "服务管理:" - echo " $0 status # 查看服务状态" - echo " $0 restart # 重启服务" - echo " $0 logs gateway # 查看网关日志" - echo -} - -# =================================================================== -# 主函数 -# =================================================================== - -main() { - local command=${1:-all} - - # 显示脚本信息 - echo -e "${CYAN}======================================${NC}" - echo -e "${WHITE} 情绪博物馆项目 - 一键部署脚本${NC}" - echo -e "${WHITE} 版本: 1.0.0${NC}" - echo -e "${WHITE} 目标服务器: ${SERVER_HOST}${NC}" - echo -e "${CYAN}======================================${NC}" - echo - - case "$command" in - "build") - check_local_environment - build_backend - build_frontend - log_success "构建完成!" - echo "下一步: $0 env" - ;; - "env") - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_maven - install_nodejs - log_success "环境配置完成!" - echo "下一步: $0 mysql" - ;; - "mysql") - check_server_connection - setup_mysql - log_success "MySQL配置完成!" - echo "下一步: $0 redis" - ;; - "redis") - check_server_connection - setup_redis - log_success "Redis配置完成!" - echo "下一步: $0 nacos" - ;; - "nacos") - check_server_connection - setup_nacos - log_success "Nacos配置完成!" - echo "下一步: $0 upload" - ;; - "upload") - check_server_connection - upload_artifacts - log_success "文件上传完成!" - echo "下一步: $0 import-db" - ;; - "import-db") - check_server_connection - import_database - log_success "数据库导入完成!" - echo "下一步: $0 deploy" - ;; - "deploy") - check_server_connection - create_app_scripts - start_app_services - log_success "应用部署完成!" - echo "下一步: $0 nginx" - ;; - "nginx") - check_server_connection - setup_nginx - log_success "Nginx配置完成!" - echo "下一步: $0 passwords" - ;; - "passwords") - check_server_connection - create_password_record - log_success "密码记录创建完成!" - echo "下一步: $0 health" - ;; - "health") - check_server_connection - health_check - show_deployment_result - ;; - "start") - check_server_connection - start_app_services - ;; - "stop") - check_server_connection - stop_services - ;; - "restart") - check_server_connection - restart_services - ;; - "status") - check_server_connection - show_status - ;; - "logs") - check_server_connection - show_logs "$2" - ;; - "help") - show_help - ;; - "all") - echo "🚀 开始完整部署情绪博物馆到阿里云服务器..." - echo "" - - # 完整部署流程 - check_local_environment - build_backend - build_frontend - check_server_connection - setup_directories - install_basic_packages - install_docker - install_java - install_maven - install_nodejs - setup_mysql - setup_redis - setup_nacos - upload_artifacts - import_database - create_app_scripts - start_app_services - setup_nginx - create_password_record - health_check - show_deployment_result - ;; - *) - log_error "未知命令: $command" - show_help - exit 1 - ;; - esac -} - -# 脚本入口 -if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then - main "$@" -fi diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index ef76173..0000000 --- a/deploy.sh +++ /dev/null @@ -1,257 +0,0 @@ -#!/bin/bash - -# 情绪博物馆容器部署脚本 -# 作者: EmotionMuseum Team -# 版本: 1.0.0 -# 日期: 2025-07-13 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 检查Docker和Docker Compose -check_requirements() { - log_step "检查系统要求..." - - if ! command -v docker &> /dev/null; then - log_error "Docker未安装,请先安装Docker" - exit 1 - fi - - if ! command -v docker-compose &> /dev/null; then - log_error "Docker Compose未安装,请先安装Docker Compose" - exit 1 - fi - - log_info "Docker和Docker Compose检查通过" -} - -# 创建必要的目录 -create_directories() { - log_step "创建部署目录..." - - mkdir -p deploy/{mysql/conf.d,redis,nginx/{conf.d,ssl},logs} - mkdir -p data/{mysql,redis,nacos} - - log_info "目录创建完成" -} - -# 生成配置文件 -generate_configs() { - log_step "生成配置文件..." - - # MySQL配置 - if [ ! -f "deploy/mysql/conf.d/my.cnf" ]; then - cat > deploy/mysql/conf.d/my.cnf << 'EOF' -[mysqld] -character-set-server=utf8mb4 -collation-server=utf8mb4_unicode_ci -default-time-zone='+8:00' -max_connections=1000 -max_allowed_packet=64M -innodb_buffer_pool_size=512M -innodb_log_file_size=256M -slow_query_log=1 -slow_query_log_file=/var/log/mysql/slow.log -long_query_time=2 -EOF - log_info "MySQL配置文件已生成" - fi - - # Redis配置 - if [ ! -f "deploy/redis/redis.conf" ]; then - cat > deploy/redis/redis.conf << 'EOF' -bind 0.0.0.0 -port 6379 -timeout 300 -tcp-keepalive 60 -maxmemory 256mb -maxmemory-policy allkeys-lru -save 900 1 -save 300 10 -save 60 10000 -appendonly yes -appendfsync everysec -EOF - log_info "Redis配置文件已生成" - fi -} - -# 构建镜像 -build_images() { - log_step "构建Docker镜像..." - - log_info "构建后端服务镜像..." - docker-compose build gateway ai-service user-service - - log_info "构建前端应用镜像..." - docker-compose build web - - log_info "镜像构建完成" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - # 先启动基础服务 - log_info "启动基础服务 (MySQL, Redis, Nacos)..." - docker-compose up -d mysql redis nacos - - # 等待基础服务启动 - log_info "等待基础服务启动完成..." - sleep 30 - - # 启动应用服务 - log_info "启动应用服务..." - docker-compose up -d gateway ai-service user-service - - # 等待应用服务启动 - log_info "等待应用服务启动完成..." - sleep 20 - - # 启动前端和Nginx - log_info "启动前端和Nginx..." - docker-compose up -d web nginx - - log_info "所有服务启动完成" -} - -# 检查服务状态 -check_services() { - log_step "检查服务状态..." - - echo "" - docker-compose ps - echo "" - - # 检查关键服务健康状态 - log_info "检查服务健康状态..." - - # 检查MySQL - if docker-compose exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_warn "❌ MySQL服务异常" - fi - - # 检查Redis - if docker-compose exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_warn "❌ Redis服务异常" - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_warn "❌ Nacos服务异常" - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_warn "❌ 网关服务异常" - fi -} - -# 显示访问信息 -show_access_info() { - log_step "部署完成!" - - echo "" - echo "🎉 情绪博物馆部署成功!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://localhost" - echo " API网关: http://localhost:9000" - echo " Nacos: http://localhost:8848/nacos (用户名/密码: nacos/nacos)" - echo "" - echo "🔧 管理命令:" - echo " 查看日志: docker-compose logs -f [服务名]" - echo " 停止服务: docker-compose down" - echo " 重启服务: docker-compose restart [服务名]" - echo "" - echo "📊 监控命令:" - echo " 查看状态: docker-compose ps" - echo " 查看资源: docker stats" - echo "" -} - -# 主函数 -main() { - echo "🚀 开始部署情绪博物馆..." - echo "" - - check_requirements - create_directories - generate_configs - build_images - start_services - - echo "" - log_info "等待服务完全启动..." - sleep 10 - - check_services - show_access_info -} - -# 处理命令行参数 -case "${1:-}" in - "build") - log_info "仅构建镜像..." - check_requirements - create_directories - generate_configs - build_images - ;; - "start") - log_info "启动服务..." - start_services - check_services - show_access_info - ;; - "stop") - log_info "停止服务..." - docker-compose down - ;; - "restart") - log_info "重启服务..." - docker-compose restart - check_services - ;; - "logs") - docker-compose logs -f - ;; - "status") - check_services - ;; - *) - main - ;; -esac diff --git a/docker-compose.custom.yml b/docker-compose.custom.yml deleted file mode 100644 index 9169b7f..0000000 --- a/docker-compose.custom.yml +++ /dev/null @@ -1,237 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: 123456 - MYSQL_DATABASE: emotion_museum - MYSQL_USER: emotion - MYSQL_PASSWORD: emotion123 - TZ: Asia/Shanghai - ports: - - "3306:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./backend/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - - /data/logs/emotion-museum/mysql:/var/log/mysql - command: --default-authentication-plugin=mysql_native_password - networks: - - emotion-network - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis - restart: unless-stopped - ports: - - "6379:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - - /data/logs/emotion-museum/redis:/var/log/redis - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - - # Nacos注册中心 - nacos: - image: nacos/nacos-server:v2.2.0 - container_name: emotion-nacos - restart: unless-stopped - environment: - MODE: standalone - SPRING_DATASOURCE_PLATFORM: mysql - MYSQL_SERVICE_HOST: mysql - MYSQL_SERVICE_DB_NAME: nacos_config - MYSQL_SERVICE_PORT: 3306 - MYSQL_SERVICE_USER: root - MYSQL_SERVICE_PASSWORD: 123456 - MYSQL_SERVICE_DB_PARAM: characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true - JVM_XMS: 512m - JVM_XMX: 512m - JVM_XMN: 256m - ports: - - "8848:8848" - - "9848:9848" - volumes: - - nacos_data:/home/nacos/data - - nacos_logs:/home/nacos/logs - - /data/logs/emotion-museum/nacos:/home/nacos/logs - depends_on: - - mysql - networks: - - emotion-network - - # 网关服务 - 使用宿主机JAR文件 - emotion-gateway: - image: openjdk:17-jdk-alpine - container_name: emotion-gateway - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-gateway.jar - " - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-gateway.jar:/app/emotion-gateway.jar:ro - - /data/logs/emotion-museum/gateway:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # AI服务 - 使用宿主机JAR文件 - emotion-ai: - image: openjdk:17-jdk-alpine - container_name: emotion-ai - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-ai.jar - " - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - COZE_API_TOKEN: ${COZE_API_TOKEN:-pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO} - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-ai.jar:/app/emotion-ai.jar:ro - - /data/logs/emotion-museum/ai:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9002/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # 用户服务 - 使用宿主机JAR文件 - emotion-user: - image: openjdk:17-jdk-alpine - container_name: emotion-user - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-user.jar - " - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-user.jar:/app/emotion-user.jar:ro - - /data/logs/emotion-museum/user:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9001/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx - restart: unless-stopped - ports: - - "80:80" - - "443:443" - volumes: - - ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf:ro - - ./deploy/nginx/conf.d:/etc/nginx/conf.d:ro - - ./deploy/nginx/ssl:/etc/nginx/ssl:ro - - /data/www/emotion-museum:/data/www/emotion-museum:ro - - /data/logs/emotion-museum/nginx:/var/log/nginx - depends_on: - - emotion-gateway - - emotion-ai - - emotion-user - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/nginx-health"] - interval: 30s - timeout: 10s - retries: 3 - -volumes: - mysql_data: - redis_data: - nacos_data: - nacos_logs: - -networks: - emotion-network: - driver: bridge diff --git a/Spring Cloud Alibaba微服务架构设计.md b/docs/architecture/Spring Cloud Alibaba微服务架构设计.md similarity index 100% rename from Spring Cloud Alibaba微服务架构设计.md rename to docs/architecture/Spring Cloud Alibaba微服务架构设计.md diff --git a/技术架构完善建议.md b/docs/architecture/技术架构完善建议.md similarity index 100% rename from 技术架构完善建议.md rename to docs/architecture/技术架构完善建议.md diff --git a/backend/sql/migrate_coze_api_call_table.sql b/docs/database/sql/migrate_coze_api_call_table.sql similarity index 100% rename from backend/sql/migrate_coze_api_call_table.sql rename to docs/database/sql/migrate_coze_api_call_table.sql diff --git a/backend/Jenkins-Pipeline配置.md b/docs/deployment/Jenkins-Pipeline配置.md similarity index 100% rename from backend/Jenkins-Pipeline配置.md rename to docs/deployment/Jenkins-Pipeline配置.md diff --git a/backend/Jenkins部署说明.md b/docs/deployment/Jenkins部署说明.md similarity index 100% rename from backend/Jenkins部署说明.md rename to docs/deployment/Jenkins部署说明.md diff --git a/部署脚本使用说明.md b/docs/deployment/部署脚本使用说明.md similarity index 100% rename from 部署脚本使用说明.md rename to docs/deployment/部署脚本使用说明.md diff --git a/manage-custom.sh b/manage-custom.sh deleted file mode 100755 index 9528323..0000000 --- a/manage-custom.sh +++ /dev/null @@ -1,441 +0,0 @@ -#!/bin/bash - -# 情绪博物馆自定义管理脚本 -# 适用于自定义目录结构的管理 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 配置变量 -COMPOSE_FILE="docker-compose.custom.yml" -FRONTEND_DIR="/data/www/emotion-museum" -BACKEND_DIR="/data/builds" -LOG_DIR="/data/logs/emotion-museum" - -# 显示帮助信息 -show_help() { - echo "情绪博物馆自定义管理脚本" - echo "" - echo "用法: $0 [命令] [选项]" - echo "" - echo "命令:" - echo " start 启动所有服务" - echo " stop 停止所有服务" - echo " restart 重启所有服务" - echo " status 查看服务状态" - echo " logs 查看服务日志" - echo " health 健康检查" - echo " update 更新服务" - echo " backup 备份数据" - echo " restore 恢复数据" - echo " clean 清理资源" - echo " monitor 监控服务" - echo "" - echo "选项:" - echo " -f, --follow 跟踪日志输出" - echo " -s, --service 指定服务名称" - echo " -h, --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 start # 启动所有服务" - echo " $0 logs -f # 跟踪所有服务日志" - echo " $0 logs -s nginx # 查看nginx服务日志" - echo " $0 restart -s emotion-ai # 重启AI服务" - echo "" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - # 按顺序启动服务 - log_info "启动基础服务..." - docker-compose -f "$COMPOSE_FILE" up -d mysql redis nacos - - log_info "等待基础服务启动..." - sleep 30 - - log_info "启动应用服务..." - docker-compose -f "$COMPOSE_FILE" up -d emotion-gateway emotion-ai emotion-user - - log_info "等待应用服务启动..." - sleep 20 - - log_info "启动Nginx..." - docker-compose -f "$COMPOSE_FILE" up -d nginx - - log_info "服务启动完成" - sleep 5 - show_status -} - -# 停止服务 -stop_services() { - log_step "停止服务..." - docker-compose -f "$COMPOSE_FILE" down - log_info "服务停止完成" -} - -# 重启服务 -restart_services() { - local service_name=${1:-} - - if [ -n "$service_name" ]; then - log_step "重启服务: $service_name" - docker-compose -f "$COMPOSE_FILE" restart "$service_name" - else - log_step "重启所有服务..." - stop_services - sleep 3 - start_services - fi -} - -# 查看服务状态 -show_status() { - log_step "服务状态:" - echo "" - docker-compose -f "$COMPOSE_FILE" ps - echo "" - - # 显示资源使用情况 - log_step "资源使用情况:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" - echo "" - - # 显示目录信息 - log_step "部署目录信息:" - echo "前端文件: $FRONTEND_DIR ($(du -sh $FRONTEND_DIR 2>/dev/null | cut -f1 || echo 'N/A'))" - echo "后端JAR: $BACKEND_DIR ($(ls -la $BACKEND_DIR/*.jar 2>/dev/null | wc -l || echo '0') 个文件)" - echo "日志目录: $LOG_DIR ($(du -sh $LOG_DIR 2>/dev/null | cut -f1 || echo 'N/A'))" -} - -# 查看日志 -show_logs() { - local follow_flag="" - local service_name="" - - # 解析参数 - while [[ $# -gt 0 ]]; do - case $1 in - -f|--follow) - follow_flag="-f" - shift - ;; - -s|--service) - service_name="$2" - shift 2 - ;; - *) - service_name="$1" - shift - ;; - esac - done - - if [ -n "$service_name" ]; then - log_info "查看服务日志: $service_name" - docker-compose -f "$COMPOSE_FILE" logs $follow_flag "$service_name" - else - log_info "查看所有服务日志" - docker-compose -f "$COMPOSE_FILE" logs $follow_flag - fi -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - local all_healthy=true - - # 检查MySQL - if docker-compose -f "$COMPOSE_FILE" exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_error "❌ MySQL服务异常" - all_healthy=false - fi - - # 检查Redis - if docker-compose -f "$COMPOSE_FILE" exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_error "❌ Redis服务异常" - all_healthy=false - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_error "❌ Nacos服务异常" - all_healthy=false - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_error "❌ 网关服务异常" - all_healthy=false - fi - - # 检查AI服务 - if curl -s http://localhost:9002/actuator/health &> /dev/null; then - log_info "✅ AI服务正常" - else - log_error "❌ AI服务异常" - all_healthy=false - fi - - # 检查用户服务 - if curl -s http://localhost:9001/actuator/health &> /dev/null; then - log_info "✅ 用户服务正常" - else - log_error "❌ 用户服务异常" - all_healthy=false - fi - - # 检查Nginx - if curl -s http://localhost/nginx-health &> /dev/null; then - log_info "✅ Nginx服务正常" - else - log_error "❌ Nginx服务异常" - all_healthy=false - fi - - # 检查前端文件 - if [ -f "$FRONTEND_DIR/index.html" ]; then - log_info "✅ 前端文件正常" - else - log_error "❌ 前端文件异常" - all_healthy=false - fi - - # 检查后端JAR文件 - local jar_count=$(ls -1 $BACKEND_DIR/*.jar 2>/dev/null | wc -l) - if [ "$jar_count" -eq 3 ]; then - log_info "✅ 后端JAR文件正常 ($jar_count 个)" - else - log_error "❌ 后端JAR文件异常 (期望3个,实际$jar_count个)" - all_healthy=false - fi - - if $all_healthy; then - log_info "🎉 所有服务健康检查通过" - else - log_warn "⚠️ 部分服务存在问题,请检查日志" - fi -} - -# 更新服务 -update_services() { - log_step "更新服务..." - - # 重新构建前端 - if [ -d "web" ]; then - log_info "重新构建前端..." - cd web - npm run build - cd .. - - # 部署前端 - log_info "部署前端文件..." - sudo rm -rf "$FRONTEND_DIR"/* - sudo cp -r web/dist/* "$FRONTEND_DIR/" - sudo chown -R www-data:www-data "$FRONTEND_DIR" - fi - - # 重新构建后端 - if [ -d "backend" ]; then - log_info "重新构建后端..." - cd backend - mvn clean package -DskipTests - cd .. - - # 部署后端JAR - log_info "部署后端JAR文件..." - local services=("emotion-gateway" "emotion-ai" "emotion-user") - for service in "${services[@]}"; do - local source_jar="backend/${service}/target/${service}-1.0.0.jar" - local target_jar="$BACKEND_DIR/${service}.jar" - if [ -f "$source_jar" ]; then - sudo cp "$source_jar" "$target_jar" - sudo chown $USER:$USER "$target_jar" - fi - done - fi - - # 重启服务 - log_info "重启服务..." - restart_services - - log_info "服务更新完成" -} - -# 备份数据 -backup_data() { - local backup_dir="backups/$(date +%Y%m%d_%H%M%S)" - - log_step "开始数据备份..." - mkdir -p "$backup_dir" - - # 备份MySQL数据 - log_info "备份MySQL数据..." - docker-compose -f "$COMPOSE_FILE" exec -T mysql mysqldump -u root -p123456 --all-databases > "$backup_dir/mysql_backup.sql" - - # 备份Redis数据 - log_info "备份Redis数据..." - docker-compose -f "$COMPOSE_FILE" exec -T redis redis-cli BGSAVE - docker cp $(docker-compose -f "$COMPOSE_FILE" ps -q redis):/data/dump.rdb "$backup_dir/redis_backup.rdb" - - # 备份前端文件 - log_info "备份前端文件..." - sudo tar -czf "$backup_dir/frontend_backup.tar.gz" -C "$FRONTEND_DIR" . - - # 备份后端JAR文件 - log_info "备份后端JAR文件..." - sudo tar -czf "$backup_dir/backend_backup.tar.gz" -C "$BACKEND_DIR" . - - # 备份配置文件 - log_info "备份配置文件..." - cp -r deploy "$backup_dir/" - cp docker-compose*.yml "$backup_dir/" - cp .env "$backup_dir/" 2>/dev/null || true - - # 压缩备份 - tar -czf "$backup_dir.tar.gz" -C backups "$(basename $backup_dir)" - rm -rf "$backup_dir" - - log_info "备份完成: $backup_dir.tar.gz" -} - -# 清理资源 -clean_resources() { - log_step "清理Docker资源..." - - log_warn "此操作将清理未使用的Docker资源" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ $REPLY =~ ^[Yy]$ ]]; then - # 清理未使用的镜像 - docker image prune -f - - # 清理未使用的容器 - docker container prune -f - - # 清理未使用的网络 - docker network prune -f - - log_info "资源清理完成" - else - log_info "清理操作已取消" - fi -} - -# 监控服务 -monitor_services() { - log_step "服务监控面板" - echo "" - - while true; do - clear - echo "=== 情绪博物馆服务监控 ===" - echo "时间: $(date)" - echo "" - - # 显示服务状态 - echo "📊 服务状态:" - docker-compose -f "$COMPOSE_FILE" ps - echo "" - - # 显示资源使用 - echo "💻 资源使用:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" - echo "" - - # 显示磁盘使用 - echo "💾 磁盘使用:" - df -h | grep -E "(Filesystem|/data)" - echo "" - - # 显示目录信息 - echo "📁 目录信息:" - echo "前端: $(du -sh $FRONTEND_DIR 2>/dev/null | cut -f1 || echo 'N/A')" - echo "后端: $(du -sh $BACKEND_DIR 2>/dev/null | cut -f1 || echo 'N/A')" - echo "日志: $(du -sh $LOG_DIR 2>/dev/null | cut -f1 || echo 'N/A')" - echo "" - - echo "按 Ctrl+C 退出监控" - sleep 5 - done -} - -# 主函数 -main() { - case "${1:-}" in - "start") - start_services - ;; - "stop") - stop_services - ;; - "restart") - shift - restart_services "$@" - ;; - "status") - show_status - ;; - "logs") - shift - show_logs "$@" - ;; - "health") - health_check - ;; - "update") - update_services - ;; - "backup") - backup_data - ;; - "clean") - clean_resources - ;; - "monitor") - monitor_services - ;; - "-h"|"--help"|"help") - show_help - ;; - *) - show_help - ;; - esac -} - -main "$@" diff --git a/manage.sh b/manage.sh deleted file mode 100755 index fa3f1a5..0000000 --- a/manage.sh +++ /dev/null @@ -1,412 +0,0 @@ -#!/bin/bash - -# 情绪博物馆管理脚本 -# 提供服务管理、监控、备份等功能 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆管理脚本" - echo "" - echo "用法: $0 [命令] [选项]" - echo "" - echo "命令:" - echo " start 启动所有服务" - echo " stop 停止所有服务" - echo " restart 重启所有服务" - echo " status 查看服务状态" - echo " logs 查看服务日志" - echo " backup 备份数据" - echo " restore 恢复数据" - echo " update 更新服务" - echo " clean 清理资源" - echo " monitor 监控服务" - echo " health 健康检查" - echo "" - echo "选项:" - echo " -f, --follow 跟踪日志输出" - echo " -s, --service 指定服务名称" - echo " -h, --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 start # 启动所有服务" - echo " $0 logs -f # 跟踪所有服务日志" - echo " $0 logs -s gateway # 查看网关服务日志" - echo " $0 restart -s ai-service # 重启AI服务" - echo "" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml up -d - else - docker-compose up -d - fi - - log_info "服务启动完成" - sleep 5 - show_status -} - -# 停止服务 -stop_services() { - log_step "停止服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml down - else - docker-compose down - fi - - log_info "服务停止完成" -} - -# 重启服务 -restart_services() { - local service_name=${1:-} - - if [ -n "$service_name" ]; then - log_step "重启服务: $service_name" - docker-compose restart "$service_name" - else - log_step "重启所有服务..." - stop_services - sleep 3 - start_services - fi -} - -# 查看服务状态 -show_status() { - log_step "服务状态:" - echo "" - docker-compose ps - echo "" - - # 显示资源使用情况 - log_step "资源使用情况:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" -} - -# 查看日志 -show_logs() { - local follow_flag="" - local service_name="" - - # 解析参数 - while [[ $# -gt 0 ]]; do - case $1 in - -f|--follow) - follow_flag="-f" - shift - ;; - -s|--service) - service_name="$2" - shift 2 - ;; - *) - service_name="$1" - shift - ;; - esac - done - - if [ -n "$service_name" ]; then - log_info "查看服务日志: $service_name" - docker-compose logs $follow_flag "$service_name" - else - log_info "查看所有服务日志" - docker-compose logs $follow_flag - fi -} - -# 备份数据 -backup_data() { - local backup_dir="backups/$(date +%Y%m%d_%H%M%S)" - - log_step "开始数据备份..." - mkdir -p "$backup_dir" - - # 备份MySQL数据 - log_info "备份MySQL数据..." - docker-compose exec -T mysql mysqldump -u root -p123456 --all-databases > "$backup_dir/mysql_backup.sql" - - # 备份Redis数据 - log_info "备份Redis数据..." - docker-compose exec -T redis redis-cli BGSAVE - docker cp $(docker-compose ps -q redis):/data/dump.rdb "$backup_dir/redis_backup.rdb" - - # 备份配置文件 - log_info "备份配置文件..." - cp -r deploy "$backup_dir/" - cp docker-compose*.yml "$backup_dir/" - cp .env "$backup_dir/" 2>/dev/null || true - - # 压缩备份 - tar -czf "$backup_dir.tar.gz" -C backups "$(basename $backup_dir)" - rm -rf "$backup_dir" - - log_info "备份完成: $backup_dir.tar.gz" -} - -# 恢复数据 -restore_data() { - local backup_file="$1" - - if [ -z "$backup_file" ]; then - log_error "请指定备份文件" - echo "用法: $0 restore " - exit 1 - fi - - if [ ! -f "$backup_file" ]; then - log_error "备份文件不存在: $backup_file" - exit 1 - fi - - log_step "开始数据恢复..." - log_warn "此操作将覆盖现有数据,请确认后继续" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ ! $REPLY =~ ^[Yy]$ ]]; then - log_info "恢复操作已取消" - exit 0 - fi - - # 解压备份文件 - local restore_dir="restore_$(date +%Y%m%d_%H%M%S)" - mkdir -p "$restore_dir" - tar -xzf "$backup_file" -C "$restore_dir" - - # 恢复MySQL数据 - log_info "恢复MySQL数据..." - docker-compose exec -T mysql mysql -u root -p123456 < "$restore_dir"/*/mysql_backup.sql - - # 恢复Redis数据 - log_info "恢复Redis数据..." - docker-compose stop redis - docker cp "$restore_dir"/*/redis_backup.rdb $(docker-compose ps -q redis):/data/dump.rdb - docker-compose start redis - - # 清理临时文件 - rm -rf "$restore_dir" - - log_info "数据恢复完成" -} - -# 更新服务 -update_services() { - log_step "更新服务..." - - # 拉取最新代码 - if [ -d ".git" ]; then - log_info "拉取最新代码..." - git pull - fi - - # 重新构建镜像 - log_info "重新构建镜像..." - docker-compose build --no-cache - - # 重启服务 - log_info "重启服务..." - restart_services - - log_info "服务更新完成" -} - -# 清理资源 -clean_resources() { - log_step "清理Docker资源..." - - log_warn "此操作将清理未使用的Docker资源" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ $REPLY =~ ^[Yy]$ ]]; then - # 清理未使用的镜像 - docker image prune -f - - # 清理未使用的容器 - docker container prune -f - - # 清理未使用的网络 - docker network prune -f - - # 清理未使用的卷(谨慎使用) - # docker volume prune -f - - log_info "资源清理完成" - else - log_info "清理操作已取消" - fi -} - -# 监控服务 -monitor_services() { - log_step "服务监控面板" - echo "" - - while true; do - clear - echo "=== 情绪博物馆服务监控 ===" - echo "时间: $(date)" - echo "" - - # 显示服务状态 - echo "📊 服务状态:" - docker-compose ps - echo "" - - # 显示资源使用 - echo "💻 资源使用:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" - echo "" - - # 显示磁盘使用 - echo "💾 磁盘使用:" - df -h | grep -E "(Filesystem|/dev/)" - echo "" - - echo "按 Ctrl+C 退出监控" - sleep 5 - done -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - local all_healthy=true - - # 检查MySQL - if docker-compose exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_error "❌ MySQL服务异常" - all_healthy=false - fi - - # 检查Redis - if docker-compose exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_error "❌ Redis服务异常" - all_healthy=false - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_error "❌ Nacos服务异常" - all_healthy=false - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_error "❌ 网关服务异常" - all_healthy=false - fi - - # 检查AI服务 - if curl -s http://localhost:9002/actuator/health &> /dev/null; then - log_info "✅ AI服务正常" - else - log_error "❌ AI服务异常" - all_healthy=false - fi - - # 检查前端 - if curl -s http://localhost:80/health &> /dev/null; then - log_info "✅ 前端服务正常" - else - log_error "❌ 前端服务异常" - all_healthy=false - fi - - if $all_healthy; then - log_info "🎉 所有服务健康检查通过" - else - log_warn "⚠️ 部分服务存在问题,请检查日志" - fi -} - -# 主函数 -main() { - case "${1:-}" in - "start") - start_services - ;; - "stop") - stop_services - ;; - "restart") - shift - restart_services "$@" - ;; - "status") - show_status - ;; - "logs") - shift - show_logs "$@" - ;; - "backup") - backup_data - ;; - "restore") - restore_data "$2" - ;; - "update") - update_services - ;; - "clean") - clean_resources - ;; - "monitor") - monitor_services - ;; - "health") - health_check - ;; - "-h"|"--help"|"help") - show_help - ;; - *) - show_help - ;; - esac -} - -main "$@" diff --git a/packages/emotion-museum-1.0.0-20250713_111829.sha256 b/packages/emotion-museum-1.0.0-20250713_111829.sha256 deleted file mode 100644 index 74063e1..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829.sha256 +++ /dev/null @@ -1 +0,0 @@ -900d585f575b1619e74296496e2fe22f2c2e71b6ad8901d7cab82634765cc10d emotion-museum-1.0.0-20250713_111829.tar.gz diff --git a/packages/emotion-museum-1.0.0-20250713_111829.tar.gz b/packages/emotion-museum-1.0.0-20250713_111829.tar.gz deleted file mode 100644 index bcd3737..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_111829.tar.gz and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_111829/.env.test b/packages/emotion-museum-1.0.0-20250713_111829/.env.test deleted file mode 100644 index 553f9f8..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/.env.test +++ /dev/null @@ -1,171 +0,0 @@ -# 情绪博物馆测试环境配置文件 -# 请根据实际部署环境修改相应配置 - -# ================================ -# 基础环境配置 -# ================================ -ENVIRONMENT=test -SERVER_IP=localhost -DEPLOY_PATH=/data/emotion-museum - -# ================================ -# 数据库配置 -# ================================ -MYSQL_HOST=localhost -MYSQL_PORT=3306 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_DATABASE=emotion_museum -MYSQL_USERNAME=emotion -MYSQL_PASSWORD=emotion123 - -# Nacos数据库配置 -NACOS_DATABASE=nacos_config - -# ================================ -# Redis配置 -# ================================ -REDIS_HOST=localhost -REDIS_PORT=6379 -REDIS_PASSWORD= - -# ================================ -# Nacos配置 -# ================================ -NACOS_SERVER_ADDR=localhost:8848 -NACOS_NAMESPACE=emotion-test -NACOS_GROUP=TEST_GROUP -NACOS_USERNAME=nacos -NACOS_PASSWORD=nacos - -# ================================ -# 服务端口配置 -# ================================ -GATEWAY_PORT=9000 -USER_SERVICE_PORT=9001 -AI_SERVICE_PORT=9002 -WEB_PORT=3000 -NGINX_PORT=80 -NGINX_HTTPS_PORT=443 - -# ================================ -# JWT配置 -# ================================ -JWT_SECRET=emotion-museum-test-secret-key-2025 -JWT_EXPIRATION=7200 -JWT_REFRESH_EXPIRATION=86400 - -# ================================ -# COZE AI配置 -# ================================ -COZE_API_TOKEN=your-coze-api-token -COZE_BOT_ID=7523042446285439016 -COZE_WORKFLOW_ID=7523047462895796287 -COZE_API_BASE_URL=https://api.coze.cn - -# ================================ -# 文件存储配置 -# ================================ -UPLOAD_PATH=/data/uploads/emotion-museum -UPLOAD_MAX_SIZE=10485760 -LOG_PATH=/data/logs/emotion-museum - -# ================================ -# 前端配置 -# ================================ -VUE_APP_API_BASE_URL=http://localhost:9000 -VUE_APP_GATEWAY_URL=http://localhost:9000 -VUE_APP_WS_URL=ws://localhost:9000/ws -VUE_APP_TITLE=情绪博物馆 - 测试环境 -VUE_APP_ENVIRONMENT=test -VUE_APP_ENABLE_DEBUG=true - -# ================================ -# Docker配置 -# ================================ -DOCKER_REGISTRY= -DOCKER_NAMESPACE=emotion-museum -DOCKER_TAG=test-latest - -# ================================ -# 监控配置 -# ================================ -ENABLE_PROMETHEUS=true -ENABLE_GRAFANA=false -PROMETHEUS_PORT=9090 -GRAFANA_PORT=3001 - -# ================================ -# 安全配置 -# ================================ -ENABLE_HTTPS=false -SSL_CERT_PATH=/etc/nginx/ssl -ENABLE_RATE_LIMIT=true -ENABLE_FIREWALL=false - -# ================================ -# 备份配置 -# ================================ -BACKUP_PATH=/data/backups/emotion-museum -BACKUP_RETENTION_DAYS=7 -AUTO_BACKUP_ENABLED=true -BACKUP_SCHEDULE="0 2 * * *" - -# ================================ -# 日志配置 -# ================================ -LOG_LEVEL=INFO -LOG_MAX_SIZE=100MB -LOG_MAX_HISTORY=30 -ENABLE_LOG_ROTATION=true - -# ================================ -# 缓存配置 -# ================================ -CACHE_DEFAULT_TTL=3600 -CACHE_USER_INFO_TTL=1800 -CACHE_CONVERSATION_TTL=7200 - -# ================================ -# 限流配置 -# ================================ -RATE_LIMIT_ENABLED=true -RATE_LIMIT_DEFAULT_LIMIT=100 -RATE_LIMIT_DEFAULT_WINDOW=60 - -# ================================ -# 健康检查配置 -# ================================ -HEALTH_CHECK_INTERVAL=30 -HEALTH_CHECK_TIMEOUT=10 -HEALTH_CHECK_RETRIES=3 - -# ================================ -# 性能配置 -# ================================ -JVM_XMS=512m -JVM_XMX=1024m -JVM_XMN=256m -HIKARI_MINIMUM_IDLE=3 -HIKARI_MAXIMUM_POOL_SIZE=15 - -# ================================ -# 开发调试配置 -# ================================ -DEBUG_ENABLED=true -LOG_REQUESTS=true -LOG_RESPONSES=false -MOCK_ENABLED=false -SAMPLE_DATA_ENABLED=true - -# ================================ -# 网络配置 -# ================================ -NETWORK_NAME=emotion-test-network -SUBNET=172.20.0.0/16 -GATEWAY_IP=172.20.0.1 - -# ================================ -# 时区配置 -# ================================ -TZ=Asia/Shanghai -TIMEZONE=GMT+8 diff --git a/packages/emotion-museum-1.0.0-20250713_111829/DEPLOY.md b/packages/emotion-museum-1.0.0-20250713_111829/DEPLOY.md deleted file mode 100644 index 4bd2fb3..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/DEPLOY.md +++ /dev/null @@ -1,471 +0,0 @@ -# 情绪博物馆测试环境部署指南 - -## 📋 概述 - -本文档提供了情绪博物馆项目测试环境的完整部署方案,包括环境安装、数据库初始化、服务部署等全流程。 - -**新版本特性**: -- ✅ 支持IP访问,暂不使用域名 -- ✅ 自动化环境安装 (Java, Maven, Node.js, Docker等) -- ✅ 自动化数据库初始化 (MySQL + Nacos) -- ✅ 测试环境专用配置 -- ✅ 使用最新稳定版本软件 -- ✅ 完整的健康检查和监控 - -## 🏗️ 架构说明 - -### 服务组件 -- **前端应用** (Vue3 + Ant Design) - 端口: 3000 → 80 (Nginx) -- **API网关** (Spring Cloud Gateway) - 端口: 9000 -- **AI服务** (Spring Boot + Coze API) - 端口: 9002 -- **用户服务** (Spring Boot) - 端口: 9001 -- **MySQL数据库** - 端口: 3306 -- **Redis缓存** - 端口: 6379 -- **Nacos注册中心** - 端口: 8848 -- **Nginx反向代理** - 端口: 80 - -### 网络架构 -``` -用户 → Nginx(80) → 前端(3000) / API网关(9000) → 微服务 → 数据库 - ↓ - Nacos注册中心(8848) -``` - -## 🚀 快速开始 - -### 1. 系统要求 -- **操作系统**: Linux/macOS (推荐 Ubuntu 20.04+) -- **内存**: 最少4GB,推荐8GB+ -- **磁盘**: 最少20GB可用空间 -- **网络**: 能够访问互联网 - -### 2. 一键部署 -```bash -# 进入部署目录 -cd emotion-museum-1.0.0-20250713_111829 - -# 一键部署(包含环境安装、数据库初始化、服务部署) -chmod +x deploy.sh -./deploy.sh -``` - -### 3. 分步部署 -```bash -# 1. 安装基础环境 -./deploy.sh install-env - -# 2. 初始化数据库 -./deploy.sh init-db - -# 3. 构建应用镜像 -./deploy.sh build - -# 4. 启动服务 -./deploy.sh start -``` - -### 4. 访问应用 -- **前端应用**: http://localhost -- **API网关**: http://localhost:9000 -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) - -## 📁 文件结构 - -``` -emotion-museum-1.0.0-20250713_111829/ -├── deploy.sh # 主部署脚本 -├── install-environment.sh # 环境安装脚本 -├── init-database.sh # 数据库初始化脚本 -├── manage.sh # 服务管理脚本 -├── docker-compose.yml # 默认配置 -├── docker-compose.test.yml # 测试环境配置 -├── .env.test # 测试环境变量 -├── README.md # 快速开始指南 -├── DEPLOY.md # 详细部署文档 -├── backend/ # 后端服务 -│ ├── emotion-gateway-1.0.0.jar -│ ├── emotion-user-1.0.0.jar -│ ├── emotion-ai-1.0.0.jar -│ ├── gateway-Dockerfile -│ ├── user-Dockerfile -│ ├── ai-Dockerfile -│ └── config/ # 配置文件 -│ ├── application-test.yml -│ ├── gateway-test.yml -│ └── ai-test.yml -├── frontend/ # 前端应用 -│ ├── Dockerfile -│ ├── nginx.conf -│ ├── index.html -│ ├── assets/ -│ └── config/ -│ └── test.env.js -├── database/ # 数据库脚本 -│ ├── mysql_emotion_museum_final.sql -│ └── verify-database-script.sql -└── deploy/ # 部署配置 - ├── nginx/conf.d/ - ├── mysql/conf.d/ - └── redis/ -``` - -## ⚙️ 配置说明 - -### 环境变量配置 - -编辑 `.env.test` 文件: - -```bash -# 服务器IP(重要:请修改为实际IP) -SERVER_IP=localhost - -# 数据库配置 -MYSQL_HOST=localhost -MYSQL_PORT=3306 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_USERNAME=emotion -MYSQL_PASSWORD=emotion123 - -# Redis配置 -REDIS_HOST=localhost -REDIS_PORT=6379 - -# Nacos配置 -NACOS_SERVER_ADDR=localhost:8848 - -# COZE AI配置(重要:请配置实际的API Token) -COZE_API_TOKEN=your-coze-api-token - -# JWT配置 -JWT_SECRET=emotion-museum-test-secret-key-2025 - -# 时区设置 -TZ=Asia/Shanghai -``` - -### 服务配置 - -- **网关配置**: `backend/config/gateway-test.yml` -- **用户服务配置**: `backend/config/application-test.yml` -- **AI服务配置**: `backend/config/ai-test.yml` -- **前端配置**: `frontend/config/test.env.js` - -### 数据库配置 - -- **MySQL配置**: `deploy/mysql/conf.d/my.cnf` -- **Redis配置**: `deploy/redis/redis.conf` -- **初始化脚本**: `database/mysql_emotion_museum_final.sql` - -## 🛠️ 管理命令 - -### 部署命令 - -```bash -# 完整部署(推荐) -./deploy.sh - -# 分步部署 -./deploy.sh install-env # 安装环境 -./deploy.sh init-db # 初始化数据库 -./deploy.sh build # 构建镜像 -./deploy.sh start # 启动服务 - -# 跳过某些步骤 -./deploy.sh --skip-env # 跳过环境安装 -./deploy.sh --skip-db # 跳过数据库初始化 -./deploy.sh --debug # 启用调试模式 -``` - -### 服务管理 - -```bash -# 查看服务状态 -./deploy.sh status - -# 启动服务 -./deploy.sh start - -# 停止服务 -./deploy.sh stop - -# 重启服务 -./deploy.sh restart - -# 重启特定服务 -./deploy.sh restart gateway -./deploy.sh restart user-service -./deploy.sh restart ai-service -``` - -### 日志管理 - -```bash -# 查看所有服务日志 -./deploy.sh logs - -# 跟踪日志输出 -./deploy.sh logs -f - -# 查看特定服务日志 -./deploy.sh logs gateway -./deploy.sh logs user-service -./deploy.sh logs ai-service -``` - -### 数据管理 - -```bash -# 备份数据 -./deploy.sh backup - -# 健康检查 -./deploy.sh health - -# 更新服务 -./deploy.sh update - -# 清理资源 -./deploy.sh clean -``` - -### 独立脚本 - -```bash -# 环境安装 -./install-environment.sh - -# 数据库初始化 -./init-database.sh - -# 服务管理(兼容旧版本) -./manage.sh start -./manage.sh stop -./manage.sh status -``` - -## 🔧 生产环境配置 - -### 1. 修改环境配置 - -复制并修改环境配置文件: - -```bash -# 复制测试环境配置 -cp .env.test .env.prod - -# 修改生产环境配置 -vim .env.prod -``` - -关键配置项: - -```bash -# 修改为实际服务器IP -SERVER_IP=your-server-ip - -# 修改为生产环境数据库密码 -MYSQL_ROOT_PASSWORD=your-strong-password -MYSQL_PASSWORD=your-strong-password - -# 配置实际的COZE API Token -COZE_API_TOKEN=your-actual-coze-api-token - -# 配置强密码的JWT密钥 -JWT_SECRET=your-production-jwt-secret-key - -# 启用HTTPS(如需要) -ENABLE_HTTPS=true -NGINX_HTTPS_PORT=443 -``` - -### 2. 域名和SSL配置(可选) - -如果需要使用域名和HTTPS: - -```bash -# 放置SSL证书 -mkdir -p deploy/nginx/ssl -cp your-domain.crt deploy/nginx/ssl/ -cp your-domain.key deploy/nginx/ssl/ - -# 修改Nginx配置 -vim deploy/nginx/conf.d/default.conf -``` - -### 3. 防火墙配置 - -```bash -# Ubuntu/Debian -sudo ufw allow 80/tcp -sudo ufw allow 443/tcp - -# CentOS/RHEL -sudo firewall-cmd --permanent --add-port=80/tcp -sudo firewall-cmd --permanent --add-port=443/tcp -sudo firewall-cmd --reload -``` - -## 📊 监控和维护 - -### 服务监控 - -```bash -# 查看服务状态 -./deploy.sh status - -# 健康检查 -./deploy.sh health - -# 资源使用情况 -docker stats - -# 查看容器状态 -docker ps -a -``` - -### 日志管理 - -```bash -# 查看应用日志 -./deploy.sh logs - -# 查看特定服务日志 -./deploy.sh logs gateway -./deploy.sh logs user-service -./deploy.sh logs ai-service - -# 实时跟踪日志 -./deploy.sh logs -f - -# 查看系统日志 -tail -f /data/logs/emotion-museum/gateway-service.log -tail -f /data/logs/emotion-museum/user-service.log -``` - -### 性能优化 - -1. **JVM参数调整**:修改 `.env.test` 中的JVM配置 -2. **数据库优化**:调整 `deploy/mysql/conf.d/my.cnf` -3. **Redis优化**:调整 `deploy/redis/redis.conf` -4. **Nginx优化**:调整 `deploy/nginx/conf.d/default.conf` - -## 🔒 安全配置 - -### 1. 数据库安全 -- 修改默认密码 -- 限制访问IP -- 启用SSL连接 - -### 2. Redis安全 -- 设置密码认证 -- 绑定特定IP -- 禁用危险命令 - -### 3. Nginx安全 -- 启用HTTPS -- 配置安全头 -- 限制请求频率 - -### 4. 应用安全 -- 配置JWT密钥 -- 启用CORS限制 -- 设置API限流 - -## 🚨 故障排除 - -### 常见问题 - -#### 1. 环境安装失败 - -```bash -# 检查系统要求 -./install-environment.sh verify - -# 手动安装特定组件 -./install-environment.sh java -./install-environment.sh docker -``` - -#### 2. 数据库初始化失败 - -```bash -# 检查MySQL容器状态 -docker logs emotion-mysql - -# 重新初始化数据库 -./init-database.sh clean -./init-database.sh -``` - -#### 3. 服务启动失败 - -```bash -# 查看服务日志 -./deploy.sh logs service-name - -# 检查端口占用 -netstat -tlnp | grep :port - -# 重启服务 -./deploy.sh restart service-name -``` - -#### 4. 网络连接问题 - -```bash -# 检查Docker网络 -docker network ls -docker network inspect emotion-test-network - -# 检查服务健康状态 -./deploy.sh health -``` - -#### 5. 配置文件问题 - -```bash -# 检查环境变量 -cat .env.test - -# 验证配置文件语法 -docker-compose -f docker-compose.test.yml config -``` - -### 性能问题 - -1. **内存不足**:调整 `.env.test` 中的JVM参数 -2. **磁盘空间不足**:清理Docker资源 `./deploy.sh clean` -3. **网络延迟**:检查服务间网络连接 - -### 日志分析 - -```bash -# 查看详细部署日志 -./deploy.sh --debug - -# 查看容器启动日志 -docker logs emotion-gateway -docker logs emotion-mysql -docker logs emotion-nacos -``` - -## 📞 技术支持 - -如遇到问题,请按以下步骤排查: - -1. **查看日志**:`./deploy.sh logs --debug` -2. **检查状态**:`./deploy.sh status` -3. **验证配置**:检查 `.env.test` 配置 -4. **重新部署**:`./deploy.sh clean && ./deploy.sh` - -## 📝 注意事项 - -- ⚠️ **首次部署**:请确保修改 `.env.test` 中的 `SERVER_IP` 和 `COZE_API_TOKEN` -- ⚠️ **生产环境**:请修改所有默认密码和密钥 -- ⚠️ **防火墙**:确保开放必要的端口 (80, 3306, 6379, 8848, 9000-9002) -- ⚠️ **资源要求**:确保服务器有足够的内存和磁盘空间 - ---- - -**部署完成后,请及时修改默认密码和配置文件中的敏感信息!** diff --git a/packages/emotion-museum-1.0.0-20250713_111829/QUICK_START.md b/packages/emotion-museum-1.0.0-20250713_111829/QUICK_START.md deleted file mode 100644 index 0d7b45f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/QUICK_START.md +++ /dev/null @@ -1,210 +0,0 @@ -# 情绪博物馆快速部署指南 - -## 📦 包内容说明 - -``` -emotion-museum-1.0.0-YYYYMMDD_HHMMSS/ -├── frontend/ # 前端构建产物 -│ ├── dist/ # 静态文件 -│ ├── Dockerfile # 前端容器配置 -│ └── nginx.conf # Nginx配置 -├── backend/ # 后端JAR文件 -│ ├── emotion-gateway-*.jar # 网关服务 -│ ├── emotion-ai-*.jar # AI服务 -│ ├── emotion-user-*.jar # 用户服务 -│ ├── config/ # 配置文件 -│ └── *-Dockerfile # 各服务容器配置 -├── database/ # 数据库脚本 -│ └── mysql_emotion_museum_final.sql -├── deploy/ # 部署配置 -│ ├── nginx/ # Nginx配置 -│ ├── mysql/ # MySQL配置 -│ └── redis/ # Redis配置 -├── docker-compose.yml # 开发环境配置 -├── docker-compose.prod.yml # 生产环境配置 -├── deploy.sh # 部署脚本 -├── quick-deploy.sh # 快速部署脚本 -├── manage.sh # 管理脚本 -├── .env # 环境变量模板 -├── VERSION.txt # 版本信息 -├── DEPLOY.md # 详细部署文档 -└── QUICK_START.md # 本文件 -``` - -## 🚀 快速部署步骤 - -### 1. 系统要求 -- **操作系统**: Linux/macOS/Windows -- **Docker**: 20.10+ -- **Docker Compose**: 1.29+ -- **内存**: 最少4GB,推荐8GB+ -- **磁盘**: 最少10GB可用空间 - -### 2. 部署步骤 - -#### 方式一:一键部署(推荐) -```bash -# 1. 解压部署包 -tar -xzf emotion-museum-*.tar.gz -cd emotion-museum-* - -# 2. 配置环境变量 -cp .env .env.local -vim .env.local # 编辑配置,特别是COZE_API_TOKEN - -# 3. 一键部署 -chmod +x quick-deploy.sh -./quick-deploy.sh -``` - -#### 方式二:手动部署 -```bash -# 1. 解压部署包 -tar -xzf emotion-museum-*.tar.gz -cd emotion-museum-* - -# 2. 配置环境变量 -cp .env .env.local -vim .env.local - -# 3. 手动部署 -chmod +x deploy.sh -./deploy.sh -``` - -### 3. 验证部署 -```bash -# 查看服务状态 -./manage.sh status - -# 健康检查 -./manage.sh health - -# 查看日志 -./manage.sh logs -``` - -### 4. 访问应用 -- **前端应用**: http://localhost -- **API网关**: http://localhost:9000 -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) - -## ⚙️ 配置说明 - -### 必须配置项 -编辑 `.env` 文件中的以下配置: - -```bash -# Coze API配置(必须) -COZE_API_TOKEN=your-actual-coze-api-token - -# 数据库密码(建议修改) -MYSQL_ROOT_PASSWORD=your-secure-password -MYSQL_PASSWORD=your-secure-password -``` - -### 可选配置项 -```bash -# 时区设置 -TZ=Asia/Shanghai - -# 域名配置(生产环境) -DOMAIN_NAME=your-domain.com -``` - -## 🛠️ 管理命令 - -```bash -# 服务管理 -./manage.sh start # 启动服务 -./manage.sh stop # 停止服务 -./manage.sh restart # 重启服务 -./manage.sh status # 查看状态 - -# 日志管理 -./manage.sh logs # 查看所有日志 -./manage.sh logs -f # 跟踪日志 -./manage.sh logs -s ai # 查看AI服务日志 - -# 数据管理 -./manage.sh backup # 备份数据 -./manage.sh restore file # 恢复数据 - -# 监控 -./manage.sh monitor # 监控面板 -./manage.sh health # 健康检查 -``` - -## 🔧 生产环境配置 - -### 1. 使用生产配置 -```bash -# 使用生产环境配置 -docker-compose -f docker-compose.prod.yml up -d -``` - -### 2. 配置HTTPS -```bash -# 1. 放置SSL证书 -cp your-domain.crt deploy/nginx/ssl/emotion-museum.crt -cp your-domain.key deploy/nginx/ssl/emotion-museum.key - -# 2. 修改Nginx配置 -vim deploy/nginx/conf.d/emotion-museum.conf -# 取消HTTPS相关配置的注释 - -# 3. 重启Nginx -docker-compose restart nginx -``` - -### 3. 配置域名 -```bash -# 修改Nginx配置中的域名 -vim deploy/nginx/conf.d/emotion-museum.conf -# 将 localhost 替换为您的域名 -``` - -## 🚨 故障排除 - -### 常见问题 - -1. **端口冲突** - ```bash - # 检查端口占用 - netstat -tlnp | grep :80 - netstat -tlnp | grep :3306 - ``` - -2. **服务启动失败** - ```bash - # 查看具体错误 - ./manage.sh logs -s service-name - ``` - -3. **数据库连接失败** - ```bash - # 检查数据库状态 - docker-compose exec mysql mysqladmin ping -u root -p - ``` - -4. **前端访问404** - ```bash - # 检查Nginx配置 - docker-compose exec nginx nginx -t - ``` - -### 获取帮助 -- 查看详细文档: `cat DEPLOY.md` -- 查看版本信息: `cat VERSION.txt` -- 查看管理命令: `./manage.sh --help` - -## 📞 技术支持 - -如遇到问题,请: -1. 查看相关服务日志 -2. 检查配置文件 -3. 参考 DEPLOY.md 中的故障排除指南 -4. 联系技术支持团队 - ---- -**部署完成后,请及时修改默认密码和敏感配置!** diff --git a/packages/emotion-museum-1.0.0-20250713_111829/README.md b/packages/emotion-museum-1.0.0-20250713_111829/README.md deleted file mode 100644 index d1b6ee0..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/README.md +++ /dev/null @@ -1,260 +0,0 @@ -# 情绪博物馆 - 测试环境部署指南 - -## 项目简介 - -情绪博物馆是一个基于Spring Cloud Alibaba微服务架构的情感AI对话平台,集成了Coze AI平台,提供智能情感分析和对话功能。 - -## 系统架构 - -- **前端**: Vue 3 + Ant Design -- **网关**: Spring Cloud Gateway -- **微服务**: 用户服务、AI服务 -- **注册中心**: Nacos -- **数据库**: MySQL 8.0 -- **缓存**: Redis 7 -- **容器化**: Docker + Docker Compose - -## 快速部署 - -### 1. 环境要求 - -- **操作系统**: Linux/macOS/Windows (推荐 Ubuntu 20.04+) -- **内存**: 最低 4GB,推荐 8GB+ -- **磁盘**: 最低 20GB 可用空间 -- **网络**: 能够访问互联网 - -### 2. 一键部署 - -```bash -# 下载部署包并解压 -cd emotion-museum-1.0.0-20250713_111829 - -# 执行一键部署(包含环境安装、数据库初始化、服务部署) -chmod +x deploy.sh -./deploy.sh -``` - -### 3. 分步部署 - -如果需要分步执行,可以使用以下命令: - -```bash -# 1. 安装基础环境 (Java, Maven, Node.js, Docker等) -./deploy.sh install-env - -# 2. 初始化数据库 -./deploy.sh init-db - -# 3. 构建应用镜像 -./deploy.sh build - -# 4. 启动服务 -./deploy.sh start -``` - -### 4. 跳过某些步骤 - -```bash -# 跳过环境安装(如果已安装) -./deploy.sh --skip-env - -# 跳过数据库初始化(如果已初始化) -./deploy.sh --skip-db - -# 启用调试模式 -./deploy.sh --debug -``` - -## 服务管理 - -### 查看服务状态 -```bash -./deploy.sh status -``` - -### 查看服务日志 -```bash -# 查看所有服务日志 -./deploy.sh logs - -# 查看特定服务日志 -./deploy.sh logs gateway -./deploy.sh logs user-service -./deploy.sh logs ai-service - -# 实时跟踪日志 -./deploy.sh logs -f -``` - -### 重启服务 -```bash -# 重启所有服务 -./deploy.sh restart - -# 重启特定服务 -./deploy.sh restart gateway -``` - -### 停止服务 -```bash -./deploy.sh stop -``` - -### 健康检查 -```bash -./deploy.sh health -``` - -### 备份数据 -```bash -./deploy.sh backup -``` - -### 更新服务 -```bash -./deploy.sh update -``` - -### 清理资源 -```bash -./deploy.sh clean -``` - -## 访问地址 - -部署完成后,可以通过以下地址访问: - -- **前端应用**: http://localhost -- **API网关**: http://localhost:9000 -- **Nacos控制台**: http://localhost:8848/nacos (用户名/密码: nacos/nacos) - -## 配置说明 - -### 环境变量配置 - -主要配置文件:`.env.test` - -```bash -# 服务器IP(重要:部署时请修改为实际IP) -SERVER_IP=localhost - -# 数据库配置 -MYSQL_HOST=localhost -MYSQL_PORT=3306 -MYSQL_USERNAME=emotion -MYSQL_PASSWORD=emotion123 - -# Redis配置 -REDIS_HOST=localhost -REDIS_PORT=6379 - -# Nacos配置 -NACOS_SERVER_ADDR=localhost:8848 - -# COZE AI配置(重要:请配置实际的API Token) -COZE_API_TOKEN=your-coze-api-token -``` - -### 端口配置 - -- **前端**: 80 (Nginx) -- **网关**: 9000 -- **用户服务**: 9001 -- **AI服务**: 9002 -- **MySQL**: 3306 -- **Redis**: 6379 -- **Nacos**: 8848 - -## 故障排除 - -### 常见问题 - -1. **Docker服务未启动** - ```bash - sudo systemctl start docker - sudo systemctl enable docker - ``` - -2. **端口被占用** - ```bash - # 查看端口占用 - netstat -tlnp | grep :端口号 - - # 修改 .env.test 文件中的端口配置 - ``` - -3. **内存不足** - ```bash - # 调整JVM内存配置 - export JVM_XMS=256m - export JVM_XMX=512m - ``` - -4. **数据库连接失败** - ```bash - # 检查MySQL容器状态 - docker logs emotion-mysql - - # 重新初始化数据库 - ./deploy.sh init-db - ``` - -### 查看详细日志 - -```bash -# 查看部署日志 -./deploy.sh logs --debug - -# 查看容器状态 -docker ps -a - -# 查看容器日志 -docker logs emotion-gateway -docker logs emotion-mysql -docker logs emotion-nacos -``` - -## 开发调试 - -### 本地开发模式 - -```bash -# 启用调试模式 -export DEBUG_MODE=true -./deploy.sh --debug -``` - -### 修改配置 - -1. 修改后端配置:`backend/config/application-test.yml` -2. 修改前端配置:`frontend/config/test.env.js` -3. 修改环境变量:`.env.test` - -### 重新构建 - -```bash -# 重新构建并部署 -./deploy.sh build -./deploy.sh restart -``` - -## 生产环境部署 - -1. 修改 `.env.test` 中的配置 -2. 配置实际的服务器IP -3. 配置HTTPS证书(如需要) -4. 配置域名解析(如需要) -5. 调整资源限制和性能参数 - -## 技术支持 - -如遇到问题,请检查: - -1. 系统资源是否充足 -2. 网络连接是否正常 -3. 配置文件是否正确 -4. 日志中的错误信息 - -更多详细信息请参考: -- `DEPLOY.md` - 详细部署文档 -- `QUICK_START.md` - 快速开始指南 diff --git a/packages/emotion-museum-1.0.0-20250713_111829/VERSION.txt b/packages/emotion-museum-1.0.0-20250713_111829/VERSION.txt deleted file mode 100644 index bd42bdc..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/VERSION.txt +++ /dev/null @@ -1,29 +0,0 @@ -情绪博物馆 - 版本信息 -======================== - -项目名称: emotion-museum -版本号: 1.0.0 -构建时间: 20250713_111829 -构建环境: Darwin x86_64 - -前端信息: -- Node.js: v16.20.2 -- npm: 8.19.4 - -后端信息: -- Java: java 20 2023-03-21 -- Maven: Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) - -Git信息: -- 分支: main -- 提交: ec81706 -- 时间: Mon May 26 20:04:17 2025 +0800 - -文件清单: -- 前端构建产物: frontend/ -- 后端JAR文件: backend/ -- 数据库脚本: database/ -- 部署配置: deploy/ -- Docker配置: docker-compose*.yml -- 部署脚本: *.sh -- 说明文档: *.md diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/ai-Dockerfile b/packages/emotion-museum-1.0.0-20250713_111829/backend/ai-Dockerfile deleted file mode 100644 index 982b5e7..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/ai-Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -# AI服务Dockerfile - 测试环境版本 -FROM openjdk:17-jdk-alpine - -# 构建参数 -ARG JAR_FILE=emotion-ai-1.0.0.jar -ARG CONFIG_FILE=config/ai-test.yml - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 创建必要的目录 -RUN mkdir -p /app/config /data/logs/emotion-museum /tmp/emotion-ai && \ - chown -R emotion:emotion /app /data /tmp/emotion-ai - -# 复制jar文件和配置文件 -COPY ${JAR_FILE} app.jar -COPY ${CONFIG_FILE} config/application.yml - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9002/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9002 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms${JVM_XMS:-512m}", "-Xmx${JVM_XMX:-1024m}", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE:-test}", \ - "-Dspring.config.location=classpath:/application.yml,file:/app/config/application.yml", \ - "-Dlogging.file.path=/data/logs/emotion-museum", \ - "-Dfile.temp-dir=/tmp/emotion-ai", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/ai-test.yml b/packages/emotion-museum-1.0.0-20250713_111829/backend/config/ai-test.yml deleted file mode 100644 index 5ecb25c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/ai-test.yml +++ /dev/null @@ -1,221 +0,0 @@ -# AI服务测试环境配置 -server: - port: 9002 - -spring: - application: - name: emotion-ai - profiles: - active: test - cloud: - nacos: - discovery: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - namespace: emotion-test - group: TEST_GROUP - enabled: true - ip: ${SERVER_IP:localhost} - port: ${server.port} - metadata: - version: 1.0.0 - environment: test - config: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - file-extension: yml - namespace: emotion-test - group: TEST_GROUP - enabled: true - datasource: - url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: ${MYSQL_USERNAME:emotion} - password: ${MYSQL_PASSWORD:emotion123} - driver-class-name: com.mysql.cj.jdbc.Driver - hikari: - pool-name: EmotionAITestHikariCP - minimum-idle: 3 - maximum-pool-size: 15 - auto-commit: true - idle-timeout: 30000 - max-lifetime: 1800000 - connection-timeout: 30000 - connection-test-query: SELECT 1 - data: - redis: - host: ${REDIS_HOST:localhost} - port: ${REDIS_PORT:6379} - password: ${REDIS_PASSWORD:} - database: 2 - timeout: 6000ms - lettuce: - pool: - max-active: 8 - max-wait: -1ms - max-idle: 8 - min-idle: 2 - -# MyBatis Plus配置 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - cache-enabled: true - call-setters-on-nulls: true - jdbc-type-for-null: 'null' - log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: is_deleted - logic-delete-value: 1 - logic-not-delete-value: 0 - banner: false - mapper-locations: classpath*:mapper/**/*.xml - -# 日志配置 -logging: - level: - root: INFO - com.emotionmuseum: INFO - com.emotionmuseum.ai.mapper: DEBUG - org.springframework.ai: INFO - org.springframework.web: INFO - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: - name: /data/logs/emotion-museum/ai-service.log - max-size: 100MB - max-history: 30 - -# 管理端点 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus,env,configprops - base-path: /actuator - endpoint: - health: - show-details: always - show-components: always - metrics: - export: - prometheus: - enabled: true - health: - redis: - enabled: true - db: - enabled: true - -# COZE AI配置 -coze: - api: - token: ${COZE_API_TOKEN:your-coze-api-token} - base-url: https://api.coze.cn - bot-id: 7523042446285439016 - workflow-id: 7523047462895796287 - timeout: 30000 - retry-count: 3 - max-tokens: 2000 - temperature: 0.7 - endpoints: - chat: /v3/chat - bot-info: /v1/bot/get_online_info - conversation: /v1/conversation/create - rate-limit: - requests-per-minute: 60 - requests-per-hour: 1000 - -# Spring AI配置 -spring: - ai: - retry: - max-attempts: 3 - backoff: - initial-interval: 1000 - multiplier: 2 - max-interval: 10000 - timeout: 30s - -# 对话配置 -conversation: - max-history: 20 - session-timeout: 1800 - guest-session-timeout: 600 - max-message-length: 2000 - auto-save: true - cache: - enabled: true - ttl: 3600 - -# 情感分析配置 -emotion: - analysis: - enabled: true - confidence-threshold: 0.6 - cache-results: true - cache-ttl: 1800 - categories: - - joy - - sadness - - anger - - fear - - surprise - - disgust - - neutral - -# 限流配置 -rate-limit: - enabled: true - default-limit: 20 - default-window: 60 - api-limits: - "/chat": 10 - "/emotion/analyze": 30 - "/conversation/create": 5 - -# 缓存配置 -cache: - redis: - default-ttl: 3600 - conversation-ttl: 1800 - emotion-analysis-ttl: 7200 - user-session-ttl: 3600 - -# 安全配置 -security: - ignore-urls: - - /actuator/** - - /api/public/** - - /swagger-ui/** - - /v3/api-docs/** - -# 文件配置 -file: - temp-dir: /tmp/emotion-ai - max-size: 5MB - cleanup-interval: 3600 - -# 监控告警配置 -alert: - enabled: true - thresholds: - api-response-time: 5000 - error-rate: 10 - coze-api-failure-rate: 20 - notification: - enabled: false - -# 测试环境特殊配置 -test: - debug: - enabled: true - log-requests: true - log-responses: false - log-ai-interactions: true - mock: - enabled: false - coze-api: false - data: - auto-init: true - sample-conversations: true diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-docker.yml b/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-docker.yml deleted file mode 100644 index 640b552..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-docker.yml +++ /dev/null @@ -1,80 +0,0 @@ -# 用户服务 Docker环境配置 -server: - port: 9001 - -spring: - application: - name: emotion-user - profiles: - active: docker - cloud: - nacos: - discovery: - server-addr: ${NACOS_SERVER_ADDR:nacos:8848} - namespace: public - group: DEFAULT_GROUP - config: - server-addr: ${NACOS_SERVER_ADDR:nacos:8848} - file-extension: yml - namespace: public - group: DEFAULT_GROUP - datasource: - url: jdbc:mysql://${MYSQL_HOST:mysql}:${MYSQL_PORT:3306}/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: root - password: 123456 - driver-class-name: com.mysql.cj.jdbc.Driver - hikari: - pool-name: EmotionUserHikariCP - minimum-idle: 5 - maximum-pool-size: 20 - auto-commit: true - idle-timeout: 30000 - max-lifetime: 1800000 - connection-timeout: 30000 - data: - redis: - host: ${REDIS_HOST:redis} - port: ${REDIS_PORT:6379} - password: - database: 2 - timeout: 6000ms - lettuce: - pool: - max-active: 8 - max-wait: -1ms - max-idle: 8 - min-idle: 0 - -# MyBatis Plus配置 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - cache-enabled: false - call-setters-on-nulls: true - jdbc-type-for-null: 'null' - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: isDeleted - logic-delete-value: 1 - logic-not-delete-value: 0 - banner: false - -# 日志配置 -logging: - level: - com.emotionmuseum: DEBUG - com.emotionmuseum.user.mapper: DEBUG - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n" - -# 管理端点 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus - endpoint: - health: - show-details: always diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-test.yml b/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-test.yml deleted file mode 100644 index 093debd..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application-test.yml +++ /dev/null @@ -1,205 +0,0 @@ -# 情绪博物馆测试环境配置 -# 适用于测试环境部署,使用IP访问,不使用域名 - -server: - port: 9001 - -spring: - application: - name: emotion-user - profiles: - active: test - cloud: - nacos: - discovery: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - namespace: emotion-test - group: TEST_GROUP - enabled: true - ip: ${SERVER_IP:localhost} - port: ${server.port} - metadata: - version: 1.0.0 - environment: test - config: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - file-extension: yml - namespace: emotion-test - group: TEST_GROUP - enabled: true - refresh-enabled: true - datasource: - url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: ${MYSQL_USERNAME:emotion} - password: ${MYSQL_PASSWORD:emotion123} - driver-class-name: com.mysql.cj.jdbc.Driver - hikari: - pool-name: EmotionUserTestHikariCP - minimum-idle: 3 - maximum-pool-size: 15 - auto-commit: true - idle-timeout: 30000 - max-lifetime: 1800000 - connection-timeout: 30000 - connection-test-query: SELECT 1 - data: - redis: - host: ${REDIS_HOST:localhost} - port: ${REDIS_PORT:6379} - password: ${REDIS_PASSWORD:} - database: 1 - timeout: 6000ms - lettuce: - pool: - max-active: 8 - max-wait: -1ms - max-idle: 8 - min-idle: 2 - -# MyBatis Plus配置 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - cache-enabled: true - call-setters-on-nulls: true - jdbc-type-for-null: 'null' - log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: is_deleted - logic-delete-value: 1 - logic-not-delete-value: 0 - banner: false - mapper-locations: classpath*:mapper/**/*.xml - -# 日志配置 -logging: - level: - root: INFO - com.emotionmuseum: INFO - com.emotionmuseum.user.mapper: DEBUG - org.springframework.cloud.gateway: INFO - org.springframework.web: INFO - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: - name: /data/logs/emotion-museum/user-service.log - max-size: 100MB - max-history: 30 - -# 管理端点 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus,env,configprops - base-path: /actuator - endpoint: - health: - show-details: always - show-components: always - metrics: - export: - prometheus: - enabled: true - health: - redis: - enabled: true - db: - enabled: true - -# JWT配置 -jwt: - secret: ${JWT_SECRET:emotion-museum-test-secret-key-2025} - expiration: ${JWT_EXPIRATION:7200} - refresh-expiration: ${JWT_REFRESH_EXPIRATION:86400} - -# COZE AI配置 -coze: - api: - token: ${COZE_API_TOKEN:your-coze-api-token} - base-url: https://api.coze.cn - bot-id: 7523042446285439016 - workflow-id: 7523047462895796287 - timeout: 30000 - retry-count: 3 - -# 跨域配置 -cors: - allowed-origins: - - "http://localhost:3000" - - "http://localhost:8080" - - "http://${SERVER_IP:localhost}" - - "http://${SERVER_IP:localhost}:3000" - - "http://${SERVER_IP:localhost}:8080" - allowed-methods: - - GET - - POST - - PUT - - DELETE - - OPTIONS - allowed-headers: - - "*" - allow-credentials: true - max-age: 3600 - -# 文件上传配置 -file: - upload: - path: /data/uploads/emotion-museum - max-size: 10MB - allowed-types: - - image/jpeg - - image/png - - image/gif - - image/webp - -# 缓存配置 -cache: - redis: - default-ttl: 3600 - user-info-ttl: 1800 - conversation-ttl: 7200 - -# 限流配置 -rate-limit: - enabled: true - default-limit: 100 - default-window: 60 - api-limits: - "/api/auth/login": 10 - "/api/auth/register": 5 - "/api/ai/chat": 20 - -# 安全配置 -security: - ignore-urls: - - /actuator/** - - /api/auth/login - - /api/auth/register - - /api/public/** - - /swagger-ui/** - - /v3/api-docs/** - -# 监控告警配置 -alert: - enabled: true - thresholds: - cpu-usage: 80 - memory-usage: 85 - disk-usage: 90 - response-time: 2000 - -# 测试环境特殊配置 -test: - debug: - enabled: true - log-requests: true - log-responses: false - mock: - enabled: false - data: - auto-init: true - sample-data: true diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application.yml b/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application.yml deleted file mode 100644 index 0c4894c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/application.yml +++ /dev/null @@ -1,79 +0,0 @@ -server: - port: 9001 - -spring: - application: - name: emotion-user - profiles: - active: dev - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true - username: root - password: 123456 - hikari: - minimum-idle: 5 - maximum-pool-size: 20 - idle-timeout: 600000 - max-lifetime: 1800000 - connection-timeout: 30000 - data: - redis: - host: localhost - port: 6379 - database: 0 - timeout: 3000ms - lettuce: - pool: - max-active: 20 - max-idle: 10 - min-idle: 5 - max-wait: 3000ms - cloud: - nacos: - discovery: - server-addr: localhost:8848 - namespace: emotion-dev - group: DEFAULT_GROUP - enabled: false - config: - enabled: false - -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: deleted - logic-delete-value: 1 - logic-not-delete-value: 0 - -# 监控配置 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus - endpoint: - health: - show-details: always - metrics: - export: - prometheus: - enabled: true - -# 日志配置 -logging: - level: - com.emotionmuseum: debug - com.baomidou.mybatisplus: debug - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n" - -# JWT配置 -jwt: - secret: emotion-museum-secret-key-2025 - expiration: 86400 - refresh-expiration: 604800 diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/gateway-test.yml b/packages/emotion-museum-1.0.0-20250713_111829/backend/config/gateway-test.yml deleted file mode 100644 index 5a4304c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/config/gateway-test.yml +++ /dev/null @@ -1,215 +0,0 @@ -# 网关服务测试环境配置 -server: - port: 9000 - -spring: - application: - name: emotion-gateway - profiles: - active: test - cloud: - nacos: - discovery: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - namespace: emotion-test - group: TEST_GROUP - enabled: true - ip: ${SERVER_IP:localhost} - port: ${server.port} - metadata: - version: 1.0.0 - environment: test - config: - server-addr: ${NACOS_SERVER_ADDR:localhost:8848} - file-extension: yml - namespace: emotion-test - group: TEST_GROUP - enabled: true - gateway: - discovery: - locator: - enabled: true - lower-case-service-id: true - routes: - # 用户服务路由 - - id: emotion-user - uri: lb://emotion-user - predicates: - - Path=/api/user/** - filters: - - StripPrefix=2 - - name: RequestRateLimiter - args: - redis-rate-limiter.replenishRate: 10 - redis-rate-limiter.burstCapacity: 20 - key-resolver: "#{@ipKeyResolver}" - - # AI服务路由 - - id: emotion-ai - uri: lb://emotion-ai - predicates: - - Path=/api/ai/** - filters: - - StripPrefix=2 - - name: RequestRateLimiter - args: - redis-rate-limiter.replenishRate: 5 - redis-rate-limiter.burstCapacity: 10 - key-resolver: "#{@ipKeyResolver}" - - # 认证服务路由 - - id: emotion-auth - uri: lb://emotion-user - predicates: - - Path=/api/auth/** - filters: - - StripPrefix=2 - - # 公共API路由 - - id: emotion-public - uri: lb://emotion-user - predicates: - - Path=/api/public/** - filters: - - StripPrefix=2 - - # 健康检查路由 - - id: health-check - uri: lb://emotion-gateway - predicates: - - Path=/health - filters: - - SetPath=/actuator/health - - # 全局过滤器配置 - default-filters: - - name: GlobalRequestLog - - name: GlobalResponseLog - - name: AddResponseHeader - args: - name: X-Response-Server - value: emotion-gateway-test - - data: - redis: - host: ${REDIS_HOST:localhost} - port: ${REDIS_PORT:6379} - password: ${REDIS_PASSWORD:} - database: 0 - timeout: 6000ms - lettuce: - pool: - max-active: 8 - max-wait: -1ms - max-idle: 8 - min-idle: 2 - -# 日志配置 -logging: - level: - root: INFO - com.emotionmuseum: INFO - org.springframework.cloud.gateway: INFO - org.springframework.web.reactive: INFO - reactor.netty: INFO - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level [%logger{36}] - %msg%n" - file: - name: /data/logs/emotion-museum/gateway-service.log - max-size: 100MB - max-history: 30 - -# 管理端点 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus,gateway,env - base-path: /actuator - endpoint: - health: - show-details: always - show-components: always - gateway: - enabled: true - metrics: - export: - prometheus: - enabled: true - -# 跨域配置 -cors: - configurations: - '[/**]': - allowed-origins: - - "http://localhost:3000" - - "http://localhost:8080" - - "http://${SERVER_IP:localhost}" - - "http://${SERVER_IP:localhost}:3000" - - "http://${SERVER_IP:localhost}:8080" - allowed-methods: - - GET - - POST - - PUT - - DELETE - - OPTIONS - allowed-headers: - - "*" - allow-credentials: true - max-age: 3600 - -# 限流配置 -rate-limit: - enabled: true - default-replenish-rate: 10 - default-burst-capacity: 20 - routes: - emotion-user: - replenish-rate: 20 - burst-capacity: 40 - emotion-ai: - replenish-rate: 5 - burst-capacity: 10 - -# 熔断配置 -resilience4j: - circuitbreaker: - instances: - emotion-user: - failure-rate-threshold: 50 - wait-duration-in-open-state: 30s - sliding-window-size: 10 - minimum-number-of-calls: 5 - emotion-ai: - failure-rate-threshold: 60 - wait-duration-in-open-state: 60s - sliding-window-size: 10 - minimum-number-of-calls: 3 - timelimiter: - instances: - emotion-user: - timeout-duration: 10s - emotion-ai: - timeout-duration: 30s - -# 安全配置 -security: - ignore-urls: - - /actuator/** - - /api/auth/login - - /api/auth/register - - /api/public/** - - /health - jwt: - secret: ${JWT_SECRET:emotion-museum-test-secret-key-2025} - expiration: ${JWT_EXPIRATION:7200} - -# 测试环境特殊配置 -test: - debug: - enabled: true - log-requests: true - log-responses: false - mock: - enabled: false diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-ai-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-ai-1.0.0.jar deleted file mode 100644 index 57c6118..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-ai-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-gateway-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-gateway-1.0.0.jar deleted file mode 100644 index 8c1574f..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-gateway-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-user-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-user-1.0.0.jar deleted file mode 100644 index c0e563f..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_111829/backend/emotion-user-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/gateway-Dockerfile b/packages/emotion-museum-1.0.0-20250713_111829/backend/gateway-Dockerfile deleted file mode 100644 index 6bb5e8a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/gateway-Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -# 网关服务Dockerfile - 测试环境版本 -FROM openjdk:17-jdk-alpine - -# 构建参数 -ARG JAR_FILE=emotion-gateway-1.0.0.jar -ARG CONFIG_FILE=config/gateway-test.yml - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 创建必要的目录 -RUN mkdir -p /app/config /data/logs/emotion-museum && \ - chown -R emotion:emotion /app /data - -# 复制jar文件和配置文件 -COPY ${JAR_FILE} app.jar -COPY ${CONFIG_FILE} config/application.yml - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9000/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9000 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms${JVM_XMS:-512m}", "-Xmx${JVM_XMX:-1024m}", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE:-test}", \ - "-Dspring.config.location=classpath:/application.yml,file:/app/config/application.yml", \ - "-Dlogging.file.path=/data/logs/emotion-museum", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_111829/backend/user-Dockerfile b/packages/emotion-museum-1.0.0-20250713_111829/backend/user-Dockerfile deleted file mode 100644 index b02b2b5..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/backend/user-Dockerfile +++ /dev/null @@ -1,49 +0,0 @@ -# 用户服务Dockerfile - 测试环境版本 -FROM openjdk:17-jdk-alpine - -# 构建参数 -ARG JAR_FILE=emotion-user-1.0.0.jar -ARG CONFIG_FILE=config/application-test.yml - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 创建必要的目录 -RUN mkdir -p /app/config /data/logs/emotion-museum /data/uploads/emotion-museum && \ - chown -R emotion:emotion /app /data - -# 复制jar文件和配置文件 -COPY ${JAR_FILE} app.jar -COPY ${CONFIG_FILE} config/application.yml - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9001/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9001 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms${JVM_XMS:-512m}", "-Xmx${JVM_XMX:-1024m}", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=${SPRING_PROFILES_ACTIVE:-test}", \ - "-Dspring.config.location=classpath:/application.yml,file:/app/config/application.yml", \ - "-Dlogging.file.path=/data/logs/emotion-museum", \ - "-Dfile.upload.path=/data/uploads/emotion-museum", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_111829/database/mysql_emotion_museum_final.sql b/packages/emotion-museum-1.0.0-20250713_111829/database/mysql_emotion_museum_final.sql deleted file mode 100644 index a7465ba..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/database/mysql_emotion_museum_final.sql +++ /dev/null @@ -1,819 +0,0 @@ --- ============================================================================ --- 情绪博物馆数据库完整部署脚本 --- 版本: v3.0 Final (雪花算法主键版本) - 开发版本 --- 创建时间: 2025-07-13 --- 数据库类型: MySQL 8.0+ --- 说明: 包含完整表结构、索引、初始数据的一体化部署脚本 --- 主键类型: VARCHAR(36) 使用雪花算法生成,避免前端精度丢失问题 --- 关联策略: 不使用外键约束,通过代码中的ID字段关联 --- 特性: 开发阶段 - 先删除表再重新创建,确保表结构是最新的 --- 警告: 此脚本会删除现有表和数据,仅适用于开发环境! --- ============================================================================ --- 设置SQL模式和字符集 -SET - SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO'; - -SET - AUTOCOMMIT = 0; - -START TRANSACTION; - -SET - time_zone = "+00:00"; - --- 创建数据库 -CREATE DATABASE IF NOT EXISTS emotion_museum DEFAULT CHARACTER -SET - utf8mb4 COLLATE utf8mb4_unicode_ci; - -USE emotion_museum; - --- ============================================================================ --- 数据库设计原则 --- ============================================================================ --- 1. 主键策略: 使用VARCHAR(36)雪花算法ID,避免前端精度丢失 --- 2. 关联策略: 不使用外键约束,通过代码中的ID字段维护关联关系 --- 3. 公共字段: 所有表继承BaseEntity的公共字段 --- 4. 索引优化: 为查询频繁的字段创建合适的索引 --- 5. 字符集: 统一使用utf8mb4支持emoji和特殊字符 --- ============================================================================ --- 删除现有表(开发阶段确保表结构最新) --- 警告: 这会删除所有数据! --- ============================================================================ -DROP TABLE IF EXISTS user_stats; - -DROP TABLE IF EXISTS guest_user; - -DROP TABLE IF EXISTS reward; - -DROP TABLE IF EXISTS achievement; - -DROP TABLE IF EXISTS comment; - -DROP TABLE IF EXISTS community_post; - -DROP TABLE IF EXISTS location_pin; - -DROP TABLE IF EXISTS topic_interaction; - -DROP TABLE IF EXISTS growth_topic; - -DROP TABLE IF EXISTS emotion_record; - -DROP TABLE IF EXISTS emotion_analysis; - -DROP TABLE IF EXISTS coze_api_call; - -DROP TABLE IF EXISTS message; - -DROP TABLE IF EXISTS conversation; - -DROP TABLE IF EXISTS user; - --- ============================================================================ --- 1. 用户表 (user) --- ============================================================================ -CREATE TABLE user ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - account VARCHAR(50) NOT NULL UNIQUE, -- 账号 - password VARCHAR(255) NOT NULL, -- 密码(加密后) - username VARCHAR(50) NOT NULL UNIQUE, -- 用户名 - email VARCHAR(100) NOT NULL UNIQUE, -- 邮箱 - phone VARCHAR(20) UNIQUE, -- 手机号 - avatar VARCHAR(500), -- 头像URL - nickname VARCHAR(50) NOT NULL, -- 昵称 - birth_date DATE, -- 生日 - location VARCHAR(100), -- 所在地 - bio TEXT, -- 个人简介 - member_level VARCHAR(20) NOT NULL DEFAULT 'free', -- 会员等级 - total_days INT NOT NULL DEFAULT 0, -- 使用天数 - -- 成长数据 - self_awareness DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 自我感知 - emotional_resilience DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 情绪韧性 - action_power DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 行动力 - empathy DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 共情力 - life_enthusiasm DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 生活热度 - -- 状态字段 - status TINYINT NOT NULL DEFAULT 1, -- 状态: 0-禁用, 1-正常 - is_verified TINYINT NOT NULL DEFAULT 0, -- 是否已验证: 0-未验证, 1-已验证 - last_active_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表'; - --- ============================================================================ --- 2. 对话表 (conversation) --- 关联说明: user_id 关联 user.id,通过代码逻辑维护关联关系 --- ============================================================================ -CREATE TABLE conversation ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID (关联user.id) - user_type VARCHAR(20) NOT NULL DEFAULT 'registered', -- 用户类型: registered-注册用户, guest-访客用户 - title VARCHAR(200), -- 对话标题 - type VARCHAR(50) NOT NULL DEFAULT 'emotion_chat', -- 对话类型 - status VARCHAR(20) NOT NULL DEFAULT 'active', -- 状态: active-活跃, ended-结束, archived-归档 - coze_conversation_id VARCHAR(100), -- Coze对话ID - bot_id VARCHAR(50), -- 使用的Bot ID - workflow_id VARCHAR(50), -- 使用的Workflow ID - initial_message TEXT, -- 初始消息 - context TEXT, -- 上下文信息 - primary_emotion VARCHAR(50), -- 主要情绪 - emotion_intensity DECIMAL(3, 2), -- 情绪强度 - emotion_trend VARCHAR(50), -- 情绪趋势 - keywords JSON, -- 关键词 - ai_insights TEXT, -- AI洞察 - confidence DECIMAL(3, 2), -- 分析置信度 - start_time DATETIME, -- 开始时间 - end_time DATETIME, -- 结束时间 - last_active_time DATETIME DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - message_count INT NOT NULL DEFAULT 0, -- 消息数量 - total_tokens INT DEFAULT 0, -- 总Token使用量 - total_cost DECIMAL(10, 4) DEFAULT 0.0000, -- 总费用 - client_ip VARCHAR(45), -- 客户端IP地址 (支持IPv6) - user_agent TEXT, -- 用户代理信息 - summary TEXT, -- 对话摘要 - tags JSON, -- 标签 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '对话表'; - --- ============================================================================ --- 3. 消息表 (message) --- 关联说明: conversation_id 关联 conversation.id,通过代码逻辑维护关联关系 --- ============================================================================ -CREATE TABLE message ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - conversation_id VARCHAR(36) NOT NULL, -- 对话ID (关联conversation.id) - content TEXT NOT NULL, -- 消息内容 - type VARCHAR(50) NOT NULL DEFAULT 'text', -- 消息类型 - sender VARCHAR(20) NOT NULL, -- 发送者: user-用户, assistant-AI助手 - timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 消息时间戳 - coze_chat_id VARCHAR(50), -- Coze平台的聊天ID - coze_message_id VARCHAR(50), -- Coze平台的消息ID - status VARCHAR(20) DEFAULT 'sent', -- 消息状态: sending/sent/failed/processing - error_message TEXT, -- 错误信息 - emotion_score DECIMAL(3, 2), -- 情绪评分 - emotion_type VARCHAR(50), -- 情绪类型 - emotion_confidence DECIMAL(3, 2), -- 情绪分析置信度 - prompt_tokens INT DEFAULT 0, -- 输入Token数 - completion_tokens INT DEFAULT 0, -- 输出Token数 - total_tokens INT DEFAULT 0, -- 总Token数 - api_cost DECIMAL(10, 6) DEFAULT 0.000000, -- API调用费用 - is_read TINYINT NOT NULL DEFAULT 0, -- 是否已读: 0-未读, 1-已读 - parent_message_id VARCHAR(36), -- 父消息ID(用于回复链) - emotion_analysis JSON, -- 情绪分析结果 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '消息表'; - --- ============================================================================ --- 4. Coze API调用记录表 (coze_api_call) --- ============================================================================ -CREATE TABLE coze_api_call ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - conversation_id VARCHAR(36), -- 对话ID - message_id VARCHAR(36), -- 消息ID - -- Coze API 信息 - coze_chat_id VARCHAR(50), -- Coze聊天ID - coze_conversation_id VARCHAR(50), -- Coze对话ID - bot_id VARCHAR(50) NOT NULL, -- Bot ID - workflow_id VARCHAR(50), -- Workflow ID - user_id VARCHAR(36) NOT NULL, -- 用户ID - -- 请求信息 - request_type VARCHAR(20) NOT NULL, -- 请求类型: chat/stream/retrieve/messages - request_url VARCHAR(500), -- 请求URL - request_body JSON, -- 请求体 - request_headers JSON, -- 请求头 - -- 响应信息 - response_status INT, -- HTTP状态码 - response_body JSON, -- 响应体 - response_headers JSON, -- 响应头 - -- 状态和时间 - status VARCHAR(20) NOT NULL, -- 调用状态: pending/success/failed/timeout - start_time DATETIME NOT NULL, -- 开始时间 - end_time DATETIME, -- 结束时间 - duration_ms INT, -- 耗时(毫秒) - -- 使用统计 - prompt_tokens INT DEFAULT 0, -- 输入Token数 - completion_tokens INT DEFAULT 0, -- 输出Token数 - total_tokens INT DEFAULT 0, -- 总Token数 - cost DECIMAL(10, 6) DEFAULT 0.000000, -- 费用 - -- 错误信息 - error_code VARCHAR(50), -- 错误代码 - error_message TEXT, -- 错误信息 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'Coze API调用记录表'; - --- ============================================================================ --- 5. 情绪分析表 (emotion_analysis) --- ============================================================================ -CREATE TABLE emotion_analysis ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - message_id VARCHAR(36), -- 关联消息ID - text TEXT NOT NULL, -- 分析文本 - primary_emotion VARCHAR(50), -- 主要情绪 - intensity DECIMAL(3, 2), -- 情绪强度 - polarity VARCHAR(20), -- 情绪极性: positive-积极, negative-消极, neutral-中性 - confidence DECIMAL(3, 2), -- 置信度 - emotions JSON, -- 情绪分布详情 - keywords JSON, -- 关键词列表 - suggestion TEXT, -- 建议 - analysis_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 分析时间 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '情绪分析表'; - --- ============================================================================ --- 6. 情绪记录表 (emotion_record) --- ============================================================================ -CREATE TABLE emotion_record ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - record_date DATE NOT NULL, -- 记录日期 - emotion_type VARCHAR(50) NOT NULL, -- 情绪类型 - intensity DECIMAL(3, 2) NOT NULL, -- 情绪强度 - triggers TEXT, -- 触发因素 - description TEXT, -- 描述 - tags JSON, -- 标签 - weather VARCHAR(50), -- 天气 - location VARCHAR(100), -- 地点 - activity VARCHAR(100), -- 活动 - people VARCHAR(200), -- 相关人物 - notes TEXT, -- 备注 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '情绪记录表'; - --- ============================================================================ --- 7. 成长课题表 (growth_topic) --- ============================================================================ -CREATE TABLE growth_topic ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - title VARCHAR(100) NOT NULL, -- 课题标题 - category VARCHAR(50) NOT NULL, -- 分类 - difficulty VARCHAR(20) NOT NULL, -- 难度: easy-简单, medium-中等, hard-困难 - description TEXT, -- 描述 - content TEXT, -- 内容 - duration_days INT, -- 持续天数 - unlock_conditions JSON, -- 解锁条件 - is_unlocked TINYINT NOT NULL DEFAULT 1, -- 是否解锁 - progress DECIMAL(5, 2) NOT NULL DEFAULT 0.00, -- 进度百分比 - completed_time DATETIME, -- 完成时间 - rewards JSON, -- 奖励 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '成长课题表'; - --- ============================================================================ --- 8. 课题互动表 (topic_interaction) --- ============================================================================ -CREATE TABLE topic_interaction ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - topic_id VARCHAR(36) NOT NULL, -- 课题ID - type VARCHAR(50) NOT NULL, -- 互动类型 - content TEXT, -- 内容 - user_input TEXT, -- 用户输入 - ai_response TEXT, -- AI回应 - rating INT, -- 评分 - feedback TEXT, -- 反馈 - completed_time DATETIME, -- 完成时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '课题互动表'; - --- ============================================================================ --- 9. 地点标记表 (location_pin) --- ============================================================================ -CREATE TABLE location_pin ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - name VARCHAR(100) NOT NULL, -- 地点名称 - type VARCHAR(50) NOT NULL, -- 地点类型 - category VARCHAR(50), -- 地点分类 - latitude DECIMAL(10, 8) NOT NULL, -- 纬度 - longitude DECIMAL(11, 8) NOT NULL, -- 经度 - address VARCHAR(200), -- 地址 - description TEXT, -- 描述 - created_by VARCHAR(36), -- 创建者 - likes INT NOT NULL DEFAULT 0, -- 点赞数 - visits INT NOT NULL DEFAULT 0, -- 访问数 - is_bookmarked TINYINT NOT NULL DEFAULT 0, -- 是否收藏 - last_visit_time DATETIME, -- 最后访问时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '地点标记表'; - --- ============================================================================ --- 10. 社区帖子表 (community_post) --- ============================================================================ -CREATE TABLE community_post ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - location_id VARCHAR(36), -- 地点ID - title VARCHAR(200), -- 标题 - content TEXT NOT NULL, -- 内容 - type VARCHAR(50) NOT NULL, -- 帖子类型 - images JSON, -- 图片列表 - tags JSON, -- 标签 - likes INT NOT NULL DEFAULT 0, -- 点赞数 - view_count INT NOT NULL DEFAULT 0, -- 浏览数 - comment_count INT NOT NULL DEFAULT 0, -- 评论数 - is_private TINYINT NOT NULL DEFAULT 0, -- 是否私密 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '社区帖子表'; - --- ============================================================================ --- 11. 评论表 (comment) --- ============================================================================ -CREATE TABLE comment ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - post_id VARCHAR(36) NOT NULL, -- 帖子ID - user_id VARCHAR(36) NOT NULL, -- 用户ID - content TEXT NOT NULL, -- 评论内容 - reply_to_id VARCHAR(36), -- 回复的评论ID - likes INT NOT NULL DEFAULT 0, -- 点赞数 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '评论表'; - --- ============================================================================ --- 12. 成就表 (achievement) --- ============================================================================ -CREATE TABLE achievement ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - title VARCHAR(100) NOT NULL, -- 成就标题 - description TEXT, -- 描述 - category VARCHAR(50) NOT NULL, -- 分类 - icon VARCHAR(200), -- 图标 - rarity VARCHAR(20) NOT NULL, -- 稀有度 - condition_type VARCHAR(50), -- 条件类型 - condition_value JSON, -- 条件值 - rewards JSON, -- 奖励 - unlocked_time DATETIME, -- 解锁时间 - progress DECIMAL(5, 2) NOT NULL DEFAULT 0.00, -- 进度 - is_hidden TINYINT NOT NULL DEFAULT 0, -- 是否隐藏 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '成就表'; - --- ============================================================================ --- 13. 奖励表 (reward) --- ============================================================================ -CREATE TABLE reward ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - topic_id VARCHAR(36), -- 课题ID - achievement_id VARCHAR(36), -- 成就ID - type VARCHAR(50) NOT NULL, -- 奖励类型 - name VARCHAR(100) NOT NULL, -- 奖励名称 - description TEXT, -- 描述 - icon VARCHAR(200), -- 图标 - rarity VARCHAR(20), -- 稀有度 - value JSON, -- 奖励值 - earned_time DATETIME, -- 获得时间 - is_new TINYINT NOT NULL DEFAULT 1, -- 是否新获得 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '奖励表'; - --- ============================================================================ --- 14. 访客用户表 (guest_user) --- ============================================================================ -CREATE TABLE guest_user ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - guest_user_id VARCHAR(50) NOT NULL UNIQUE, -- 访客用户ID (格式: guest_xxx) - ip_address VARCHAR(45) NOT NULL, -- 客户端IP地址 (支持IPv6) - user_agent TEXT, -- 用户代理信息 - nickname VARCHAR(50), -- 访客昵称 - avatar VARCHAR(500), -- 访客头像 - last_active_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - conversation_count INT NOT NULL DEFAULT 0, -- 会话数量 - message_count INT NOT NULL DEFAULT 0, -- 消息数量 - location VARCHAR(100), -- IP地址的地理位置信息 - device_info VARCHAR(200), -- 设备信息 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '访客用户表'; - --- ============================================================================ --- 15. 用户统计表 (user_stats) --- ============================================================================ -CREATE TABLE user_stats ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL UNIQUE, -- 用户ID - total_conversations INT NOT NULL DEFAULT 0, -- 总对话数 - total_messages INT NOT NULL DEFAULT 0, -- 总消息数 - total_emotions_recorded INT NOT NULL DEFAULT 0, -- 总情绪记录数 - topics_completed INT NOT NULL DEFAULT 0, -- 完成的课题数 - achievements_unlocked INT NOT NULL DEFAULT 0, -- 解锁的成就数 - total_points INT NOT NULL DEFAULT 0, -- 总积分 - consecutive_days INT NOT NULL DEFAULT 0, -- 连续使用天数 - max_consecutive_days INT NOT NULL DEFAULT 0, -- 最大连续天数 - locations_visited INT NOT NULL DEFAULT 0, -- 访问的地点数 - posts_created INT NOT NULL DEFAULT 0, -- 创建的帖子数 - comments_made INT NOT NULL DEFAULT 0, -- 评论数 - likes_received INT NOT NULL DEFAULT 0, -- 收到的点赞数 - social_interactions INT NOT NULL DEFAULT 0, -- 社交互动数 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户统计表'; - --- ============================================================================ --- 创建索引以提高查询性能 --- 注意: MySQL的CREATE INDEX不支持IF NOT EXISTS --- 如果索引已存在,重复执行会产生警告但不会中断脚本执行 --- ============================================================================ --- user表索引 -CREATE INDEX idx_user_account ON user (account); - -CREATE INDEX idx_user_username ON user (username); - -CREATE INDEX idx_user_email ON user (email); - -CREATE INDEX idx_user_phone ON user (phone); - -CREATE INDEX idx_user_last_active_time ON user (last_active_time); - -CREATE INDEX idx_user_create_time ON user (create_time); - -CREATE INDEX idx_user_member_level ON user (member_level); - -CREATE INDEX idx_user_status ON user (status); - -CREATE INDEX idx_user_is_verified ON user (is_verified); - -CREATE INDEX idx_user_create_by ON user (create_by); - -CREATE INDEX idx_user_update_by ON user (update_by); - -CREATE INDEX idx_user_is_deleted ON user (is_deleted); - --- conversation表索引 -CREATE INDEX idx_conversation_user_id ON conversation (user_id); - -CREATE INDEX idx_conversation_start_time ON conversation (start_time); - -CREATE INDEX idx_conversation_user_id_start_time ON conversation (user_id, start_time); - -CREATE INDEX idx_conversation_primary_emotion ON conversation (primary_emotion); - -CREATE INDEX idx_conversation_end_time ON conversation (end_time); - -CREATE INDEX idx_conversation_create_time ON conversation (create_time); - -CREATE INDEX idx_conversation_coze_conversation_id ON conversation (coze_conversation_id); - -CREATE INDEX idx_conversation_status ON conversation (status); - -CREATE INDEX idx_conversation_last_active_time ON conversation (last_active_time); - -CREATE INDEX idx_conversation_create_by ON conversation (create_by); - -CREATE INDEX idx_conversation_update_by ON conversation (update_by); - -CREATE INDEX idx_conversation_is_deleted ON conversation (is_deleted); - -CREATE INDEX idx_conversation_user_type ON conversation (user_type); - -CREATE INDEX idx_conversation_emotion_trend ON conversation (emotion_trend); - -CREATE INDEX idx_conversation_confidence ON conversation (confidence); - -CREATE INDEX idx_conversation_client_ip ON conversation (client_ip); - --- message表索引 -CREATE INDEX idx_message_conversation_id ON message (conversation_id); - -CREATE INDEX idx_message_timestamp ON message (timestamp); - -CREATE INDEX idx_message_conversation_id_timestamp ON message (conversation_id, timestamp); - -CREATE INDEX idx_message_sender ON message (sender); - -CREATE INDEX idx_message_type ON message (type); - -CREATE INDEX idx_message_is_read ON message (is_read); - -CREATE INDEX idx_message_create_time ON message (create_time); - -CREATE INDEX idx_message_coze_chat_id ON message (coze_chat_id); - -CREATE INDEX idx_message_status ON message (status); - -CREATE INDEX idx_message_parent_message_id ON message (parent_message_id); - -CREATE INDEX idx_message_create_by ON message (create_by); - -CREATE INDEX idx_message_update_by ON message (update_by); - -CREATE INDEX idx_message_is_deleted ON message (is_deleted); - --- coze_api_call表索引 -CREATE INDEX idx_coze_api_call_conversation_id ON coze_api_call (conversation_id); - -CREATE INDEX idx_coze_api_call_message_id ON coze_api_call (message_id); - -CREATE INDEX idx_coze_api_call_coze_chat_id ON coze_api_call (coze_chat_id); - -CREATE INDEX idx_coze_api_call_bot_id ON coze_api_call (bot_id); - -CREATE INDEX idx_coze_api_call_user_id ON coze_api_call (user_id); - -CREATE INDEX idx_coze_api_call_status ON coze_api_call (status); - -CREATE INDEX idx_coze_api_call_start_time ON coze_api_call (start_time); - --- emotion_analysis表索引 -CREATE INDEX idx_emotion_analysis_user_id ON emotion_analysis (user_id); - -CREATE INDEX idx_emotion_analysis_message_id ON emotion_analysis (message_id); - -CREATE INDEX idx_emotion_analysis_primary_emotion ON emotion_analysis (primary_emotion); - -CREATE INDEX idx_emotion_analysis_analysis_time ON emotion_analysis (analysis_time); - -CREATE INDEX idx_emotion_analysis_create_time ON emotion_analysis (create_time); - -CREATE INDEX idx_emotion_analysis_create_by ON emotion_analysis (create_by); - -CREATE INDEX idx_emotion_analysis_update_by ON emotion_analysis (update_by); - -CREATE INDEX idx_emotion_analysis_is_deleted ON emotion_analysis (is_deleted); - --- emotion_record表索引 -CREATE INDEX idx_emotion_record_user_id ON emotion_record (user_id); - -CREATE INDEX idx_emotion_record_date ON emotion_record (record_date); - -CREATE INDEX idx_emotion_record_emotion_type ON emotion_record (emotion_type); - -CREATE INDEX idx_emotion_record_user_id_date ON emotion_record (user_id, record_date); - -CREATE INDEX idx_emotion_record_user_id_emotion_type ON emotion_record (user_id, emotion_type); - -CREATE INDEX idx_emotion_record_intensity ON emotion_record (intensity); - -CREATE INDEX idx_emotion_record_create_time ON emotion_record (create_time); - -CREATE INDEX idx_emotion_record_create_by ON emotion_record (create_by); - -CREATE INDEX idx_emotion_record_update_by ON emotion_record (update_by); - -CREATE INDEX idx_emotion_record_is_deleted ON emotion_record (is_deleted); - --- growth_topic表索引 -CREATE INDEX idx_growth_topic_category ON growth_topic (category); - -CREATE INDEX idx_growth_topic_difficulty ON growth_topic (difficulty); - -CREATE INDEX idx_growth_topic_is_unlocked ON growth_topic (is_unlocked); - -CREATE INDEX idx_growth_topic_progress ON growth_topic (progress); - -CREATE INDEX idx_growth_topic_completed_time ON growth_topic (completed_time); - -CREATE INDEX idx_growth_topic_category_difficulty ON growth_topic (category, difficulty); - -CREATE INDEX idx_growth_topic_create_time ON growth_topic (create_time); - --- topic_interaction表索引 -CREATE INDEX idx_topic_interaction_topic_id ON topic_interaction (topic_id); - -CREATE INDEX idx_topic_interaction_type ON topic_interaction (type); - -CREATE INDEX idx_topic_interaction_completed_time ON topic_interaction (completed_time); - -CREATE INDEX idx_topic_interaction_rating ON topic_interaction (rating); - -CREATE INDEX idx_topic_interaction_topic_id_type ON topic_interaction (topic_id, type); - -CREATE INDEX idx_topic_interaction_create_time ON topic_interaction (create_time); - --- location_pin表索引 -CREATE INDEX idx_location_pin_latitude_longitude ON location_pin (latitude, longitude); - -CREATE INDEX idx_location_pin_type ON location_pin (type); - -CREATE INDEX idx_location_pin_category ON location_pin (category); - -CREATE INDEX idx_location_pin_created_by ON location_pin (created_by); - -CREATE INDEX idx_location_pin_likes ON location_pin (likes); - -CREATE INDEX idx_location_pin_visits ON location_pin (visits); - -CREATE INDEX idx_location_pin_is_bookmarked ON location_pin (is_bookmarked); - -CREATE INDEX idx_location_pin_type_category ON location_pin (type, category); - -CREATE INDEX idx_location_pin_create_time ON location_pin (create_time); - -CREATE INDEX idx_location_pin_last_visit_time ON location_pin (last_visit_time); - --- community_post表索引 -CREATE INDEX idx_community_post_user_id ON community_post (user_id); - -CREATE INDEX idx_community_post_location_id ON community_post (location_id); - -CREATE INDEX idx_community_post_create_time ON community_post (create_time); - -CREATE INDEX idx_community_post_type ON community_post (type); - -CREATE INDEX idx_community_post_likes ON community_post (likes); - -CREATE INDEX idx_community_post_view_count ON community_post (view_count); - -CREATE INDEX idx_community_post_is_private ON community_post (is_private); - -CREATE INDEX idx_community_post_user_id_create_time ON community_post (user_id, create_time); - -CREATE INDEX idx_community_post_type_create_time ON community_post (type, create_time); - --- comment表索引 -CREATE INDEX idx_comment_post_id ON comment (post_id); - -CREATE INDEX idx_comment_user_id ON comment (user_id); - -CREATE INDEX idx_comment_reply_to_id ON comment (reply_to_id); - -CREATE INDEX idx_comment_create_time ON comment (create_time); - -CREATE INDEX idx_comment_likes ON comment (likes); - -CREATE INDEX idx_comment_post_id_create_time ON comment (post_id, create_time); - --- achievement表索引 -CREATE INDEX idx_achievement_category ON achievement (category); - -CREATE INDEX idx_achievement_rarity ON achievement (rarity); - -CREATE INDEX idx_achievement_unlocked_time ON achievement (unlocked_time); - -CREATE INDEX idx_achievement_is_hidden ON achievement (is_hidden); - -CREATE INDEX idx_achievement_progress ON achievement (progress); - -CREATE INDEX idx_achievement_category_rarity ON achievement (category, rarity); - -CREATE INDEX idx_achievement_create_time ON achievement (create_time); - --- reward表索引 -CREATE INDEX idx_reward_topic_id ON reward (topic_id); - -CREATE INDEX idx_reward_achievement_id ON reward (achievement_id); - -CREATE INDEX idx_reward_type ON reward (type); - -CREATE INDEX idx_reward_earned_time ON reward (earned_time); - -CREATE INDEX idx_reward_rarity ON reward (rarity); - -CREATE INDEX idx_reward_is_new ON reward (is_new); - -CREATE INDEX idx_reward_type_earned_time ON reward (type, earned_time); - -CREATE INDEX idx_reward_create_time ON reward (create_time); - --- user_stats表索引 -CREATE INDEX idx_user_stats_user_id ON user_stats (user_id); - -CREATE INDEX idx_user_stats_total_points ON user_stats (total_points); - -CREATE INDEX idx_user_stats_consecutive_days ON user_stats (consecutive_days); - -CREATE INDEX idx_user_stats_max_consecutive_days ON user_stats (max_consecutive_days); - -CREATE INDEX idx_user_stats_social_interactions ON user_stats (social_interactions); - -CREATE INDEX idx_user_stats_update_time ON user_stats (update_time); - -CREATE INDEX idx_user_stats_create_time ON user_stats (create_time); - --- guest_user表索引 -CREATE INDEX idx_guest_user_guest_user_id ON guest_user (guest_user_id); - -CREATE INDEX idx_guest_user_ip_address ON guest_user (ip_address); - -CREATE INDEX idx_guest_user_last_active_time ON guest_user (last_active_time); - -CREATE INDEX idx_guest_user_conversation_count ON guest_user (conversation_count); - -CREATE INDEX idx_guest_user_message_count ON guest_user (message_count); - -CREATE INDEX idx_guest_user_create_time ON guest_user (create_time); - -CREATE INDEX idx_guest_user_create_by ON guest_user (create_by); - -CREATE INDEX idx_guest_user_update_by ON guest_user (update_by); - -CREATE INDEX idx_guest_user_is_deleted ON guest_user (is_deleted); - --- ============================================================================ --- 数据库统计信息 --- ============================================================================ -SELECT - COUNT(*) as total_tables -FROM - INFORMATION_SCHEMA.TABLES -WHERE - TABLE_SCHEMA = 'emotion_museum'; - --- 显示创建的表 -SELECT - TABLE_NAME as table_name, - TABLE_COMMENT as comment, - ENGINE as engine -FROM - INFORMATION_SCHEMA.TABLES -WHERE - TABLE_SCHEMA = 'emotion_museum' -ORDER BY - TABLE_NAME; - --- 提交事务 -COMMIT; - --- 完成消息 -SELECT - 'Emotion Museum Database v3.0 Final (雪花算法主键版本) - 开发版本 deployment completed successfully!' as message, - NOW () as completion_time, - 'All tables dropped and recreated with VARCHAR(36) primary keys. Development version - data will be lost on re-execution!' as description; \ No newline at end of file diff --git a/packages/emotion-museum-1.0.0-20250713_111829/database/verify-database-script.sql b/packages/emotion-museum-1.0.0-20250713_111829/database/verify-database-script.sql deleted file mode 100644 index 7cd130f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/database/verify-database-script.sql +++ /dev/null @@ -1,81 +0,0 @@ --- ============================================================================ --- 数据库脚本验证查询 --- 用于验证 mysql_emotion_museum_final.sql 执行后的表结构 --- ============================================================================ - --- 验证数据库是否存在 -SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'emotion_museum'; - --- 验证所有表是否创建成功 -SELECT TABLE_NAME, TABLE_COMMENT -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum' -ORDER BY TABLE_NAME; - --- 验证conversation表的字段结构(重点验证新增字段) -SELECT - COLUMN_NAME, - DATA_TYPE, - IS_NULLABLE, - COLUMN_DEFAULT, - COLUMN_COMMENT -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY ORDINAL_POSITION; - --- 验证conversation表的索引 -SELECT - INDEX_NAME, - COLUMN_NAME, - NON_UNIQUE -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY INDEX_NAME, SEQ_IN_INDEX; - --- 验证新增字段是否存在 -SELECT - CASE - WHEN COUNT(*) = 9 THEN '✅ 所有新增字段都存在' - ELSE CONCAT('❌ 缺少字段,只找到 ', COUNT(*), ' 个,应该是 9 个') - END AS validation_result -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND COLUMN_NAME IN ( - 'user_type', 'emotion_trend', 'keywords', 'ai_insights', - 'confidence', 'client_ip', 'user_agent', 'summary', 'tags' - ); - --- 验证新增索引是否存在 -SELECT - CASE - WHEN COUNT(*) = 4 THEN '✅ 所有新增索引都存在' - ELSE CONCAT('❌ 缺少索引,只找到 ', COUNT(*), ' 个,应该是 4 个') - END AS index_validation_result -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND INDEX_NAME IN ( - 'idx_conversation_user_type', - 'idx_conversation_emotion_trend', - 'idx_conversation_confidence', - 'idx_conversation_client_ip' - ); - --- 统计总表数 -SELECT - CASE - WHEN COUNT(*) = 15 THEN '✅ 所有15个表都创建成功' - ELSE CONCAT('❌ 表数量不正确,只有 ', COUNT(*), ' 个表,应该是 15 个') - END AS table_count_result -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum'; - --- 统计总索引数(conversation表) -SELECT - CONCAT('conversation表共有 ', COUNT(DISTINCT INDEX_NAME), ' 个索引') AS conversation_index_count -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation'; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/deploy.sh b/packages/emotion-museum-1.0.0-20250713_111829/deploy.sh deleted file mode 100755 index 484d3fd..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/deploy.sh +++ /dev/null @@ -1,1014 +0,0 @@ -#!/bin/bash - -# 情绪博物馆测试环境部署脚本 -# 作者: EmotionMuseum Team -# 版本: 2.0.0 -# 日期: 2025-07-13 -# 说明: 完整的测试环境部署脚本,包含环境安装、数据库初始化、服务部署等 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -PURPLE='\033[0;35m' -CYAN='\033[0;36m' -NC='\033[0m' - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -log_success() { - echo -e "${PURPLE}[SUCCESS]${NC} $1" -} - -log_debug() { - if [ "$DEBUG_MODE" = "true" ]; then - echo -e "${CYAN}[DEBUG]${NC} $1" - fi -} - -# 配置变量 -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -ENV_FILE="$SCRIPT_DIR/.env.test" -COMPOSE_FILE="$SCRIPT_DIR/docker-compose.test.yml" -DEBUG_MODE=${DEBUG_MODE:-false} -SKIP_ENV_INSTALL=${SKIP_ENV_INSTALL:-false} -SKIP_DB_INIT=${SKIP_DB_INIT:-false} - -# 加载环境变量 -load_environment() { - log_step "加载环境配置..." - - if [ -f "$ENV_FILE" ]; then - log_info "加载环境配置文件: $ENV_FILE" - set -a - source "$ENV_FILE" - set +a - log_debug "环境变量加载完成" - else - log_warn "环境配置文件不存在: $ENV_FILE" - log_info "使用默认配置" - fi -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆测试环境部署脚本" - echo "" - echo "用法: $0 [命令] [选项]" - echo "" - echo "命令:" - echo " install-env 安装基础环境 (Java, Maven, Node.js, Docker等)" - echo " init-db 初始化数据库" - echo " build 构建应用镜像" - echo " deploy 完整部署 (默认)" - echo " start 启动服务" - echo " stop 停止服务" - echo " restart 重启服务" - echo " status 查看服务状态" - echo " logs 查看服务日志" - echo " clean 清理资源" - echo " health 健康检查" - echo " backup 备份数据" - echo " update 更新服务" - echo "" - echo "选项:" - echo " --skip-env 跳过环境安装" - echo " --skip-db 跳过数据库初始化" - echo " --debug 启用调试模式" - echo " --force 强制执行" - echo " -h, --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 # 完整部署" - echo " $0 deploy --skip-env # 部署但跳过环境安装" - echo " $0 start # 仅启动服务" - echo " $0 logs --debug # 查看日志并启用调试" - echo "" -} - -# 检查系统要求 -check_requirements() { - log_step "检查系统要求..." - - # 检查操作系统 - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - log_info "操作系统: Linux" - elif [[ "$OSTYPE" == "darwin"* ]]; then - log_info "操作系统: macOS" - else - log_warn "未测试的操作系统: $OSTYPE" - fi - - # 检查必要的命令 - local missing_commands=() - - if ! command -v docker &> /dev/null; then - missing_commands+=("docker") - fi - - if ! command -v docker-compose &> /dev/null; then - missing_commands+=("docker-compose") - fi - - if [ ${#missing_commands[@]} -gt 0 ]; then - log_error "缺少必要的命令: ${missing_commands[*]}" - log_info "请运行 './install-environment.sh' 安装基础环境" - exit 1 - fi - - # 检查Docker服务 - if ! docker info &> /dev/null; then - log_error "Docker服务未启动,请启动Docker服务" - exit 1 - fi - - log_success "系统要求检查通过" -} - -# 安装基础环境 -install_environment() { - if [ "$SKIP_ENV_INSTALL" = "true" ]; then - log_info "跳过环境安装" - return - fi - - log_step "安装基础环境..." - - if [ -f "$SCRIPT_DIR/install-environment.sh" ]; then - log_info "执行环境安装脚本..." - chmod +x "$SCRIPT_DIR/install-environment.sh" - "$SCRIPT_DIR/install-environment.sh" - log_success "基础环境安装完成" - else - log_error "环境安装脚本不存在: $SCRIPT_DIR/install-environment.sh" - exit 1 - fi -} - -# 初始化数据库 -initialize_database() { - if [ "$SKIP_DB_INIT" = "true" ]; then - log_info "跳过数据库初始化" - return - fi - - log_step "初始化数据库..." - - if [ -f "$SCRIPT_DIR/init-database.sh" ]; then - log_info "执行数据库初始化脚本..." - chmod +x "$SCRIPT_DIR/init-database.sh" - "$SCRIPT_DIR/init-database.sh" - log_success "数据库初始化完成" - else - log_error "数据库初始化脚本不存在: $SCRIPT_DIR/init-database.sh" - exit 1 - fi -} - -# 创建必要的目录 -create_directories() { - log_step "创建部署目录..." - - local directories=( - "${DEPLOY_PATH:-/data/emotion-museum}" - "${LOG_PATH:-/data/logs/emotion-museum}" - "${UPLOAD_PATH:-/data/uploads/emotion-museum}" - "${BACKUP_PATH:-/data/backups/emotion-museum}" - "./data/mysql" - "./data/redis" - "./data/nacos" - "./deploy/mysql/conf.d" - "./deploy/redis" - "./deploy/nginx/conf.d" - "./deploy/nginx/ssl" - "./logs" - ) - - for dir in "${directories[@]}"; do - if [ ! -d "$dir" ]; then - log_debug "创建目录: $dir" - mkdir -p "$dir" - fi - done - - # 设置目录权限 - chmod 755 ./data ./deploy ./logs - - log_success "目录创建完成" -} - -# 生成配置文件 -generate_configs() { - log_step "生成配置文件..." - - # 生成MySQL配置 - if [ ! -f "deploy/mysql/conf.d/my.cnf" ]; then - log_debug "生成MySQL配置文件" - cat > deploy/mysql/conf.d/my.cnf << 'EOF' -[mysqld] -character-set-server=utf8mb4 -collation-server=utf8mb4_unicode_ci -default-time-zone='+8:00' -max_connections=1000 -max_allowed_packet=64M -innodb_buffer_pool_size=512M -innodb_log_file_size=256M -slow_query_log=1 -slow_query_log_file=/var/log/mysql/slow.log -long_query_time=2 -binlog_expire_logs_seconds=604800 -max_binlog_size=100M -EOF - fi - - # 生成Redis配置 - if [ ! -f "deploy/redis/redis.conf" ]; then - log_debug "生成Redis配置文件" - cat > deploy/redis/redis.conf << 'EOF' -bind 0.0.0.0 -port 6379 -timeout 300 -tcp-keepalive 60 -maxmemory 256mb -maxmemory-policy allkeys-lru -save 900 1 -save 300 10 -save 60 10000 -appendonly yes -appendfsync everysec -auto-aof-rewrite-percentage 100 -auto-aof-rewrite-min-size 64mb -EOF - fi - - # 生成Nginx配置 - if [ ! -f "deploy/nginx/conf.d/default.conf" ]; then - log_debug "生成Nginx配置文件" - cat > deploy/nginx/conf.d/default.conf << EOF -# 情绪博物馆测试环境Nginx配置 -# 适用于Docker Compose部署 - -server { - listen 80; - server_name ${SERVER_IP:-localhost}; - - # 日志配置 - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log warn; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - - # 前端静态文件 - 代理到前端容器 - location / { - proxy_pass http://emotion-web:80; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - - # 超时设置 - proxy_connect_timeout 10s; - proxy_send_timeout 10s; - proxy_read_timeout 10s; - } - - # API网关 - 代理到网关容器 - location /api/ { - proxy_pass http://emotion-gateway:9000/; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - - # 超时设置 - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - - # 缓存控制 - proxy_cache_bypass \$http_upgrade; - proxy_no_cache \$http_upgrade; - } - - # WebSocket支持 - location /ws/ { - proxy_pass http://emotion-gateway:9000/ws/; - proxy_http_version 1.1; - proxy_set_header Upgrade \$http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host \$host; - proxy_set_header X-Real-IP \$remote_addr; - proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto \$scheme; - } - - # 健康检查 - location /health { - proxy_pass http://emotion-gateway:9000/actuator/health; - proxy_set_header Host \$host; - } - - # Nginx健康检查 - location /nginx-health { - access_log off; - return 200 "healthy\\n"; - add_header Content-Type text/plain; - } - - # 静态资源缓存优化 - location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)\$ { - proxy_pass http://emotion-web:80; - expires 30d; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - } - - # HTML文件不缓存 - location ~* \\.(html|htm)\$ { - proxy_pass http://emotion-web:80; - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - } - - # 错误页面 - error_page 404 /404.html; - error_page 500 502 503 504 /50x.html; -} - -# 如果需要支持非Docker部署,可以使用以下配置 -# 注释掉上面的配置,启用下面的配置 -# -# server { -# listen 80; -# server_name ${SERVER_IP:-localhost}; -# -# # API网关 - 代理到宿主机服务 -# location /api/ { -# proxy_pass http://localhost:9000/; -# # 或使用服务器IP: proxy_pass http://${SERVER_IP:-localhost}:9000/; -# proxy_set_header Host \$host; -# proxy_set_header X-Real-IP \$remote_addr; -# proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; -# proxy_set_header X-Forwarded-Proto \$scheme; -# } -# -# # 前端静态文件 - 直接从文件系统提供 -# location / { -# root /data/www/emotion-museum; -# index index.html index.htm; -# try_files \$uri \$uri/ /index.html; -# } -# } -EOF - fi - - log_success "配置文件生成完成" -} - -# 生成配置文件 -generate_configs() { - log_step "生成配置文件..." - - # MySQL配置 - if [ ! -f "deploy/mysql/conf.d/my.cnf" ]; then - cat > deploy/mysql/conf.d/my.cnf << 'EOF' -[mysqld] -character-set-server=utf8mb4 -collation-server=utf8mb4_unicode_ci -default-time-zone='+8:00' -max_connections=1000 -max_allowed_packet=64M -innodb_buffer_pool_size=512M -innodb_log_file_size=256M -slow_query_log=1 -slow_query_log_file=/var/log/mysql/slow.log -long_query_time=2 -EOF - log_info "MySQL配置文件已生成" - fi - - # Redis配置 - if [ ! -f "deploy/redis/redis.conf" ]; then - cat > deploy/redis/redis.conf << 'EOF' -bind 0.0.0.0 -port 6379 -timeout 300 -tcp-keepalive 60 -maxmemory 256mb -maxmemory-policy allkeys-lru -save 900 1 -save 300 10 -save 60 10000 -appendonly yes -appendfsync everysec -EOF - log_info "Redis配置文件已生成" - fi -} - -# 构建镜像 -build_images() { - log_step "构建Docker镜像..." - - # 检查Docker Compose文件 - if [ ! -f "$COMPOSE_FILE" ]; then - log_warn "Docker Compose文件不存在: $COMPOSE_FILE" - log_info "使用默认配置文件: docker-compose.yml" - COMPOSE_FILE="docker-compose.yml" - fi - - log_info "使用配置文件: $COMPOSE_FILE" - - # 构建后端服务镜像 - log_info "构建后端服务镜像..." - local backend_services=("gateway" "ai-service" "user-service") - - for service in "${backend_services[@]}"; do - log_debug "构建服务: $service" - if docker-compose -f "$COMPOSE_FILE" build "$service"; then - log_success "✅ $service 镜像构建成功" - else - log_error "❌ $service 镜像构建失败" - exit 1 - fi - done - - # 构建前端应用镜像 - log_info "构建前端应用镜像..." - if docker-compose -f "$COMPOSE_FILE" build web; then - log_success "✅ 前端应用镜像构建成功" - else - log_error "❌ 前端应用镜像构建失败" - exit 1 - fi - - log_success "所有镜像构建完成" -} - -# 启动Nacos服务 -start_nacos() { - log_step "启动Nacos注册中心..." - - # 检查Nacos容器是否已存在 - if docker ps -a | grep -q "emotion-nacos"; then - if docker ps | grep -q "emotion-nacos"; then - log_info "Nacos容器已在运行" - return - else - log_info "启动已存在的Nacos容器" - docker start emotion-nacos - fi - else - log_info "创建新的Nacos容器" - docker run -d \ - --name emotion-nacos \ - --restart unless-stopped \ - -e MODE=standalone \ - -e SPRING_DATASOURCE_PLATFORM=mysql \ - -e MYSQL_SERVICE_HOST=${MYSQL_HOST:-localhost} \ - -e MYSQL_SERVICE_DB_NAME=${NACOS_DATABASE:-nacos_config} \ - -e MYSQL_SERVICE_PORT=${MYSQL_PORT:-3306} \ - -e MYSQL_SERVICE_USER=${MYSQL_USERNAME:-emotion} \ - -e MYSQL_SERVICE_PASSWORD=${MYSQL_PASSWORD:-emotion123} \ - -e MYSQL_SERVICE_DB_PARAM="characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true" \ - -e JVM_XMS=${JVM_XMS:-512m} \ - -e JVM_XMX=${JVM_XMX:-1024m} \ - -e JVM_XMN=${JVM_XMN:-256m} \ - -e TZ=${TZ:-Asia/Shanghai} \ - -p 8848:8848 \ - -p 9848:9848 \ - -v $(pwd)/data/nacos:/home/nacos/data \ - -v $(pwd)/logs:/home/nacos/logs \ - --network ${NETWORK_NAME:-emotion-test-network} \ - nacos/nacos-server:v2.2.0 - fi - - # 等待Nacos启动 - log_info "等待Nacos服务启动..." - local retry_count=0 - local max_retries=30 - - while [ $retry_count -lt $max_retries ]; do - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_success "Nacos服务已就绪" - break - fi - - retry_count=$((retry_count + 1)) - log_debug "等待Nacos服务就绪... ($retry_count/$max_retries)" - sleep 2 - done - - if [ $retry_count -eq $max_retries ]; then - log_error "Nacos服务启动超时" - exit 1 - fi -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - # 创建Docker网络 - if ! docker network ls | grep -q "${NETWORK_NAME:-emotion-test-network}"; then - log_info "创建Docker网络: ${NETWORK_NAME:-emotion-test-network}" - docker network create --driver bridge \ - --subnet=${SUBNET:-172.20.0.0/16} \ - --gateway=${GATEWAY_IP:-172.20.0.1} \ - ${NETWORK_NAME:-emotion-test-network} - fi - - # 启动基础服务 - log_info "启动基础服务 (MySQL, Redis)..." - docker-compose -f "$COMPOSE_FILE" up -d mysql redis - - # 等待基础服务启动 - log_info "等待基础服务启动完成..." - sleep 15 - - # 启动Nacos - start_nacos - - # 等待Nacos完全启动 - sleep 10 - - # 启动应用服务 - log_info "启动应用服务..." - local app_services=("gateway" "user-service" "ai-service") - - for service in "${app_services[@]}"; do - log_debug "启动服务: $service" - docker-compose -f "$COMPOSE_FILE" up -d "$service" - sleep 5 - done - - # 等待应用服务启动 - log_info "等待应用服务启动完成..." - sleep 20 - - # 启动前端和Nginx - log_info "启动前端和Nginx..." - docker-compose -f "$COMPOSE_FILE" up -d web nginx - - log_success "所有服务启动完成" -} - -# 停止服务 -stop_services() { - log_step "停止服务..." - - if [ -f "$COMPOSE_FILE" ]; then - docker-compose -f "$COMPOSE_FILE" down - else - docker-compose down - fi - - # 停止独立的Nacos容器 - if docker ps | grep -q "emotion-nacos"; then - log_info "停止Nacos容器..." - docker stop emotion-nacos - fi - - log_success "服务停止完成" -} - -# 重启服务 -restart_services() { - local service_name=${1:-} - - if [ -n "$service_name" ]; then - log_step "重启服务: $service_name" - if [ "$service_name" = "nacos" ]; then - docker restart emotion-nacos - else - docker-compose -f "$COMPOSE_FILE" restart "$service_name" - fi - else - log_step "重启所有服务..." - stop_services - sleep 3 - start_services - fi - - log_success "服务重启完成" -} - -# 检查服务状态 -check_services() { - log_step "检查服务状态..." - - echo "" - echo "=== Docker容器状态 ===" - if [ -f "$COMPOSE_FILE" ]; then - docker-compose -f "$COMPOSE_FILE" ps - else - docker-compose ps - fi - - # 检查独立的Nacos容器 - if docker ps -a | grep -q "emotion-nacos"; then - echo "" - echo "=== Nacos容器状态 ===" - docker ps -a --filter name=emotion-nacos --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" - fi - - echo "" - - # 检查关键服务健康状态 - log_info "检查服务健康状态..." - - local all_healthy=true - - # 检查MySQL - if docker exec emotion-mysql mysqladmin ping -h localhost -u root -p${MYSQL_ROOT_PASSWORD:-123456} &> /dev/null; then - log_success "✅ MySQL服务正常" - else - log_error "❌ MySQL服务异常" - all_healthy=false - fi - - # 检查Redis - if docker exec emotion-redis redis-cli ping | grep -q PONG; then - log_success "✅ Redis服务正常" - else - log_error "❌ Redis服务异常" - all_healthy=false - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_success "✅ Nacos服务正常" - else - log_error "❌ Nacos服务异常" - all_healthy=false - fi - - # 检查网关 - if curl -s http://localhost:${GATEWAY_PORT:-9000}/actuator/health &> /dev/null; then - log_success "✅ 网关服务正常" - else - log_error "❌ 网关服务异常" - all_healthy=false - fi - - # 检查用户服务 - if curl -s http://localhost:${USER_SERVICE_PORT:-9001}/actuator/health &> /dev/null; then - log_success "✅ 用户服务正常" - else - log_error "❌ 用户服务异常" - all_healthy=false - fi - - # 检查AI服务 - if curl -s http://localhost:${AI_SERVICE_PORT:-9002}/actuator/health &> /dev/null; then - log_success "✅ AI服务正常" - else - log_error "❌ AI服务异常" - all_healthy=false - fi - - # 检查前端服务 - if curl -s http://localhost:${WEB_PORT:-3000}/health &> /dev/null || curl -s http://localhost:${WEB_PORT:-3000}/ &> /dev/null; then - log_success "✅ 前端服务正常" - else - log_error "❌ 前端服务异常" - all_healthy=false - fi - - # 检查Nginx - if curl -s http://localhost:${NGINX_PORT:-80}/health &> /dev/null || curl -s http://localhost:${NGINX_PORT:-80}/ &> /dev/null; then - log_success "✅ Nginx服务正常" - else - log_error "❌ Nginx服务异常" - all_healthy=false - fi - - echo "" - if $all_healthy; then - log_success "🎉 所有服务健康检查通过" - else - log_warn "⚠️ 部分服务存在问题,请检查日志" - fi - - # 显示资源使用情况 - echo "" - echo "=== 资源使用情况 ===" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" -} - -# 查看日志 -show_logs() { - local service_name=${1:-} - local follow_flag=${2:-} - - if [ -n "$service_name" ]; then - log_info "查看服务日志: $service_name" - if [ "$service_name" = "nacos" ]; then - docker logs $follow_flag emotion-nacos - else - docker-compose -f "$COMPOSE_FILE" logs $follow_flag "$service_name" - fi - else - log_info "查看所有服务日志" - docker-compose -f "$COMPOSE_FILE" logs $follow_flag - - # 显示Nacos日志 - if docker ps | grep -q "emotion-nacos"; then - echo "" - echo "=== Nacos日志 ===" - docker logs --tail 50 emotion-nacos - fi - fi -} - -# 备份数据 -backup_data() { - log_step "备份数据..." - - local backup_dir="${BACKUP_PATH:-./backups}/$(date +%Y%m%d_%H%M%S)" - mkdir -p "$backup_dir" - - # 备份MySQL数据 - log_info "备份MySQL数据..." - docker exec emotion-mysql mysqldump -u root -p${MYSQL_ROOT_PASSWORD:-123456} --all-databases > "$backup_dir/mysql_backup.sql" - - # 备份Redis数据 - log_info "备份Redis数据..." - docker exec emotion-redis redis-cli BGSAVE - sleep 2 - docker cp emotion-redis:/data/dump.rdb "$backup_dir/redis_backup.rdb" - - # 备份Nacos数据 - log_info "备份Nacos数据..." - if [ -d "./data/nacos" ]; then - cp -r ./data/nacos "$backup_dir/" - fi - - # 备份配置文件 - log_info "备份配置文件..." - cp -r deploy "$backup_dir/" 2>/dev/null || true - cp -r backend/config "$backup_dir/" 2>/dev/null || true - cp docker-compose*.yml "$backup_dir/" 2>/dev/null || true - cp .env* "$backup_dir/" 2>/dev/null || true - - # 压缩备份 - tar -czf "$backup_dir.tar.gz" -C "$(dirname $backup_dir)" "$(basename $backup_dir)" - rm -rf "$backup_dir" - - log_success "备份完成: $backup_dir.tar.gz" -} - -# 清理资源 -clean_resources() { - log_step "清理Docker资源..." - - log_warn "此操作将清理未使用的Docker资源" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ $REPLY =~ ^[Yy]$ ]]; then - # 清理未使用的镜像 - docker image prune -f - - # 清理未使用的容器 - docker container prune -f - - # 清理未使用的网络 - docker network prune -f - - # 清理未使用的卷(谨慎使用) - # docker volume prune -f - - log_success "资源清理完成" - else - log_info "清理操作已取消" - fi -} - -# 更新服务 -update_services() { - log_step "更新服务..." - - # 备份当前数据 - log_info "备份当前数据..." - backup_data - - # 停止服务 - log_info "停止当前服务..." - stop_services - - # 重新构建镜像 - log_info "重新构建镜像..." - build_images - - # 启动服务 - log_info "启动更新后的服务..." - start_services - - # 健康检查 - sleep 10 - check_services - - log_success "服务更新完成" -} - -# 显示访问信息 -show_access_info() { - log_step "部署完成!" - - local server_ip=${SERVER_IP:-localhost} - local nginx_port=${NGINX_PORT:-80} - local gateway_port=${GATEWAY_PORT:-9000} - - echo "" - echo "🎉 情绪博物馆测试环境部署成功!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://$server_ip:$nginx_port" - echo " API网关: http://$server_ip:$gateway_port" - echo " Nacos: http://$server_ip:8848/nacos (用户名/密码: nacos/nacos)" - echo "" - echo "🔧 管理命令:" - echo " 查看状态: $0 status" - echo " 查看日志: $0 logs [服务名]" - echo " 重启服务: $0 restart [服务名]" - echo " 停止服务: $0 stop" - echo " 健康检查: $0 health" - echo " 备份数据: $0 backup" - echo "" - echo "📊 监控命令:" - echo " 查看容器: docker ps" - echo " 查看资源: docker stats" - echo " 查看网络: docker network ls" - echo "" - echo "🗄️ 数据库信息:" - echo " MySQL: $server_ip:${MYSQL_PORT:-3306} (用户: ${MYSQL_USERNAME:-emotion})" - echo " Redis: $server_ip:${REDIS_PORT:-6379}" - echo "" - echo "📁 重要路径:" - echo " 日志目录: ${LOG_PATH:-/data/logs/emotion-museum}" - echo " 上传目录: ${UPLOAD_PATH:-/data/uploads/emotion-museum}" - echo " 备份目录: ${BACKUP_PATH:-./backups}" - echo "" -} - -# 完整部署流程 -full_deploy() { - echo "🚀 开始完整部署情绪博物馆测试环境..." - echo "" - - load_environment - check_requirements - install_environment - initialize_database - create_directories - generate_configs - build_images - start_services - - echo "" - log_info "等待服务完全启动..." - sleep 15 - - check_services - show_access_info - - log_success "🎉 部署完成!" -} - -# 解析命令行参数 -parse_arguments() { - while [[ $# -gt 0 ]]; do - case $1 in - --skip-env) - SKIP_ENV_INSTALL=true - shift - ;; - --skip-db) - SKIP_DB_INIT=true - shift - ;; - --debug) - DEBUG_MODE=true - shift - ;; - --force) - FORCE_MODE=true - shift - ;; - -h|--help) - show_help - exit 0 - ;; - *) - # 保留其他参数 - break - ;; - esac - done -} - -# 主函数 -main() { - # 解析参数 - parse_arguments "$@" - - # 加载环境变量 - load_environment - - # 处理命令 - case "${1:-}" in - "install-env") - check_requirements - install_environment - ;; - "init-db") - check_requirements - initialize_database - ;; - "build") - check_requirements - create_directories - generate_configs - build_images - ;; - "start") - check_requirements - start_services - check_services - show_access_info - ;; - "stop") - stop_services - ;; - "restart") - restart_services "$2" - ;; - "status") - check_services - ;; - "logs") - if [ "$2" = "-f" ] || [ "$2" = "--follow" ]; then - show_logs "$3" "-f" - else - show_logs "$2" - fi - ;; - "health") - check_services - ;; - "backup") - backup_data - ;; - "clean") - clean_resources - ;; - "update") - update_services - ;; - "deploy") - full_deploy - ;; - "-h"|"--help"|"help") - show_help - ;; - "") - # 默认执行完整部署 - full_deploy - ;; - *) - log_error "未知命令: $1" - echo "" - show_help - exit 1 - ;; - esac -} - -# 脚本入口 -main "$@" - - diff --git a/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/conf.d/emotion-museum.conf b/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/conf.d/emotion-museum.conf deleted file mode 100644 index ac12c05..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/conf.d/emotion-museum.conf +++ /dev/null @@ -1,114 +0,0 @@ -# 情绪博物馆主站配置 -server { - listen 80; - server_name localhost emotion-museum.com www.emotion-museum.com; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - - # API代理 - location /api/ { - # 限流 - limit_req zone=api burst=20 nodelay; - - # 代理到网关 - proxy_pass http://emotion_gateway; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # 超时设置 - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - - # 缓存控制 - proxy_cache_bypass $http_upgrade; - proxy_no_cache $http_upgrade; - - # WebSocket支持 - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - - # 静态资源代理 - location / { - # 限流 - limit_req zone=web burst=50 nodelay; - - # 代理到前端应用 - proxy_pass http://emotion_web; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # 缓存设置 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - proxy_pass http://emotion_web; - proxy_set_header Host $host; - expires 30d; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - } - - # HTML文件不缓存 - location ~* \.(html|htm)$ { - proxy_pass http://emotion_web; - proxy_set_header Host $host; - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - } - } - - # 健康检查 - location /nginx-health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /404.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } -} - -# HTTPS配置 (可选) -# server { -# listen 443 ssl http2; -# server_name emotion-museum.com www.emotion-museum.com; -# -# # SSL证书配置 -# ssl_certificate /etc/nginx/ssl/emotion-museum.crt; -# ssl_certificate_key /etc/nginx/ssl/emotion-museum.key; -# -# # SSL安全配置 -# ssl_protocols TLSv1.2 TLSv1.3; -# ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384; -# ssl_prefer_server_ciphers off; -# ssl_session_cache shared:SSL:10m; -# ssl_session_timeout 10m; -# -# # HSTS -# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; -# -# # 其他配置与HTTP相同 -# include /etc/nginx/conf.d/emotion-museum-common.conf; -# } - -# HTTP重定向到HTTPS (可选) -# server { -# listen 80; -# server_name emotion-museum.com www.emotion-museum.com; -# return 301 https://$server_name$request_uri; -# } diff --git a/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/nginx.conf b/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/nginx.conf deleted file mode 100644 index d20b129..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/deploy/nginx/nginx.conf +++ /dev/null @@ -1,81 +0,0 @@ -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -events { - worker_connections 1024; - use epoll; - multi_accept on; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 日志格式 - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for" ' - '$request_time $upstream_response_time'; - - access_log /var/log/nginx/access.log main; - - # 基础配置 - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - server_tokens off; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_proxied any; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 客户端配置 - client_max_body_size 50M; - client_body_buffer_size 128k; - client_header_buffer_size 32k; - large_client_header_buffers 4 32k; - - # 代理配置 - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - proxy_buffer_size 64k; - proxy_buffers 4 64k; - proxy_busy_buffers_size 128k; - proxy_temp_file_write_size 128k; - - # 上游服务器定义 - upstream emotion_gateway { - server gateway:9000 max_fails=3 fail_timeout=30s; - keepalive 32; - } - - upstream emotion_web { - server web:80 max_fails=3 fail_timeout=30s; - keepalive 32; - } - - # 限流配置 - limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s; - limit_req_zone $binary_remote_addr zone=web:10m rate=20r/s; - - # 包含站点配置 - include /etc/nginx/conf.d/*.conf; -} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.test.yml b/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.test.yml deleted file mode 100644 index a8b3602..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.test.yml +++ /dev/null @@ -1,233 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456} - MYSQL_DATABASE: ${MYSQL_DATABASE:-emotion_museum} - MYSQL_USER: ${MYSQL_USERNAME:-emotion} - MYSQL_PASSWORD: ${MYSQL_PASSWORD:-emotion123} - TZ: ${TZ:-Asia/Shanghai} - ports: - - "${MYSQL_PORT:-3306}:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./database/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/01-init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - command: > - --default-authentication-plugin=mysql_native_password - --character-set-server=utf8mb4 - --collation-server=utf8mb4_unicode_ci - --default-time-zone='+8:00' - --max-connections=1000 - --max-allowed-packet=64M - networks: - - emotion-network - healthcheck: - test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-123456}"] - timeout: 20s - retries: 10 - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis - restart: unless-stopped - ports: - - "${REDIS_PORT:-6379}:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - healthcheck: - test: ["CMD", "redis-cli", "ping"] - timeout: 3s - retries: 5 - - # 网关服务 - gateway: - build: - context: ./backend - dockerfile: gateway-Dockerfile - args: - JAR_FILE: emotion-gateway-1.0.0.jar - CONFIG_FILE: config/gateway-test.yml - container_name: emotion-gateway - restart: unless-stopped - ports: - - "${GATEWAY_PORT:-9000}:9000" - environment: - SPRING_PROFILES_ACTIVE: test - NACOS_SERVER_ADDR: ${NACOS_SERVER_ADDR:-localhost:8848} - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - MYSQL_USERNAME: ${MYSQL_USERNAME:-emotion} - MYSQL_PASSWORD: ${MYSQL_PASSWORD:-emotion123} - REDIS_HOST: redis - REDIS_PORT: 6379 - SERVER_IP: ${SERVER_IP:-localhost} - JWT_SECRET: ${JWT_SECRET:-emotion-museum-test-secret-key-2025} - TZ: ${TZ:-Asia/Shanghai} - depends_on: - mysql: - condition: service_healthy - redis: - condition: service_healthy - networks: - - emotion-network - volumes: - - ${LOG_PATH:-./logs}:/data/logs/emotion-museum - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/actuator/health"] - timeout: 10s - retries: 5 - start_period: 60s - - # 用户服务 - user-service: - build: - context: ./backend - dockerfile: user-Dockerfile - args: - JAR_FILE: emotion-user-1.0.0.jar - CONFIG_FILE: config/application-test.yml - container_name: emotion-user - restart: unless-stopped - ports: - - "${USER_SERVICE_PORT:-9001}:9001" - environment: - SPRING_PROFILES_ACTIVE: test - NACOS_SERVER_ADDR: ${NACOS_SERVER_ADDR:-localhost:8848} - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - MYSQL_USERNAME: ${MYSQL_USERNAME:-emotion} - MYSQL_PASSWORD: ${MYSQL_PASSWORD:-emotion123} - REDIS_HOST: redis - REDIS_PORT: 6379 - SERVER_IP: ${SERVER_IP:-localhost} - JWT_SECRET: ${JWT_SECRET:-emotion-museum-test-secret-key-2025} - TZ: ${TZ:-Asia/Shanghai} - depends_on: - mysql: - condition: service_healthy - redis: - condition: service_healthy - networks: - - emotion-network - volumes: - - ${LOG_PATH:-./logs}:/data/logs/emotion-museum - - ${UPLOAD_PATH:-./uploads}:/data/uploads/emotion-museum - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9001/actuator/health"] - timeout: 10s - retries: 5 - start_period: 60s - - # AI服务 - ai-service: - build: - context: ./backend - dockerfile: ai-Dockerfile - args: - JAR_FILE: emotion-ai-1.0.0.jar - CONFIG_FILE: config/ai-test.yml - container_name: emotion-ai - restart: unless-stopped - ports: - - "${AI_SERVICE_PORT:-9002}:9002" - environment: - SPRING_PROFILES_ACTIVE: test - NACOS_SERVER_ADDR: ${NACOS_SERVER_ADDR:-localhost:8848} - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - MYSQL_USERNAME: ${MYSQL_USERNAME:-emotion} - MYSQL_PASSWORD: ${MYSQL_PASSWORD:-emotion123} - REDIS_HOST: redis - REDIS_PORT: 6379 - SERVER_IP: ${SERVER_IP:-localhost} - COZE_API_TOKEN: ${COZE_API_TOKEN:-your-coze-api-token} - JWT_SECRET: ${JWT_SECRET:-emotion-museum-test-secret-key-2025} - TZ: ${TZ:-Asia/Shanghai} - depends_on: - mysql: - condition: service_healthy - redis: - condition: service_healthy - networks: - - emotion-network - volumes: - - ${LOG_PATH:-./logs}:/data/logs/emotion-museum - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9002/actuator/health"] - timeout: 10s - retries: 5 - start_period: 60s - - # 前端应用 - web: - build: - context: ./frontend - dockerfile: Dockerfile - args: - NODE_ENV: test - VUE_APP_API_BASE_URL: http://${SERVER_IP:-localhost}:${GATEWAY_PORT:-9000} - VUE_APP_ENVIRONMENT: test - container_name: emotion-web - restart: unless-stopped - ports: - - "${WEB_PORT:-3000}:80" - environment: - TZ: ${TZ:-Asia/Shanghai} - depends_on: - gateway: - condition: service_healthy - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:80/"] - timeout: 5s - retries: 3 - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx - restart: unless-stopped - ports: - - "${NGINX_PORT:-80}:80" - volumes: - - ./deploy/nginx/conf.d:/etc/nginx/conf.d - - nginx_logs:/var/log/nginx - environment: - TZ: ${TZ:-Asia/Shanghai} - depends_on: - - web - - gateway - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:80/health"] - timeout: 5s - retries: 3 - -volumes: - mysql_data: - driver: local - redis_data: - driver: local - nginx_logs: - driver: local - -networks: - emotion-network: - driver: bridge - ipam: - config: - - subnet: ${SUBNET:-172.20.0.0/16} - gateway: ${GATEWAY_IP:-172.20.0.1} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.yml b/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.yml deleted file mode 100644 index 22f16d9..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/docker-compose.yml +++ /dev/null @@ -1,178 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: 123456 - MYSQL_DATABASE: emotion_museum - MYSQL_USER: emotion - MYSQL_PASSWORD: emotion123 - TZ: Asia/Shanghai - ports: - - "3306:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./backend/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - command: --default-authentication-plugin=mysql_native_password - networks: - - emotion-network - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis - restart: unless-stopped - ports: - - "6379:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - - # Nacos注册中心 - nacos: - image: nacos/nacos-server:v2.2.0 - container_name: emotion-nacos - restart: unless-stopped - environment: - MODE: standalone - SPRING_DATASOURCE_PLATFORM: mysql - MYSQL_SERVICE_HOST: mysql - MYSQL_SERVICE_DB_NAME: nacos_config - MYSQL_SERVICE_PORT: 3306 - MYSQL_SERVICE_USER: root - MYSQL_SERVICE_PASSWORD: 123456 - MYSQL_SERVICE_DB_PARAM: characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true - JVM_XMS: 512m - JVM_XMX: 512m - JVM_XMN: 256m - ports: - - "8848:8848" - - "9848:9848" - volumes: - - nacos_data:/home/nacos/data - - nacos_logs:/home/nacos/logs - depends_on: - - mysql - networks: - - emotion-network - - # 网关服务 - gateway: - build: - context: ./backend - dockerfile: ./emotion-gateway/Dockerfile - container_name: emotion-gateway - restart: unless-stopped - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # AI服务 - ai-service: - build: - context: ./backend - dockerfile: ./emotion-ai/Dockerfile - container_name: emotion-ai - restart: unless-stopped - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # 用户服务 - user-service: - build: - context: ./backend - dockerfile: ./emotion-user/Dockerfile - container_name: emotion-user - restart: unless-stopped - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # 前端应用 - web: - build: - context: ./web - dockerfile: Dockerfile - container_name: emotion-web - restart: unless-stopped - ports: - - "3000:80" - depends_on: - - gateway - networks: - - emotion-network - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx - restart: unless-stopped - ports: - - "80:80" - - "443:443" - volumes: - - ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf - - ./deploy/nginx/conf.d:/etc/nginx/conf.d - - ./deploy/nginx/ssl:/etc/nginx/ssl - - nginx_logs:/var/log/nginx - depends_on: - - web - - gateway - networks: - - emotion-network - -volumes: - mysql_data: - redis_data: - nacos_data: - nacos_logs: - nginx_logs: - -networks: - emotion-network: - driver: bridge diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.development b/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.development deleted file mode 100644 index f0bed44..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.development +++ /dev/null @@ -1,12 +0,0 @@ -# 开发环境配置 -VITE_APP_ENV=development -VITE_APP_TITLE=情绪博物馆(开发环境) - -# 开发环境API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://localhost:9000 -VITE_API_TIMEOUT=30000 - -# 开发环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.docker b/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.docker deleted file mode 100644 index b8627e0..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.docker +++ /dev/null @@ -1,13 +0,0 @@ -# Docker环境配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 -VITE_APP_ENV=docker - -# API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://gateway:9000 -VITE_API_TIMEOUT=30000 - -# 功能开关 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.production b/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.production deleted file mode 100644 index b2dde80..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.production +++ /dev/null @@ -1,12 +0,0 @@ -# 生产环境配置 -VITE_APP_ENV=production -VITE_APP_TITLE=情绪博物馆 - -# 生产环境API配置 -VITE_API_BASE_URL=https://api.emotion-museum.com/api -VITE_API_TARGET=https://api.emotion-museum.com -VITE_API_TIMEOUT=30000 - -# 生产环境特殊配置 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.test b/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.test deleted file mode 100644 index e6a11fc..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/.env.test +++ /dev/null @@ -1,12 +0,0 @@ -# 测试环境配置 -VITE_APP_ENV=test -VITE_APP_TITLE=情绪博物馆(测试环境) - -# 测试环境API配置 -VITE_API_BASE_URL=https://test-api.emotion-museum.com/api -VITE_API_TARGET=https://test-api.emotion-museum.com -VITE_API_TIMEOUT=30000 - -# 测试环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/Dockerfile b/packages/emotion-museum-1.0.0-20250713_111829/frontend/Dockerfile deleted file mode 100644 index 2ba100d..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/Dockerfile +++ /dev/null @@ -1,69 +0,0 @@ -# 前端应用Dockerfile - 测试环境版本 -# 构建阶段 -FROM node:18-alpine AS builder - -# 构建参数 -ARG NODE_ENV=test -ARG VUE_APP_API_BASE_URL=http://localhost:9000 -ARG VUE_APP_ENVIRONMENT=test - -# 设置工作目录 -WORKDIR /app - -# 设置npm镜像源 -RUN npm config set registry https://registry.npmmirror.com - -# 复制package文件 -COPY package*.json ./ - -# 安装依赖 -RUN npm ci - -# 复制源代码和配置文件 -COPY . . -COPY config/test.env.js .env.test - -# 设置环境变量 -ENV NODE_ENV=${NODE_ENV} -ENV VUE_APP_API_BASE_URL=${VUE_APP_API_BASE_URL} -ENV VUE_APP_ENVIRONMENT=${VUE_APP_ENVIRONMENT} - -# 构建应用 -RUN npm run build:test || npm run build - -# 生产阶段 -FROM nginx:alpine - -# 安装必要工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制构建产物 -COPY --from=builder /app/dist /usr/share/nginx/html - -# 复制nginx配置 -COPY nginx.conf /etc/nginx/conf.d/default.conf - -# 创建nginx用户 -RUN addgroup -g 101 -S nginx && \ - adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx - -# 设置权限 -RUN chown -R nginx:nginx /usr/share/nginx/html && \ - chown -R nginx:nginx /var/cache/nginx && \ - chown -R nginx:nginx /var/log/nginx && \ - chown -R nginx:nginx /etc/nginx/conf.d - -# 创建健康检查页面 -RUN echo 'Health Check

OK

' > /usr/share/nginx/html/health - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ - CMD curl -f http://localhost:80/health || curl -f http://localhost:80/ || exit 1 - -# 暴露端口 -EXPOSE 80 - -# 启动nginx -CMD ["nginx", "-g", "daemon off;"] diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/AnalysisSimple-eb0c3031.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/AnalysisSimple-eb0c3031.css deleted file mode 100644 index 20ae914..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/AnalysisSimple-eb0c3031.css +++ /dev/null @@ -1 +0,0 @@ -.analysis-simple[data-v-28c071bd]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.analysis-simple .page-header[data-v-28c071bd]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.analysis-simple .page-header h1[data-v-28c071bd]{color:#fff;margin:0}.analysis-simple .page-content[data-v-28c071bd]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.analysis-simple .page-content .welcome-message h2[data-v-28c071bd]{color:#333;margin-bottom:16px}.analysis-simple .page-content .welcome-message p[data-v-28c071bd]{color:#666;margin-bottom:32px;font-size:16px}.analysis-simple .page-content .welcome-message .test-buttons[data-v-28c071bd]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/ChatComplete-68dc21b4.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/ChatComplete-68dc21b4.css deleted file mode 100644 index 24dee0a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/ChatComplete-68dc21b4.css +++ /dev/null @@ -1 +0,0 @@ -.emotion-analysis-simple .analysis-card[data-v-c61d1b05]{border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-top:8px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head{border-bottom:1px solid #f0f0f0;padding:8px 12px;min-height:auto}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head .ant-card-head-title{padding:0;font-size:13px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-body{padding:12px}.emotion-analysis-simple .card-title[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#667eea}.emotion-analysis-simple .card-title .title-icon[data-v-c61d1b05]{font-size:14px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]{margin-bottom:8px;display:flex;align-items:center;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]:last-child{margin-bottom:0}.emotion-analysis-simple .analysis-content .emotion-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-label[data-v-c61d1b05]{font-size:12px;color:#666;font-weight:500;min-width:fit-content}.emotion-analysis-simple .analysis-content .emotion-tag[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-tag[data-v-c61d1b05]{font-size:11px;border-radius:4px}.emotion-analysis-simple .analysis-content .emotion-intensity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-value[data-v-c61d1b05]{font-size:11px;color:#999}.emotion-analysis-simple .analysis-content .keywords-list[data-v-c61d1b05]{display:flex;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .keywords-list .keyword-tag[data-v-c61d1b05]{font-size:10px;border-radius:3px;background:#f5f5f5;border:1px solid #d9d9d9;color:#666}.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]{flex-direction:column;align-items:flex-start}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:12px;color:#666;font-weight:500}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label .suggestion-icon[data-v-c61d1b05]{font-size:12px;color:#667eea}.emotion-analysis-simple .analysis-content .suggestion .suggestion-content[data-v-c61d1b05]{font-size:11px;color:#333;line-height:1.4;background:#f8f9fa;padding:6px 8px;border-radius:4px;border-left:2px solid #667eea;margin-top:4px;width:100%}.chat-complete[data-v-23c54516]{display:flex;height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.sidebar[data-v-23c54516]{width:300px;background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-right:1px solid rgba(255,255,255,.2);display:flex;flex-direction:column;transition:all .3s ease}.sidebar.collapsed[data-v-23c54516]{width:60px}.sidebar .sidebar-header[data-v-23c54516]{padding:20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}.sidebar .sidebar-header .logo h2[data-v-23c54516]{margin:0;font-size:18px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sidebar .sidebar-header .logo .subtitle[data-v-23c54516]{font-size:12px;color:#666}.sidebar .sidebar-header .collapse-btn[data-v-23c54516]{border:none;box-shadow:none}.sidebar .sidebar-content[data-v-23c54516]{flex:1;padding:20px;overflow-y:auto}.sidebar .sidebar-content .conversations-list .list-header[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sidebar .sidebar-content .conversations-list .list-header .list-title[data-v-23c54516]{font-weight:600;color:#333}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]{display:flex;align-items:center;padding:12px;border-radius:8px;cursor:pointer;transition:all .3s ease;margin-bottom:8px}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]:hover{background:#f5f5f5}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active .conversation-time[data-v-23c54516]{color:#fffc}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info[data-v-23c54516]{flex:1;min-width:0}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-title[data-v-23c54516]{font-weight:500;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-time[data-v-23c54516]{font-size:12px;color:#999}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .more-btn[data-v-23c54516]{opacity:0;transition:opacity .3s ease}.sidebar .sidebar-content .conversations-list .conversations .conversation-item:hover .more-btn[data-v-23c54516]{opacity:1}.sidebar .sidebar-content .conversations-list .empty-conversations[data-v-23c54516]{text-align:center;padding:40px 20px;color:#999}.sidebar .sidebar-content .conversations-list .empty-conversations .empty-icon[data-v-23c54516]{font-size:48px;margin-bottom:16px;opacity:.5}.sidebar .user-info[data-v-23c54516]{padding:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:12px}.sidebar .user-info .user-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}.sidebar .user-info .user-details .user-name[data-v-23c54516]{font-weight:500;margin-bottom:2px}.sidebar .user-info .user-details .user-status[data-v-23c54516]{font-size:12px;color:#52c41a}.sidebar .user-info .user-details .user-status.guest[data-v-23c54516]{color:#faad14}.chat-main[data-v-23c54516]{flex:1;display:flex;flex-direction:column;background:rgba(255,255,255,.05)}.chat-main .chat-header[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:space-between;color:#fff}.chat-main .chat-header .chat-info .chat-title[data-v-23c54516]{margin:0 0 4px;font-size:18px}.chat-main .chat-header .chat-info .chat-status[data-v-23c54516]{font-size:12px;opacity:.8}.chat-main .chat-header .chat-actions[data-v-23c54516]{display:flex;gap:8px}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]{color:#fff;border-color:#ffffff4d}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]:hover{background:rgba(255,255,255,.1);border-color:#ffffff80}.chat-main .messages-container[data-v-23c54516]{flex:1;overflow-y:auto;padding:20px}.chat-main .messages-container .welcome-screen[data-v-23c54516]{height:100%;display:flex;align-items:center;justify-content:center}.chat-main .messages-container .welcome-screen .welcome-content[data-v-23c54516]{text-align:center;color:#fff;max-width:500px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-icon[data-v-23c54516]{font-size:80px;margin-bottom:20px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-title[data-v-23c54516]{font-size:28px;margin-bottom:16px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-description[data-v-23c54516]{font-size:16px;line-height:1.6;margin-bottom:30px;opacity:.9}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features[data-v-23c54516]{display:flex;justify-content:center;gap:30px;margin-bottom:30px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item[data-v-23c54516]{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item .anticon[data-v-23c54516]{font-size:24px}.chat-main .messages-container .messages-list .message-item[data-v-23c54516]{display:flex;margin-bottom:20px}.chat-main .messages-container .messages-list .message-item.user[data-v-23c54516]{flex-direction:row-reverse}.chat-main .messages-container .messages-list .message-item.user .message-content[data-v-23c54516]{align-items:flex-end}.chat-main .messages-container .messages-list .message-item.user .message-bubble[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-bottom-right-radius:4px}.chat-main .messages-container .messages-list .message-item.assistant .message-bubble[data-v-23c54516]{background:white;border:1px solid #f0f0f0;border-bottom-left-radius:4px}.chat-main .messages-container .messages-list .message-item .message-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;margin:0 12px;flex-shrink:0}.chat-main .messages-container .messages-list .message-item .message-content[data-v-23c54516]{flex:1;display:flex;flex-direction:column;max-width:70%}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble[data-v-23c54516]{padding:12px 16px;border-radius:12px;box-shadow:0 2px 8px #0000001a}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble.typing[data-v-23c54516]{padding:16px 20px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-text[data-v-23c54516]{line-height:1.6;word-wrap:break-word}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-time[data-v-23c54516]{font-size:12px;opacity:.7;margin-top:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator[data-v-23c54516]{display:flex;gap:4px;margin-bottom:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]{width:8px;height:8px;border-radius:50%;background:#999;animation:typing-23c54516 1.4s infinite ease-in-out}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(1){animation-delay:-.32s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(2){animation-delay:-.16s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-text[data-v-23c54516]{font-size:14px;color:#666}.chat-main .messages-container .messages-list .message-item .message-content .emotion-analysis[data-v-23c54516]{margin-top:8px}.chat-main .input-area[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2)}.chat-main .input-area .input-container[data-v-23c54516]{display:flex;align-items:flex-end;gap:12px;max-width:1000px;margin:0 auto}.chat-main .input-area .input-container .message-input[data-v-23c54516]{flex:1;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.9)}.chat-main .input-area .input-container .message-input[data-v-23c54516]:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea33}.chat-main .input-area .input-container .input-actions[data-v-23c54516]{display:flex;align-items:center;gap:8px}.chat-main .input-area .input-container .input-actions .ant-btn.active[data-v-23c54516]{color:#667eea;background:rgba(102,126,234,.1)}.chat-main .input-area .input-container .input-actions .send-btn[data-v-23c54516]{height:40px;padding:0 20px}.connection-status .status-item[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0f0f0}.connection-status .status-item[data-v-23c54516]:last-child{border-bottom:none}.connection-status .status-item .status-label[data-v-23c54516]{font-weight:500}.connection-status .status-item .user-id[data-v-23c54516]{font-family:monospace;font-size:12px;color:#666;background:#f5f5f5;padding:2px 6px;border-radius:4px}@keyframes typing-23c54516{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}@media (max-width: 768px){.sidebar[data-v-23c54516]{position:fixed;left:0;top:0;height:100vh;z-index:1000;transform:translate(-100%)}.sidebar[data-v-23c54516]:not(.collapsed){transform:translate(0)}.chat-main[data-v-23c54516]{width:100%}.welcome-features[data-v-23c54516]{flex-direction:column;gap:20px!important}} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HistorySimple-caafbb99.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HistorySimple-caafbb99.css deleted file mode 100644 index 8519128..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HistorySimple-caafbb99.css +++ /dev/null @@ -1 +0,0 @@ -.history-simple[data-v-4baa7231]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.history-simple .page-header[data-v-4baa7231]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.history-simple .page-header h1[data-v-4baa7231]{color:#fff;margin:0}.history-simple .page-content[data-v-4baa7231]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.history-simple .page-content .welcome-message h2[data-v-4baa7231]{color:#333;margin-bottom:16px}.history-simple .page-content .welcome-message p[data-v-4baa7231]{color:#666;margin-bottom:32px;font-size:16px}.history-simple .page-content .welcome-message .test-buttons[data-v-4baa7231]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/Home-c2a76248.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/Home-c2a76248.css deleted file mode 100644 index 284c78c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/Home-c2a76248.css +++ /dev/null @@ -1 +0,0 @@ -.api-test[data-v-5881151e]{margin:16px}.test-buttons[data-v-5881151e]{margin-bottom:16px}.test-results[data-v-5881151e]{max-height:600px;overflow-y:auto}.result-item[data-v-5881151e]{margin-bottom:12px}.result-details[data-v-5881151e]{margin-top:8px}.result-data pre[data-v-5881151e]{background:#f5f5f5;padding:8px;border-radius:4px;font-size:12px;max-height:200px;overflow-y:auto}.result-error code[data-v-5881151e]{background:#fff2f0;color:#ff4d4f;padding:2px 4px;border-radius:3px}.result-time[data-v-5881151e]{margin-top:8px;color:#666}.home-container[data-v-d42b9121]{min-height:100vh;background:var(--gradient-primary);position:relative;overflow-x:hidden}.header[data-v-d42b9121]{position:fixed;top:0;left:0;right:0;z-index:1000;padding:var(--spacing-md) 0}.header .header-content[data-v-d42b9121]{max-width:1200px;margin:0 auto;padding:0 var(--spacing-lg);display:flex;align-items:center;justify-content:space-between}.header .logo h1[data-v-d42b9121]{font-size:24px;margin:0}.header .logo .subtitle[data-v-d42b9121]{font-size:12px;color:#fffc;margin-left:var(--spacing-sm)}.header .nav-menu[data-v-d42b9121]{display:flex;gap:var(--spacing-lg)}.header .nav-menu .nav-item[data-v-d42b9121]{color:#ffffffe6!important;border:none!important;box-shadow:none!important;background:transparent!important;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-small);transition:all .3s ease;display:flex;align-items:center;gap:var(--spacing-xs)}.header .nav-menu .nav-item[data-v-d42b9121]:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}.main-content[data-v-d42b9121]{padding-top:80px}.hero-section[data-v-d42b9121]{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;padding:var(--spacing-xxl) var(--spacing-lg)}.hero-section .hero-content[data-v-d42b9121]{text-align:center;max-width:600px;color:#fff}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:48px;font-weight:700;margin-bottom:var(--spacing-lg);line-height:1.2}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:18px;margin-bottom:var(--spacing-xxl);opacity:.9;line-height:1.6}.hero-section .hero-content .hero-actions[data-v-d42b9121]{display:flex;gap:var(--spacing-md);justify-content:center;flex-wrap:wrap}.hero-section .hero-content .hero-actions .start-chat-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);color:#fff}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]:hover{background:rgba(255,255,255,.2);border-color:#ffffff80}.hero-section .hero-decoration[data-v-d42b9121]{position:absolute;top:50%;right:10%;transform:translateY(-50%)}.hero-section .hero-decoration .floating-card[data-v-d42b9121]{position:absolute;padding:var(--spacing-md);background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;gap:var(--spacing-sm);white-space:nowrap}.hero-section .hero-decoration .floating-card .icon[data-v-d42b9121]{font-size:20px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(1){top:-60px;right:0}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(2){top:20px;right:-40px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(3){top:100px;right:20px}.features-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.features-section .section-header[data-v-d42b9121]{text-align:center;margin-bottom:var(--spacing-xxl);color:#fff}.features-section .section-header .section-title[data-v-d42b9121]{font-size:36px;margin-bottom:var(--spacing-md)}.features-section .section-header .section-description[data-v-d42b9121]{font-size:16px;opacity:.8}.features-section .features-grid[data-v-d42b9121]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--spacing-xl);max-width:1000px;margin:0 auto}.features-section .features-grid .feature-card[data-v-d42b9121]{text-align:center;background:rgba(255,255,255,.95)}.features-section .features-grid .feature-card .feature-icon[data-v-d42b9121]{font-size:48px;color:var(--primary-color);margin-bottom:var(--spacing-md)}.features-section .features-grid .feature-card .feature-title[data-v-d42b9121]{font-size:20px;margin-bottom:var(--spacing-md);color:var(--text-primary)}.features-section .features-grid .feature-card .feature-description[data-v-d42b9121]{color:var(--text-secondary);line-height:1.6}.stats-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{max-width:800px;margin:0 auto;padding:var(--spacing-xl);display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--spacing-xl);text-align:center}.stats-section .stats-container .stat-item .stat-number[data-v-d42b9121]{font-size:36px;font-weight:700;margin-bottom:var(--spacing-sm)}.stats-section .stats-container .stat-item .stat-label[data-v-d42b9121]{color:#fffc;font-size:14px}.api-test-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.api-test-section[data-v-d42b9121] .ant-card{background:rgba(255,255,255,.95);border:none;border-radius:var(--border-radius-large);box-shadow:var(--shadow-large)}.footer[data-v-d42b9121]{padding:var(--spacing-xl) var(--spacing-lg);background:rgba(0,0,0,.2)}.footer .footer-content[data-v-d42b9121]{text-align:center;color:#ffffffb3}@media (max-width: 768px){.header .header-content[data-v-d42b9121]{padding:0 var(--spacing-md)}.header .nav-menu[data-v-d42b9121]{gap:var(--spacing-md)}.header .nav-menu .nav-item[data-v-d42b9121]{padding:var(--spacing-xs) var(--spacing-sm);font-size:14px}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:32px}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:16px}.hero-section .hero-decoration[data-v-d42b9121]{display:none}.features-section .features-grid[data-v-d42b9121]{grid-template-columns:1fr;gap:var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{grid-template-columns:repeat(2,1fr);gap:var(--spacing-lg)}} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HomeTest-dd1db0d3.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HomeTest-dd1db0d3.css deleted file mode 100644 index f278ea2..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/HomeTest-dd1db0d3.css +++ /dev/null @@ -1 +0,0 @@ -.home-test[data-v-6c328404]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:40px;text-align:center;color:#fff}h1[data-v-6c328404]{font-size:2.5rem;margin-bottom:20px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}p[data-v-6c328404]{font-size:1.2rem;margin-bottom:30px}.test-buttons[data-v-6c328404]{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}.test-btn[data-v-6c328404]{padding:12px 24px;font-size:16px;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.3);border-radius:8px;color:#fff;cursor:pointer;transition:all .3s ease}.test-btn[data-v-6c328404]:hover{background:rgba(255,255,255,.3);border-color:#ffffff80;transform:translateY(-2px)}.info[data-v-6c328404]{background:rgba(255,255,255,.1);padding:20px;border-radius:12px;max-width:400px;margin:0 auto}.info p[data-v-6c328404]{margin:10px 0;font-size:1rem} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/index-4213a94d.css b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/index-4213a94d.css deleted file mode 100644 index 6834c96..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/css/index-4213a94d.css +++ /dev/null @@ -1 +0,0 @@ -.env-info[data-v-89545570]{font-family:Monaco,Menlo,Ubuntu Mono,monospace}.env-details code[data-v-89545570]{background:#f5f5f5;padding:2px 4px;border-radius:3px;font-size:12px}.env-actions[data-v-89545570]{text-align:center}#app{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:rgba(255,255,255,.1);border-radius:3px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.5)}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-up-enter-active,.slide-up-leave-active{transition:all .3s ease}.slide-up-enter-from{transform:translateY(20px);opacity:0}.slide-up-leave-to{transform:translateY(-20px);opacity:0}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)}@-ms-viewport{width:device-width}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]{-webkit-text-decoration:underline dotted;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}:root{--primary-color: #667eea;--primary-light: #8fa4f3;--primary-dark: #4c63d2;--secondary-color: #764ba2;--accent-color: #f093fb;--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);--gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);--gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);--text-primary: #2c3e50;--text-secondary: #7f8c8d;--text-light: #bdc3c7;--text-white: #ffffff;--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--bg-dark: #2c3e50;--bg-overlay: rgba(0, 0, 0, .5);--border-color: #e9ecef;--border-radius: 12px;--border-radius-small: 8px;--border-radius-large: 16px;--box-shadow: 0 4px 20px rgba(0, 0, 0, .1);--box-shadow-hover: 0 8px 30px rgba(0, 0, 0, .15);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-xxl: 48px}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-between{display:flex;align-items:center;justify-content:space-between}.flex-column{display:flex;flex-direction:column}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.w-full{width:100%}.h-full{height:100%}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.gradient-text{background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:600}.glass{background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:var(--border-radius)}.card{background:var(--bg-primary);border-radius:var(--border-radius);box-shadow:var(--box-shadow);padding:var(--spacing-lg);transition:all .3s ease}.card:hover{box-shadow:var(--box-shadow-hover);transform:translateY(-2px)}.ant-btn{border-radius:var(--border-radius-small);font-weight:500;transition:all .3s ease}.ant-btn.gradient-btn{background:var(--gradient-primary);border:none;color:#fff}.ant-btn.gradient-btn:hover{background:var(--gradient-primary);opacity:.9;transform:translateY(-1px);box-shadow:0 4px 15px #667eea66}.ant-input{border-radius:var(--border-radius-small);border:1px solid var(--border-color);transition:all .3s ease}.ant-input:focus{border-color:var(--primary-color);box-shadow:0 0 0 2px #667eea33}.message-bubble{max-width:70%;padding:var(--spacing-md);border-radius:var(--border-radius);margin-bottom:var(--spacing-md);word-wrap:break-word}.message-bubble.user{background:var(--gradient-primary);color:#fff;margin-left:auto;border-bottom-right-radius:var(--spacing-xs)}.message-bubble.assistant{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-color);border-bottom-left-radius:var(--spacing-xs)}@media (max-width: 768px){.message-bubble{max-width:85%}.card{padding:var(--spacing-md)}}.bounce-in{animation:bounceIn .6s ease}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}to{opacity:1;transform:scale(1)}}.fade-in-up{animation:fadeInUp .6s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.loading-dots{display:inline-block}.loading-dots:after{content:"";animation:dots 1.5s steps(5,end) infinite}@keyframes dots{0%,20%{color:#0000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}40%{color:#000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}60%{text-shadow:.25em 0 0 black,.5em 0 0 rgba(0,0,0,0)}80%,to{text-shadow:.25em 0 0 black,.5em 0 0 black}} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/AnalysisSimple-7a988a7b.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/AnalysisSimple-7a988a7b.js deleted file mode 100644 index 5bda6bc..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/AnalysisSimple-7a988a7b.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,u as p,b as m,o as v,e as f,f as t,c as o,w as n,g as l}from"./index-bf5be19f.js";const y={class:"analysis-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},c={__name:"AnalysisSimple",setup(x){const a=p(),_=()=>{a.push("/")},r=()=>{alert("情绪分析页面测试按钮工作正常!")};return(i,s)=>{const e=m("a-button");return v(),f("div",y,[t("div",k,[s[3]||(s[3]=t("h1",null,"情绪分析",-1)),o(e,{onClick:_},{default:n(()=>s[2]||(s[2]=[l("返回首页")])),_:1,__:[2]})]),t("div",b,[t("div",g,[s[7]||(s[7]=t("h2",null,"情绪分析功能",-1)),s[8]||(s[8]=t("p",null,"这里将提供强大的情绪分析功能,帮助您了解自己的情绪状态。",-1)),t("div",C,[o(e,{type:"primary",onClick:r},{default:n(()=>s[4]||(s[4]=[l("测试按钮")])),_:1,__:[4]}),o(e,{onClick:s[0]||(s[0]=u=>i.$router.push("/chat"))},{default:n(()=>s[5]||(s[5]=[l("开始对话")])),_:1,__:[5]}),o(e,{onClick:s[1]||(s[1]=u=>i.$router.push("/history"))},{default:n(()=>s[6]||(s[6]=[l("查看历史")])),_:1,__:[6]})])])])])}}},$=d(c,[["__scopeId","data-v-28c071bd"]]);export{$ as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/ChatComplete-7551ced4.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/ChatComplete-7551ced4.js deleted file mode 100644 index 3d34fd9..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/ChatComplete-7551ced4.js +++ /dev/null @@ -1 +0,0 @@ -import{c as l,D as De,P as ke,R as Ae,q as ze,a as k,j as V,m as H,s as be,v as Ie,x as Ye,y as R,_ as Oe,b as z,o as m,e as y,w as _,f as r,l as i,g as x,t as C,i as P,F as q,h as G,n as N,u as He,z as Ee,A as Le,k as Te,B,G as Ne,H as Be}from"./index-bf5be19f.js";import{A as I,c as T,H as Z,B as Re,R as U,M as oe,S as Fe}from"./chat-e1054b12.js";var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};const Ve=Ue;var qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"};const Ge=qe;var Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const We=Ze;var Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Qe=Je;var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};const Ke=Xe;var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"};const tt=et;var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};const st=nt;var at={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"};const rt=at;function le(n){for(var t=1;t{const n=k([]),t=k(null),e=k([]),s=k(!1),a=k(!1),g=V(()=>n.value.length>0),h=V(()=>{var v;return(v=t.value)==null?void 0:v.conversationId}),w=async v=>{try{const f=await T.getConversations(v);f.success&&(n.value=f.data||[])}catch(f){console.error("获取会话列表失败:",f),H.error("获取会话列表失败")}},d=async v=>{try{s.value=!0,console.log("创建会话请求参数:",v);const f=await T.createConversation(v);if(console.log("创建会话响应:",f),f.success){const p=f.data,S={conversationId:p.conversationId,userId:p.userId,title:p.title||"新对话",type:p.type||"emotion_chat",status:p.status||"active",createTime:p.createTime||new Date().toISOString(),updateTime:p.updateTime||new Date().toISOString(),messageCount:0};return n.value.unshift(S),t.value=S,e.value=[],S}throw new Error(f.message||"创建会话失败")}catch(f){throw console.error("创建会话失败:",f),H.error(f.message||"创建会话失败"),f}finally{s.value=!1}},c=async(v,f=!0)=>{if(!t.value){H.error("请先创建会话");return}try{a.value=!0;const p={id:`user_${Date.now()}`,content:v,sender:"user",timestamp:new Date,type:"text"};e.value.push(p),console.log("添加用户消息:",p);const S={userId:t.value.userId,conversationId:t.value.conversationId,message:v,needEmotionAnalysis:f,type:"text"};console.log("发送消息请求:",S);const M=await T.sendMessage(S);if(console.log("发送消息响应:",M),M.success){const E={id:M.data.messageId||`ai_${Date.now()}`,content:M.data.content,sender:"assistant",timestamp:M.data.timestamp?new Date(M.data.timestamp):new Date,type:M.data.type||"text",emotionAnalysis:M.data.emotionAnalysis};return e.value.push(E),console.log("添加AI消息:",E),t.value&&(t.value.updateTime=new Date().toISOString(),t.value.messageCount=(t.value.messageCount||0)+2),E}throw new Error(M.message||"发送消息失败")}catch(p){throw console.error("发送消息失败:",p),H.error(p.message||"发送消息失败"),e.value=e.value.filter(S=>S.id!==`user_${Date.now()}`),p}finally{a.value=!1}},O=async v=>{try{s.value=!0;const f=await T.getMessages(v);f.success&&(e.value=f.data||[])}catch(f){console.error("获取消息失败:",f),H.error("获取消息失败")}finally{s.value=!1}},A=async v=>{t.value=v,await O(v.conversationId)},j=()=>{t.value=null,e.value=[]};return{conversations:n,currentConversation:t,messages:e,loading:s,typing:a,hasConversations:g,currentConversationId:h,fetchConversations:w,createConversation:d,sendMessage:c,fetchMessages:O,switchConversation:A,clearCurrentConversation:j,deleteConversation:async v=>{var f;try{await T.deleteConversation(v),n.value=n.value.filter(p=>p.conversationId!==v),((f=t.value)==null?void 0:f.conversationId)===v&&j(),H.success("删除成功")}catch(p){console.error("删除会话失败:",p),H.error("删除会话失败")}}}});var we={exports:{}};(function(n,t){(function(e,s){n.exports=s()})(be,function(){return function(e,s,a){e=e||{};var g=s.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function w(c,O,A,j){return g.fromToBase(c,O,A,j)}a.en.relativeTime=h,g.fromToBase=function(c,O,A,j,Y){for(var v,f,p,S=A.$locale().relativeTime||h,M=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=M.length,L=0;L0,u<=D.r||!D.r){u<=1&&L>0&&(D=M[L-1]);var o=S[D.l];Y&&(u=Y(""+u)),f=typeof o=="string"?o.replace("%d",u):o(u,O,D.l,p);break}}if(O)return f;var $=p?S.future:S.past;return typeof $=="function"?$(f):$.replace("%s",f)},g.to=function(c,O){return w(c,O,this,!0)},g.from=function(c,O){return w(c,O,this)};var d=function(c){return c.$u?a.utc():a()};g.toNow=function(c){return this.to(d(this),c)},g.fromNow=function(c){return this.from(d(this),c)}}})})(we);var xt=we.exports;const jt=Ie(xt);var Dt={exports:{}};(function(n,t){(function(e,s){n.exports=s(Ye)})(be,function(e){function s(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var a=s(e),g={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(h,w){return w==="W"?h+"周":h+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(h,w){var d=100*h+w;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};return a.default.locale(g,null,!0),g})})(Dt);R.extend(jt);R.locale("zh-cn");function _e(n,t="YYYY-MM-DD HH:mm:ss"){if(!n)return"";const e=R(),s=R(n),a=e.diff(s,"hour"),g=e.diff(s,"day");return g===0?a===0?s.fromNow():s.format("HH:mm"):g===1?`昨天 ${s.format("HH:mm")}`:g<7?s.format("dddd HH:mm"):s.year()===e.year()?s.format("MM-DD HH:mm"):s.format(t)}function kt(n){if(!n)return"";let e=n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"
");const s=/(https?:\/\/[^\s]+)/g;e=e.replace(s,'$1');const a=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;e=e.replace(a,'$1');const g=/(\d{3}-\d{4}-\d{4}|\d{11})/g;return e=e.replace(g,'$1'),Object.entries({":)":"😊",":-)":"😊",":(":"😢",":-(":"😢",":D":"😃",":-D":"😃",":P":"😛",":-P":"😛",";)":"😉",";-)":"😉",":o":"😮",":-o":"😮",":|":"😐",":-|":"😐","<3":"❤️","{const c=new RegExp(At(w),"g");e=e.replace(c,d)}),e}function At(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const zt={class:"emotion-analysis-simple"},It={class:"card-title"},Yt={class:"analysis-content"},Ht={key:0,class:"primary-emotion"},Et={key:0,class:"emotion-intensity"},Lt={key:1,class:"emotion-polarity"},Tt={key:2,class:"keywords"},Nt={class:"keywords-list"},Bt={key:3,class:"suggestion"},Rt={class:"suggestion-label"},Ft={class:"suggestion-content"},Ut={key:4,class:"confidence"},Vt={class:"confidence-value"},qt={__name:"EmotionAnalysisSimple",props:{analysis:{type:Object,required:!0,default:()=>({})}},setup(n){const t={joy:"喜悦",sadness:"悲伤",anger:"愤怒",fear:"恐惧",surprise:"惊讶",disgust:"厌恶",trust:"信任",anticipation:"期待",anxiety:"焦虑",depression:"抑郁",excitement:"兴奋",calm:"平静",stress:"压力",happiness:"快乐",worry:"担忧",relief:"放松",frustration:"沮丧",hope:"希望",love:"爱",hate:"恨"},e={positive:"积极",negative:"消极",neutral:"中性"},s=d=>t[d]||d,a=d=>e[d]||d,g=d=>({joy:"gold",happiness:"gold",excitement:"orange",love:"magenta",trust:"blue",hope:"cyan",calm:"green",relief:"green",sadness:"blue",depression:"purple",worry:"orange",anxiety:"orange",stress:"red",anger:"red",frustration:"red",hate:"red",fear:"volcano",surprise:"lime",anticipation:"geekblue",disgust:"default"})[d]||"default",h=d=>({positive:"success",negative:"error",neutral:"default"})[d]||"default",w=d=>d>=.8?"#52c41a":d>=.6?"#faad14":"#ff4d4f";return(d,c)=>{const O=z("a-tag"),A=z("a-progress"),j=z("a-card");return m(),y("div",zt,[l(j,{size:"small",class:"analysis-card"},{title:_(()=>[r("div",It,[l(i(Z),{class:"title-icon"}),c[0]||(c[0]=x(" 情绪分析 "))])]),default:_(()=>[r("div",Yt,[n.analysis.primaryEmotion?(m(),y("div",Ht,[c[1]||(c[1]=r("span",{class:"emotion-label"},"主要情绪:",-1)),l(O,{color:g(n.analysis.primaryEmotion),class:"emotion-tag"},{default:_(()=>[x(C(s(n.analysis.primaryEmotion)),1)]),_:1},8,["color"]),n.analysis.intensity?(m(),y("span",Et," ("+C(Math.round(n.analysis.intensity*100))+"%) ",1)):P("",!0)])):P("",!0),n.analysis.polarity?(m(),y("div",Lt,[c[2]||(c[2]=r("span",{class:"polarity-label"},"情绪倾向:",-1)),l(O,{color:h(n.analysis.polarity),class:"polarity-tag"},{default:_(()=>[x(C(a(n.analysis.polarity)),1)]),_:1},8,["color"])])):P("",!0),n.analysis.keywords&&n.analysis.keywords.length>0?(m(),y("div",Tt,[c[3]||(c[3]=r("span",{class:"keywords-label"},"关键词:",-1)),r("div",Nt,[(m(!0),y(q,null,G(n.analysis.keywords.slice(0,3),Y=>(m(),N(O,{key:Y,class:"keyword-tag",size:"small"},{default:_(()=>[x(C(Y),1)]),_:2},1024))),128))])])):P("",!0),n.analysis.suggestion?(m(),y("div",Bt,[r("div",Rt,[l(i(Re),{class:"suggestion-icon"}),c[4]||(c[4]=x(" 建议: "))]),r("div",Ft,C(n.analysis.suggestion),1)])):P("",!0),n.analysis.confidence?(m(),y("div",Ut,[c[5]||(c[5]=r("span",{class:"confidence-label"},"置信度:",-1)),l(A,{percent:Math.round(n.analysis.confidence*100),"stroke-color":w(n.analysis.confidence),size:"small","show-info":!1,style:{width:"80px",display:"inline-block","margin-left":"8px"}},null,8,["percent","stroke-color"]),r("span",Vt,C(Math.round(n.analysis.confidence*100))+"%",1)])):P("",!0)])]),_:1})])}}},Gt=Oe(qt,[["__scopeId","data-v-c61d1b05"]]);const Zt={class:"chat-complete"},Wt={class:"sidebar-header"},Jt={key:0,class:"logo"},Qt={key:0,class:"sidebar-content"},Xt={class:"conversations-list"},Kt={class:"list-header"},en={key:0,class:"conversations"},tn=["onClick"],nn={class:"conversation-info"},sn={class:"conversation-title"},an={class:"conversation-time"},rn={key:1,class:"empty-conversations"},on={key:1,class:"user-info"},ln={class:"user-avatar"},cn={class:"user-details"},un={class:"user-name"},dn={class:"chat-main"},fn={key:0,class:"chat-header"},mn={class:"chat-info"},vn={class:"chat-title"},pn={class:"chat-status"},gn={class:"chat-actions"},yn={key:0,class:"welcome-screen"},hn={class:"welcome-content"},_n={class:"welcome-icon"},bn={class:"welcome-features"},On={class:"feature-item"},wn={class:"feature-item"},Cn={class:"feature-item"},Mn={key:1,class:"messages-list"},Sn={class:"message-avatar"},Pn={class:"message-content"},$n={class:"message-bubble"},xn=["innerHTML"],jn={class:"message-time"},Dn={key:0,class:"emotion-analysis"},kn={key:0,class:"message-item assistant"},An={class:"message-avatar"},zn={key:1,class:"input-area"},In={class:"input-container"},Yn={class:"input-actions"},Hn={class:"connection-status"},En={class:"status-item"},Ln={class:"status-item"},Tn={class:"status-item"},Nn={class:"status-item"},Bn={class:"user-id"},Rn={__name:"ChatComplete",setup(n){He();const t=Ee(),e=$t(),s=k(!1),a=k(""),g=k(!0),h=k(null),w=k(!1),d=k({connected:!1}),c=k({healthy:!1}),O=V(()=>e.typing?"AI正在思考中...":"输入您想说的话..."),A=()=>{s.value=!s.value},j=async()=>{try{const u=`对话 ${new Date().toLocaleString()}`;await e.createConversation({userId:t.userInfo.id,title:u,type:"emotion_chat",initialMessage:"您好,我想开始一段新的对话"}),H.success("新对话创建成功")}catch(u){console.error("创建对话失败:",u)}},Y=async()=>{try{await e.fetchConversations(t.userInfo.id)}catch(u){console.error("刷新对话列表失败:",u)}},v=async u=>{try{await e.switchConversation(u),D()}catch(o){console.error("切换对话失败:",o)}},f=async u=>{try{await e.deleteConversation(u)}catch(o){console.error("删除对话失败:",o)}},p=async()=>{if(!a.value.trim())return;const u=a.value.trim();a.value="";try{await e.sendMessage(u,g.value),D()}catch(o){console.error("发送消息失败:",o)}},S=u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),p())},M=()=>{var u;return e.typing?"AI正在输入...":((u=e.currentConversation)==null?void 0:u.status)==="active"?"对话中":"已结束"},E=async()=>{if(e.currentConversation)try{await T.endConversation(e.currentConversation.conversationId),e.currentConversation.status="ended",H.success("对话已结束")}catch(u){console.error("结束对话失败:",u)}},L=async()=>{w.value=!0;try{const u=await T.healthCheck();d.value.connected=u.success,c.value.healthy=u.success&&u.data}catch{d.value.connected=!1,c.value.healthy=!1}},D=()=>{Ne(()=>{h.value&&(h.value.scrollTop=h.value.scrollHeight)})};return Le(()=>e.messages.length,()=>{D()}),Te(async()=>{console.log("ChatComplete组件挂载,用户信息:",t.userInfo),await Y(),!e.currentConversation&&e.conversations.length===0&&await j()}),(u,o)=>{const $=z("a-button"),Ce=z("a-menu-item"),Me=z("a-menu"),Se=z("a-dropdown"),Pe=z("a-textarea"),$e=z("a-tooltip"),F=z("a-tag"),xe=z("a-modal");return m(),y("div",Zt,[r("aside",{class:B(["sidebar",{collapsed:s.value}])},[r("div",Wt,[s.value?P("",!0):(m(),y("div",Jt,o[4]||(o[4]=[r("h2",{class:"gradient-text"},"情绪博物馆",-1),r("span",{class:"subtitle"},"AI心理助手",-1)]))),l($,{type:"text",class:"collapse-btn",onClick:A},{default:_(()=>[s.value?(m(),N(i(pt),{key:0})):(m(),N(i(mt),{key:1}))]),_:1})]),s.value?P("",!0):(m(),y("div",Qt,[l($,{type:"primary",class:"new-chat-btn",block:"",onClick:j,loading:i(e).loading,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-bottom":"20px"}},{default:_(()=>[l(i(_t)),o[5]||(o[5]=x(" 新建对话 "))]),_:1,__:[5]},8,["loading"]),r("div",Xt,[r("div",Kt,[o[6]||(o[6]=r("span",{class:"list-title"},"最近对话",-1)),l($,{type:"text",size:"small",onClick:Y,loading:i(e).loading},{default:_(()=>[l(i(Ct))]),_:1},8,["loading"])]),i(e).hasConversations?(m(),y("div",en,[(m(!0),y(q,null,G(i(e).conversations,b=>(m(),y("div",{class:B(["conversation-item",{active:b.conversationId===i(e).currentConversationId}]),key:b.conversationId,onClick:je=>v(b)},[r("div",nn,[r("div",sn,C(b.title),1),r("div",an,C(i(_e)(b.updateTime)),1)]),l(Se,{trigger:["click"],onClick:o[0]||(o[0]=Be(()=>{},["stop"]))},{overlay:_(()=>[l(Me,null,{default:_(()=>[l(Ce,{onClick:je=>f(b.conversationId)},{default:_(()=>[l(i(dt)),o[7]||(o[7]=x(" 删除对话 "))]),_:2,__:[7]},1032,["onClick"])]),_:2},1024)]),default:_(()=>[l($,{type:"text",size:"small",class:"more-btn"},{default:_(()=>[l(i(yt))]),_:1})]),_:2},1024)],10,tn))),128))])):(m(),y("div",rn,[l(i(ct),{class:"empty-icon"}),o[8]||(o[8]=r("p",null,"暂无对话记录",-1))]))])])),s.value?P("",!0):(m(),y("div",on,[r("div",ln,[l(i(he))]),r("div",cn,[r("div",un,C(i(t).userInfo.name),1),r("div",{class:B(["user-status",{guest:i(t).userInfo.isGuest}])},C(i(t).userInfo.isGuest?"访客模式":"在线"),3)])]))],2),r("main",dn,[i(e).currentConversation?(m(),y("header",fn,[r("div",mn,[r("h3",vn,C(i(e).currentConversation.title),1),r("span",pn,C(M()),1)]),r("div",gn,[l($,{type:"text",onClick:L},{default:_(()=>[l(i(lt)),o[9]||(o[9]=x(" 连接状态 "))]),_:1,__:[9]}),i(e).currentConversation.status==="active"?(m(),N($,{key:0,type:"text",onClick:E},{default:_(()=>[l(i(Ot)),o[10]||(o[10]=x(" 结束对话 "))]),_:1,__:[10]})):P("",!0)])])):P("",!0),r("div",{class:"messages-container",ref_key:"messagesContainer",ref:h},[i(e).currentConversation?(m(),y("div",Mn,[(m(!0),y(q,null,G(i(e).messages,b=>(m(),y("div",{class:B(["message-item",b.sender]),key:b.id},[r("div",Sn,[b.sender==="user"?(m(),N(i(he),{key:0})):(m(),N(i(U),{key:1}))]),r("div",Pn,[r("div",$n,[r("div",{class:"message-text",innerHTML:i(kt)(b.content)},null,8,xn),r("div",jn,C(i(_e)(b.timestamp)),1)]),b.emotionAnalysis?(m(),y("div",Dn,[l(Gt,{analysis:b.emotionAnalysis},null,8,["analysis"])])):P("",!0)])],2))),128)),i(e).typing?(m(),y("div",kn,[r("div",An,[l(i(U))]),o[17]||(o[17]=r("div",{class:"message-content"},[r("div",{class:"message-bubble typing"},[r("div",{class:"typing-indicator"},[r("span"),r("span"),r("span")]),r("div",{class:"typing-text"},"AI正在思考中...")])],-1))])):P("",!0)])):(m(),y("div",yn,[r("div",hn,[r("div",_n,[l(i(U))]),o[15]||(o[15]=r("h2",{class:"welcome-title"},"欢迎使用AI心理健康助手",-1)),o[16]||(o[16]=r("p",{class:"welcome-description"}," 我是您的专属AI助手,可以为您提供情绪支持、心理分析和个性化建议。 让我们开始一段温暖的对话吧! ",-1)),r("div",bn,[r("div",On,[l(i(Z)),o[11]||(o[11]=r("span",null,"情绪分析",-1))]),r("div",wn,[l(i(oe)),o[12]||(o[12]=r("span",null,"智能对话",-1))]),r("div",Cn,[l(i(Fe)),o[13]||(o[13]=r("span",null,"隐私保护",-1))])]),l($,{type:"primary",size:"large",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-top":"20px"}},{default:_(()=>[l(i(oe)),o[14]||(o[14]=x(" 开始对话 "))]),_:1,__:[14]})])]))],512),i(e).currentConversation?(m(),y("div",zn,[r("div",In,[l(Pe,{value:a.value,"onUpdate:value":o[1]||(o[1]=b=>a.value=b),placeholder:O.value,"auto-size":{minRows:1,maxRows:4},onKeydown:S,disabled:i(e).typing,class:"message-input"},null,8,["value","placeholder","disabled"]),r("div",Yn,[l($e,{title:"情绪分析"},{default:_(()=>[l($,{type:"text",class:B({active:g.value}),onClick:o[2]||(o[2]=b=>g.value=!g.value)},{default:_(()=>[l(i(Z))]),_:1},8,["class"])]),_:1}),l($,{type:"primary",class:"send-btn",onClick:p,loading:i(e).typing,disabled:!a.value.trim(),style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none"}},{default:_(()=>[l(i(St))]),_:1},8,["loading","disabled"])])])])):P("",!0)]),l(xe,{open:w.value,"onUpdate:open":o[3]||(o[3]=b=>w.value=b),title:"连接状态",footer:null,width:"400px"},{default:_(()=>[r("div",Hn,[r("div",En,[o[19]||(o[19]=r("span",{class:"status-label"},"前端状态:",-1)),l(F,{color:"success"},{default:_(()=>o[18]||(o[18]=[x("正常")])),_:1,__:[18]})]),r("div",Ln,[o[20]||(o[20]=r("span",{class:"status-label"},"后端连接:",-1)),l(F,{color:d.value.connected?"success":"error"},{default:_(()=>[x(C(d.value.connected?"已连接":"连接失败"),1)]),_:1},8,["color"])]),r("div",Tn,[o[21]||(o[21]=r("span",{class:"status-label"},"AI服务:",-1)),l(F,{color:c.value.healthy?"success":"warning"},{default:_(()=>[x(C(c.value.healthy?"正常":"检查中"),1)]),_:1},8,["color"])]),r("div",Nn,[o[22]||(o[22]=r("span",{class:"status-label"},"用户ID:",-1)),r("span",Bn,C(i(t).userInfo.id),1)])])]),_:1},8,["open"])])}}},Vn=Oe(Rn,[["__scopeId","data-v-23c54516"]]);export{Vn as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HistorySimple-e430de64.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HistorySimple-e430de64.js deleted file mode 100644 index 68a4578..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HistorySimple-e430de64.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as p,u as d,b as m,o as v,e as f,f as s,c as e,w as n,g as l}from"./index-bf5be19f.js";const y={class:"history-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},x={__name:"HistorySimple",setup(B){const i=d(),r=()=>{i.push("/")},_=()=>{alert("历史记录页面测试按钮工作正常!")};return(a,t)=>{const o=m("a-button");return v(),f("div",y,[s("div",k,[t[3]||(t[3]=s("h1",null,"对话历史",-1)),e(o,{onClick:r},{default:n(()=>t[2]||(t[2]=[l("返回首页")])),_:1,__:[2]})]),s("div",b,[s("div",g,[t[7]||(t[7]=s("h2",null,"对话历史记录",-1)),t[8]||(t[8]=s("p",null,"这里将显示您的所有对话历史记录。",-1)),s("div",C,[e(o,{type:"primary",onClick:_},{default:n(()=>t[4]||(t[4]=[l("测试按钮")])),_:1,__:[4]}),e(o,{onClick:t[0]||(t[0]=u=>a.$router.push("/chat"))},{default:n(()=>t[5]||(t[5]=[l("开始对话")])),_:1,__:[5]}),e(o,{onClick:t[1]||(t[1]=u=>a.$router.push("/analysis"))},{default:n(()=>t[6]||(t[6]=[l("情绪分析")])),_:1,__:[6]})])])])])}}},c=p(x,[["__scopeId","data-v-4baa7231"]]);export{c as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/Home-8e72349b.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/Home-8e72349b.js deleted file mode 100644 index 58b885f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/Home-8e72349b.js +++ /dev/null @@ -1 +0,0 @@ -import{c,C as ae,d as l,_ as X,r as ne,a as P,b as k,o as p,e as v,w as f,f as n,g,F as R,h as x,t as w,i as E,m as u,E as z,u as oe,j as ce,k as le,l as A,n as ie,p as ue}from"./index-bf5be19f.js";import{A as $,r as y,c as I,g as S,M,H as de,B as fe,S as ge,R as me}from"./chat-e1054b12.js";var pe={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-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};const ve=pe;var he={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"};const ye=he;var _e={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-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};const be=_e;var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Ce=Oe;function T(t){for(var e=1;es.success);return l("所有服务测试结果:",t),{success:e,message:e?"所有服务连接正常":"部分服务连接失败",results:t}},async testUserRegister(){l("开始测试用户注册流程...");const t={account:`test_${Date.now()}`,password:"Test123456",email:`test_${Date.now()}@example.com`,phone:`138${Date.now().toString().slice(-8)}`,nickname:"测试用户"};try{const e=await W.register(t);return l("用户注册测试成功:",e),{success:!0,message:"用户注册流程正常",data:e}}catch(e){return l("用户注册测试失败:",e),{success:!1,message:"用户注册流程失败",error:e.message}}},async testAiChat(){l("开始测试AI对话流程...");try{const t={userId:"test_user",title:"测试会话",type:"chat"},e=await I.createConversation(t);if(l("创建会话测试:",e),!e.success)throw new Error("创建会话失败");const s={userId:"test_user",conversationId:e.data.conversationId,message:"你好,这是一条测试消息"},r=await I.sendMessage(s);return l("发送消息测试:",r),{success:!0,message:"AI对话流程正常",data:{conversation:e.data,chat:r.data}}}catch(t){return l("AI对话测试失败:",t),{success:!1,message:"AI对话流程失败",error:t.message}}},async testEmotionAnalysis(){l("开始测试情绪分析...");try{const t={userId:"test_user",text:"我今天心情很好,阳光明媚,感觉充满了希望和活力。"},e=await I.analyzeEmotion(t);return l("情绪分析测试:",e),{success:!0,message:"情绪分析功能正常",data:e.data}}catch(t){return l("情绪分析测试失败:",t),{success:!1,message:"情绪分析功能失败",error:t.message}}},async testGuestChat(){l("开始测试访客聊天功能...");try{const t=await S.getGuestUserInfo();if(l("获取访客用户信息:",t),!t.success)throw new Error("获取访客用户信息失败");const e={message:"你好,我是访客用户,这是一条测试消息。",title:"访客测试会话"},s=await S.guestChat(e);if(l("访客聊天测试:",s),!s.success)throw new Error("访客聊天失败");const r=await S.getGuestConversations();return l("访客会话列表:",r),{success:!0,message:"访客聊天功能正常",data:{userInfo:t.data,chat:s.data,conversations:r.data}}}catch(t){return l("访客聊天测试失败:",t),{success:!1,message:"访客聊天功能失败",error:t.message}}},async testGuestEmotionAnalysis(){l("开始测试访客情绪分析...");try{const t={text:"我感到有些焦虑和不安,不知道该怎么办。"},e=await S.analyzeGuestEmotion(t);return l("访客情绪分析测试:",e),{success:!0,message:"访客情绪分析功能正常",data:e.data}}catch(t){return l("访客情绪分析测试失败:",t),{success:!1,message:"访客情绪分析功能失败",error:t.message}}},async testGuestHealthCheck(){l("开始测试访客服务健康检查...");try{const t=await S.guestHealthCheck();return l("访客服务健康检查:",t),{success:!0,message:"访客服务健康检查正常",data:t.data}}catch(t){return l("访客服务健康检查失败:",t),{success:!1,message:"访客服务健康检查失败",error:t.message}}}};const Le={class:"api-test"},Re={class:"test-buttons"},xe={key:0,class:"test-results"},ze={class:"result-details"},Ve={key:0,class:"result-data"},Be={key:1,class:"result-error"},De={class:"result-time"},Ge={__name:"ApiTest",setup(t){const e=ne({all:!1,user:!1,ai:!1,register:!1,chat:!1,emotion:!1,guestChat:!1,guestEmotion:!1,guestHealth:!1}),s=P([]),r=a=>{s.value.unshift({...a,timestamp:new Date().toLocaleString()})},i=a=>{s.value.splice(a,1)},H=()=>{s.value=[],u.success("已清空测试结果")},j=async()=>{e.all=!0;try{const a=await _.testAllServices();r({...a,description:`环境: ${z.APP_ENV}, API地址: ${z.API_BASE_URL}`}),a.success?u.success("所有服务测试完成"):u.warning("部分服务测试失败")}catch(a){r({success:!1,message:"测试执行失败",error:a.message}),u.error("测试执行失败")}finally{e.all=!1}},L=async()=>{e.user=!0;try{const a=await _.testUserService();r(a),a.success?u.success("用户服务测试成功"):u.error("用户服务测试失败")}catch(a){r({success:!1,message:"用户服务测试失败",error:a.message}),u.error("用户服务测试失败")}finally{e.user=!1}},b=async()=>{e.ai=!0;try{const a=await _.testAiService();r(a),a.success?u.success("AI服务测试成功"):u.error("AI服务测试失败")}catch(a){r({success:!1,message:"AI服务测试失败",error:a.message}),u.error("AI服务测试失败")}finally{e.ai=!1}},o=async()=>{e.register=!0;try{const a=await _.testUserRegister();r(a),a.success?u.success("用户注册测试成功"):u.error("用户注册测试失败")}catch(a){r({success:!1,message:"用户注册测试失败",error:a.message}),u.error("用户注册测试失败")}finally{e.register=!1}},C=async()=>{e.chat=!0;try{const a=await _.testAiChat();r(a),a.success?u.success("AI对话测试成功"):u.error("AI对话测试失败")}catch(a){r({success:!1,message:"AI对话测试失败",error:a.message}),u.error("AI对话测试失败")}finally{e.chat=!1}},m=async()=>{e.emotion=!0;try{const a=await _.testEmotionAnalysis();r(a),a.success?u.success("情绪分析测试成功"):u.error("情绪分析测试失败")}catch(a){r({success:!1,message:"情绪分析测试失败",error:a.message}),u.error("情绪分析测试失败")}finally{e.emotion=!1}},Y=async()=>{e.guestChat=!0;try{const a=await _.testGuestChat();r(a),a.success?u.success("访客聊天测试成功"):u.error("访客聊天测试失败")}catch(a){r({success:!1,message:"访客聊天测试失败",error:a.message}),u.error("访客聊天测试失败")}finally{e.guestChat=!1}},Z=async()=>{e.guestEmotion=!0;try{const a=await _.testGuestEmotionAnalysis();r(a),a.success?u.success("访客情绪分析测试成功"):u.error("访客情绪分析测试失败")}catch(a){r({success:!1,message:"访客情绪分析测试失败",error:a.message}),u.error("访客情绪分析测试失败")}finally{e.guestEmotion=!1}},K=async()=>{e.guestHealth=!0;try{const a=await _.testGuestHealthCheck();r(a),a.success?u.success("访客服务健康检查成功"):u.error("访客服务健康检查失败")}catch(a){r({success:!1,message:"访客服务健康检查失败",error:a.message}),u.error("访客服务健康检查失败")}finally{e.guestHealth=!1}};return(a,d)=>{const h=k("a-button"),ee=k("a-space"),te=k("a-divider"),se=k("a-alert"),re=k("a-card");return p(),v("div",Le,[c(re,{title:"API接口测试",size:"small"},{default:f(()=>[n("div",Re,[c(ee,{wrap:""},{default:f(()=>[c(h,{type:"primary",onClick:j,loading:e.all},{default:f(()=>d[0]||(d[0]=[g(" 测试所有服务 ")])),_:1,__:[0]},8,["loading"]),c(h,{onClick:L,loading:e.user},{default:f(()=>d[1]||(d[1]=[g(" 测试用户服务 ")])),_:1,__:[1]},8,["loading"]),c(h,{onClick:b,loading:e.ai},{default:f(()=>d[2]||(d[2]=[g(" 测试AI服务 ")])),_:1,__:[2]},8,["loading"]),c(h,{onClick:o,loading:e.register},{default:f(()=>d[3]||(d[3]=[g(" 测试用户注册 ")])),_:1,__:[3]},8,["loading"]),c(h,{onClick:C,loading:e.chat},{default:f(()=>d[4]||(d[4]=[g(" 测试AI对话 ")])),_:1,__:[4]},8,["loading"]),c(h,{onClick:m,loading:e.emotion},{default:f(()=>d[5]||(d[5]=[g(" 测试情绪分析 ")])),_:1,__:[5]},8,["loading"]),c(h,{onClick:Y,loading:e.guestChat},{default:f(()=>d[6]||(d[6]=[g(" 测试访客聊天 ")])),_:1,__:[6]},8,["loading"]),c(h,{onClick:Z,loading:e.guestEmotion},{default:f(()=>d[7]||(d[7]=[g(" 测试访客情绪分析 ")])),_:1,__:[7]},8,["loading"]),c(h,{onClick:K,loading:e.guestHealth},{default:f(()=>d[8]||(d[8]=[g(" 测试访客服务 ")])),_:1,__:[8]},8,["loading"]),c(h,{onClick:H,type:"dashed"},{default:f(()=>d[9]||(d[9]=[g(" 清空结果 ")])),_:1,__:[9]})]),_:1})]),s.value.length>0?(p(),v("div",xe,[c(te,null,{default:f(()=>d[10]||(d[10]=[g("测试结果")])),_:1,__:[10]}),(p(!0),v(R,null,x(s.value,(O,U)=>(p(),v("div",{key:U,class:"result-item"},[c(se,{type:O.success?"success":"error",message:O.message,description:O.description,"show-icon":"",closable:"",onClose:ut=>i(U)},{description:f(()=>[n("div",ze,[O.data?(p(),v("div",Ve,[d[11]||(d[11]=n("strong",null,"响应数据:",-1)),n("pre",null,w(JSON.stringify(O.data,null,2)),1)])):E("",!0),O.error?(p(),v("div",Be,[d[12]||(d[12]=n("strong",null,"错误信息:",-1)),n("code",null,w(O.error),1)])):E("",!0),n("div",De,[n("small",null,"测试时间: "+w(O.timestamp),1)])])]),_:2},1032,["type","message","description","onClose"])]))),128))])):E("",!0)]),_:1})])}}},Ne=X(Ge,[["__scopeId","data-v-5881151e"]]);const Ue={class:"home-container"},Me={class:"header glass"},Te={class:"header-content"},Fe={class:"nav-menu"},qe={class:"main-content"},Je={class:"hero-section"},Qe={class:"hero-content fade-in-up"},We={class:"hero-actions"},Xe={class:"hero-decoration"},Ye={class:"floating-card card bounce-in",style:{"animation-delay":"0.2s"}},Ze={class:"floating-card card bounce-in",style:{"animation-delay":"0.4s"}},Ke={class:"floating-card card bounce-in",style:{"animation-delay":"0.6s"}},et={class:"features-grid"},tt={class:"feature-icon"},st={class:"feature-title"},rt={class:"feature-description"},at={class:"stats-section"},nt={class:"stats-container glass"},ot={class:"stat-number gradient-text"},ct={class:"stat-label"},lt={key:0,class:"api-test-section"},it={__name:"Home",setup(t){const e=oe(),s=P(null),r=ce(()=>z.isDevelopment),i=P([{id:1,icon:me,title:"AI智能对话",description:"基于先进的自然语言处理技术,提供自然流畅的对话体验"},{id:2,icon:Ee,title:"情绪分析",description:"实时分析您的情绪状态,提供专业的心理健康评估"},{id:3,icon:Ie,title:"24/7支持",description:"全天候在线服务,随时随地为您提供情绪支持和心理疏导"},{id:4,icon:je,title:"隐私保护",description:"严格保护用户隐私,所有对话内容都经过加密处理"}]),H=P([{value:"10,000+",label:"用户信赖"},{value:"50,000+",label:"对话次数"},{value:"95%",label:"满意度"},{value:"24/7",label:"在线服务"}]),j=()=>{console.log("开始对话按钮被点击"),e.push("/chat")},L=()=>{var b;(b=s.value)==null||b.scrollIntoView({behavior:"smooth"})};return le(()=>{document.body.style.overflow="hidden",setTimeout(()=>{document.body.style.overflow="auto"},1e3)}),(b,o)=>{const C=k("a-button");return p(),v("div",Ue,[n("header",Me,[n("div",Te,[o[6]||(o[6]=n("div",{class:"logo"},[n("h1",{class:"gradient-text"},"情绪博物馆"),n("span",{class:"subtitle"},"AI心理健康助手")],-1)),n("nav",Fe,[c(C,{type:"text",class:"nav-item",onClick:o[0]||(o[0]=m=>b.$router.push("/chat"))},{default:f(()=>[c(A(M)),o[3]||(o[3]=g(" AI对话 "))]),_:1,__:[3]}),c(C,{type:"text",class:"nav-item",onClick:o[1]||(o[1]=m=>b.$router.push("/history"))},{default:f(()=>[c(A($e)),o[4]||(o[4]=g(" 历史记录 "))]),_:1,__:[4]}),c(C,{type:"text",class:"nav-item",onClick:o[2]||(o[2]=m=>b.$router.push("/analysis"))},{default:f(()=>[c(A(we)),o[5]||(o[5]=g(" 情绪分析 "))]),_:1,__:[5]})])])]),n("main",qe,[n("div",Je,[n("div",Qe,[o[9]||(o[9]=n("h2",{class:"hero-title"}," 欢迎来到情绪博物馆 ",-1)),o[10]||(o[10]=n("p",{class:"hero-description"}," 您的专属AI心理健康助手,提供24/7情绪支持、心理分析和个性化建议 ",-1)),n("div",We,[c(C,{type:"primary",size:"large",class:"start-chat-btn",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-right":"16px"}},{default:f(()=>[c(A(M)),o[7]||(o[7]=g(" 开始对话 "))]),_:1,__:[7]}),c(C,{size:"large",class:"learn-more-btn",onClick:L,style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white"}},{default:f(()=>o[8]||(o[8]=[g(" 了解更多 ")])),_:1,__:[8]})])]),n("div",Xe,[n("div",Ye,[c(A(de),{class:"icon"}),o[11]||(o[11]=n("span",null,"情绪识别",-1))]),n("div",Ze,[c(A(fe),{class:"icon"}),o[12]||(o[12]=n("span",null,"智能建议",-1))]),n("div",Ke,[c(A(ge),{class:"icon"}),o[13]||(o[13]=n("span",null,"隐私保护",-1))])])]),n("section",{class:"features-section",ref_key:"featuresRef",ref:s},[o[14]||(o[14]=n("div",{class:"section-header"},[n("h3",{class:"section-title gradient-text"},"核心功能"),n("p",{class:"section-description"},"专业的AI技术,贴心的情绪关怀")],-1)),n("div",et,[(p(!0),v(R,null,x(i.value,m=>(p(),v("div",{class:"feature-card card",key:m.id},[n("div",tt,[(p(),ie(ue(m.icon)))]),n("h4",st,w(m.title),1),n("p",rt,w(m.description),1)]))),128))])],512),n("section",at,[n("div",nt,[(p(!0),v(R,null,x(H.value,m=>(p(),v("div",{class:"stat-item",key:m.label},[n("div",ot,w(m.value),1),n("div",ct,w(m.label),1)]))),128))])]),r.value?(p(),v("section",lt,[c(Ne)])):E("",!0)]),o[15]||(o[15]=n("footer",{class:"footer"},[n("div",{class:"footer-content"},[n("p",null,"© 2025 情绪博物馆. 用心守护每一份情绪")])],-1))])}}},gt=X(it,[["__scopeId","data-v-d42b9121"]]);export{gt as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HomeTest-a9ed2425.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HomeTest-a9ed2425.js deleted file mode 100644 index cc87679..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/HomeTest-a9ed2425.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r,u as i,a as _,k as p,o as d,e as m,f as t,t as b}from"./index-bf5be19f.js";const v={class:"home-test"},T={class:"info"},f={__name:"HomeTest",setup(g){const o=i(),e=_(""),n=()=>{e.value=new Date().toLocaleString()},l=()=>{alert("测试按钮工作正常!Vue应用运行正常!")},a=()=>{o.push("/chat")},u=()=>{o.push("/history")},c=()=>{o.push("/analysis")};return p(()=>{n(),setInterval(n,1e3),console.log("HomeTest页面加载成功")}),(k,s)=>(d(),m("div",v,[s[1]||(s[1]=t("h1",null,"情绪博物馆测试页面",-1)),s[2]||(s[2]=t("p",null,"如果您能看到这个页面,说明Vue应用正在正常工作!",-1)),t("div",{class:"test-buttons"},[t("button",{onClick:l,class:"test-btn"},"测试按钮1"),t("button",{onClick:a,class:"test-btn"},"前往聊天页面"),t("button",{onClick:u,class:"test-btn"},"前往历史页面"),t("button",{onClick:c,class:"test-btn"},"前往分析页面")]),t("div",T,[t("p",null,"当前时间: "+b(e.value),1),s[0]||(s[0]=t("p",null,"页面加载状态: 正常",-1))])]))}},h=r(f,[["__scopeId","data-v-6c328404"]]);export{h as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/chat-e1054b12.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/chat-e1054b12.js deleted file mode 100644 index d627afe..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/chat-e1054b12.js +++ /dev/null @@ -1,62 +0,0 @@ -import{I as Ue,J as Ut,G as kt,c as L,E as k,d as Y,m as ke}from"./index-bf5be19f.js";var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const Dt=Ft;var It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};const $t=It;var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"};const zt=Mt;var qt={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"};const Ht=qt;var Vt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const Jt=Vt;var Fe=[],M=[],Wt="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gt(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Xt(e,t){if(t=t||{},e===void 0)throw new Error(Wt);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=Fe.indexOf(r);o===-1&&(o=Fe.push(r)-1,M[o]={});var s;return M[o]!==void 0&&M[o][n]!==void 0?s=M[o][n]:(s=M[o][n]=Gt(),n==="prepend"?r.insertBefore(s,r.childNodes[0]):r.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function De(e){for(var t=1;t * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,$e=!1,Zt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qt;kt(function(){$e||(typeof window<"u"&&window.document&&window.document.documentElement&&Xt(t,{prepend:!0}),$e=!0)})},Yt=["icon","primaryColor","secondaryColor"];function en(e,t){if(e==null)return{};var n=tn(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function G(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}ut("#1890ff");var D=function(t,n){var r,o=qe({},t,n.attrs),s=o.class,i=o.icon,c=o.spin,f=o.rotate,l=o.tabindex,u=o.twoToneColor,d=o.onClick,b=gn(o,dn),S=(r={anticon:!0},me(r,"anticon-".concat(i.name),!!i.name),me(r,s,s),r),p=c===""||c||i.name==="loading"?"anticon-spin":"",m=l;m===void 0&&d&&(m=-1,b.tabindex=m);var h=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,g=lt(u),w=pn(g,2),E=w[0],v=w[1];return L("span",qe({role:"img","aria-label":i.name},b,{onClick:d,class:S}),[L(Ee,{class:p,icon:i,primaryColor:E,secondaryColor:v,style:h},null)])};D.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};D.displayName="AntdIcon";D.inheritAttrs=!1;D.getTwoToneColor=fn;D.setTwoToneColor=ut;const V=D;function He(e){for(var t=1;tt=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:I}=Array,H=se("undefined");function An(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=_("ArrayBuffer");function vn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Pn=se("string"),A=se("function"),ht=se("number"),ie=e=>e!==null&&typeof e=="object",_n=e=>e===!0||e===!1,X=e=>{if(oe(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dt in e)&&!(re in e)},xn=_("Date"),jn=_("File"),Nn=_("Blob"),Bn=_("FileList"),Ln=e=>ie(e)&&A(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=oe(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},kn=_("URLSearchParams"),[Fn,Dn,In,$n]=["ReadableStream","Request","Response","Headers"].map(_),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yt=e=>!H(e)&&e!==B;function ye(){const{caseless:e}=yt(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;X(t[s])&&X(r)?t[s]=ye(t[s],r):X(r)?t[s]=ye({},r):I(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&A(o)?e[s]=ft(o,n):e[s]=o},{allOwnKeys:r}),e),qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wn=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Xn=(e,t)=>{const r=(e&&e[re]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Kn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=_("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yn=_("RegExp"),bt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},er=e=>{bt(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return I(e)?r(e):r(String(e).split(t)),n},nr=()=>{},rr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&A(e.append)&&e[dt]==="FormData"&&e[re])}const sr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=I(r)?[]:{};return J(r,(i,c)=>{const f=n(i,o+1);!H(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},ir=_("AsyncFunction"),ar=e=>e&&(ie(e)||A(e))&&A(e.then)&&A(e.catch),gt=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),cr=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||gt,lr=e=>e!=null&&A(e[re]),a={isArray:I,isArrayBuffer:pt,isBuffer:An,isFormData:Un,isArrayBufferView:vn,isString:Pn,isNumber:ht,isBoolean:_n,isObject:ie,isPlainObject:X,isReadableStream:Fn,isRequest:Dn,isResponse:In,isHeaders:$n,isUndefined:H,isDate:xn,isFile:jn,isBlob:Nn,isRegExp:Yn,isFunction:A,isStream:Ln,isURLSearchParams:kn,isTypedArray:Gn,isFileList:Bn,forEach:J,merge:ye,extend:zn,trim:Mn,stripBOM:qn,inherits:Hn,toFlatObject:Vn,kindOf:oe,kindOfTest:_,endsWith:Jn,toArray:Wn,forEachEntry:Xn,matchAll:Kn,isHTMLForm:Qn,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:bt,freezeMethods:er,toObjectSet:tr,toCamelCase:Zn,noop:nr,toFiniteNumber:rr,findKey:mt,global:B,isContextDefined:yt,isSpecCompliantForm:or,toJSONObject:sr,isAsyncFn:ir,isThenable:ar,setImmediate:gt,asap:cr,isIterable:lr};function y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const wt=y.prototype,Ot={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ot[e]={value:e}});Object.defineProperties(y,Ot);Object.defineProperty(wt,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(wt);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ur=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(o,s){return o=St(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function fr(e){return a.isArray(e)&&!e.some(be)}const dr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let g=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&fr(p)||(a.isFileList(p)||a.endsWith(m,"[]"))&&(g=a.toArray(p)))return m=St(m),g.forEach(function(E,v){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Ke([m],v,s):i===null?m:m+"[]",l(E))}),!1}return be(p)?!0:(t.append(Ke(h,m,s),l(p)),!1)}const d=[],b=Object.assign(dr,{defaultVisitor:u,convertValue:l,isVisitable:be});function S(p,m){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),a.forEach(p,function(g,w){(!(a.isUndefined(g)||g===null)&&o.call(t,g,a.isString(w)?w.trim():w,m,b))===!0&&S(g,m?m.concat(w):[w])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ae(e,this,t)}const Et=_e.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Qe)}:Qe;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||pr;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class hr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ze=hr,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:_e,yr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,gr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:yr,Blob:br},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,wr=xe&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Or=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Sr=xe&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:wr,hasStandardBrowserWebWorkerEnv:Or,navigator:ge,origin:Sr},Symbol.toStringTag,{value:"Module"})),C={...Er,...gr};function Rr(e,t){return ae(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Cr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,f?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Tr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Cr(r),o,n,0)}),n}return null}function Ar(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const je={transitional:Ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Tt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Ar(t)):t}],transformResponse:[function(t){const n=this.transitional||je.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{je.headers[e]={}});const Ne=je,vr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:a.isArray(e)?e.map(K):String(e)}function _r(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,l){const u=z(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||f]=K(c))}const i=(c,f)=>a.forEach(c,(l,u)=>s(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!xr(t))i(Pr(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _r(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||fe(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=K(o),delete n[s];return}const c=t?jr(s):String(s).trim();c!==s&&delete n[s],n[c]=K(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=z(i);r[c]||(Nr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ce);const P=ce;function de(e,t){const n=this||Ne,r=t||n,o=P.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function At(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function vt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[s];i||(i=l),n[o]=f,r[o]=l;let d=s,b=0;for(;d!==o;)b+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const ee=(e,t,n=3)=>{let r=0;const o=Lr(50,250);return Ur(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,l=o(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},et=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tt=e=>(...t)=>a.asap(()=>e(...t)),kr=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Fr=C.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Dr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ir(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,n){let r=!Dr(t);return e&&(r||n==!1)?Ir(e,t):t}const nt=e=>e instanceof P?{...e}:e;function U(e,t){t=t||{};const n={};function r(l,u,d,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,d,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,b)}else return r(l,u,d,b)}function s(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>o(nt(l),nt(u),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||o,b=d(e[u],t[u],u);a.isUndefined(b)&&d!==c||(n[u]=b)}),n}const _t=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=P.from(i),t.url=Rt(Pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(C.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const l=o&&s&&Fr.read(s);l&&i.set(o,l)}return t},$r=typeof XMLHttpRequest<"u",Mr=$r&&function(e){return new Promise(function(n,r){const o=_t(e);let s=o.data;const i=P.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,d,b,S,p;function m(){S&&S(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function g(){if(!h)return;const E=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};vt(function(N){n(N),m()},function(N){r(N),m()},T),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Ct;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new y(v,T.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(v,T){h.setRequestHeader(T,v)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([b,p]=ee(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=ee(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=E=>{h&&(r(!E||E.type?new $(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=Br(o.url);if(w&&C.protocols.indexOf(w)===-1){r(new y("Unsupported protocol "+w+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},zr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof y?u:new $(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},qr=zr,Hr=function*(e,t){let n=e.byteLength;if(!t||n{const o=Vr(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let b=s+=d;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},le=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=le&&typeof ReadableStream=="function",Wr=le&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gr=xt&&jt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ot=64*1024,we=xt&&jt(()=>a.isReadableStream(new Response("").body)),te={stream:we&&(e=>e.body)};le&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Xr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Wr(e)).byteLength},Kr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Xr(t)},Qr=le&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:b}=_t(e);l=l?(l+"").toLowerCase():"text";let S=qr([o,s&&s.toAbortSignal()],i),p;const m=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&Gr&&n!=="get"&&n!=="head"&&(h=await Kr(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),j;if(a.isFormData(r)&&(j=T.headers.get("content-type"))&&u.setContentType(j),T.body){const[N,W]=et(h,ee(tt(f)));r=rt(T.body,ot,N,W)}}a.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let w=await fetch(p,b);const E=we&&(l==="stream"||l==="response");if(we&&(c||E&&m)){const T={};["status","statusText","headers"].forEach(Le=>{T[Le]=w[Le]});const j=a.toFiniteNumber(w.headers.get("content-length")),[N,W]=c&&et(j,ee(tt(c),!0))||[];w=new Response(rt(w.body,ot,N,()=>{W&&W(),m&&m()}),T)}l=l||"text";let v=await te[a.findKey(te,l)||"text"](w,e);return!E&&m&&m(),await new Promise((T,j)=>{vt(T,j,{data:v,headers:P.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:p})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:g.cause||g}):y.from(g,g&&g.code,e,p)}}),Oe={http:ur,xhr:Mr,fetch:Qr};a.forEach(Oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Zr=e=>a.isFunction(e)||e===null||e===!1,Nt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : -`+s.map(st).join(` -`):" "+st(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Oe};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function it(e){return pe(e),e.headers=P.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt.getAdapter(e.adapter||Ne.adapter)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return At(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const Bt="1.10.0",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ue.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Bt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!at[i]&&(at[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const Q={assertOptions:Yr,validators:ue},x=Q.validators;class ne{constructor(t){this.defaults=t||{},this.interceptors={request:new Ze,response:new Ze}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Q.assertOptions(o,{encode:x.function,serialize:x.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=P.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,b;if(!f){const p=[it.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),b=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new $(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Be(function(o){t=o}),cancel:t}}}const eo=Be;function to(e){return function(n){return e.apply(null,n)}}function no(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach(([e,t])=>{Se[t]=e});const ro=Se;function Lt(e){const t=new Z(e),n=ft(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lt(U(e,o))},n}const R=Lt(Ne);R.Axios=Z;R.CanceledError=$;R.CancelToken=eo;R.isCancel=At;R.VERSION=Bt;R.toFormData=ae;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=to;R.isAxiosError=no;R.mergeConfig=U;R.AxiosHeaders=P;R.formToJSON=e=>Tt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Nt.getAdapter;R.HttpStatusCode=ro;R.default=R;const oo=R,O=oo.create({baseURL:k.API_BASE_URL,timeout:k.API_TIMEOUT,headers:{"Content-Type":"application/json"}});k.DEBUG_MODE&&(console.log("=== API配置信息 ==="),console.log("Base URL:",k.API_BASE_URL),console.log("Timeout:",k.API_TIMEOUT),console.log("Environment:",k.APP_ENV),console.log("================"));O.interceptors.request.use(e=>{var n;const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),Y("发送请求:",(n=e.method)==null?void 0:n.toUpperCase(),e.url,e.data||e.params),e},e=>(Y("请求错误:",e),Promise.reject(e)));O.interceptors.response.use(e=>{const{data:t}=e;if(Y("收到响应:",e.config.url,t),t.code===200)return{success:!0,data:t.data,message:t.message};{const n=t.message||"请求失败";return ke.error(n),{success:!1,data:null,message:n}}},e=>{Y("响应错误:",e);let t="网络错误";if(e.response){const{status:n,data:r}=e.response;switch(n){case 400:t=r.message||"请求参数错误";break;case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=r.message||`请求失败 (${n})`}}else e.request?t="网络连接失败,请检查网络":t=e.message||"请求配置错误";return ke.error(t),{success:!1,data:null,message:t}});const fo={createConversation(e){return O.post("/ai/chat/conversation/create",e)},sendMessage(e){return O.post("/ai/chat/send",e)},streamChat(e){return O.post("/ai/chat/stream",e)},analyzeEmotion(e){return O.post("/ai/chat/emotion/analyze",e)},getConversations(e,t=1,n=20){return O.get(`/ai/chat/conversations/${e}`,{params:{pageNum:t,pageSize:n}})},getConversation(e){return O.get(`/ai/chat/conversation/${e}`)},getMessages(e,t=1,n=50){return O.get(`/ai/chat/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endConversation(e){return O.put(`/ai/chat/conversation/${e}/end`)},deleteConversation(e){return O.delete(`/ai/chat/conversation/${e}`)},markMessageAsRead(e){return O.put(`/ai/chat/message/${e}/read`)},markConversationAsRead(e){return O.put(`/ai/chat/conversation/${e}/read`)},healthCheck(){return O.get("/ai/chat/health")},getServiceInfo(){return O.get("/ai/chat/info")}},po={guestChat(e){return O.post("/ai/guest/chat",e)},getGuestConversations(e=1,t=20){return O.get("/ai/guest/conversations",{params:{pageNum:e,pageSize:t}})},getGuestConversationMessages(e,t=1,n=50){return O.get(`/ai/guest/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endGuestConversation(e){return O.post(`/ai/guest/conversation/${e}/end`)},getGuestUserInfo(){return O.get("/ai/guest/user/info")},analyzeGuestEmotion(e){return O.post("/ai/guest/emotion/analyze",e)},guestHealthCheck(){return O.get("/ai/guest/health")}};export{V as A,io as B,ao as H,co as M,lo as R,uo as S,fo as c,po as g,O as r}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/index-bf5be19f.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/index-bf5be19f.js deleted file mode 100644 index b91d16f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/assets/js/index-bf5be19f.js +++ /dev/null @@ -1,509 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();/** -* @vue/shared v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Fm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Et={},ta=[],Do=()=>{},DM=()=>!1,If=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lm=e=>e.startsWith("onUpdate:"),Zt=Object.assign,km=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BM=Object.prototype.hasOwnProperty,Ot=(e,t)=>BM.call(e,t),lt=Array.isArray,na=e=>Tf(e)==="[object Map]",U4=e=>Tf(e)==="[object Set]",st=e=>typeof e=="function",Ht=e=>typeof e=="string",$l=e=>typeof e=="symbol",Bt=e=>e!==null&&typeof e=="object",Y4=e=>(Bt(e)||st(e))&&st(e.then)&&st(e.catch),q4=Object.prototype.toString,Tf=e=>q4.call(e),NM=e=>Tf(e).slice(8,-1),Z4=e=>Tf(e)==="[object Object]",zm=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fs=Fm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ef=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},FM=/-(\w)/g,Co=Ef(e=>e.replace(FM,(t,n)=>n?n.toUpperCase():"")),LM=/\B([A-Z])/g,vi=Ef(e=>e.replace(LM,"-$1").toLowerCase()),Mf=Ef(e=>e.charAt(0).toUpperCase()+e.slice(1)),fg=Ef(e=>e?`on${Mf(e)}`:""),dl=(e,t)=>!Object.is(e,t),pg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kM=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zM=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let aS;const _f=()=>aS||(aS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hm(e){if(lt(e)){const t={};for(let n=0;n{if(n){const o=n.split(jM);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function jm(e){let t="";if(Ht(e))t=e;else if(lt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),vr=e=>Ht(e)?e:e==null?"":lt(e)||Bt(e)&&(e.toString===q4||!st(e.toString))?J4(e)?vr(e.value):JSON.stringify(e,e3,2):String(e),e3=(e,t)=>J4(t)?e3(e,t.value):na(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],l)=>(n[gg(o,l)+" =>"]=r,n),{})}:U4(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:$l(t)?gg(t):Bt(t)&&!lt(t)&&!Z4(t)?String(t):t,gg=(e,t="")=>{var n;return $l(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let wn;class t3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!t&&wn&&(this.index=(wn.scopes||(wn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(wn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(gs){let t=gs;for(gs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ps;){let t=ps;for(ps=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function a3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s3(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Gm(o),XM(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function Uh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(c3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function c3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vs)||(e.globalVersion=Vs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Uh(e))))return;e.flags|=2;const t=e.dep,n=Dt,o=Bo;Dt=e,Bo=!0;try{a3(e);const r=e.fn(e._value);(t.version===0||dl(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Dt=n,Bo=o,s3(e),e.flags&=-3}}function Gm(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Gm(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function XM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bo=!0;const u3=[];function Er(){u3.push(Bo),Bo=!1}function Mr(){const e=u3.pop();Bo=e===void 0?!0:e}function sS(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let Vs=0,UM=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Xm{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Bo||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new UM(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,d3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=o)}return n}trigger(t){this.version++,Vs++,this.notify(t)}notify(t){Vm();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Km()}}}function d3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)d3(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $d=new WeakMap,Jl=Symbol(""),Yh=Symbol(""),Ks=Symbol("");function Pn(e,t,n){if(Bo&&Dt){let o=$d.get(e);o||$d.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Xm),r.map=o,r.key=n),r.track()}}function $r(e,t,n,o,r,l){const i=$d.get(e);if(!i){Vs++;return}const a=s=>{s&&s.trigger()};if(Vm(),t==="clear")i.forEach(a);else{const s=lt(e),c=s&&zm(n);if(s&&n==="length"){const u=Number(o);i.forEach((d,f)=>{(f==="length"||f===Ks||!$l(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Ks)),t){case"add":s?c&&a(i.get("length")):(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"delete":s||(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"set":na(e)&&a(i.get(Jl));break}}Km()}function YM(e,t){const n=$d.get(e);return n&&n.get(t)}function Mi(e){const t=Qe(e);return t===e?t:(Pn(t,"iterate",Ks),yo(e)?t:t.map(mn))}function Af(e){return Pn(e=Qe(e),"iterate",Ks),e}const qM={__proto__:null,[Symbol.iterator](){return vg(this,Symbol.iterator,mn)},concat(...e){return Mi(this).concat(...e.map(t=>lt(t)?Mi(t):t))},entries(){return vg(this,"entries",e=>(e[1]=mn(e[1]),e))},every(e,t){return dr(this,"every",e,t,void 0,arguments)},filter(e,t){return dr(this,"filter",e,t,n=>n.map(mn),arguments)},find(e,t){return dr(this,"find",e,t,mn,arguments)},findIndex(e,t){return dr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return dr(this,"findLast",e,t,mn,arguments)},findLastIndex(e,t){return dr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return dr(this,"forEach",e,t,void 0,arguments)},includes(...e){return mg(this,"includes",e)},indexOf(...e){return mg(this,"indexOf",e)},join(e){return Mi(this).join(e)},lastIndexOf(...e){return mg(this,"lastIndexOf",e)},map(e,t){return dr(this,"map",e,t,void 0,arguments)},pop(){return Ua(this,"pop")},push(...e){return Ua(this,"push",e)},reduce(e,...t){return cS(this,"reduce",e,t)},reduceRight(e,...t){return cS(this,"reduceRight",e,t)},shift(){return Ua(this,"shift")},some(e,t){return dr(this,"some",e,t,void 0,arguments)},splice(...e){return Ua(this,"splice",e)},toReversed(){return Mi(this).toReversed()},toSorted(e){return Mi(this).toSorted(e)},toSpliced(...e){return Mi(this).toSpliced(...e)},unshift(...e){return Ua(this,"unshift",e)},values(){return vg(this,"values",mn)}};function vg(e,t,n){const o=Af(e),r=o[t]();return o!==e&&!yo(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.value&&(l.value=n(l.value)),l}),r}const ZM=Array.prototype;function dr(e,t,n,o,r,l){const i=Af(e),a=i!==e&&!yo(e),s=i[t];if(s!==ZM[t]){const d=s.apply(e,l);return a?mn(d):d}let c=n;i!==e&&(a?c=function(d,f){return n.call(this,mn(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=s.call(i,c,o);return a&&r?r(u):u}function cS(e,t,n,o){const r=Af(e);let l=n;return r!==e&&(yo(e)?n.length>3&&(l=function(i,a,s){return n.call(this,i,a,s,e)}):l=function(i,a,s){return n.call(this,i,mn(a),s,e)}),r[t](l,...o)}function mg(e,t,n){const o=Qe(e);Pn(o,"iterate",Ks);const r=o[t](...n);return(r===-1||r===!1)&&qm(n[0])?(n[0]=Qe(n[0]),o[t](...n)):r}function Ua(e,t,n=[]){Er(),Vm();const o=Qe(e)[t].apply(e,n);return Km(),Mr(),o}const QM=Fm("__proto__,__v_isRef,__isVue"),f3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($l));function JM(e){$l(e)||(e=String(e));const t=Qe(this);return Pn(t,"has",e),t.hasOwnProperty(e)}class p3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return o===(r?l?c_:m3:l?v3:h3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=lt(t);if(!r){let s;if(i&&(s=qM[n]))return s;if(n==="hasOwnProperty")return JM}const a=Reflect.get(t,n,kt(t)?t:o);return($l(n)?f3.has(n):QM(n))||(r||Pn(t,"get",n),l)?a:kt(a)?i&&zm(n)?a:a.value:Bt(a)?r?y3(a):ut(a):a}}class g3 extends p3{constructor(t=!1){super(!1,t)}set(t,n,o,r){let l=t[n];if(!this._isShallow){const s=ml(l);if(!yo(o)&&!ml(o)&&(l=Qe(l),o=Qe(o)),!lt(t)&&kt(l)&&!kt(o))return s?!1:(l.value=o,!0)}const i=lt(t)&&zm(n)?Number(n)e,Gc=e=>Reflect.getPrototypeOf(e);function r_(e,t,n){return function(...o){const r=this.__v_raw,l=Qe(r),i=na(l),a=e==="entries"||e===Symbol.iterator&&i,s=e==="keys"&&i,c=r[e](...o),u=n?qh:t?Cd:mn;return!t&&Pn(l,"iterate",s?Yh:Jl),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Xc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function l_(e,t){const n={get(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);e||(dl(r,a)&&Pn(i,"get",r),Pn(i,"get",a));const{has:s}=Gc(i),c=t?qh:e?Cd:mn;if(s.call(i,r))return c(l.get(r));if(s.call(i,a))return c(l.get(a));l!==i&&l.get(r)},get size(){const r=this.__v_raw;return!e&&Pn(Qe(r),"iterate",Jl),Reflect.get(r,"size",r)},has(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);return e||(dl(r,a)&&Pn(i,"has",r),Pn(i,"has",a)),r===a?l.has(r):l.has(r)||l.has(a)},forEach(r,l){const i=this,a=i.__v_raw,s=Qe(a),c=t?qh:e?Cd:mn;return!e&&Pn(s,"iterate",Jl),a.forEach((u,d)=>r.call(l,c(u),c(d),i))}};return Zt(n,e?{add:Xc("add"),set:Xc("set"),delete:Xc("delete"),clear:Xc("clear")}:{add(r){!t&&!yo(r)&&!ml(r)&&(r=Qe(r));const l=Qe(this);return Gc(l).has.call(l,r)||(l.add(r),$r(l,"add",r,r)),this},set(r,l){!t&&!yo(l)&&!ml(l)&&(l=Qe(l));const i=Qe(this),{has:a,get:s}=Gc(i);let c=a.call(i,r);c||(r=Qe(r),c=a.call(i,r));const u=s.call(i,r);return i.set(r,l),c?dl(l,u)&&$r(i,"set",r,l):$r(i,"add",r,l),this},delete(r){const l=Qe(this),{has:i,get:a}=Gc(l);let s=i.call(l,r);s||(r=Qe(r),s=i.call(l,r)),a&&a.call(l,r);const c=l.delete(r);return s&&$r(l,"delete",r,void 0),c},clear(){const r=Qe(this),l=r.size!==0,i=r.clear();return l&&$r(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=r_(r,e,t)}),n}function Um(e,t){const n=l_(e,t);return(o,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ot(n,r)&&r in o?n:o,r,l)}const i_={get:Um(!1,!1)},a_={get:Um(!1,!0)},s_={get:Um(!0,!1)};const h3=new WeakMap,v3=new WeakMap,m3=new WeakMap,c_=new WeakMap;function u_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d_(e){return e.__v_skip||!Object.isExtensible(e)?0:u_(NM(e))}function ut(e){return ml(e)?e:Ym(e,!1,t_,i_,h3)}function b3(e){return Ym(e,!1,o_,a_,v3)}function y3(e){return Ym(e,!0,n_,s_,m3)}function Ym(e,t,n,o,r){if(!Bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=d_(e);if(l===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,l===2?o:n);return r.set(e,a),a}function fl(e){return ml(e)?fl(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function yo(e){return!!(e&&e.__v_isShallow)}function qm(e){return e?!!e.__v_raw:!1}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function Zm(e){return!Ot(e,"__v_skip")&&Object.isExtensible(e)&&Xh(e,"__v_skip",!0),e}const mn=e=>Bt(e)?ut(e):e,Cd=e=>Bt(e)?y3(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function le(e){return S3(e,!1)}function te(e){return S3(e,!0)}function S3(e,t){return kt(e)?e:new f_(e,t)}class f_{constructor(t,n){this.dep=new Xm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Qe(t),this._value=n?t:mn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||yo(t)||ml(t);t=o?t:Qe(t),dl(t,n)&&(this._rawValue=t,this._value=o?t:mn(t),this.dep.trigger())}}function $3(e){e.dep&&e.dep.trigger()}function $t(e){return kt(e)?e.value:e}const p_={get:(e,t,n)=>t==="__v_raw"?e:$t(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function C3(e){return fl(e)?e:new Proxy(e,p_)}function No(e){const t=lt(e)?new Array(e.length):{};for(const n in e)t[n]=x3(e,n);return t}class g_{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return YM(Qe(this._object),this._key)}}class h_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ze(e,t,n){return kt(e)?e:st(e)?new h_(e):Bt(e)&&arguments.length>1?x3(e,t,n):le(e)}function x3(e,t,n){const o=e[t];return kt(o)?o:new g_(e,t,n)}class v_{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return i3(this,!0),!0}get value(){const t=this.dep.track();return c3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function m_(e,t,n=!1){let o,r;return st(e)?o=e:(o=e.get,r=e.set),new v_(o,r,n)}const Uc={},xd=new WeakMap;let kl;function b_(e,t=!1,n=kl){if(n){let o=xd.get(n);o||xd.set(n,o=[]),o.push(e)}}function y_(e,t,n=Et){const{immediate:o,deep:r,once:l,scheduler:i,augmentJob:a,call:s}=n,c=x=>r?x:yo(x)||r===!1||r===0?Cr(x,1):Cr(x);let u,d,f,g,v=!1,h=!1;if(kt(e)?(d=()=>e.value,v=yo(e)):fl(e)?(d=()=>c(e),v=!0):lt(e)?(h=!0,v=e.some(x=>fl(x)||yo(x)),d=()=>e.map(x=>{if(kt(x))return x.value;if(fl(x))return c(x);if(st(x))return s?s(x,2):x()})):st(e)?t?d=s?()=>s(e,2):e:d=()=>{if(f){Er();try{f()}finally{Mr()}}const x=kl;kl=u;try{return s?s(e,3,[g]):e(g)}finally{kl=x}}:d=Do,t&&r){const x=d,C=r===!0?1/0:r;d=()=>Cr(x(),C)}const b=Wm(),y=()=>{u.stop(),b&&b.active&&km(b.effects,u)};if(l&&t){const x=t;t=(...C)=>{x(...C),y()}}let S=h?new Array(e.length).fill(Uc):Uc;const $=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(t){const C=u.run();if(r||v||(h?C.some((O,w)=>dl(O,S[w])):dl(C,S))){f&&f();const O=kl;kl=u;try{const w=[C,S===Uc?void 0:h&&S[0]===Uc?[]:S,g];S=C,s?s(t,3,w):t(...w)}finally{kl=O}}}else u.run()};return a&&a($),u=new r3(d),u.scheduler=i?()=>i($,!1):$,g=x=>b_(x,!1,u),f=u.onStop=()=>{const x=xd.get(u);if(x){if(s)s(x,4);else for(const C of x)C();xd.delete(u)}},t?o?$(!0):S=u.run():i?i($.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Cr(e,t=1/0,n){if(t<=0||!Bt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,kt(e))Cr(e.value,t,n);else if(lt(e))for(let o=0;o{Cr(o,t,n)});else if(Z4(e)){for(const o in e)Cr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Cr(e[o],t,n)}return e}/** -* @vue/runtime-core v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function $c(e,t,n,o){try{return o?e(...o):e()}catch(r){Rf(r,t,n)}}function Lo(e,t,n,o){if(st(e)){const r=$c(e,t,n,o);return r&&Y4(r)&&r.catch(l=>{Rf(l,t,n)}),r}if(lt(e)){const r=[];for(let l=0;l>>1,r=Fn[o],l=Gs(r);l=Gs(n)?Fn.push(e):Fn.splice($_(t),0,e),e.flags|=1,O3()}}function O3(){wd||(wd=w3.then(I3))}function C_(e){lt(e)?oa.push(...e):Jr&&e.id===-1?Jr.splice(zi+1,0,e):e.flags&1||(oa.push(e),e.flags|=1),O3()}function uS(e,t,n=Zo+1){for(;nGs(n)-Gs(o));if(oa.length=0,Jr){Jr.push(...t);return}for(Jr=t,zi=0;zie.id==null?e.flags&2?-1:1/0:e.id;function I3(e){const t=Do;try{for(Zo=0;Zo{o._d&&xS(-1);const l=Od(t);let i;try{i=e(...r)}finally{Od(l),o._d&&xS(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function $n(e,t){if(zn===null)return e;const n=zf(zn),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,hs=e=>e&&(e.disabled||e.disabled===""),dS=e=>e&&(e.defer||e.defer===""),fS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Zh=(e,t)=>{const n=e&&e.to;return Ht(n)?t?t(n):null:n},_3={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,l,i,a,s,c){const{mc:u,pc:d,pbc:f,o:{insert:g,querySelector:v,createText:h,createComment:b}}=c,y=hs(t.props);let{shapeFlag:S,children:$,dynamicChildren:x}=t;if(e==null){const C=t.el=h(""),O=t.anchor=h("");g(C,n,o),g(O,n,o);const w=(T,_)=>{S&16&&(r&&r.isCE&&(r.ce._teleportTarget=T),u($,T,_,r,l,i,a,s))},I=()=>{const T=t.target=Zh(t.props,v),_=A3(T,t,h,g);T&&(i!=="svg"&&fS(T)?i="svg":i!=="mathml"&&pS(T)&&(i="mathml"),y||(w(T,_),Au(t,!1)))};y&&(w(n,O),Au(t,!0)),dS(t.props)?(t.el.__isMounted=!1,Bn(()=>{I(),delete t.el.__isMounted},l)):I()}else{if(dS(t.props)&&e.el.__isMounted===!1){Bn(()=>{_3.process(e,t,n,o,r,l,i,a,s,c)},l);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,O=t.target=e.target,w=t.targetAnchor=e.targetAnchor,I=hs(e.props),T=I?n:O,_=I?C:w;if(i==="svg"||fS(O)?i="svg":(i==="mathml"||pS(O))&&(i="mathml"),x?(f(e.dynamicChildren,x,T,r,l,i,a),i0(e,t,!0)):s||d(e,t,T,_,r,l,i,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yc(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=Zh(t.props,v);E&&Yc(t,E,null,c,0)}else I&&Yc(t,O,w,c,1);Au(t,y)}},remove(e,t,n,{um:o,o:{remove:r}},l){const{shapeFlag:i,children:a,anchor:s,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),l&&r(s),i&16){const g=l||!hs(f);for(let v=0;v{e.isMounted=!0}),Ze(()=>{e.isUnmounting=!0}),e}const go=[Function,Array],D3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:go,onEnter:go,onAfterEnter:go,onEnterCancelled:go,onBeforeLeave:go,onLeave:go,onAfterLeave:go,onLeaveCancelled:go,onBeforeAppear:go,onAppear:go,onAfterAppear:go,onAppearCancelled:go},B3=e=>{const t=e.subTree;return t.component?B3(t.component):t},w_={name:"BaseTransition",props:D3,setup(e,{slots:t}){const n=pn(),o=R3();return()=>{const r=t.default&&e0(t.default(),!0);if(!r||!r.length)return;const l=N3(r),i=Qe(e),{mode:a}=i;if(o.isLeaving)return bg(l);const s=gS(l);if(!s)return bg(l);let c=Xs(s,i,o,n,d=>c=d);s.type!==bn&&ai(s,c);let u=n.subTree&&gS(n.subTree);if(u&&u.type!==bn&&!Wl(s,u)&&B3(n).type!==bn){let d=Xs(u,i,o,n);if(ai(u,d),a==="out-in"&&s.type!==bn)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},bg(l);a==="in-out"&&s.type!==bn?d.delayLeave=(f,g,v)=>{const h=F3(o,u);h[String(u.key)]=u,f[el]=()=>{g(),f[el]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return l}}};function N3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==bn){t=n;break}}return t}const O_=w_;function F3(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xs(e,t,n,o,r){const{appear:l,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:b,onAppear:y,onAfterAppear:S,onAppearCancelled:$}=t,x=String(e.key),C=F3(n,e),O=(T,_)=>{T&&Lo(T,o,9,_)},w=(T,_)=>{const E=_[1];O(T,_),lt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},I={mode:i,persisted:a,beforeEnter(T){let _=s;if(!n.isMounted)if(l)_=b||s;else return;T[el]&&T[el](!0);const E=C[x];E&&Wl(e,E)&&E.el[el]&&E.el[el](),O(_,[T])},enter(T){let _=c,E=u,A=d;if(!n.isMounted)if(l)_=y||c,E=S||u,A=$||d;else return;let R=!1;const z=T[qc]=M=>{R||(R=!0,M?O(A,[T]):O(E,[T]),I.delayedLeave&&I.delayedLeave(),T[qc]=void 0)};_?w(_,[T,z]):z()},leave(T,_){const E=String(e.key);if(T[qc]&&T[qc](!0),n.isUnmounting)return _();O(f,[T]);let A=!1;const R=T[el]=z=>{A||(A=!0,_(),z?O(h,[T]):O(v,[T]),T[el]=void 0,C[E]===e&&delete C[E])};C[E]=e,g?w(g,[T,R]):R()},clone(T){const _=Xs(T,t,n,o,r);return r&&r(_),_}};return I}function bg(e){if(Df(e))return e=sn(e),e.children=null,e}function gS(e){if(!Df(e))return M3(e.type)&&e.children?N3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ai(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ai(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function e0(e,t=!1,n){let o=[],r=0;for(let l=0;l1)for(let l=0;lZt({name:e.name},t,{setup:e}))():e}function L3(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vs(e,t,n,o,r=!1){if(lt(e)){e.forEach((v,h)=>vs(v,t&&(lt(t)?t[h]:t),n,o,r));return}if(ms(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&vs(e,t,n,o.component.subTree);return}const l=o.shapeFlag&4?zf(o.component):o.el,i=r?null:l,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Et?a.refs={}:a.refs,d=a.setupState,f=Qe(d),g=d===Et?()=>!1:v=>Ot(f,v);if(c!=null&&c!==s&&(Ht(c)?(u[c]=null,g(c)&&(d[c]=null)):kt(c)&&(c.value=null)),st(s))$c(s,a,12,[i,u]);else{const v=Ht(s),h=kt(s);if(v||h){const b=()=>{if(e.f){const y=v?g(s)?d[s]:u[s]:s.value;r?lt(y)&&km(y,l):lt(y)?y.includes(l)||y.push(l):v?(u[s]=[l],g(s)&&(d[s]=u[s])):(s.value=[l],e.k&&(u[e.k]=s.value))}else v?(u[s]=i,g(s)&&(d[s]=i)):h&&(s.value=i,e.k&&(u[e.k]=i))};i?(b.id=-1,Bn(b,n)):b()}}}_f().requestIdleCallback;_f().cancelIdleCallback;const ms=e=>!!e.type.__asyncLoader,Df=e=>e.type.__isKeepAlive;function Bf(e,t){z3(e,"a",t)}function k3(e,t){z3(e,"da",t)}function z3(e,t,n=fn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nf(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Df(r.parent.vnode)&&P_(o,t,n,r),r=r.parent}}function P_(e,t,n,o){const r=Nf(t,e,o,!0);Rn(()=>{km(o[t],r)},n)}function Nf(e,t,n=fn,o=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...i)=>{Er();const a=Cc(n),s=Lo(t,n,e,i);return a(),Mr(),s});return o?r.unshift(l):r.push(l),l}}const Nr=e=>(t,n=fn)=>{(!Ys||e==="sp")&&Nf(e,(...o)=>t(...o),n)},Ff=Nr("bm"),je=Nr("m"),Lf=Nr("bu"),An=Nr("u"),Ze=Nr("bum"),Rn=Nr("um"),I_=Nr("sp"),T_=Nr("rtg"),E_=Nr("rtc");function M_(e,t=fn){Nf("ec",e,t)}const t0="components",__="directives";function zl(e,t){return n0(t0,e,!0,t)||e}const H3=Symbol.for("v-ndc");function C0e(e){return Ht(e)?n0(t0,e,!1)||e:e||H3}function A_(e){return n0(__,e)}function n0(e,t,n=!0,o=!1){const r=zn||fn;if(r){const l=r.type;if(e===t0){const a=CA(l,!1);if(a&&(a===t||a===Co(t)||a===Mf(Co(t))))return l}const i=hS(r[e]||l[e],t)||hS(r.appContext[e],t);return!i&&o?l:i}}function hS(e,t){return e&&(e[t]||e[Co(t)]||e[Mf(Co(t))])}function x0e(e,t,n,o){let r;const l=n&&n[o],i=lt(e);if(i||Ht(e)){const a=i&&fl(e);let s=!1,c=!1;a&&(s=!yo(e),c=ml(e),e=Af(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(a,s,void 0,l&&l[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,c=a.length;se?lO(e)?zf(e):Qh(e.parent):null,bs=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qh(e.parent),$root:e=>Qh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>o0(e),$forceUpdate:e=>e.f||(e.f=()=>{Qm(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>nA.bind(e)}),yg=(e,t)=>e!==Et&&!e.__isScriptSetup&&Ot(e,t),R_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:l,accessCache:i,type:a,appContext:s}=e;let c;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(yg(o,t))return i[t]=1,o[t];if(r!==Et&&Ot(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&Ot(c,t))return i[t]=3,l[t];if(n!==Et&&Ot(n,t))return i[t]=4,n[t];Jh&&(i[t]=0)}}const u=bs[t];let d,f;if(u)return t==="$attrs"&&Pn(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Et&&Ot(n,t))return i[t]=4,n[t];if(f=s.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:l}=e;return yg(r,t)?(r[t]=n,!0):o!==Et&&Ot(o,t)?(o[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:l}},i){let a;return!!n[i]||e!==Et&&Ot(e,i)||yg(t,i)||(a=l[0])&&Ot(a,i)||Ot(o,i)||Ot(bs,i)||Ot(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function D_(){return B_().attrs}function B_(){const e=pn();return e.setupContext||(e.setupContext=aO(e))}function vS(e){return lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jh=!0;function N_(e){const t=o0(e),n=e.proxy,o=e.ctx;Jh=!1,t.beforeCreate&&mS(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:a,provide:s,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:g,updated:v,activated:h,deactivated:b,beforeDestroy:y,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:O,renderTriggered:w,errorCaptured:I,serverPrefetch:T,expose:_,inheritAttrs:E,components:A,directives:R,filters:z}=t;if(c&&F_(c,o,null),i)for(const N in i){const F=i[N];st(F)&&(o[N]=F.bind(n))}if(r){const N=r.call(n,n);Bt(N)&&(e.data=ut(N))}if(Jh=!0,l)for(const N in l){const F=l[N],L=st(F)?F.bind(n,n):st(F.get)?F.get.bind(n,n):Do,k=!st(F)&&st(F.set)?F.set.bind(n):Do,j=P({get:L,set:k});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>j.value,set:H=>j.value=H})}if(a)for(const N in a)j3(a[N],o,n,N);if(s){const N=st(s)?s.call(n):s;Reflect.ownKeys(N).forEach(F=>{Ge(F,N[F])})}u&&mS(u,e,"c");function B(N,F){lt(F)?F.forEach(L=>N(L.bind(n))):F&&N(F.bind(n))}if(B(Ff,d),B(je,f),B(Lf,g),B(An,v),B(Bf,h),B(k3,b),B(M_,I),B(E_,O),B(T_,w),B(Ze,S),B(Rn,x),B(I_,T),lt(_))if(_.length){const N=e.exposed||(e.exposed={});_.forEach(F=>{Object.defineProperty(N,F,{get:()=>n[F],set:L=>n[F]=L})})}else e.exposed||(e.exposed={});C&&e.render===Do&&(e.render=C),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R),T&&L3(e)}function F_(e,t,n=Do){lt(e)&&(e=ev(e));for(const o in e){const r=e[o];let l;Bt(r)?"default"in r?l=He(r.from||o,r.default,!0):l=He(r.from||o):l=He(r),kt(l)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[o]=l}}function mS(e,t,n){Lo(lt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function j3(e,t,n,o){let r=o.includes(".")?J3(n,o):()=>n[o];if(Ht(e)){const l=t[e];st(l)&&be(r,l)}else if(st(e))be(r,e.bind(n));else if(Bt(e))if(lt(e))e.forEach(l=>j3(l,t,n,o));else{const l=st(e.handler)?e.handler.bind(n):t[e.handler];st(l)&&be(r,l,e)}}function o0(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,a=l.get(t);let s;return a?s=a:!r.length&&!n&&!o?s=t:(s={},r.length&&r.forEach(c=>Pd(s,c,i,!0)),Pd(s,t,i)),Bt(t)&&l.set(t,s),s}function Pd(e,t,n,o=!1){const{mixins:r,extends:l}=t;l&&Pd(e,l,n,!0),r&&r.forEach(i=>Pd(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=L_[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const L_={data:bS,props:yS,emits:yS,methods:is,computed:is,beforeCreate:Dn,created:Dn,beforeMount:Dn,mounted:Dn,beforeUpdate:Dn,updated:Dn,beforeDestroy:Dn,beforeUnmount:Dn,destroyed:Dn,unmounted:Dn,activated:Dn,deactivated:Dn,errorCaptured:Dn,serverPrefetch:Dn,components:is,directives:is,watch:z_,provide:bS,inject:k_};function bS(e,t){return t?e?function(){return Zt(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function k_(e,t){return is(ev(e),ev(t))}function ev(e){if(lt(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(o&&o.proxy):t}}function W_(){return!!(fn||zn||ei)}const V3={},K3=()=>Object.create(V3),G3=e=>Object.getPrototypeOf(e)===V3;function V_(e,t,n,o=!1){const r={},l=K3();e.propsDefaults=Object.create(null),X3(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:b3(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function K_(e,t,n,o){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,a=Qe(r),[s]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,g]=U3(d,t,!0);Zt(i,f),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!l&&!s)return Bt(e)&&o.set(e,ta),ta;if(lt(l))for(let u=0;ue[0]==="_"||e==="$stable",l0=e=>lt(e)?e.map(tr):[tr(e)],X_=(e,t,n)=>{if(t._n)return t;const o=hn((...r)=>l0(t(...r)),n);return o._c=!1,o},Y3=(e,t,n)=>{const o=e._ctx;for(const r in e){if(r0(r))continue;const l=e[r];if(st(l))t[r]=X_(r,l,o);else if(l!=null){const i=l0(l);t[r]=()=>i}}},q3=(e,t)=>{const n=l0(t);e.slots.default=()=>n},Z3=(e,t,n)=>{for(const o in t)(n||!r0(o))&&(e[o]=t[o])},U_=(e,t,n)=>{const o=e.slots=K3();if(e.vnode.shapeFlag&32){const r=t.__;r&&Xh(o,"__",r,!0);const l=t._;l?(Z3(o,t,n),n&&Xh(o,"_",l,!0)):Y3(t,o)}else t&&q3(e,t)},Y_=(e,t,n)=>{const{vnode:o,slots:r}=e;let l=!0,i=Et;if(o.shapeFlag&32){const a=t._;a?n&&a===1?l=!1:Z3(r,t,n):(l=!t.$stable,Y3(t,r)),i=t}else t&&(q3(e,t),i={default:1});if(l)for(const a in r)!r0(a)&&i[a]==null&&delete r[a]},Bn=cA;function q_(e){return Z_(e)}function Z_(e,t){const n=_f();n.__VUE__=!0;const{insert:o,remove:r,patchProp:l,createElement:i,createText:a,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:g=Do,insertStaticContent:v}=e,h=(W,X,ne,ae=null,se=null,re=null,de=void 0,ge=null,me=!!X.dynamicChildren)=>{if(W===X)return;W&&!Wl(W,X)&&(ae=G(W),H(W,se,re,!0),W=null),X.patchFlag===-2&&(me=!1,X.dynamicChildren=null);const{type:fe,ref:ye,shapeFlag:Se}=X;switch(fe){case Cl:b(W,X,ne,ae);break;case bn:y(W,X,ne,ae);break;case Cg:W==null&&S(X,ne,ae,de);break;case We:A(W,X,ne,ae,se,re,de,ge,me);break;default:Se&1?C(W,X,ne,ae,se,re,de,ge,me):Se&6?R(W,X,ne,ae,se,re,de,ge,me):(Se&64||Se&128)&&fe.process(W,X,ne,ae,se,re,de,ge,me,K)}ye!=null&&se?vs(ye,W&&W.ref,re,X||W,!X):ye==null&&W&&W.ref!=null&&vs(W.ref,null,re,W,!0)},b=(W,X,ne,ae)=>{if(W==null)o(X.el=a(X.children),ne,ae);else{const se=X.el=W.el;X.children!==W.children&&c(se,X.children)}},y=(W,X,ne,ae)=>{W==null?o(X.el=s(X.children||""),ne,ae):X.el=W.el},S=(W,X,ne,ae)=>{[W.el,W.anchor]=v(W.children,X,ne,ae,W.el,W.anchor)},$=({el:W,anchor:X},ne,ae)=>{let se;for(;W&&W!==X;)se=f(W),o(W,ne,ae),W=se;o(X,ne,ae)},x=({el:W,anchor:X})=>{let ne;for(;W&&W!==X;)ne=f(W),r(W),W=ne;r(X)},C=(W,X,ne,ae,se,re,de,ge,me)=>{X.type==="svg"?de="svg":X.type==="math"&&(de="mathml"),W==null?O(X,ne,ae,se,re,de,ge,me):T(W,X,se,re,de,ge,me)},O=(W,X,ne,ae,se,re,de,ge)=>{let me,fe;const{props:ye,shapeFlag:Se,transition:ue,dirs:ce}=W;if(me=W.el=i(W.type,re,ye&&ye.is,ye),Se&8?u(me,W.children):Se&16&&I(W.children,me,null,ae,se,Sg(W,re),de,ge),ce&&Ml(W,null,ae,"created"),w(me,W,W.scopeId,de,ae),ye){for(const Pe in ye)Pe!=="value"&&!fs(Pe)&&l(me,Pe,null,ye[Pe],re,ae);"value"in ye&&l(me,"value",null,ye.value,re),(fe=ye.onVnodeBeforeMount)&&Xo(fe,ae,W)}ce&&Ml(W,null,ae,"beforeMount");const he=Q_(se,ue);he&&ue.beforeEnter(me),o(me,X,ne),((fe=ye&&ye.onVnodeMounted)||he||ce)&&Bn(()=>{fe&&Xo(fe,ae,W),he&&ue.enter(me),ce&&Ml(W,null,ae,"mounted")},se)},w=(W,X,ne,ae,se)=>{if(ne&&g(W,ne),ae)for(let re=0;re{for(let fe=me;fe{const ge=X.el=W.el;let{patchFlag:me,dynamicChildren:fe,dirs:ye}=X;me|=W.patchFlag&16;const Se=W.props||Et,ue=X.props||Et;let ce;if(ne&&_l(ne,!1),(ce=ue.onVnodeBeforeUpdate)&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"beforeUpdate"),ne&&_l(ne,!0),(Se.innerHTML&&ue.innerHTML==null||Se.textContent&&ue.textContent==null)&&u(ge,""),fe?_(W.dynamicChildren,fe,ge,ne,ae,Sg(X,se),re):de||F(W,X,ge,null,ne,ae,Sg(X,se),re,!1),me>0){if(me&16)E(ge,Se,ue,ne,se);else if(me&2&&Se.class!==ue.class&&l(ge,"class",null,ue.class,se),me&4&&l(ge,"style",Se.style,ue.style,se),me&8){const he=X.dynamicProps;for(let Pe=0;Pe{ce&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"updated")},ae)},_=(W,X,ne,ae,se,re,de)=>{for(let ge=0;ge{if(X!==ne){if(X!==Et)for(const re in X)!fs(re)&&!(re in ne)&&l(W,re,X[re],null,se,ae);for(const re in ne){if(fs(re))continue;const de=ne[re],ge=X[re];de!==ge&&re!=="value"&&l(W,re,ge,de,se,ae)}"value"in ne&&l(W,"value",X.value,ne.value,se)}},A=(W,X,ne,ae,se,re,de,ge,me)=>{const fe=X.el=W?W.el:a(""),ye=X.anchor=W?W.anchor:a("");let{patchFlag:Se,dynamicChildren:ue,slotScopeIds:ce}=X;ce&&(ge=ge?ge.concat(ce):ce),W==null?(o(fe,ne,ae),o(ye,ne,ae),I(X.children||[],ne,ye,se,re,de,ge,me)):Se>0&&Se&64&&ue&&W.dynamicChildren?(_(W.dynamicChildren,ue,ne,se,re,de,ge),(X.key!=null||se&&X===se.subTree)&&i0(W,X,!0)):F(W,X,ne,ye,se,re,de,ge,me)},R=(W,X,ne,ae,se,re,de,ge,me)=>{X.slotScopeIds=ge,W==null?X.shapeFlag&512?se.ctx.activate(X,ne,ae,de,me):z(X,ne,ae,se,re,de,me):M(W,X,me)},z=(W,X,ne,ae,se,re,de)=>{const ge=W.component=bA(W,ae,se);if(Df(W)&&(ge.ctx.renderer=K),yA(ge,!1,de),ge.asyncDep){if(se&&se.registerDep(ge,B,de),!W.el){const me=ge.subTree=p(bn);y(null,me,X,ne)}}else B(ge,W,X,ne,se,re,de)},M=(W,X,ne)=>{const ae=X.component=W.component;if(aA(W,X,ne))if(ae.asyncDep&&!ae.asyncResolved){N(ae,X,ne);return}else ae.next=X,ae.update();else X.el=W.el,ae.vnode=X},B=(W,X,ne,ae,se,re,de)=>{const ge=()=>{if(W.isMounted){let{next:Se,bu:ue,u:ce,parent:he,vnode:Pe}=W;{const we=Q3(W);if(we){Se&&(Se.el=Pe.el,N(W,Se,de)),we.asyncDep.then(()=>{W.isUnmounted||ge()});return}}let Ie=Se,Ae;_l(W,!1),Se?(Se.el=Pe.el,N(W,Se,de)):Se=Pe,ue&&pg(ue),(Ae=Se.props&&Se.props.onVnodeBeforeUpdate)&&Xo(Ae,he,Se,Pe),_l(W,!0);const $e=$g(W),xe=W.subTree;W.subTree=$e,h(xe,$e,d(xe.el),G(xe),W,se,re),Se.el=$e.el,Ie===null&&sA(W,$e.el),ce&&Bn(ce,se),(Ae=Se.props&&Se.props.onVnodeUpdated)&&Bn(()=>Xo(Ae,he,Se,Pe),se)}else{let Se;const{el:ue,props:ce}=X,{bm:he,m:Pe,parent:Ie,root:Ae,type:$e}=W,xe=ms(X);if(_l(W,!1),he&&pg(he),!xe&&(Se=ce&&ce.onVnodeBeforeMount)&&Xo(Se,Ie,X),_l(W,!0),ue&&pe){const we=()=>{W.subTree=$g(W),pe(ue,W.subTree,W,se,null)};xe&&$e.__asyncHydrate?$e.__asyncHydrate(ue,W,we):we()}else{Ae.ce&&Ae.ce._def.shadowRoot!==!1&&Ae.ce._injectChildStyle($e);const we=W.subTree=$g(W);h(null,we,ne,ae,W,se,re),X.el=we.el}if(Pe&&Bn(Pe,se),!xe&&(Se=ce&&ce.onVnodeMounted)){const we=X;Bn(()=>Xo(Se,Ie,we),se)}(X.shapeFlag&256||Ie&&ms(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&W.a&&Bn(W.a,se),W.isMounted=!0,X=ne=ae=null}};W.scope.on();const me=W.effect=new r3(ge);W.scope.off();const fe=W.update=me.run.bind(me),ye=W.job=me.runIfDirty.bind(me);ye.i=W,ye.id=W.uid,me.scheduler=()=>Qm(ye),_l(W,!0),fe()},N=(W,X,ne)=>{X.component=W;const ae=W.vnode.props;W.vnode=X,W.next=null,K_(W,X.props,ae,ne),Y_(W,X.children,ne),Er(),uS(W),Mr()},F=(W,X,ne,ae,se,re,de,ge,me=!1)=>{const fe=W&&W.children,ye=W?W.shapeFlag:0,Se=X.children,{patchFlag:ue,shapeFlag:ce}=X;if(ue>0){if(ue&128){k(fe,Se,ne,ae,se,re,de,ge,me);return}else if(ue&256){L(fe,Se,ne,ae,se,re,de,ge,me);return}}ce&8?(ye&16&&ee(fe,se,re),Se!==fe&&u(ne,Se)):ye&16?ce&16?k(fe,Se,ne,ae,se,re,de,ge,me):ee(fe,se,re,!0):(ye&8&&u(ne,""),ce&16&&I(Se,ne,ae,se,re,de,ge,me))},L=(W,X,ne,ae,se,re,de,ge,me)=>{W=W||ta,X=X||ta;const fe=W.length,ye=X.length,Se=Math.min(fe,ye);let ue;for(ue=0;ueye?ee(W,se,re,!0,!1,Se):I(X,ne,ae,se,re,de,ge,me,Se)},k=(W,X,ne,ae,se,re,de,ge,me)=>{let fe=0;const ye=X.length;let Se=W.length-1,ue=ye-1;for(;fe<=Se&&fe<=ue;){const ce=W[fe],he=X[fe]=me?tl(X[fe]):tr(X[fe]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;fe++}for(;fe<=Se&&fe<=ue;){const ce=W[Se],he=X[ue]=me?tl(X[ue]):tr(X[ue]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;Se--,ue--}if(fe>Se){if(fe<=ue){const ce=ue+1,he=ceue)for(;fe<=Se;)H(W[fe],se,re,!0),fe++;else{const ce=fe,he=fe,Pe=new Map;for(fe=he;fe<=ue;fe++){const _e=X[fe]=me?tl(X[fe]):tr(X[fe]);_e.key!=null&&Pe.set(_e.key,fe)}let Ie,Ae=0;const $e=ue-he+1;let xe=!1,we=0;const Me=new Array($e);for(fe=0;fe<$e;fe++)Me[fe]=0;for(fe=ce;fe<=Se;fe++){const _e=W[fe];if(Ae>=$e){H(_e,se,re,!0);continue}let De;if(_e.key!=null)De=Pe.get(_e.key);else for(Ie=he;Ie<=ue;Ie++)if(Me[Ie-he]===0&&Wl(_e,X[Ie])){De=Ie;break}De===void 0?H(_e,se,re,!0):(Me[De-he]=fe+1,De>=we?we=De:xe=!0,h(_e,X[De],ne,null,se,re,de,ge,me),Ae++)}const Ne=xe?J_(Me):ta;for(Ie=Ne.length-1,fe=$e-1;fe>=0;fe--){const _e=he+fe,De=X[_e],Je=_e+1{const{el:re,type:de,transition:ge,children:me,shapeFlag:fe}=W;if(fe&6){j(W.component.subTree,X,ne,ae);return}if(fe&128){W.suspense.move(X,ne,ae);return}if(fe&64){de.move(W,X,ne,K);return}if(de===We){o(re,X,ne);for(let Se=0;Sege.enter(re),se);else{const{leave:Se,delayLeave:ue,afterLeave:ce}=ge,he=()=>{W.ctx.isUnmounted?r(re):o(re,X,ne)},Pe=()=>{Se(re,()=>{he(),ce&&ce()})};ue?ue(re,he,Pe):Pe()}else o(re,X,ne)},H=(W,X,ne,ae=!1,se=!1)=>{const{type:re,props:de,ref:ge,children:me,dynamicChildren:fe,shapeFlag:ye,patchFlag:Se,dirs:ue,cacheIndex:ce}=W;if(Se===-2&&(se=!1),ge!=null&&(Er(),vs(ge,null,ne,W,!0),Mr()),ce!=null&&(X.renderCache[ce]=void 0),ye&256){X.ctx.deactivate(W);return}const he=ye&1&&ue,Pe=!ms(W);let Ie;if(Pe&&(Ie=de&&de.onVnodeBeforeUnmount)&&Xo(Ie,X,W),ye&6)U(W.component,ne,ae);else{if(ye&128){W.suspense.unmount(ne,ae);return}he&&Ml(W,null,X,"beforeUnmount"),ye&64?W.type.remove(W,X,ne,K,ae):fe&&!fe.hasOnce&&(re!==We||Se>0&&Se&64)?ee(fe,X,ne,!1,!0):(re===We&&Se&384||!se&&ye&16)&&ee(me,X,ne),ae&&Y(W)}(Pe&&(Ie=de&&de.onVnodeUnmounted)||he)&&Bn(()=>{Ie&&Xo(Ie,X,W),he&&Ml(W,null,X,"unmounted")},ne)},Y=W=>{const{type:X,el:ne,anchor:ae,transition:se}=W;if(X===We){Z(ne,ae);return}if(X===Cg){x(W);return}const re=()=>{r(ne),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(W.shapeFlag&1&&se&&!se.persisted){const{leave:de,delayLeave:ge}=se,me=()=>de(ne,re);ge?ge(W.el,re,me):me()}else re()},Z=(W,X)=>{let ne;for(;W!==X;)ne=f(W),r(W),W=ne;r(X)},U=(W,X,ne)=>{const{bum:ae,scope:se,job:re,subTree:de,um:ge,m:me,a:fe,parent:ye,slots:{__:Se}}=W;$S(me),$S(fe),ae&&pg(ae),ye&<(Se)&&Se.forEach(ue=>{ye.renderCache[ue]=void 0}),se.stop(),re&&(re.flags|=8,H(de,W,X,ne)),ge&&Bn(ge,X),Bn(()=>{W.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},ee=(W,X,ne,ae=!1,se=!1,re=0)=>{for(let de=re;de{if(W.shapeFlag&6)return G(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const X=f(W.anchor||W.el),ne=X&&X[E3];return ne?f(ne):X};let J=!1;const Q=(W,X,ne)=>{W==null?X._vnode&&H(X._vnode,null,null,!0):h(X._vnode||null,W,X,null,null,null,ne),X._vnode=W,J||(J=!0,uS(),P3(),J=!1)},K={p:h,um:H,m:j,r:Y,mt:z,mc:I,pc:F,pbc:_,n:G,o:e};let q,pe;return t&&([q,pe]=t(K)),{render:Q,hydrate:q,createApp:j_(Q,q)}}function Sg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _l({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Q_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function i0(e,t,n=!1){const o=e.children,r=t.children;if(lt(o)&<(r))for(let l=0;l>1,e[n[a]]0&&(t[o]=n[l-1]),n[l]=o)}}for(l=n.length,i=n[l-1];l-- >0;)n[l]=i,i=t[i];return n}function Q3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q3(t)}function $S(e){if(e)for(let t=0;tHe(eA);function ke(e,t){return a0(e,null,t)}function be(e,t,n){return a0(e,t,n)}function a0(e,t,n=Et){const{immediate:o,deep:r,flush:l,once:i}=n,a=Zt({},n),s=t&&o||!t&&l!=="post";let c;if(Ys){if(l==="sync"){const g=tA();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=Do,g.resume=Do,g.pause=Do,g}}const u=fn;a.call=(g,v,h)=>Lo(g,u,v,h);let d=!1;l==="post"?a.scheduler=g=>{Bn(g,u&&u.suspense)}:l!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():Qm(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const f=y_(e,t,a);return Ys&&(c?c.push(f):s&&f()),f}function nA(e,t,n){const o=this.proxy,r=Ht(e)?e.includes(".")?J3(o,e):()=>o[e]:e.bind(o,o);let l;st(t)?l=t:(l=t.handler,n=t);const i=Cc(this),a=a0(r,l.bind(o),n);return i(),a}function J3(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Co(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function rA(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Et;let r=n;const l=t.startsWith("update:"),i=l&&oA(o,t.slice(7));i&&(i.trim&&(r=n.map(u=>Ht(u)?u.trim():u)),i.number&&(r=n.map(kM)));let a,s=o[a=fg(t)]||o[a=fg(Co(t))];!s&&l&&(s=o[a=fg(vi(t))]),s&&Lo(s,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lo(c,e,6,r)}}function eO(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const l=e.emits;let i={},a=!1;if(!st(e)){const s=c=>{const u=eO(c,t,!0);u&&(a=!0,Zt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!l&&!a?(Bt(e)&&o.set(e,null),null):(lt(l)?l.forEach(s=>i[s]=null):Zt(i,l),Bt(e)&&o.set(e,i),i)}function kf(e,t){return!e||!If(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,vi(t))||Ot(e,t))}function $g(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[l],slots:i,attrs:a,emit:s,render:c,renderCache:u,props:d,data:f,setupState:g,ctx:v,inheritAttrs:h}=e,b=Od(e);let y,S;try{if(n.shapeFlag&4){const x=r||o,C=x;y=tr(c.call(C,x,u,d,g,f,v)),S=a}else{const x=t;y=tr(x.length>1?x(d,{attrs:a,slots:i,emit:s}):x(d,null)),S=t.props?a:lA(a)}}catch(x){ys.length=0,Rf(x,e,1),y=p(bn)}let $=y;if(S&&h!==!1){const x=Object.keys(S),{shapeFlag:C}=$;x.length&&C&7&&(l&&x.some(Lm)&&(S=iA(S,l)),$=sn($,S,!1,!0))}return n.dirs&&($=sn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&ai($,n.transition),y=$,Od(b),y}const lA=e=>{let t;for(const n in e)(n==="class"||n==="style"||If(n))&&((t||(t={}))[n]=e[n]);return t},iA=(e,t)=>{const n={};for(const o in e)(!Lm(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function aA(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:a,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return o?CS(o,i,c):!!i;if(s&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function cA(e,t){t&&t.pendingBranch?lt(e)?t.effects.push(...e):t.effects.push(e):C_(e)}const We=Symbol.for("v-fgt"),Cl=Symbol.for("v-txt"),bn=Symbol.for("v-cmt"),Cg=Symbol.for("v-stc"),ys=[];let lo=null;function s0(e=!1){ys.push(lo=e?null:[])}function uA(){ys.pop(),lo=ys[ys.length-1]||null}let Us=1;function xS(e,t=!1){Us+=e,e<0&&lo&&t&&(lo.hasOnce=!0)}function nO(e){return e.dynamicChildren=Us>0?lo||ta:null,uA(),Us>0&&lo&&lo.push(e),e}function oO(e,t,n,o,r,l){return nO(Gi(e,t,n,o,r,l,!0))}function dA(e,t,n,o,r){return nO(p(e,t,n,o,r,!0))}function Yt(e){return e?e.__v_isVNode===!0:!1}function Wl(e,t){return e.type===t.type&&e.key===t.key}const rO=({key:e})=>e??null,Ru=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||kt(e)||st(e)?{i:zn,r:e,k:t,f:!!n}:e:null);function Gi(e,t=null,n=null,o=0,r=null,l=e===We?0:1,i=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rO(t),ref:t&&Ru(t),scopeId:T3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:zn};return a?(c0(s,n),l&128&&e.normalize(s)):n&&(s.shapeFlag|=Ht(n)?8:16),Us>0&&!i&&lo&&(s.patchFlag>0||l&6)&&s.patchFlag!==32&&lo.push(s),s}const p=fA;function fA(e,t=null,n=null,o=0,r=null,l=!1){if((!e||e===H3)&&(e=bn),Yt(e)){const a=sn(e,t,!0);return n&&c0(a,n),Us>0&&!l&&lo&&(a.shapeFlag&6?lo[lo.indexOf(e)]=a:lo.push(a)),a.patchFlag=-2,a}if(xA(e)&&(e=e.__vccOpts),t){t=pA(t);let{class:a,style:s}=t;a&&!Ht(a)&&(t.class=jm(a)),Bt(s)&&(qm(s)&&!lt(s)&&(s=Zt({},s)),t.style=Hm(s))}const i=Ht(e)?1:tO(e)?128:M3(e)?64:Bt(e)?4:st(e)?2:0;return Gi(e,t,n,o,r,i,l,!0)}function pA(e){return e?qm(e)||G3(e)?Zt({},e):e:null}function sn(e,t,n=!1,o=!1){const{props:r,ref:l,patchFlag:i,children:a,transition:s}=e,c=t?hA(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rO(c),ref:t&&t.ref?n&&l?lt(l)?l.concat(Ru(t)):[l,Ru(t)]:Ru(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sn(e.ssContent),ssFallback:e.ssFallback&&sn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&ai(u,s.clone(u)),u}function Lt(e=" ",t=0){return p(Cl,null,e,t)}function gA(e="",t=!1){return t?(s0(),dA(bn,null,e)):p(bn,null,e)}function tr(e){return e==null||typeof e=="boolean"?p(bn):lt(e)?p(We,null,e.slice()):Yt(e)?tl(e):p(Cl,null,String(e))}function tl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sn(e)}function c0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(lt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),c0(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!G3(t)?t._ctx=zn:r===3&&zn&&(zn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:zn},n=32):(t=String(t),o&64?(n=16,t=[Lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function hA(...e){const t={};for(let n=0;nfn||zn;let Id,nv;{const e=_f(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};Id=t("__VUE_INSTANCE_SETTERS__",n=>fn=n),nv=t("__VUE_SSR_SETTERS__",n=>Ys=n)}const Cc=e=>{const t=fn;return Id(e),e.scope.on(),()=>{e.scope.off(),Id(t)}},wS=()=>{fn&&fn.scope.off(),Id(null)};function lO(e){return e.vnode.shapeFlag&4}let Ys=!1;function yA(e,t=!1,n=!1){t&&nv(t);const{props:o,children:r}=e.vnode,l=lO(e);V_(e,o,l,t),U_(e,r,n||t);const i=l?SA(e,t):void 0;return t&&nv(!1),i}function SA(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,R_);const{setup:o}=n;if(o){Er();const r=e.setupContext=o.length>1?aO(e):null,l=Cc(e),i=$c(o,e,0,[e.props,r]),a=Y4(i);if(Mr(),l(),(a||e.sp)&&!ms(e)&&L3(e),a){if(i.then(wS,wS),t)return i.then(s=>{OS(e,s,t)}).catch(s=>{Rf(s,e,0)});e.asyncDep=i}else OS(e,i,t)}else iO(e,t)}function OS(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bt(t)&&(e.setupState=C3(t)),iO(e,n)}let PS;function iO(e,t,n){const o=e.type;if(!e.render){if(!t&&PS&&!o.render){const r=o.template||o0(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,c=Zt(Zt({isCustomElement:l,delimiters:a},i),s);o.render=PS(r,c)}}e.render=o.render||Do}{const r=Cc(e);Er();try{N_(e)}finally{Mr(),r()}}}const $A={get(e,t){return Pn(e,"get",""),e[t]}};function aO(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$A),slots:e.slots,emit:e.emit,expose:t}}function zf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(C3(Zm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}})):e.proxy}function CA(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function xA(e){return st(e)&&"__vccOpts"in e}const P=(e,t)=>m_(e,t,Ys);function _r(e,t,n){const o=arguments.length;return o===2?Bt(t)&&!lt(t)?Yt(t)?p(e,null,[t]):p(e,t):p(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Yt(n)&&(n=[n]),p(e,t,n))}const wA="3.5.17";/** -* @vue/runtime-dom v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ov;const IS=typeof window<"u"&&window.trustedTypes;if(IS)try{ov=IS.createPolicy("vue",{createHTML:e=>e})}catch{}const sO=ov?e=>ov.createHTML(e):e=>e,OA="http://www.w3.org/2000/svg",PA="http://www.w3.org/1998/Math/MathML",br=typeof document<"u"?document:null,TS=br&&br.createElement("template"),IA={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?br.createElementNS(OA,e):t==="mathml"?br.createElementNS(PA,e):n?br.createElement(e,{is:n}):br.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>br.createTextNode(e),createComment:e=>br.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>br.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{TS.innerHTML=sO(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=TS.content;if(o==="svg"||o==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xr="transition",Ya="animation",ma=Symbol("_vtc"),cO={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uO=Zt({},D3,cO),TA=e=>(e.displayName="Transition",e.props=uO,e),cn=TA((e,{slots:t})=>_r(O_,dO(e),t)),Al=(e,t=[])=>{lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},ES=e=>e?lt(e)?e.some(t=>t.length>1):e.length>1:!1;function dO(e){const t={};for(const A in e)A in cO||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:l=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=l,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=EA(r),h=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:$,onLeave:x,onLeaveCancelled:C,onBeforeAppear:O=y,onAppear:w=S,onAppearCancelled:I=$}=t,T=(A,R,z,M)=>{A._enterCancelled=M,qr(A,R?u:a),qr(A,R?c:i),z&&z()},_=(A,R)=>{A._isLeaving=!1,qr(A,d),qr(A,g),qr(A,f),R&&R()},E=A=>(R,z)=>{const M=A?w:S,B=()=>T(R,A,z);Al(M,[R,B]),MS(()=>{qr(R,A?s:l),Uo(R,A?u:a),ES(M)||_S(R,o,h,B)})};return Zt(t,{onBeforeEnter(A){Al(y,[A]),Uo(A,l),Uo(A,i)},onBeforeAppear(A){Al(O,[A]),Uo(A,s),Uo(A,c)},onEnter:E(!1),onAppear:E(!0),onLeave(A,R){A._isLeaving=!0;const z=()=>_(A,R);Uo(A,d),A._enterCancelled?(Uo(A,f),rv()):(rv(),Uo(A,f)),MS(()=>{A._isLeaving&&(qr(A,d),Uo(A,g),ES(x)||_S(A,o,b,z))}),Al(x,[A,z])},onEnterCancelled(A){T(A,!1,void 0,!0),Al($,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),Al(I,[A])},onLeaveCancelled(A){_(A),Al(C,[A])}})}function EA(e){if(e==null)return null;if(Bt(e))return[xg(e.enter),xg(e.leave)];{const t=xg(e);return[t,t]}}function xg(e){return zM(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ma]||(e[ma]=new Set)).add(t)}function qr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[ma];n&&(n.delete(t),n.size||(e[ma]=void 0))}function MS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MA=0;function _S(e,t,n,o){const r=e._endId=++MA,l=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(l,n);const{type:i,timeout:a,propCount:s}=fO(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),l()},f=g=>{g.target===e&&++u>=s&&d()};setTimeout(()=>{u(n[v]||"").split(", "),r=o(`${Xr}Delay`),l=o(`${Xr}Duration`),i=AS(r,l),a=o(`${Ya}Delay`),s=o(`${Ya}Duration`),c=AS(a,s);let u=null,d=0,f=0;t===Xr?i>0&&(u=Xr,d=i,f=l.length):t===Ya?c>0&&(u=Ya,d=c,f=s.length):(d=Math.max(i,c),u=d>0?i>c?Xr:Ya:null,f=u?u===Xr?l.length:s.length:0);const g=u===Xr&&/\b(transform|all)(,|$)/.test(o(`${Xr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:g}}function AS(e,t){for(;e.lengthRS(n)+RS(e[o])))}function RS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rv(){return document.body.offsetHeight}function _A(e,t,n){const o=e[ma];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Td=Symbol("_vod"),pO=Symbol("_vsh"),En={beforeMount(e,{value:t},{transition:n}){e[Td]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),qa(e,!0),o.enter(e)):o.leave(e,()=>{qa(e,!1)}):qa(e,t))},beforeUnmount(e,{value:t}){qa(e,t)}};function qa(e,t){e.style.display=t?e[Td]:"none",e[pO]=!t}const AA=Symbol(""),RA=/(^|;)\s*display\s*:/;function DA(e,t,n){const o=e.style,r=Ht(n);let l=!1;if(n&&!r){if(t)if(Ht(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Du(o,a,"")}else for(const i in t)n[i]==null&&Du(o,i,"");for(const i in n)i==="display"&&(l=!0),Du(o,i,n[i])}else if(r){if(t!==n){const i=o[AA];i&&(n+=";"+i),o.cssText=n,l=RA.test(n)}}else t&&e.removeAttribute("style");Td in e&&(e[Td]=l?o.display:"",e[pO]&&(o.display="none"))}const DS=/\s*!important$/;function Du(e,t,n){if(lt(n))n.forEach(o=>Du(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=BA(e,t);DS.test(n)?e.setProperty(vi(o),n.replace(DS,""),"important"):e[o]=n}}const BS=["Webkit","Moz","ms"],wg={};function BA(e,t){const n=wg[t];if(n)return n;let o=Co(t);if(o!=="filter"&&o in e)return wg[t]=o;o=Mf(o);for(let r=0;rOg||(zA.then(()=>Og=0),Og=Date.now());function jA(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Lo(WA(o,n.value),t,5,[o])};return n.value=e,n.attached=HA(),n}function WA(e,t){if(lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const HS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VA=(e,t,n,o,r,l)=>{const i=r==="svg";t==="class"?_A(e,o,i):t==="style"?DA(e,n,o):If(t)?Lm(t)||LA(e,t,n,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):KA(e,t,o,i))?(LS(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&FS(e,t,o,i,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?LS(e,Co(t),o,l,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),FS(e,t,o,i))};function KA(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&HS(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return HS(t)&&Ht(n)?!1:t in e}const gO=new WeakMap,hO=new WeakMap,Ed=Symbol("_moveCb"),jS=Symbol("_enterCb"),GA=e=>(delete e.props.mode,e),XA=GA({name:"TransitionGroup",props:Zt({},uO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pn(),o=R3();let r,l;return An(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!ZA(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(UA),r.forEach(YA);const a=r.filter(qA);rv(),a.forEach(s=>{const c=s.el,u=c.style;Uo(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Ed]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Ed]=null,qr(c,i))};c.addEventListener("transitionend",d)}),r=[]}),()=>{const i=Qe(e),a=dO(i);let s=i.tag||We;if(r=[],l)for(let c=0;c{a.split(/\s+/).forEach(s=>s&&o.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(o);const{hasTransform:i}=fO(o);return l.removeChild(o),i}const QA=["ctrl","shift","alt","meta"],JA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QA.some(n=>e[`${n}Key`]&&!t.includes(n))},WS=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...l)=>{for(let i=0;i{vO().render(...e)},mO=(...e)=>{const t=vO().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=n7(o);if(!r)return;const l=t._component;!st(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,t7(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function t7(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n7(e){return Ht(e)?document.querySelector(e):e}var o7=!1;/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let bO;const jf=e=>bO=e,yO=Symbol();function lv(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function r7(){const e=n3(!0),t=e.run(()=>le({}));let n=[],o=[];const r=Zm({install(l){jf(r),r._a=l,l.provide(yO,r),l.config.globalProperties.$pinia=r,o.forEach(i=>n.push(i)),o=[]},use(l){return!this._a&&!o7?o.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const SO=()=>{};function KS(e,t,n,o=SO){e.push(t);const r=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),o())};return!n&&Wm()&&o3(r),r}function _i(e,...t){e.slice().forEach(n=>{n(...t)})}const l7=e=>e(),GS=Symbol(),Pg=Symbol();function iv(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];lv(r)&&lv(o)&&e.hasOwnProperty(n)&&!kt(o)&&!fl(o)?e[n]=iv(r,o):e[n]=o}return e}const i7=Symbol();function a7(e){return!lv(e)||!e.hasOwnProperty(i7)}const{assign:Zr}=Object;function s7(e){return!!(kt(e)&&e.effect)}function c7(e,t,n,o){const{state:r,actions:l,getters:i}=t,a=n.state.value[e];let s;function c(){a||(n.state.value[e]=r?r():{});const u=No(n.state.value[e]);return Zr(u,l,Object.keys(i||{}).reduce((d,f)=>(d[f]=Zm(P(()=>{jf(n);const g=n._s.get(e);return i[f].call(g,g)})),d),{}))}return s=$O(e,c,t,n,o,!0),s}function $O(e,t,n={},o,r,l){let i;const a=Zr({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],g;const v=o.state.value[e];!l&&!v&&(o.state.value[e]={}),le({});let h;function b(I){let T;c=u=!1,typeof I=="function"?(I(o.state.value[e]),T={type:Ss.patchFunction,storeId:e,events:g}):(iv(o.state.value[e],I),T={type:Ss.patchObject,payload:I,storeId:e,events:g});const _=h=Symbol();ot().then(()=>{h===_&&(c=!0)}),u=!0,_i(d,T,o.state.value[e])}const y=l?function(){const{state:T}=n,_=T?T():{};this.$patch(E=>{Zr(E,_)})}:SO;function S(){i.stop(),d=[],f=[],o._s.delete(e)}const $=(I,T="")=>{if(GS in I)return I[Pg]=T,I;const _=function(){jf(o);const E=Array.from(arguments),A=[],R=[];function z(N){A.push(N)}function M(N){R.push(N)}_i(f,{args:E,name:_[Pg],store:C,after:z,onError:M});let B;try{B=I.apply(this&&this.$id===e?this:C,E)}catch(N){throw _i(R,N),N}return B instanceof Promise?B.then(N=>(_i(A,N),N)).catch(N=>(_i(R,N),Promise.reject(N))):(_i(A,B),B)};return _[GS]=!0,_[Pg]=T,_},x={_p:o,$id:e,$onAction:KS.bind(null,f),$patch:b,$reset:y,$subscribe(I,T={}){const _=KS(d,I,T.detached,()=>E()),E=i.run(()=>be(()=>o.state.value[e],A=>{(T.flush==="sync"?u:c)&&I({storeId:e,type:Ss.direct,events:g},A)},Zr({},s,T)));return _},$dispose:S},C=ut(x);o._s.set(e,C);const w=(o._a&&o._a.runWithContext||l7)(()=>o._e.run(()=>(i=n3()).run(()=>t({action:$}))));for(const I in w){const T=w[I];if(kt(T)&&!s7(T)||fl(T))l||(v&&a7(T)&&(kt(T)?T.value=v[I]:iv(T,v[I])),o.state.value[e][I]=T);else if(typeof T=="function"){const _=$(T,I);w[I]=_,a.actions[I]=T}}return Zr(C,w),Zr(Qe(C),w),Object.defineProperty(C,"$state",{get:()=>o.state.value[e],set:I=>{b(T=>{Zr(T,I)})}}),o._p.forEach(I=>{Zr(C,i.run(()=>I({store:C,app:o._a,pinia:o,options:a})))}),v&&l&&n.hydrate&&n.hydrate(C.$state,v),c=!0,u=!0,C}/*! #__NO_SIDE_EFFECTS__ */function u7(e,t,n){let o,r;const l=typeof t=="function";typeof e=="string"?(o=e,r=l?n:t):(r=e,o=e.id);function i(a,s){const c=W_();return a=a||(c?He(yO,null):null),a&&jf(a),a=bO,a._s.has(o)||(l?$O(o,t,r,a):c7(o,r,a)),a._s.get(o)}return i.$id=o,i}const d7="modulepreload",f7=function(e){return"/"+e},XS={},Za=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=f7(l),l in XS)return;XS[l]=!0;const i=l.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===l&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":d7,i||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),i)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})};/*! - * vue-router v4.5.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Hi=typeof document<"u";function CO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function p7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&CO(e.default)}const wt=Object.assign;function Ig(e,t){const n={};for(const o in t){const r=t[o];n[o]=ko(r)?r.map(e):e(r)}return n}const $s=()=>{},ko=Array.isArray,xO=/#/g,g7=/&/g,h7=/\//g,v7=/=/g,m7=/\?/g,wO=/\+/g,b7=/%5B/g,y7=/%5D/g,OO=/%5E/g,S7=/%60/g,PO=/%7B/g,$7=/%7C/g,IO=/%7D/g,C7=/%20/g;function u0(e){return encodeURI(""+e).replace($7,"|").replace(b7,"[").replace(y7,"]")}function x7(e){return u0(e).replace(PO,"{").replace(IO,"}").replace(OO,"^")}function av(e){return u0(e).replace(wO,"%2B").replace(C7,"+").replace(xO,"%23").replace(g7,"%26").replace(S7,"`").replace(PO,"{").replace(IO,"}").replace(OO,"^")}function w7(e){return av(e).replace(v7,"%3D")}function O7(e){return u0(e).replace(xO,"%23").replace(m7,"%3F")}function P7(e){return e==null?"":O7(e).replace(h7,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const I7=/\/$/,T7=e=>e.replace(I7,"");function Tg(e,t,n="/"){let o,r={},l="",i="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(o=t.slice(0,s),l=t.slice(s+1,a>-1?a:t.length),r=e(l)),a>-1&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=A7(o??t,n),{fullPath:o+(l&&"?")+l+i,path:o,query:r,hash:qs(i)}}function E7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function US(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M7(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ba(t.matched[o],n.matched[r])&&TO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ba(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function TO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_7(e[n],t[n]))return!1;return!0}function _7(e,t){return ko(e)?YS(e,t):ko(t)?YS(t,e):e===t}function YS(e,t){return ko(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function A7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let l=n.length-1,i,a;for(i=0;i1&&l--;else break;return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}const Ur={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zs;(function(e){e.pop="pop",e.push="push"})(Zs||(Zs={}));var Cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cs||(Cs={}));function R7(e){if(!e)if(Hi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),T7(e)}const D7=/^[^#]+#/;function B7(e,t){return e.replace(D7,"#")+t}function N7(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Wf=()=>({left:window.scrollX,top:window.scrollY});function F7(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=N7(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function qS(e,t){return(history.state?history.state.position-t:-1)+e}const sv=new Map;function L7(e,t){sv.set(e,t)}function k7(e){const t=sv.get(e);return sv.delete(e),t}let z7=()=>location.protocol+"//"+location.host;function EO(e,t){const{pathname:n,search:o,hash:r}=t,l=e.indexOf("#");if(l>-1){let a=r.includes(e.slice(l))?e.slice(l).length:1,s=r.slice(a);return s[0]!=="/"&&(s="/"+s),US(s,"")}return US(n,e)+o+r}function H7(e,t,n,o){let r=[],l=[],i=null;const a=({state:f})=>{const g=EO(e,location),v=n.value,h=t.value;let b=0;if(f){if(n.value=g,t.value=f,i&&i===v){i=null;return}b=h?f.position-h.position:0}else o(g);r.forEach(y=>{y(n.value,v,{delta:b,type:Zs.pop,direction:b?b>0?Cs.forward:Cs.back:Cs.unknown})})};function s(){i=n.value}function c(f){r.push(f);const g=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return l.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(wt({},f.state,{scroll:Wf()}),"")}function d(){for(const f of l)f();l=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:c,destroy:d}}function ZS(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Wf():null}}function j7(e){const{history:t,location:n}=window,o={value:EO(e,n)},r={value:t.state};r.value||l(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(s,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:z7()+e+s;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](f)}}function i(s,c){const u=wt({},t.state,ZS(r.value.back,s,r.value.forward,!0),c,{position:r.value.position});l(s,u,!0),o.value=s}function a(s,c){const u=wt({},r.value,t.state,{forward:s,scroll:Wf()});l(u.current,u,!0);const d=wt({},ZS(o.value,s,null),{position:u.position+1},c);l(s,d,!1),o.value=s}return{location:o,state:r,push:a,replace:i}}function W7(e){e=R7(e);const t=j7(e),n=H7(e,t.state,t.location,t.replace);function o(l,i=!0){i||n.pauseListeners(),history.go(l)}const r=wt({location:"",base:e,go:o,createHref:B7.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V7(e){return typeof e=="string"||e&&typeof e=="object"}function MO(e){return typeof e=="string"||typeof e=="symbol"}const _O=Symbol("");var QS;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(QS||(QS={}));function ya(e,t){return wt(new Error,{type:e,[_O]:!0},t)}function fr(e,t){return e instanceof Error&&_O in e&&(t==null||!!(e.type&t))}const JS="[^/]+?",K7={sensitive:!1,strict:!1,start:!0,end:!0},G7=/[.+*?^${}()[\]/\\]/g;function X7(e,t){const n=wt({},K7,t),o=[];let r=n.start?"^":"";const l=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function AO(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Y7={type:0,value:""},q7=/[a-zA-Z0-9_]/;function Z7(e){if(!e)return[[]];if(e==="/")return[[Y7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,o=n;const r=[];let l;function i(){l&&r.push(l),l=[]}let a=0,s,c="",u="";function d(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{i($)}:$s}function i(d){if(MO(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function s(d){const f=nR(d,n);n.splice(f,0,d),d.record.name&&!o$(d)&&o.set(d.record.name,d)}function c(d,f){let g,v={},h,b;if("name"in d&&d.name){if(g=o.get(d.name),!g)throw ya(1,{location:d});b=g.record.name,v=wt(t$(f.params,g.keys.filter($=>!$.optional).concat(g.parent?g.parent.keys.filter($=>$.optional):[]).map($=>$.name)),d.params&&t$(d.params,g.keys.map($=>$.name))),h=g.stringify(v)}else if(d.path!=null)h=d.path,g=n.find($=>$.re.test(h)),g&&(v=g.parse(h),b=g.record.name);else{if(g=f.name?o.get(f.name):n.find($=>$.re.test(f.path)),!g)throw ya(1,{location:d,currentLocation:f});b=g.record.name,v=wt({},f.params,d.params),h=g.stringify(v)}const y=[];let S=g;for(;S;)y.unshift(S.record),S=S.parent;return{name:b,path:h,params:v,matched:y,meta:tR(y)}}e.forEach(d=>l(d));function u(){n.length=0,o.clear()}return{addRoute:l,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function t$(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function n$(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:eR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function eR(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function o$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tR(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function r$(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function nR(e,t){let n=0,o=t.length;for(;n!==o;){const l=n+o>>1;AO(e,t[l])<0?o=l:n=l+1}const r=oR(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function oR(e){let t=e;for(;t=t.parent;)if(RO(t)&&AO(e,t)===0)return t}function RO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rR(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rl&&av(l)):[o&&av(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function lR(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=ko(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const iR=Symbol(""),i$=Symbol(""),Vf=Symbol(""),DO=Symbol(""),cv=Symbol("");function Qa(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function nl(e,t,n,o,r,l=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(ya(4,{from:n,to:t})):f instanceof Error?s(f):V7(f)?s(ya(2,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),a())},u=l(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>s(f))})}function Eg(e,t,n,o,r=l=>l()){const l=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(CO(s)){const u=(s.__vccOpts||s)[t];u&&l.push(nl(u,n,o,i,a,r))}else{let c=s();l.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=p7(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const g=(d.__vccOpts||d)[t];return g&&nl(g,n,o,i,a,r)()}))}}return l}function a$(e){const t=He(Vf),n=He(DO),o=P(()=>{const s=$t(e.to);return t.resolve(s)}),r=P(()=>{const{matched:s}=o.value,{length:c}=s,u=s[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(ba.bind(null,u));if(f>-1)return f;const g=s$(s[c-2]);return c>1&&s$(u)===g&&d[d.length-1].path!==g?d.findIndex(ba.bind(null,s[c-2])):f}),l=P(()=>r.value>-1&&dR(n.params,o.value.params)),i=P(()=>r.value>-1&&r.value===n.matched.length-1&&TO(n.params,o.value.params));function a(s={}){if(uR(s)){const c=t[$t(e.replace)?"replace":"push"]($t(e.to)).catch($s);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:l,isExactActive:i,navigate:a}}function aR(e){return e.length===1?e[0]:e}const sR=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:a$,setup(e,{slots:t}){const n=ut(a$(e)),{options:o}=He(Vf),r=P(()=>({[c$(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[c$(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&aR(t.default(n));return e.custom?l:_r("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}}),cR=sR;function uR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dR(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!ko(r)||r.length!==o.length||o.some((l,i)=>l!==r[i]))return!1}return!0}function s$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const c$=(e,t,n)=>e??t??n,fR=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=He(cv),r=P(()=>e.route||o.value),l=He(i$,0),i=P(()=>{let c=$t(l);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=P(()=>r.value.matched[i.value]);Ge(i$,P(()=>i.value+1)),Ge(iR,a),Ge(cv,r);const s=le();return be(()=>[s.value,a.value,e.name],([c,u,d],[f,g,v])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!ba(u,g)||!f)&&(u.enterCallbacks[d]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return u$(n.default,{Component:f,route:c});const g=d.props[u],v=g?g===!0?c.params:typeof g=="function"?g(c):g:null,b=_r(f,wt({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:s}));return u$(n.default,{Component:b,route:c})||b}}});function u$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pR=fR;function gR(e){const t=J7(e.routes,e),n=e.parseQuery||rR,o=e.stringifyQuery||l$,r=e.history,l=Qa(),i=Qa(),a=Qa(),s=te(Ur);let c=Ur;Hi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ig.bind(null,G=>""+G),d=Ig.bind(null,P7),f=Ig.bind(null,qs);function g(G,J){let Q,K;return MO(G)?(Q=t.getRecordMatcher(G),K=J):K=G,t.addRoute(K,Q)}function v(G){const J=t.getRecordMatcher(G);J&&t.removeRoute(J)}function h(){return t.getRoutes().map(G=>G.record)}function b(G){return!!t.getRecordMatcher(G)}function y(G,J){if(J=wt({},J||s.value),typeof G=="string"){const X=Tg(n,G,J.path),ne=t.resolve({path:X.path},J),ae=r.createHref(X.fullPath);return wt(X,ne,{params:f(ne.params),hash:qs(X.hash),redirectedFrom:void 0,href:ae})}let Q;if(G.path!=null)Q=wt({},G,{path:Tg(n,G.path,J.path).path});else{const X=wt({},G.params);for(const ne in X)X[ne]==null&&delete X[ne];Q=wt({},G,{params:d(X)}),J.params=d(J.params)}const K=t.resolve(Q,J),q=G.hash||"";K.params=u(f(K.params));const pe=E7(o,wt({},G,{hash:x7(q),path:K.path})),W=r.createHref(pe);return wt({fullPath:pe,hash:q,query:o===l$?lR(G.query):G.query||{}},K,{redirectedFrom:void 0,href:W})}function S(G){return typeof G=="string"?Tg(n,G,s.value.path):wt({},G)}function $(G,J){if(c!==G)return ya(8,{from:J,to:G})}function x(G){return w(G)}function C(G){return x(wt(S(G),{replace:!0}))}function O(G){const J=G.matched[G.matched.length-1];if(J&&J.redirect){const{redirect:Q}=J;let K=typeof Q=="function"?Q(G):Q;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=S(K):{path:K},K.params={}),wt({query:G.query,hash:G.hash,params:K.path!=null?{}:G.params},K)}}function w(G,J){const Q=c=y(G),K=s.value,q=G.state,pe=G.force,W=G.replace===!0,X=O(Q);if(X)return w(wt(S(X),{state:typeof X=="object"?wt({},q,X.state):q,force:pe,replace:W}),J||Q);const ne=Q;ne.redirectedFrom=J;let ae;return!pe&&M7(o,K,Q)&&(ae=ya(16,{to:ne,from:K}),j(K,K,!0,!1)),(ae?Promise.resolve(ae):_(ne,K)).catch(se=>fr(se)?fr(se,2)?se:k(se):F(se,ne,K)).then(se=>{if(se){if(fr(se,2))return w(wt({replace:W},S(se.to),{state:typeof se.to=="object"?wt({},q,se.to.state):q,force:pe}),J||ne)}else se=A(ne,K,!0,W,q);return E(ne,K,se),se})}function I(G,J){const Q=$(G,J);return Q?Promise.reject(Q):Promise.resolve()}function T(G){const J=Z.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(G):G()}function _(G,J){let Q;const[K,q,pe]=hR(G,J);Q=Eg(K.reverse(),"beforeRouteLeave",G,J);for(const X of K)X.leaveGuards.forEach(ne=>{Q.push(nl(ne,G,J))});const W=I.bind(null,G,J);return Q.push(W),ee(Q).then(()=>{Q=[];for(const X of l.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).then(()=>{Q=Eg(q,"beforeRouteUpdate",G,J);for(const X of q)X.updateGuards.forEach(ne=>{Q.push(nl(ne,G,J))});return Q.push(W),ee(Q)}).then(()=>{Q=[];for(const X of pe)if(X.beforeEnter)if(ko(X.beforeEnter))for(const ne of X.beforeEnter)Q.push(nl(ne,G,J));else Q.push(nl(X.beforeEnter,G,J));return Q.push(W),ee(Q)}).then(()=>(G.matched.forEach(X=>X.enterCallbacks={}),Q=Eg(pe,"beforeRouteEnter",G,J,T),Q.push(W),ee(Q))).then(()=>{Q=[];for(const X of i.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).catch(X=>fr(X,8)?X:Promise.reject(X))}function E(G,J,Q){a.list().forEach(K=>T(()=>K(G,J,Q)))}function A(G,J,Q,K,q){const pe=$(G,J);if(pe)return pe;const W=J===Ur,X=Hi?history.state:{};Q&&(K||W?r.replace(G.fullPath,wt({scroll:W&&X&&X.scroll},q)):r.push(G.fullPath,q)),s.value=G,j(G,J,Q,W),k()}let R;function z(){R||(R=r.listen((G,J,Q)=>{if(!U.listening)return;const K=y(G),q=O(K);if(q){w(wt(q,{replace:!0,force:!0}),K).catch($s);return}c=K;const pe=s.value;Hi&&L7(qS(pe.fullPath,Q.delta),Wf()),_(K,pe).catch(W=>fr(W,12)?W:fr(W,2)?(w(wt(S(W.to),{force:!0}),K).then(X=>{fr(X,20)&&!Q.delta&&Q.type===Zs.pop&&r.go(-1,!1)}).catch($s),Promise.reject()):(Q.delta&&r.go(-Q.delta,!1),F(W,K,pe))).then(W=>{W=W||A(K,pe,!1),W&&(Q.delta&&!fr(W,8)?r.go(-Q.delta,!1):Q.type===Zs.pop&&fr(W,20)&&r.go(-1,!1)),E(K,pe,W)}).catch($s)}))}let M=Qa(),B=Qa(),N;function F(G,J,Q){k(G);const K=B.list();return K.length?K.forEach(q=>q(G,J,Q)):console.error(G),Promise.reject(G)}function L(){return N&&s.value!==Ur?Promise.resolve():new Promise((G,J)=>{M.add([G,J])})}function k(G){return N||(N=!G,z(),M.list().forEach(([J,Q])=>G?Q(G):J()),M.reset()),G}function j(G,J,Q,K){const{scrollBehavior:q}=e;if(!Hi||!q)return Promise.resolve();const pe=!Q&&k7(qS(G.fullPath,0))||(K||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>q(G,J,pe)).then(W=>W&&F7(W)).catch(W=>F(W,G,J))}const H=G=>r.go(G);let Y;const Z=new Set,U={currentRoute:s,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:h,resolve:y,options:e,push:x,replace:C,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:l.add,beforeResolve:i.add,afterEach:a.add,onError:B.add,isReady:L,install(G){const J=this;G.component("RouterLink",cR),G.component("RouterView",pR),G.config.globalProperties.$router=J,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>$t(s)}),Hi&&!Y&&s.value===Ur&&(Y=!0,x(r.location).catch(q=>{}));const Q={};for(const q in Ur)Object.defineProperty(Q,q,{get:()=>s.value[q],enumerable:!0});G.provide(Vf,J),G.provide(DO,b3(Q)),G.provide(cv,s);const K=G.unmount;Z.add(G),G.unmount=function(){Z.delete(G),Z.size<1&&(c=Ur,R&&R(),R=null,s.value=Ur,Y=!1,N=!1),K()}}};function ee(G){return G.reduce((J,Q)=>J.then(()=>T(Q)),Promise.resolve())}return U}function hR(e,t){const n=[],o=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let i=0;iba(c,a))?o.push(a):n.push(a));const s=e.matched[i];s&&(t.matched.find(c=>ba(c,s))||r.push(s))}return[n,o,r]}function w0e(){return He(Vf)}const vR=[{path:"/",name:"Home",component:()=>Za(()=>import("./Home-8e72349b.js"),["assets/js/Home-8e72349b.js","assets/js/chat-e1054b12.js","assets/css/Home-c2a76248.css"]),meta:{title:"情绪博物馆 - 首页"}},{path:"/test",name:"Test",component:()=>Za(()=>import("./HomeTest-a9ed2425.js"),["assets/js/HomeTest-a9ed2425.js","assets/css/HomeTest-dd1db0d3.css"]),meta:{title:"情绪博物馆 - 测试页面"}},{path:"/chat",name:"Chat",component:()=>Za(()=>import("./ChatComplete-7551ced4.js"),["assets/js/ChatComplete-7551ced4.js","assets/js/chat-e1054b12.js","assets/css/ChatComplete-68dc21b4.css"]),meta:{title:"AI对话 - 情绪博物馆"}},{path:"/history",name:"History",component:()=>Za(()=>import("./HistorySimple-e430de64.js"),["assets/js/HistorySimple-e430de64.js","assets/css/HistorySimple-caafbb99.css"]),meta:{title:"对话历史 - 情绪博物馆"}},{path:"/analysis",name:"Analysis",component:()=>Za(()=>import("./AnalysisSimple-7a988a7b.js"),["assets/js/AnalysisSimple-7a988a7b.js","assets/css/AnalysisSimple-eb0c3031.css"]),meta:{title:"情绪分析 - 情绪博物馆"}}],BO=gR({history:W7(),routes:vR});BO.beforeEach((e,t,n)=>{e.meta.title&&(document.title=e.meta.title),n()});const mR=u7("user",()=>{const e=le({id:"",name:"",avatar:""}),t=le(!1);return{userInfo:e,isLoggedIn:t,initUser:()=>{const l=localStorage.getItem("emotion_museum_user");if(l)e.value=JSON.parse(l),t.value=!0;else{const i=`guest_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.value={id:i,name:"访客用户",avatar:"",isGuest:!0},t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(e.value)),console.log("创建临时用户:",i)}},setUser:l=>{e.value=l,t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(l))},clearUser:()=>{e.value={id:"",name:"",avatar:""},t.value=!1,localStorage.removeItem("emotion_museum_user")}}}),bR=()=>({APP_TITLE:"情绪博物馆",APP_VERSION:"1.0.0",APP_ENV:"production",API_BASE_URL:"https://api.emotion-museum.com/api",API_TARGET:"https://api.emotion-museum.com",API_TIMEOUT:parseInt("30000")||3e4,DEBUG_MODE:!1,MOCK_DATA:!1,isDevelopment:!1,isTest:!1,isProduction:!0}),Nt=bR(),xc=(...e)=>{Nt.DEBUG_MODE&&console.log("[DEBUG]",...e)},NO=()=>{console.log("=== 环境配置信息 ==="),console.log("应用标题:",Nt.APP_TITLE),console.log("应用版本:",Nt.APP_VERSION),console.log("运行环境:",Nt.APP_ENV),console.log("API地址:",Nt.API_BASE_URL),console.log("调试模式:",Nt.DEBUG_MODE),console.log("==================")};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function yR(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Qs(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SR(e){var t=yR(e,"string");return Qs(t)=="symbol"?t:t+""}function $R(e,t,n){return(t=SR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function D(e){for(var t=1;ttypeof e=="function",CR=Array.isArray,xR=e=>typeof e=="string",wR=e=>e!==null&&typeof e=="object",OR=/^on[^a-z]/,PR=e=>OR.test(e),d0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},IR=/-(\w)/g,mi=d0(e=>e.replace(IR,(t,n)=>n?n.toUpperCase():"")),TR=/\B([A-Z])/g,ER=d0(e=>e.replace(TR,"-$1").toLowerCase()),MR=d0(e=>e.charAt(0).toUpperCase()+e.slice(1)),_R=Object.prototype.hasOwnProperty,f$=(e,t)=>_R.call(e,t);function AR(e,t,n,o){const r=e[n];if(r!=null){const l=f$(r,"default");if(l&&o===void 0){const i=r.default;o=r.type!==Function&&uv(i)?i():i}r.type===Boolean&&(!f$(t,n)&&!l?o=!1:o===""&&(o=!0))}return o}function RR(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Vl(e){return typeof e=="number"?`${e}px`:e}function Xi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function DR(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t==null||t()};return o.then=(r,l)=>n.then(r,l),o.promise=n,o}function ie(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!dv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zR?(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)},e.prototype.disconnect_=function(){!dv||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,r=kR.some(function(l){return!!~o.indexOf(l)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),LO=function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new YR(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new qR(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),zO=typeof WeakMap<"u"?new WeakMap:new FO,HO=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HR.getInstance(),o=new ZR(t,n,this);zO.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){HO.prototype[e]=function(){var t;return(t=zO.get(this))[e].apply(t,arguments)}});var QR=function(){return typeof Md.ResizeObserver<"u"?Md.ResizeObserver:HO}();const f0=QR,JR=e=>e!=null&&e!=="",fv=JR,eD=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},qe=eD,p0=e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;l0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(l){if(l){const i=l.split(r);if(i.length>1){const a=t?mi(i[0].trim()):i[0].trim();n[a]=i[1].trim()}}}),n)},xr=(e,t)=>e[t]!==void 0,jO=Symbol("skipFlatten"),yt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...yt(r,t)):r&&r.type===We?r.key===jO?o.push(r):o.push(...yt(r.children,t)):r&&Yt(r)?t&&!wc(r)?o.push(r):t||o.push(r):fv(r)&&o.push(r)}),o},Gf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Yt(e))return e.type===We?t==="default"?yt(e.children):[]:e.children&&e.children[t]?yt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return yt(o)}},Hn=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},WO=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],l=ER(o);(r!==void 0||l in n)&&(t[o]=r)})}else if(Yt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(l=>{o[mi(l)]=n[l]});const r=e.type.props||{};Object.keys(r).forEach(l=>{const i=AR(r,o,l,o[l]);(i!==void 0||l in o)&&(t[l]=i)})}return t},VO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const l=e[t];if(l!==void 0)return typeof l=="function"&&o?l(n):l;r=e.$slots[t],r=o&&r?r(n):r}else if(Yt(e)){const l=e.props&&e.props[t];if(l!==void 0&&e.props!==null)return typeof l=="function"&&o?l(n):l;e.type===We?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=yt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function g$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=m(m({},n),e.$attrs):n=m(m({},n),e.props),p0(n)[t?"onEvents":"events"]}function nD(e){const n=((Yt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?ie(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=m(m({},o),n),o}function KO(e,t){let o=((Yt(e)?e.props:e.$attrs)||{}).style||{};if(typeof o=="string")o=tD(o,t);else if(t&&o){const r={};return Object.keys(o).forEach(l=>r[mi(l)]=o[l]),r}return o}function oD(e){return e.length===1&&e[0].type===We}function rD(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function wc(e){return e&&(e.type===bn||e.type===We&&e.children.length===0||e.type===Cl&&e.children.trim()==="")}function lD(e){return e&&e.type===Cl}function _t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===We?t.push(..._t(n.children)):t.push(n)}),t.filter(n=>!wc(n))}function Ja(e){if(e){const t=_t(e);return t.length?t:void 0}else return e}function Kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const xo=oe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=ut({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,l=null;const i=()=>{l&&(l.disconnect(),l=null)},a=u=>{const{onResize:d}=e,f=u[0].target,{width:g,height:v}=f.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=f,y=Math.floor(g),S=Math.floor(v);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};m(o,$),d&&Promise.resolve().then(()=>{d(m(m({},$),{offsetWidth:h,offsetHeight:b}),f)})}},s=pn(),c=()=>{const{disabled:u}=e;if(u){i();return}const d=Hn(s);d!==r&&(i(),r=d),!l&&d&&(l=new f0(a),l.observe(d))};return je(()=>{c()}),An(()=>{c()}),Rn(()=>{i()}),be(()=>e.disabled,()=>{c()},{flush:"post"}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});let GO=e=>setTimeout(e,16),XO=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(GO=e=>window.requestAnimationFrame(e),XO=e=>window.cancelAnimationFrame(e));let h$=0;const g0=new Map;function UO(e){g0.delete(e)}function Ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;h$+=1;const n=h$;function o(r){if(r===0)UO(n),e();else{const l=GO(()=>{o(r-1)});g0.set(n,l)}}return o(t),n}Ye.cancel=e=>{const t=g0.get(e);return UO(t),XO(t)};function pv(e){let t;const n=r=>()=>{t=null,e(...r)},o=function(){if(t==null){for(var r=arguments.length,l=new Array(r),i=0;i{Ye.cancel(t),t=null},o}const Cn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function si(){return{type:[Function,Array]}}function Re(e){return{type:Object,default:e}}function Ce(e){return{type:Boolean,default:e}}function ve(e){return{type:Function,default:e}}function St(e,t){const n={validator:()=>!0,default:e};return n}function In(){return{validator:()=>!0}}function at(e){return{type:Array,default:e}}function Be(e){return{type:String,default:e}}function Le(e,t){return e?{type:e,default:t}:St(t)}let YO=!1;try{const e=Object.defineProperty({},"passive",{get(){YO=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const nn=YO;function Mt(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&nn&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Zc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function v$(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function m$(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xs.push(n),qO.forEach(o=>{n.eventHandlers[o]=Mt(e,o,()=>{n.affixList.forEach(r=>{const{lazyUpdatePosition:l}=r.exposed;l()},(o==="touchstart"||o==="touchmove")&&nn?{passive:!0}:!1)})}))}function y$(e){const t=xs.find(n=>{const o=n.affixList.some(r=>r===e);return o&&(n.affixList=n.affixList.filter(r=>r!==e)),o});t&&t.affixList.length===0&&(xs=xs.filter(n=>n!==t),qO.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const h0="anticon",ZO=Symbol("GlobalFormContextKey"),aD=e=>{Ge(ZO,e)},sD=()=>He(ZO,{validateMessages:P(()=>{})}),cD=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Re(),input:Re(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Re(),pageHeader:Re(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Re(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Re(),pagination:Re(),theme:Re(),select:Re(),wave:Re()}),v0=Symbol("configProvider"),QO={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>h0),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},Xf=()=>He(v0,QO),uD=e=>Ge(v0,e),JO=Symbol("DisabledContextKey"),qn=()=>He(JO,le(void 0)),eP=e=>{const t=qn();return Ge(JO,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},tP={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},dD={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"},fD=dD,pD={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nP=pD,gD={lang:m({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"]},fD),timePickerLocale:m({},nP)},Js=gD,eo="${label} is not a valid ${type}",hD={locale:"en",Pagination:tP,DatePicker:Js,TimePicker:nP,Calendar:Js,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",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"},PageHeader:{back:"Back"},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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},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"}},jn=hD,bi=oe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=He("localeData",{}),r=P(()=>{const{componentName:i="global",defaultLocale:a}=e,s=a||jn[i||"global"],{antLocale:c}=o,u=i&&c?c[i]:{};return m(m({},typeof s=="function"?s():s),u||{})}),l=P(()=>{const{antLocale:i}=o,a=i&&i.locale;return i&&i.exist&&!a?jn.locale:a});return()=>{const i=e.children||n.default,{antLocale:a}=o;return i==null?void 0:i(r.value,l.value,a)}}});function Io(e,t,n){const o=He("localeData",{});return[P(()=>{const{antLocale:l}=o,i=$t(t)||jn[e||"global"],a=e&&l?l[e]:{};return m(m(m({},typeof i=="function"?i():i),a||{}),$t(n)||{})})]}function m0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const S$="%";class vD{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(S$):t)||null}update(t,n){const o=Array.isArray(t)?t.join(S$):t,r=this.cache.get(o),l=n(r);l===null?this.cache.delete(o):this.cache.set(o,l)}}const mD=vD,b0="data-token-hash",pl="data-css-hash",Ui="__cssinjs_instance__";function $a(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${pl}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[Ui]=r[Ui]||e,r[Ui]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${pl}]`)).forEach(r=>{var l;const i=r.getAttribute(pl);o[i]?r[Ui]===e&&((l=r.parentNode)===null||l===void 0||l.removeChild(r)):o[i]=!0})}return new mD(e)}const oP=Symbol("StyleContextKey"),bD=()=>{var e,t,n;const o=pn();let r;if(o&&o.appContext){const l=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=$a(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=$a();return r},rP={cache:$a(),defaultCache:!0,hashPriority:"low"},Oc=()=>{const e=bD();return He(oP,te(m(m({},rP),{cache:e})))},lP=e=>{const t=Oc(),n=te(m(m({},rP),{cache:$a()}));return be([()=>$t(e),t],()=>{const o=m({},t.value),r=$t(e);Object.keys(r).forEach(i=>{const a=r[i];r[i]!==void 0&&(o[i]=a)});const{cache:l}=r;o.cache=o.cache||$a(),o.defaultCache=!l&&t.value.defaultCache,n.value=o},{immediate:!0}),Ge(oP,n),n},yD=()=>({autoClear:Ce(),mock:Be(),cache:Re(),defaultCache:Ce(),hashPriority:Be(),container:Le(),ssrInline:Ce(),transformers:at(),linters:at()}),SD=Tt(oe({name:"AStyleProvider",inheritAttrs:!1,props:yD(),setup(e,t){let{slots:n}=t;return lP(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function iP(e,t,n,o){const r=Oc(),l=te(""),i=te();ke(()=>{l.value=[e,...t.value].join("%")});const a=s=>{r.value.cache.update(s,c=>{const[u=0,d]=c||[];return u-1===0?(o==null||o(d,!1),null):[u-1,d]})};return be(l,(s,c)=>{c&&a(c),r.value.cache.update(s,u=>{const[d=0,f]=u||[],v=f||n();return[d+1,v]}),i.value=r.value.cache.get(l.value)[1]},{immediate:!0}),Ze(()=>{a(l.value)}),i}function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rl(e,t){return e&&e.contains?e.contains(t):!1}const $$="data-vc-order",$D="vc-util-key",gv=new Map;function aP(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:$D}function Uf(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function CD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sP(e){return Array.from((gv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function cP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute($$,CD(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const l=Uf(t),{firstChild:i}=l;if(o){if(o==="queue"){const a=sP(l).filter(s=>["prepend","prependQueue"].includes(s.getAttribute($$)));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function uP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Uf(t);return sP(n).find(o=>o.getAttribute(aP(t))===e)}function Ad(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=uP(e,t);n&&Uf(t).removeChild(n)}function xD(e,t){const n=gv.get(e);if(!n||!rl(document,n)){const o=cP("",t),{parentNode:r}=o;gv.set(e,r),e.removeChild(o)}}function ec(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,l;const i=Uf(n);xD(i,n);const a=uP(t,n);if(a)return!((o=n.csp)===null||o===void 0)&&o.nonce&&a.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(a.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=cP(e,n);return s.setAttribute(aP(n),t),s}function wD(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var l;o?o=(l=o==null?void 0:o.map)===null||l===void 0?void 0:l.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ca.MAX_CACHE_SIZE+Ca.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((l,i)=>{const[,a]=l;return this.internalGet(i)[1]{if(l===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const i=o.get(r);i?i.map||(i.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const l=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),l}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!wD(n,t)),this.deleteByPath(this.cache,t)}}Ca.MAX_CACHE_SIZE=20;Ca.MAX_CACHE_OFFSET=5;let C$={};function OD(e,t){}function PD(e,t){}function dP(e,t,n){!t&&!C$[n]&&(e(!1,n),C$[n]=!0)}function Yf(e,t){dP(OD,e,t)}function ID(e,t){dP(PD,e,t)}function TD(){}let ED=TD;const It=ED;let x$=0;class y0{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=x$,t.length===0&&It(t.length>0),x$+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Mg=new Ca;function S0(e){const t=Array.isArray(e)?e:[e];return Mg.has(t)||Mg.set(t,new y0(t)),Mg.get(t)}const w$=new WeakMap;function Rd(e){let t=w$.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof y0?t+=o.id:o&&typeof o=="object"?t+=Rd(o):t+=o}),w$.set(e,t)),t}function MD(e,t){return m0(`${t}_${Rd(e)}`)}const ws=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),fP="_bAmBoO_";function _D(e,t,n){var o,r;if(Mn()){ec(e,ws);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",t==null||t(l),document.body.appendChild(l);const i=n?n(l):(o=getComputedStyle(l).content)===null||o===void 0?void 0:o.includes(fP);return(r=l.parentNode)===null||r===void 0||r.removeChild(l),Ad(ws),i}return!1}let _g;function AD(){return _g===void 0&&(_g=_D(`@layer ${ws} { .${ws} { content: "${fP}"!important; } }`,e=>{e.className=ws})),_g}const O$={},RD=!0,DD=!1,BD=!RD&&!DD?"css-dev-only-do-not-override":"css",Kl=new Map;function ND(e){Kl.set(e,(Kl.get(e)||0)+1)}function FD(e,t){typeof document<"u"&&document.querySelectorAll(`style[${b0}="${e}"]`).forEach(o=>{var r;o[Ui]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const LD=0;function kD(e,t){Kl.set(e,(Kl.get(e)||0)-1);const n=Array.from(Kl.keys()),o=n.filter(r=>(Kl.get(r)||0)<=0);n.length-o.length>LD&&o.forEach(r=>{FD(r,t),Kl.delete(r)})}const zD=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let l=m(m({},r),t);return o&&(l=o(l)),l};function pP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le({});const o=Oc(),r=P(()=>m({},...t.value)),l=P(()=>Rd(r.value)),i=P(()=>Rd(n.value.override||O$));return iP("token",P(()=>[n.value.salt||"",e.value.id,l.value,i.value]),()=>{const{salt:s="",override:c=O$,formatToken:u,getComputedToken:d}=n.value,f=d?d(r.value,c,e.value):zD(r.value,c,e.value,u),g=MD(f,s);f._tokenKey=g,ND(g);const v=`${BD}-${m0(g)}`;return f._hashId=v,[f,v]},s=>{var c;kD(s[0]._tokenKey,(c=o.value)===null||c===void 0?void 0:c.cache.instanceId)})}var gP={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},hP="comm",vP="rule",mP="decl",HD="@import",jD="@namespace",WD="@keyframes",VD="@layer",bP=Math.abs,$0=String.fromCharCode;function yP(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function KD(e,t,n){return e.indexOf(t,n)}function ra(e,t){return e.charCodeAt(t)|0}function xa(e,t,n){return e.slice(t,n)}function Jo(e){return e.length}function GD(e){return e.length}function Qc(e,t){return t.push(e),e}var qf=1,wa=1,SP=0,wo=0,on=0,Ra="";function C0(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:qf,column:wa,length:i,return:"",siblings:a}}function XD(){return on}function UD(){return on=wo>0?ra(Ra,--wo):0,wa--,on===10&&(wa=1,qf--),on}function Fo(){return on=wo2||tc(on)>3?"":" "}function QD(e,t){for(;--t&&Fo()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return Zf(e,Nu()+(t<6&&al()==32&&Fo()==32))}function hv(e){for(;Fo();)switch(on){case e:return wo;case 34:case 39:e!==34&&e!==39&&hv(on);break;case 40:e===41&&hv(e);break;case 92:Fo();break}return wo}function JD(e,t){for(;Fo()&&e+on!==47+10;)if(e+on===42+42&&al()===47)break;return"/*"+Zf(t,wo-1)+"*"+$0(e===47?e:Fo())}function e9(e){for(;!tc(al());)Fo();return Zf(e,wo)}function t9(e){return qD(Fu("",null,null,null,[""],e=YD(e),0,[0],e))}function Fu(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,f=0,g=0,v=0,h=1,b=1,y=1,S=0,$="",x=r,C=l,O=o,w=$;b;)switch(v=S,S=Fo()){case 40:if(v!=108&&ra(w,d-1)==58){KD(w+=Bu(Ag(S),"&","&\f"),"&\f",bP(c?a[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Ag(S);break;case 9:case 10:case 13:case 32:w+=ZD(v);break;case 92:w+=QD(Nu()-1,7);continue;case 47:switch(al()){case 42:case 47:Qc(n9(JD(Fo(),Nu()),t,n,s),s),(tc(v||1)==5||tc(al()||1)==5)&&Jo(w)&&xa(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:a[c++]=Jo(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:y==-1&&(w=Bu(w,/\f/g,"")),g>0&&(Jo(w)-d||h===0&&v===47)&&Qc(g>32?I$(w+";",o,n,d-1,s):I$(Bu(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(Qc(O=P$(w,t,n,c,u,r,a,$,x=[],C=[],d,l),l),S===123)if(u===0)Fu(w,t,O,O,x,l,d,a,C);else{switch(f){case 99:if(ra(w,3)===110)break;case 108:if(ra(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Fu(e,O,O,o&&Qc(P$(e,O,O,0,0,r,a,$,r,x=[],d,C),C),r,C,d,a,o?x:C):Fu(w,O,O,O,[""],C,0,a,C)}}c=u=g=0,h=y=1,$=w="",d=i;break;case 58:d=1+Jo(w),g=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&UD()==125)continue}switch(w+=$0(S),S*h){case 38:y=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Jo(w)-1)*y,y=1;break;case 64:al()===45&&(w+=Ag(Fo())),f=al(),u=d=Jo($=w+=e9(Nu())),S++;break;case 45:v===45&&Jo(w)==2&&(h=0)}}return l}function P$(e,t,n,o,r,l,i,a,s,c,u,d){for(var f=r-1,g=r===0?l:[""],v=GD(g),h=0,b=0,y=0;h0?g[S]+" "+$:Bu($,/&\f/g,g[S])))&&(s[y++]=x);return C0(e,t,n,r===0?vP:a,s,c,u,d)}function n9(e,t,n,o){return C0(e,t,n,hP,$0(XD()),xa(e,2,-2),0,o)}function I$(e,t,n,o,r){return C0(e,t,n,mP,xa(e,0,o),xa(e,o+1,-1),o,r)}function vv(e,t){for(var n="",o=0;o ")}`:""}`)}function r9(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(r=>r).length>1}function l9(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const i9=(e,t,n)=>{const r=l9(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(r9)&&Yi("Concat ':not' selector not support in legacy browsers.",n)},a9=i9,s9=(e,t,n)=>{switch(e){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":Yi(`You seem to be using non-logical property '${e}' 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.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const o=t.split(" ").map(r=>r.trim());o.length===4&&o[1]!==o[3]&&Yi(`You seem to be using '${e}' property with different left ${e} and right ${e}, 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.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(l=>l.trim()).reduce((l,i)=>{if(l)return l;const a=i.split(" ").map(s=>s.trim());return a.length>=2&&a[0]!==a[1]||a.length===3&&a[1]!==a[2]||a.length===4&&a[2]!==a[3]?!0:l},!1)&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return}},c9=s9,u9=(e,t,n)=>{n.parentSelectors.some(o=>o.split(",").some(l=>l.split("&").length>2))&&Yi("Should not use more than one `&` in a selector.",n)},d9=u9,Os="data-ant-cssinjs-cache-path",f9="_FILE_STYLE__";function p9(e){return Object.keys(e).map(t=>{const n=e[t];return`${t}:${n}`}).join(";")}let ti,$P=!0;function g9(){var e;if(!ti&&(ti={},Mn())){const t=document.createElement("div");t.className=Os,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(r=>{const[l,i]=r.split(":");ti[l]=i});const o=document.querySelector(`style[${Os}]`);o&&($P=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function h9(e){return g9(),!!ti[e]}function v9(e){const t=ti[e];let n=null;if(t&&Mn())if($P)n=f9;else{const o=document.querySelector(`style[${pl}="${ti[e]}"]`);o?n=o.innerHTML:delete ti[e]}return[n,t]}const T$=Mn(),m9="_skip_check_",CP="_multi_value_";function mv(e){return vv(t9(e),o9).replace(/\{%%%\:[^;];}/g,";")}function b9(e){return typeof e=="object"&&e&&(m9 in e||CP in e)}function y9(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(i=>{var a;const s=i.trim().split(/\s+/);let c=s[0]||"";const u=((a=c.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const E$=new Set,bv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",f={};function g(b){const y=b.getName(l);if(!f[y]){const[S]=bv(b.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${b.getName(l)}${S}`}}function v(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?v(S,y):S&&y.push(S)}),y}if(v(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} -`;else if(y._keyframe)g(y);else{const S=c.reduce(($,x)=>{var C;return((C=x==null?void 0:x.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!b9(C)){let O=!1,w=$.trim(),I=!1;(n||o)&&l?w.startsWith("@")?O=!0:w=y9($,l,s):n&&!l&&(w==="&"||w==="")&&(w="",I=!0);const[T,_]=bv(C,t,{root:I,injectHash:O,parentSelectors:[...r,w]});f=m(m({},f),_),d+=`${w}${T}`}else{let O=function(I,T){const _=I.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let E=T;!gP[I]&&typeof E=="number"&&E!==0&&(E=`${E}px`),I==="animationName"&&(T!=null&&T._keyframe)&&(g(T),E=T.getName(l)),d+=`${_}:${E};`};const w=(x=C==null?void 0:C.value)!==null&&x!==void 0?x:C;typeof C=="object"&&(C!=null&&C[CP])&&Array.isArray(w)?w.forEach(I=>{O($,I)}):O($,w)}})}}),!n)d=`{${d}}`;else if(i&&AD()){const b=i.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}return[d,f]};function S9(e,t){return m0(`${e.join("%")}${t}`)}function Dd(e,t){const n=Oc(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let l=T$;return iP("style",r,()=>{const{path:i,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,f=r.value.join("|");if(h9(f)){const[w,I]=v9(f);if(w)return[w,o.value,I,{},u,d]}const g=t(),{hashPriority:v,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=bv(g,{hashId:a,hashPriority:v,layer:s,path:i.join("-"),transformers:b,linters:y}),C=mv($),O=S9(r.value,C);if(l){const w={mark:pl,prepend:"queue",attachTo:h,priority:d},I=typeof c=="function"?c():c;I&&(w.csp={nonce:I});const T=ec(C,O,w);T[Ui]=S.instanceId,T.setAttribute(b0,o.value),Object.keys(x).forEach(_=>{E$.has(_)||(E$.add(_),ec(mv(x[_]),`_effect-${_}`,{mark:pl,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,u,d]},(i,a)=>{let[,,s]=i;(a||n.value.autoClear)&&T$&&Ad(s,{mark:pl})}),i=>i}function $9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n="style%",o=Array.from(e.cache.keys()).filter(c=>c.startsWith(n)),r={},l={};let i="";function a(c,u,d){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const g=m(m({},f),{[b0]:u,[pl]:d}),v=Object.keys(g).map(h=>{const b=g[h];return b?`${h}="${b}"`:null}).filter(h=>h).join(" ");return t?c:``}return o.map(c=>{const u=c.slice(n.length).replace(/%/g,"|"),[d,f,g,v,h,b]=e.cache.get(c)[1];if(h)return null;const y={"data-vc-order":"prependQueue","data-vc-priority":`${b}`};let S=a(d,f,g,y);return l[u]=g,v&&Object.keys(v).forEach(x=>{r[x]||(r[x]=!0,S+=a(mv(v[x]),f,`_effect-${x}`,y))}),[b,S]}).filter(c=>c).sort((c,u)=>c[0]-u[0]).forEach(c=>{let[,u]=c;i+=u}),i+=a(`.${Os}{content:"${p9(l)}";}`,void 0,void 0,{[Os]:Os}),i}class C9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const nt=C9;function x9(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce((r,l)=>(l.includes("(")?(n+=l,o+=l.split("(").length-1):l.includes(")")?(n+=` ${l}`,o-=l.split(")").length-1,o===0&&(r.push(n),n="")):o>0?n+=` ${l}`:r.push(l),r),[])}function Ai(e){return e.notSplit=!0,e}const w9={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:Ai(["borderTop","borderBottom"]),borderBlockStart:Ai(["borderTop"]),borderBlockEnd:Ai(["borderBottom"]),borderInline:Ai(["borderLeft","borderRight"]),borderInlineStart:Ai(["borderLeft"]),borderInlineEnd:Ai(["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 Jc(e){return{_skip_check_:!0,value:e}}const O9={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const o=e[n],r=w9[n];if(r&&(typeof o=="number"||typeof o=="string")){const l=x9(o);r.length&&r.notSplit?r.forEach(i=>{t[i]=Jc(o)}):r.length===1?t[r[0]]=Jc(o):r.length===2?r.forEach((i,a)=>{var s;t[i]=Jc((s=l[a])!==null&&s!==void 0?s:l[0])}):r.length===4?r.forEach((i,a)=>{var s,c;t[i]=Jc((c=(s=l[a])!==null&&s!==void 0?s:l[a-2])!==null&&c!==void 0?c:l[0])}):t[n]=o}else t[n]=o}),t}},P9=O9,Rg=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function I9(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}const T9=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(i,a)=>{if(!a)return i;const s=parseFloat(a);return s<=1?i:`${I9(s/t,n)}rem`};return{visit:i=>{const a=m({},i);return Object.entries(i).forEach(s=>{let[c,u]=s;if(typeof u=="string"&&u.includes("px")){const f=u.replace(Rg,r);a[c]=f}!gP[c]&&typeof u=="number"&&u!==0&&(a[c]=`${u}px`.replace(Rg,r));const d=c.trim();if(d.startsWith("@")&&d.includes("px")&&o){const f=c.replace(Rg,r);a[f]=a[c],delete a[c]}}),a}}},E9=T9,M9={Theme:y0,createTheme:S0,useStyleRegister:Dd,useCacheToken:pP,createCache:$a,useStyleInject:Oc,useStyleProvider:lP,Keyframes:nt,extractStyle:$9,legacyLogicalPropertiesTransformer:P9,px2remTransformer:E9,logicalPropertiesLinter:c9,legacyNotSelectorLinter:a9,parentSelectorLinter:d9,StyleProvider:SD},_9=M9,xP="4.2.6",nc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){A9(e)&&(e="100%");var n=R9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function eu(e){return Math.min(1,Math.max(0,e))}function A9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function R9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ql(e){return e.length===1?"0"+e:String(e)}function D9(e,t,n){return{r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function M$(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function B9(e,t,n){var o,r,l;if(e=Sn(e,360),t=Sn(t,100),n=Sn(n,100),t===0)r=n,l=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=Dg(a,i,e+1/3),r=Dg(a,i,e),l=Dg(a,i,e-1/3)}return{r:o*255,g:r*255,b:l*255}}function yv(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=o===0?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var $v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ji(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,l=null,i=!1,a=!1;return typeof e=="string"&&(e=j9(e)),typeof e=="object"&&(pr(e.r)&&pr(e.g)&&pr(e.b)?(t=D9(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):pr(e.h)&&pr(e.s)&&pr(e.v)?(o=tu(e.s),r=tu(e.v),t=N9(e.h,o,r),i=!0,a="hsv"):pr(e.h)&&pr(e.s)&&pr(e.l)&&(o=tu(e.s),l=tu(e.l),t=B9(e.h,o,l),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=wP(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var z9="[-\\+]?\\d+%?",H9="[-\\+]?\\d*\\.\\d+%?",sl="(?:".concat(H9,")|(?:").concat(z9,")"),Bg="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ng="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ao={CSS_UNIT:new RegExp(sl),rgb:new RegExp("rgb"+Bg),rgba:new RegExp("rgba"+Ng),hsl:new RegExp("hsl"+Bg),hsla:new RegExp("hsla"+Ng),hsv:new RegExp("hsv"+Bg),hsva:new RegExp("hsva"+Ng),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 j9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($v[e])e=$v[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ao.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ao.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ao.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ao.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ao.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ao.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ao.hex8.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),a:_$(n[4]),format:t?"name":"hex8"}:(n=Ao.hex6.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),format:t?"name":"hex"}:(n=Ao.hex4.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),a:_$(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ao.hex3.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function pr(e){return!!Ao.CSS_UNIT.exec(String(e))}var gt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=k9(t)),this.originalInput=t;var r=ji(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,l=t.r/255,i=t.g/255,a=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=wP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=yv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=yv(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M$(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),F9(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Sn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Sn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Sv(this.r,this.g,this.b,!1),n=0,o=Object.entries($v);n=0,l=!n&&r&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=eu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=eu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=eu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=eu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100,i={r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-nu*t:Math.round(e.h)+nu*t:o=n?Math.round(e.h)+nu*t:Math.round(e.h)-nu*t,o<0?o+=360:o>=360&&(o-=360),o}function B$(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-A$*t:t===PP?o=e.s+A$:o=e.s+W9*t,o>1&&(o=1),n&&t===OP&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function N$(e,t,n){var o;return n?o=e.v+V9*t:o=e.v-K9*t,o>1&&(o=1),Number(o.toFixed(2))}function ci(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ji(e),r=OP;r>0;r-=1){var l=R$(o),i=ou(ji({h:D$(l,r,!0),s:B$(l,r,!0),v:N$(l,r,!0)}));n.push(i)}n.push(ou(o));for(var a=1;a<=PP;a+=1){var s=R$(o),c=ou(ji({h:D$(s,a),s:B$(s,a),v:N$(s,a)}));n.push(c)}return t.theme==="dark"?G9.map(function(u){var d=u.index,f=u.opacity,g=ou(X9(ji(t.backgroundColor||"#141414"),ji(n[d]),f*100));return g}):n}var la={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"},Ps={},Fg={};Object.keys(la).forEach(function(e){Ps[e]=ci(la[e]),Ps[e].primary=Ps[e][5],Fg[e]=ci(la[e],{theme:"dark",backgroundColor:"#141414"}),Fg[e].primary=Fg[e][5]});var U9=Ps.gold,Y9=Ps.blue;const q9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Z9=q9;function Q9(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const IP={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"},J9=m(m({},IP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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'`,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}),Qf=J9;function eB(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(r),g=n(l),v=n(i),h=n(a),b=o(c,u);return m(m({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new gt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const tB=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}},nB=tB;function oB(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return m({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},nB(o))}const gr=(e,t)=>new gt(e).setAlpha(t).toRgbString(),es=(e,t)=>new gt(e).darken(t).toHexString(),rB=e=>{const t=ci(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},lB=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:gr(o,.88),colorTextSecondary:gr(o,.65),colorTextTertiary:gr(o,.45),colorTextQuaternary:gr(o,.25),colorFill:gr(o,.15),colorFillSecondary:gr(o,.06),colorFillTertiary:gr(o,.04),colorFillQuaternary:gr(o,.02),colorBgLayout:es(n,4),colorBgContainer:es(n,0),colorBgElevated:es(n,0),colorBgSpotlight:gr(o,.85),colorBorder:es(n,15),colorBorderSecondary:es(n,6)}};function iB(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,l=e*Math.pow(2.71828,r/5),i=o>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const aB=e=>{const t=iB(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},sB=aB;function cB(e){const t=Object.keys(IP).map(n=>{const o=ci(e[n]);return new Array(10).fill(1).reduce((r,l,i)=>(r[`${n}-${i+1}`]=o[i],r),{})}).reduce((n,o)=>(n=m(m({},n),o),n),{});return m(m(m(m(m(m(m({},e),t),eB(e,{generateColorPalettes:rB,generateNeutralColorPalettes:lB})),sB(e.fontSize)),Q9(e)),Z9(e)),oB(e))}function Lg(e){return e>=0&&e<=255}function ru(e,t){const{r:n,g:o,b:r,a:l}=new gt(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((o-a*(1-c))/c),f=Math.round((r-s*(1-c))/c);if(Lg(u)&&Lg(d)&&Lg(f))return new gt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new gt({r:n,g:o,b:r,a:1}).toRgbString()}var uB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[g]});const r=m(m({},n),o),l=480,i=576,a=768,s=992,c=1200,u=1600,d=2e3;return m(m(m({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ru(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ru(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ru(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ru(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` - 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) - `,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:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` - 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new gt("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)"}),o)}const Jf=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),x0=(e,t,n,o,r)=>{const l=e/2,i=0,a=l,s=n*1/Math.sqrt(2),c=l-n*(1-1/Math.sqrt(2)),u=l-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*l-u,g=d,v=2*l-s,h=c,b=2*l-i,y=a,S=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*l-$}px 100%, ${$}px 100%)`,`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Bd(e,t){return nc.reduce((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return m(m({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))},{})}const Gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xe=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),yi=()=>({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"}}),zo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fB=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pB=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ar=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rr=e=>({"&:focus-visible":m({},Ar(e))});function Ve(e,t,n){return o=>{const r=P(()=>o==null?void 0:o.value),[l,i,a]=Fr(),{getPrefixCls:s,iconPrefixCls:c}=Xf(),u=P(()=>s()),d=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:["Shared",u.value]}));Dd(d,()=>[{"&":fB(i.value)}]);const f=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:[e,r.value,c.value]}));return[Dd(f,()=>{const{token:g,flush:v}=hB(i.value),h=typeof n=="function"?n(g):n,b=m(m({},h),i.value[e]),y=`.${r.value}`,S=Fe(g,{componentCls:y,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},b),$=t(S,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:i.value[e]});return v(e,b),[pB(i.value,r.value),$]}),a]}}const TP=typeof CSSINJS_STATISTIC<"u";let Cv=!0;function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(i=>{Object.defineProperty(o,i,{configurable:!0,enumerable:!0,get:()=>r[i]})})}),Cv=!0,o}function gB(){}function hB(e){let t,n=e,o=gB;return TP&&(t=new Set,n=new Proxy(e,{get(r,l){return Cv&&t.add(l),r[l]}}),o=(r,l)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const vB=S0(cB),EP={token:Qf,hashed:!0},MP=Symbol("DesignTokenContext"),xv=te(),mB=e=>{Ge(MP,e),be(e,()=>{xv.value=$t(e),$3(xv)},{immediate:!0,deep:!0})},bB=oe({props:{value:Re()},setup(e,t){let{slots:n}=t;return mB(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Fr(){const e=He(MP,P(()=>xv.value||EP)),t=P(()=>`${xP}-${e.value.hashed||""}`),n=P(()=>e.value.theme||vB),o=pP(n,P(()=>[Qf,e.value.token]),P(()=>({salt:t.value,override:m({override:e.value.token},e.value.components),formatToken:dB})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const _P=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>new gt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(24 31.67)"},[p("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p("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"},null),p("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)"},null),p("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"},null),p("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"},null)]),p("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"},null),p("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});_P.PRESENTED_IMAGE_DEFAULT=!0;const AP=_P,RP=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:l}=e.value;return{borderColor:new gt(n).onBackground(l).toHexString(),shadowColor:new gt(o).onBackground(l).toHexString(),contentColor:new gt(r).onBackground(l).toHexString()}});return()=>p("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[p("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"},null),p("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:t.value.contentColor},null)])])])}});RP.PRESENTED_IMAGE_SIMPLE=!0;const yB=RP,SB=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$B=Ve("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=Fe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[SB(o)]});var CB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:Re(),image:St(),description:St()}),w0=oe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:xB(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=Te("empty",e),[i,a]=$B(l);return()=>{var s,c;const u=l.value,d=m(m({},e),o),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||_r(AP),description:g=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:v,class:h=""}=d,b=CB(d,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return i(p(bi,{componentName:"Empty",children:$=>{const x=typeof g<"u"?g:$.description,C=typeof x=="string"?x:"empty";let O=null;return typeof y=="string"?O=p("img",{alt:C,src:y},null):O=y,p("div",D({class:ie(u,h,a.value,{[`${u}-normal`]:S,[`${u}-rtl`]:r.value==="rtl"})},b),[p("div",{class:`${u}-image`,style:v},[O]),x&&p("p",{class:`${u}-description`},[x]),n.default&&p("div",{class:`${u}-footer`},[_t(n.default())])])}},null))}}});w0.PRESENTED_IMAGE_DEFAULT=()=>_r(AP);w0.PRESENTED_IMAGE_SIMPLE=()=>_r(yB);const ll=Tt(w0),O0=e=>{const{prefixCls:t}=Te("empty",e);return(o=>{switch(o){case"Table":case"List":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return p(ll,null,null)}})(e.componentName)};function wB(e){return p(O0,{componentName:e},null)}const DP=Symbol("SizeContextKey"),BP=()=>He(DP,le(void 0)),NP=e=>{const t=BP();return Ge(DP,P(()=>e.value||t.value)),e},Te=(e,t)=>{const n=BP(),o=qn(),r=He(v0,m(m({},QO),{renderEmpty:w=>_r(O0,{componentName:w})})),l=P(()=>r.getPrefixCls(e,t.prefixCls)),i=P(()=>{var w,I;return(w=t.direction)!==null&&w!==void 0?w:(I=r.direction)===null||I===void 0?void 0:I.value}),a=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),c=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),u=r.renderEmpty,d=r.space,f=r.pageHeader,g=r.form,v=P(()=>{var w,I;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(I=r.getTargetContainer)===null||I===void 0?void 0:I.value}),h=P(()=>{var w,I,T;return(I=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&I!==void 0?I:(T=r.getPopupContainer)===null||T===void 0?void 0:T.value}),b=P(()=>{var w,I;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,I,T;return(w=t.autocomplete)!==null&&w!==void 0?w:(T=(I=r.input)===null||I===void 0?void 0:I.value)===null||T===void 0?void 0:T.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,I;return(w=t.wave)!==null&&w!==void 0?w:(I=r.wave)===null||I===void 0?void 0:I.value});return{configProvider:r,prefixCls:l,direction:i,size:S,getTargetContainer:v,getPopupContainer:h,space:d,pageHeader:f,form:g,autoInsertSpaceInButton:c,renderEmpty:u,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:a,disabled:x,select:r.select,wave:O}};function et(e,t){const n=m({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},PB=Ve("Affix",e=>{const t=Fe(e,{zIndexPopup:e.zIndexBase+10});return[OB(t)]});function IB(){return typeof window<"u"?window:null}var qi;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(qi||(qi={}));const TB=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:IB},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),EB=oe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:TB(),setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=te(),a=te(),s=ut({affixStyle:void 0,placeholderStyle:void 0,status:qi.None,lastAffix:!1,prevTarget:null,timeout:null}),c=pn(),u=P(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=P(()=>e.offsetBottom),f=()=>{const{status:$,lastAffix:x}=s,{target:C}=e;if($!==qi.Prepare||!a.value||!i.value||!C)return;const O=C();if(!O)return;const w={status:qi.None},I=Zc(i.value);if(I.top===0&&I.left===0&&I.width===0&&I.height===0)return;const T=Zc(O),_=v$(I,T,u.value),E=m$(I,T,d.value);if(!(I.top===0&&I.left===0&&I.width===0&&I.height===0)){if(_!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",top:_,width:A,height:R},w.placeholderStyle={width:A,height:R}}else if(E!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",bottom:E,width:A,height:R},w.placeholderStyle={width:A,height:R}}w.lastAffix=!!w.affixStyle,x!==w.lastAffix&&o("change",w.lastAffix),m(s,w)}},g=()=>{m(s,{status:qi.Prepare,affixStyle:void 0,placeholderStyle:void 0})},v=pv(()=>{g()}),h=pv(()=>{const{target:$}=e,{affixStyle:x}=s;if($&&x){const C=$();if(C&&i.value){const O=Zc(C),w=Zc(i.value),I=v$(w,O,u.value),T=m$(w,O,d.value);if(I!==void 0&&x.top===I||T!==void 0&&x.bottom===T)return}}g()});r({updatePosition:v,lazyUpdatePosition:h}),be(()=>e.target,$=>{const x=($==null?void 0:$())||null;s.prevTarget!==x&&(y$(c),x&&(b$(x,c),v()),s.prevTarget=x)}),be(()=>[e.offsetTop,e.offsetBottom],v),je(()=>{const{target:$}=e;$&&(s.timeout=setTimeout(()=>{b$($(),c),v()}))}),An(()=>{f()}),Rn(()=>{clearTimeout(s.timeout),y$(c),v.cancel(),h.cancel()});const{prefixCls:b}=Te("affix",e),[y,S]=PB(b);return()=>{var $;const{affixStyle:x,placeholderStyle:C,status:O}=s,w=ie({[b.value]:x,[S.value]:!0}),I=et(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return y(p(xo,{onResize:v},{default:()=>[p("div",D(D(D({},I),l),{},{ref:i,"data-measure-status":O}),[x&&p("div",{style:C,"aria-hidden":"true"},null),p("div",{class:w,ref:a,style:x},[($=n.default)===null||$===void 0?void 0:$.call(n)])])]}))}}}),FP=Tt(EB);function F$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function L$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function kg(e,t){if(e.clientHeightt||l>e&&i=t&&a>=n?l-e-o:i>t&&an?i-t+r:0}var k$=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s=typeof i=="function"?i:function(X){return X!==i};if(!F$(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],g=e;F$(g)&&s(g);){if((g=(u=(c=g).parentElement)==null?c.getRootNode().host||null:u)===d){f.push(g);break}g!=null&&g===document.body&&kg(g)&&!kg(document.documentElement)||g!=null&&kg(g,a)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,I=S.left,T=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,_=l==="center"?I+x/2:l==="end"?O:I,E=[],A=0;A=0&&I>=0&&w<=h&&O<=v&&C>=N&&w<=L&&I>=k&&O<=F)return E;var j=getComputedStyle(R),H=parseInt(j.borderLeftWidth,10),Y=parseInt(j.borderTopWidth,10),Z=parseInt(j.borderRightWidth,10),U=parseInt(j.borderBottomWidth,10),ee=0,G=0,J="offsetWidth"in R?R.offsetWidth-R.clientWidth-H-Z:0,Q="offsetHeight"in R?R.offsetHeight-R.clientHeight-Y-U:0,K="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,q="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(d===R)ee=r==="start"?T:r==="end"?T-h:r==="nearest"?lu(y,y+h,h,Y,U,y+T,y+T+$,$):T-h/2,G=l==="start"?_:l==="center"?_-v/2:l==="end"?_-v:lu(b,b+v,v,H,Z,b+_,b+_+x,x),ee=Math.max(0,ee+y),G=Math.max(0,G+b);else{ee=r==="start"?T-N-Y:r==="end"?T-L+U+Q:r==="nearest"?lu(N,L,M,Y,U+Q,T,T+$,$):T-(N+M/2)+Q/2,G=l==="start"?_-k-H:l==="center"?_-(k+B/2)+J/2:l==="end"?_-F+Z+J:lu(k,F,B,H,Z+J,_,_+x,x);var pe=R.scrollLeft,W=R.scrollTop;T+=W-(ee=Math.max(0,Math.min(W+ee/q,R.scrollHeight-M/q+Q))),_+=pe-(G=Math.max(0,Math.min(pe+G/K,R.scrollWidth-B/K+J)))}E.push({el:R,top:ee,left:G})}return E};function LP(e){return e===Object(e)&&Object.keys(e).length!==0}function MB(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,l=o.top,i=o.left;r.scroll&&n?r.scroll({top:l,left:i,behavior:t}):(r.scrollTop=l,r.scrollLeft=i)})}function _B(e){return e===!1?{block:"end",inline:"nearest"}:LP(e)?e:{block:"start",inline:"nearest"}}function kP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(LP(t)&&typeof t.behavior=="function")return t.behavior(n?k$(e,t):[]);if(n){var o=_B(t);return MB(k$(e,o),o.behavior)}}function AB(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function wv(e){return e!=null&&e===e.window}function P0(e,t){var n,o;if(typeof window>"u")return 0;const r=t?"scrollTop":"scrollLeft";let l=0;return wv(e)?l=e[t?"scrollY":"scrollX"]:e instanceof Document?l=e.documentElement[r]:(e instanceof HTMLElement||e)&&(l=e[r]),e&&!wv(e)&&typeof l!="number"&&(l=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),l}function I0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,l=n(),i=P0(l,!0),a=Date.now(),s=()=>{const u=Date.now()-a,d=AB(u>r?r:u,i,e,r);wv(l)?l.scrollTo(window.scrollX,d):l instanceof Document?l.documentElement.scrollTop=d:l.scrollTop=d,u{Ge(zP,e)},DB=()=>He(zP,{registerLink:iu,unregisterLink:iu,scrollTo:iu,activeLink:P(()=>""),handleClick:iu,direction:P(()=>"vertical")}),BB=RB,NB=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:l,lineType:i,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:m(m({},Xe(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":m(m({},Gt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${i} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},FB=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},LB=Ve("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,l=Fe(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[NB(l),FB(l)]}),kB=()=>({prefixCls:String,href:String,title:St(),target:String,customTitleProps:Re()}),T0=oe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:qe(kB(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:l,scrollTo:i,unregisterLink:a,registerLink:s,activeLink:c}=DB(),{prefixCls:u}=Te("anchor",e),d=f=>{const{href:g}=e;l(f,{title:r,href:g}),i(g)};return be(()=>e.href,(f,g)=>{ot(()=>{a(g),s(f)})}),je(()=>{s(e.href)}),Ze(()=>{a(e.href)}),()=>{var f;const{href:g,target:v,title:h=n.title,customTitleProps:b={}}=e,y=u.value;r=typeof h=="function"?h(b):h;const S=c.value===g,$=ie(`${y}-link`,{[`${y}-link-active`]:S},o.class),x=ie(`${y}-link-title`,{[`${y}-link-title-active`]:S});return p("div",D(D({},o),{},{class:$}),[p("a",{class:x,href:g,title:typeof r=="string"?r:"",target:v,onClick:d},[n.customTitle?n.customTitle(b):r]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function z$(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function H$(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var VP=Object.prototype,KP=VP.toString,zB=VP.hasOwnProperty,GP=/^\s*function (\w+)/;function j$(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(GP);return o?o[1]:""}return""}var ui=function(e){var t,n;return H$(e)!==!1&&typeof(t=e.constructor)=="function"&&H$(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},HB=function(e){return e},Ln=HB,oc=function(e,t){return zB.call(e,t)},jB=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Oa=Array.isArray||function(e){return KP.call(e)==="[object Array]"},Pa=function(e){return KP.call(e)==="[object Function]"},Nd=function(e){return ui(e)&&oc(e,"_vueTypes_name")},XP=function(e){return ui(e)&&(oc(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return oc(e,t)}))};function E0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Si(e,t,n){var o;n===void 0&&(n=!1);var r=!0,l="";o=ui(e)?e:{type:e};var i=Nd(o)?o._vueTypes_name+" - ":"";if(XP(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Oa(o.type)?(r=o.type.some(function(d){return Si(d,t,!0)===!0}),l=o.type.map(function(d){return j$(d)}).join(" or ")):r=(l=j$(o))==="Array"?Oa(t):l==="Object"?ui(t):l==="String"||l==="Number"||l==="Boolean"||l==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(GP);return f?f[1]:""}(t)===l:t instanceof o.type}if(!r){var a=i+'value "'+t+'" should be of type "'+l+'"';return n===!1?(Ln(a),!1):a}if(oc(o,"validator")&&Pa(o.validator)){var s=Ln,c=[];if(Ln=function(d){c.push(d)},r=o.validator(t),Ln=s,!r){var u=(c.length>1?"* ":"")+c.join(` -* `);return c.length=0,n===!1?(Ln(u),r):u}}return r}function ao(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?Pa(r)||Si(this,r,!0)===!0?(this.default=Oa(r)?function(){return[].concat(r)}:ui(r)?function(){return Object.assign({},r)}:r,this):(Ln(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return Pa(o)&&(n.validator=E0(o,n)),n}function ar(e,t){var n=ao(e,t);return Object.defineProperty(n,"validate",{value:function(o){return Pa(this.validator)&&Ln(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=E0(o,this),this}})}function W$(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(d){r[d]=Object.getOwnPropertyDescriptor(o,d)}),Object.defineProperties({},r));if(l._vueTypes_name=e,!ui(n))return l;var i,a,s=n.validator,c=WP(n,["validator"]);if(Pa(s)){var u=l.validator;u&&(u=(a=(i=u).__original)!==null&&a!==void 0?a:i),l.validator=E0(u?function(d){return u.call(this,d)&&s.call(this,d)}:s,l)}return Object.assign(l,c)}function ep(e){return e.replace(/^(?!\s*$)/gm," ")}var WB=function(){return ar("any",{})},VB=function(){return ar("function",{type:Function})},KB=function(){return ar("boolean",{type:Boolean})},GB=function(){return ar("string",{type:String})},XB=function(){return ar("number",{type:Number})},UB=function(){return ar("array",{type:Array})},YB=function(){return ar("object",{type:Object})},qB=function(){return ao("integer",{type:Number,validator:function(e){return jB(e)}})},ZB=function(){return ao("symbol",{validator:function(e){return typeof e=="symbol"}})};function QB(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ao(e.name||"<>",{validator:function(n){var o=e(n);return o||Ln(this._vueTypes_name+" - "+t),o}})}function JB(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var l=r.constructor;o.indexOf(l)===-1&&o.push(l)}return o},[]);return ao("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||Ln(t),r}})}function eN(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(s){return i.indexOf(s)===-1})){var a=n.filter(function(s){return i.indexOf(s)===-1});return Ln(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every(function(s){if(t.indexOf(s)===-1)return l._vueTypes_isLoose===!0||(Ln('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Si(e[s],r[s],!0);return typeof c=="string"&&Ln('shape - "'+s+`" property validation error: - `+ep(c)),c===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var Yo=function(){function e(){}return e.extend=function(t){var n=this;if(Oa(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,l=r!==void 0&&r,i=t.getter,a=i!==void 0&&i,s=WP(t,["name","validate","getter"]);if(oc(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,u=s.type;return Nd(u)?(delete s.type,Object.defineProperty(this,o,a?{get:function(){return W$(o,u,s)}}:{value:function(){var d,f=W$(o,u,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(c=a?{get:function(){var d=Object.assign({},s);return l?ar(o,d):ao(o,d)},enumerable:!0}:{value:function(){var d,f,g=Object.assign({},s);return d=l?ar(o,g):ao(o,g),g.validator&&(d.validator=(f=g.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,c))},HP(e,null,[{key:"any",get:function(){return WB()}},{key:"func",get:function(){return VB().def(this.defaults.func)}},{key:"bool",get:function(){return KB().def(this.defaults.bool)}},{key:"string",get:function(){return GB().def(this.defaults.string)}},{key:"number",get:function(){return XB().def(this.defaults.number)}},{key:"array",get:function(){return UB().def(this.defaults.array)}},{key:"object",get:function(){return YB().def(this.defaults.object)}},{key:"integer",get:function(){return qB().def(this.defaults.integer)}},{key:"symbol",get:function(){return ZB()}}]),e}();function UP(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function o(){return n.apply(this,arguments)||this}return jP(o,n),HP(o,null,[{key:"sensibleDefaults",get:function(){return Lu({},this.defaults)},set:function(r){this.defaults=r!==!1?Lu({},r!==!0?r:e):{}}}]),o}(Yo)).defaults=Lu({},e),t}Yo.defaults={},Yo.custom=QB,Yo.oneOf=JB,Yo.instanceOf=nN,Yo.oneOfType=eN,Yo.arrayOf=tN,Yo.objectOf=oN,Yo.shape=rN,Yo.utils={validate:function(e,t){return Si(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?ar(e,t):ao(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return jP(t,e),t})(UP());const YP=UP({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});YP.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function qP(e){return e.default=void 0,e}const V=YP,xt=(e,t,n)=>{Yf(e,`[ant-design-vue: ${t}] ${n}`)};function lN(){return window}function V$(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const K$=/#([\S ]+)$/,iN=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:at(),direction:V.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Gl=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:iN(),setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{prefixCls:i,getTargetContainer:a,direction:s}=Te("anchor",e),c=P(()=>{var w;return(w=e.direction)!==null&&w!==void 0?w:"vertical"}),u=le(null),d=le(),f=ut({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=le(null),v=P(()=>{const{getContainer:w}=e;return w||(a==null?void 0:a.value)||lN}),h=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const T=[],_=v.value();return f.links.forEach(E=>{const A=K$.exec(E.toString());if(!A)return;const R=document.getElementById(A[1]);if(R){const z=V$(R,_);zR.top>A.top?R:A).link:""},b=w=>{const{getCurrentAnchor:I}=e;g.value!==w&&(g.value=typeof I=="function"?I(w):w,n("change",w))},y=w=>{const{offsetTop:I,targetOffset:T}=e;b(w);const _=K$.exec(w);if(!_)return;const E=document.getElementById(_[1]);if(!E)return;const A=v.value(),R=P0(A,!0),z=V$(E,A);let M=R+z;M-=T!==void 0?T:I||0,f.animating=!0,I0(M,{callback:()=>{f.animating=!1},getContainer:v.value})};l({scrollTo:y});const S=()=>{if(f.animating)return;const{offsetTop:w,bounds:I,targetOffset:T}=e,_=h(T!==void 0?T:w||0,I);b(_)},$=()=>{const w=d.value.querySelector(`.${i.value}-link-title-active`);if(w&&u.value){const I=c.value==="horizontal";u.value.style.top=I?"":`${w.offsetTop+w.clientHeight/2}px`,u.value.style.height=I?"":`${w.clientHeight}px`,u.value.style.left=I?`${w.offsetLeft}px`:"",u.value.style.width=I?`${w.clientWidth}px`:"",I&&kP(w,{scrollMode:"if-needed",block:"nearest"})}};BB({registerLink:w=>{f.links.includes(w)||f.links.push(w)},unregisterLink:w=>{const I=f.links.indexOf(w);I!==-1&&f.links.splice(I,1)},activeLink:g,scrollTo:y,handleClick:(w,I)=>{n("click",w,I)},direction:c}),je(()=>{ot(()=>{const w=v.value();f.scrollContainer=w,f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S()})}),Ze(()=>{f.scrollEvent&&f.scrollEvent.remove()}),An(()=>{if(f.scrollEvent){const w=v.value();f.scrollContainer!==w&&(f.scrollContainer=w,f.scrollEvent.remove(),f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S())}$()});const x=w=>Array.isArray(w)?w.map(I=>{const{children:T,key:_,href:E,target:A,class:R,style:z,title:M}=I;return p(T0,{key:_,href:E,target:A,class:R,style:z,title:M,customTitleProps:I},{default:()=>[c.value==="vertical"?x(T):null],customTitle:r.customTitle})}):null,[C,O]=LB(i);return()=>{var w;const{offsetTop:I,affix:T,showInkInFixed:_}=e,E=i.value,A=ie(`${E}-ink`,{[`${E}-ink-visible`]:g.value}),R=ie(O.value,e.wrapperClass,`${E}-wrapper`,{[`${E}-wrapper-horizontal`]:c.value==="horizontal",[`${E}-rtl`]:s.value==="rtl"}),z=ie(E,{[`${E}-fixed`]:!T&&!_}),M=m({maxHeight:I?`calc(100vh - ${I}px)`:"100vh"},e.wrapperStyle),B=p("div",{class:R,style:M,ref:d},[p("div",{class:z},[p("span",{class:A,ref:u},null),Array.isArray(e.items)?x(e.items):(w=r.default)===null||w===void 0?void 0:w.call(r)])]);return C(T?p(FP,D(D({},o),{},{offsetTop:I,target:v.value}),{default:()=>[B]}):B)}}});Gl.Link=T0;Gl.install=function(e){return e.component(Gl.name,Gl),e.component(Gl.Link.name,Gl.Link),e};function G$(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function ZP(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function aN(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:l,options:i}=ZP(t,!1);function a(s,c){s.forEach(u=>{const d=u[r];if(c||!(i in u)){const f=u[l];o.push({key:G$(u,o.length),groupOption:c,data:u,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=u.label),o.push({key:G$(u,o.length),group:!0,data:u,label:f}),a(u[i],!0)}})}return a(e,!1),o}function Ov(e){const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function sN(e,t){if(!t||!t.length)return null;let n=!1;function o(l,i){let[a,...s]=i;if(!a)return[l];const c=l.split(a);return n=n||c.length>1,c.reduce((u,d)=>[...u,...o(d,s)],[]).filter(u=>u)}const r=o(e,t);return n?r:null}function cN(){return""}function uN(e){return e?e.ownerDocument:window.document}function QP(){}const JP=()=>({action:V.oneOfType([V.string,V.arrayOf(V.string)]).def([]),showAction:V.any.def([]),hideAction:V.any.def([]),getPopupClassNameFromAlign:V.any.def(cN),onPopupVisibleChange:Function,afterPopupVisibleChange:V.func.def(QP),popup:V.any,arrow:V.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:V.string.def("rc-trigger-popup"),popupClassName:V.string.def(""),popupPlacement:String,builtinPlacements:V.object,popupTransitionName:String,popupAnimation:V.any,mouseEnterDelay:V.number.def(0),mouseLeaveDelay:V.number.def(.1),zIndex:Number,focusDelay:V.number.def(0),blurDelay:V.number.def(.15),getPopupContainer:Function,getDocument:V.func.def(uN),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:V.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),M0={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},dN=m(m({},M0),{mobile:{type:Object}}),fN=m(m({},M0),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _0(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function eI(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=_0({prefixCls:t,transitionName:i,animation:l})),p(cn,D({appear:!0},a),{default:()=>[$n(p("div",{style:{zIndex:o},class:`${t}-mask`},null),[[A_("if"),n]])]})}eI.displayName="Mask";const pN=oe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:dN,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=le();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var l;const{zIndex:i,visible:a,prefixCls:s,mobile:{popupClassName:c,popupStyle:u,popupMotion:d={},popupRender:f}={}}=e,g=m({zIndex:i},u);let v=yt((l=o.default)===null||l===void 0?void 0:l.call(o));v.length>1&&(v=p("div",{class:`${s}-content`},[v])),f&&(v=f(v));const h=ie(s,c);return p(cn,D({ref:r},d),{default:()=>[a?p("div",{class:h,style:g},[v]):null]})}}});var gN=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const X$=["measure","align",null,"motion"],hN=(e,t)=>{const n=te(null),o=te(),r=te(!1);function l(s){r.value||(n.value=s)}function i(){Ye.cancel(o.value)}function a(s){i(),o.value=Ye(()=>{let c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}l(c),s==null||s()})}return be(e,()=>{l("measure")},{immediate:!0,flush:"post"}),je(()=>{be(n,()=>{switch(n.value){case"measure":t();break}n.value&&(o.value=Ye(()=>gN(void 0,void 0,void 0,function*(){const s=X$.indexOf(n.value),c=X$[s+1];c&&s!==-1&&l(c)})))},{immediate:!0,flush:"post"})}),Ze(()=>{r.value=!0,i()}),[n,a]},vN=e=>{const t=te({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:l,height:i}=t.value;e.value.indexOf("height")!==-1&&i?r.height=`${i}px`:e.value.indexOf("minHeight")!==-1&&i&&(r.minHeight=`${i}px`),e.value.indexOf("width")!==-1&&l?r.width=`${l}px`:e.value.indexOf("minWidth")!==-1&&l&&(r.minWidth=`${l}px`)}return r}),n]};function U$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Y$(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function kN(e,t,n,o){var r=ct.clone(e),l={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),ct.mix(r,l)}function B0(e){var t,n,o;if(!ct.isWindow(e)&&e.nodeType!==9)t=ct.offset(e),n=ct.outerWidth(e),o=ct.outerHeight(e);else{var r=ct.getWindow(e);t={left:ct.getWindowScrollLeft(r),top:ct.getWindowScrollTop(r)},n=ct.viewportWidth(r),o=ct.viewportHeight(r)}return t.width=n,t.height=o,t}function oC(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return n==="c"?a+=l/2:n==="b"&&(a+=l),o==="c"?i+=r/2:o==="r"&&(i+=r),{left:i,top:a}}function su(e,t,n,o,r){var l=oC(t,n[1]),i=oC(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function rC(e,t,n){return e.leftn.right}function lC(e,t,n){return e.topn.bottom}function zN(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function N0(e,t,n){var o=n.target||t,r=B0(o),l=!jN(o,n.overflow&&n.overflow.alwaysByViewport);return sI(e,r,n,l)}N0.__getOffsetParent=Ev;N0.__getVisibleRectForElement=D0;function WN(e,t,n){var o,r,l=ct.getDocument(e),i=l.defaultView||l.parentWindow,a=ct.getWindowScrollLeft(i),s=ct.getWindowScrollTop(i),c=ct.viewportWidth(i),u=ct.viewportHeight(i);"pageX"in t?o=t.pageX:o=a+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},f=o>=0&&o<=a+c&&r>=0&&r<=s+u,g=[n.points[0],"cc"];return sI(e,d,Y$(Y$({},n),{},{points:g}),f)}function dt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=_t(e)[0]),!r)return null;const l=sn(r,t,o);return l.props=n?m(m({},l.props),t):l.props,It(typeof l.props.class!="object"),l}function VN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>dt(o,t,n))}function Is(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>Is(r,t,n,o));{if(!Yt(e))return e;const r=dt(e,t,n,o);return Array.isArray(r.children)&&(r.children=Is(r.children)),r}}function KN(e,t,n){bl(sn(e,m({},t)),n)}const cI=e=>(e||[]).some(t=>Yt(t)?!(t.type===bn||t.type===We&&!cI(t.children)):!0)?e:null;function np(e,t,n,o){var r;const l=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return cI(l)?l:o==null?void 0:o()}const op=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function GN(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function XN(e,t){e!==document.activeElement&&rl(t,e)&&typeof e.focus=="function"&&e.focus()}function sC(e,t){let n=null,o=null;function r(i){let[{target:a}]=i;if(!document.documentElement.contains(a))return;const{width:s,height:c}=a.getBoundingClientRect(),u=Math.floor(s),d=Math.floor(c);(n!==u||o!==d)&&Promise.resolve().then(()=>{t({width:u,height:d})}),n=u,o=d}const l=new f0(r);return e&&l.observe(e),()=>{l.disconnect()}}const UN=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function l(i){if(!n||i===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,l()},t.value)}return[l,()=>{n=!1,r()}]};function YN(){this.__data__=[],this.size=0}function F0(e,t){return e===t||e!==e&&t!==t}function rp(e,t){for(var n=e.length;n--;)if(F0(e[n][0],t))return n;return-1}var qN=Array.prototype,ZN=qN.splice;function QN(e){var t=this.__data__,n=rp(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ZN.call(t,n,1),--this.size,!0}function JN(e){var t=this.__data__,n=rp(t,e);return n<0?void 0:t[n][1]}function eF(e){return rp(this.__data__,e)>-1}function tF(e,t){var n=this.__data__,o=rp(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Lr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),u=l.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,g=n&aL?new Ia:void 0;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=zL}var HL="[object Arguments]",jL="[object Array]",WL="[object Boolean]",VL="[object Date]",KL="[object Error]",GL="[object Function]",XL="[object Map]",UL="[object Number]",YL="[object Object]",qL="[object RegExp]",ZL="[object Set]",QL="[object String]",JL="[object WeakMap]",ek="[object ArrayBuffer]",tk="[object DataView]",nk="[object Float32Array]",ok="[object Float64Array]",rk="[object Int8Array]",lk="[object Int16Array]",ik="[object Int32Array]",ak="[object Uint8Array]",sk="[object Uint8ClampedArray]",ck="[object Uint16Array]",uk="[object Uint32Array]",Ft={};Ft[nk]=Ft[ok]=Ft[rk]=Ft[lk]=Ft[ik]=Ft[ak]=Ft[sk]=Ft[ck]=Ft[uk]=!0;Ft[HL]=Ft[jL]=Ft[ek]=Ft[WL]=Ft[tk]=Ft[VL]=Ft[KL]=Ft[GL]=Ft[XL]=Ft[UL]=Ft[YL]=Ft[qL]=Ft[ZL]=Ft[QL]=Ft[JL]=!1;function dk(e){return jo(e)&&j0(e.length)&&!!Ft[xl(e)]}function ap(e){return function(t){return e(t)}}var bI=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ts=bI&&typeof module=="object"&&module&&!module.nodeType&&module,fk=Ts&&Ts.exports===bI,Gg=fk&&uI.process,pk=function(){try{var e=Ts&&Ts.require&&Ts.require("util").types;return e||Gg&&Gg.binding&&Gg.binding("util")}catch{}}();const Ta=pk;var vC=Ta&&Ta.isTypedArray,gk=vC?ap(vC):dk;const W0=gk;var hk=Object.prototype,vk=hk.hasOwnProperty;function yI(e,t){var n=so(e),o=!n&&ip(e),r=!n&&!o&&ac(e),l=!n&&!o&&!r&&W0(e),i=n||o||r||l,a=i?EL(e.length,String):[],s=a.length;for(var c in e)(t||vk.call(e,c))&&!(i&&(c=="length"||r&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||H0(c,s)))&&a.push(c);return a}var mk=Object.prototype;function sp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mk;return e===n}function SI(e,t){return function(n){return e(t(n))}}var bk=SI(Object.keys,Object);const yk=bk;var Sk=Object.prototype,$k=Sk.hasOwnProperty;function $I(e){if(!sp(e))return yk(e);var t=[];for(var n in Object(e))$k.call(e,n)&&n!="constructor"&&t.push(n);return t}function Da(e){return e!=null&&j0(e.length)&&!fI(e)}function Ba(e){return Da(e)?yI(e):$I(e)}function Mv(e){return gI(e,Ba,z0)}var Ck=1,xk=Object.prototype,wk=xk.hasOwnProperty;function Ok(e,t,n,o,r,l){var i=n&Ck,a=Mv(e),s=a.length,c=Mv(t),u=c.length;if(s!=u&&!i)return!1;for(var d=s;d--;){var f=a[d];if(!(i?f in t:wk.call(t,f)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var h=!0;l.set(e,t),l.set(t,e);for(var b=i;++d{const{disabled:f,target:g,align:v,onAlign:h}=e;if(!f&&g&&l.value){const b=l.value;let y;const S=OC(g),$=PC(g);r.value.element=S,r.value.point=$,r.value.align=v;const{activeElement:x}=document;return S&&op(S)?y=N0(b,S,v):$&&(y=WN(b,$,v)),XN(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=le({cancel:()=>{}}),c=le({cancel:()=>{}}),u=()=>{const f=e.target,g=OC(f),v=PC(f);l.value!==c.value.element&&(c.value.cancel(),c.value.element=l.value,c.value.cancel=sC(l.value,i)),(r.value.element!==g||!GN(r.value.point,v)||!V0(r.value.align,e.align))&&(i(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=sC(g,i)))};je(()=>{ot(()=>{u()})}),An(()=>{ot(()=>{u()})}),be(()=>e.disabled,f=>{f?a():i()},{immediate:!0,flush:"post"});const d=le(null);return be(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=Mt(window,"resize",i)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Rn(()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>i(!0)}),()=>{const f=o==null?void 0:o.default();return f?dt(f[0],{ref:l},!0,!0):null}}});Cn("bottomLeft","bottomRight","topLeft","topRight");const K0=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Po=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},up=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},_n=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Hk=oe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:M0,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=te(),i=te(),a=te(),[s,c]=vN(ze(e,"stretch")),u=()=>{e.stretch&&c(e.getRootDomNode())},d=te(!1);let f;be(()=>e.visible,O=>{clearTimeout(f),O?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,v]=hN(d,u),h=te(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=l.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var I;const T=e.getClassNameFromAlign(w),_=a.value;a.value!==T&&(a.value=T),g.value==="align"&&(_!==T?Promise.resolve().then(()=>{y()}):v(()=>{var E;(E=h.value)===null||E===void 0||E.call(h)}),(I=e.onAlign)===null||I===void 0||I.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:_0(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const I=O[w];O[w]=T=>{v(),g.value="stable",I==null||I(T)}}),O}),x=()=>new Promise(O=>{h.value=O});be([$,g],()=>{!$.value&&g.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>i.value.$el||i.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:I,prefixCls:T,destroyPopupOnHide:_,onMouseenter:E,onMouseleave:A,onTouchstart:R=()=>{},onMousedown:z}=e,M=g.value,B=[m(m({},s.value),{zIndex:w,opacity:M==="motion"||M==="stable"||!d.value?null:0,pointerEvents:!d.value&&M!=="stable"?"none":null}),o.style];let N=yt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));N.length>1&&(N=p("div",{class:`${T}-content`},[N]));const F=ie(T,o.class,a.value,!e.arrow&&`${T}-arrow-hidden`),k=d.value||!e.visible?Po($.value.name,$.value):{};return p(cn,D(D({ref:i},k),{},{onBeforeEnter:x}),{default:()=>!_||e.visible?$n(p(zk,{target:b(),key:"popup",ref:l,monitorWindowResize:!0,disabled:C.value,align:I,onAlign:S},{default:()=>p("div",{class:F,onMouseenter:E,onMouseleave:A,onMousedown:WS(z,["capture"]),[nn?"onTouchstartPassive":"onTouchstart"]:WS(R,["capture"]),style:B},[N])}),[[En,d.value]]):null})}}}),jk=oe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:fN,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1),i=te(!1),a=te(),s=te();return be([()=>e.visible,()=>e.mobile],()=>{l.value=e.visible,e.visible&&e.mobile&&(i.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var c;(c=a.value)===null||c===void 0||c.forceAlign()},getElement:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.getElement()}}),()=>{const c=m(m(m({},e),n),{visible:l.value}),u=i.value?p(pN,D(D({},c),{},{mobile:e.mobile,ref:a}),{default:o.default}):p(Hk,D(D({},c),{},{ref:a}),{default:o.default});return p("div",{ref:s},[p(eI,c,null),u])}}});function Wk(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function IC(e,t,n){const o=e[t]||{};return m(m({},o),n)}function Vk(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(WO(this),m(m({},this.$data),n));if(o===null)return;n=m(m({},n),o||{})}m(this.$data,n),this._.isMounted&&this.$forceUpdate(),ot(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Ge(CI,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:l}=e||{};let i=!1;return(n||o||r)&&(i=!0),!n&&l&&(i=!1),i})})},Kk=()=>{G0({},{inTriggerContext:!1});const e=He(CI,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},xI=oe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:V.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:l}=Kk();function i(){l.value&&(r=e.getContainer())}Ff(()=>{o=!1,i()}),je(()=>{r||i()});const a=be(l,()=>{l.value&&!r&&(r=e.getContainer()),r&&a()});return An(()=>{ot(()=>{var s;l.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return l.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?p(Jm,{to:r},n):null:null}}});let Xg;function zd(e){if(typeof document>"u")return 0;if(e||Xg===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let l=t.offsetWidth;r===l&&(l=n.clientWidth),document.body.removeChild(n),Xg=r-l}return Xg}function TC(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?zd():n}function Gk(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:TC(t),height:TC(n)}}const Xk=`vc-util-locker-${Date.now()}`;let EC=0;function Uk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function Yk(e){const t=P(()=>!!e&&!!e.value);EC+=1;const n=`${Xk}_${EC}`;ke(o=>{if(Mn()){if(t.value){const r=zd(),l=Uk();ec(` -html body { - overflow-y: hidden; - ${l?`width: calc(100% - ${r}px);`:""} -}`,n)}else Ad(n);o(()=>{Ad(n)})}},{flush:"post"})}let Dl=0;const ku=Mn(),MC=e=>{if(!ku)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ic=oe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:V.any,visible:{type:Boolean,default:void 0},autoLock:Ce(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=te(),r=te(),l=te(),i=te(1),a=Mn()&&document.createElement("div"),s=()=>{var g,v;o.value===a&&((v=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||v===void 0||v.removeChild(o.value)),o.value=null};let c=null;const u=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(c=MC(e.getContainer),c?(c.appendChild(o.value),!0):!1):!0},d=()=>ku?(o.value||(o.value=a,u(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return An(()=>{f(),u()}),Yk(P(()=>e.autoLock&&e.visible&&Mn()&&(o.value===document.body||o.value===a))),je(()=>{let g=!1;be([()=>e.visible,()=>e.getContainer],(v,h)=>{let[b,y]=v,[S,$]=h;ku&&(c=MC(e.getContainer),c===document.body&&(b&&!S?Dl+=1:g&&(Dl-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),ot(()=>{u()||(l.value=Ye(()=>{i.value+=1}))})}),Ze(()=>{const{visible:g}=e;ku&&c===document.body&&(Dl=g&&Dl?Dl-1:Dl),s(),Ye.cancel(l.value)}),()=>{const{forceRender:g,visible:v}=e;let h=null;const b={getOpenCount:()=>Dl,getContainer:d};return i.value&&(g||v||r.value)&&(h=p(xI,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),qk=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],wi=oe({compatConfig:{MODE:3},name:"Trigger",mixins:[xi],inheritAttrs:!1,props:JP(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:l,builtinPlacements:i}=e;return r&&i?IC(i,r,l):l}),n=te(null),o=r=>{n.value=r};return{vcTriggerContext:He("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:te(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,qk.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Ge("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),G0(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Mt(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Mt(n,"touchstart",this.onDocumentClick,nn?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Mt(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Mt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&rl((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){rl(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!rl(n,t)||this.isContextMenuOnly())&&!rl(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const l=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Hn(this.triggerRef);return Hn(r(l))}try{const l=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Hn(this.triggerRef);if(l)return l}catch{}return Hn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(Vk(r,l,e,i)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?IC(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[nn?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:l,popupClassName:i,popupAnimation:a,popupTransitionName:s,popupStyle:c,mask:u,maskAnimation:d,maskTransitionName:f,zIndex:g,stretch:v,alignPoint:h,mobile:b,arrow:y,forceRender:S}=this.$props,{sPopupVisible:$,point:x}=this.$data,C=m(m({prefixCls:r,arrow:y,destroyPopupOnHide:l,visible:$,point:h?x:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:u,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:f,class:i,style:c,onAlign:o.onPopupAlign||QP},e),{ref:this.setPopupRef,mobile:b,forceRender:S});return p(jk,C,{default:this.$slots.popup||(()=>VO(this,"popup"))})},attachParent(e){Ye.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Ye(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(xr(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=g$(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=_t(Gf(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=g$(r);const l={key:"trigger"};this.isContextmenuToShow()?l.onContextmenu=this.onContextmenu:l.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMousedown=this.onMousedown,l[nn?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(l.onClick=this.createTwoChains("onClick"),l.onMousedown=this.createTwoChains("onMousedown"),l[nn?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(l.onMouseenter=this.onMouseenter,n&&(l.onMousemove=this.onMouseMove)):l.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?l.onMouseleave=this.onMouseleave:l.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=c=>{c&&(!c.relatedTarget||!rl(c.target,c.relatedTarget))&&this.createTwoChains("onBlur")(c)});const i=ie(r&&r.props&&r.props.class,e.class);i&&(l.class=i);const a=dt(r,m(m({},l),{ref:"triggerRef"}),!0,!0),s=p(Ic,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p(We,null,[a,s])}});var Zk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},Jk=oe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=P(()=>{const{dropdownMatchSelectWidth:a}=e;return Qk(a)}),i=le();return r({getPopupElement:()=>i.value}),()=>{const a=m(m({},e),o),{empty:s=!1}=a,c=Zk(a,["empty"]),{visible:u,dropdownAlign:d,prefixCls:f,popupElement:g,dropdownClassName:v,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:I,onPopupVisibleChange:T,onPopupMouseEnter:_,onPopupFocusin:E,onPopupFocusout:A}=c,R=`${f}-dropdown`;let z=g;x&&(z=x({menuNode:g,props:e}));const M=C?`${R}-${C}`:O,B=m({minWidth:`${$}px`},h);return typeof S=="number"?B.width=`${S}px`:S&&(B.width=`${$}px`),p(wi,D(D({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:l.value,prefixCls:R,popupTransitionName:M,popupAlign:d,popupVisible:u,getPopupContainer:w,popupClassName:ie(v,{[`${R}-empty`]:s}),popupStyle:B,getTriggerDOMNode:I,onPopupVisibleChange:T}),{default:n.default,popup:()=>p("div",{ref:i,onMouseenter:_,onFocusin:E,onFocusout:A},[z])})}}}),ez=Jk,rt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=rt.F1&&n<=rt.F12)return!1;switch(n){case rt.ALT:case rt.CAPS_LOCK:case rt.CONTEXT_MENU:case rt.CTRL:case rt.DOWN:case rt.END:case rt.ESC:case rt.HOME:case rt.INSERT:case rt.LEFT:case rt.MAC_FF_META:case rt.META:case rt.NUMLOCK:case rt.NUM_CENTER:case rt.PAGE_DOWN:case rt.PAGE_UP:case rt.PAUSE:case rt.PRINT_SCREEN:case rt.RIGHT:case rt.SHIFT:case rt.UP:case rt.WIN_KEY:case rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=rt.ZERO&&t<=rt.NINE||t>=rt.NUM_ZERO&&t<=rt.NUM_MULTIPLY||t>=rt.A&&t<=rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case rt.SPACE:case rt.QUESTION_MARK:case rt.NUM_PLUS:case rt.NUM_MINUS:case rt.NUM_PERIOD:case rt.NUM_DIVISION:case rt.SEMICOLON:case rt.DASH:case rt.EQUALS:case rt.COMMA:case rt.PERIOD:case rt.SLASH:case rt.APOSTROPHE:case rt.SINGLE_QUOTE:case rt.OPEN_SQUARE_BRACKET:case rt.BACKSLASH:case rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Oe=rt,dp=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let c;return typeof l=="function"?c=l(i):c=Yt(l)?sn(l):l,p("span",{class:r,onMousedown:u=>{u.preventDefault(),a&&a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[c!==void 0?c:p("span",{class:r.split(/\s+/).map(u=>`${u}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};dp.inheritAttrs=!1;dp.displayName="TransBtn";dp.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const Hd=dp;var tz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(s,c,u)=>{var d;(d=o.value)===null||d===void 0||d.setSelectionRange(s,c,u)},select:()=>{var s;(s=o.value)===null||s===void 0||s.select()},getSelectionStart:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionStart},getSelectionEnd:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionEnd},getScrollTop:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.scrollTop}}),()=>{const{tag:s,value:c}=e,u=tz(e,["tag","value"]);return p(s,D(D({},u),{},{ref:o,value:c}),null)}}}),oz=nz;function rz(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function jd(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lz(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function iz(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o>"u"||o===null||(t+=`${n}: ${e[n]};`),t},"")}var az=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,a],()=>{a.value||(i.value=e.value)},{immediate:!0});const s=w=>{n("change",w)},c=w=>{a.value=!0,w.target.composing=!0,n("compositionstart",w)},u=w=>{a.value=!1,w.target.composing=!1,n("compositionend",w);const I=document.createEvent("HTMLEvents");I.initEvent("input",!0,!0),w.target.dispatchEvent(I),s(w)},d=w=>{if(a.value&&e.lazy){i.value=w.target.value;return}n("input",w)},f=w=>{n("blur",w)},g=w=>{n("focus",w)},v=()=>{l.value&&l.value.focus()},h=()=>{l.value&&l.value.blur()},b=w=>{n("keydown",w)},y=w=>{n("keyup",w)},S=(w,I,T)=>{var _;(_=l.value)===null||_===void 0||_.setSelectionRange(w,I,T)},$=()=>{var w;(w=l.value)===null||w===void 0||w.select()};r({focus:v,blur:h,input:P(()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.input}),setSelectionRange:S,select:$,getSelectionStart:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getScrollTop()}});const x=w=>{n("mousedown",w)},C=w=>{n("paste",w)},O=P(()=>e.style&&typeof e.style!="string"?iz(e.style):e.style);return()=>{const w=az(e,["style","lazy"]);return p(oz,D(D(D({},w),o),{},{style:O.value,onInput:d,onChange:s,onBlur:f,onFocus:g,ref:l,value:i.value,onCompositionstart:c,onCompositionend:u,onKeyup:y,onKeydown:b,onPaste:C,onMousedown:x}),null)}}}),Na=sz,cz={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},uz=oe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:cz,setup(e){let t=null;const n=He("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:f,value:g,onKeydown:v,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:I}=e;let T=i||p(Na,null,null);const _=T.props||{},{onKeydown:E,onInput:A,onFocus:R,onBlur:z,onMousedown:M,onCompositionstart:B,onCompositionend:N,style:F}=_;return T=dt(T,m(m(m(m(m({type:"search"},_),{id:l,ref:w,disabled:a,tabindex:s,lazy:!1,autocomplete:u||"off",autofocus:c,class:ie(`${r}-selection-search-input`,(o=T==null?void 0:T.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":f}),I),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:m(m({},F),{opacity:d?null:0}),onKeydown:L=>{v(L),E&&E(L)},onMousedown:L=>{h(L),M&&M(L)},onInput:L=>{b(L),A&&A(L)},onCompositionstart(L){S(L),B&&B(L)},onCompositionend(L){$(L),N&&N(L)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var L=arguments.length,k=new Array(L),j=0;j{z&&z(k[0]),C&&C(k[0]),n==null||n.blur(k[0])},100)}}),T.type==="textarea"?{}:{type:"search"}),!0,!0),T}}}),wI=uz,dz=`accept acceptcharset accesskey action allowfullscreen allowtransparency -alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge -charset checked classid classname colspan cols content contenteditable contextmenu -controls coords crossorigin data datetime default defer dir disabled download draggable -enctype form formaction formenctype formmethod formnovalidate formtarget frameborder -headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity -is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media -mediagroup method min minlength multiple muted name novalidate nonce open -optimum pattern placeholder poster preload radiogroup readonly rel required -reversed role rowspan rows sandbox scope scoped scrolling seamless selected -shape size sizes span spellcheck src srcdoc srclang srcset start step style -summary tabindex target title type usemap value width wmode wrap`,fz=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown - onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick - onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown - onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel - onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough - onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata - onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,_C=`${dz} ${fz}`.split(/[\s\n]+/),pz="aria-",gz="data-";function AC(e,t){return e.indexOf(t)===0}function wl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=m({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||AC(r,pz))||n.data&&AC(r,gz)||n.attr&&(_C.includes(r)||_C.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const OI=Symbol("OverflowContextProviderKey"),Dv=oe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(OI,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),hz=()=>He(OI,P(()=>null));var vz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),l=le();o({itemNodeRef:l});function i(a){e.registerSize(e.itemKey,a)}return Rn(()=>{i(null)}),()=>{var a;const{prefixCls:s,invalidate:c,item:u,renderItem:d,responsive:f,registerSize:g,itemKey:v,display:h,order:b,component:y="div"}=e,S=vz(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(a=n.default)===null||a===void 0?void 0:a.call(n),x=d&&u!==Ri?d(u):$;let C;c||(C={opacity:r.value?0:1,height:r.value?0:Ri,overflowY:r.value?"hidden":Ri,order:f?b:Ri,pointerEvents:r.value?"none":Ri,position:r.value?"absolute":Ri});const O={};return r.value&&(O["aria-hidden"]=!0),p(xo,{disabled:!f,onResize:w=>{let{offsetWidth:I}=w;i(I)}},{default:()=>p(y,D(D(D({class:ie(!c&&s),style:C},O),S),{},{ref:l}),{default:()=>[x]})})}}});var Ug=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;if(!r.value){const{component:d="div"}=e,f=Ug(e,["component"]);return p(d,D(D({},f),o),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}const i=r.value,{className:a}=i,s=Ug(i,["className"]),{class:c}=o,u=Ug(o,["class"]);return p(Dv,{value:null},{default:()=>[p(zu,D(D(D({class:ie(a,c)},s),u),e),n)]})}}});var bz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:V.any,component:String,itemComponent:V.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),fp=oe({name:"Overflow",inheritAttrs:!1,props:Sz(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const l=P(()=>e.ssr==="full"),i=te(null),a=P(()=>i.value||0),s=te(new Map),c=te(0),u=te(0),d=te(0),f=te(null),g=te(null),v=P(()=>g.value===null&&l.value?Number.MAX_SAFE_INTEGER:g.value||0),h=te(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(c.value,u.value)),S=P(()=>!!(e.data.length&&e.maxCount===PI)),$=P(()=>e.maxCount===II),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let M=e.data;return S.value?i.value===null&&l.value?M=e.data:M=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&(M=e.data.slice(0,e.maxCount)),M}),O=P(()=>S.value?e.data.slice(v.value+1):e.data.slice(C.value.length)),w=(M,B)=>{var N;return typeof e.itemKey=="function"?e.itemKey(M):(N=e.itemKey&&(M==null?void 0:M[e.itemKey]))!==null&&N!==void 0?N:B},I=P(()=>e.renderItem||(M=>M)),T=(M,B)=>{g.value=M,B||(h.value=M{i.value=B.clientWidth},E=(M,B)=>{const N=new Map(s.value);B===null?N.delete(M):N.set(M,B),s.value=N},A=(M,B)=>{c.value=u.value,u.value=B},R=(M,B)=>{d.value=B},z=M=>s.value.get(w(C.value[M],M));return be([a,s,u,d,()=>e.itemKey,C],()=>{if(a.value&&y.value&&C.value){let M=d.value;const B=C.value.length,N=B-1;if(!B){T(0),f.value=null;return}for(let F=0;Fa.value){T(F-1),f.value=M-L-d.value+u.value;break}}e.suffix&&z(0)+d.value>a.value&&(f.value=null)}}),()=>{const M=h.value&&!!O.value.length,{itemComponent:B,renderRawItem:N,renderRawRest:F,renderRest:L,prefixCls:k="rc-overflow",suffix:j,component:H="div",id:Y,onMousedown:Z}=e,{class:U,style:ee}=n,G=bz(n,["class","style"]);let J={};f.value!==null&&S.value&&(J={position:"absolute",left:`${f.value}px`,top:0});const Q={prefixCls:b.value,responsive:S.value,component:B,invalidate:$.value},K=N?(X,ne)=>{const ae=w(X,ne);return p(Dv,{key:ae,value:m(m({},Q),{order:ne,item:X,itemKey:ae,registerSize:E,display:ne<=v.value})},{default:()=>[N(X,ne)]})}:(X,ne)=>{const ae=w(X,ne);return p(zu,D(D({},Q),{},{order:ne,key:ae,item:X,renderItem:I.value,itemKey:ae,registerSize:E,display:ne<=v.value}),null)};let q=()=>null;const pe={order:M?v.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:A,display:M};if(F)F&&(q=()=>p(Dv,{value:m(m({},Q),pe)},{default:()=>[F(O.value)]}));else{const X=L||yz;q=()=>p(zu,D(D({},Q),pe),{default:()=>typeof X=="function"?X(O.value):X})}const W=()=>{var X;return p(H,D({id:Y,class:ie(!$.value&&k,U),style:ee,onMousedown:Z,role:e.role},G),{default:()=>[C.value.map(K),x.value?q():null,j&&p(zu,D(D({},Q),{},{order:v.value,class:`${b.value}-suffix`,registerSize:R,display:!0,style:J}),{default:()=>j}),(X=r.default)===null||X===void 0?void 0:X.call(r)]})};return p(xo,{disabled:!S.value,onResize:_},{default:W})}}});fp.Item=mz;fp.RESPONSIVE=PI;fp.INVALIDATE=II;const sa=fp,TI=Symbol("TreeSelectLegacyContextPropsKey");function $z(e){return Ge(TI,e)}function pp(){return He(TI,{})}const Cz={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},RC=e=>{e.preventDefault(),e.stopPropagation()},xz=oe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Cz,setup(e){const t=te(),n=te(0),o=te(!1),r=pp(),l=P(()=>`${e.prefixCls}-selection`),i=P(()=>e.open||e.mode==="tags"?e.searchValue:""),a=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),s=le("");ke(()=>{s.value=i.value}),je(()=>{be(s,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function c(v,h,b,y,S){return p("span",{class:ie(`${l.value}-item`,{[`${l.value}-item-disabled`]:b}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[p("span",{class:`${l.value}-item-content`},[h]),y&&p(Hd,{class:`${l.value}-item-remove`,onMousedown:RC,onClick:S,customizeIcon:e.removeIcon},{default:()=>[Lt("×")]})])}function u(v,h,b,y,S,$){var x;const C=w=>{RC(w),e.onToggleOpen(!open)};let O=$;return r.keyEntities&&(O=((x=r.keyEntities[v])===null||x===void 0?void 0:x.node)||{}),p("span",{key:v,onMousedown:C},[e.tagRender({label:h,value:v,disabled:b,closable:y,onClose:S,option:O})])}function d(v){const{disabled:h,label:b,value:y,option:S}=v,$=!e.disabled&&!h;let x=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const O=String(x);O.length>e.maxTagTextLength&&(x=`${O.slice(0,e.maxTagTextLength)}...`)}const C=O=>{var w;O&&O.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,v)};return typeof e.tagRender=="function"?u(y,x,h,$,C,S):c(b,x,h,$,C)}function f(v){const{maxTagPlaceholder:h=y=>`+ ${y.length} ...`}=e,b=typeof h=="function"?h(v):h;return c(b,b,!1)}const g=v=>{const h=v.target.composing;s.value=v.target.value,h||e.onInputChange(v)};return()=>{const{id:v,prefixCls:h,values:b,open:y,inputRef:S,placeholder:$,disabled:x,autofocus:C,autocomplete:O,activeDescendantId:w,tabindex:I,compositionStatus:T,onInputPaste:_,onInputKeyDown:E,onInputMouseDown:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=p("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[p(wI,{inputRef:S,open:y,prefixCls:h,id:v,inputElement:null,disabled:x,autofocus:C,autocomplete:O,editable:a.value,activeDescendantId:w,value:s.value,onKeydown:E,onMousedown:A,onChange:g,onPaste:_,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),p("span",{ref:t,class:`${l.value}-search-mirror`,"aria-hidden":!0},[s.value,Lt(" ")])]),B=p(sa,{prefixCls:`${l.value}-overflow`,data:b,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return p(We,null,[B,!b.length&&!i.value&&!T&&p("span",{class:`${l.value}-placeholder`},[$])])}}}),wz=xz,Oz={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},X0=oe({name:"SingleSelector",setup(e){const t=te(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),l=pp();be([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value||e.compositionStatus),a=P(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=i.value?{visibility:"hidden"}:void 0;return p("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])},c=u=>{u.target.composing||(t.value=!0,e.onInputChange(u))};return()=>{var u,d,f,g;const{inputElement:v,prefixCls:h,id:b,values:y,inputRef:S,disabled:$,autofocus:x,autocomplete:C,activeDescendantId:O,open:w,tabindex:I,optionLabelRender:T,onInputKeyDown:_,onInputMouseDown:E,onInputPaste:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=y[0];let B=null;if(M&&l.customSlots){const N=(u=M.key)!==null&&u!==void 0?u:M.value,F=((d=l.keyEntities[N])===null||d===void 0?void 0:d.node)||{};B=l.customSlots[(f=F.slots)===null||f===void 0?void 0:f.title]||l.customSlots.title||M.label,typeof B=="function"&&(B=B(F))}else B=T&&M?T(M.option):M==null?void 0:M.label;return p(We,null,[p("span",{class:`${h}-selection-search`},[p(wI,{inputRef:S,prefixCls:h,id:b,open:w,inputElement:v,disabled:$,autofocus:x,autocomplete:C,editable:o.value,activeDescendantId:O,value:r.value,onKeydown:_,onMousedown:E,onChange:c,onPaste:A,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0)},null)]),!n.value&&M&&!i.value&&p("span",{class:`${h}-selection-item`,title:a.value},[p(We,{key:(g=M.key)!==null&&g!==void 0?g:M.value},[B])]),s()])}}});X0.props=Oz;X0.inheritAttrs=!1;const Pz=X0;function Iz(e){return![Oe.ESC,Oe.SHIFT,Oe.BACKSPACE,Oe.TAB,Oe.WIN_KEY,Oe.ALT,Oe.META,Oe.WIN_KEY_RIGHT,Oe.CTRL,Oe.SEMICOLON,Oe.EQUALS,Oe.CAPS_LOCK,Oe.CONTEXT_MENU,Oe.F1,Oe.F2,Oe.F3,Oe.F4,Oe.F5,Oe.F6,Oe.F7,Oe.F8,Oe.F9,Oe.F10,Oe.F11,Oe.F12].includes(e)}function EI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Ze(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function sc(){const e=t=>{e.current=t};return e}const Tz=oe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=sc(),r=le(!1),[l,i]=EI(0),a=y=>{const{which:S}=y;(S===Oe.UP||S===Oe.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===Oe.ENTER&&e.mode==="tags"&&!r.value&&!e.open&&e.onSearchSubmit(y.target.value),Iz(S)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let c=null;const u=y=>{e.onSearch(y,!0,r.value)!==!1&&e.onToggleOpen(!0)},d=()=>{r.value=!0},f=y=>{r.value=!1,e.mode!=="combobox"&&u(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const $=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,c)}c=null,u(S)},v=y=>{const{clipboardData:S}=y;c=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=l();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:g,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:f},C=$==="multiple"||$==="tags"?p(wz,D(D({},e),x),null):p(Pz,D(D({},e),x),null);return p("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}}),Ez=Tz;function Mz(e,t,n){function o(r){var l,i,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const c=[(l=e[0])===null||l===void 0?void 0:l.value,(a=(i=e[1])===null||i===void 0?void 0:i.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&c.every(u=>u&&!u.contains(s)&&u!==s)&&n(!1)}je(()=>{window.addEventListener("mousedown",o)}),Ze(()=>{window.removeEventListener("mousedown",o)})}function _z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=te(!1);let n;const o=()=>{clearTimeout(n)};return je(()=>{o()}),[t,(l,i)=>{o(),n=setTimeout(()=>{t.value=l,i&&i()},e)},o]}const MI=Symbol("BaseSelectContextKey");function Az(e){return Ge(MI,e)}function Tc(){return He(MI,{})}const U0=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substring(0,4))};function Wd(e){if(!kt(e))return ut(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ut(t)}var Rz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),gp=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Nz=()=>m(m({},Bz()),gp());function _I(e){return e==="tags"||e==="multiple"}const Y0=oe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:qe(Nz(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=P(()=>_I(e.mode)),i=P(()=>e.showSearch!==void 0?e.showSearch:l.value||e.mode==="combobox"),a=te(!1);je(()=>{a.value=U0()});const s=pp(),c=te(null),u=sc(),d=te(null),f=te(null),g=te(null),v=le(!1),[h,b,y]=_z();o({focus:()=>{var K;(K=f.value)===null||K===void 0||K.focus()},blur:()=>{var K;(K=f.value)===null||K===void 0||K.blur()},scrollTo:K=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(K)}});const x=P(()=>{var K;if(e.mode!=="combobox")return e.searchValue;const q=(K=e.displayValues[0])===null||K===void 0?void 0:K.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=te(C),w=te(C),I=K=>{O.value=e.open!==void 0?e.open:K,w.value=O.value};be(()=>e.open,()=>{I(e.open)});const T=P(()=>!e.notFoundContent&&e.emptyOptions);ke(()=>{w.value=O.value,(e.disabled||T.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const _=P(()=>T.value?!1:w.value),E=K=>{const q=K!==void 0?K:!w.value;w.value!==q&&!e.disabled&&(I(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q),!q&&H.value&&(H.value=!1,b(!1,()=>{k.value=!1,v.value=!1})))},A=P(()=>(e.tokenSeparators||[]).some(K=>[` -`,`\r -`].includes(K))),R=(K,q,pe)=>{var W,X;let ne=!0,ae=K;(W=e.onActiveValueChange)===null||W===void 0||W.call(e,null);const se=pe?null:sN(K,e.tokenSeparators);return e.mode!=="combobox"&&se&&(ae="",(X=e.onSearchSplit)===null||X===void 0||X.call(e,se),E(!1),ne=!1),e.onSearch&&x.value!==ae&&e.onSearch(ae,{source:q?"typing":"effect"}),ne},z=K=>{var q;!K||!K.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,K,{source:"submit"})};be(w,()=>{!w.value&&!l.value&&e.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),be(()=>e.disabled,()=>{O.value&&e.disabled&&I(!1),e.disabled&&!v.value&&b(!1)},{immediate:!0});const[M,B]=EI(),N=function(K){var q;const pe=M(),{which:W}=K;if(W===Oe.ENTER&&(e.mode!=="combobox"&&K.preventDefault(),w.value||E(!0)),B(!!x.value),W===Oe.BACKSPACE&&!pe&&l.value&&!x.value&&e.displayValues.length){const se=[...e.displayValues];let re=null;for(let de=se.length-1;de>=0;de-=1){const ge=se[de];if(!ge.disabled){se.splice(de,1),re=ge;break}}re&&e.onDisplayValuesChange(se,{type:"remove",values:[re]})}for(var X=arguments.length,ne=new Array(X>1?X-1:0),ae=1;ae1?q-1:0),W=1;W{const q=e.displayValues.filter(pe=>pe!==K);e.onDisplayValuesChange(q,{type:"remove",values:[K]})},k=te(!1),j=function(){b(!0),e.disabled||(e.onFocus&&!k.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&E(!0)),k.value=!0},H=le(!1),Y=function(){if(H.value||(v.value=!0,b(!1,()=>{k.value=!1,v.value=!1,E(!1)}),e.disabled))return;const K=x.value;K&&(e.mode==="tags"?e.onSearch(K,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},Z=()=>{H.value=!0},U=()=>{H.value=!1};Ge("VCSelectContainerEvent",{focus:j,blur:Y});const ee=[];je(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)}),Ze(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)});const G=function(K){var q,pe;const{target:W}=K,X=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(X&&X.contains(W)){const re=setTimeout(()=>{var de;const ge=ee.indexOf(re);ge!==-1&&ee.splice(ge,1),y(),!a.value&&!X.contains(document.activeElement)&&((de=f.value)===null||de===void 0||de.focus())});ee.push(re)}for(var ne=arguments.length,ae=new Array(ne>1?ne-1:0),se=1;se{};return je(()=>{be(_,()=>{var K;if(_.value){const q=Math.ceil((K=c.value)===null||K===void 0?void 0:K.offsetWidth);J.value!==q&&!Number.isNaN(q)&&(J.value=q)}},{immediate:!0,flush:"post"})}),Mz([c,d],_,E),Az(Wd(m(m({},No(e)),{open:w,triggerOpen:_,showSearch:i,multiple:l,toggleOpen:E}))),()=>{const K=m(m({},e),n),{prefixCls:q,id:pe,open:W,defaultOpen:X,mode:ne,showSearch:ae,searchValue:se,onSearch:re,allowClear:de,clearIcon:ge,showArrow:me,inputIcon:fe,disabled:ye,loading:Se,getInputElement:ue,getPopupContainer:ce,placement:he,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,showAction:Ne,direction:_e,tokenSeparators:De,tagRender:Je,optionLabelRender:ft,onPopupScroll:it,onDropdownVisibleChange:pt,onFocus:ht,onBlur:Ut,onKeyup:Jt,onKeydown:rn,onMousedown:jt,onClear:xn,omitDomProps:Wn,getRawInputElement:uo,displayValues:To,onDisplayValuesChange:Vn,emptyOptions:El,activeDescendantId:Ee,activeValue:Ue,OptionList:Ke}=K,Ct=Rz(K,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),en=ne==="combobox"&&ue&&ue()||null,Wt=typeof uo=="function"&&uo(),Kn=m({},Ct);let gn;Wt&&(gn=Mo=>{E(Mo)}),Dz.forEach(Mo=>{delete Kn[Mo]}),Wn==null||Wn.forEach(Mo=>{delete Kn[Mo]});const Go=me!==void 0?me:Se||!l.value&&ne!=="combobox";let Jn;Go&&(Jn=p(Hd,{class:ie(`${q}-arrow`,{[`${q}-arrow-loading`]:Se}),customizeIcon:fe,customizeIconProps:{loading:Se,searchValue:x.value,open:w.value,focused:h.value,showSearch:i.value}},null));let fo;const At=()=>{xn==null||xn(),Vn([],{type:"clear",values:To}),R("",!1,!1)};!ye&&de&&(To.length||x.value)&&(fo=p(Hd,{class:`${q}-clear`,onMousedown:At,customizeIcon:ge},{default:()=>[Lt("×")]}));const Eo=p(Ke,{ref:g},m(m({},s.customSlots),{option:r.option})),po=ie(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:l.value,[`${q}-single`]:!l.value,[`${q}-allow-clear`]:de,[`${q}-show-arrow`]:Go,[`${q}-disabled`]:ye,[`${q}-loading`]:Se,[`${q}-open`]:w.value,[`${q}-customize-input`]:en,[`${q}-show-search`]:i.value}),Wr=p(ez,{ref:d,disabled:ye,prefixCls:q,visible:_.value,popupElement:Eo,containerWidth:J.value,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,direction:_e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,placement:he,getPopupContainer:ce,empty:El,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:gn,onPopupMouseEnter:Q,onPopupFocusin:Z,onPopupFocusout:U},{default:()=>Wt?Kt(Wt)&&dt(Wt,{ref:u},!1,!0):p(Ez,D(D({},e),{},{domRef:u,prefixCls:q,inputElement:en,ref:f,id:pe,showSearch:i.value,mode:ne,activeDescendantId:Ee,tagRender:Je,optionLabelRender:ft,values:To,open:w.value,onToggleOpen:E,activeValue:Ue,searchValue:x.value,onSearch:R,onSearchSubmit:z,onRemove:L,tokenWithEnter:A.value}),null)});let Vr;return Wt?Vr=Wr:Vr=p("div",D(D({},Kn),{},{class:po,ref:c,onMousedown:G,onKeydown:N,onKeyup:F}),[h.value&&!w.value&&p("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${To.map(Mo=>{let{label:Ei,value:_o}=Mo;return["number","string"].includes(typeof Ei)?Ei:_o}).join(", ")}`]),Wr,Jn,fo]),Vr}}}),hp=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=m(m({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),p("div",{style:s},[p(xo,{onResize:u=>{let{offsetHeight:d}=u;d&&l&&l()}},{default:()=>[p("div",{style:c,class:ie({[`${r}-holder-inner`]:r})},[(a=i.default)===null||a===void 0?void 0:a.call(i)])]})])};hp.displayName="Filter";hp.inheritAttrs=!1;hp.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Fz=hp,AI=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=yt((r=o.default)===null||r===void 0?void 0:r.call(o));return l&&l.length?sn(l[0],{ref:n}):l};AI.props={setRef:{type:Function,default:()=>{}}};const Lz=AI,kz=20;function DC(e){return"touches"in e?e.touches[0].pageY:e.pageY}const zz=oe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:sc(),thumbRef:sc(),visibleTimeout:null,state:ut({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Ye.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;m(this.state,{dragging:!0,pageY:DC(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(Ye.cancel(this.moveRaf),t){const l=DC(e)-n,i=o+l,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),c=s?i/s:0,u=Math.ceil(c*a);this.moveRaf=Ye(()=>{r(u)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,kz),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return p("div",{ref:this.scrollbarRef,class:ie(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p("div",{ref:this.thumbRef,class:ie(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Hz(e,t,n,o){const r=new Map,l=new Map,i=le(Symbol("update"));be(e,()=>{i.value=Symbol("update")});let a;function s(){Ye.cancel(a)}function c(){s(),a=Ye(()=>{r.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;l.get(f)!==g&&(i.value=Symbol("update"),l.set(f,d.offsetHeight))}})})}function u(d,f){const g=t(d),v=r.get(g);f?(r.set(g,f.$el||f),c()):r.delete(g),!v!=!f&&(f?n==null||n(d):o==null||o(d))}return Rn(()=>{s()}),[u,c,l,i]}function jz(e,t,n,o,r,l,i,a){let s;return c=>{if(c==null){a();return}Ye.cancel(s);const u=t.value,d=o.itemHeight;if(typeof c=="number")i(c);else if(c&&typeof c=="object"){let f;const{align:g}=c;"index"in c?{index:f}=c:f=u.findIndex(b=>r(b)===c.key);const{offset:v=0}=c,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,I=0;const T=Math.min(u.length,f);for(let A=0;A<=T;A+=1){const R=r(u[A]);w=O;const z=n.get(R);I=w+(z===void 0?d:z),O=I,A===f&&z===void 0&&($=!0)}const _=e.value.scrollTop;let E=null;switch(C){case"top":E=w-v;break;case"bottom":E=I-S+v;break;default:{const A=_+S;w<_?x="top":I>A&&(x="bottom")}}E!==null&&E!==_&&i(E)}s=Ye(()=>{$&&l(),h(b-1,x)},2)};h(5)}}}const Wz=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Vz=Wz,RI=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=l<0&&e.value||l>0&&t.value;return i&&a?(clearTimeout(o),n=!1):(!a||n)&&r(),!n&&a}};function Kz(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=RI(t,n);function c(d){if(!e.value)return;Ye.cancel(l);const{deltaY:f}=d;r+=f,i=f,!s(f)&&(Vz||d.preventDefault(),l=Ye(()=>{o(r*(a?10:1)),r=0}))}function u(d){e.value&&(a=d.detail===i)}return[c,u]}const Gz=14/15;function Xz(e,t,n){let o=!1,r=0,l=null,i=null;const a=()=>{l&&(l.removeEventListener("touchmove",s),l.removeEventListener("touchend",c))},s=f=>{if(o){const g=Math.ceil(f.touches[0].pageY);let v=r-g;r=g,n(v)&&f.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=Gz,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},c=()=>{o=!1,a()},u=f=>{a(),f.touches.length===1&&!o&&(o=!0,r=Math.ceil(f.touches[0].pageY),l=f.target,l.addEventListener("touchmove",s,{passive:!1}),l.addEventListener("touchend",c))},d=()=>{};je(()=>{document.addEventListener("touchmove",d,{passive:!1}),be(e,f=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(i),f&&t.value.addEventListener("touchstart",u,{passive:!1})},{immediate:!0})}),Ze(()=>{document.removeEventListener("touchmove",d)})}var Uz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const c=t+s,u=r(a,c,{}),d=i(a);return p(Lz,{key:d,setRef:f=>o(a,f)},{default:()=>[u]})})}const Qz=oe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:L,itemHeight:k,virtual:j}=e;return!!(j!==!1&&L&&k)}),r=P(()=>{const{height:L,itemHeight:k,data:j}=e;return o.value&&j&&k*j.length>L}),l=ut({scrollTop:0,scrollMoving:!1}),i=P(()=>e.data||Yz),a=te([]);be(i,()=>{a.value=Qe(i.value).slice()},{immediate:!0});const s=te(L=>{});be(()=>e.itemKey,L=>{typeof L=="function"?s.value=L:s.value=k=>k==null?void 0:k[L]},{immediate:!0});const c=te(),u=te(),d=te(),f=L=>s.value(L),g={getKey:f};function v(L){let k;typeof L=="function"?k=L(l.scrollTop):k=L;const j=O(k);c.value&&(c.value.scrollTop=j),l.scrollTop=j}const[h,b,y,S]=Hz(a,f,null,null),$=ut({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=te(0);je(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),An(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),be([o,a],()=>{o.value||m($,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),be([o,a,x,r],()=>{o.value&&!r.value&&m($,{scrollHeight:x.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(l.scrollTop=c.value.scrollTop)},{immediate:!0}),be([r,o,()=>l.scrollTop,a,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let L=0,k,j,H;const Y=a.value.length,Z=a.value,U=l.scrollTop,{itemHeight:ee,height:G}=e,J=U+G;for(let Q=0;Q=U&&(k=Q,j=L),H===void 0&&W>J&&(H=Q),L=W}k===void 0&&(k=0,j=0,H=Math.ceil(G/ee)),H===void 0&&(H=Y-1),H=Math.min(H+1,Y),m($,{scrollHeight:L,start:k,end:H,offset:j})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(L){let k=L;return Number.isNaN(C.value)||(k=Math.min(k,C.value)),k=Math.max(k,0),k}const w=P(()=>l.scrollTop<=0),I=P(()=>l.scrollTop>=C.value),T=RI(w,I);function _(L){v(L)}function E(L){var k;const{scrollTop:j}=L.currentTarget;j!==l.scrollTop&&v(j),(k=e.onScroll)===null||k===void 0||k.call(e,L)}const[A,R]=Kz(o,w,I,L=>{v(k=>k+L)});Xz(o,c,(L,k)=>T(L,k)?!1:(A({preventDefault(){},deltaY:L}),!0));function z(L){o.value&&L.preventDefault()}const M=()=>{c.value&&(c.value.removeEventListener("wheel",A,nn?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",R),c.value.removeEventListener("MozMousePixelScroll",z))};ke(()=>{ot(()=>{c.value&&(M(),c.value.addEventListener("wheel",A,nn?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",R),c.value.addEventListener("MozMousePixelScroll",z))})}),Ze(()=>{M()});const B=jz(c,a,y,e,f,b,v,()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()});n({scrollTo:B});const N=P(()=>{let L=null;return e.height&&(L=m({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},qz),o.value&&(L.overflowY="hidden",l.scrollMoving&&(L.pointerEvents="none"))),L});return be([()=>$.start,()=>$.end,a],()=>{if(e.onVisibleChange){const L=a.value.slice($.start,$.end+1);e.onVisibleChange(L,a.value)}},{flush:"post"}),{state:l,mergedData:a,componentStyle:N,onFallbackScroll:E,onScrollBar:_,componentRef:c,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()}}},render(){const e=m(m({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:f}=e,g=Uz(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=ie(t,f),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:I,sharedConfig:T,setInstance:_,mergedData:E,delayHideScrollBar:A}=this;return p("div",D({style:m(m({},d),{position:"relative"}),class:v},g),[p(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:A},{default:()=>[p(Fz,{prefixCls:t,height:b,offset:y,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>Zz(E,S,$,_,u,T)})]}),w&&p(zz,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:E.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),DI=Qz;function q0(e,t,n){const o=le(e());return be(t,(r,l)=>{n?n(r,l)&&(o.value=e()):o.value=e()}),o}function Jz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const BI=Symbol("SelectContextKey");function eH(e){return Ge(BI,e)}function tH(){return He(BI,{})}var nH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),a=q0(()=>l.flattenOptions,[()=>r.open,()=>l.flattenOptions],C=>C[0]),s=sc(),c=C=>{C.preventDefault()},u=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=a.value.length;for(let I=0;I1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=C;const w={source:O?"keyboard":"mouse"},I=a.value[C];if(!I){l.onActiveValue(null,-1,w);return}l.onActiveValue(I.value,C,w)};be([()=>a.value.length,()=>r.searchValue],()=>{g(l.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=C=>l.rawValues.has(C)&&r.mode!=="combobox";be([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&l.rawValues.size===1){const C=Array.from(l.rawValues)[0],O=Qe(a.value).findIndex(w=>{let{data:I}=w;return I[l.fieldNames.value]===C});O!==-1&&(g(O),ot(()=>{u(O)}))}r.open&&ot(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&l.onSelect(C,{selected:!l.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=a.value[C];if(!O)return null;const w=O.data||{},{value:I}=w,{group:T}=O,_=wl(w,!0),E=b(O);return O?p("div",D(D({"aria-label":typeof E=="string"&&!T?E:null},_),{},{key:C,role:T?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":v(I)}),[I]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case Oe.N:case Oe.P:case Oe.UP:case Oe.DOWN:{let I=0;if(O===Oe.UP?I=-1:O===Oe.DOWN?I=1:Jz()&&w&&(O===Oe.N?I=1:O===Oe.P&&(I=-1)),I!==0){const T=d(f.activeIndex+I,I);u(T),g(T,!0)}break}case Oe.ENTER:{const I=a.value[f.activeIndex];I&&!I.data.disabled?h(I.value):h(void 0),r.open&&C.preventDefault();break}case Oe.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{u(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:I,fieldNames:T,virtual:_,listHeight:E,listItemHeight:A}=l,R=o.option,{activeIndex:z}=f,M=Object.keys(T).map(B=>T[B]);return a.value.length===0?p("div",{role:"listbox",id:`${C}_list`,class:`${i.value}-empty`,onMousedown:c},[O]):p(We,null,[p("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(z-1),y(z),y(z+1)]),p(DI,{itemKey:"key",ref:s,data:a.value,height:E,itemHeight:A,fullHeight:!1,onMousedown:c,onScroll:w,virtual:_},{default:(B,N)=>{var F;const{group:L,groupOption:k,data:j,value:H}=B,{key:Y}=j,Z=typeof B.label=="function"?B.label():B.label;if(L){const ge=(F=j.title)!==null&&F!==void 0?F:BC(Z)&&Z;return p("div",{class:ie(i.value,`${i.value}-group`),title:ge},[R?R(j):Z!==void 0?Z:Y])}const{disabled:U,title:ee,children:G,style:J,class:Q,className:K}=j,q=nH(j,["disabled","title","children","style","class","className"]),pe=et(q,M),W=v(H),X=`${i.value}-option`,ne=ie(i.value,X,Q,K,{[`${X}-grouped`]:k,[`${X}-active`]:z===N&&!U,[`${X}-disabled`]:U,[`${X}-selected`]:W}),ae=b(B),se=!I||typeof I=="function"||W,re=typeof ae=="number"?ae:ae||H;let de=BC(re)?re.toString():void 0;return ee!==void 0&&(de=ee),p("div",D(D({},pe),{},{"aria-selected":W,class:ne,title:de,onMousemove:ge=>{q.onMousemove&&q.onMousemove(ge),!(z===N||U)&&g(N)},onClick:ge=>{U||h(H),q.onClick&&q.onClick(ge)},style:J}),[p("div",{class:`${X}-content`},[R?R(j):re]),Kt(I)||W,se&&p(Hd,{class:`${i.value}-option-state`,customizeIcon:I,customizeIconProps:{isSelected:W}},{default:()=>[W?"✓":null]})])}})])}}}),rH=oH;var lH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return yt(e).map((o,r)=>{var l;if(!Kt(o)||!o.type)return null;const{type:{isSelectOptGroup:i},key:a,children:s,props:c}=o;if(t||!i)return iH(o);const u=s&&s.default?s.default():void 0,d=(c==null?void 0:c.label)||((l=s.label)===null||l===void 0?void 0:l.call(s))||a;return m(m({key:`__RC_SELECT_GRP__${a===null?r:String(a)}__`},c),{label:d,options:NI(u||[])})}).filter(o=>o)}function aH(e,t,n){const o=te(),r=te(),l=te(),i=te([]);return be([e,t],()=>{e.value?i.value=Qe(e.value).slice():i.value=NI(t.value)},{immediate:!0,deep:!0}),ke(()=>{const a=i.value,s=new Map,c=new Map,u=n.value;function d(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:le("");const t=`rc_select_${cH()}`;return e.value||t}function FI(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Yg(e,t){return FI(e).join("").toUpperCase().includes(t)}const uH=(e,t,n,o,r)=>P(()=>{const l=n.value,i=r==null?void 0:r.value,a=o==null?void 0:o.value;if(!l||a===!1)return e.value;const{options:s,label:c,value:u}=t.value,d=[],f=typeof a=="function",g=l.toUpperCase(),v=f?a:(b,y)=>i?Yg(y[i],g):y[s]?Yg(y[c!=="children"?c:"label"],g):Yg(y[u],g),h=f?b=>Ov(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(v(l,h(b)))d.push(b);else{const S=b[s].filter($=>v(l,h($)));S.length&&d.push(m(m({},b),{[s]:S}))}return}v(l,h(b))&&d.push(b)}),d}),dH=(e,t)=>{const n=te({values:new Map,options:new Map});return[P(()=>{const{values:l,options:i}=n.value,a=e.value.map(u=>{var d;return u.label===void 0?m(m({},u),{label:(d=l.get(u.value))===null||d===void 0?void 0:d.label}):u}),s=new Map,c=new Map;return a.forEach(u=>{s.set(u.value,u),c.set(u.value,t.value.get(u.value)||i.get(u.value))}),n.value.values=s,n.value.options=c,a}),l=>t.value.get(l)||n.value.options.get(l)]};function Pt(e,t){const{defaultValue:n,value:o=le()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=$t(o)),n!==void 0&&(r=typeof n=="function"?n():n);const l=le(r),i=le(r);ke(()=>{let s=o.value!==void 0?o.value:l.value;t.postState&&(s=t.postState(s)),i.value=s});function a(s){const c=i.value;l.value=s,Qe(i.value)!==s&&t.onChange&&t.onChange(s,c)}return be(o,()=>{l.value=o.value}),[i,a]}function vt(e){const t=typeof e=="function"?e():e,n=le(t);function o(r){n.value=r}return[n,o]}const fH=["inputValue"];function LI(){return m(m({},gp()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function pH(e){return!e||typeof e!="object"}const gH=oe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:qe(LI(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>_I(e.mode)),a=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),c=P(()=>ZP(e.fieldNames,a.value)),[u,d]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Q=>Q||""}),f=aH(ze(e,"options"),ze(e,"children"),c),{valueOptions:g,labelOptions:v,options:h}=f,b=Q=>FI(Q).map(q=>{var pe,W;let X,ne,ae,se;pH(q)?X=q:(ae=q.key,ne=q.label,X=(pe=q.value)!==null&&pe!==void 0?pe:ae);const re=g.value.get(X);return re&&(ne===void 0&&(ne=re==null?void 0:re[e.optionLabelProp||c.value.label]),ae===void 0&&(ae=(W=re==null?void 0:re.key)!==null&&W!==void 0?W:X),se=re==null?void 0:re.disabled),{label:ne,value:X,key:ae,disabled:se,option:re}}),[y,S]=Pt(e.defaultValue,{value:ze(e,"value")}),$=P(()=>{var Q;const K=b(y.value);return e.mode==="combobox"&&!(!((Q=K[0])===null||Q===void 0)&&Q.value)?[]:K}),[x,C]=dH($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Q=x.value[0];if(Q.value===null&&(Q.label===null||Q.label===void 0))return[]}return x.value.map(Q=>{var K;return m(m({},Q),{label:(K=typeof Q.label=="function"?Q.label():Q.label)!==null&&K!==void 0?K:Q.value})})}),w=P(()=>new Set(x.value.map(Q=>Q.value)));ke(()=>{var Q;if(e.mode==="combobox"){const K=(Q=x.value[0])===null||Q===void 0?void 0:Q.value;K!=null&&d(String(K))}},{flush:"post"});const I=(Q,K)=>{const q=K??Q;return{[c.value.value]:Q,[c.value.label]:q}},T=te();ke(()=>{if(e.mode!=="tags"){T.value=h.value;return}const Q=h.value.slice(),K=q=>g.value.has(q);[...x.value].sort((q,pe)=>q.value{const pe=q.value;K(pe)||Q.push(I(pe,q.label))}),T.value=Q});const _=uH(T,c,u,s,ze(e,"optionFilterProp")),E=P(()=>e.mode!=="tags"||!u.value||_.value.some(Q=>Q[e.optionFilterProp||"value"]===u.value)?_.value:[I(u.value),..._.value]),A=P(()=>e.filterSort?[...E.value].sort((Q,K)=>e.filterSort(Q,K)):E.value),R=P(()=>aN(A.value,{fieldNames:c.value,childrenAsData:a.value})),z=Q=>{const K=b(Q);if(S(K),e.onChange&&(K.length!==x.value.length||K.some((q,pe)=>{var W;return((W=x.value[pe])===null||W===void 0?void 0:W.value)!==(q==null?void 0:q.value)}))){const q=e.labelInValue?K.map(W=>m(m({},W),{originLabel:W.label,label:typeof W.label=="function"?W.label():W.label})):K.map(W=>W.value),pe=K.map(W=>Ov(C(W.value)));e.onChange(i.value?q:q[0],i.value?pe:pe[0])}},[M,B]=vt(null),[N,F]=vt(0),L=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),k=function(Q,K){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F(K),e.backfill&&e.mode==="combobox"&&Q!==null&&q==="keyboard"&&B(String(Q))},j=(Q,K)=>{const q=()=>{var pe;const W=C(Q),X=W==null?void 0:W[c.value.label];return[e.labelInValue?{label:typeof X=="function"?X():X,originLabel:X,value:Q,key:(pe=W==null?void 0:W.key)!==null&&pe!==void 0?pe:Q}:Q,Ov(W)]};if(K&&e.onSelect){const[pe,W]=q();e.onSelect(pe,W)}else if(!K&&e.onDeselect){const[pe,W]=q();e.onDeselect(pe,W)}},H=(Q,K)=>{let q;const pe=i.value?K.selected:!0;pe?q=i.value?[...x.value,Q]:[Q]:q=x.value.filter(W=>W.value!==Q),z(q),j(Q,pe),e.mode==="combobox"?B(""):(!i.value||e.autoClearSearchValue)&&(d(""),B(""))},Y=(Q,K)=>{z(Q),(K.type==="remove"||K.type==="clear")&&K.values.forEach(q=>{j(q.value,!1)})},Z=(Q,K)=>{var q;if(d(Q),B(null),K.source==="submit"){const pe=(Q||"").trim();if(pe){const W=Array.from(new Set([...w.value,pe]));z(W),j(pe,!0),d("")}return}K.source!=="blur"&&(e.mode==="combobox"&&z(Q),(q=e.onSearch)===null||q===void 0||q.call(e,Q))},U=Q=>{let K=Q;e.mode!=="tags"&&(K=Q.map(pe=>{const W=v.value.get(pe);return W==null?void 0:W.value}).filter(pe=>pe!==void 0));const q=Array.from(new Set([...w.value,...K]));z(q),q.forEach(pe=>{j(pe,!0)})},ee=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);eH(Wd(m(m({},f),{flattenOptions:R,onActiveValue:k,defaultActiveFirstOption:L,onSelect:H,menuItemSelectedIcon:ze(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:c,virtual:ee,listHeight:ze(e,"listHeight"),listItemHeight:ze(e,"listItemHeight"),childrenAsData:a})));const G=le();n({focus(){var Q;(Q=G.value)===null||Q===void 0||Q.focus()},blur(){var Q;(Q=G.value)===null||Q===void 0||Q.blur()},scrollTo(Q){var K;(K=G.value)===null||K===void 0||K.scrollTo(Q)}});const J=P(()=>et(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>p(Y0,D(D(D({},J.value),o),{},{id:l,prefixCls:e.prefixCls,ref:G,omitDomProps:fH,mode:e.mode,displayValues:O.value,onDisplayValuesChange:Y,searchValue:u.value,onSearch:Z,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:rH,emptyOptions:!R.value.length,activeValue:M.value,activeDescendantId:`${l}_list_${N.value}`}),r)}}),Q0=()=>null;Q0.isSelectOption=!0;Q0.displayName="ASelectOption";const hH=Q0,J0=()=>null;J0.isSelectOptGroup=!0;J0.displayName="ASelectOptGroup";const vH=J0;var mH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const bH=mH;var yH=Symbol("iconContext"),kI=function(){return He(yH,{prefixCls:le("anticon"),rootClassName:le(""),csp:le()})};function eb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function SH(e,t){return e&&e.contains?e.contains(t):!1}var FC="data-vc-order",$H="vc-icon-key",Bv=new Map;function zI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$H}function tb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HI(e){return Array.from((Bv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!eb())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(FC,CH(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=tb(t),i=l.firstChild;if(o){if(o==="queue"){var a=HI(l).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(FC))});if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function xH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tb(t);return HI(n).find(function(o){return o.getAttribute(zI(t))===e})}function wH(e,t){var n=Bv.get(e);if(!n||!SH(document,n)){var o=jI("",t),r=o.parentNode;Bv.set(e,r),e.removeChild(o)}}function OH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=tb(n);wH(o,n);var r=xH(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var l=jI(e,n);return l.setAttribute(zI(n),t),l}function LC(e){for(var t=1;t * { - 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); - } -} -`;function KI(e){return e&&e.getRootNode&&e.getRootNode()}function TH(e){return eb()?KI(e)instanceof ShadowRoot:!1}function EH(e){return TH(e)?KI(e):null}var MH=function(){var t=kI(),n=t.prefixCls,o=t.csp,r=pn(),l=IH;n&&(l=l.replace(/anticon/g,n.value)),ot(function(){if(eb()){var i=r.vnode.el,a=EH(i);OH(l,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:a})}})},_H=["icon","primaryColor","secondaryColor"];function AH(e,t){if(e==null)return{};var n=RH(e,t),o,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function RH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}function Hu(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function ZH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}GI(Y9.primary);var La=function(t,n){var o,r=jC({},t,n.attrs),l=r.class,i=r.icon,a=r.spin,s=r.rotate,c=r.tabindex,u=r.twoToneColor,d=r.onClick,f=qH(r,VH),g=kI(),v=g.prefixCls,h=g.rootClassName,b=(o={},ss(o,h.value,!!h.value),ss(o,v.value,!0),ss(o,"".concat(v.value,"-").concat(i.name),!!i.name),ss(o,"".concat(v.value,"-spin"),!!a||i.name==="loading"),o),y=c;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=VI(u),x=KH($,2),C=x[0],O=x[1];return p("span",jC({role:"img","aria-label":i.name},f,{onClick:d,class:[b,l],tabindex:y}),[p(nb,{icon:i,primaryColor:C,secondaryColor:O,style:S},null),p(WH,null,null)])};La.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};La.displayName="AntdIcon";La.inheritAttrs=!1;La.getTwoToneColor=jH;La.setTwoToneColor=GI;const tt=La;function WC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:l,feedbackIcon:i,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=c??p(Qn,null,null),g=y=>p(We,null,[a!==!1&&y,l&&i]);let v=null;if(s!==void 0)v=g(s);else if(n)v=g(p(co,{spin:!0},null));else{const y=`${r}-suffix`;v=S=>{let{open:$,showSearch:x}=S;return g($&&x?p(mp,{class:y},null):p(Ec,{class:y},null))}}let h=null;u!==void 0?h=u:o?h=p(vp,null,null):h=null;let b=null;return d!==void 0?b=d:b=p(Zn,null,null),{clearIcon:f,suffixIcon:v,itemIcon:h,removeIcon:b}}function ub(e){const t=Symbol("contextKey");return{useProvide:(r,l)=>{const i=ut({});return Ge(t,i),ke(()=>{m(i,r,l||{})}),i},useInject:()=>He(t,e)||{}}}const Vd=Symbol("ContextProps"),Kd=Symbol("InternalContextProps"),gj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=le(new Map),o=(l,i)=>{n.value.set(l,i),n.value=new Map(n.value)},r=l=>{n.value.delete(l),n.value=new Map(n.value)};pn(),be([t,n],()=>{}),Ge(Vd,e),Ge(Kd,{addFormItemField:o,removeFormItemField:r})},Fv={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Lv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qt=()=>{const e=He(Kd,Lv),t=Symbol("FormItemFieldKey"),n=pn();return e.addFormItemField(t,n.type),Ze(()=>{e.removeFormItemField(t)}),Ge(Kd,Lv),Ge(Vd,Fv),He(Vd,Fv)},Gd=oe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Ge(Kd,Lv),Ge(Vd,Fv),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),un=ub({}),Xd=oe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return un.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return ie({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ko=(e,t)=>t||e,hj=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vj=hj,mj=e=>{const{componentCls:t}=e;return{[t]:{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"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},XI=Ve("Space",e=>[mj(e),vj(e)]);var bj="[object Symbol]";function bp(e){return typeof e=="symbol"||jo(e)&&xl(e)==bj}function yp(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=Nj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zj(e){return function(){return e}}var Hj=function(){try{var e=Ci(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ud=Hj;var jj=Ud?function(e,t){return Ud(e,"toString",{configurable:!0,enumerable:!1,value:zj(t),writable:!0})}:db;const Wj=jj;var Vj=kj(Wj);const YI=Vj;function Kj(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}function QI(e,t,n){t=="__proto__"&&Ud?Ud(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yj=Object.prototype,qj=Yj.hasOwnProperty;function fb(e,t,n){var o=e[t];(!(qj.call(e,t)&&F0(o,n))||n===void 0&&!(t in e))&&QI(e,t,n)}function Mc(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l0&&n(a)?t>1?eT(a,t-1,n,o,r):k0(r,a):o||(r[r.length]=a)}return r}function hW(e){var t=e==null?0:e.length;return t?eT(e,1):[]}function tT(e){return YI(JI(e,void 0,hW),e+"")}var vW=SI(Object.getPrototypeOf,Object);const vb=vW;var mW="[object Object]",bW=Function.prototype,yW=Object.prototype,nT=bW.toString,SW=yW.hasOwnProperty,$W=nT.call(Object);function mb(e){if(!jo(e)||xl(e)!=mW)return!1;var t=vb(e);if(t===null)return!0;var n=SW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nT.call(n)==$W}function CW(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o=t||w<0||d&&I>=l}function y(){var O=qg();if(b(O))return S(O);a=setTimeout(y,h(O))}function S(O){return a=void 0,f&&o?g(O):(o=r=void 0,i)}function $(){a!==void 0&&clearTimeout(a),c=0,o=s=r=a=void 0}function x(){return a===void 0?i:S(qg())}function C(){var O=qg(),w=b(O);if(o=arguments,r=this,s=O,w){if(a===void 0)return v(s);if(d)return clearTimeout(a),a=setTimeout(y,t),g(s)}return a===void 0&&(a=setTimeout(y,t)),i}return C.cancel=$,C.flush=x,C}function hK(e){return jo(e)&&Da(e)}function fT(e,t,n){for(var o=-1,r=e==null?0:e.length;++o-1?r[l?t[i]:i]:void 0}}var bK=Math.max;function yK(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:Mj(n);return r<0&&(r=bK(o+r,0)),qI(e,yb(t),r)}var SK=mK(yK);const $K=SK;function CK(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&u.length>=120)?new Ia(i&&u):void 0}u=e[0];var d=-1,f=a[0];e:for(;++d1),l}),Mc(e,lT(e),n),o&&(n=Ms(n,FK|LK|kK,NK));for(var r=t.length;r--;)BK(n,t[r]);return n});const HK=zK;function jK(e,t,n,o){if(!Ho(e))return e;t=ka(t,e);for(var r=-1,l=t.length,i=l-1,a=e;a!=null&&++r=ZK){var c=t?null:qK(e);if(c)return L0(c);i=!1,r=Ld,s=new Ia}else s=t?[]:a;e:for(;++o({compactSize:String,compactDirection:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),isFirstItem:Ce(),isLastItem:Ce()}),$p=ub(null),Ol=(e,t)=>{const n=$p.useInject(),o=P(()=>{if(!n||pT(n))return"";const{compactDirection:r,isFirstItem:l,isLastItem:i}=n,a=r==="vertical"?"-vertical-":"-";return ie({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:l,[`${e.value}-compact${a}last-item`]:i,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n==null?void 0:n.compactSize),compactDirection:P(()=>n==null?void 0:n.compactDirection),compactItemClassnames:o}},cc=oe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return $p.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),eG=()=>({prefixCls:String,size:{type:String},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),tG=oe({name:"CompactItem",props:JK(),setup(e,t){let{slots:n}=t;return $p.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),nG=oe({name:"ASpaceCompact",inheritAttrs:!1,props:eG(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("space-compact",e),i=$p.useInject(),[a,s]=XI(r),c=P(()=>ie(r.value,s.value,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var u;const d=yt(((u=o.default)===null||u===void 0?void 0:u.call(o))||[]);return d.length===0?null:a(p("div",D(D({},n),{},{class:[c.value,n.class]}),[d.map((f,g)=>{var v;const h=f&&f.key||`${r.value}-item-${g}`,b=!i||pT(i);return p(tG,{key:h,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||(i==null?void 0:i.isFirstItem)),isLastItem:g===d.length-1&&(b||(i==null?void 0:i.isLastItem))},{default:()=>[f]})})]))}}}),Yd=nG,oG=e=>({animationDuration:e,animationFillMode:"both"}),rG=e=>({animationDuration:e,animationFillMode:"both"}),_c=function(e,t,n,o){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${l}${e}-enter, - ${l}${e}-appear - `]:m(m({},oG(o)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:m(m({},rG(o)),{animationPlayState:"paused"}),[` - ${l}${e}-enter${e}-enter-active, - ${l}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lG=new nt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),iG=new nt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[_c(o,lG,iG,e.motionDurationMid,t),{[` - ${r}${o}-enter, - ${r}${o}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},aG=new nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sG=new nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cG=new nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uG=new nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dG=new nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fG=new nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pG=new nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gG=new nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hG={"move-up":{inKeyframes:pG,outKeyframes:gG},"move-down":{inKeyframes:aG,outKeyframes:sG},"move-left":{inKeyframes:cG,outKeyframes:uG},"move-right":{inKeyframes:dG,outKeyframes:fG}},Ma=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=hG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cp=new nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xp=new nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wp=new nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Op=new nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vG=new nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mG=new nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bG=new nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yG=new nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),SG={"slide-up":{inKeyframes:Cp,outKeyframes:xp},"slide-down":{inKeyframes:wp,outKeyframes:Op},"slide-left":{inKeyframes:vG,outKeyframes:mG},"slide-right":{inKeyframes:bG,outKeyframes:yG}},sr=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=SG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Cb=new nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$G=new nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cx=new nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ux=new nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),CG=new nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xG=new nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wG=new nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OG=new nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),PG=new nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IG=new nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TG=new nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),EG=new nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),MG={zoom:{inKeyframes:Cb,outKeyframes:$G},"zoom-big":{inKeyframes:cx,outKeyframes:ux},"zoom-big-fast":{inKeyframes:cx,outKeyframes:ux},"zoom-left":{inKeyframes:wG,outKeyframes:OG},"zoom-right":{inKeyframes:PG,outKeyframes:IG},"zoom-up":{inKeyframes:CG,outKeyframes:xG},"zoom-down":{inKeyframes:TG,outKeyframes:EG}},Ha=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=MG[t];return[_c(o,r,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_G=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ac=_G,dx=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},AG=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:m(m({},Xe(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:Cp},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:wp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:xp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Op},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:m(m({},dx(e)),{color:e.colorTextDisabled}),[`${o}`]:m(m({},dx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":m({flex:"auto"},Gt),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},RG=AG,Di=2;function hT(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o,l=Math.ceil(r/2);return[r,l]}function Qg(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=hT(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Di}px ${Di*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Di}px 0`,lineHeight:`${l}px`,content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:Di,marginBottom:Di,lineHeight:`${l-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Di*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":m(m({},yi()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function DG(e){const{componentCls:t}=e,n=Fe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=hT(e);return[Qg(e),Qg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Qg(Fe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Jg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:m(m({},Xe(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function BG(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Jg(e),Jg(Fe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.fontSize*1.5}}}},Jg(Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function NG(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":m(m({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function FG(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ja(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:m(m({},NG(e,o,t)),FG(n,o,t))}}const LG=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},eh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:m(m({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},kG=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},zG=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:m(m({},LG(e)),kG(e)),[`${t}-selection-item`]:m({flex:1,fontWeight:"normal"},Gt),[`${t}-selection-placeholder`]:m(m({},Gt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:m(m({},yi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},HG=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},zG(e),BG(e),DG(e),RG(e),{[`${t}-rtl`]:{direction:"rtl"}},eh(t,Fe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),eh(`${t}-status-error`,Fe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),eh(`${t}-status-warning`,Fe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ja(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xb=Ve("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[HG(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Pp=()=>m(m({},et(LI(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Le([Array,Object,String,Number]),defaultValue:Le([Array,Object,String,Number]),notFoundContent:V.any,suffixIcon:V.any,itemIcon:V.any,size:Be(),mode:Be(),bordered:Ce(!0),transitionName:String,choiceTransitionName:Be(""),popupClassName:String,dropdownClassName:String,placement:Be(),status:Be(),"onUpdate:value":ve()}),fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",er=oe({compatConfig:{MODE:3},name:"ASelect",Option:hH,OptGroup:vH,inheritAttrs:!1,props:qe(Pp(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:fx,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:l}=t;const i=le(),a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),u=()=>{var H;(H=i.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=i.value)===null||H===void 0||H.blur()},f=H=>{var Y;(Y=i.value)===null||Y===void 0||Y.scrollTo(H)},g=P(()=>{const{mode:H}=e;if(H!=="combobox")return H===fx?"combobox":H}),{prefixCls:v,direction:h,configProvider:b,renderEmpty:y,size:S,getPrefixCls:$,getPopupContainer:x,disabled:C,select:O}=Te("select",e),{compactSize:w,compactItemClassnames:I}=Ol(v,h),T=P(()=>w.value||S.value),_=qn(),E=P(()=>{var H;return(H=C.value)!==null&&H!==void 0?H:_.value}),[A,R]=xb(v),z=P(()=>$()),M=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),B=P(()=>_n(z.value,K0(M.value),e.transitionName)),N=P(()=>ie({[`${v.value}-lg`]:T.value==="large",[`${v.value}-sm`]:T.value==="small",[`${v.value}-rtl`]:h.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Tn(v.value,c.value,s.hasFeedback),I.value,R.value)),F=function(){for(var H=arguments.length,Y=new Array(H),Z=0;Z{o("blur",H),a.onFieldBlur()};l({blur:d,focus:u,scrollTo:f});const k=P(()=>g.value==="multiple"||g.value==="tags"),j=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(k.value||g.value==="combobox"));return()=>{var H,Y,Z,U;const{notFoundContent:ee,listHeight:G=256,listItemHeight:J=24,popupClassName:Q,dropdownClassName:K,virtual:q,dropdownMatchSelectWidth:pe,id:W=a.id.value,placeholder:X=(H=r.placeholder)===null||H===void 0?void 0:H.call(r),showArrow:ne}=e,{hasFeedback:ae,feedbackIcon:se}=s;let re;ee!==void 0?re=ee:r.notFoundContent?re=r.notFoundContent():g.value==="combobox"?re=null:re=(y==null?void 0:y("Select"))||p(O0,{componentName:"Select"},null);const{suffixIcon:de,itemIcon:ge,removeIcon:me,clearIcon:fe}=cb(m(m({},e),{multiple:k.value,prefixCls:v.value,hasFeedback:ae,feedbackIcon:se,showArrow:j.value}),r),ye=et(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Se=ie(Q||K,{[`${v.value}-dropdown-${h.value}`]:h.value==="rtl"},R.value);return A(p(gH,D(D(D({ref:i,virtual:q,dropdownMatchSelectWidth:pe},ye),n),{},{showSearch:(Y=e.showSearch)!==null&&Y!==void 0?Y:(Z=O==null?void 0:O.value)===null||Z===void 0?void 0:Z.showSearch,placeholder:X,listHeight:G,listItemHeight:J,mode:g.value,prefixCls:v.value,direction:h.value,inputIcon:de,menuItemSelectedIcon:ge,removeIcon:me,clearIcon:fe,notFoundContent:re,class:[N.value,n.class],getPopupContainer:x==null?void 0:x.value,dropdownClassName:Se,onChange:F,onBlur:L,id:W,dropdownRender:ye.dropdownRender||r.dropdownRender,transitionName:B.value,children:(U=r.default)===null||U===void 0?void 0:U.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ae||ne,disabled:E.value}),{option:r.option}))}}});er.install=function(e){return e.component(er.name,er),e.component(er.Option.displayName,er.Option),e.component(er.OptGroup.displayName,er.OptGroup),e};const jG=er.Option,WG=er.OptGroup,Dr=er,wb=()=>null;wb.isSelectOption=!0;wb.displayName="AAutoCompleteOption";const ca=wb,Ob=()=>null;Ob.isSelectOptGroup=!0;Ob.displayName="AAutoCompleteOptGroup";const Wu=Ob;function VG(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const KG=()=>m(m({},et(Pp(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),GG=ca,XG=Wu,th=oe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:KG(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;It(),It(),It(!e.dropdownClassName);const l=le(),i=()=>{var u;const d=yt((u=n.default)===null||u===void 0?void 0:u.call(n));return d.length?d[0]:void 0};r({focus:()=>{var u;(u=l.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=l.value)===null||u===void 0||u.blur()}});const{prefixCls:c}=Te("select",e);return()=>{var u,d,f;const{size:g,dataSource:v,notFoundContent:h=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${c.value}-lg`]:g==="large",[`${c.value}-sm`]:g==="small",[`${c.value}-show-search`]:!0,[`${c.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];x.length&&VG(x[0])?b=x:b=v?v.map(C=>{if(Kt(C))return C;switch(typeof C){case"string":return p(ca,{key:C,value:C},{default:()=>[C]});case"object":return p(ca,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=et(m(m(m({},e),o),{mode:Dr.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:l}),["dataSource","loading"]);return p(Dr,$,D({default:()=>[b]},et(n,["default","dataSource","options"])))}}}),UG=m(th,{Option:ca,OptGroup:Wu,install(e){return e.component(th.name,th),e.component(ca.displayName,ca),e.component(Wu.displayName,Wu),e}});var YG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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:"check-circle",theme:"outlined"};const qG=YG;function px(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),vX=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:l,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:h}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, - padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},mX=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:l,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:g}=e;return{[t]:{"&-success":fu(r,o,n,e,t),"&-info":fu(g,f,d,e,t),"&-warning":fu(a,i,l,e,t),"&-error":m(m({},fu(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},bX=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:l,colorIcon:i,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:l,lineHeight:`${l}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}},yX=e=>[vX(e),mX(e),bX(e)],SX=Ve("Alert",e=>{const{fontSizeHeading3:t}=e,n=Fe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[yX(n)]}),$X={success:zr,info:Wa,error:Qn,warning:Hr},CX={success:vT,info:bT,error:yT,warning:mT},xX=Cn("success","info","warning","error"),wX=()=>({type:V.oneOf(xX),closable:{type:Boolean,default:void 0},closeText:V.any,message:V.any,description:V.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:V.any,closeIcon:V.any,onClose:Function}),OX=oe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:wX(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("alert",e),[s,c]=SX(i),u=te(!1),d=te(!1),f=te(),g=y=>{y.preventDefault();const S=f.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,u.value=!0,o("close",y)},v=()=>{var y;u.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});l({animationEnd:v});const b=te({});return()=>{var y,S,$,x,C,O,w,I,T,_;const{banner:E,closeIcon:A=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:R,showIcon:z}=e;const M=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),B=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),N=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),F=(I=e.icon)!==null&&I!==void 0?I:(T=n.icon)===null||T===void 0?void 0:T.call(n),L=(_=n.action)===null||_===void 0?void 0:_.call(n);z=E&&z===void 0?!0:z;const k=(B?CX:$X)[h.value]||null;M&&(R=!0);const j=i.value,H=ie(j,{[`${j}-${h.value}`]:!0,[`${j}-closing`]:u.value,[`${j}-with-description`]:!!B,[`${j}-no-icon`]:!z,[`${j}-banner`]:!!E,[`${j}-closable`]:R,[`${j}-rtl`]:a.value==="rtl",[c.value]:!0}),Y=R?p("button",{type:"button",onClick:g,class:`${j}-close-icon`,tabindex:0},[M?p("span",{class:`${j}-close-text`},[M]):A===void 0?p(Zn,null,null):A]):null,Z=F&&(Kt(F)?dt(F,{class:`${j}-icon`}):p("span",{class:`${j}-icon`},[F]))||p(k,{class:`${j}-icon`},null),U=Po(`${j}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:ee=>{ee.style.maxHeight=`${ee.offsetHeight}px`},onLeave:ee=>{ee.style.maxHeight="0px"}});return s(d.value?null:p(cn,U,{default:()=>[$n(p("div",D(D({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,H],"data-show":!u.value,ref:f}),[z?Z:null,p("div",{class:`${j}-content`},[N?p("div",{class:`${j}-message`},[N]):null,B?p("div",{class:`${j}-description`},[B]):null]),L?p("div",{class:`${j}-action`},[L]):null,Y]),[[En,!u.value]])]}))}}}),PX=Tt(OX),Or=["xxxl","xxl","xl","lg","md","sm","xs"],IX=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function Rb(){const[,e]=Fr();return P(()=>{const t=IX(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(l){return r=l,n.forEach(i=>i(r)),n.size>=1},subscribe(l){return n.size||this.register(),o+=1,n.set(o,l),l(r),o},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(t).forEach(l=>{const i=t[l],a=this.matchHandlers[i];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(l=>{const i=t[l],a=c=>{let{matches:u}=c;this.dispatch(m(m({},r),{[l]:u}))},s=window.matchMedia(i);s.addListener(a),this.matchHandlers[i]={mql:s,listener:a},a(s)})},responsiveMap:t}})}function Va(){const e=te({});let t=null;const n=Rb();return je(()=>{t=n.value.subscribe(o=>{e.value=o})}),Rn(()=>{n.value.unsubscribe(t)}),e}function ro(e){const t=te();return ke(()=>{t.value=e()},{flush:"sync"}),t}const TX=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,c,f)),{"&-lg":m({},y(a,u,g)),"&-sm":m({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},EX=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},ST=Ve("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Fe(e,{avatarBg:n,avatarColor:t});return[TX(o),EX(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}),$T=Symbol("AvatarContextKey"),MX=()=>He($T,{}),_X=e=>Ge($T,e),AX=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:V.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),RX=oe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:AX(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=te(!0),l=te(!1),i=te(1),a=te(null),s=te(null),{prefixCls:c}=Te("avatar",e),[u,d]=ST(c),f=MX(),g=P(()=>e.size==="default"?f.size:e.size),v=Va(),h=ro(()=>{if(typeof e.size!="object")return;const $=Or.find(C=>v.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!a.value||!s.value)return;const $=a.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;($==null?void 0:$())!==!1&&(r.value=!1)};return be(()=>e.src,()=>{ot(()=>{r.value=!0,i.value=1})}),be(()=>e.gap,()=>{ot(()=>{y()})}),je(()=>{ot(()=>{y(),l.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:I,draggable:T,crossOrigin:_}=e,E=($=f.shape)!==null&&$!==void 0?$:C,A=qt(n,e,"icon"),R=c.value,z={[`${o.class}`]:!!o.class,[R]:!0,[`${R}-lg`]:g.value==="large",[`${R}-sm`]:g.value==="small",[`${R}-${E}`]:!0,[`${R}-image`]:O&&r.value,[`${R}-icon`]:A,[d.value]:!0},M=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:A?`${g.value/2}px`:"18px"}:{},B=(x=n.default)===null||x===void 0?void 0:x.call(n);let N;if(O&&r.value)N=p("img",{draggable:T,src:O,srcset:I,onError:S,alt:w,crossorigin:_},null);else if(A)N=A;else if(l.value||i.value!==1){const F=`scale(${i.value}) translateX(-50%)`,L={msTransform:F,WebkitTransform:F,transform:F},k=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};N=p(xo,{onResize:y},{default:()=>[p("span",{class:`${R}-string`,ref:a,style:m(m({},k),L)},[B])]})}else N=p("span",{class:`${R}-string`,ref:a,style:{opacity:0}},[B]);return u(p("span",D(D({},o),{},{ref:s,class:z,style:[M,b(!!A),o.style]}),[N]))}}}),ni=RX,ho={adjustX:1,adjustY:1},vo=[0,0],CT={left:{points:["cr","cl"],overflow:ho,offset:[-4,0],targetOffset:vo},right:{points:["cl","cr"],overflow:ho,offset:[4,0],targetOffset:vo},top:{points:["bc","tc"],overflow:ho,offset:[0,-4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:ho,offset:[0,4],targetOffset:vo},topLeft:{points:["bl","tl"],overflow:ho,offset:[0,-4],targetOffset:vo},leftTop:{points:["tr","tl"],overflow:ho,offset:[-4,0],targetOffset:vo},topRight:{points:["br","tr"],overflow:ho,offset:[0,-4],targetOffset:vo},rightTop:{points:["tl","tr"],overflow:ho,offset:[4,0],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:ho,offset:[0,4],targetOffset:vo},rightBottom:{points:["bl","br"],overflow:ho,offset:[4,0],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:ho,offset:[0,4],targetOffset:vo},leftBottom:{points:["br","bl"],overflow:ho,offset:[-4,0],targetOffset:vo}},DX={prefixCls:String,id:String,overlayInnerStyle:V.any},BX=oe({compatConfig:{MODE:3},name:"TooltipContent",props:DX,setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var NX=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:V.string.def("rc-tooltip"),mouseEnterDelay:V.number.def(.1),mouseLeaveDelay:V.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:V.object.def(()=>({})),arrowContent:V.any.def(null),tipId:String,builtinPlacements:V.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=te(),i=()=>{const{prefixCls:u,tipId:d,overlayInnerStyle:f}=e;return[e.arrow?p("div",{class:`${u}-arrow`,key:"arrow"},[qt(n,e,"arrowContent")]):null,p(BX,{key:"content",prefixCls:u,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var u;return(u=l.value)===null||u===void 0?void 0:u.forcePopupAlign()}});const s=te(!1),c=te(!1);return ke(()=>{const{destroyTooltipOnHide:u}=e;if(typeof u=="boolean")s.value=u;else if(u&&typeof u=="object"){const{keepParent:d}=u;s.value=d===!0,c.value=d===!1}}),()=>{const{overlayClassName:u,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:g,overlayStyle:v,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=NX(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),I=m({},w);e.visible!==void 0&&(I.popupVisible=e.visible);const T=m(m(m({popupClassName:u,prefixCls:h,action:d,builtinPlacements:CT,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:c.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:f},I),o),{onPopupVisibleChange:e.onVisibleChange||Sx,onPopupAlign:e.onPopupAlign||Sx,ref:l,arrow:!!e.arrow,popup:i()});return p(wi,T,{default:n.default})}}}),Db=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Re(),overlayInnerStyle:Re(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Re(),builtinPlacements:Re(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),LX={adjustX:1,adjustY:1},$x={adjustX:0,adjustY:0},kX=[0,0];function Cx(e){return typeof e=="boolean"?e?LX:$x:m(m({},$x),e)}function Bb(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach(a=>{i[a]=l?m(m({},i[a]),{overflow:Cx(r),targetOffset:kX}):m(m({},CT[a]),{overflow:Cx(r)}),i[a].ignoreShake=!0}),i}function qd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),HX=["success","processing","error","default","warning"];function Ip(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...zX,...nc].includes(e):nc.includes(e)}function jX(e){return HX.includes(e)}function WX(e,t){const n=Ip(t),o=ie({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}function pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Nb=8;function xT(e){const t=Nb,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:l}=e,i=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-i,s=l?t-i:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:s}}function Fb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=xT({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:i,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[m(m({position:"absolute",zIndex:1,display:"block"},x0(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[pu(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingBottom:v},[pu(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingTop:v},[pu(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingRight:{_skip_check_:!0,value:v}},[pu(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const VX=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:m(m(m(m({},Xe(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,Nb)}},[`${t}-content`]:{position:"relative"}}),Bd(e,(f,g)=>{let{darkColor:v}=g;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Fb(Fe(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},KX=(e,t)=>Ve("Tooltip",o=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:l,colorBgDefault:i,borderRadiusOuter:a}=o,s=Fe(o,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:r,tooltipBg:i,tooltipRadiusOuter:a>4?4:a});return[VX(s),Ha(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:l}=o;return{zIndexPopup:r+70,colorBgDefault:l}})(e),GX=(e,t)=>{const n={},o=m({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},wT=()=>m(m({},Db()),{title:V.any}),OT=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),XX=oe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:qe(wT(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,getPopupContainer:a,direction:s,rootPrefixCls:c}=Te("tooltip",e),u=P(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible}),d=le(qd([e.open,e.visible])),f=le();let g;be(u,_=>{Ye.cancel(g),g=Ye(()=>{d.value=!!_})});const v=()=>{var _;const E=(_=e.title)!==null&&_!==void 0?_:n.title;return!E&&E!==0},h=_=>{const E=v();u.value===void 0&&(d.value=E?!1:_),E||(o("update:visible",_),o("visibleChange",_),o("update:open",_),o("openChange",_))};l({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var _;return(_=f.value)===null||_===void 0?void 0:_.forcePopupAlign()}});const y=P(()=>{var _;const{builtinPlacements:E,autoAdjustOverflow:A,arrow:R,arrowPointAtCenter:z}=e;let M=z;return typeof R=="object"&&(M=(_=R.pointAtCenter)!==null&&_!==void 0?_:z),E||Bb({arrowPointAtCenter:M,autoAdjustOverflow:A})}),S=_=>_||_==="",$=_=>{const E=_.type;if(typeof E=="object"&&_.props&&((E.__ANT_BUTTON===!0||E==="button")&&S(_.props.disabled)||E.__ANT_SWITCH===!0&&(S(_.props.disabled)||S(_.props.loading))||E.__ANT_RADIO===!0&&S(_.props.disabled))){const{picked:A,omitted:R}=GX(KO(_),["position","left","right","top","bottom","float","display","zIndex"]),z=m(m({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:_.props&&_.props.block?"100%":void 0}),M=m(m({},R),{pointerEvents:"none"}),B=dt(_,{style:M},!0);return p("span",{style:z,class:`${i.value}-disabled-compatible-wrapper`},[B])}return _},x=()=>{var _,E;return(_=e.title)!==null&&_!==void 0?_:(E=n.title)===null||E===void 0?void 0:E.call(n)},C=(_,E)=>{const A=y.value,R=Object.keys(A).find(z=>{var M,B;return A[z].points[0]===((M=E.points)===null||M===void 0?void 0:M[0])&&A[z].points[1]===((B=E.points)===null||B===void 0?void 0:B[1])});if(R){const z=_.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${z.height-E.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-E.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${z.width-E.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-E.offset[0]}px`),_.style.transformOrigin=`${M.left} ${M.top}`}},O=P(()=>WX(i.value,e.color)),w=P(()=>r["data-popover-inject"]),[I,T]=KX(i,P(()=>!w.value));return()=>{var _,E;const{openClassName:A,overlayClassName:R,overlayStyle:z,overlayInnerStyle:M}=e;let B=(E=_t((_=n.default)===null||_===void 0?void 0:_.call(n)))!==null&&E!==void 0?E:null;B=B.length===1?B[0]:B;let N=d.value;if(u.value===void 0&&v()&&(N=!1),!B)return null;const F=$(Kt(B)&&!oD(B)?B:p("span",null,[B])),L=ie({[A||`${i.value}-open`]:!0,[F.props&&F.props.class]:F.props&&F.props.class}),k=ie(R,{[`${i.value}-rtl`]:s.value==="rtl"},O.value.className,T.value),j=m(m({},O.value.overlayStyle),M),H=O.value.arrowStyle,Y=m(m(m({},r),e),{prefixCls:i.value,arrow:!!e.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:y.value,visible:N,ref:f,overlayClassName:k,overlayStyle:m(m({},H),z),overlayInnerStyle:j,onVisibleChange:h,onPopupAlign:C,transitionName:_n(c.value,"zoom-big-fast",e.transitionName)});return I(p(FX,Y,{default:()=>[d.value?dt(F,{class:L}):F],arrowContent:()=>p("span",{class:`${i.value}-arrow-content`},null),overlay:x}))}}}),Yn=Tt(XX),UX=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},Fb(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},YX=e=>{const{componentCls:t}=e;return{[t]:nc.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},qX=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:c}=e,u=i-Math.round(a*s),d=u/2,f=u/2-n,g=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${f}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${g}px`}}}},ZX=Ve("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Fe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[UX(r),YX(r),o&&qX(r),Ha(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),QX=()=>m(m({},Db()),{content:St(),title:St()}),JX=oe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:qe(QX(),m(m({},OT()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le();It(e.visible===void 0),n({getPopupDomNode:()=>{var f,g;return(g=(f=l.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||g===void 0?void 0:g.call(f)}});const{prefixCls:i,configProvider:a}=Te("popover",e),[s,c]=ZX(i),u=P(()=>a.getPrefixCls()),d=()=>{var f,g;const{title:v=_t((f=o.title)===null||f===void 0?void 0:f.call(o)),content:h=_t((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!b&&!y?null:p(We,null,[b&&p("div",{class:`${i.value}-title`},[v]),p("div",{class:`${i.value}-inner-content`},[h])])};return()=>{const f=ie(e.overlayClassName,c.value);return s(p(Yn,D(D(D({},et(e,["title","content"])),r),{},{prefixCls:i.value,ref:l,overlayClassName:f,transitionName:_n(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Lb=Tt(JX),eU=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),tU=oe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:eU(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("avatar",e),i=P(()=>`${r.value}-group`),[a,s]=ST(r);return ke(()=>{const c={size:e.size,shape:e.shape};_X(c)}),()=>{const{maxPopoverPlacement:c="top",maxCount:u,maxStyle:d,maxPopoverTrigger:f="hover",shape:g}=e,v={[i.value]:!0,[`${i.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=qt(n,e),b=yt(h).map((S,$)=>dt(S,{key:`avatar-key-${$}`})),y=b.length;if(u&&u[p(ni,{style:d,shape:g},{default:()=>[`+${y-u}`]})]})),a(p("div",D(D({},o),{},{class:v,style:o.style}),[S]))}return a(p("div",D(D({},o),{},{class:v,style:o.style}),[b]))}}}),Zd=tU;ni.Group=Zd;ni.install=function(e){return e.component(ni.name,ni),e.component(Zd.name,Zd),e};function xx(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,l;return r&&(l={position:"absolute",top:`${r}00%`,left:0}),p("p",{style:l,class:ie(`${t}-only-unit`,{current:o})},[n])}function nU(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const oU=oe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=ut({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},l=le();return be(t,()=>{clearTimeout(l.value),l.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),Rn(()=>{clearTimeout(l.value)}),()=>{let i,a={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))i=[xx(m(m({},e),{current:!0}))],a={transition:"none"};else{i=[];const c=s+10,u=[];for(let g=s;g<=c;g+=1)u.push(g);const d=u.findIndex(g=>g%10===o.prevValue);i=u.map((g,v)=>{const h=g%10;return xx(m(m({},e),{value:h,offset:v-d,current:v===d}))});const f=o.prevCountr()},[i])}}});var rU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;const i=m(m({},e),n),{prefixCls:a,count:s,title:c,show:u,component:d="sup",class:f,style:g}=i,v=rU(i,["prefixCls","count","title","show","component","class","style"]),h=m(m({},v),{style:g,"data-show":e.show,class:ie(r.value,f),title:c});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>p(oU,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=m(m({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=_t((l=o.default)===null||l===void 0?void 0:l.call(o));return y&&y.length?dt(y,{class:ie(`${r.value}-custom-component`)},!1):p(d,h,{default:()=>[b]})}}}),aU=new nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),sU=new nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cU=new nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),uU=new nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dU=new nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fU=new nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pU=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:l,badgeHeightSm:i,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,f=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,v=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${f}-color-${b}`]:{background:S,color:S}}});return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:fU,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:aU,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:sU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${f}`]:m(m(m(m({},Xe(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},PT=Ve("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:l,colorBorderBg:i}=e,a=Math.round(t*n),s=r,c="auto",u=a-2*s,d=e.colorBgContainer,f="normal",g=o,v=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=Fe(e,{badgeFontHeight:a,badgeShadowSize:s,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:g,badgeColor:v,badgeColorHover:h,badgeShadowColor:i,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[pU(x)]});var gU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:V.any,placement:{type:String,default:"end"}}),Qd=oe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:hU(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("ribbon",e),[i,a]=PT(r),s=P(()=>Ip(e.color,!1)),c=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var u,d;const{class:f,style:g}=n,v=gU(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),i(p("div",D({class:`${r.value}-wrapper ${a.value}`},v),[(u=o.default)===null||u===void 0?void 0:u.call(o),p("div",{class:[c.value,f,a.value],style:m(m({},h),g)},[p("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),p("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),vU=e=>!isNaN(parseFloat(e))&&isFinite(e),Jd=vU,mU=()=>({count:V.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:V.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),_s=oe({compatConfig:{MODE:3},name:"ABadge",Ribbon:Qd,inheritAttrs:!1,props:mU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("badge",e),[i,a]=PT(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),c=P(()=>s.value==="0"||s.value===0),u=P(()=>e.count===null||c.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&u.value),f=P(()=>e.dot&&!c.value),g=P(()=>f.value?"":s.value),v=P(()=>(g.value===null||g.value===void 0||g.value===""||c.value&&!e.showZero)&&!f.value),h=le(e.count),b=le(g.value),y=le(f.value);be([()=>e.count,g,f],()=>{v.value||(h.value=e.count,b.value=g.value,y.value=f.value)},{immediate:!0});const S=P(()=>Ip(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:I,title:T,color:_}=e,E=o.style,A=qt(n,e,"text"),R=r.value,z=h.value;let M=yt((O=n.default)===null||O===void 0?void 0:O.call(n));M=M.length?M:null;const B=!!(!v.value||n.count),N=(()=>{if(!I)return m({},E);const Z={marginTop:Jd(I[1])?`${I[1]}px`:I[1]};return l.value==="rtl"?Z.left=`${parseInt(I[0],10)}px`:Z.right=`${-parseInt(I[0],10)}px`,m(m({},Z),E)})(),F=T??(typeof z=="string"||typeof z=="number"?z:void 0),L=B||!A?null:p("span",{class:`${R}-status-text`},[A]),k=typeof z=="object"||z===void 0&&n.count?dt(z??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:N},!1):null,j=ie(R,{[`${R}-status`]:d.value,[`${R}-not-a-wrapper`]:!M,[`${R}-rtl`]:l.value==="rtl"},o.class,a.value);if(!M&&d.value){const Z=N.color;return i(p("span",D(D({},o),{},{class:j,style:N}),[p("span",{class:$.value,style:x.value},null),p("span",{style:{color:Z},class:`${R}-status-text`},[A])]))}const H=Po(M?`${R}-zoom`:"",{appear:!1});let Y=m(m({},N),e.numberStyle);return _&&!S.value&&(Y=Y||{},Y.background=_),i(p("span",D(D({},o),{},{class:j}),[M,p(cn,H,{default:()=>[$n(p(iU,{prefixCls:e.scrollNumberPrefixCls,show:B,class:C.value,count:b.value,title:F,style:Y,key:"scrollNumber"},{default:()=>[k]}),[[En,B]])]}),L]))}}});_s.install=function(e){return e.component(_s.name,_s),e.component(Qd.name,Qd),e};const Bi={adjustX:1,adjustY:1},Ni=[0,0],bU={topLeft:{points:["bl","tl"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topCenter:{points:["bc","tc"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Bi,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomCenter:{points:["tc","bc"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Bi,offset:[0,4],targetOffset:Ni}},yU=bU;var SU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(l.value=g)});const i=le();r({triggerRef:i});const a=g=>{e.visible===void 0&&(l.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(l.value=g),o("visibleChange",g)},c=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:a};return p(We,{key:jO},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),dt(v,h,!1)])},u=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return l.value&&v?dt(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,I=SU(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(wi,D(D({},I),{},{prefixCls:g,ref:i,popupClassName:ie(w,{[`${g}-show-arrow`]:v}),popupStyle:b,builtinPlacements:yU,action:y,showAction:h,hideAction:f.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:l.value,stretch:u.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:c,default:d})}}}),$U=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},CU=Ve("Wave",e=>[$U(e)]);function xU(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function nh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&xU(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wU(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return nh(t)?t:nh(n)?n:nh(o)?o:null}function oh(e){return Number.isNaN(e)?0:e}const OU=oe({props:{target:Re(),className:String},setup(e){const t=te(null),[n,o]=vt(null),[r,l]=vt([]),[i,a]=vt(0),[s,c]=vt(0),[u,d]=vt(0),[f,g]=vt(0),[v,h]=vt(!1);function b(){const{target:w}=e,I=getComputedStyle(w);o(wU(w));const T=I.position==="static",{borderLeftWidth:_,borderTopWidth:E}=I;a(T?w.offsetLeft:oh(-parseFloat(_))),c(T?w.offsetTop:oh(-parseFloat(E))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:R,borderBottomLeftRadius:z,borderBottomRightRadius:M}=I;l([A,R,M,z].map(B=>oh(parseFloat(B))))}let y,S,$;const x=()=>{clearTimeout($),Ye.cancel(S),y==null||y.disconnect()},C=()=>{var w;const I=(w=t.value)===null||w===void 0?void 0:w.parentElement;I&&(bl(null,I),I.parentElement&&I.parentElement.removeChild(I))};je(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=Ye(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Ze(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!v.value)return null;const w={left:`${i.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${f.value}px`,borderRadius:r.value.map(I=>`${I}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p(cn,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function PU(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),bl(p(OU,{target:e,className:t},null),n),()=>{bl(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function IU(e,t){const n=pn();let o;function r(){var l;const i=Hn(n);o==null||o(),!(!((l=t==null?void 0:t.value)===null||l===void 0)&&l.disabled||!i)&&(o=PU(i,e.value))}return Ze(()=>{o==null||o()}),r}const kb=oe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=pn(),{prefixCls:r,wave:l}=Te("wave",e),[,i]=CU(r),a=IU(P(()=>ie(r.value,i.value)),l);let s;const c=()=>{Hn(o).removeEventListener("click",s,!0)};return je(()=>{be(()=>e.disabled,()=>{c(),ot(()=>{const u=Hn(o);u==null||u.removeEventListener("click",s,!0),!(!u||u.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!op(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||a()},u.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Ze(()=>{c()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function ef(e){return e==="danger"?{danger:!0}:{type:e}}const TU=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:V.any,href:String,target:String,title:String,onClick:si(),onMousedown:si()}),TT=TU,wx=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Ox=e=>{ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Px=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},EU=oe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return p("span",{class:`${n}-loading-icon`},[p(co,null,null)]);const r=!!o;return p(cn,{name:`${n}-loading-icon-motion`,onBeforeEnter:wx,onEnter:Ox,onAfterEnter:Px,onBeforeLeave:Ox,onLeave:l=>{setTimeout(()=>{wx(l)})},onAfterLeave:Px},{default:()=>[r?p("span",{class:`${n}-loading-icon`},[p(co,null,null)]):null]})}}}),Ix=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MU=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ix(`${t}-primary`,r),Ix(`${t}-danger`,l)]}},_U=MU;function AU(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function RU(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function DU(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:m(m({},AU(e,t)),RU(e.componentCls,t))}}const BU=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":m({},Rr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Br=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),NU=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),FU=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),zv=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),tf=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:m(m({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Br(m({backgroundColor:"transparent"},l),m({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),zb=e=>({"&:disabled":m({},zv(e))}),ET=e=>m({},zb(e)),nf=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),MT=e=>m(m(m(m(m({},ET(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Br({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:m(m(m({color:e.colorError,borderColor:e.colorError},Br({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),zb(e))}),LU=e=>m(m(m(m(m({},ET(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Br({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:m(m(m({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Br({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zb(e))}),kU=e=>m(m({},MT(e)),{borderStyle:"dashed"}),zU=e=>m(m(m({color:e.colorLink},Br({color:e.colorLinkHover},{color:e.colorLinkActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},Br({color:e.colorErrorHover},{color:e.colorErrorActive})),nf(e))}),HU=e=>m(m(m({},Br({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},nf(e)),Br({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),jU=e=>m(m({},zv(e)),{[`&${e.componentCls}:hover`]:m({},zv(e))}),WU=e=>{const{componentCls:t}=e;return{[`${t}-default`]:MT(e),[`${t}-primary`]:LU(e),[`${t}-dashed`]:kU(e),[`${t}-link`]:zU(e),[`${t}-text`]:HU(e),[`${t}-disabled`]:jU(e)}},Hb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=Math.max(0,(r-l*i)/2-a),d=c-a,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:NU(e)},{[`${n}${n}-round${t}`]:FU(e)}]},VU=e=>Hb(e),KU=e=>{const t=Fe(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Hb(t,`${e.componentCls}-sm`)},GU=e=>{const t=Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Hb(t,`${e.componentCls}-lg`)},XU=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},UU=Ve("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Fe(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[BU(o),KU(o),VU(o),GU(o),XU(o),WU(o),_U(o),ja(e,{focus:!1}),DU(e)]}),YU=()=>({prefixCls:String,size:{type:String}}),_T=ub(),of=oe({compatConfig:{MODE:3},name:"AButtonGroup",props:YU(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("btn-group",e),[,,l]=Fr();_T.useProvide(ut({size:P(()=>e.size)}));const i=P(()=>{const{size:a}=e;let s="";switch(a){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:xt(!a,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[l.value]:!0}});return()=>{var a;return p("div",{class:i.value},[yt((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),Tx=/^[\u4e00-\u9fa5]{2}$/,Ex=Tx.test.bind(Tx);function gu(e){return e==="text"||e==="link"}const zt=oe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:qe(TT(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,autoInsertSpaceInButton:a,direction:s,size:c}=Te("btn",e),[u,d]=UU(i),f=_T.useInject(),g=qn(),v=P(()=>{var M;return(M=e.disabled)!==null&&M!==void 0?M:g.value}),h=te(null),b=te(void 0);let y=!1;const S=te(!1),$=te(!1),x=P(()=>a.value!==!1),{compactSize:C,compactItemClassnames:O}=Ol(i,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);be(w,M=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=M},w.value):S.value=M},{immediate:!0});const I=P(()=>{const{type:M,shape:B="default",ghost:N,block:F,danger:L}=e,k=i.value,j={large:"lg",small:"sm",middle:void 0},H=C.value||(f==null?void 0:f.size)||c.value,Y=H&&j[H]||"";return[O.value,{[d.value]:!0,[`${k}`]:!0,[`${k}-${B}`]:B!=="default"&&B,[`${k}-${M}`]:M,[`${k}-${Y}`]:Y,[`${k}-loading`]:S.value,[`${k}-background-ghost`]:N&&!gu(M),[`${k}-two-chinese-chars`]:$.value&&x.value,[`${k}-block`]:F,[`${k}-dangerous`]:!!L,[`${k}-rtl`]:s.value==="rtl"}]}),T=()=>{const M=h.value;if(!M||a.value===!1)return;const B=M.textContent;y&&Ex(B)?$.value||($.value=!0):$.value&&($.value=!1)},_=M=>{if(S.value||v.value){M.preventDefault();return}r("click",M)},E=M=>{r("mousedown",M)},A=(M,B)=>{const N=B?" ":"";if(M.type===Cl){let F=M.children.trim();return Ex(F)&&(F=F.split("").join(N)),p("span",null,[F])}return M};return ke(()=>{xt(!(e.ghost&&gu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(T),An(T),Ze(()=>{b.value&&clearTimeout(b.value)}),l({focus:()=>{var M;(M=h.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=h.value)===null||M===void 0||M.blur()}}),()=>{var M,B;const{icon:N=(M=n.icon)===null||M===void 0?void 0:M.call(n)}=e,F=yt((B=n.default)===null||B===void 0?void 0:B.call(n));y=F.length===1&&!N&&!gu(e.type);const{type:L,htmlType:k,href:j,title:H,target:Y}=e,Z=S.value?"loading":N,U=m(m({},o),{title:H,disabled:v.value,class:[I.value,o.class,{[`${i.value}-icon-only`]:F.length===0&&!!Z}],onClick:_,onMousedown:E});v.value||delete U.disabled;const ee=N&&!S.value?N:p(EU,{existIcon:!!N,prefixCls:i.value,loading:!!S.value},null),G=F.map(Q=>A(Q,y&&x.value));if(j!==void 0)return u(p("a",D(D({},U),{},{href:j,target:Y,ref:h}),[ee,G]));let J=p("button",D(D({},U),{},{ref:h,type:k}),[ee,G]);if(!gu(L)){const Q=function(){return J}();J=p(kb,{ref:"wave",disabled:!!S.value},{default:()=>[Q]})}return u(J)}}});zt.Group=of;zt.install=function(e){return e.component(zt.name,zt),e.component(of.name,of),e};const AT=()=>({arrow:Le([Boolean,Object]),trigger:{type:[Array,String]},menu:Re(),overlay:V.any,visible:Ce(),open:Ce(),disabled:Ce(),danger:Ce(),autofocus:Ce(),align:Re(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Re(),forceRender:Ce(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Ce(),destroyPopupOnHide:Ce(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),rh=TT(),qU=()=>m(m({},AT()),{type:rh.type,size:String,htmlType:rh.htmlType,href:String,disabled:Ce(),prefixCls:String,icon:V.any,title:String,loading:rh.loading,onClick:si()});var ZU={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"};const QU=ZU;function Mx(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},tY=eY,nY=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},oY=nY,rY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` - &-show-arrow${t}-placement-topLeft, - &-show-arrow${t}-placement-top, - &-show-arrow${t}-placement-topRight - `]:{paddingBottom:r},[` - &-show-arrow${t}-placement-bottomLeft, - &-show-arrow${t}-placement-bottom, - &-show-arrow${t}-placement-bottomRight - `]:{paddingTop:r},[`${t}-arrow`]:m({position:"absolute",zIndex:1,display:"block"},x0(i,e.borderRadiusXS,e.borderRadiusOuter,b,y)),[` - &-placement-top > ${t}-arrow, - &-placement-topLeft > ${t}-arrow, - &-placement-topRight > ${t}-arrow - `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[` - &-placement-bottom > ${t}-arrow, - &-placement-bottomLeft > ${t}-arrow, - &-placement-bottomRight > ${t}-arrow - `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Cp},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wp},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xp},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Op}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:m(m({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Rr(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:m(m({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Rr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down"),Ha(e,"zoom-big")]]},RT=Ve("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,f=(l-i*a)/2,{dropdownArrowOffset:g}=xT({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),v=Fe(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[rY(v),tY(v),oY(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var lY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",f),r("visibleChange",f),r("update:open",f),r("openChange",f)},{prefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),c=P(()=>`${i.value}-button`),[u,d]=RT(i);return()=>{var f,g;const v=m(m({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:O,align:w,open:I,visible:T,onVisibleChange:_,placement:E=a.value==="rtl"?"bottomLeft":"bottomRight",href:A,title:R,icon:z=((g=n.icon)===null||g===void 0?void 0:g.call(n))||p(Wb,null,null),mouseEnterDelay:M,mouseLeaveDelay:B,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L,onClick:k,"onUpdate:open":j}=v,H=lY(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Y={align:w,disabled:b,trigger:b?[]:O,placement:E,getPopupContainer:s==null?void 0:s.value,onOpenChange:l,mouseEnterDelay:M,mouseLeaveDelay:B,open:I??T,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L},Z=p(zt,{danger:y,type:h,disabled:b,loading:S,onClick:k,htmlType:$,href:A,title:R},{default:n.default}),U=p(zt,{danger:y,type:h,icon:z},null);return u(p(iY,D(D({},H),{},{class:ie(c.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:Z}):Z,p(rr,Y,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var aY={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"};const sY=aY;function _x(e){for(var t=1;tHe(DT,void 0),Kb=e=>{var t,n,o;const{prefixCls:r,mode:l,selectable:i,validator:a,onClick:s,expandIcon:c}=BT()||{};Ge(DT,{prefixCls:P(()=>{var u,d;return(d=(u=e.prefixCls)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:r==null?void 0:r.value}),mode:P(()=>{var u,d;return(d=(u=e.mode)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:l==null?void 0:l.value}),selectable:P(()=>{var u,d;return(d=(u=e.selectable)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),validator:(t=e.validator)!==null&&t!==void 0?t:a,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:c==null?void 0:c.value})},NT=oe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:qe(AT(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,rootPrefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),[c,u]=RT(l),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});Kb({prefixCls:P(()=>`${l.value}-menu`),expandIcon:P(()=>p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{It()}});const f=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};xt(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,I=typeof w<"u"&&Kt(w)?w:p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)]);return Kt(x)?dt(x,{mode:"vertical",selectable:O,expandIcon:()=>I}):x},g=P(()=>{const b=e.placement;if(!b)return a.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return xt(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),v=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=dt(O,m({class:ie((y=O==null?void 0:O.props)===null||y===void 0?void 0:y.class,{[`${l.value}-rtl`]:a.value==="rtl"},`${l.value}-trigger`)},x?{disabled:x}:{})),I=ie(C,u.value,{[`${l.value}-rtl`]:a.value==="rtl"}),T=x?[]:$;let _;T&&T.includes("contextmenu")&&(_=!0);const E=Bb({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),A=et(m(m(m({},e),o),{visible:v.value,builtinPlacements:E,overlayClassName:I,arrow:!!S,alignPoint:_,prefixCls:l.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:T,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return c(p(IT,A,{default:()=>[w],overlay:f}))}}});NT.Button=uc;const rr=NT;var uY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:V.any,dropdownProps:Re(),overlay:V.any,onClick:si()}),dc=oe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:dY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l}=Te("breadcrumb",e),i=(s,c)=>{const u=qt(n,e,"overlay");return u?p(rr,D(D({},e.dropdownProps),{},{overlay:u,placement:"bottom"}),{default:()=>[p("span",{class:`${c}-overlay-link`},[s,p(Ec,null,null)])]}):s},a=s=>{r("click",s)};return()=>{var s;const c=(s=qt(n,e,"separator"))!==null&&s!==void 0?s:"/",u=qt(n,e),{class:d,style:f}=o,g=uY(o,["class","style"]);let v;return e.href!==void 0?v=p("a",D({class:`${l.value}-link`,onClick:a},g),[u]):v=p("span",D({class:`${l.value}-link`,onClick:a},g),[u]),v=i(v,l.value),u!=null?p("li",{class:d,style:f},[v,c&&p("span",{class:`${l.value}-separator`},[c])]):null}}});function fY(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Ge(FT,e)},jr=()=>He(FT),kT=Symbol("ForceRenderKey"),pY=e=>{Ge(kT,e)},zT=()=>He(kT,!1),HT=Symbol("menuFirstLevelContextKey"),jT=e=>{Ge(HT,e)},gY=()=>He(HT,!0),rf=oe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=jr(),r=m({},o);return e.mode!==void 0&&(r.mode=ze(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=ze(e,"overflowDisabled")),LT(r),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),hY=LT,WT=Symbol("siderCollapsed"),VT=Symbol("siderHookProvider"),hu="$$__vc-menu-more__key",KT=Symbol("KeyPathContext"),Gb=()=>He(KT,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),vY=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Gb(),l=P(()=>[...o.value,e]),i=P(()=>[...r.value,t]);return Ge(KT,{parentEventKeys:l,parentKeys:i,parentInfo:n}),i},GT=Symbol("measure"),Ax=oe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Ge(GT,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Xb=()=>He(GT,!1),mY=vY;function XT(e){const{mode:t,rtl:n,inlineIndent:o}=jr();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let bY=0;const yY=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:V.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Re()}),lr=oe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:yY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=pn(),i=Xb(),a=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;xt(typeof l.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++bY}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=Gb(),{prefixCls:d,activeKeys:f,disabled:g,changeActiveKeys:v,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=jr(),O=gY(),w=te(!1),I=P(()=>[...u.value,a]);x(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Ze(()=>{C(s)}),be(f,()=>{w.value=!!f.value.find(j=>j===a)},{immediate:!0});const _=P(()=>g.value||e.disabled),E=P(()=>$.value.includes(a)),A=P(()=>{const j=`${d.value}-item`;return{[`${j}`]:!0,[`${j}-danger`]:e.danger,[`${j}-active`]:w.value,[`${j}-selected`]:E.value,[`${j}-disabled`]:_.value}}),R=j=>({key:a,eventKey:s,keyPath:I.value,eventKeyPath:[...c.value,s],domEvent:j,item:m(m({},e),r)}),z=j=>{if(_.value)return;const H=R(j);o("click",j),S(H)},M=j=>{_.value||(v(I.value),o("mouseenter",j))},B=j=>{_.value||(v([]),o("mouseleave",j))},N=j=>{if(o("keydown",j),j.which===Oe.ENTER){const H=R(j);o("click",j),S(H)}},F=j=>{v(I.value),o("focus",j)},L=(j,H)=>{const Y=p("span",{class:`${d.value}-title-content`},[H]);return(!j||Kt(H)&&H.type==="span")&&H&&b.value&&O&&typeof H=="string"?p("div",{class:`${d.value}-inline-collapsed-noicon`},[H.charAt(0)]):Y},k=XT(P(()=>I.value.length));return()=>{var j,H,Y,Z,U;if(i)return null;const ee=(j=e.title)!==null&&j!==void 0?j:(H=n.title)===null||H===void 0?void 0:H.call(n),G=yt((Y=n.default)===null||Y===void 0?void 0:Y.call(n)),J=G.length;let Q=ee;typeof ee>"u"?Q=O&&J?G:"":ee===!1&&(Q="");const K={title:Q};!y.value&&!b.value&&(K.title=null,K.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=E.value);const pe=(Z=e.icon)!==null&&Z!==void 0?Z:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return p(Yn,D(D({},K),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[p(sa.Item,D(D(D({component:"li"},r),{},{id:e.id,style:m(m({},r.style||{}),k.value),class:[A.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(pe?J+1:J)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},q),{},{onMouseenter:M,onMouseleave:B,onClick:z,onKeydown:N,onFocus:F,title:typeof ee=="string"?ee:void 0}),{default:()=>[dt(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${d.value}-item-icon`},!1),L(pe,G)]})]})}}}),cl={adjustX:1,adjustY:1},SY={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},$Y={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},CY={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rx=oe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=te(!1),{getPopupContainer:l,rtl:i,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:f,defaultMotions:g,rootClassName:v}=jr(),h=zT(),b=P(()=>i.value?m(m({},$Y),c.value):m(m({},SY),c.value)),y=P(()=>CY[e.mode]),S=te();be(()=>e.visible,C=>{Ye.cancel(S.value),S.value=Ye(()=>{r.value=C})},{immediate:!0}),Ze(()=>{Ye.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=f.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),I=typeof w=="function"?w():w;return I?Po(I.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:I,disabled:T}=e;return p(wi,{prefixCls:C,popupClassName:ie(`${C}-popup`,{[`${C}-rtl`]:i.value},O,v.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:l.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:I&&{offset:I},action:T?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),UT=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=jr();return p("ul",D(D({},o),{},{class:ie(l.value,`${l.value}-sub`,`${l.value}-${i.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};UT.displayName="SubMenuList";const YT=UT,xY=oe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:l,defaultMotions:i}=jr(),a=P(()=>l.value===o.value),s=le(!a.value),c=P(()=>a.value?e.open:!1);be(l,()=>{a.value&&(s.value=!1)},{flush:"post"});const u=P(()=>{var d,f;const g=r.value||((d=i.value)===null||d===void 0?void 0:d[o.value])||((f=i.value)===null||f===void 0?void 0:f.other),v=typeof g=="function"?g():g;return m(m({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:p(rf,{mode:o.value},{default:()=>[p(cn,u.value,{default:()=>[$n(p(YT,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[En,c.value]])]})]})}}});let Dx=0;const wY=()=>({icon:V.any,title:V.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Re()}),fi=oe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:wY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var l,i;jT(!1);const a=Xb(),s=pn(),c=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;xt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=fv(c)?c:`sub_menu_${++Dx}_$$_not_set_key`,d=(l=e.eventKey)!==null&&l!==void 0?l:fv(c)?`sub_menu_${++Dx}_$$_${c}`:u,{parentEventKeys:f,parentInfo:g,parentKeys:v}=Gb(),h=P(()=>[...v.value,u]),b=te([]),y={eventKey:d,key:u,parentEventKeys:f,childrenEventKeys:b,parentKeys:v};(i=g.childrenEventKeys)===null||i===void 0||i.value.push(d),Ze(()=>{var de;g.childrenEventKeys&&(g.childrenEventKeys.value=(de=g.childrenEventKeys)===null||de===void 0?void 0:de.value.filter(ge=>ge!=d))}),mY(d,u,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:I,overflowDisabled:T,onOpenChange:_,registerMenuInfo:E,unRegisterMenuInfo:A,selectedSubMenuKeys:R,expandIcon:z,theme:M}=jr(),B=c!=null,N=!a&&(zT()||!B);pY(N),(a&&B||!a&&!B||N)&&(E(d,y),Ze(()=>{A(d)}));const F=P(()=>`${S.value}-submenu`),L=P(()=>x.value||e.disabled),k=te(),j=te(),H=P(()=>I.value.includes(u)),Y=P(()=>!T.value&&H.value),Z=P(()=>R.value.includes(u)),U=te(!1);be($,()=>{U.value=!!$.value.find(de=>de===u)},{immediate:!0});const ee=de=>{L.value||(r("titleClick",de,u),O.value==="inline"&&_(u,!H.value))},G=de=>{L.value||(C(h.value),r("mouseenter",de))},J=de=>{L.value||(C([]),r("mouseleave",de))},Q=XT(P(()=>h.value.length)),K=de=>{O.value!=="inline"&&_(u,de)},q=()=>{C(h.value)},pe=d&&`${d}-popup`,W=P(()=>ie(S.value,`${S.value}-${e.theme||M.value}`,e.popupClassName)),X=(de,ge)=>{if(!ge)return w.value&&!v.value.length&&de&&typeof de=="string"?p("div",{class:`${S.value}-inline-collapsed-noicon`},[de.charAt(0)]):p("span",{class:`${S.value}-title-content`},[de]);const me=Kt(de)&&de.type==="span";return p(We,null,[dt(typeof ge=="function"?ge(e.originItemValue):ge,{class:`${S.value}-item-icon`},!1),me?de:p("span",{class:`${S.value}-title-content`},[de])])},ne=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ae=P(()=>O.value==="horizontal"?"vertical":O.value),se=P(()=>ne.value==="horizontal"?"vertical":ne.value),re=()=>{var de,ge;const me=F.value,fe=(de=e.icon)!==null&&de!==void 0?de:(ge=n.icon)===null||ge===void 0?void 0:ge.call(n,e),ye=e.expandIcon||n.expandIcon||z.value,Se=X(qt(n,e,"title"),fe);return p("div",{style:Q.value,class:`${me}-title`,tabindex:L.value?null:-1,ref:k,title:typeof Se=="string"?Se:null,"data-menu-id":u,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":pe,"aria-disabled":L.value,onClick:ee,onFocus:q},[Se,O.value!=="horizontal"&&ye?ye(m(m({},e),{isOpen:Y.value})):p("i",{class:`${me}-arrow`},null)])};return()=>{var de;if(a)return B?(de=n.default)===null||de===void 0?void 0:de.call(n):null;const ge=F.value;let me=()=>null;if(!T.value&&O.value!=="inline"){const fe=O.value==="horizontal"?[0,8]:[10,0];me=()=>p(Rx,{mode:ne.value,prefixCls:ge,visible:!e.internalPopupClose&&Y.value,popupClassName:W.value,popupOffset:e.popupOffset||fe,disabled:L.value,onVisibleChange:K},{default:()=>[re()],popup:()=>p(rf,{mode:se.value},{default:()=>[p(YT,{id:pe,ref:j},{default:n.default})]})})}else me=()=>p(Rx,null,{default:re});return p(rf,{mode:ae.value},{default:()=>[p(sa.Item,D(D({component:"li"},o),{},{role:"none",class:ie(ge,`${ge}-${O.value}`,o.class,{[`${ge}-open`]:Y.value,[`${ge}-active`]:U.value,[`${ge}-selected`]:Z.value,[`${ge}-disabled`]:L.value}),onMouseenter:G,onMouseleave:J,"data-submenu-id":u}),{default:()=>p(We,null,[me(),!T.value&&p(xY,{id:pe,open:Y.value,keyPath:h.value},{default:n.default})])})]})}}});function qT(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function lf(e,t){e.classList?e.classList.add(t):qT(e,t)||(e.className=`${e.className} ${t}`)}function af(e,t){if(e.classList)e.classList.remove(t);else if(qT(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const OY=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",lf(n,e)},onEnter:n=>{ot(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(af(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{lf(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(af(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},Rc=OY,PY=()=>({title:V.any,originItemValue:Re()}),fc=oe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:PY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=jr(),l=P(()=>`${r.value}-item-group`),i=Xb();return()=>{var a,s;return i?(a=n.default)===null||a===void 0?void 0:a.call(n):p("li",D(D({},o),{},{onClick:c=>c.stopPropagation(),class:l.value}),[p("div",{title:typeof e.title=="string"?e.title:void 0,class:`${l.value}-title`},[qt(n,e,"title")]),p("ul",{class:`${l.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),IY=()=>({prefixCls:String,dashed:Boolean}),pc=oe({compatConfig:{MODE:3},name:"AMenuDivider",props:IY(),setup(e){const{prefixCls:t}=jr(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>p("li",{class:n.value},null)}});var TY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const l=o,{label:i,children:a,key:s,type:c}=l,u=TY(l,["label","children","key","type"]),d=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:d,key:d,parentEventKeys:le(f),parentKeys:le(f),childrenEventKeys:le(g),isLeaf:!1};if(a||c==="group"){if(c==="group"){const b=Hv(a,t,n);return p(fc,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[b]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const h=Hv(a,t,{childrenEventKeys:g,parentKeys:[].concat(f,d)});return p(fi,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[h]})}return c==="divider"?p(pc,D({key:d},u),null):(v.isLeaf=!0,t.set(d,v),p(lr,D(D({key:d},u),{},{originItemValue:o}),{default:()=>[i]}))}return null}).filter(o=>o)}function EY(e){const t=te([]),n=te(!1),o=te(new Map);return be(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Hv(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const MY=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},_Y=MY,AY=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},RY=AY,Bx=e=>m({},Ar(e)),DY=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:I,colorDangerItemBgSelected:T,colorItemBgHover:_,menuSubMenuBg:E,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:R}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:m({},Bx(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:m({},Bx(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:m(m({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:R,"&::after":{borderBottomWidth:c,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},Nx=DY,Fx=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e,s=r+l+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:s}}},BY=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:v}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":m({[`&${t}-root`]:{boxShadow:"none"}},Fx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:m(m({},Fx(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:m(m({},Gt),{paddingInline:g})}}]},NY=BY,Lx=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:m({},yi()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:l*.6,height:l*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},FY=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:h,menuArrowOffset:b,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:m(m({},zo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:m(m(m(m(m(m(m({},Xe(e)),zo()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:m(m(m({borderRadius:g},Lx(e)),kx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),kx(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},LY=(e,t)=>Ve("Menu",(o,r)=>{let{overrideComponentToken:l}=r;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:i,colorPrimary:a,colorError:s,colorErrorHover:c,colorTextLightSolid:u}=o,{controlHeightLG:d,fontSize:f}=o,g=f/7*5,v=Fe(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),h=new gt(u).setAlpha(.65).toRgbString(),b=Fe(v,{colorItemText:h,colorItemTextHover:u,colorGroupTitle:h,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new gt(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:c,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},m({},l));return[FY(v),_Y(v),NY(v),Nx(v,"light"),Nx(b,"dark"),RY(v),Ac(v),sr(v,"slide-up"),sr(v,"slide-down"),Ha(v,"zoom-big")]},o=>{const{colorPrimary:r,colorError:l,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:c,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:u,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:i,colorDangerItemText:l,colorDangerItemTextHover:l,colorDangerItemTextSelected:l,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e),kY=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),zx=[],Vt=oe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:kY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:l,getPrefixCls:i}=Te("menu",e),a=BT(),s=P(()=>{var G;return i("menu",e.prefixCls||((G=a==null?void 0:a.prefixCls)===null||G===void 0?void 0:G.value))}),[c,u]=LY(s,P(()=>!a)),d=te(new Map),f=He(WT,le(void 0)),g=P(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=EY(e),h=te(!1);je(()=>{h.value=!0}),ke(()=>{xt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),xt(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=le([]),y=le([]),S=le({});be(d,()=>{const G={};for(const J of d.value.values())G[J.key]=J;S.value=G},{flush:"post"}),ke(()=>{if(e.activeKey!==void 0){let G=[];const J=e.activeKey?S.value[e.activeKey]:void 0;J&&e.activeKey!==void 0?G=Zg([].concat($t(J.parentKeys),e.activeKey)):G=[],Wi(b.value,G)||(b.value=G)}}),be(()=>e.selectedKeys,G=>{G&&(y.value=G.slice())},{immediate:!0,deep:!0});const $=le([]);be([S,y],()=>{let G=[];y.value.forEach(J=>{const Q=S.value[J];Q&&(G=G.concat($t(Q.parentKeys)))}),G=Zg(G),Wi($.value,G)||($.value=G)},{immediate:!0});const x=G=>{if(e.selectable){const{key:J}=G,Q=y.value.includes(J);let K;e.multiple?Q?K=y.value.filter(pe=>pe!==J):K=[...y.value,J]:K=[J];const q=m(m({},G),{selectedKeys:K});Wi(K,y.value)||(e.selectedKeys===void 0&&(y.value=K),o("update:selectedKeys",K),Q&&e.multiple?o("deselect",q):o("select",q))}_.value!=="inline"&&!e.multiple&&C.value.length&&R(zx)},C=le([]);be(()=>e.openKeys,function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;Wi(C.value,G)||(C.value=G.slice())},{immediate:!0,deep:!0});let O;const w=G=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=G),o("update:activeKey",G[G.length-1])})},I=P(()=>!!e.disabled),T=P(()=>l.value==="rtl"),_=le("vertical"),E=te(!1);ke(()=>{var G;(e.mode==="inline"||e.mode==="vertical")&&g.value?(_.value="vertical",E.value=g.value):(_.value=e.mode,E.value=!1),!((G=a==null?void 0:a.mode)===null||G===void 0)&&G.value&&(_.value=a.mode.value)});const A=P(()=>_.value==="inline"),R=G=>{C.value=G,o("update:openKeys",G),o("openChange",G)},z=le(C.value),M=te(!1);be(C,()=>{A.value&&(z.value=C.value)},{immediate:!0}),be(A,()=>{if(!M.value){M.value=!0;return}A.value?C.value=z.value:R(zx)},{immediate:!0});const B=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${_.value}`]:!0,[`${s.value}-inline-collapsed`]:E.value,[`${s.value}-rtl`]:T.value,[`${s.value}-${e.theme}`]:!0})),N=P(()=>i()),F=P(()=>({horizontal:{name:`${N.value}-slide-up`},inline:Rc(`${N.value}-motion-collapse`),other:{name:`${N.value}-zoom-big`}}));jT(!0);const L=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const J=[],Q=d.value;return G.forEach(K=>{const{key:q,childrenEventKeys:pe}=Q.get(K);J.push(q,...L($t(pe)))}),J},k=G=>{var J;o("click",G),x(G),(J=a==null?void 0:a.onClick)===null||J===void 0||J.call(a)},j=(G,J)=>{var Q;const K=((Q=S.value[G])===null||Q===void 0?void 0:Q.childrenEventKeys)||[];let q=C.value.filter(pe=>pe!==G);if(J)q.push(G);else if(_.value!=="inline"){const pe=L($t(K));q=Zg(q.filter(W=>!pe.includes(W)))}Wi(C,q)||R(q)},H=(G,J)=>{d.value.set(G,J),d.value=new Map(d.value)},Y=G=>{d.value.delete(G),d.value=new Map(d.value)},Z=le(0),U=P(()=>{var G;return e.expandIcon||n.expandIcon||!((G=a==null?void 0:a.expandIcon)===null||G===void 0)&&G.value?J=>{let Q=e.expandIcon||n.expandIcon;return Q=typeof Q=="function"?Q(J):Q,dt(Q,{class:`${s.value}-submenu-expand-icon`},!1)}:null});hY({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:I,rtl:T,mode:_,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:E,theme:P(()=>e.theme),siderCollapsed:f,defaultMotions:P(()=>h.value?F.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:te(void 0),onOpenChange:j,onItemClick:k,registerMenuInfo:H,unRegisterMenuInfo:Y,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:u});const ee=()=>{var G;return v.value||yt((G=n.default)===null||G===void 0?void 0:G.call(n))};return()=>{var G;const J=ee(),Q=Z.value>=J.length-1||_.value!=="horizontal"||e.disabledOverflow,K=pe=>_.value!=="horizontal"||e.disabledOverflow?pe:pe.map((W,X)=>p(rf,{key:W.key,overflowDisabled:X>Z.value},{default:()=>W})),q=((G=n.overflowedIndicator)===null||G===void 0?void 0:G.call(n))||p(Wb,null,null);return c(p(sa,D(D({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:lr,class:[B.value,r.class,u.value],role:"menu",id:e.id,data:K(J),renderRawItem:pe=>pe,renderRawRest:pe=>{const W=pe.length,X=W?J.slice(-W):null;return p(We,null,[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X}),p(Ax,null,{default:()=>[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X})]})])},maxCount:_.value!=="horizontal"||e.disabledOverflow?sa.INVALIDATE:sa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:pe=>{Z.value=pe}}),{default:()=>[p(Jm,{to:"body"},{default:()=>[p("div",{style:{display:"none"},"aria-hidden":!0},[p(Ax,null,{default:()=>[K(ee())]})])]})]}))}}});Vt.install=function(e){return e.component(Vt.name,Vt),e.component(lr.name,lr),e.component(fi.name,fi),e.component(pc.name,pc),e.component(fc.name,fc),e};Vt.Item=lr;Vt.Divider=pc;Vt.SubMenu=fi;Vt.ItemGroup=fc;const zY=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:m({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Rr(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` - > ${n} + span, - > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},HY=Ve("Breadcrumb",e=>{const t=Fe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[zY(t)]}),jY=()=>({prefixCls:String,routes:{type:Array},params:V.any,separator:V.any,itemRender:{type:Function}});function WY(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,l)=>t[l]||r)}function Hx(e){const{route:t,params:n,routes:o,paths:r}=e,l=o.indexOf(t)===o.length-1,i=WY(t,n);return l?p("span",null,[i]):p("a",{href:`#/${r.join("/")}`},[i])}const oi=oe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:jY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("breadcrumb",e),[i,a]=HY(r),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(g=>{d=d.replace(`:${g}`,f[g])}),d),c=(d,f,g)=>{const v=[...d],h=s(f||"",g);return h&&v.push(h),v},u=d=>{let{routes:f=[],params:g={},separator:v,itemRender:h=Hx}=d;const b=[];return f.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=p(Vt,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:f,paths:c($,O.path,g)})}))},null));const C={separator:v};return x&&(C.overlay=x),p(dc,D(D({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:f,paths:$})]})})};return()=>{var d;let f;const{routes:g,params:v={}}=e,h=yt(qt(n,e)),b=(d=qt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||Hx;g&&g.length>0?f=u({routes:g,params:v,separator:b,itemRender:y}):h.length&&(f=h.map(($,x)=>(It(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),sn($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[a.value]:!0};return i(p("nav",D(D({},o),{},{class:S}),[p("ol",null,[f])]))}}});var VY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),sf=oe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:KY(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("breadcrumb",e);return()=>{var l;const{separator:i,class:a}=o,s=VY(o,["separator","class"]),c=yt((l=n.default)===null||l===void 0?void 0:l.call(n));return p("span",D({class:[`${r.value}-separator`,a]},s),[c.length>0?c:"/"])}}});oi.Item=dc;oi.Separator=sf;oi.install=function(e){return e.component(oi.name,oi),e.component(dc.name,dc),e.component(sf.name,sf),e};var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZT={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n=1e3,o=6e4,r=36e5,l="millisecond",i="second",a="minute",s="hour",c="day",u="week",d="month",f="quarter",g="year",v="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,S={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(z){var M=["th","st","nd","rd"],B=z%100;return"["+z+(M[(B-20)%10]||M[B]||M[0])+"]"}},$=function(z,M,B){var N=String(z);return!N||N.length>=M?z:""+Array(M+1-N.length).join(B)+z},x={s:$,z:function(z){var M=-z.utcOffset(),B=Math.abs(M),N=Math.floor(B/60),F=B%60;return(M<=0?"+":"-")+$(N,2,"0")+":"+$(F,2,"0")},m:function z(M,B){if(M.date()1)return z(k[0])}else{var j=M.name;O[j]=M,F=j}return!N&&F&&(C=F),F||!N&&C},_=function(z,M){if(I(z))return z.clone();var B=typeof M=="object"?M:{};return B.date=z,B.args=arguments,new A(B)},E=x;E.l=T,E.i=I,E.w=function(z,M){return _(z,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=function(){function z(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[w]=!0}var M=z.prototype;return M.parse=function(B){this.$d=function(N){var F=N.date,L=N.utc;if(F===null)return new Date(NaN);if(E.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var k=F.match(b);if(k){var j=k[2]-1||0,H=(k[7]||"0").substring(0,3);return L?new Date(Date.UTC(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)):new Date(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)}}return new Date(F)}(B),this.init()},M.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(B,N){var F=_(B);return this.startOf(N)<=F&&F<=this.endOf(N)},M.isAfter=function(B,N){return _(B)25){var u=i(this).startOf(o).add(1,o).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var f=i(this).startOf(o).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(e6);var ZY=e6.exports;const QY=Il(ZY);var t6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),l=this.week(),i=this.year();return l===1&&r===11?i+1:r===0&&l>=52?i-1:i}}})})(t6);var JY=t6.exports;const eq=Il(JY);var n6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n="month",o="quarter";return function(r,l){var i=l.prototype;i.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var a=i.add;i.add=function(c,u){return c=Number(c),this.$utils().p(u)===o?this.add(3*c,n):a.bind(this)(c,u)};var s=i.startOf;i.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;if(d.p(c)===o){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(c,u)}}})})(n6);var tq=n6.exports;const nq=Il(tq);var o6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){var r=o.prototype,l=r.format;r.format=function(i){var a=this,s=this.$locale();if(!this.isValid())return l.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}});return l.bind(this)(u)}}})})(o6);var oq=o6.exports;const rq=Il(oq);var r6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,l=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(y){this[b]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),$=60*S[1]+(+S[2]||0);return $===0?0:S[0]==="+"?-$:$}(b)}],f=function(b){var y=s[b];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(b,y){var S,$=s.meridiem;if($){for(var x=1;x<=24;x+=1)if(b.indexOf($(x,0,y))>-1){S=x>12;break}}else S=b===(y?"pm":"PM");return S},v={A:[a,function(b){this.afternoon=g(b,!1)}],a:[a,function(b){this.afternoon=g(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[l,u("day")],Do:[a,function(b){var y=s.ordinal,S=b.match(/\d+/);if(this.day=S[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===b&&(this.day=$)}],w:[i,u("week")],ww:[l,u("week")],M:[i,u("month")],MM:[l,u("month")],MMM:[a,function(b){var y=f("months"),S=(f("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[a,function(b){var y=f("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function h(b){var y,S;y=b,S=s&&s.formats;for(var $=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,E,A){var R=A&&A.toUpperCase();return E||S[A]||n[A]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,M,B){return M||B.slice(1)})})).match(o),x=$.length,C=0;C-1)return new Date((F==="X"?1e3:1)*N);var j=h(F)(N),H=j.year,Y=j.month,Z=j.day,U=j.hours,ee=j.minutes,G=j.seconds,J=j.milliseconds,Q=j.zone,K=j.week,q=new Date,pe=Z||(H||Y?1:q.getDate()),W=H||q.getFullYear(),X=0;H&&!Y||(X=Y>0?Y-1:q.getMonth());var ne,ae=U||0,se=ee||0,re=G||0,de=J||0;return Q?new Date(Date.UTC(W,X,pe,ae,se,re,de+60*Q.offset*1e3)):L?new Date(Date.UTC(W,X,pe,ae,se,re,de)):(ne=new Date(W,X,pe,ae,se,re,de),K&&(ne=k(ne).week(K).toDate()),ne)}catch{return new Date("")}}(O,T,w,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),A&&O!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var z=T.length,M=1;M<=z;M+=1){I[1]=T[M-1];var B=S.apply(this,I);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}M===z&&(this.$d=new Date(""))}else x.call(this,C)}}})})(r6);var lq=r6.exports;const iq=Il(lq);ln.extend(iq);ln.extend(rq);ln.extend(UY);ln.extend(qY);ln.extend(QY);ln.extend(eq);ln.extend(nq);ln.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(l){const i=(l||"").replace("Wo","wo");return o.bind(this)(i)}});const aq={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Bl=e=>aq[e]||e.split("_")[0],jx=()=>{ID(!1,"Not match any format. Please help to fire a issue about this.")},sq=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function Wx(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let l=0;lt)return i;r+=n.length}}const Vx=(e,t)=>{if(!e)return null;if(ln.isDayjs(e))return e;const n=t.matchAll(sq);let o=ln(e,t);if(n===null)return o;for(const r of n){const l=r[0],i=r.index;if(l==="Q"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(l.toLowerCase()==="wo"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.week(parseInt(s))}l.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(i,i+l.length)))),l.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(i,i+l.length+1))))}return o},cq={getNow:()=>ln(),getFixedDate:e=>ln(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>ln().locale(Bl(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Bl(e)).weekday(0),getWeek:(e,t)=>t.locale(Bl(e)).week(),getShortWeekDays:e=>ln().locale(Bl(e)).localeData().weekdaysMin(),getShortMonths:e=>ln().locale(Bl(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Bl(e)).format(n),parse:(e,t,n)=>{const o=Bl(e);for(let r=0;rArray.isArray(e)?e.map(n=>Vx(n,t)):Vx(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>ln.isDayjs(n)?n.format(t):n):ln.isDayjs(e)?e.format(t):e},Ub=cq;function Xt(e){const t=D_();return m(m({},e),t)}const l6=Symbol("PanelContextProps"),Yb=e=>{Ge(l6,e)},cr=()=>He(l6,{}),vu={visibility:"hidden"};function Tl(e,t){let{slots:n}=t;var o;const r=Xt(e),{prefixCls:l,prevIcon:i="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:f,onNext:g}=r,{hideNextBtn:v,hidePrevBtn:h}=cr();return p("div",{class:l},[u&&p("button",{type:"button",onClick:u,tabindex:-1,class:`${l}-super-prev-btn`,style:h.value?vu:{}},[s]),f&&p("button",{type:"button",onClick:f,tabindex:-1,class:`${l}-prev-btn`,style:h.value?vu:{}},[i]),p("div",{class:`${l}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&p("button",{type:"button",onClick:g,tabindex:-1,class:`${l}-next-btn`,style:v.value?vu:{}},[a]),d&&p("button",{type:"button",onClick:d,tabindex:-1,class:`${l}-super-next-btn`,style:v.value?vu:{}},[c])])}Tl.displayName="Header";Tl.inheritAttrs=!1;function qb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:l,onNextDecades:i}=t,{hideHeader:a}=cr();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/Pr)*Pr,d=u+Pr-1;return p(Tl,D(D({},t),{},{prefixCls:s,onSuperPrev:l,onSuperNext:i}),{default:()=>[u,Lt("-"),d]})}qb.displayName="DecadeHeader";qb.inheritAttrs=!1;function i6(e,t,n,o,r){let l=e.setHour(t,n);return l=e.setMinute(l,o),l=e.setSecond(l,r),l}function Vu(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function uq(e,t,n,o,r,l){const i=Math.floor(e/o)*o;if(i{z.stopPropagation(),A||o(E)},onMouseenter:()=>{!A&&y&&y(E)},onMouseleave:()=>{!A&&S&&S(E)}},[f?f(E):p("div",{class:`${x}-inner`},[d(E)])]))}C.push(p("tr",{key:O,class:s&&s(I)},[w]))}return p("div",{class:`${t}-body`},[p("table",{class:`${t}-content`},[b&&p("thead",null,[p("tr",null,[b])]),p("tbody",null,[C])])])}Oi.displayName="PanelBody";Oi.inheritAttrs=!1;const jv=3,Kx=4;function Zb(e){const t=Xt(e),n=Ro-1,{prefixCls:o,viewDate:r,generateConfig:l}=t,i=`${o}-cell`,a=l.getYear(r),s=Math.floor(a/Ro)*Ro,c=Math.floor(a/Pr)*Pr,u=c+Pr-1,d=l.setYear(r,c-Math.ceil((jv*Kx*Ro-Pr)/2)),f=g=>{const v=l.getYear(g),h=v+n;return{[`${i}-in-view`]:c<=v&&h<=u,[`${i}-selected`]:v===s}};return p(Oi,D(D({},t),{},{rowNum:Kx,colNum:jv,baseDate:d,getCellText:g=>{const v=l.getYear(g);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(g,v)=>l.addYear(g,v*Ro)}),null)}Zb.displayName="DecadeBody";Zb.inheritAttrs=!1;const mu=new Map;function fq(e,t){let n;function o(){op(e)?t():n=Ye(()=>{o()})}return o(),()=>{Ye.cancel(n)}}function Wv(e,t,n){if(mu.get(e)&&Ye.cancel(mu.get(e)),n<=0){mu.set(e,Ye(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;mu.set(e,Ye(()=>{e.scrollTop+=r,e.scrollTop!==t&&Wv(e,t,n-10)}))}function Ka(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:l,onEnter:i}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Oe.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Oe.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Oe.UP:if(r)return r(-1),!0;break;case Oe.DOWN:if(r)return r(1),!0;break;case Oe.PAGE_UP:if(l)return l(-1),!0;break;case Oe.PAGE_DOWN:if(l)return l(1),!0;break;case Oe.ENTER:if(i)return i(),!0;break}return!1}function a6(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function s6(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let os=null;const bu=new Set;function pq(e){return!os&&typeof window<"u"&&window.addEventListener&&(os=t=>{[...bu].forEach(n=>{n(t)})},window.addEventListener("mousedown",os)),bu.add(e),()=>{bu.delete(e),bu.size===0&&(window.removeEventListener("mousedown",os),os=null)}}function gq(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const hq=e=>e==="month"||e==="date"?"year":e,vq=e=>e==="date"?"month":e,mq=e=>e==="month"||e==="date"?"quarter":e,bq=e=>e==="date"?"week":e,yq={year:hq,month:vq,quarter:mq,week:bq,time:null,date:null};function c6(e,t){return e.some(n=>n&&n.contains(t))}const Ro=10,Pr=Ro*10;function Qb(e){const t=Xt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:l,operationRef:i,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;i.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{a(r.addYear(l,g*Ro),"key")},onCtrlLeftRight:g=>{a(r.addYear(l,g*Pr),"key")},onUpDown:g=>{a(r.addYear(l,g*Ro*jv),"key")},onEnter:()=>{s("year",l)}})};const u=f=>{const g=r.addYear(l,f*Pr);o(g),s(null,g)},d=f=>{a(f,"mouse"),s("year",f)};return p("div",{class:c},[p(qb,D(D({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),p(Zb,D(D({},t),{},{prefixCls:n,onSelect:d}),null)])}Qb.displayName="DecadePanel";Qb.inheritAttrs=!1;const Ku=7;function Pi(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function Sq(e,t,n){const o=Pi(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),l=Math.floor(e.getYear(n)/10);return r===l}function Tp(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function Vv(e,t){return Math.floor(e.getMonth(t)/3)+1}function u6(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&Vv(e,t)===Vv(e,n)}function Jb(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ir(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function $q(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function d6(e,t,n,o){const r=Pi(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function ua(e,t,n){return Ir(e,t,n)&&$q(e,t,n)}function yu(e,t,n,o){return!t||!n||!o?!1:!Ir(e,t,o)&&!Ir(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function Cq(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),l=t.getWeekDay(r);let i=t.addDate(r,o-l);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function As(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function yn(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function f6(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function Kv(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const l=(i,a,s)=>{let c=a;for(;c<=s;){let u;switch(i){case"date":{if(u=r.setDate(t,c),!o(u))return!1;break}case"month":{if(u=r.setMonth(t,c),!Kv({cellDate:u,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(u=r.setYear(t,c),!Kv({cellDate:u,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}c+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const a=r.getDate(r.getEndDate(t));return l("date",1,a)}case"quarter":{const i=Math.floor(r.getMonth(t)/3)*3,a=i+2;return l("month",i,a)}case"year":return l("month",0,11);case"decade":{const i=r.getYear(t),a=Math.floor(i/Ro)*Ro,s=a+Ro-1;return l("year",a,s)}}}function ey(e){const t=Xt(e),{hideHeader:n}=cr();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:l,value:i,format:a}=t,s=`${o}-header`;return p(Tl,{prefixCls:s},{default:()=>[i?yn(i,{locale:l,format:a,generateConfig:r}):" "]})}ey.displayName="TimeHeader";ey.inheritAttrs=!1;const Su=oe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=cr(),n=te(null),o=le(new Map),r=le();return be(()=>e.value,()=>{const l=o.value.get(e.value);l&&t.value!==!1&&Wv(n.value,l.offsetTop,120)}),Ze(()=>{var l;(l=r.value)===null||l===void 0||l.call(r)}),be(t,()=>{var l;(l=r.value)===null||l===void 0||l.call(r),ot(()=>{if(t.value){const i=o.value.get(e.value);i&&(r.value=fq(i,()=>{Wv(n.value,i.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:l,units:i,onSelect:a,value:s,active:c,hideDisabledOptions:u}=e,d=`${l}-cell`;return p("ul",{class:ie(`${l}-column`,{[`${l}-column-active`]:c}),ref:n,style:{position:"relative"}},[i.map(f=>u&&f.disabled?null:p("li",{key:f.value,ref:g=>{o.value.set(f.value,g)},class:ie(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||a(f.value)}},[p("div",{class:`${d}-inner`},[f.label])]))])}}});function p6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function mt(e,t){return e?e[t]:null}function bo(e,t,n){const o=[mt(e,0),mt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function lh(e,t,n,o){const r=[];for(let l=e;l<=t;l+=n)r.push({label:p6(l,2),value:l,disabled:(o||[]).includes(l)});return r}const wq=oe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),l=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),i=le(e.generateConfig.getNow()),a=le(),s=le(),c=le();Lf(()=>{i.value=e.generateConfig.getNow()}),ke(()=>{if(e.disabledTime){const b=e.disabledTime(i);[a.value,s.value,c.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const u=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=i6(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return lh(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,a.value&&a.value())}),f=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":p6(y,2);return m(m({},b),{label:S,value:y})}):d.value),v=P(()=>{var b;return lh(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return lh(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,c.value&&c.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:I}=e,T=[],_=`${b}-content`,E=`${b}-time-panel`;y.value={onUpDown:z=>{const M=T[S];if(M){const B=M.units.findIndex(F=>F.value===M.value),N=M.units.length;for(let F=1;F{I(u(n.value,z,r.value,l.value),"mouse")}),A(x,p(Su,{key:"minute"},null),r.value,v.value,z=>{I(u(n.value,o.value,z,l.value),"mouse")}),A(C,p(Su,{key:"second"},null),l.value,h.value,z=>{I(u(n.value,o.value,r.value,z),"mouse")});let R=-1;return typeof n.value=="boolean"&&(R=n.value?1:0),A(O===!0,p(Su,{key:"12hours"},null),R,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],z=>{I(u(!!z,o.value,r.value,l.value),"mouse")}),p("div",{class:_},[T.map(z=>{let{node:M}=z;return M})])}}}),Oq=wq,Pq=e=>e.filter(t=>t!==!1).length;function Ep(e){const t=Xt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:l,operationRef:i,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:f}=t,g=`${r}-time-panel`,v=le(),h=le(-1),b=Pq([a,s,c,u]);return i.value={onKeydown:y=>Ka(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:v.value&&v.value.onUpDown(S)},onEnter:()=>{d(f||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ey,D(D({},t),{},{format:o,prefixCls:r}),null),p(Oq,D(D({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:v}),null)])}Ep.displayName="TimePanel";Ep.inheritAttrs=!1;function Mp(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:l,isSameCell:i,offsetCell:a,today:s,value:c}=e;function u(d){const f=a(d,-1),g=a(d,1),v=mt(o,0),h=mt(o,1),b=mt(r,0),y=mt(r,1),S=yu(n,b,y,d);function $(T){return i(v,T)}function x(T){return i(h,T)}const C=i(b,d),O=i(y,d),w=(S||O)&&(!l(f)||x(f)),I=(S||C)&&(!l(g)||$(g));return{[`${t}-in-view`]:l(d),[`${t}-in-range`]:yu(n,v,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!v,[`${t}-range-start-near-hover`]:$(d)&&(i(f,b)||yu(n,b,y,f)),[`${t}-range-end-near-hover`]:x(d)&&(i(g,y)||yu(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:I,[`${t}-range-hover-edge-start-near-range`]:w&&i(f,h),[`${t}-range-hover-edge-end-near-range`]:I&&i(g,v),[`${t}-today`]:i(s,d),[`${t}-selected`]:i(c,d)}}return u}const v6=Symbol("RangeContextProps"),Iq=e=>{Ge(v6,e)},Dc=()=>He(v6,{rangedValue:le(),hoverRangedValue:le(),inRange:le(),panelPosition:le()}),Tq=oe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:le(e.value.rangedValue),hoverRangedValue:le(e.value.hoverRangedValue),inRange:le(e.value.inRange),panelPosition:le(e.value.panelPosition)};return Iq(o),be(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function _p(e){const t=Xt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:l,rowCount:i,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=Dc(),f=Cq(l.locale,o,a),g=`${n}-cell`,v=o.locale.getWeekFirstDay(l.locale),h=o.getNow(),b=[],y=l.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(l.locale):[]);r&&b.push(p("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xIr(o,x,C),isInView:x=>Jb(o,x,a),offsetCell:(x,C)=>o.addDate(x,C)}),$=c?x=>c({current:x,today:h}):void 0;return p(Oi,D(D({},t),{},{rowNum:i,colNum:Ku,baseDate:f,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>yn(x,{locale:l,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}_p.displayName="DateBody";_p.inheritAttrs=!1;_p.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function ty(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextMonth:i,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:f}=cr();if(f.value)return null;const g=`${n}-header`,v=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(l),b=p("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})]),y=p("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?yn(l,{locale:r,format:r.monthFormat,generateConfig:o}):v[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return p(Tl,D(D({},t),{},{prefixCls:g,onSuperPrev:c,onPrev:a,onNext:i,onSuperNext:s}),{default:()=>[S]})}ty.displayName="DateHeader";ty.inheritAttrs=!1;const Eq=6;function Bc(e){const t=Xt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:l,operationRef:i,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:f}=t,g=`${n}-${o}-panel`;i.value={onKeydown:b=>Ka(b,m({onLeftRight:y=>{f(a.addDate(s||c,y),"key")},onCtrlLeftRight:y=>{f(a.addYear(s||c,y),"key")},onUpDown:y=>{f(a.addDate(s||c,y*Ku),"key")},onPageUpDown:y=>{f(a.addMonth(s||c,y),"key")}},r))};const v=b=>{const y=a.addYear(c,b);u(y),d(null,y)},h=b=>{const y=a.addMonth(c,b);u(y),d(null,y)};return p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ty,D(D({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),p(_p,D(D({},t),{},{onSelect:b=>f(b,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:Eq}),null)])}Bc.displayName="DatePanel";Bc.inheritAttrs=!1;const Gx=xq("date","time");function ny(e){const t=Xt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:l,defaultValue:i,disabledTime:a,showTime:s,onSelect:c}=t,u=`${n}-datetime-panel`,d=le(null),f=le({}),g=le({}),v=typeof s=="object"?m({},s):{};function h($){const x=Gx.indexOf(d.value)+$;return Gx[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===Oe.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?f:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!l&&v.defaultValue?(C=r.setHour(C,r.getHour(v.defaultValue)),C=r.setMinute(C,r.getMinute(v.defaultValue)),C=r.setSecond(C,r.getSecond(v.defaultValue))):x==="time"&&!l&&i&&(C=r.setYear(C,r.getYear(i)),C=r.setMonth(C,r.getMonth(i)),C=r.setDate(C,r.getDate(i))),c&&c(C,"mouse")},S=a?a(l||null):{};return p("div",{class:ie(u,{[`${u}-active`]:d.value})},[p(Bc,D(D({},t),{},{operationRef:f,active:d.value==="date",onSelect:$=>{y(Vu(r,$,!l&&typeof s=="object"?s.defaultValue:null),"date")}}),null),p(Ep,D(D(D(D({},t),{},{format:void 0},v),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}ny.displayName="DatetimePanel";ny.inheritAttrs=!1;function oy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,value:l}=t,i=`${n}-cell`,a=u=>p("td",{key:"week",class:ie(i,`${i}-week`)},[o.locale.getWeek(r.locale,u)]),s=`${n}-week-panel-row`,c=u=>ie(s,{[`${s}-selected`]:d6(o,r.locale,l,u)});return p(Bc,D(D({},t),{},{panelName:"week",prefixColumn:a,rowClassName:c,keyboardConfig:{onLeftRight:null}}),null)}oy.displayName="WeekPanel";oy.inheritAttrs=!1;function ry(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ry.displayName="MonthHeader";ry.inheritAttrs=!1;const m6=3,Mq=4;function ly(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=Dc(),u=`${n}-cell`,d=Mp({cellPrefixCls:u,value:r,generateConfig:i,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(h,b)=>Jb(i,h,b),isInView:()=>!0,offsetCell:(h,b)=>i.addMonth(h,b)}),f=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),g=i.setMonth(l,0),v=a?h=>a({current:h,locale:o}):void 0;return p(Oi,D(D({},t),{},{rowNum:Mq,colNum:m6,baseDate:g,getCellNode:v,getCellText:h=>o.monthFormat?yn(h,{locale:o,format:o.monthFormat,generateConfig:i}):f[i.getMonth(h)],getCellClassName:d,getCellDate:i.addMonth,titleCell:h=>yn(h,{locale:o,format:"YYYY-MM",generateConfig:i})}),null)}ly.displayName="MonthBody";ly.inheritAttrs=!1;function iy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addMonth(i||a,g*m6),"key")},onEnter:()=>{s("date",i||a)}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ry,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(ly,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse"),s("date",f)}}),null)])}iy.displayName="MonthPanel";iy.inheritAttrs=!1;function ay(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ay.displayName="QuarterHeader";ay.inheritAttrs=!1;const _q=4,Aq=1;function sy(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=Mp({cellPrefixCls:c,value:r,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(f,g)=>u6(i,f,g),isInView:()=>!0,offsetCell:(f,g)=>i.addMonth(f,g*3)}),d=i.setDate(i.setMonth(l,0),1);return p(Oi,D(D({},t),{},{rowNum:Aq,colNum:_q,baseDate:d,getCellText:f=>yn(f,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:u,getCellDate:(f,g)=>i.addMonth(f,g*3),titleCell:f=>yn(f,{locale:o,format:"YYYY-[Q]Q",generateConfig:i})}),null)}sy.displayName="QuarterBody";sy.inheritAttrs=!1;function cy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g*3),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addYear(i||a,g),"key")}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ay,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(sy,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse")}}),null)])}cy.displayName="QuarterPanel";cy.inheritAttrs=!1;function uy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:l,onNextDecade:i,onDecadeClick:a}=t,{hideHeader:s}=cr();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1;return p(Tl,D(D({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Lt("-"),f])]})}uy.displayName="YearHeader";uy.inheritAttrs=!1;const Gv=3,Xx=4;function dy(e){const t=Xt(e),{prefixCls:n,value:o,viewDate:r,locale:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=i.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1,g=i.setYear(r,d-Math.ceil((Gv*Xx-ul)/2)),v=b=>{const y=i.getYear(b);return d<=y&&y<=f},h=Mp({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(b,y)=>Tp(i,b,y),isInView:v,offsetCell:(b,y)=>i.addYear(b,y)});return p(Oi,D(D({},t),{},{rowNum:Xx,colNum:Gv,baseDate:g,getCellText:i.getYear,getCellClassName:h,getCellDate:i.addYear,titleCell:b=>yn(b,{locale:l,format:"YYYY",generateConfig:i})}),null)}dy.displayName="YearBody";dy.inheritAttrs=!1;const ul=10;function fy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>Ka(g,{onLeftRight:v=>{c(l.addYear(i||a,v),"key")},onCtrlLeftRight:v=>{c(l.addYear(i||a,v*ul),"key")},onUpDown:v=>{c(l.addYear(i||a,v*Gv),"key")},onEnter:()=>{u(s==="date"?"date":"month",i||a)}})};const f=g=>{const v=l.addYear(a,g*10);r(v),u(null,v)};return p("div",{class:d},[p(uy,D(D({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{u("decade",a)}}),null),p(dy,D(D({},t),{},{prefixCls:n,onSelect:g=>{u(s==="date"?"date":"month",g),c(g,"mouse")}}),null)])}fy.displayName="YearPanel";fy.inheritAttrs=!1;function b6(e,t,n){return n?p("div",{class:`${e}-footer-extra`},[n(t)]):null}function y6(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:l,okDisabled:i,showNow:a,locale:s}=e,c,u;if(o){const d=n.button||"button";r&&a!==!1&&(c=p("li",{class:`${t}-now`},[p("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),u=o&&p("li",{class:`${t}-ok`},[p(d,{disabled:i,onClick:f=>{f.stopPropagation(),l&&l()}},{default:()=>[s.ok]})])}return!c&&!u?null:p("ul",{class:`${t}-ranges`},[c,u])}function Rq(){return oe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),l=P(()=>60%e.minuteStep===0),i=P(()=>60%e.secondStep===0),a=cr(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:f,panelPosition:g,rangedValue:v,hoverRangedValue:h}=Dc(),b=le({}),[y,S]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:N=>!N&&(d!=null&&d.value)&&e.picker==="time"?d.value:N}),[$,x]=Pt(null,{value:ze(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:N=>{const{generateConfig:F,showTime:L,defaultValue:k}=e,j=F.getNow();return N?!y.value&&e.showTime?typeof L=="object"?Vu(F,Array.isArray(N)?N[0]:N,L.defaultValue||j):k?Vu(F,Array.isArray(N)?N[0]:N,k):Vu(F,Array.isArray(N)?N[0]:N,j):N:j}}),C=N=>{x(N),e.onPickerValueChange&&e.onPickerValueChange(N)},O=N=>{const F=yq[e.picker];return F?F(N):N},[w,I]=Pt(()=>e.picker==="time"?"time":O("date"),{value:ze(e,"mode")});be(()=>e.picker,()=>{I(e.picker)});const T=le(w.value),_=N=>{T.value=N},E=(N,F)=>{const{onPanelChange:L,generateConfig:k}=e,j=O(N||w.value);_(w.value),I(j),L&&(w.value!==j||ua(k,$.value,$.value))&&L(F,j)},A=function(N,F){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:k,generateConfig:j,onSelect:H,onChange:Y,disabledDate:Z}=e;(w.value===k||L)&&(S(N),H&&H(N),c&&c(N,F),Y&&!ua(j,N,y.value)&&!(Z!=null&&Z(N))&&Y(N))},R=N=>b.value&&b.value.onKeydown?([Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN,Oe.PAGE_UP,Oe.PAGE_DOWN,Oe.ENTER].includes(N.which)&&N.preventDefault(),b.value.onKeydown(N)):!1,z=N=>{b.value&&b.value.onBlur&&b.value.onBlur(N)},M=()=>{const{generateConfig:N,hourStep:F,minuteStep:L,secondStep:k}=e,j=N.getNow(),H=uq(N.getHour(j),N.getMinute(j),N.getSecond(j),r.value?F:1,l.value?L:1,i.value?k:1),Y=i6(N,j,H[0],H[1],H[2]);A(Y,"submit")},B=P(()=>{const{prefixCls:N,direction:F}=e;return ie(`${N}-panel`,{[`${N}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${N}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${N}-panel-rtl`]:F==="rtl"})});return Yb(m(m({},a),{mode:w,hideHeader:P(()=>{var N;return e.hideHeader!==void 0?e.hideHeader:(N=a.hideHeader)===null||N===void 0?void 0:N.value}),hidePrevBtn:P(()=>f.value&&g.value==="right"),hideNextBtn:P(()=>f.value&&g.value==="left")})),be(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:N="ant-picker",locale:F,generateConfig:L,disabledDate:k,picker:j="date",tabindex:H=0,showNow:Y,showTime:Z,showToday:U,renderExtraFooter:ee,onMousedown:G,onOk:J,components:Q}=e;s&&g.value!=="right"&&(s.value={onKeydown:R,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let K;const q=m(m(m({},n),e),{operationRef:b,prefixCls:N,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:T.value,onPanelChange:E,disabledDate:k});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":K=p(Qb,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"year":K=p(fy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"month":K=p(iy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"quarter":K=p(cy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"week":K=p(oy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"time":delete q.showTime,K=p(Ep,D(D(D({},q),typeof Z=="object"?Z:null),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;default:Z?K=p(ny,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null):K=p(Bc,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null)}let pe,W;u!=null&&u.value||(pe=b6(N,w.value,ee),W=y6({prefixCls:N,components:Q,needConfirmButton:o.value,okDisabled:!y.value||k&&k(y.value),locale:F,showNow:Y,onNow:o.value&&M,onOk:()=>{y.value&&(A(y.value,"submit",!0),J&&J(y.value))}}));let X;if(U&&w.value==="date"&&j==="date"&&!Z){const ne=L.getNow(),ae=`${N}-today-btn`,se=k&&k(ne);X=p("a",{class:ie(ae,se&&`${ae}-disabled`),"aria-disabled":se,onClick:()=>{se||A(ne,"mouse",!0)}},[F.today])}return p("div",{tabindex:H,class:ie(B.value,n.class),style:n.style,onKeydown:R,onBlur:z,onMousedown:G},[K,pe||W||X?p("div",{class:`${N}-footer`},[pe,W,X]):null])}}})}const Dq=Rq(),py=e=>p(Dq,e),Bq={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function S6(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:l,dropdownClassName:i,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:f}=Xt(e),g=`${o}-dropdown`;return p(wi,{showAction:[],hideAction:[],popupPlacement:(()=>d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft")(),builtinPlacements:Bq,prefixCls:g,popupTransitionName:s,popupAlign:a,popupVisible:l,popupClassName:ie(i,{[`${g}-range`]:u,[`${g}-rtl`]:f==="rtl"}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const $6=oe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?p("div",{class:`${e.prefixCls}-presets`},[p("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return p("li",{key:n,onClick:l=>{l.stopPropagation(),e.onClick(r)},onMouseenter:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,r)},onMouseleave:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,null)}},[o])})])]):null}});function Xv(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:l,onKeydown:i,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const f=te(!1),g=te(!1),v=te(!1),h=te(!1),b=te(!1),y=P(()=>({onMousedown:()=>{f.value=!0,r(!0)},onKeydown:$=>{if(i($,()=>{b.value=!0}),!b.value){switch($.which){case Oe.ENTER:{t.value?s()!==!1&&(f.value=!0):r(!0),$.preventDefault();return}case Oe.TAB:{f.value&&t.value&&!$.shiftKey?(f.value=!1,$.preventDefault()):!f.value&&t.value&&!l($)&&$.shiftKey&&(f.value=!0,$.preventDefault());return}case Oe.ESC:{f.value=!0,c();return}}!t.value&&![Oe.SHIFT].includes($.which)?r(!0):f.value||l($)}},onFocus:$=>{f.value=!0,g.value=!0,u&&u($)},onBlur:$=>{if(v.value||!o(document.activeElement)){v.value=!1;return}a.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&c()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));be(t,()=>{h.value=!1}),be(n,()=>{h.value=!0});const S=te();return je(()=>{S.value=pq($=>{const x=gq($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(v.value=!0,Ye(()=>{v.value=!1}))}})}),Ze(()=>{S.value&&S.value()}),[y,{focused:g,typing:f}]}function Uv(e){let{valueTexts:t,onTextChange:n}=e;const o=le("");function r(i){o.value=i,n(i)}function l(){o.value=t.value[0]}return be(()=>[...t.value],function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.join("||")!==a.join("||")&&t.value.every(s=>s!==o.value)&&l()},{immediate:!0}),[o,r,l]}function cf(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=q0(()=>{if(!e.value)return[[""],""];let s="";const c=[];for(let u=0;uc[0]!==s[0]||!Wi(c[1],s[1])),i=P(()=>l.value[0]),a=P(()=>l.value[1]);return[i,a]}function Yv(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=le(null);let i;function a(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ye.cancel(i),f){l.value=d;return}i=Ye(()=>{l.value=d})}const[,s]=cf(l,{formatList:n,generateConfig:o,locale:r});function c(d){a(d)}function u(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;a(null,d)}return be(e,()=>{u(!0)}),Ze(()=>{Ye.cancel(i)}),[s,c,u]}function C6(e,t){return P(()=>e!=null&&e.value?e.value:t!=null&&t.value?(Yf(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],l=typeof r=="function"?r():r;return{label:o,value:l}})):[])}function Nq(){return oe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=le(null),l=P(()=>e.presets),i=C6(l),a=P(()=>{var k;return(k=e.picker)!==null&&k!==void 0?k:"date"}),s=P(()=>a.value==="date"&&!!e.showTime||a.value==="time"),c=P(()=>g6(a6(e.format,a.value,e.showTime,e.use12Hours))),u=le(null),d=le(null),f=le(null),[g,v]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue}),h=le(g.value),b=k=>{h.value=k},y=le(null),[S,$]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:k=>e.disabled?!1:k,onChange:k=>{e.onOpenChange&&e.onOpenChange(k),!k&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=cf(h,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),[O,w,I]=Uv({valueTexts:x,onTextChange:k=>{const j=f6(k,{locale:e.locale,formatList:c.value,generateConfig:e.generateConfig});j&&(!e.disabledDate||!e.disabledDate(j))&&b(j)}}),T=k=>{const{onChange:j,generateConfig:H,locale:Y}=e;b(k),v(k),j&&!ua(H,g.value,k)&&j(k,k?yn(k,{generateConfig:H,locale:Y,format:c.value[0]}):"")},_=k=>{e.disabled&&k||$(k)},E=k=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(k):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),_(!0))},[R,{focused:z,typing:M}]=Xv({blurToCancel:s,open:S,value:O,triggerOpen:_,forwardKeydown:E,isClickOutside:k=>!c6([u.value,d.value,f.value],k),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(T(h.value),_(!1),I(),!0),onCancel:()=>{_(!1),b(g.value),I()},onKeydown:(k,j)=>{var H;(H=e.onKeydown)===null||H===void 0||H.call(e,k,j)},onFocus:k=>{var j;(j=e.onFocus)===null||j===void 0||j.call(e,k)},onBlur:k=>{var j;(j=e.onBlur)===null||j===void 0||j.call(e,k)}});be([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&I())}),be(a,()=>{S.value||I()}),be(g,()=>{b(g.value)});const[B,N,F]=Yv(O,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),L=(k,j)=>{(j==="submit"||j!=="key"&&!s.value)&&(T(k),_(!1))};return Yb({operationRef:y,hideHeader:P(()=>a.value==="time"),onSelect:L,open:S,defaultOpenValue:ze(e,"defaultOpenValue"),onDateMouseenter:N,onDateMouseleave:F}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:k="rc-picker",id:j,tabindex:H,dropdownClassName:Y,dropdownAlign:Z,popupStyle:U,transitionName:ee,generateConfig:G,locale:J,inputReadOnly:Q,allowClear:K,autofocus:q,picker:pe="date",defaultOpenValue:W,suffixIcon:X,clearIcon:ne,disabled:ae,placeholder:se,getPopupContainer:re,panelRender:de,onMousedown:ge,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se,onSelect:ue,direction:ce,autocomplete:he="off"}=e,Pe=m(m(m({},e),n),{class:ie({[`${k}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Ie=p("div",{class:`${k}-panel-layout`},[p($6,{prefixCls:k,presets:i.value,onClick:_e=>{T(_e),_(!1)}},null),p(py,D(D({},Pe),{},{generateConfig:G,value:h.value,locale:J,tabindex:-1,onSelect:_e=>{ue==null||ue(_e),b(_e)},direction:ce,onPanelChange:(_e,De)=>{const{onPanelChange:Je}=e;F(!0),Je==null||Je(_e,De)}}),null)]);de&&(Ie=de(Ie));const Ae=p("div",{class:`${k}-panel-container`,ref:u,onMousedown:_e=>{_e.preventDefault()}},[Ie]);let $e;X&&($e=p("span",{class:`${k}-suffix`},[X]));let xe;K&&g.value&&!ae&&(xe=p("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),T(null),_(!1)},class:`${k}-clear`,role:"button"},[ne||p("span",{class:`${k}-clear-btn`},null)]));const we=m(m(m(m({id:j,tabindex:H,disabled:ae,readonly:Q||typeof c.value[0]=="function"||!M.value,value:B.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:se,ref:r,title:O.value},R.value),{size:s6(pe,c.value[0],G)}),h6(e)),{autocomplete:he}),Me=e.inputRender?e.inputRender(we):p("input",we,null),Ne=ce==="rtl"?"bottomRight":"bottomLeft";return p("div",{ref:f,class:ie(k,n.class,{[`${k}-disabled`]:ae,[`${k}-focused`]:z.value,[`${k}-rtl`]:ce==="rtl"}),style:n.style,onMousedown:ge,onMouseup:A,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se},[p("div",{class:ie(`${k}-input`,{[`${k}-input-placeholder`]:!!B.value}),ref:d},[Me,$e,xe]),p(S6,{visible:S.value,popupStyle:U,prefixCls:k,dropdownClassName:Y,dropdownAlign:Z,getPopupContainer:re,transitionName:ee,popupPlacement:Ne,direction:ce},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const Fq=Nq();function Lq(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:l,disabled:i,generateConfig:a}=e;const s=P(()=>mt(r.value,0)),c=P(()=>mt(r.value,1));function u(h){return a.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=a.value.getYear(h),y=a.value.getMonth(h);return b*100+y}function f(h){const b=a.value.getYear(h),y=Vv(a.value,h);return b*10+y}return[h=>{var b;if(l&&(!((b=l==null?void 0:l.value)===null||b===void 0)&&b.call(l,h)))return!0;if(i[1]&&c)return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return f(h)>f(c.value);case"month":return d(h)>d(c.value);case"week":return u(h)>u(c.value);default:return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value)}return!1},h=>{var b;if(!((b=l.value)===null||b===void 0)&&b.call(l,h))return!0;if(i[0]&&s)return!Ir(a.value,h,c.value)&&a.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(h)Sq(o,i,a));case"quarter":case"month":return l((i,a)=>Tp(o,i,a));default:return l((i,a)=>Jb(o,i,a))}}function zq(e,t,n,o){const r=mt(e,0),l=mt(e,1);if(t===0)return r;if(r&&l)switch(kq(r,l,n,o)){case"same":return r;case"closing":return r;default:return As(l,n,o,-1)}return r}function Hq(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const l=le([mt(o,0),mt(o,1)]),i=le(null),a=P(()=>mt(t.value,0)),s=P(()=>mt(t.value,1)),c=g=>l.value[g]?l.value[g]:mt(i.value,g)||zq(t.value,g,n.value,r.value)||a.value||s.value||r.value.getNow(),u=le(null),d=le(null);ke(()=>{u.value=c(0),d.value=c(1)});function f(g,v){if(g){let h=bo(i.value,g,v);l.value=bo(l.value,null,v)||[null,null];const b=(v+1)%2;mt(t.value,b)||(h=bo(h,g,b)),i.value=h}else(a.value||s.value)&&(i.value=null)}return[u,d,f]}function x6(e){return Wm()?(o3(e),!0):!1}function jq(e){return typeof e=="function"?e():$t(e)}function gy(e){var t;const n=jq(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Wq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;pn()?je(e):t?e():ot(e)}function w6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=te(),o=()=>n.value=!!e();return o(),Wq(o,t),n}var ih;const O6=typeof window<"u";O6&&(!((ih=window==null?void 0:window.navigator)===null||ih===void 0)&&ih.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const P6=O6?window:void 0;var Vq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Vq(n,["window"]);let l;const i=w6(()=>o&&"ResizeObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new ResizeObserver(t),l.observe(u,r))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}function rs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=te(t.width),l=te(t.height);return Kq(e,i=>{let[a]=i;const s=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;s?(r.value=s.reduce((c,u)=>{let{inlineSize:d}=u;return c+d},0),l.value=s.reduce((c,u)=>{let{blockSize:d}=u;return c+d},0)):(r.value=a.contentRect.width,l.value=a.contentRect.height)},n),be(()=>gy(e),i=>{r.value=i?t.width:0,l.value=i?t.height:0}),{width:r,height:l}}function Ux(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Yx(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function Gq(){return oe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),l=P(()=>e.presets),i=P(()=>e.ranges),a=C6(l,i),s=le({}),c=le(null),u=le(null),d=le(null),f=le(null),g=le(null),v=le(null),h=le(null),b=le(null),y=P(()=>g6(a6(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Pt(0,{value:ze(e,"activePickerIndex")}),x=le(null),C=P(()=>{const{disabled:Ee}=e;return Array.isArray(Ee)?Ee:[Ee||!1,Ee||!1]}),[O,w]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:Ee=>e.picker==="time"&&!e.order?Ee:Ux(Ee,e.generateConfig)}),[I,T,_]=Hq({values:O,picker:ze(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ze(e,"generateConfig")}),[E,A]=Pt(O.value,{postState:Ee=>{let Ue=Ee;if(C.value[0]&&C.value[1])return Ue;for(let Ke=0;Ke<2;Ke+=1)C.value[Ke]&&!mt(Ue,Ke)&&!mt(e.allowEmpty,Ke)&&(Ue=bo(Ue,e.generateConfig.getNow(),Ke));return Ue}}),[R,z]=Pt([e.picker,e.picker],{value:ze(e,"mode")});be(()=>e.picker,()=>{z([e.picker,e.picker])});const M=(Ee,Ue)=>{var Ke;z(Ee),(Ke=e.onPanelChange)===null||Ke===void 0||Ke.call(e,Ue,Ee)},[B,N]=Lq({picker:ze(e,"picker"),selectedValue:E,locale:ze(e,"locale"),disabled:C,disabledDate:ze(e,"disabledDate"),generateConfig:ze(e,"generateConfig")},s),[F,L]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:Ee=>C.value[S.value]?!1:Ee,onChange:Ee=>{var Ue;(Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,Ee),!Ee&&x.value&&x.value.onClose&&x.value.onClose()}}),k=P(()=>F.value&&S.value===0),j=P(()=>F.value&&S.value===1),H=le(0),Y=le(0),Z=le(0),{width:U}=rs(c);be([F,U],()=>{!F.value&&c.value&&(Z.value=U.value)});const{width:ee}=rs(u),{width:G}=rs(b),{width:J}=rs(d),{width:Q}=rs(g);be([S,F,ee,G,J,Q,()=>e.direction],()=>{Y.value=0,S.value?d.value&&g.value&&(Y.value=J.value+Q.value,ee.value&&G.value&&Y.value>ee.value-G.value-(e.direction==="rtl"||b.value.offsetLeft>Y.value?0:b.value.offsetLeft)&&(H.value=Y.value)):S.value===0&&(H.value=0)},{immediate:!0});const K=le();function q(Ee,Ue){if(Ee)clearTimeout(K.value),s.value[Ue]=!0,$(Ue),L(Ee),F.value||_(null,Ue);else if(S.value===Ue){L(Ee);const Ke=s.value;K.value=setTimeout(()=>{Ke===s.value&&(s.value={})})}}function pe(Ee){q(!0,Ee),setTimeout(()=>{const Ue=[v,h][Ee];Ue.value&&Ue.value.focus()},0)}function W(Ee,Ue){let Ke=Ee,Ct=mt(Ke,0),en=mt(Ke,1);const{generateConfig:Wt,locale:Kn,picker:gn,order:Go,onCalendarChange:Jn,allowEmpty:fo,onChange:At,showTime:Eo}=e;Ct&&en&&Wt.isAfter(Ct,en)&&(gn==="week"&&!d6(Wt,Kn.locale,Ct,en)||gn==="quarter"&&!u6(Wt,Ct,en)||gn!=="week"&&gn!=="quarter"&&gn!=="time"&&!(Eo?ua(Wt,Ct,en):Ir(Wt,Ct,en))?(Ue===0?(Ke=[Ct,null],en=null):(Ct=null,Ke=[null,en]),s.value={[Ue]:!0}):(gn!=="time"||Go!==!1)&&(Ke=Ux(Ke,Wt))),A(Ke);const po=Ke&&Ke[0]?yn(Ke[0],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"",Wr=Ke&&Ke[1]?yn(Ke[1],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"";Jn&&Jn(Ke,[po,Wr],{range:Ue===0?"start":"end"});const Vr=Yx(Ct,0,C.value,fo),Mo=Yx(en,1,C.value,fo);(Ke===null||Vr&&Mo)&&(w(Ke),At&&(!ua(Wt,mt(O.value,0),Ct)||!ua(Wt,mt(O.value,1),en))&&At(Ke,[po,Wr]));let _o=null;Ue===0&&!C.value[1]?_o=1:Ue===1&&!C.value[0]&&(_o=0),_o!==null&&_o!==S.value&&(!s.value[_o]||!mt(Ke,_o))&&mt(Ke,Ue)?pe(_o):q(!1,Ue)}const X=Ee=>F&&x.value&&x.value.onKeydown?x.value.onKeydown(Ee):!1,ne={formatList:y,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")},[ae,se]=cf(P(()=>mt(E.value,0)),ne),[re,de]=cf(P(()=>mt(E.value,1)),ne),ge=(Ee,Ue)=>{const Ke=f6(Ee,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Ke&&!(Ue===0?B:N)(Ke)&&(A(bo(E.value,Ke,Ue)),_(Ke,Ue))},[me,fe,ye]=Uv({valueTexts:ae,onTextChange:Ee=>ge(Ee,0)}),[Se,ue,ce]=Uv({valueTexts:re,onTextChange:Ee=>ge(Ee,1)}),[he,Pe]=vt(null),[Ie,Ae]=vt(null),[$e,xe,we]=Yv(me,ne),[Me,Ne,_e]=Yv(Se,ne),De=Ee=>{Ae(bo(E.value,Ee,S.value)),S.value===0?xe(Ee):Ne(Ee)},Je=()=>{Ae(bo(E.value,null,S.value)),S.value===0?we():_e()},ft=(Ee,Ue)=>({forwardKeydown:X,onBlur:Ke=>{var Ct;(Ct=e.onBlur)===null||Ct===void 0||Ct.call(e,Ke)},isClickOutside:Ke=>!c6([u.value,d.value,f.value,c.value],Ke),onFocus:Ke=>{var Ct;$(Ee),(Ct=e.onFocus)===null||Ct===void 0||Ct.call(e,Ke)},triggerOpen:Ke=>{q(Ke,Ee)},onSubmit:()=>{if(!E.value||e.disabledDate&&e.disabledDate(E.value[Ee]))return!1;W(E.value,Ee),Ue()},onCancel:()=>{q(!1,Ee),A(O.value),Ue()}}),[it,{focused:pt,typing:ht}]=Xv(m(m({},ft(0,ye)),{blurToCancel:r,open:k,value:me,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),[Ut,{focused:Jt,typing:rn}]=Xv(m(m({},ft(1,ce)),{blurToCancel:r,open:j,value:Se,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),jt=Ee=>{var Ue;(Ue=e.onClick)===null||Ue===void 0||Ue.call(e,Ee),!F.value&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&(C.value[0]?C.value[1]||pe(1):pe(0))},xn=Ee=>{var Ue;(Ue=e.onMousedown)===null||Ue===void 0||Ue.call(e,Ee),F.value&&(pt.value||Jt.value)&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&Ee.preventDefault()},Wn=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[0]?yn(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),uo=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[1]?yn(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});be([F,ae,re],()=>{F.value||(A(O.value),!ae.value.length||ae.value[0]===""?fe(""):se.value!==me.value&&ye(),!re.value.length||re.value[0]===""?ue(""):de.value!==Se.value&&ce())}),be([Wn,uo],()=>{A(O.value)}),o({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),h.value&&h.value.blur()}});const To=P(()=>F.value&&Ie.value&&Ie.value[0]&&Ie.value[1]&&e.generateConfig.isAfter(Ie.value[1],Ie.value[0])?Ie.value:null);function Vn(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ke,showTime:Ct,dateRender:en,direction:Wt,disabledTime:Kn,prefixCls:gn,locale:Go}=e;let Jn=Ct;if(Ct&&typeof Ct=="object"&&Ct.defaultValue){const At=Ct.defaultValue;Jn=m(m({},Ct),{defaultValue:mt(At,S.value)||void 0})}let fo=null;return en&&(fo=At=>{let{current:Eo,today:po}=At;return en({current:Eo,today:po,info:{range:S.value?"end":"start"}})}),p(Tq,{value:{inRange:!0,panelPosition:Ee,rangedValue:he.value||E.value,hoverRangedValue:To.value}},{default:()=>[p(py,D(D(D({},e),Ue),{},{dateRender:fo,showTime:Jn,mode:R.value[S.value],generateConfig:Ke,style:void 0,direction:Wt,disabledDate:S.value===0?B:N,disabledTime:At=>Kn?Kn(At,S.value===0?"start":"end"):!1,class:ie({[`${gn}-panel-focused`]:S.value===0?!ht.value:!rn.value}),value:mt(E.value,S.value),locale:Go,tabIndex:-1,onPanelChange:(At,Eo)=>{S.value===0&&we(!0),S.value===1&&_e(!0),M(bo(R.value,Eo,S.value),bo(E.value,At,S.value));let po=At;Ee==="right"&&R.value[S.value]===Eo&&(po=As(po,Eo,Ke,-1)),_(po,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?mt(E.value,1):mt(E.value,0)}),null)]})}const El=(Ee,Ue)=>{const Ke=bo(E.value,Ee,S.value);Ue==="submit"||Ue!=="key"&&!r.value?(W(Ke,S.value),S.value===0?we():_e()):A(Ke)};return Yb({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:De,onDateMouseleave:Je,hideRanges:P(()=>!0),onSelect:El,open:F}),()=>{const{prefixCls:Ee="rc-picker",id:Ue,popupStyle:Ke,dropdownClassName:Ct,transitionName:en,dropdownAlign:Wt,getPopupContainer:Kn,generateConfig:gn,locale:Go,placeholder:Jn,autofocus:fo,picker:At="date",showTime:Eo,separator:po="~",disabledDate:Wr,panelRender:Vr,allowClear:Mo,suffixIcon:Ei,clearIcon:_o,inputReadOnly:ig,renderExtraFooter:wM,onMouseenter:OM,onMouseleave:PM,onMouseup:IM,onOk:J1,components:TM,direction:Xa,autocomplete:eS="off"}=e,EM=Xa==="rtl"?{right:`${Y.value}px`}:{left:`${Y.value}px`};function MM(){let Gn;const Kr=b6(Ee,R.value[S.value],wM),rS=y6({prefixCls:Ee,components:TM,needConfirmButton:r.value,okDisabled:!mt(E.value,S.value)||Wr&&Wr(E.value[S.value]),locale:Go,onOk:()=>{mt(E.value,S.value)&&(W(E.value,S.value),J1&&J1(E.value))}});if(At!=="time"&&!Eo){const Gr=S.value===0?I.value:T.value,RM=As(Gr,At,gn),ug=R.value[S.value]===At,lS=Vn(ug?"left":!1,{pickerValue:Gr,onPickerValueChange:dg=>{_(dg,S.value)}}),iS=Vn("right",{pickerValue:RM,onPickerValueChange:dg=>{_(As(dg,At,gn,-1),S.value)}});Xa==="rtl"?Gn=p(We,null,[iS,ug&&lS]):Gn=p(We,null,[lS,ug&&iS])}else Gn=Vn();let cg=p("div",{class:`${Ee}-panel-layout`},[p($6,{prefixCls:Ee,presets:a.value,onClick:Gr=>{W(Gr,null),q(!1,S.value)},onHover:Gr=>{Pe(Gr)}},null),p("div",null,[p("div",{class:`${Ee}-panels`},[Gn]),(Kr||rS)&&p("div",{class:`${Ee}-footer`},[Kr,rS])])]);return Vr&&(cg=Vr(cg)),p("div",{class:`${Ee}-panel-container`,style:{marginLeft:`${H.value}px`},ref:u,onMousedown:Gr=>{Gr.preventDefault()}},[cg])}const _M=p("div",{class:ie(`${Ee}-range-wrapper`,`${Ee}-${At}-range-wrapper`),style:{minWidth:`${Z.value}px`}},[p("div",{ref:b,class:`${Ee}-range-arrow`,style:EM},null),MM()]);let tS;Ei&&(tS=p("span",{class:`${Ee}-suffix`},[Ei]));let nS;Mo&&(mt(O.value,0)&&!C.value[0]||mt(O.value,1)&&!C.value[1])&&(nS=p("span",{onMousedown:Gn=>{Gn.preventDefault(),Gn.stopPropagation()},onMouseup:Gn=>{Gn.preventDefault(),Gn.stopPropagation();let Kr=O.value;C.value[0]||(Kr=bo(Kr,null,0)),C.value[1]||(Kr=bo(Kr,null,1)),W(Kr,null),q(!1,S.value)},class:`${Ee}-clear`},[_o||p("span",{class:`${Ee}-clear-btn`},null)]));const oS={size:s6(At,y.value[0],gn)};let ag=0,sg=0;d.value&&f.value&&g.value&&(S.value===0?sg=d.value.offsetWidth:(ag=Y.value,sg=f.value.offsetWidth));const AM=Xa==="rtl"?{right:`${ag}px`}:{left:`${ag}px`};return p("div",D({ref:c,class:ie(Ee,`${Ee}-range`,n.class,{[`${Ee}-disabled`]:C.value[0]&&C.value[1],[`${Ee}-focused`]:S.value===0?pt.value:Jt.value,[`${Ee}-rtl`]:Xa==="rtl"}),style:n.style,onClick:jt,onMouseenter:OM,onMouseleave:PM,onMousedown:xn,onMouseup:IM},h6(e)),[p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===0,[`${Ee}-input-placeholder`]:!!$e.value}),ref:d},[p("input",D(D(D({id:Ue,disabled:C.value[0],readonly:ig||typeof y.value[0]=="function"||!ht.value,value:$e.value||me.value,onInput:Gn=>{fe(Gn.target.value)},autofocus:fo,placeholder:mt(Jn,0)||"",ref:v},it.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-range-separator`,ref:g},[po]),p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===1,[`${Ee}-input-placeholder`]:!!Me.value}),ref:f},[p("input",D(D(D({disabled:C.value[1],readonly:ig||typeof y.value[0]=="function"||!rn.value,value:Me.value||Se.value,onInput:Gn=>{ue(Gn.target.value)},placeholder:mt(Jn,1)||"",ref:h},Ut.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-active-bar`,style:m(m({},AM),{width:`${sg}px`,position:"absolute"})},null),tS,nS,p(S6,{visible:F.value,popupStyle:Ke,prefixCls:Ee,dropdownClassName:Ct,dropdownAlign:Wt,getPopupContainer:Kn,transitionName:en,range:!0,direction:Xa},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>_M})])}}})}const Xq=Gq(),Uq=Xq;var Yq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{l.value=e.checked}),r({focus(){var u;(u=i.value)===null||u===void 0||u.focus()},blur(){var u;(u=i.value)===null||u===void 0||u.blur()}});const a=le(),s=u=>{if(e.disabled)return;e.checked===void 0&&(l.value=u.target.checked),u.shiftKey=a.value;const d={target:m(m({},e),{checked:u.target.checked}),stopPropagation(){u.stopPropagation()},preventDefault(){u.preventDefault()},nativeEvent:u};e.checked!==void 0&&(i.value.checked=!!e.checked),o("change",d),a.value=!1},c=u=>{o("click",u),a.value=u.shiftKey};return()=>{const{prefixCls:u,name:d,id:f,type:g,disabled:v,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=Yq(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_}=n,E=m(m({},x),n),A=Object.keys(E).reduce((M,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(M[B]=E[B]),M),{}),R=ie(u,C,{[`${u}-checked`]:l.value,[`${u}-disabled`]:v}),z=m(m({name:d,id:f,type:g,readonly:h,disabled:v,tabindex:b,class:`${u}-input`,checked:!!l.value,autofocus:y,value:S},A),{onChange:s,onClick:c,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_,required:$});return p("span",{class:R},[p("input",D({ref:i},z),null),p("span",{class:`${u}-inner`},null)])}}}),T6=Symbol("radioGroupContextKey"),Zq=e=>{Ge(T6,e)},Qq=()=>He(T6,void 0),E6=Symbol("radioOptionTypeContextKey"),Jq=e=>{Ge(E6,e)},eZ=()=>He(E6,void 0),tZ=new nt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),nZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:m(m({},Xe(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},oZ=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:m(m({},Xe(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:tZ,animationDuration:l,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:m({},Ar(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${l} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?c:o,"&::after":{transform:`scale(${f/r})`,opacity:1,transition:`all ${l} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},rZ=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:l,colorBorder:i,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:I,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:E}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${l} ${i}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${l} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:v,paddingInline:h-r,paddingBlock:0,lineHeight:`${v-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":m({},Ar(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:I,backgroundColor:T,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:T,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:_,backgroundColor:E,borderColor:i,boxShadow:"none"}}}},M6=Ve("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:l,fontSizeLG:i,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,b=`0 0 0 ${g}px ${a}`,y=b,S=i,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=u,I=s,T=c,_=t-n,R=Fe(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:v,radioButtonBg:l,radioButtonCheckedBg:l,radioButtonColor:w,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:f});return[nZ(R),oZ(R),rZ(R)]});var lZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,autofocus:Ce(),onChange:ve(),onFocus:ve(),onBlur:ve(),onClick:ve(),"onUpdate:checked":ve(),"onUpdate:value":ve()}),Nn=oe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:_6(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:l}=t;const i=Qt(),a=un.useInject(),s=eZ(),c=Qq(),u=qn(),d=P(()=>{var I;return(I=h.value)!==null&&I!==void 0?I:u.value}),f=le(),{prefixCls:g,direction:v,disabled:h}=Te("radio",e),b=P(()=>(c==null?void 0:c.optionType.value)==="button"||s==="button"?`${g.value}-button`:g.value),y=qn(),[S,$]=M6(g);o({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const O=I=>{const T=I.target.checked;n("update:checked",T),n("update:value",T),n("change",I),i.onFieldChange()},w=I=>{n("change",I),c&&c.onChange&&c.onChange(I)};return()=>{var I;const T=c,{prefixCls:_,id:E=i.id.value}=e,A=lZ(e,["prefixCls","id"]),R=m(m({prefixCls:b.value,id:E},et(A,["onUpdate:checked","onUpdate:value"])),{disabled:(I=h.value)!==null&&I!==void 0?I:y.value});T?(R.name=T.name.value,R.onChange=w,R.checked=e.value===T.value.value,R.disabled=d.value||T.disabled.value):R.onChange=O;const z=ie({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-rtl`]:v.value==="rtl",[`${b.value}-wrapper-in-form-item`]:a.isFormItemInput},l.class,$.value);return S(p("label",D(D({},l),{},{class:z}),[p(I6,D(D({},R),{},{type:"radio",ref:f}),null),r.default&&p("span",null,[r.default()])]))}}}),iZ=()=>({prefixCls:String,value:V.any,size:Be(),options:at(),disabled:Ce(),name:String,buttonStyle:Be("outline"),id:String,optionType:Be("default"),onChange:ve(),"onUpdate:value":ve()}),hy=oe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:iZ(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=Qt(),{prefixCls:i,direction:a,size:s}=Te("radio",e),[c,u]=M6(i),d=le(e.value),f=le(!1);return be(()=>e.value,v=>{d.value=v,f.value=!1}),Zq({onChange:v=>{const h=d.value,{value:b}=v.target;"value"in e||(d.value=b),!f.value&&b!==h&&(f.value=!0,o("update:value",b),o("change",v),l.onFieldChange()),ot(()=>{f.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var v;const{options:h,buttonStyle:b,id:y=l.id.value}=e,S=`${i.value}-group`,$=ie(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:a.value==="rtl"},r.class,u.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return p(Nn,{key:C,prefixCls:i.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:I}=C;return p(Nn,{key:`radio-group-value-options-${O}`,prefixCls:i.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[I]})}):x=(v=n.default)===null||v===void 0?void 0:v.call(n),c(p("div",D(D({},r),{},{class:$,id:y}),[x]))}}}),uf=oe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:_6(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("radio",e);return Jq("button"),()=>{var l;return p(Nn,D(D(D({},o),e),{},{prefixCls:r.value}),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}}});Nn.Group=hy;Nn.Button=uf;Nn.install=function(e){return e.component(Nn.name,Nn),e.component(Nn.Group.name,Nn.Group),e.component(Nn.Button.name,Nn.Button),e};const aZ=10,sZ=20;function A6(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:l,value:i,onChange:a,divRef:s}=e,c=o.getYear(i||o.getNow());let u=c-aZ,d=u+sZ;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const f=r&&r.year==="年"?"年":"",g=[];for(let v=u;v{let h=o.setYear(i,v);if(n){const[b,y]=n,S=o.getYear(h),$=o.getMonth(h);S===o.getYear(y)&&$>o.getMonth(y)&&(h=o.setMonth(h,o.getMonth(y))),S===o.getYear(b)&&$s.value},null)}A6.inheritAttrs=!1;function R6(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:l,locale:i,onChange:a,divRef:s}=e,c=l.getMonth(r||l.getNow());let u=0,d=11;if(o){const[v,h]=o,b=l.getYear(r);l.getYear(h)===b&&(d=l.getMonth(h)),l.getYear(v)===b&&(u=l.getMonth(v))}const f=i.shortMonths||l.locale.getShortMonths(i.locale),g=[];for(let v=u;v<=d;v+=1)g.push({label:f[v],value:v});return p(Dr,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:g,onChange:v=>{a(l.setMonth(r,v))},getPopupContainer:()=>s.value},null)}R6.inheritAttrs=!1;function D6(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:l}=e;return p(hy,{onChange:i=>{let{target:{value:a}}=i;l(a)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[p(uf,{value:"month"},{default:()=>[n.month]}),p(uf,{value:"year"},{default:()=>[n.year]})]})}D6.inheritAttrs=!1;const cZ=oe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=le(null),r=un.useInject();return un.useProvide(r,{isFormItemInput:!1}),()=>{const l=m(m({},e),n),{prefixCls:i,fullscreen:a,mode:s,onChange:c,onModeChange:u}=l,d=m(m({},l),{fullscreen:a,divRef:o});return p("div",{class:`${i}-header`,ref:o},[p(A6,D(D({},d),{},{onChange:f=>{c(f,"year")}}),null),s==="month"&&p(R6,D(D({},d),{},{onChange:f=>{c(f,"month")}}),null),p(D6,D(D({},d),{},{onModeChange:u}),null)])}}}),vy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ga=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),yl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),my=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":m({},Ga(Fe(e,{inputBorderHoverColor:e.colorBorder})))}),B6=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},by=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Nc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},Ii=e=>m(m({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vy(e.colorTextPlaceholder)),{"&:hover":m({},Ga(e)),"&:focus, &-focused":m({},yl(e)),"&-disabled, &[disabled]":m({},my(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":m({},B6(e)),"&-sm":m({},by(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),N6=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:m({},B6(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:m({},by(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:m(m({display:"block"},zo()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},uZ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=16,l=(n-o*2-r)/2;return{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}}})}},dZ=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},fZ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:m(m(m(m(m({},Ii(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dZ(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Nc(e,`${t}-affix-wrapper`))}},pZ=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:m(m(m({},Xe(e)),N6(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},gZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Ti(e){return Fe(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const hZ=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},yy=Ve("Input",e=>{const t=Ti(e);return[uZ(t),hZ(t),fZ(t),pZ(t),gZ(t),ja(t)]}),ah=(e,t,n,o)=>{const{lineHeight:r}=e,l=Math.floor(n*r)+2,i=Math.max((t-l)/2,0),a=Math.max(t-l-i,0);return{padding:`${i}px ${o}px ${a}px`}},vZ=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:l,borderRadiusSM:i,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:g,controlHeightSM:v,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:b,pickerBasicCellHoverWithRangeColor:y,pickerPanelCellWidth:S,colorTextDisabled:$,colorBgContainerDisabled:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:i,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view), - &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${o}, - &-in-view${n}-range-start ${o}, - &-in-view${n}-range-end ${o}`]:{color:g,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), - &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-start${n}-range-start-single, - &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, - &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, - &-in-view${n}-range-hover-end${n}-range-end-single, - &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${c}px dashed ${h}`,borderBottom:`${c}px dashed ${h}`,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:b},[`&-in-view${n}-in-range${n}-range-hover::before, - &-in-view${n}-range-start${n}-range-hover::before, - &-in-view${n}-range-end${n}-range-hover::before, - &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, - &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-start::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:y},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, - tr > &-in-view${n}-range-hover-end:first-child::after, - &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, - &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, - &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(S-r)/2,borderInlineStart:`${c}px dashed ${h}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after, - tr > &-in-view${n}-range-hover-start:last-child::after, - &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, - &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, - &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${c}px dashed ${h}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},F6=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:l,paddingSM:i,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:f,colorPrimary:g,colorTextHeading:v,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:I,colorText:T,fontSize:_,pickerBasicCellHoverWithRangeColor:E,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:R,pickerQuarterPanelContentHeight:z,colorLink:M,colorLinkActive:B,colorLinkHover:N,pickerDateHoverRangeBorderColor:F,borderRadiusSM:L,colorTextLightSolid:k,borderRadius:j,controlItemBgHover:H,pickerTimePanelColumnHeight:Y,pickerTimePanelColumnWidth:Z,pickerTimePanelCellHeight:U,controlItemBgActive:ee,marginXXS:G}=e,J=l*7+i*2+4,Q=(J-a*2)/3-o-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${h}`,borderRadius:f,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${a}px`,color:v,borderBottom:`${u}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:T,verticalAlign:"middle"}},"&-cell":m({padding:`${w}px 0`,color:I,cursor:"pointer","&-in-view":{color:T}},vZ(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, - &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:E,transition:`all ${A}`,content:'""'}},[`&-date-panel - ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start - ${n}::after`]:{insetInlineEnd:-(l-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:R*4},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:z}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*u}px`,textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:`${S-2*u}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:M,"&:hover":{color:N},"&:active":{color:B},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:L,borderBottomStartRadius:L,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:L,borderBottomEndRadius:L}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n}, - &-selected ${n}, - ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${$}`,"&:first-child":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td":{background:H},"&-selected td,\n &-selected:hover td":{background:g,[`&${t}-cell-week`]:{color:new gt(k).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:k},[n]:{color:k}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-content`]:{width:l*7,th:{width:l}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${h}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Y},"&-column":{flex:"1 0 auto",width:Z,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:Y-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${h}`},"&-active":{background:new gt(ee).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:G,[`${t}-time-panel-cell-inner`]:{display:"block",width:Z-2*G,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Z-U)/2,color:T,lineHeight:`${U}px`,borderRadius:L,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ee}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Y-U+s*2}}}},mZ=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:l,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:l},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:l,inputBorderHoverColor:l,controlOutline:i}))),[`${t}-active-bar`]:{background:l}}}}},bZ=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:l,inputPaddingHorizontal:i,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:g,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:I,colorPrimary:T,motionDurationSlow:_,zIndexPopup:E,paddingXXS:A,paddingSM:R,pickerTextHeight:z,controlItemBgActive:M,colorPrimaryBorder:B,sizePopupArrow:N,borderRadiusXS:F,borderRadiusOuter:L,colorBgElevated:k,borderRadiusLG:j,boxShadowSecondary:H,borderRadiusSM:Y,colorSplit:Z,controlItemBgHover:U,presetsWidth:ee,presetsMaxWidth:G}=e;return[{[t]:m(m(m({},Xe(e)),ah(e,r,l,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":m({},Ga(e)),"&-focused":m({},yl(e)),[`&${t}-disabled`]:{background:g,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":m(m({},Ii(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":m(m({},ah(e,b,y,i)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":m({},ah(e,S,l,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:v,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:i,background:T,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":m(m(m({},Xe(e)),F6(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:wp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Cp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Op},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:xp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-ranges`]:{marginBottom:0,padding:`${A}px ${R}px`,overflow:"hidden",lineHeight:`${z-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:M,borderColor:B,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:m({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${_} ease-out`},x0(N,F,L,k,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:j,boxShadow:H,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:G,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${c} ${Z}`,li:m(m({},Gt),{borderRadius:Y,paddingInline:x,paddingBlock:(S-Math.round(l*I))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},L6=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:l,paddingXXS:i}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new gt(l).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new gt(l).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},k6=Ve("DatePicker",e=>{const t=Fe(Ti(e),L6(e));return[bZ(t),mZ(t),ja(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),yZ=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:l}=e;return{[t]:m(m(m({},F6(e)),Xe(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:l}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},SZ=Ve("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Fe(Ti(e),L6(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[yZ(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function $Z(e){function t(l,i){return l&&i&&e.getYear(l)===e.getYear(i)}function n(l,i){return t(l,i)&&e.getMonth(l)===e.getMonth(i)}function o(l,i){return n(l,i)&&e.getDate(l)===e.getDate(i)}const r=oe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(l,i){let{emit:a,slots:s,attrs:c}=i;const u=l,{prefixCls:d,direction:f}=Te("picker",u),[g,v]=SZ(d),h=P(()=>`${d.value}-calendar`),b=M=>u.valueFormat?e.toString(M,u.valueFormat):M,y=P(()=>u.value?u.valueFormat?e.toDate(u.value,u.valueFormat):u.value:u.value===""?void 0:u.value),S=P(()=>u.defaultValue?u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue:u.defaultValue===""?void 0:u.defaultValue),[$,x]=Pt(()=>y.value||e.getNow(),{defaultValue:S.value,value:y}),[C,O]=Pt("month",{value:ze(u,"mode")}),w=P(()=>C.value==="year"?"month":"date"),I=P(()=>M=>{var B;return(u.validRange?e.isAfter(u.validRange[0],M)||e.isAfter(M,u.validRange[1]):!1)||!!(!((B=u.disabledDate)===null||B===void 0)&&B.call(u,M))}),T=(M,B)=>{a("panelChange",b(M),B)},_=M=>{if(x(M),!o(M,$.value)){(w.value==="date"&&!n(M,$.value)||w.value==="month"&&!t(M,$.value))&&T(M,C.value);const B=b(M);a("update:value",B),a("change",B)}},E=M=>{O(M),T($.value,M)},A=(M,B)=>{_(M),a("select",b(M),{source:B})},R=P(()=>{const{locale:M}=u,B=m(m({},Js),M);return B.lang=m(m({},B.lang),(M||{}).lang),B}),[z]=Io("Calendar",R);return()=>{const M=e.getNow(),{dateFullCellRender:B=s==null?void 0:s.dateFullCellRender,dateCellRender:N=s==null?void 0:s.dateCellRender,monthFullCellRender:F=s==null?void 0:s.monthFullCellRender,monthCellRender:L=s==null?void 0:s.monthCellRender,headerRender:k=s==null?void 0:s.headerRender,fullscreen:j=!0,validRange:H}=u,Y=U=>{let{current:ee}=U;return B?B({current:ee}):p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(M,ee)})},[p("div",{class:`${h.value}-date-value`},[String(e.getDate(ee)).padStart(2,"0")]),p("div",{class:`${h.value}-date-content`},[N&&N({current:ee})])])},Z=(U,ee)=>{let{current:G}=U;if(F)return F({current:G});const J=ee.shortMonths||e.locale.getShortMonths(ee.locale);return p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(M,G)})},[p("div",{class:`${h.value}-date-value`},[J[e.getMonth(G)]]),p("div",{class:`${h.value}-date-content`},[L&&L({current:G})])])};return g(p("div",D(D({},c),{},{class:ie(h.value,{[`${h.value}-full`]:j,[`${h.value}-mini`]:!j,[`${h.value}-rtl`]:f.value==="rtl"},c.class,v.value)}),[k?k({value:$.value,type:C.value,onChange:U=>{A(U,"customize")},onTypeChange:E}):p(cZ,{prefixCls:h.value,value:$.value,generateConfig:e,mode:C.value,fullscreen:j,locale:z.value.lang,validRange:H,onChange:A,onModeChange:E},null),p(py,{value:$.value,prefixCls:d.value,locale:z.value.lang,generateConfig:e,dateRender:Y,monthCellRender:U=>Z(U,z.value.lang),onSelect:U=>{A(U,w.value)},mode:w.value,picker:w.value,disabledDate:I.value,hideHeader:!0},null)]))}}});return r.install=function(l){return l.component(r.name,r),l},r}const CZ=$Z(Ub),xZ=Tt(CZ);function wZ(e){const t=te(),n=te(!1);function o(){for(var r=arguments.length,l=new Array(r),i=0;i{e(...l)}))}return Ze(()=>{n.value=!0,Ye.cancel(t.value)}),o}function OZ(e){const t=te([]),n=te(typeof e=="function"?e():e),o=wZ(()=>{let l=n.value;t.value.forEach(i=>{l=i(l)}),t.value=[],n.value=l});function r(l){t.value.push(l),o()}return[n,r]}const PZ=oe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=le();function l(s){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(s)}n({domRef:r});function i(s){var c;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:s})}const a=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:c,id:u,active:d,tab:{key:f,tab:g,disabled:v,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${c}-tab`,C=p("div",{key:f,ref:r,class:ie(x,{[`${x}-with-remove`]:a.value,[`${x}-active`]:d,[`${x}-disabled`]:v}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":d,id:u&&`${u}-tab-${f}`,class:`${x}-btn`,"aria-controls":u&&`${u}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:O=>{O.stopPropagation(),l(O)},onKeydown:O=>{[Oe.SPACE,Oe.ENTER].includes(O.which)&&(O.preventDefault(),l(O))},onFocus:$},[typeof g=="function"?g():g]),a.value&&p("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),i(O)}},[(h==null?void 0:h())||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),qx={width:0,height:0,left:0,top:0};function IZ(e,t){const n=le(new Map);return ke(()=>{var o,r;const l=new Map,i=e.value,a=t.value.get((o=i[0])===null||o===void 0?void 0:o.key)||qx,s=a.left+a.width;for(let c=0;c{const{prefixCls:l,editable:i,locale:a}=e;return!i||i.showAdd===!1?null:p("button",{ref:r,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:s=>{i.onEdit("add",{event:s})}},[i.addIcon?i.addIcon():"+"])}}}),TZ={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:V.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ve()},EZ=oe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:TZ,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,l]=vt(!1),[i,a]=vt(null),s=g=>{const v=e.tabs.filter(y=>!y.disabled);let h=v.findIndex(y=>y.key===i.value)||0;const b=v.length;for(let y=0;y{const{which:v}=g;if(!r.value){[Oe.DOWN,Oe.SPACE,Oe.ENTER].includes(v)&&(l(!0),g.preventDefault());return}switch(v){case Oe.UP:s(-1),g.preventDefault();break;case Oe.DOWN:s(1),g.preventDefault();break;case Oe.ESC:l(!1);break;case Oe.SPACE:case Oe.ENTER:i.value!==null&&e.onTabClick(i.value,g);break}},u=P(()=>`${e.id}-more-popup`),d=P(()=>i.value!==null?`${u.value}-${i.value}`:null),f=(g,v)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:v,event:g})};return je(()=>{be(i,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),be(r,()=>{r.value||a(null)}),Kb({}),()=>{var g;const{prefixCls:v,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||p(Wb,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:I,popupClassName:T}=e;if(!b.length)return null;const _=`${v}-dropdown`,E=y==null?void 0:y.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:O};b.length||(A.visibility="hidden",A.order=1);const R=ie({[`${_}-rtl`]:w,[`${T}`]:!0}),z=S?null:p(IT,{prefixCls:_,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:l,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(Vt,{onClick:M=>{let{key:B,domEvent:N}=M;I(B,N),l(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[i.value],"aria-label":E!==void 0?E:"expanded dropdown"},{default:()=>[b.map(M=>{var B,N;const F=C&&M.closable!==!1&&!M.disabled;return p(lr,{key:M.key,id:`${u.value}-${M.key}`,role:"option","aria-controls":h&&`${h}-panel-${M.key}`,disabled:M.disabled},{default:()=>[p("span",null,[typeof M.tab=="function"?M.tab():M.tab]),F&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${_}-menu-item-remove`,onClick:L=>{L.stopPropagation(),f(L,M.key)}},[((B=M.closeIcon)===null||B===void 0?void 0:B.call(M))||((N=C.removeIcon)===null||N===void 0?void 0:N.call(C))||"×"])]})})]}),default:()=>p("button",{type:"button",class:`${v}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:c},[$])});return p("div",{class:ie(`${v}-nav-operations`,n.class),style:n.style},[z,p(z6,{prefixCls:v,locale:y,editable:C},null)])}}}),H6=Symbol("tabsContextKey"),MZ=e=>{Ge(H6,e)},j6=()=>He(H6,{tabs:le([]),prefixCls:le()}),_Z=.1,Zx=.01,Gu=20,Qx=Math.pow(.995,Gu);function AZ(e,t){const[n,o]=vt(),[r,l]=vt(0),[i,a]=vt(0),[s,c]=vt(),u=le();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(u.value)}function f(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],I=O-n.value.x,T=w-n.value.y;t(I,T),o({x:O,y:w});const _=Date.now();a(_-r.value),l(_),c({x:I,y:T})}function g(){if(!n.value)return;const C=s.value;if(o(null),c(null),C){const O=C.x/i.value,w=C.y/i.value,I=Math.abs(O),T=Math.abs(w);if(Math.max(I,T)<_Z)return;let _=O,E=w;u.value=setInterval(()=>{if(Math.abs(_)_?(I=O,v.value="x"):(I=w,v.value="y"),t(-I,-I)&&C.preventDefault()}const b=le({onTouchStart:d,onTouchMove:f,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}je(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Ze(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function Jx(e,t){const n=le(e);function o(r){const l=typeof r=="function"?r(n.value):r;l!==n.value&&t(l,n.value),n.value=l}return[n,o]}const RZ=()=>{const e=le(new Map),t=n=>o=>{e.value.set(n,o)};return Lf(()=>{e.value=new Map}),[t,e]},Sy=RZ,ew={width:0,height:0,left:0,top:0,right:0},DZ=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Re(),editable:Re(),moreIcon:V.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Re(),popupClassName:String,getPopupContainer:ve(),onTabClick:{type:Function},onTabScroll:{type:Function}}),BZ=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:l}=e,{width:i,height:a,x:s,y:c}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,a,s-t.x,c-t.y]:[n,o,l,r]},tw=oe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:DZ(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:l}=j6(),i=te(),a=te(),s=te(),c=te(),[u,d]=Sy(),f=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,v]=Jx(0,(re,de)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"left":"right"})}),[h,b]=Jx(0,(re,de)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"top":"bottom"})}),[y,S]=vt(0),[$,x]=vt(0),[C,O]=vt(null),[w,I]=vt(null),[T,_]=vt(0),[E,A]=vt(0),[R,z]=OZ(new Map),M=IZ(r,R),B=P(()=>`${l.value}-nav-operations-hidden`),N=te(0),F=te(0);ke(()=>{f.value?e.rtl?(N.value=0,F.value=Math.max(0,y.value-C.value)):(N.value=Math.min(0,C.value-y.value),F.value=0):(N.value=Math.min(0,w.value-$.value),F.value=0)});const L=re=>reF.value?F.value:re,k=te(),[j,H]=vt(),Y=()=>{H(Date.now())},Z=()=>{clearTimeout(k.value)},U=(re,de)=>{re(ge=>L(ge+de))};AZ(i,(re,de)=>{if(f.value){if(C.value>=y.value)return!1;U(v,re)}else{if(w.value>=$.value)return!1;U(b,de)}return Z(),Y(),!0}),be(j,()=>{Z(),j.value&&(k.value=setTimeout(()=>{H(0)},100))});const ee=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const de=M.value.get(re)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let ge=g.value;e.rtl?de.rightg.value+C.value&&(ge=de.right+de.width-C.value):de.left<-g.value?ge=-de.left:de.left+de.width>-g.value+C.value&&(ge=-(de.left+de.width-C.value)),b(0),v(L(ge))}else{let ge=h.value;de.top<-h.value?ge=-de.top:de.top+de.height>-h.value+w.value&&(ge=-(de.top+de.height-w.value)),v(0),b(L(ge))}},G=te(0),J=te(0);ke(()=>{let re,de,ge,me,fe,ye;const Se=M.value;["top","bottom"].includes(e.tabPosition)?(re="width",me=C.value,fe=y.value,ye=T.value,de=e.rtl?"right":"left",ge=Math.abs(g.value)):(re="height",me=w.value,fe=y.value,ye=E.value,de="top",ge=-h.value);let ue=me;fe+ye>me&&fege+ue){Pe=Ae-1;break}}let Ie=0;for(let Ae=he-1;Ae>=0;Ae-=1)if((Se.get(ce[Ae].key)||ew)[de]{z(()=>{var re;const de=new Map,ge=(re=a.value)===null||re===void 0?void 0:re.getBoundingClientRect();return r.value.forEach(me=>{let{key:fe}=me;const ye=d.value.get(fe),Se=(ye==null?void 0:ye.$el)||ye;if(Se){const[ue,ce,he,Pe]=BZ(Se,ge);de.set(fe,{width:ue,height:ce,left:he,top:Pe})}}),de})};be(()=>r.value.map(re=>re.key).join("%%"),()=>{Q()},{flush:"post"});const K=()=>{var re,de,ge,me,fe;const ye=((re=i.value)===null||re===void 0?void 0:re.offsetWidth)||0,Se=((de=i.value)===null||de===void 0?void 0:de.offsetHeight)||0,ue=((ge=c.value)===null||ge===void 0?void 0:ge.$el)||{},ce=ue.offsetWidth||0,he=ue.offsetHeight||0;O(ye),I(Se),_(ce),A(he);const Pe=(((me=a.value)===null||me===void 0?void 0:me.offsetWidth)||0)-ce,Ie=(((fe=a.value)===null||fe===void 0?void 0:fe.offsetHeight)||0)-he;S(Pe),x(Ie),Q()},q=P(()=>[...r.value.slice(0,G.value),...r.value.slice(J.value+1)]),[pe,W]=vt(),X=P(()=>M.value.get(e.activeKey)),ne=te(),ae=()=>{Ye.cancel(ne.value)};be([X,f,()=>e.rtl],()=>{const re={};X.value&&(f.value?(e.rtl?re.right=Vl(X.value.right):re.left=Vl(X.value.left),re.width=Vl(X.value.width)):(re.top=Vl(X.value.top),re.height=Vl(X.value.height))),ae(),ne.value=Ye(()=>{W(re)})}),be([()=>e.activeKey,X,M,f],()=>{ee()},{flush:"post"}),be([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{K()},{flush:"post"});const se=re=>{let{position:de,prefixCls:ge,extra:me}=re;if(!me)return null;const fe=me==null?void 0:me({position:de});return fe?p("div",{class:`${ge}-extra-content`},[fe]):null};return Ze(()=>{Z(),ae()}),()=>{const{id:re,animated:de,activeKey:ge,rtl:me,editable:fe,locale:ye,tabPosition:Se,tabBarGutter:ue,onTabClick:ce}=e,{class:he,style:Pe}=n,Ie=l.value,Ae=!!q.value.length,$e=`${Ie}-nav-wrap`;let xe,we,Me,Ne;f.value?me?(we=g.value>0,xe=g.value+C.value{const{key:it}=Je;return p(PZ,{id:re,prefixCls:Ie,key:it,tab:Je,style:ft===0?void 0:_e,closable:Je.closable,editable:fe,active:it===ge,removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:u(it),onClick:pt=>{ce(it,pt)},onFocus:()=>{ee(it),Y(),i.value&&(me||(i.value.scrollLeft=0),i.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${Ie}-nav`,he),style:Pe,onKeydown:()=>{Y()}},[p(se,{position:"left",prefixCls:Ie,extra:o.leftExtra},null),p(xo,{onResize:K},{default:()=>[p("div",{class:ie($e,{[`${$e}-ping-left`]:xe,[`${$e}-ping-right`]:we,[`${$e}-ping-top`]:Me,[`${$e}-ping-bottom`]:Ne}),ref:i},[p(xo,{onResize:K},{default:()=>[p("div",{ref:a,class:`${Ie}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:j.value?"none":void 0}},[De,p(z6,{ref:c,prefixCls:Ie,locale:ye,editable:fe,style:m(m({},De.length===0?void 0:_e),{visibility:Ae?"hidden":null})},null),p("div",{class:ie(`${Ie}-ink-bar`,{[`${Ie}-ink-bar-animated`]:de.inkBar}),style:pe.value},null)])]})])]}),p(EZ,D(D({},e),{},{removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:s,prefixCls:Ie,tabs:q.value,class:!Ae&&B.value}),gT(o,["moreIcon"])),p(se,{position:"right",prefixCls:Ie,extra:o.rightExtra},null),p(se,{position:"right",prefixCls:Ie,extra:o.tabBarExtraContent},null)])}}}),NZ=oe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=j6();return()=>{const{id:o,activeKey:r,animated:l,tabPosition:i,rtl:a,destroyInactiveTabPane:s}=e,c=l.tabPane,u=n.value,d=t.value.findIndex(f=>f.key===r);return p("div",{class:`${u}-content-holder`},[p("div",{class:[`${u}-content`,`${u}-content-${i}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>dt(f.node,{key:f.key,prefixCls:u,tabKey:f.key,id:o,animated:c,active:f.key===r,destroyInactiveTabPane:s}))])])}}});var FZ={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"};const LZ=FZ;function nw(e){for(var t=1;t{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}`}}}}},[sr(e,"slide-up"),sr(e,"slide-down")]]},jZ=HZ,WZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VZ=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:m(m({},Xe(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:`${o}px 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":m(m({},Gt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},KZ=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},GZ=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},XZ=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:l}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":m({"&:focus:not(:focus-visible), &:active":{color:n}},Rr(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:o},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},UZ=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{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:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},YZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:l,tabsActiveColor:i,colorSplit:a}=e;return{[t]:m(m(m(m({},Xe(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,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:m({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:i}},Rr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),XZ(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},qZ=Ve("Tabs",e=>{const t=e.controlHeightLG,n=Fe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[GZ(n),UZ(n),KZ(n),VZ(n),WZ(n),YZ(n),jZ(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let ow=0;const W6=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ve(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Be(),animated:Le([Boolean,Object]),renderTabBar:ve(),tabBarGutter:{type:Number},tabBarStyle:Re(),tabPosition:Be(),destroyInactiveTabPane:Ce(),hideAdd:Boolean,type:Be(),size:Be(),centered:Boolean,onEdit:ve(),onChange:ve(),onTabClick:ve(),onTabScroll:ve(),"onUpdate:activeKey":ve(),locale:Re(),onPrevClick:ve(),onNextClick:ve(),tabBarExtraContent:V.any});function ZZ(e){return e.map(t=>{if(Kt(t)){const n=m({},t.props||{});for(const[f,g]of Object.entries(n))delete n[f],n[mi(f)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:l=o.tab,disabled:i,forceRender:a,closable:s,animated:c,active:u,destroyInactiveTabPane:d}=n;return m(m({key:r},n),{node:t,closeIcon:o.closeIcon,tab:l,disabled:i===""||i,forceRender:a===""||a,closable:s===""||s,animated:c===""||c,active:u===""||u,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const QZ=oe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:m(m({},qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:at()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;xt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),xt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),xt(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:l,size:i,rootPrefixCls:a,getPopupContainer:s}=Te("tabs",e),[c,u]=qZ(r),d=P(()=>l.value==="rtl"),f=P(()=>{const{animated:w,tabPosition:I}=e;return w===!1||["left","right"].includes(I)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:m({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,v]=vt(!1);je(()=>{v(U0())});const[h,b]=Pt(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=vt(()=>e.tabs.findIndex(w=>w.key===h.value));ke(()=>{var w;let I=e.tabs.findIndex(T=>T.key===h.value);I===-1&&(I=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[I])===null||w===void 0?void 0:w.key)),S(I)});const[$,x]=Pt(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);je(()=>{e.id||(x(`rc-tabs-${ow}`),ow+=1)});const O=(w,I)=>{var T,_;(T=e.onTabClick)===null||T===void 0||T.call(e,w,I);const E=w!==h.value;b(w),E&&((_=e.onChange)===null||_===void 0||_.call(e,w))};return MZ({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:I,tabBarGutter:T,tabBarStyle:_,locale:E,destroyInactiveTabPane:A,renderTabBar:R=o.renderTabBar,onTabScroll:z,hideAdd:M,centered:B}=e,N={id:$.value,activeKey:h.value,animated:f.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let F;I==="editable-card"&&(F={onEdit:(H,Y)=>{let{key:Z,event:U}=Y;var ee;(ee=e.onEdit)===null||ee===void 0||ee.call(e,H==="add"?U:Z,H)},removeIcon:()=>p(Zn,null,null),addIcon:o.addIcon?o.addIcon:()=>p(zZ,null,null),showAdd:M!==!0});let L;const k=m(m({},N),{moreTransitionName:`${a.value}-slide-up`,editable:F,locale:E,tabBarGutter:T,onTabClick:O,onTabScroll:z,style:_,getPopupContainer:s.value,popupClassName:ie(e.popupClassName,u.value)});R?L=R(m(m({},k),{DefaultTabBar:tw})):L=p(tw,k,gT(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const j=r.value;return c(p("div",D(D({},n),{},{id:w,class:ie(j,`${j}-${C.value}`,{[u.value]:!0,[`${j}-${i.value}`]:i.value,[`${j}-card`]:["card","editable-card"].includes(I),[`${j}-editable-card`]:I==="editable-card",[`${j}-centered`]:B,[`${j}-mobile`]:g.value,[`${j}-editable`]:I==="editable-card",[`${j}-rtl`]:d.value},n.class)}),[L,p(NZ,D(D({destroyInactiveTabPane:A},N),{},{animated:f.value}),null)]))}}}),ri=oe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=i=>{r("update:activeKey",i),r("change",i)};return()=>{var i;const a=ZZ(yt((i=o.default)===null||i===void 0?void 0:i.call(o)));return p(QZ,D(D(D({},et(e,["onUpdate:activeKey"])),n),{},{onChange:l,tabs:a}),o)}}}),JZ=()=>({tab:V.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),df=oe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:JZ(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.forceRender);be([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const l=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:a,forceRender:s,id:c,active:u,tabKey:d}=e;return p("div",{id:c&&`${c}-panel-${d}`,role:"tabpanel",tabindex:u?0:-1,"aria-labelledby":c&&`${c}-tab-${d}`,"aria-hidden":!u,style:[l.value,n.style],class:[`${a}-tabpane`,u&&`${a}-tabpane-active`,n.class]},[(u||r.value||s)&&((i=o.default)===null||i===void 0?void 0:i.call(o))])}}});ri.TabPane=df;ri.install=function(e){return e.component(ri.name,ri),e.component(df.name,df),e};const eQ=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return m(m({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},zo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":m(m({display:"inline-block",flex:1},Gt),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},tQ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${r}px 0 0 0 ${n}, - 0 ${r}px 0 0 ${n}, - ${r}px ${r}px 0 0 ${n}, - ${r}px 0 0 0 ${n} inset, - 0 ${r}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},nQ=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:l}=e;return m(m({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},zo()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},oQ=e=>m(m({margin:`-${e.marginXXS}px 0`,display:"flex"},zo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":m({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Gt),"&-description":{color:e.colorTextDescription}}),rQ=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},lQ=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},iQ=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:l,cardPaddingBase:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:eQ(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:m({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},zo()),[`${t}-grid`]:tQ(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:nQ(e),[`${t}-meta`]:oQ(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:rQ(e),[`${t}-loading`]:lQ(e),[`${t}-rtl`]:{direction:"rtl"}}},aQ=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},sQ=Ve("Card",e=>{const t=Fe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[iQ(t),aQ(t)]}),cQ=()=>({prefixCls:String,width:{type:[Number,String]}}),uQ=oe({compatConfig:{MODE:3},name:"SkeletonTitle",props:cQ(),setup(e){return()=>{const{prefixCls:t,width:n}=e,o=typeof n=="number"?`${n}px`:n;return p("h3",{class:t,style:{width:o}},null)}}}),Ap=uQ,dQ=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),fQ=oe({compatConfig:{MODE:3},name:"SkeletonParagraph",props:dQ(),setup(e){const t=n=>{const{width:o,rows:r=2}=e;if(Array.isArray(o))return o[n];if(r-1===n)return o};return()=>{const{prefixCls:n,rows:o}=e,r=[...Array(o)].map((l,i)=>{const a=t(i);return p("li",{key:i,style:{width:typeof a=="number"?`${a}px`:a}},null)});return p("ul",{class:n},[r])}}}),pQ=fQ,Rp=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),V6=e=>{const{prefixCls:t,size:n,shape:o}=e,r=ie({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=ie({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),i=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return p("span",{class:ie(t,r,l),style:i},null)};V6.displayName="SkeletonElement";const Dp=V6,gQ=new nt("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Bp=e=>({height:e,lineHeight:`${e}px`}),da=e=>m({width:e},Bp(e)),hQ=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:gQ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),sh=e=>m({width:e*5,minWidth:e*5},Bp(e)),vQ=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l}=e;return{[`${t}`]:m({display:"inline-block",verticalAlign:"top",background:n},da(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:m({},da(r)),[`${t}${t}-sm`]:m({},da(l))}},mQ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return{[`${o}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},sh(t)),[`${o}-lg`]:m({},sh(r)),[`${o}-sm`]:m({},sh(l))}},rw=e=>m({width:e},Bp(e)),bQ=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:m(m({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},rw(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:m(m({},rw(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ch=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},uh=e=>m({width:e*2,minWidth:e*2},Bp(e)),yQ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return m(m(m(m(m({[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:o*2,minWidth:o*2},uh(o))},ch(e,o,n)),{[`${n}-lg`]:m({},uh(r))}),ch(e,r,`${n}-lg`)),{[`${n}-sm`]:m({},uh(l))}),ch(e,l,`${n}-sm`))},SQ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:f,marginSM:g,borderRadius:v,skeletonTitleHeight:h,skeletonBlockRadius:b,skeletonParagraphLineHeight:y,controlHeightXS:S,skeletonParagraphMarginTop:$}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:d},da(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:m({},da(c)),[`${n}-sm`]:m({},da(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:h,background:d,borderRadius:b,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:b,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:m(m(m(m({display:"inline-block",width:"auto"},yQ(e)),vQ(e)),mQ(e)),bQ(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${o}, - ${r} > li, - ${n}, - ${l}, - ${i}, - ${a} - `]:m({},hQ(e))}}},Fc=Ve("Skeleton",e=>{const{componentCls:t}=e,n=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[SQ(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),$Q=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function dh(e){return e&&typeof e=="object"?e:{}}function CQ(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xQ(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function wQ(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const OQ=oe({compatConfig:{MODE:3},name:"ASkeleton",props:qe($Q(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("skeleton",e),[l,i]=Fc(o);return()=>{var a;const{loading:s,avatar:c,title:u,paragraph:d,active:f,round:g}=e,v=o.value;if(s||e.loading===void 0){const h=!!c||c==="",b=!!u||u==="",y=!!d||d==="";let S;if(h){const C=m(m({prefixCls:`${v}-avatar`},CQ(b,y)),dh(c));S=p("div",{class:`${v}-header`},[p(Dp,C,null)])}let $;if(b||y){let C;if(b){const w=m(m({prefixCls:`${v}-title`},xQ(h,y)),dh(u));C=p(Ap,w,null)}let O;if(y){const w=m(m({prefixCls:`${v}-paragraph`},wQ(h,b)),dh(d));O=p(pQ,w,null)}$=p("div",{class:`${v}-content`},[C,O])}const x=ie(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:f,[`${v}-rtl`]:r.value==="rtl",[`${v}-round`]:g,[i.value]:!0});return l(p("div",{class:x},[S,$]))}return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),On=OQ,PQ=()=>m(m({},Rp()),{size:String,block:Boolean}),IQ=oe({compatConfig:{MODE:3},name:"ASkeletonButton",props:qe(PQ(),{size:"default"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Cy=IQ,TQ=oe({compatConfig:{MODE:3},name:"ASkeletonInput",props:m(m({},et(Rp(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),xy=TQ,EQ="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",MQ=oe({compatConfig:{MODE:3},name:"ASkeletonImage",props:et(Rp(),["size","shape","active"]),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,o.value));return()=>n(p("div",{class:r.value},[p("div",{class:`${t.value}-image`},[p("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[p("path",{d:EQ,class:`${t.value}-image-path`},null)])])]))}}),wy=MQ,_Q=()=>m(m({},Rp()),{shape:String}),AQ=oe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:qe(_Q(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),Oy=AQ;On.Button=Cy;On.Avatar=Oy;On.Input=xy;On.Image=wy;On.Title=Ap;On.install=function(e){return e.component(On.name,On),e.component(On.Button.name,Cy),e.component(On.Avatar.name,Oy),e.component(On.Input.name,xy),e.component(On.Image.name,wy),e.component(On.Title.name,Ap),e};const{TabPane:RQ}=ri,DQ=()=>({prefixCls:String,title:V.any,extra:V.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:V.any,tabList:{type:Array},tabBarExtraContent:V.any,activeTabKey:String,defaultActiveTabKey:String,cover:V.any,onTabChange:{type:Function}}),BQ=oe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:DQ(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,size:i}=Te("card",e),[a,s]=sQ(r),c=f=>f.map((v,h)=>Yt(v)&&!wc(v)||!Yt(v)?p("li",{style:{width:`${100/f.length}%`},key:`action-${h}`},[p("span",null,[v])]):null),u=f=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return f.forEach(v=>{v&&mb(v.type)&&v.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var f,g,v,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:I,activeTabKey:T,defaultActiveTabKey:_,tabBarExtraContent:E=Ja((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:A=Ja((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:R=Ja((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:z=Ja((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:M=Ja((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,B=yt((y=n.default)===null||y===void 0?void 0:y.call(n)),N=r.value,F={[`${N}`]:!0,[s.value]:!0,[`${N}-loading`]:x,[`${N}-bordered`]:C,[`${N}-hoverable`]:!!I,[`${N}-contain-grid`]:d(B),[`${N}-contain-tabs`]:w&&w.length,[`${N}-${i.value}`]:i.value,[`${N}-type-${O}`]:!!O,[`${N}-rtl`]:l.value==="rtl"},L=p(On,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[B]}),k=T!==void 0,j={size:"large",[k?"activeKey":"defaultActiveKey"]:k?T:_,onChange:u,class:`${N}-head-tabs`};let H;const Y=w&&w.length?p(ri,j,{default:()=>[w.map(G=>{const{tab:J,slots:Q}=G,K=Q==null?void 0:Q.tab;xt(!Q,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=J!==void 0?J:n[K]?n[K](G):null;return q=np(n,"customTab",G,()=>[q]),p(RQ,{tab:q,key:G.key,disabled:G.disabled},null)})],rightExtra:E?()=>E:null}):null;(A||R||Y)&&(H=p("div",{class:`${N}-head`,style:S},[p("div",{class:`${N}-head-wrapper`},[A&&p("div",{class:`${N}-head-title`},[A]),R&&p("div",{class:`${N}-extra`},[R])]),Y]));const Z=M?p("div",{class:`${N}-cover`},[M]):null,U=p("div",{class:`${N}-body`,style:$},[x?L:B]),ee=z&&z.length?p("ul",{class:`${N}-actions`},[c(z)]):null;return a(p("div",D(D({ref:"cardContainerRef"},o),{},{class:[F,o.class]}),[H,Z,B&&B.length?U:null,ee]))}}}),fa=BQ,NQ=()=>({prefixCls:String,title:In(),description:In(),avatar:In()}),ff=oe({compatConfig:{MODE:3},name:"ACardMeta",props:NQ(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e);return()=>{const r={[`${o.value}-meta`]:!0},l=qt(n,e,"avatar"),i=qt(n,e,"title"),a=qt(n,e,"description"),s=l?p("div",{class:`${o.value}-meta-avatar`},[l]):null,c=i?p("div",{class:`${o.value}-meta-title`},[i]):null,u=a?p("div",{class:`${o.value}-meta-description`},[a]):null,d=c||u?p("div",{class:`${o.value}-meta-detail`},[c,u]):null;return p("div",{class:r},[s,d])}}}),FQ=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),pf=oe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:FQ(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var l;return p("div",{class:r.value},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}});fa.Meta=ff;fa.Grid=pf;fa.install=function(e){return e.component(fa.name,fa),e.component(ff.name,ff),e.component(pf.name,pf),e};const LQ=()=>({prefixCls:String,activeKey:Le([Array,Number,String]),defaultActiveKey:Le([Array,Number,String]),accordion:Ce(),destroyInactivePanel:Ce(),bordered:Ce(),expandIcon:ve(),openAnimation:V.object,expandIconPosition:Be(),collapsible:Be(),ghost:Ce(),onChange:ve(),"onUpdate:activeKey":ve()}),K6=()=>({openAnimation:V.object,prefixCls:String,header:V.any,headerClass:String,showArrow:Ce(),isActive:Ce(),destroyInactivePanel:Ce(),disabled:Ce(),accordion:Ce(),forceRender:Ce(),expandIcon:ve(),extra:V.any,panelKey:Le(),collapsible:Be(),role:String,onItemClick:ve()}),kQ=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:l,collapseHeaderPadding:i,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:f,colorTextDisabled:g,fontSize:v,lineHeight:h,marginSM:b,paddingSM:y,motionDurationSlow:S,fontSizeIcon:$}=e,x=`${s}px ${c} ${u}`;return{[t]:m(m({},Xe(e)),{backgroundColor:l,border:x,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*h,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:m(m({},yi()),{fontSize:$,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:y}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},zQ=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HQ=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},jQ=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},WQ=Ve("Collapse",e=>{const t=Fe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[kQ(t),HQ(t),jQ(t),zQ(t),Ac(t)]});function lw(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Rs=oe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:qe(LQ(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=le(lw(qd([e.activeKey,e.defaultActiveKey])));be(()=>e.activeKey,()=>{l.value=lw(e.activeKey)},{deep:!0});const{prefixCls:i,direction:a,rootPrefixCls:s}=Te("collapse",e),[c,u]=WQ(i),d=P(()=>{const{expandIconPosition:y}=e;return y!==void 0?y:a.value==="rtl"?"end":"start"}),f=y=>{const{expandIcon:S=o.expandIcon}=e,$=S?S(y):p(Wo,{rotate:y.isActive?90:void 0},null);return p("div",{class:[`${i.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&v(y.panelKey)},[Kt(Array.isArray(S)?$[0]:$)?dt($,{class:`${i.value}-arrow`},!1):$])},g=y=>{e.activeKey===void 0&&(l.value=y);const S=e.accordion?y[0]:y;r("update:activeKey",S),r("change",S)},v=y=>{let S=l.value;if(e.accordion)S=S[0]===y?[]:[y];else{S=[...S];const $=S.indexOf(y);$>-1?S.splice($,1):S.push(y)}g(S)},h=(y,S)=>{var $,x,C;if(wc(y))return;const O=l.value,{accordion:w,destroyInactivePanel:I,collapsible:T,openAnimation:_}=e,E=_||Rc(`${s.value}-motion-collapse`),A=String(($=y.key)!==null&&$!==void 0?$:S),{header:R=(C=(x=y.children)===null||x===void 0?void 0:x.header)===null||C===void 0?void 0:C.call(x),headerClass:z,collapsible:M,disabled:B}=y.props||{};let N=!1;w?N=O[0]===A:N=O.indexOf(A)>-1;let F=M??T;(B||B==="")&&(F="disabled");const L={key:A,panelKey:A,header:R,headerClass:z,isActive:N,prefixCls:i.value,destroyInactivePanel:I,openAnimation:E,accordion:w,onItemClick:F==="disabled"?null:v,expandIcon:f,collapsible:F};return dt(y,L)},b=()=>{var y;return yt((y=o.default)===null||y===void 0?void 0:y.call(o)).map(h)};return()=>{const{accordion:y,bordered:S,ghost:$}=e,x=ie(i.value,{[`${i.value}-borderless`]:!S,[`${i.value}-icon-position-${d.value}`]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-ghost`]:!!$,[n.class]:!!n.class},u.value);return c(p("div",D(D({class:x},RR(n)),{},{style:n.style,role:y?"tablist":null}),[b()]))}}}),VQ=oe({compatConfig:{MODE:3},name:"PanelContent",props:K6(),setup(e,t){let{slots:n}=t;const o=te(!1);return ke(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var r;if(!o.value)return null;const{prefixCls:l,isActive:i,role:a}=e;return p("div",{class:ie(`${l}-content`,{[`${l}-content-active`]:i,[`${l}-content-inactive`]:!i}),role:a},[p("div",{class:`${l}-content-box`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}}),gf=oe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:qe(K6(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;xt(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:l}=Te("collapse",e),i=()=>{o("itemClick",e.panelKey)},a=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&i()};return()=>{var s,c;const{header:u=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:g,destroyInactivePanel:v,accordion:h,forceRender:b,openAnimation:y,expandIcon:S=n.expandIcon,extra:$=(c=n.extra)===null||c===void 0?void 0:c.call(n),collapsible:x}=e,C=x==="disabled",O=l.value,w=ie(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:x==="header",[`${O}-icon-collapsible-only`]:x==="icon"}),I=ie({[`${O}-item`]:!0,[`${O}-item-active`]:f,[`${O}-item-disabled`]:C,[`${O}-no-arrow`]:!g,[`${r.class}`]:!!r.class});let T=p("i",{class:"arrow"},null);g&&typeof S=="function"&&(T=S(e));const _=$n(p(VQ,{prefixCls:O,isActive:f,forceRender:b,role:h?"tabpanel":null},{default:n.default}),[[En,f]]),E=m({appear:!1,css:!1},y);return p("div",D(D({},r),{},{class:I}),[p("div",{class:w,onClick:()=>!["header","icon"].includes(x)&&i(),role:h?"tab":"button",tabindex:C?-1:0,"aria-expanded":f,onKeypress:a},[g&&T,p("span",{onClick:()=>x==="header"&&i(),class:`${O}-header-text`},[u]),$&&p("div",{class:`${O}-extra`},[$])]),p(cn,E,{default:()=>[!v||f?_:null]})])}}});Rs.Panel=gf;Rs.install=function(e){return e.component(Rs.name,Rs),e.component(gf.name,gf),e};const KQ=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},GQ=function(e){return/[height|width]$/.test(e)},iw=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let l=e[o];o=KQ(o),GQ(o)&&typeof l=="number"&&(l=l+"px"),l===!0?t+=o:l===!1?t+="not "+o:t+="("+o+": "+l+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},hf=e=>{const t=[],n=X6(e),o=U6(e);for(let r=n;re.currentSlide-qQ(e),U6=e=>e.currentSlide+ZQ(e),qQ=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,ZQ=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Zv=e=>e&&e.offsetWidth||0,Py=e=>e&&e.offsetHeight||0,Y6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,l=Math.atan2(r,o);return n=Math.round(l*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Np=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},ph=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},QQ=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(Zv(n)),r=e.trackRef,l=Math.ceil(Zv(r));let i;if(e.vertical)i=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),i=Math.ceil((o-g)/e.slidesToShow)}const a=n&&Py(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=hf(m(m({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const f={slideCount:t,slideWidth:i,listWidth:o,trackWidth:l,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},JQ=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:l,slideCount:i,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let v=l,h,b,y,S={},$={};const x=r?l:qv(l,0,i-1);if(o){if(!r&&(l<0||l>=i))return{};l<0?v=l+i:l>=i&&(v=l-i),a&&g.indexOf(v)<0&&(g=g.concat(v)),S={animating:!0,currentSlide:v,lazyLoadedList:g,targetSlide:v},$={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+i,r?i%u!==0&&(h=i-i%u):h=0):!Np(e)&&v>s?v=h=s:c&&v>=i?(v=r?i:i-1,h=r?0:i-1):v>=i&&(h=v-i,r?i%u!==0&&(h=0):h=i-d),!r&&v+d>=i&&(h=i-d),b=hc(m(m({},e),{slideIndex:v})),y=hc(m(m({},e),{slideIndex:h})),r||(b===y&&(v=h),b=y),a&&(g=g.concat(hf(m(m({},e),{currentSlide:v})))),f?(S={animating:!0,currentSlide:h,trackStyle:q6(m(m({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},eJ=(e,t)=>{let n,o,r;const{slidesToScroll:l,slidesToShow:i,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,g=a%l!==0?0:(a-s)%l;if(t.message==="previous")o=g===0?l:i-g,r=s-o,u&&!d&&(n=s-o,r=n===-1?a-1:n),d||(r=c-l);else if(t.message==="next")o=g===0?l:g,r=s+o,u&&!d&&(r=(s+l)%a+g),d||(r=c+l);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const v=aJ(m(m({},e),{targetSlide:r}));r>t.currentSlide&&v==="left"?r=r-a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",nJ=(e,t,n)=>(e.target.tagName==="IMG"&&pa(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),oJ=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:l,verticalSwiping:i,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:f,swiping:g,slideCount:v,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return pa(e);r&&l&&i&&pa(e);let C,O={};const w=hc(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!i&&!g&&I>10)return{scrolling:!0};i&&(y.swipeLength=I);let T=(a?-1:1)*(y.curX>y.startX?1:-1);i&&(T=y.curY>y.startY?1:-1);const _=Math.ceil(v/h),E=Y6(t.touchObject,i);let A=y.swipeLength;return b||(s===0&&(E==="right"||E==="down")||s+1>=_&&(E==="left"||E==="up")||!Np(t)&&(E==="left"||E==="up"))&&(A=y.swipeLength*c,u===!1&&d&&(d(E),O.edgeDragged=!0)),!f&&S&&(S(E),O.swiped=!0),r?C=w+A*($/x)*T:a?C=w-A*T:C=w+A*T,i&&(C=w+A*T),O=m(m({},O),{touchObject:y,swipeLeft:C,trackStyle:gc(m(m({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,pa(e)),O},rJ=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:l,touchThreshold:i,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:f,currentSlide:g,infinite:v}=t;if(!n)return o&&pa(e),{};const h=a?s/i:l/i,b=Y6(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!r.swipeLength)return y;if(r.swipeLength>h){pa(e),d&&d(b);let S,$;const x=v?g:f;switch(b){case"left":case"up":$=x+sw(t),S=c?aw(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-sw(t),S=c?aw(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=hc(t);y.trackStyle=q6(m(m({},t),{left:S}))}return y},lJ=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=lJ(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(a=>{if(e.vertical){if(a.offsetTop+Py(a)/2>e.swipeLeft*-1)return n=a,!1}else if(a.offsetLeft-t+Zv(a)/2>e.swipeLeft*-1)return n=a,!1;return!0}),!n)return 0;const l=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-l)||1}else return e.slidesToScroll},Iy=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),gc=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=iJ(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=m(m({},r),{WebkitTransform:l,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},q6=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=gc(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},hc=e=>{if(e.unslick)return 0;Iy(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:l,slidesToShow:i,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:f,vertical:g}=e;let v=0,h,b,y=0;if(f||e.slideCount===1)return 0;let S=0;if(o?(S=-Tr(e),l%a!==0&&t+a>l&&(S=-(t>l?i-(t-l):l%a)),r&&(S+=parseInt(i/2))):(l%a!==0&&t+a>l&&(S=i-l%a),r&&(S=parseInt(i/2))),v=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+v,u===!0){let $;const x=n;if($=t+Tr(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+Tr(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(c-b.offsetWidth)/2}}return h},Tr=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Xu=e=>e.unslick||!e.infinite?0:e.slideCount,iJ=e=>e.slideCount===1?1:Tr(e)+e.slideCount+Xu(e),aJ=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+sJ(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),o&&t%2===0&&(l+=1),l}return o?0:t-1},cJ=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),!o&&t%2===0&&(l+=1),l}return o?t-1:0},cw=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),gh=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const l=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?i=e.targetSlide-e.slideCount:i=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":l,"slick-current":r===i}},uJ=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},hh=(e,t)=>e.key+"-"+t,dJ=function(e,t){let n;const o=[],r=[],l=[],i=t.length,a=X6(e),s=U6(e);return t.forEach((c,u)=>{let d;const f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d=c:d=p("div");const g=uJ(m(m({},e),{index:u})),v=d.props.class||"";let h=gh(m(m({},e),{index:u}));if(o.push(Is(d,{key:"original"+hh(d,u),tabindex:"-1","data-index":u,"aria-hidden":!h["slick-active"],class:ie(h,v),style:m(m({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const b=i-u;b<=Tr(e)&&i!==e.slidesToShow&&(n=-b,n>=a&&(d=c),h=gh(m(m({},e),{index:n})),r.push(Is(d,{key:"precloned"+hh(d,n),class:ie(h,v),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:m(m({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),i!==e.slidesToShow&&(n=i+u,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?r.concat(o,l).reverse():r.concat(o,l)},Z6=(e,t)=>{let{attrs:n,slots:o}=t;const r=dJ(n,yt(o==null?void 0:o.default())),{onMouseenter:l,onMouseover:i,onMouseleave:a}=n,s={onMouseenter:l,onMouseover:i,onMouseleave:a},c=m({class:"slick-track",style:n.trackStyle},s);return p("div",c,[r])};Z6.inheritAttrs=!1;const fJ=Z6,pJ=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},Q6=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:f,onMouseover:g,onMouseleave:v}=n,h=pJ({slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i}),b={onMouseenter:f,onMouseover:g,onMouseleave:v};let y=[];for(let S=0;S=O&&a<=x:a===O}),I={message:"dots",index:S,slidesToScroll:r,currentSlide:a};y=y.concat(p("li",{key:S,class:w},[dt(c({i:S}),{onClick:T})]))}return dt(s({dots:y}),m({class:d},b))};Q6.inheritAttrs=!1;const gJ=Q6;function J6(){}function e8(e,t,n){n&&n.preventDefault(),t(e,n)}const t8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:l,slideCount:i,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(g){e8({message:"previous"},o,g)};!r&&(l===0||i<=a)&&(s["slick-disabled"]=!0,c=J6);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:l,slideCount:i};let f;return n.prevArrow?f=dt(n.prevArrow(m(m({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):f=p("button",D({key:"0",type:"button"},u),[" ",Lt("Previous")]),f};t8.inheritAttrs=!1;const n8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:l}=n,i={"slick-arrow":!0,"slick-next":!0};let a=function(d){e8({message:"next"},o,d)};Np(n)||(i["slick-disabled"]=!0,a=J6);const s={key:"1","data-role":"none",class:ie(i),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:l};let u;return n.nextArrow?u=dt(n.nextArrow(m(m({},s),c)),{key:"1",class:ie(i),style:{display:"block"},onClick:a},!1):u=p("button",D({key:"1",type:"button"},s),[" ",Lt("Next")]),u};n8.inheritAttrs=!1;var hJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=m({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=m({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new f0(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=Py(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Sb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=m(m({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=QQ(e);e=m(m(m({},e),o),{slideIndex:o.currentSlide});const r=hc(e);e=m(m({},e),{left:r});const l=gc(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=l),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,c=0;const u=[],d=Tr(m(m(m({},this.$props),this.$data),{slideCount:e.length})),f=Xu(m(m(m({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var h,b;const y=((b=(h=v.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;u.push(y),s+=y});for(let v=0;v{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const l=o.onclick;o.onclick=()=>{l(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=m(m({},this.$props),this.$data);for(let n=this.currentSlide;n=-Tr(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,beforeChange:o,speed:r,afterChange:l}=this.$props,{state:i,nextState:a}=JQ(m(m(m({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;o&&o(this.currentSlide,i.currentSlide);const s=i.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&s.length>0&&this.__emit("lazyLoad",s),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(this.currentSlide),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=a,u=hJ(a,["animating"]);this.setState(u,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),l&&l(i.currentSlide),delete this.animationEndCallback})},r))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=m(m({},this.$props),this.$data),o=eJ(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=tJ(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=nJ(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=oJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=rJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Np(m(m({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return p("button",null,[t+1])},appendDots(e){let{dots:t}=e;return p("ul",{style:{display:"block"}},[t])}},render(){const e=ie("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=m(m({},this.$props),this.$data);let n=ph(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=m(m({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:to,onMouseover:o?this.onTrackOver:to});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=ph(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=m(m({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:to,onMouseleave:$?this.onDotsLeave:to}),r=p(gJ,b,null)}let l,i;const a=ph(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(l=p(t8,a,null),i=p(n8,a,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=m(m({},u),d),g=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:g?this.swipeStart:to,onMousemove:this.dragging&&g?this.swipeMove:to,onMouseup:g?this.swipeEnd:to,onMouseleave:this.dragging&&g?this.swipeEnd:to,[nn?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:to,[nn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:to,onTouchend:g?this.touchEnd:to,onTouchcancel:this.dragging&&g?this.swipeEnd:to,onKeydown:this.accessibility?this.keyHandler:to},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},h={class:e}),p("div",h,[this.unslick?"":l,p("div",v,[p(fJ,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":r])}},mJ=oe({name:"Slider",mixins:[xi],inheritAttrs:!1,props:m({},G6),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=fh({minWidth:0,maxWidth:n}):r=fh({minWidth:e[o-1]+1,maxWidth:n}),cw()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=fh({minWidth:e.slice(-1)[0]});cw()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:l}=r;l&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(a=>a.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":m(m({},this.$props),n[0].settings)):t=m({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=Gf(this)||[];o=o.filter(a=>typeof a=="string"?!!a.trim():!!a),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let l=null;for(let a=0;a=o.length));d+=1)u.push(dt(o[d],{key:100*a+10*c+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(p("div",{key:10*a+c},[u]))}t.variableWidth?r.push(p("div",{key:a,style:{width:l}},[s])):r.push(p("div",{key:a},[s]))}if(t==="unslick"){const a="regular slider "+(this.className||"");return p("div",{class:a},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const i=m(m(m({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return p(vJ,D(D({},i),{},{__propsSymbol__:[]}),this.$slots)}}),bJ=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:l}=e,i=-o*1.25,a=l;return{[t]:m(m({},Xe(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},yJ=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:m(m({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":m(m({},r),{button:r})})}}}},SJ=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},$J=Ve("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Fe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[bJ(o),yJ(o),SJ(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var CJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:Be(),dots:Ce(!0),vertical:Ce(),autoplay:Ce(),easing:String,beforeChange:ve(),afterChange:ve(),prefixCls:String,accessibility:Ce(),nextArrow:V.any,prevArrow:V.any,pauseOnHover:Ce(),adaptiveHeight:Ce(),arrows:Ce(!1),autoplaySpeed:Number,centerMode:Ce(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Ce(!1),fade:Ce(),focusOnSelect:Ce(),infinite:Ce(),initialSlide:Number,lazyLoad:Be(),rtl:Ce(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Ce(),swipeToSlide:Ce(),swipeEvent:ve(),touchMove:Ce(),touchThreshold:Number,variableWidth:Ce(),useCSS:Ce(),slickGoTo:Number,responsive:Array,dotPosition:Be(),verticalSwiping:Ce(!1)}),wJ=oe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:xJ(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();r({goTo:function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=l.value)===null||b===void 0||b.slickGoTo(v,h)},autoplay:v=>{var h,b;(b=(h=l.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(v)},prev:()=>{var v;(v=l.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=l.value)===null||v===void 0||v.slickNext()},innerSlider:P(()=>{var v;return(v=l.value)===null||v===void 0?void 0:v.innerSlider})}),ke(()=>{It(e.vertical===void 0)});const{prefixCls:a,direction:s}=Te("carousel",e),[c,u]=$J(a),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const v="slick-dots";return ie({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=CJ(o,["class","style"]),C=y==="fade"?!0:e.fade,O=ie(a.value,{[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-vertical`]:f.value,[`${S}`]:!!S},u.value);return c(p("div",{class:O,style:$},[p(mJ,D(D(D({ref:l},e),x),{},{dots:!!v,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:f.value}),n)]))}}}),OJ=Tt(wJ),Ty="__RC_CASCADER_SPLIT__",o8="SHOW_PARENT",r8="SHOW_CHILD";function gl(e){return e.join(Ty)}function Zi(e){return e.map(gl)}function PJ(e){return e.split(Ty)}function IJ(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function cs(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function TJ(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const l8=Symbol("TreeContextKey"),EJ=oe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(l8,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Ey=()=>He(l8,P(()=>({}))),i8=Symbol("KeysStateKey"),MJ=e=>{Ge(i8,e)},a8=()=>He(i8,{expandedKeys:te([]),selectedKeys:te([]),loadedKeys:te([]),loadingKeys:te([]),checkedKeys:te([]),halfCheckedKeys:te([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:te([])}),_J=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const l=`${t}-indent-unit`,i=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:V.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:V.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:V.any,switcherIcon:V.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var DJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+ue+"` ")}`;const l=te(!1),i=Ey(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:f}=a8(),{dragOverNodeKey:g,dropPosition:v,keyEntities:h}=i.value,b=P(()=>Uu(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:g,dropPosition:v,keyEntities:h})),y=ro(()=>b.value.expanded),S=ro(()=>b.value.selected),$=ro(()=>b.value.checked),x=ro(()=>b.value.loaded),C=ro(()=>b.value.loading),O=ro(()=>b.value.halfChecked),w=ro(()=>b.value.dragOver),I=ro(()=>b.value.dragOverGapTop),T=ro(()=>b.value.dragOverGapBottom),_=ro(()=>b.value.pos),E=te(),A=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{children:he}=ce[ue]||{};return!!(he||[]).length}),R=P(()=>{const{isLeaf:ue}=e,{loadData:ce}=i.value,he=A.value;return ue===!1?!1:ue||!ce&&!he||ce&&x.value&&!he}),z=P(()=>R.value?null:y.value?uw:dw),M=P(()=>{const{disabled:ue}=e,{disabled:ce}=i.value;return!!(ce||ue)}),B=P(()=>{const{checkable:ue}=e,{checkable:ce}=i.value;return!ce||ue===!1?!1:ce}),N=P(()=>{const{selectable:ue}=e,{selectable:ce}=i.value;return typeof ue=="boolean"?ue:ce}),F=P(()=>{const{data:ue,active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae}=e;return m(m({active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae},ue),{dataRef:ue,data:ue,isLeaf:R.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),L=pn(),k=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{parent:he}=ce[ue]||{};return m(m({},Yu(m({},e,b.value))),{parent:he})}),j=ut({eventData:k,eventKey:P(()=>e.eventKey),selectHandle:E,pos:_,key:L.vnode.key});r(j);const H=ue=>{const{onNodeDoubleClick:ce}=i.value;ce(ue,k.value)},Y=ue=>{if(M.value)return;const{onNodeSelect:ce}=i.value;ue.preventDefault(),ce(ue,k.value)},Z=ue=>{if(M.value)return;const{disableCheckbox:ce}=e,{onNodeCheck:he}=i.value;if(!B.value||ce)return;ue.preventDefault();const Pe=!$.value;he(ue,k.value,Pe)},U=ue=>{const{onNodeClick:ce}=i.value;ce(ue,k.value),N.value?Y(ue):Z(ue)},ee=ue=>{const{onNodeMouseEnter:ce}=i.value;ce(ue,k.value)},G=ue=>{const{onNodeMouseLeave:ce}=i.value;ce(ue,k.value)},J=ue=>{const{onNodeContextMenu:ce}=i.value;ce(ue,k.value)},Q=ue=>{const{onNodeDragStart:ce}=i.value;ue.stopPropagation(),l.value=!0,ce(ue,j);try{ue.dataTransfer.setData("text/plain","")}catch{}},K=ue=>{const{onNodeDragEnter:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},q=ue=>{const{onNodeDragOver:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},pe=ue=>{const{onNodeDragLeave:ce}=i.value;ue.stopPropagation(),ce(ue,j)},W=ue=>{const{onNodeDragEnd:ce}=i.value;ue.stopPropagation(),l.value=!1,ce(ue,j)},X=ue=>{const{onNodeDrop:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),l.value=!1,ce(ue,j)},ne=ue=>{const{onNodeExpand:ce}=i.value;C.value||ce(ue,k.value)},ae=()=>{const{data:ue}=e,{draggable:ce}=i.value;return!!(ce&&(!ce.nodeDraggable||ce.nodeDraggable(ue)))},se=()=>{const{draggable:ue,prefixCls:ce}=i.value;return ue&&(ue!=null&&ue.icon)?p("span",{class:`${ce}-draggable-icon`},[ue.icon]):null},re=()=>{var ue,ce,he;const{switcherIcon:Pe=o.switcherIcon||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.switcherIcon])}=e,{switcherIcon:Ie}=i.value,Ae=Pe||Ie;return typeof Ae=="function"?Ae(F.value):Ae},de=()=>{const{loadData:ue,onNodeLoad:ce}=i.value;C.value||ue&&y.value&&!R.value&&!A.value&&!x.value&&ce(k.value)};je(()=>{de()}),An(()=>{de()});const ge=()=>{const{prefixCls:ue}=i.value,ce=re();if(R.value)return ce!==!1?p("span",{class:ie(`${ue}-switcher`,`${ue}-switcher-noop`)},[ce]):null;const he=ie(`${ue}-switcher`,`${ue}-switcher_${y.value?uw:dw}`);return ce!==!1?p("span",{onClick:ne,class:he},[ce]):null},me=()=>{var ue,ce;const{disableCheckbox:he}=e,{prefixCls:Pe}=i.value,Ie=M.value;return B.value?p("span",{class:ie(`${Pe}-checkbox`,$.value&&`${Pe}-checkbox-checked`,!$.value&&O.value&&`${Pe}-checkbox-indeterminate`,(Ie||he)&&`${Pe}-checkbox-disabled`),onClick:Z},[(ce=(ue=i.value).customCheckable)===null||ce===void 0?void 0:ce.call(ue)]):null},fe=()=>{const{prefixCls:ue}=i.value;return p("span",{class:ie(`${ue}-iconEle`,`${ue}-icon__${z.value||"docu"}`,C.value&&`${ue}-icon_loading`)},null)},ye=()=>{const{disabled:ue,eventKey:ce}=e,{draggable:he,dropLevelOffset:Pe,dropPosition:Ie,prefixCls:Ae,indent:$e,dropIndicatorRender:xe,dragOverNodeKey:we,direction:Me}=i.value;return!ue&&he!==!1&&we===ce?xe({dropPosition:Ie,dropLevelOffset:Pe,indent:$e,prefixCls:Ae,direction:Me}):null},Se=()=>{var ue,ce,he,Pe,Ie,Ae;const{icon:$e=o.icon,data:xe}=e,we=o.title||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.title])||((Pe=i.value.slots)===null||Pe===void 0?void 0:Pe.title)||e.title,{prefixCls:Me,showIcon:Ne,icon:_e,loadData:De}=i.value,Je=M.value,ft=`${Me}-node-content-wrapper`;let it;if(Ne){const Ut=$e||((Ie=i.value.slots)===null||Ie===void 0?void 0:Ie[(Ae=xe==null?void 0:xe.slots)===null||Ae===void 0?void 0:Ae.icon])||_e;it=Ut?p("span",{class:ie(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ut=="function"?Ut(F.value):Ut]):fe()}else De&&C.value&&(it=fe());let pt;typeof we=="function"?pt=we(F.value):pt=we,pt=pt===void 0?BJ:pt;const ht=p("span",{class:`${Me}-title`},[pt]);return p("span",{ref:E,title:typeof we=="string"?we:"",class:ie(`${ft}`,`${ft}-${z.value||"normal"}`,!Je&&(S.value||l.value)&&`${Me}-node-selected`),onMouseenter:ee,onMouseleave:G,onContextmenu:J,onClick:U,onDblclick:H},[it,ht,ye()])};return()=>{const ue=m(m({},e),n),{eventKey:ce,isLeaf:he,isStart:Pe,isEnd:Ie,domRef:Ae,active:$e,data:xe,onMousemove:we,selectable:Me}=ue,Ne=DJ(ue,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:De,keyEntities:Je,dropContainerKey:ft,dropTargetKey:it,draggingNodeKey:pt}=i.value,ht=M.value,Ut=wl(Ne,{aria:!0,data:!0}),{level:Jt}=Je[ce]||{},rn=Ie[Ie.length-1],jt=ae(),xn=!ht&&jt,Wn=pt===ce,uo=Me!==void 0?{"aria-selected":!!Me}:void 0;return p("div",D(D({ref:Ae,class:ie(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:ht,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!he,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:$e,[`${_e}-treenode-leaf-last`]:rn,[`${_e}-treenode-draggable`]:xn,dragging:Wn,"drop-target":it===ce,"drop-container":ft===ce,"drag-over":!ht&&w.value,"drag-over-gap-top":!ht&&I.value,"drag-over-gap-bottom":!ht&&T.value,"filter-node":De&&De(k.value)}),style:n.style,draggable:xn,"aria-grabbed":Wn,onDragstart:xn?Q:void 0,onDragenter:jt?K:void 0,onDragover:jt?q:void 0,onDragleave:jt?pe:void 0,onDrop:jt?X:void 0,onDragend:jt?W:void 0,onMousemove:we},uo),Ut),[p(AJ,{prefixCls:_e,level:Jt,isStart:Pe,isEnd:Ie},null),se(),ge(),me(),Se()])}}});globalThis&&globalThis.__rest;function qo(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function mr(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function My(e){return e.split("-")}function u8(e,t){return`${e}-${t}`}function NJ(e){return e&&e.type&&e.type.isTreeNode}function FJ(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:a,children:s}=i;n.push(a),r(s)})}return r(o.children),n}function LJ(e){if(e.parent){const t=My(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kJ(e){const t=My(e.pos);return Number(t[t.length-1])===0}function fw(e,t,n,o,r,l,i,a,s,c){var u;const{clientX:d,clientY:f}=e,{top:g,height:v}=e.target.getBoundingClientRect(),b=((c==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-d)-12)/o;let y=a[n.eventKey];if(fR.key===y.key),E=_<=0?0:_-1,A=i[E].key;y=a[A]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let _=0;_-1.5?l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:0})?C=0:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((u=y.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:T}}function pw(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function vh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Jv(e,t){const n=new Set;function o(r){if(n.has(r))return;const l=t[r];if(!l)return;n.add(r);const{parent:i,node:a}=l;a.disabled||i&&o(i.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var zJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(r=>{var l,i,a,s;if(!NJ(r))return null;const c=r.children||{},u=r.key,d={};for(const[_,E]of Object.entries(r.props))d[mi(_)]=E;const{isLeaf:f,checkable:g,selectable:v,disabled:h,disableCheckbox:b}=d,y={isLeaf:f||f===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=m(m({},d),y),{title:$=(l=c.title)===null||l===void 0?void 0:l.call(c,S),icon:x=(i=c.icon)===null||i===void 0?void 0:i.call(c,S),switcherIcon:C=(a=c.switcherIcon)===null||a===void 0?void 0:a.call(c,S)}=d,O=zJ(d,["title","icon","switcherIcon"]),w=(s=c.default)===null||s===void 0?void 0:s.call(c),I=m(m(m({},O),{title:$,icon:x,switcherIcon:C,key:u,isLeaf:f}),y),T=t(w);return T.length&&(I.children=T),I})}return t(e)}function HJ(e,t,n){const{_title:o,key:r,children:l}=Fp(n),i=new Set(t===!0?[]:t),a=[];function s(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map((d,f)=>{const g=u8(u?u.pos:"0",f),v=Lc(d[r],g);let h;for(let y=0;yf[l]:typeof l=="function"&&(u=f=>l(f)):u=(f,g)=>Lc(f[a],g);function d(f,g,v,h){const b=f?f[c]:e,y=f?u8(v.pos,g):"0",S=f?[...h,f]:[];if(f){const $=u(f,y),x={node:f,index:g,pos:y,key:$,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:f,pos:y,level:v?v.level+1:-1},S)})}d(null)}function kc(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:l,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;const s=r||a,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),jJ(e,f=>{const{node:g,index:v,pos:h,key:b,parentPos:y,level:S,nodes:$}=f,x={node:g,nodes:$,index:v,key:b,pos:h,level:S},C=Lc(b,h);c[h]=x,u[C]=x,x.parent=c[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:l,fieldNames:i}),o&&o(d),d}function Uu(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:l,checkedKeysSet:i,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:l.has(e),checked:i.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function Yu(e){const{data:t,expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g}=e,v=m(m({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const WJ=(e,t)=>P(()=>kc(e.value,{fieldNames:t.value,initWrapper:o=>m(m({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const l=o.nodes.map(i=>i[t.value.value]).join(Ty);r.pathKeyEntities[l]=o,o.key=l}}).pathKeyEntities);function VJ(e){const t=te(!1),n=le({});return ke(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=m(m({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ds="__rc_cascader_search_mark__",KJ=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},GJ=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},XJ=(e,t,n,o,r,l)=>P(()=>{const{filter:i=KJ,render:a=GJ,limit:s=50,sort:c}=r.value,u=[];if(!e.value)return[];function d(f,g){f.forEach(v=>{if(!c&&s>0&&u.length>=s)return;const h=[...g,v],b=v[n.value.children];(!b||b.length===0||l.value)&&i(e.value,h,{label:n.value.label})&&u.push(m(m({},v),{[n.value.label]:a({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ds]:h})),b&&d(v[n.value.children],h)})}return d(t.value,[]),c&&u.sort((f,g)=>c(f[Ds],g[Ds],e.value,n.value)),s>0?u.slice(0,s):u});function gw(e,t,n){const o=new Set(e);return e.filter(r=>{const l=t[r],i=l?l.parent:null,a=l?l.children:null;return n===r8?!(a&&a.some(s=>s.key&&o.has(s.key))):!(i&&!i.node.disabled&&o.has(i.key))})}function vc(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let l=t;const i=[];for(let a=0;a{const f=d[n.value];return o?String(f)===String(s):f===s}),u=c!==-1?l==null?void 0:l[c]:null;i.push({value:(r=u==null?void 0:u[n.value])!==null&&r!==void 0?r:s,index:c,option:u}),l=u==null?void 0:u[n.children]}return i}const UJ=(e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(l=>{vc(l,e.value,t.value).every(a=>a.option)?r.push(l):o.push(l)}),[r,o]});function d8(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function YJ(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function qJ(e,t,n,o){const r=new Set(e),l=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(c=>{const{key:u,node:d,children:f=[]}=c;r.has(u)&&!o(d)&&f.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const i=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach(c=>{const{parent:u,node:d}=c;if(o(d)||!c.parent||i.has(c.parent.key))return;if(o(c.parent.node)){i.add(u.key);return}let f=!0,g=!1;(u.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:h}=v;const b=r.has(h);f&&!b&&(f=!1),!g&&(b||l.has(h))&&(g=!0)}),f&&r.add(u.key),g&&l.add(u.key),i.add(u.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(d8(l,r))}}function ZJ(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(u=>{const{key:d,node:f,children:g=[]}=u;!l.has(d)&&!i.has(d)&&!r(f)&&g.filter(v=>!r(v.node)).forEach(v=>{l.delete(v.key)})});i=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(u=>{const{parent:d,node:f}=u;if(r(f)||!u.parent||a.has(u.parent.key))return;if(r(u.parent.node)){a.add(d.key);return}let g=!0,v=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=l.has(b);g&&!y&&(g=!1),!v&&(y||i.has(b))&&(v=!0)}),g||l.delete(d.key),v&&i.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(d8(i,l))}}function So(e,t,n,o,r,l){let i;l?i=l:i=YJ;const a=new Set(e.filter(c=>!!n[c]));let s;return t===!0?s=qJ(a,r,o,i):s=ZJ(a,t.halfCheckedKeys,r,o,i),s}const QJ=(e,t,n,o,r)=>P(()=>{const l=r.value||(i=>{let{labels:a}=i;const s=o.value?a.slice(-1):a,c=" / ";return s.every(u=>["string","number"].includes(typeof u))?s.join(c):s.reduce((u,d,f)=>{const g=Kt(d)?dt(d,{key:f}):d;return f===0?[g]:[...u,c,g]},[])});return e.value.map(i=>{const a=vc(i,t.value,n.value),s=l({labels:a.map(u=>{let{option:d,value:f}=u;var g;return(g=d==null?void 0:d[n.value.label])!==null&&g!==void 0?g:f}),selectedOptions:a.map(u=>{let{option:d}=u;return d})}),c=gl(i);return{label:s,value:c,key:c,valueCells:i}})}),f8=Symbol("CascaderContextKey"),JJ=e=>{Ge(f8,e)},Lp=()=>He(f8),eee=()=>{const e=Tc(),{values:t}=Lp(),[n,o]=vt([]);return be(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]},tee=(e,t,n,o,r,l)=>{const i=Tc(),a=P(()=>i.direction==="rtl"),[s,c,u]=[le([]),le(),le([])];ke(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},f=h=>{const b=u.value.length;let y=c.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else i.toggleOpen(!1)},v=()=>{var h;const y=(((h=u.value[c.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case Oe.UP:case Oe.DOWN:{let y=0;b===Oe.UP?y=-1:b===Oe.DOWN&&(y=1),y!==0&&f(y);break}case Oe.LEFT:{a.value?v():g();break}case Oe.RIGHT:{a.value?g():v();break}case Oe.BACKSPACE:{i.searchValue||g();break}case Oe.ENTER:{if(s.value.length){const y=u.value[c.value],S=(y==null?void 0:y[Ds])||[];S.length?l(S.map($=>$[n.value.value]),S[S.length-1]):l(s.value,y)}break}case Oe.ESC:i.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})};function kp(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=Lp(),s=a.value!==!1?i.value.checkable:a.value,c=typeof s=="function"?s():typeof s=="boolean"?null:s;return p("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[c])}kp.props=["prefixCls","checked","halfChecked","disabled","onClick"];kp.displayName="Checkbox";kp.inheritAttrs=!1;const p8="__cascader_fix_label__";function zp(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:f}=e;var g,v,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:I,loadingIcon:T,dropdownMenuColumnStyle:_,customSlots:E}=Lp(),A=(g=I.value)!==null&&g!==void 0?g:(h=(v=E.value).expandIcon)===null||h===void 0?void 0:h.call(v),R=(b=T.value)!==null&&b!==void 0?b:(S=(y=E.value).loadingIcon)===null||S===void 0?void 0:S.call(y),z=w.value==="hover";return p("ul",{class:$,role:"menu"},[o.map(M=>{var B;const{disabled:N}=M,F=M[Ds],L=(B=M[p8])!==null&&B!==void 0?B:M[C.value.label],k=M[C.value.value],j=cs(M,C.value),H=F?F.map(K=>K[C.value.value]):[...l,k],Y=gl(H),Z=d.includes(Y),U=c.has(Y),ee=u.has(Y),G=()=>{!N&&(!z||!j)&&s(H)},J=()=>{f(M)&&a(H,j)};let Q;return typeof M.title=="string"?Q=M.title:typeof L=="string"&&(Q=L),p("li",{key:Y,class:[x,{[`${x}-expand`]:!j,[`${x}-active`]:r===k,[`${x}-disabled`]:N,[`${x}-loading`]:Z}],style:_.value,role:"menuitemcheckbox",title:Q,"aria-checked":U,"data-path-key":Y,onClick:()=>{G(),(!n||j)&&J()},onDblclick:()=>{O.value&&i(!1)},onMouseenter:()=>{z&&G()},onMousedown:K=>{K.preventDefault()}},[n&&p(kp,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:ee,disabled:N,onClick:K=>{K.stopPropagation(),J()}},null),p("div",{class:`${x}-content`},[L]),!Z&&A&&!j&&p("div",{class:`${x}-expand-icon`},[dt(A)]),Z&&R&&p("div",{class:`${x}-loading-icon`},[dt(R)])])})])}zp.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];zp.displayName="Column";zp.inheritAttrs=!1;const nee=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Tc(),l=le(),i=P(()=>r.direction==="rtl"),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:f,searchOptions:g,dropdownPrefixCls:v,loadData:h,expandTrigger:b,customSlots:y}=Lp(),S=P(()=>v.value||r.prefixCls),$=te([]),x=B=>{if(!h.value||r.searchValue)return;const F=vc(B,a.value,u.value).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];if(L&&!cs(L,u.value)){const k=gl(B);$.value=[...$.value,k],h.value(F)}};ke(()=>{$.value.length&&$.value.forEach(B=>{const N=PJ(B),F=vc(N,a.value,u.value,!0).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];(!L||L[u.value.children]||cs(L,u.value))&&($.value=$.value.filter(k=>k!==B))})});const C=P(()=>new Set(Zi(s.value))),O=P(()=>new Set(Zi(c.value))),[w,I]=eee(),T=B=>{I(B),x(B)},_=B=>{const{disabled:N}=B,F=cs(B,u.value);return!N&&(F||d.value||r.multiple)},E=function(B,N){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(B),!r.multiple&&(N||d.value&&(b.value==="hover"||F))&&r.toggleOpen(!1)},A=P(()=>r.searchValue?g.value:a.value),R=P(()=>{const B=[{options:A.value}];let N=A.value;for(let F=0;FH[u.value.value]===L),j=k==null?void 0:k[u.value.children];if(!(j!=null&&j.length))break;N=j,B.push({options:j})}return B});tee(t,A,u,w,T,(B,N)=>{_(N)&&E(B,cs(N,u.value),!0)});const M=B=>{B.preventDefault()};return je(()=>{be(w,B=>{var N;for(let F=0;F{var B,N,F,L,k;const{notFoundContent:j=((B=o.notFoundContent)===null||B===void 0?void 0:B.call(o))||((F=(N=y.value).notFoundContent)===null||F===void 0?void 0:F.call(N)),multiple:H,toggleOpen:Y}=r,Z=!(!((k=(L=R.value[0])===null||L===void 0?void 0:L.options)===null||k===void 0)&&k.length),U=[{[u.value.value]:"__EMPTY__",[p8]:j,disabled:!0}],ee=m(m({},n),{multiple:!Z&&H,onSelect:E,onActive:T,onToggleOpen:Y,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:_}),J=(Z?[{options:U}]:R.value).map((Q,K)=>{const q=w.value.slice(0,K),pe=w.value[K];return p(zp,D(D({key:K},ee),{},{prefixCls:S.value,options:Q.options,prevValuePath:q,activeValue:pe}),null)});return p("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:Z,[`${S.value}-rtl`]:i.value}],onMousedown:M,ref:l},[J])}}});function Hp(e){const t=le(0),n=te();return ke(()=>{const o=new Map;let r=0;const l=e.value||{};for(const i in l)if(Object.prototype.hasOwnProperty.call(l,i)){const a=l[i],{level:s}=a;let c=o.get(s);c||(c=new Set,o.set(s,c)),c.add(a),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function oee(){return m(m({},et(gp(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Re(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:o8},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:V.any,loadingIcon:V.any})}function g8(){return m(m({},oee()),{onChange:Function,customSlots:Object})}function ree(e){return Array.isArray(e)&&Array.isArray(e[0])}function hw(e){return e?ree(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const lee=oe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:qe(g8(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>!!e.checkable),[a,s]=Pt(e.defaultValue,{value:P(()=>e.value),postState:hw}),c=P(()=>IJ(e.fieldNames)),u=P(()=>e.options||[]),d=WJ(u,c),f=K=>{const q=d.value;return K.map(pe=>{const{nodes:W}=q[pe];return W.map(X=>X[c.value.value])})},[g,v]=Pt("",{value:P(()=>e.searchValue),postState:K=>K||""}),h=(K,q)=>{v(K),q.source!=="blur"&&e.onSearch&&e.onSearch(K)},{showSearch:b,searchConfig:y}=VJ(ze(e,"showSearch")),S=XJ(g,u,c,P(()=>e.dropdownPrefixCls||e.prefixCls),y,ze(e,"changeOnSelect")),$=UJ(u,c,a),[x,C,O]=[le([]),le([]),le([])],{maxLevel:w,levelEntities:I}=Hp(d);ke(()=>{const[K,q]=$.value;if(!i.value||!a.value.length){[x.value,C.value,O.value]=[K,[],q];return}const pe=Zi(K),W=d.value,{checkedKeys:X,halfCheckedKeys:ne}=So(pe,!0,W,w.value,I.value);[x.value,C.value,O.value]=[f(X),f(ne),q]});const T=P(()=>{const K=Zi(x.value),q=gw(K,d.value,e.showCheckedStrategy);return[...O.value,...f(q)]}),_=QJ(T,u,c,i,ze(e,"displayRender")),E=K=>{if(s(K),e.onChange){const q=hw(K),pe=q.map(ne=>vc(ne,u.value,c.value).map(ae=>ae.option)),W=i.value?q:q[0],X=i.value?pe:pe[0];e.onChange(W,X)}},A=K=>{if(v(""),!i.value)E(K);else{const q=gl(K),pe=Zi(x.value),W=Zi(C.value),X=pe.includes(q),ne=O.value.some(re=>gl(re)===q);let ae=x.value,se=O.value;if(ne&&!X)se=O.value.filter(re=>gl(re)!==q);else{const re=X?pe.filter(me=>me!==q):[...pe,q];let de;X?{checkedKeys:de}=So(re,{checked:!1,halfCheckedKeys:W},d.value,w.value,I.value):{checkedKeys:de}=So(re,!0,d.value,w.value,I.value);const ge=gw(de,d.value,e.showCheckedStrategy);ae=f(ge)}E([...se,...ae])}},R=(K,q)=>{if(q.type==="clear"){E([]);return}const{valueCells:pe}=q.values[0];A(pe)},z=P(()=>e.open!==void 0?e.open:e.popupVisible),M=P(()=>e.dropdownStyle||e.popupStyle||{}),B=P(()=>e.placement||e.popupPlacement),N=K=>{var q,pe;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,K),(pe=e.onPopupVisibleChange)===null||pe===void 0||pe.call(e,K)},{changeOnSelect:F,checkable:L,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee,dropdownClassName:G}=No(e);JJ({options:u,fieldNames:c,values:x,halfValues:C,changeOnSelect:F,onSelect:A,checkable:L,searchOptions:S,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee});const J=le();o({focus(){var K;(K=J.value)===null||K===void 0||K.focus()},blur(){var K;(K=J.value)===null||K===void 0||K.blur()},scrollTo(K){var q;(q=J.value)===null||q===void 0||q.scrollTo(K)}});const Q=P(()=>et(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const K=!(g.value?S.value:u.value).length,{dropdownMatchSelectWidth:q=!1}=e,pe=g.value&&y.value.matchInputWidth||K?{}:{minWidth:"auto"};return p(Y0,D(D(D({},Q.value),n),{},{ref:J,id:l,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:m(m({},M.value),pe),displayValues:_.value,onDisplayValuesChange:R,mode:i.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:nee,emptyOptions:K,open:z.value,dropdownClassName:G.value,placement:B.value,onDropdownVisibleChange:N,getRawInputElement:()=>{var W;return(W=r.default)===null||W===void 0?void 0:W.call(r)}}),r)}}});var iee={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"};const aee=iee;function vw(e){for(var t=1;tMn()&&window.document.documentElement,v8=e=>{if(Mn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},cee=(e,t)=>{if(!v8(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function Ay(e,t){return!Array.isArray(e)&&t!==void 0?cee(e,t):v8(e)}let $u;const uee=()=>{if(!h8())return!1;if($u!==void 0)return $u;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$u=e.scrollHeight===1,document.body.removeChild(e),$u},m8=()=>{const e=te(!1);return je(()=>{e.value=uee()}),e},b8=Symbol("rowContextKey"),dee=e=>{Ge(b8,e)},fee=()=>He(b8,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),pee=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},gee=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},hee=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let l=o;l>=0;l--)l===0?(r[`${n}${t}-${l}`]={display:"none"},r[`${n}-push-${l}`]={insetInlineStart:"auto"},r[`${n}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${l}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${l}`]={marginInlineEnd:0},r[`${n}${t}-order-${l}`]={order:0}):(r[`${n}${t}-${l}`]={display:"block",flex:`0 0 ${l/o*100}%`,maxWidth:`${l/o*100}%`},r[`${n}${t}-push-${l}`]={insetInlineStart:`${l/o*100}%`},r[`${n}${t}-pull-${l}`]={insetInlineEnd:`${l/o*100}%`},r[`${n}${t}-offset-${l}`]={marginInlineStart:`${l/o*100}%`},r[`${n}${t}-order-${l}`]={order:l});return r},tm=(e,t)=>hee(e,t),vee=(e,t,n)=>({[`@media (min-width: ${t}px)`]:m({},tm(e,n))}),mee=Ve("Grid",e=>[pee(e)]),bee=Ve("Grid",e=>{const t=Fe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gee(t),tm(t,""),tm(t,"-xs"),Object.keys(n).map(o=>vee(t,n[o],o)).reduce((o,r)=>m(m({},o),r),{})]}),yee=()=>({align:Le([String,Object]),justify:Le([String,Object]),prefixCls:String,gutter:Le([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),See=oe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:yee(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("row",e),[i,a]=mee(r);let s;const c=Rb(),u=le({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=le({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x{s=c.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(u.value=$)})}),Ze(()=>{c.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let I=0;Ie.wrap)});const y=P(()=>ie(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${v.value}`]:v.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return i(p("div",D(D({},o),{},{class:y.value,style:m(m({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}}),Ry=See;function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e,t,n){return Cee()?qu=Reflect.construct.bind():qu=function(r,l,i){var a=[null];a.push.apply(a,l);var s=Function.bind.apply(r,a),c=new s;return i&&mc(c,i.prototype),c},qu.apply(null,arguments)}function xee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function om(e){var t=typeof Map=="function"?new Map:void 0;return om=function(o){if(o===null||!xee(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return qu(o,arguments,nm(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mc(r,o)},om(e)}var wee=/%[sdj%]/g,Oee=function(){};typeof process<"u"&&process.env;function rm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=l)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return i}return e}function Pee(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Pee(t)&&typeof e=="string"&&!e)}function Iee(e,t,n){var o=[],r=0,l=e.length;function i(a){o.push.apply(o,a||[]),r++,r===l&&n(o)}e.forEach(function(a){t(a,i)})}function mw(e,t,n){var o=0,r=e.length;function l(i){if(i&&i.length){n(i);return}var a=o;o=o+1,a()\[\]\\.,;:\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},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($w.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ree())},hex:function(t){return typeof t=="string"&&!!t.match($w.hex)}},Dee=function(t,n,o,r,l){if(t.required&&n===void 0){y8(t,n,o,r,l);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?us[a](n)||r.push(io(l.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(io(l.messages.types[a],t.fullField,t.type))},Bee=function(t,n,o,r,l){var i=typeof t.len=="number",a=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(f?d="number":g?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&r.push(io(l.messages[d].len,t.fullField,t.len)):a&&!s&&ut.max?r.push(io(l.messages[d].max,t.fullField,t.max)):a&&s&&(ut.max)&&r.push(io(l.messages[d].range,t.fullField,t.min,t.max))},Fi="enum",Nee=function(t,n,o,r,l){t[Fi]=Array.isArray(t[Fi])?t[Fi]:[],t[Fi].indexOf(n)===-1&&r.push(io(l.messages[Fi],t.fullField,t[Fi].join(", ")))},Fee=function(t,n,o,r,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},bt={required:y8,whitespace:Aee,type:Dee,range:Bee,enum:Nee,pattern:Fee},Lee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l,"string"),dn(n,"string")||(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l),bt.pattern(t,n,r,i,l),t.whitespace===!0&&bt.whitespace(t,n,r,i,l))}o(i)},kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},zee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Hee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},jee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),dn(n)||bt.type(t,n,r,i,l)}o(i)},Wee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Vee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();bt.required(t,n,r,i,l,"array"),n!=null&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Gee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},Xee="enum",Uee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt[Xee](t,n,r,i,l)}o(i)},Yee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l),dn(n,"string")||bt.pattern(t,n,r,i,l)}o(i)},qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"date")&&!t.required)return o();if(bt.required(t,n,r,i,l),!dn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),bt.type(t,s,r,i,l),s&&bt.range(t,s.getTime(),r,i,l)}}o(i)},Zee=function(t,n,o,r,l){var i=[],a=Array.isArray(n)?"array":typeof n;bt.required(t,n,r,i,l,a),o(i)},mh=function(t,n,o,r,l){var i=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(dn(n,i)&&!t.required)return o();bt.required(t,n,r,a,l,i),dn(n,i)||bt.type(t,n,r,a,l)}o(a)},Qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l)}o(i)},Bs={string:Lee,method:kee,number:zee,boolean:Hee,regexp:jee,integer:Wee,float:Vee,array:Kee,object:Gee,enum:Uee,pattern:Yee,date:qee,url:mh,hex:mh,email:mh,required:Zee,any:Qee};function lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var im=lm(),zc=function(){function e(n){this.rules=null,this._messages=im,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var i=o[l];r.rules[l]=Array.isArray(i)?i:[i]})},t.messages=function(o){return o&&(this._messages=Sw(lm(),o)),this._messages},t.validate=function(o,r,l){var i=this;r===void 0&&(r={}),l===void 0&&(l=function(){});var a=o,s=r,c=l;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!S8(e,t.slice(0,-1))?e:$8(e,t,n,o)}function am(e){return hl(e)}function ete(e,t){return S8(e,t)}function tte(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Jee(e,t,n,o)}function nte(e,t){return e&&e.some(n=>rte(n,t))}function Cw(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function C8(e,t){const n=Array.isArray(e)?[...e]:m({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],l=t[o],i=Cw(r)&&Cw(l);n[o]=i?C8(r,l||{}):l}),n}function ote(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oC8(r,l),e)}function xw(e,t){let n={};return t.forEach(o=>{const r=ete(e,o);n=tte(n,o,r)}),n}function rte(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const no="'${name}' is not a valid ${type}",jp={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:no,method:no,array:no,object:no,number:no,date:no,boolean:no,integer:no,float:no,regexp:no,email:no,url:no,hex:no},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}"}};var Wp=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const lte=zc;function ite(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function sm(e,t,n,o,r){return Wp(this,void 0,void 0,function*(){const l=m({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&l.type==="array"&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new lte({[e]:[l]}),s=ote({},jp,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},m({},o)))}catch(f){f.errors?c=f.errors.map((g,v)=>{let{message:h}=g;return Kt(h)?sn(h,{key:`error_${v}`}):h}):(console.error(f),c=[s.default()])}if(!c.length&&i)return(yield Promise.all(t.map((g,v)=>sm(`${e}.${v}`,g,i,o,r)))).reduce((g,v)=>[...g,...v],[]);const u=m(m(m({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return c.map(f=>typeof f=="string"?ite(f,u):f)})}function x8(e,t,n,o,r,l){const i=e.join("."),a=n.map((c,u)=>{const d=c.validator,f=m(m({},c),{ruleIndex:u});return d&&(f.validator=(g,v,h)=>{let b=!1;const S=d(g,v,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),f}).sort((c,u)=>{let{warningOnly:d,ruleIndex:f}=c,{warningOnly:g,ruleIndex:v}=u;return!!d==!!g?f-v:d?1:-1});let s;if(r===!0)s=new Promise((c,u)=>Wp(this,void 0,void 0,function*(){for(let d=0;dsm(i,t,u,o,l).then(d=>({errors:d,rule:u})));s=(r?ste(c):ate(c)).then(u=>Promise.reject(u))}return s.catch(c=>c),s}function ate(e){return Wp(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function ste(e){return Wp(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const w8=Symbol("formContextKey"),O8=e=>{Ge(w8,e)},Dy=()=>He(w8,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>jp)}),P8=Symbol("formItemPrefixContextKey"),cte=e=>{Ge(P8,e)},ute=()=>He(P8,{prefixCls:P(()=>"")});function dte(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fte=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),pte=["xs","sm","md","lg","xl","xxl"],Vp=oe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:fte(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:l,wrap:i}=fee(),{prefixCls:a,direction:s}=Te("col",e),[c,u]=bee(a),d=P(()=>{const{span:g,order:v,offset:h,push:b,pull:y}=e,S=a.value;let $={};return pte.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=m(m({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),ie(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${v}`]:v,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,u.value)}),f=P(()=>{const{flex:g}=e,v=r.value,h={};if(v&&v[0]>0){const b=`${v[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(v&&v[1]>0&&!l.value){const b=`${v[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=dte(g),i.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return c(p("div",D(D({},o),{},{class:d.value,style:[f.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var gte={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"};const hte=gte;function ww(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var l,i,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:f,labelAlign:g,colon:v,required:h,requiredMark:b}=m(m({},e),r),[y]=Io("Form"),S=(l=e.label)!==null&&l!==void 0?l:(i=n.label)===null||i===void 0?void 0:i.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=Dy(),I=f||(C==null?void 0:C.value)||{},T=g||(x==null?void 0:x.value),_=`${u}-item-label`,E=ie(_,T==="left"&&`${_}-left`,I.class,{[`${_}-wrap`]:!!O.value});let A=S;const R=v===!0||(w==null?void 0:w.value)!==!1&&v!==!1;if(R&&!$.value&&typeof S=="string"&&S.trim()!==""&&(A=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const B=p("span",{class:`${u}-item-tooltip`},[p(Yn,{title:e.tooltip},{default:()=>[p(mte,null,null)]})]);A=p(We,null,[A,n.tooltip?(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${u}-item-tooltip`}):B])}b==="optional"&&!h&&(A=p(We,null,[A,p("span",{class:`${u}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((c=jn.Form)===null||c===void 0?void 0:c.optional)])]));const M=ie({[`${u}-item-required`]:h,[`${u}-item-required-mark-optional`]:b==="optional",[`${u}-item-no-colon`]:!R});return p(Vp,D(D({},I),{},{class:E}),{default:()=>[p("label",{for:d,class:M,title:typeof S=="string"?S:"",onClick:B=>o("click",B)},[A])]})};Ny.displayName="FormItemLabel";Ny.inheritAttrs=!1;const bte=Ny,yte=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},Ste=yte,$te=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ow=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Cte=e=>{const{componentCls:t}=e;return{[e.componentCls]:m(m(m({},Xe(e)),$te(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":m({},Ow(e,e.controlHeightSM)),"&-large":m({},Ow(e,e.controlHeightLG))})}},xte=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:m(m({},Xe(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},wte=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Ote=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Vi=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Pte=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Vi(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, - ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Ite=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, - .${o}-col-24${n}-label, - .${o}-col-xl-24${n}-label`]:Vi(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Pte(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Vi(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Vi(e)}}}},Fy=Ve("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Cte(o),xte(o),Ste(o),wte(o),Ote(o),Ite(o),Ac(o),Cb]}),Tte=oe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=ute(),l=P(()=>`${o.value}-item-explain`),i=P(()=>!!(e.errors&&e.errors.length)),a=le(r.value),[,s]=Fy(o);return be([i,r],()=>{i.value&&(a.value=r.value)}),()=>{var c,u;const d=Rc(`${o.value}-show-help-item`),f=up(`${o.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,l.value,n.class,`${o.value}-show-help`],p(cn,D(D({},Po(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[$n(p(Hf,D(D({},f),{},{tag:"div"}),{default:()=>[(u=e.errors)===null||u===void 0?void 0:u.map((g,v)=>p("div",{key:v,class:a.value?`${l.value}-${a.value}`:""},[g]))]}),[[En,!!(!((c=e.errors)===null||c===void 0)&&c.length)]])]})}}}),Ete=oe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=Dy(),{wrapperCol:r}=o,l=m({},o);return delete l.labelCol,delete l.wrapperCol,O8(l),cte({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var i,a,s;const{prefixCls:c,wrapperCol:u,marginBottom:d,onErrorVisibleChanged:f,help:g=(i=n.help)===null||i===void 0?void 0:i.call(n),errors:v=_t((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${c}-item`,y=u||(r==null?void 0:r.value)||{},S=ie(`${b}-control`,y.class);return p(Vp,D(D({},y),{},{class:S}),{default:()=>{var $;return p(We,null,[p("div",{class:`${b}-control-input`},[p("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||v.length?p("div",{style:{display:"flex",flexWrap:"nowrap"}},[p(Tte,{errors:v,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&p("div",{style:{width:0,height:`${d}px`}},null)]):null,h?p("div",{class:`${b}-extra`},[h]):null])}})}}}),Mte=Ete;function _te(e){const t=te(e.value.slice());let n=null;return ke(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Cn("success","warning","error","validating","");const Ate={success:zr,warning:Hr,error:Qn,validating:co};function bh(e,t,n){let o=e;const r=t;let l=0;try{for(let i=r.length;l({htmlFor:String,prefixCls:String,label:V.any,help:V.any,extra:V.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:V.oneOf(Cn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Dte=0;const Bte="form_item",I8=oe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Rte(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const l=`form-item-${++Dte}`,{prefixCls:i}=Te("form",e),[a,s]=Fy(i),c=te(),u=Dy(),d=P(()=>e.name||e.prop),f=te([]),g=te(!1),v=te(),h=P(()=>{const U=d.value;return am(U)}),b=P(()=>{if(h.value.length){const U=u.name.value,ee=h.value.join("_");return U?`${U}_${ee}`:`${Bte}_${ee}`}else return}),y=()=>{const U=u.model.value;if(!(!U||!d.value))return bh(U,h.value,!0).v},S=P(()=>y()),$=te(ju(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:u.validateTrigger.value;return U=U===void 0?"change":U,hl(U)}),C=P(()=>{let U=u.rules.value;const ee=e.rules,G=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],J=bh(U,h.value);U=U?J.o[J.k]||J.v:[];const Q=[].concat(ee||U||[]);return $K(Q,K=>K.required)?Q:Q.concat(G)}),O=P(()=>{const U=C.value;let ee=!1;return U&&U.length&&U.every(G=>G.required?(ee=!0,!1):!0),ee||e.required}),w=te();ke(()=>{w.value=e.validateStatus});const I=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=m(m({},U),e.messageVariables)),U}),T=U=>{if(h.value.length===0)return;const{validateFirst:ee=!1}=e,{triggerName:G}=U||{};let J=C.value;if(G&&(J=J.filter(K=>{const{trigger:q}=K;return!q&&!x.value.length?!0:hl(q||x.value).includes(G)})),!J.length)return Promise.resolve();const Q=x8(h.value,S.value,J,m({validateMessages:u.validateMessages.value},U),ee,I.value);return w.value="validating",f.value=[],Q.catch(K=>K).then(function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=K.filter(pe=>pe&&pe.errors.length);w.value=q.length?"error":"success",f.value=q.map(pe=>pe.errors),u.onValidate(d.value,!f.value.length,f.value.length?Qe(f.value[0]):null)}}),Q},_=()=>{T({triggerName:"blur"})},E=()=>{if(g.value){g.value=!1;return}T({triggerName:"change"})},A=()=>{w.value=e.validateStatus,g.value=!1,f.value=[]},R=()=>{var U;w.value=e.validateStatus,g.value=!0,f.value=[];const ee=u.model.value||{},G=S.value,J=bh(ee,h.value,!0);Array.isArray(G)?J.o[J.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):J.o[J.k]=$.value,ot(()=>{g.value=!1})},z=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),M=()=>{const U=z.value;if(!U||!v.value)return;const ee=v.value.$el.querySelector(`[id="${U}"]`);ee&&ee.focus&&ee.focus()};r({onFieldBlur:_,onFieldChange:E,clearValidate:A,resetField:R}),gj({id:b,onFieldBlur:()=>{e.autoLink&&_()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:A},P(()=>!!(e.autoLink&&u.model.value&&d.value)));let B=!1;be(d,U=>{U?B||(B=!0,u.addField(l,{fieldValue:S,fieldId:b,fieldName:d,resetField:R,clearValidate:A,namePath:h,validateRules:T,rules:C})):(B=!1,u.removeField(l))},{immediate:!0}),Ze(()=>{u.removeField(l)});const N=_te(f),F=P(()=>e.validateStatus!==void 0?e.validateStatus:N.value.length?"error":w.value),L=P(()=>({[`${i.value}-item`]:!0,[s.value]:!0,[`${i.value}-item-has-feedback`]:F.value&&e.hasFeedback,[`${i.value}-item-has-success`]:F.value==="success",[`${i.value}-item-has-warning`]:F.value==="warning",[`${i.value}-item-has-error`]:F.value==="error",[`${i.value}-item-is-validating`]:F.value==="validating",[`${i.value}-item-hidden`]:e.hidden})),k=ut({});un.useProvide(k),ke(()=>{let U;if(e.hasFeedback){const ee=F.value&&Ate[F.value];U=ee?p("span",{class:ie(`${i.value}-item-feedback-icon`,`${i.value}-item-feedback-icon-${F.value}`)},[p(ee,null,null)]):null}m(k,{status:F.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const j=te(null),H=te(!1),Y=()=>{if(c.value){const U=getComputedStyle(c.value);j.value=parseInt(U.marginBottom,10)}};je(()=>{be(H,()=>{H.value&&Y()},{flush:"post",immediate:!0})});const Z=U=>{U||(j.value=null)};return()=>{var U,ee;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const G=(ee=e.help)!==null&&ee!==void 0?ee:n.help?_t(n.help()):null,J=!!(G!=null&&Array.isArray(G)&&G.length||N.value.length);return H.value=J,a(p("div",{class:[L.value,J?`${i.value}-item-with-help`:"",o.class],ref:c},[p(Ry,D(D({},o),{},{class:`${i.value}-item-row`,key:"row"}),{default:()=>{var Q,K;return p(We,null,[p(bte,D(D({},e),{},{htmlFor:z.value,required:O.value,requiredMark:u.requiredMark.value,prefixCls:i.value,onClick:M,label:e.label}),{label:n.label,tooltip:n.tooltip}),p(Mte,D(D({},e),{},{errors:G!=null?hl(G):N.value,marginBottom:j.value,prefixCls:i.value,status:F.value,ref:v,help:G,extra:(Q=e.extra)!==null&&Q!==void 0?Q:(K=n.extra)===null||K===void 0?void 0:K.call(n),onErrorVisibleChanged:Z}),{default:n.default})])}}),!!j.value&&p("div",{class:`${i.value}-margin-offset`,style:{marginBottom:`-${j.value}px`}},null)]))}}});function T8(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,l)=>{e.forEach((i,a)=>{i.catch(s=>(t=!0,s)).then(s=>{n-=1,o[a]=s,!(n>0)&&(t&&l(o),r(o))})})}):Promise.resolve([])}function Pw(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function Iw(e){return e==null?[]:Array.isArray(e)?e:[e]}function yh(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let l=0;for(let i=r.length;l1&&arguments[1]!==void 0?arguments[1]:le({}),n=arguments.length>2?arguments[2]:void 0;const o=ju($t(e)),r=ut({}),l=te([]),i=$=>{m($t(e),m(m({},ju(o)),$)),ot(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:Pw($t(t)[x])}})})},a=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=Iw(C.trigger||"change");return IK(O,x).length}):$};let s=null;const c=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let _=0;_<$.length;_++){const E=$[_],A=yh($t(e),E,C);if(!A.isValid)continue;w[E]=A.v;const R=a($t(t)[E],Iw(x&&x.trigger));R.length&&O.push(u(E,A.v,R,x||{}).then(()=>({name:E,errors:[],warnings:[]})).catch(z=>{const M=[],B=[];return z.forEach(N=>{let{rule:{warningOnly:F},errors:L}=N;F?B.push(...L):M.push(...L)}),M.length?Promise.reject({name:E,errors:M,warnings:B}):{name:E,errors:M,warnings:B}}))}const I=T8(O);s=I;const T=I.then(()=>s===I?Promise.resolve(w):Promise.reject([])).catch(_=>{const E=_.filter(A=>A&&A.errors.length);return E.length?Promise.reject({values:w,errorFields:E,outOfDate:s!==I}):Promise.resolve(w)});return T.catch(_=>_),T},u=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=x8([$],x,C,m({validateMessages:jp},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(I=>I).then(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var T;if(r[$].validateStatus==="validating"){const _=I.filter(E=>E&&E.errors.length);r[$].validateStatus=_.length?"error":"success",r[$].help=_.length?_.map(E=>E.errors):null,(T=n==null?void 0:n.onValidate)===null||T===void 0||T.call(n,$,!_.length,_.length?Qe(r[$].help[0]):null)}}),w):w.catch(I=>I)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=l.value);const w=c(C,x||{},O);return w.catch(I=>I),w},f=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=l.value,x.forEach(C=>{r[C]&&m(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];l.value.forEach(C=>{const O=yh($,C,!1),w=yh(v,C,!1);(h&&(n==null?void 0:n.immediate)&&O.isValid||!V0(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,v=ju(Qe($))},y=n==null?void 0:n.debounce;let S=!0;return be(t,()=>{l.value=t?Object.keys($t(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),be(l,()=>{const $={};l.value.forEach(x=>{$[x]=m({},r[x],{autoLink:!1,required:Pw($t(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];m(r,$)},{immediate:!0}),be(e,y&&y.wait?Sb(b,y.wait,HK(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:i,validate:d,validateField:u,mergeValidateInfo:g,clearValidate:f}}const Fte=()=>({layout:V.oneOf(Cn("horizontal","inline","vertical")),labelCol:Re(),wrapperCol:Re(),colon:Ce(),labelAlign:Be(),labelWrap:Ce(),prefixCls:String,requiredMark:Le([String,Boolean]),hideRequiredMark:Ce(),model:V.object,rules:Re(),validateMessages:Re(),validateOnRuleChange:Ce(),scrollToFirstError:St(),onSubmit:ve(),name:String,validateTrigger:Le([String,Array]),size:Be(),disabled:Ce(),onValuesChange:ve(),onFieldsChange:ve(),onFinish:ve(),onFinishFailed:ve(),onValidate:ve()});function Lte(e,t){return V0(hl(e),hl(t))}const kte=oe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:qe(Fte(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:I8,useForm:Nte,setup(e,t){let{emit:n,slots:o,expose:r,attrs:l}=t;const{prefixCls:i,direction:a,form:s,size:c,disabled:u}=Te("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),f=P(()=>{var N;return d.value!==void 0?d.value:s&&((N=s.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});NP(c),eP(u);const g=P(()=>{var N,F;return(N=e.colon)!==null&&N!==void 0?N:(F=s.value)===null||F===void 0?void 0:F.colon}),{validateMessages:v}=sD(),h=P(()=>m(m(m({},jp),v.value),e.validateMessages)),[b,y]=Fy(i),S=P(()=>ie(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:f.value===!1,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-${c.value}`]:c.value},y.value)),$=le(),x={},C=(N,F)=>{x[N]=F},O=N=>{delete x[N]},w=N=>{const F=!!N,L=F?hl(N).map(am):[];return F?Object.values(x).filter(k=>L.findIndex(j=>Lte(j,k.fieldName.value))>-1):Object.values(x)},I=N=>{if(!e.model){It();return}w(N).forEach(F=>{F.resetField()})},T=N=>{w(N).forEach(F=>{F.clearValidate()})},_=N=>{const{scrollToFirstError:F}=e;if(n("finishFailed",N),F&&N.errorFields.length){let L={};typeof F=="object"&&(L=F),A(N.errorFields[0].name,L)}},E=function(){return M(...arguments)},A=function(N){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=w(N?[N]:void 0);if(L.length){const k=L[0].fieldId.value,j=k?document.getElementById(k):null;j&&kP(j,m({scrollMode:"if-needed",block:"nearest"},F))}},R=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const F=[];return Object.values(x).forEach(L=>{let{namePath:k}=L;F.push(k.value)}),xw(e.model,F)}else return xw(e.model,N)},z=(N,F)=>{if(It(),!e.model)return It(),Promise.reject("Form `model` is required for validateFields to work.");const L=!!N,k=L?hl(N).map(am):[],j=[];Object.values(x).forEach(Z=>{var U;if(L||k.push(Z.namePath.value),!(!((U=Z.rules)===null||U===void 0)&&U.value.length))return;const ee=Z.namePath.value;if(!L||nte(k,ee)){const G=Z.validateRules(m({validateMessages:h.value},F));j.push(G.then(()=>({name:ee,errors:[],warnings:[]})).catch(J=>{const Q=[],K=[];return J.forEach(q=>{let{rule:{warningOnly:pe},errors:W}=q;pe?K.push(...W):Q.push(...W)}),Q.length?Promise.reject({name:ee,errors:Q,warnings:K}):{name:ee,errors:Q,warnings:K}}))}});const H=T8(j);$.value=H;const Y=H.then(()=>$.value===H?Promise.resolve(R(k)):Promise.reject([])).catch(Z=>{const U=Z.filter(ee=>ee&&ee.errors.length);return Promise.reject({values:R(k),errorFields:U,outOfDate:$.value!==H})});return Y.catch(Z=>Z),Y},M=function(){return z(...arguments)},B=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),e.model&&z().then(L=>{n("finish",L)}).catch(L=>{_(L)})};return r({resetFields:I,clearValidate:T,validateFields:z,getFieldsValue:R,validate:E,scrollToField:A}),O8({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:f,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(N,F,L)=>{n("validate",N,F,L)},validateMessages:h}),be(()=>e.rules,()=>{e.validateOnRuleChange&&z()}),()=>{var N;return b(p("form",D(D({},l),{},{onSubmit:B,class:[S.value,l.class]}),[(N=o.default)===null||N===void 0?void 0:N.call(o)]))}}}),il=kte;il.useInjectFormItemContext=Qt;il.ItemRest=Gd;il.install=function(e){return e.component(il.name,il),e.component(il.Item.name,il.Item),e.component(Gd.name,Gd),e};const zte=new nt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Hte=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:m(m({},Xe(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:m(m({},Xe(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:m(m({},Xe(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:m({},Ar(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:zte,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Kp(e,t){const n=Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Hte(n)]}const E8=Ve("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Kp(n,e)]}),jte=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=` - &${r}-expand ${r}-expand-icon, - ${r}-loading-icon - `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Kp(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":m(m({},Gt),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},ja(e)]},Wte=Ve("Cascader",e=>[jte(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Vte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[a]:[...i,t,a],[]),r=[];let l=0;return o.forEach((i,a)=>{const s=l+i.length;let c=e.slice(l,s);l=s,a%2===1&&(c=p("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[c])),r.push(c)}),r}const Gte=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach((a,s)=>{s!==0&&l.push(" / ");let c=a[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=Kte(String(c),i,o)),l.push(c)}),l};function Xte(){return m(m({},et(g8(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:V.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Ute=oe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:qe(Xte(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:l}=t;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:f,getPopupContainer:g,renderEmpty:v,size:h,disabled:b}=Te("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=Ol(y,f),x=P(()=>S.value||h.value),C=qn(),O=P(()=>{var F;return(F=b.value)!==null&&F!==void 0?F:C.value}),[w,I]=xb(y),[T]=Wte(c),_=P(()=>f.value==="rtl"),E=P(()=>{if(!e.showSearch)return e.showSearch;let F={render:Gte};return typeof e.showSearch=="object"&&(F=m(m({},F),e.showSearch)),F}),A=P(()=>ie(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:_.value},I.value)),R=le();o({focus(){var F;(F=R.value)===null||F===void 0||F.focus()},blur(){var F;(F=R.value)===null||F===void 0||F.blur()}});const z=function(){for(var F=arguments.length,L=new Array(F),k=0;ke.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),N=P(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var F,L;const{notFoundContent:k=(F=r.notFoundContent)===null||F===void 0?void 0:F.call(r),expandIcon:j=(L=r.expandIcon)===null||L===void 0?void 0:L.call(r),multiple:H,bordered:Y,allowClear:Z,choiceTransitionName:U,transitionName:ee,id:G=i.id.value}=e,J=Vte(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Q=k||v("Cascader");let K=j;j||(K=_.value?p(Sl,null,null):p(Wo,null,null));const q=p("span",{class:`${y.value}-menu-item-loading-icon`},[p(co,{spin:!0},null)]),{suffixIcon:pe,removeIcon:W,clearIcon:X}=cb(m(m({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:H,prefixCls:y.value,showArrow:B.value}),r);return T(w(p(lee,D(D(D({},J),n),{},{id:G,prefixCls:y.value,class:[c.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:_.value,[`${y.value}-borderless`]:!Y,[`${y.value}-in-form-item`]:a.isFormItemInput},Tn(y.value,s.value,a.hasFeedback),$.value,n.class,I.value],disabled:O.value,direction:f.value,placement:N.value,notFoundContent:Q,allowClear:Z,showSearch:E.value,expandIcon:K,inputIcon:pe,removeIcon:W,clearIcon:X,loadingIcon:q,checkable:!!H,dropdownClassName:A.value,dropdownPrefixCls:c.value,choiceTransitionName:_n(u.value,"",U),transitionName:_n(u.value,K0(N.value),ee),getPopupContainer:g==null?void 0:g.value,customSlots:m(m({},r),{checkable:()=>p("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:z,onBlur:M,ref:R}),r)))}}}),Yte=Tt(m(Ute,{SHOW_CHILD:r8,SHOW_PARENT:o8})),qte=()=>({name:String,prefixCls:String,options:at([]),disabled:Boolean,id:String}),Zte=()=>m(m({},qte()),{defaultValue:at(),value:at(),onChange:ve(),"onUpdate:value":ve()}),Qte=()=>({prefixCls:String,defaultChecked:Ce(),checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,indeterminate:Ce(),type:Be("checkbox"),autofocus:Ce(),onChange:ve(),"onUpdate:checked":ve(),onClick:ve(),skipGroup:Ce(!1)}),Jte=()=>m(m({},Qte()),{indeterminate:Ce(!1)}),M8=Symbol("CheckboxGroupContext");var Tw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(v==null?void 0:v.disabled.value)||u.value);ke(()=>{!e.skipGroup&&v&&v.registerValue(h,e.value)}),Ze(()=>{v&&v.cancelValue(h)}),je(()=>{It(!!(e.checked!==void 0||v||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),i.onFieldChange()},S=le();return l({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=yt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:I,id:T=i.id.value}=e,_=Tw(e,["indeterminate","skipGroup","id"]),{onMouseenter:E,onMouseleave:A,onInput:R,class:z,style:M}=o,B=Tw(o,["onMouseenter","onMouseleave","onInput","class","style"]),N=m(m(m(m({},_),{id:T,prefixCls:s.value}),B),{disabled:b.value});v&&!I?(N.onChange=function(){for(var j=arguments.length,H=new Array(j),Y=0;Y`${a.value}-group`),[u,d]=E8(c),f=le((e.value===void 0?e.defaultValue:e.value)||[]);be(()=>e.value,()=>{f.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),v=le(Symbol()),h=le(new Map),b=x=>{h.value.delete(x),v.value=Symbol()},y=(x,C)=>{h.value.set(x,C),v.value=Symbol()},S=le(new Map);return be(v,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Ge(M8,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=f.value.indexOf(x.value),O=[...f.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(f.value=O);const w=O.filter(I=>S.value.has(I)).sort((I,T)=>{const _=g.value.findIndex(A=>A.value===I),E=g.value.findIndex(A=>A.value===T);return _-E});r("update:value",w),r("change",w),i.onFieldChange()},mergedValue:f,name:P(()=>e.name),disabled:P(()=>e.disabled)}),l({mergedValue:f}),()=>{var x;const{id:C=i.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var I;return p($o,{prefixCls:a.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:f.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${c.value}-item`},{default:()=>[n.label!==void 0?(I=n.label)===null||I===void 0?void 0:I.call(n,w):w.label]})})),u(p("div",D(D({},o),{},{class:[c.value,{[`${c.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});$o.Group=vf;$o.install=function(e){return e.component($o.name,$o),e.component(vf.name,vf),e};const ene={useBreakpoint:Va},tne=Tt(Vp),nne=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:l,commentFontSizeSm:i,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:g}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:l,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:l,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:a,fontSize:l,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:g,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},one=Ve("Comment",e=>{const t=Fe(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[nne(t)]}),rne=()=>({actions:Array,author:V.any,avatar:V.any,content:V.any,prefixCls:String,datetime:V.any}),lne=oe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:rne(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("comment",e),[i,a]=one(r),s=(u,d)=>p("div",{class:`${u}-nested`},[d]),c=u=>!u||!u.length?null:u.map((f,g)=>p("li",{key:`action-${g}`},[f]));return()=>{var u,d,f,g,v,h,b,y,S,$,x;const C=r.value,O=(u=e.actions)!==null&&u!==void 0?u:(d=n.actions)===null||d===void 0?void 0:d.call(n),w=(f=e.author)!==null&&f!==void 0?f:(g=n.author)===null||g===void 0?void 0:g.call(n),I=(v=e.avatar)!==null&&v!==void 0?v:(h=n.avatar)===null||h===void 0?void 0:h.call(n),T=(b=e.content)!==null&&b!==void 0?b:(y=n.content)===null||y===void 0?void 0:y.call(n),_=(S=e.datetime)!==null&&S!==void 0?S:($=n.datetime)===null||$===void 0?void 0:$.call(n),E=p("div",{class:`${C}-avatar`},[typeof I=="string"?p("img",{src:I,alt:"comment-avatar"},null):I]),A=O?p("ul",{class:`${C}-actions`},[c(Array.isArray(O)?O:[O])]):null,R=p("div",{class:`${C}-content-author`},[w&&p("span",{class:`${C}-content-author-name`},[w]),_&&p("span",{class:`${C}-content-author-time`},[_])]),z=p("div",{class:`${C}-content`},[R,p("div",{class:`${C}-content-detail`},[T]),A]),M=p("div",{class:`${C}-inner`},[E,z]),B=yt((x=n.default)===null||x===void 0?void 0:x.call(n));return i(p("div",D(D({},o),{},{class:[C,{[`${C}-rtl`]:l.value==="rtl"},o.class,a.value]}),[M,B&&B.length?s(C,B):null]))}}}),ine=Tt(lne);let Zu=m({},jn.Modal);function ane(e){e?Zu=m(m({},Zu),e):Zu=m({},jn.Modal)}function sne(){return Zu}const cm="internalMark",Qu=oe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;It(e.ANT_MARK__===cm);const o=ut({antLocale:m(m({},e.locale),{exist:!0}),ANT_MARK__:cm});return Ge("localeData",o),be(()=>e.locale,r=>{ane(r&&r.Modal),o.antLocale=m(m({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});Qu.install=function(e){return e.component(Qu.name,Qu),e};const _8=Tt(Qu),A8=oe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,l=!1;const i=P(()=>e.duration===void 0?4.5:e.duration),a=()=>{i.value&&!l&&(r=setTimeout(()=>{c()},i.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},c=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:g}=e;f&&f(g)},u=()=>{s(),a()};return je(()=>{a()}),Rn(()=>{l=!0,s()}),be([i,()=>e.updateMark,()=>e.visible],(d,f)=>{let[g,v,h]=d,[b,y,S]=f;(g!==b||v!==y||h!==S&&S)&&u()},{flush:"post"}),()=>{var d,f;const{prefixCls:g,closable:v,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(w[I]=n[I]),w),{}),O=p("div",D({class:ie(x,S,{[`${x}-closable`]:v}),style:$,onMouseenter:s,onMouseleave:a,onClick:b},C),[p("div",{class:`${x}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),v?p("a",{tabindex:0,onClick:c,class:`${x}-close`},[h||p("span",{class:`${x}-close-x`},null)]):null]);return y?p(Jm,{to:y},{default:()=>O}):O}}});var cne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:u,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${u}-${d}`),up(f)}),s=(u,d)=>{const f=u.key||Mw(),g=m(m({},u),{key:f}),{maxCount:v}=e,h=i.value.map(y=>y.notice.key).indexOf(f),b=i.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(v&&i.value.length>=v&&(g.key=b[0].notice.key,g.updateMark=Mw(),g.userPassKey=f,b.shift()),b.push({notice:g,holderCallback:d})),i.value=b},c=u=>{i.value=Qe(i.value).filter(d=>{let{notice:{key:f,userPassKey:g}}=d;return(g||f)!==u})};return o({add:s,remove:c,notices:i}),()=>{var u;const{prefixCls:d,closeIcon:f=(u=r.closeIcon)===null||u===void 0?void 0:u.call(r,{prefixCls:d})}=e,g=i.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===i.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:I=>{var T;c(I),(T=y.onClose)===null||T===void 0||T.call(y)},onClick:y.onClick});return S?p("div",{key:x,class:`${d}-hook-holder`,ref:I=>{typeof x>"u"||(I?(l.set(x,I),S(I,w)):l.delete(x))}},null):p(A8,D(D({},w),{},{class:ie(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[p(Hf,D({tag:"div"},a.value),{default:()=>[g]})])}}});um.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:l,appContext:i,prefixCls:a,rootPrefixCls:s,transitionName:c,hasTransitionName:u,useStyle:d}=o,f=cne(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");l?l().appendChild(g):document.body.appendChild(g);const h=p(oe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=te(),x=P(()=>vn.getPrefixCls(r,a)),[,C]=d(x);return je(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){bl(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=vn,w=O.getRootPrefixCls(s,x.value),I=u?c:`${x.value}-${c}`;return p(zy,D(D({},O),{},{prefixCls:w}),{default:()=>[p(um,D(D({ref:$},S),{},{prefixCls:x.value,transitionName:I,hashId:C.value}),null)]})}}}),f);h.appContext=i||h.appContext,bl(h,g)};const R8=um;let _w=0;const dne=Date.now();function Aw(){const e=_w;return _w+=1,`rcNotification_${dne}_${e}`}const fne=oe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,l=P(()=>e.notices),i=P(()=>{let u=e.transitionName;if(!u&&e.animation)switch(typeof e.animation){case"string":u=e.animation;break;case"function":u=e.animation().name;break;case"object":u=e.animation.name;break;default:u=`${e.prefixCls}-fade`;break}return up(u)}),a=u=>e.remove(u),s=le({});be(l,()=>{const u={};Object.keys(s.value).forEach(d=>{u[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(u[f]=u[f]||[],u[f].push(d))}),s.value=u});const c=P(()=>Object.keys(s.value));return()=>{var u;const{prefixCls:d,closeIcon:f=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o,{prefixCls:d})}=e,g=c.value.map(v=>{var h,b;const y=s.value[v],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,v),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,v),x=y.map((w,I)=>{let{notice:T,holderCallback:_}=w;const E=I===l.value.length-1?T.updateMark:void 0,{key:A,userPassKey:R}=T,{content:z}=T,M=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},T),T.props),{key:A,noticeKey:R||A,updateMark:E,onClose:B=>{var N;a(B),(N=T.onClose)===null||N===void 0||N.call(T)},onClick:T.onClick});return _?p("div",{key:A,class:`${d}-hook-holder`,ref:B=>{typeof A>"u"||(B?(r.set(A,B),_(B,M)):r.delete(A))}},null):p(A8,D(D({},M),{},{class:ie(M.class,e.hashId)}),{default:()=>[typeof z=="function"?z({prefixCls:d}):z]})}),C={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,v),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return p("div",{key:v,class:C,style:n.style||$||{top:"65px",left:"50%"}},[p(Hf,D(D({tag:"div"},i.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return p(xI,{getContainer:e.getContainer},{default:()=>[g]})}}}),pne=fne;var gne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let Rw=0;function vne(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(l=>{const i=r[l];i!==void 0&&(e[l]=i)})}),e}function D8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=hne,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:i,onAllRemoved:a}=e,s=gne(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=te([]),u=te(),d=(y,S)=>{const $=y.key||Aw(),x=m(m({},y),{key:$}),C=c.value.map(w=>w.notice.key).indexOf($),O=c.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&c.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=Aw(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),c.value=O},f=y=>{c.value=c.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{c.value=[]},v=()=>p(pne,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:f,getClassName:l,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),h=te([]),b={open:y=>{const S=vne(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${Rw}`,Rw+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return be(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":f(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,v]}const mne=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:m(m({},Xe(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:g,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:r,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[` - ${t}-info ${n}, - ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},B8=Ve("Message",e=>{const t=Fe(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[mne(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),bne={info:p(Wa,null,null),success:p(zr,null,null),error:p(Qn,null,null),warning:p(Hr,null,null),loading:p(co,null,null)},yne=oe({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:ie(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||bne[e.type],p("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var Sne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rl("message",e.prefixCls)),[,s]=B8(a),c=()=>{var h;const b=(h=e.top)!==null&&h!==void 0?h:$ne;return{left:"50%",transform:"translateX(-50%)",top:typeof b=="number"?`${b}px`:b}},u=()=>ie(s.value,e.rtl?`${a.value}-rtl`:""),d=()=>{var h;return _0({prefixCls:a.value,animation:(h=e.animation)!==null&&h!==void 0?h:"move-up",transitionName:e.transitionName})},f=p("span",{class:`${a.value}-close-x`},[p(Zn,{class:`${a.value}-close-icon`},null)]),[g,v]=D8({getStyles:c,prefixCls:a.value,getClassName:u,motion:d,closable:!1,closeIcon:f,duration:(o=e.duration)!==null&&o!==void 0?o:Cne,getContainer:(r=e.staticGetContainer)!==null&&r!==void 0?r:i.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(m(m({},g),{prefixCls:a,hashId:s})),v}});let Dw=0;function wne(e){const t=te(null),n=Symbol("messageHolderKey"),o=s=>{var c;(c=t.value)===null||c===void 0||c.close(s)},r=s=>{if(!t.value){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,hashId:d}=t.value,f=`${u}-notice`,{content:g,icon:v,type:h,key:b,class:y,onClose:S}=s,$=Sne(s,["content","icon","type","key","class","onClose"]);let x=b;return x==null&&(Dw+=1,x=`antd-message-${Dw}`),DR(C=>(c(m(m({},$),{key:x,content:()=>p(yne,{prefixCls:u,type:h,icon:typeof v=="function"?v():v},{default:()=>[typeof g=="function"?g():g]}),placement:"top",class:ie(h&&`${f}-${h}`,d,y),onClose:()=>{S==null||S(),C()}})),()=>{o(x)}))},i={open:r,destroy:s=>{var c;s!==void 0?o(s):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(u,d,f)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let v,h;typeof d=="function"?h=d:(v=d,h=f);const b=m(m({onClose:h,duration:v},g),{type:s});return r(b)};i[s]=c}),[i,()=>p(xne,D(D({key:n},e),{},{ref:t}),null)]}function N8(e){return wne(e)}let F8=3,L8,kn,One=1,k8="",z8="move-up",H8=!1,j8=()=>document.body,W8,V8=!1;function Pne(){return One++}function Ine(e){e.top!==void 0&&(L8=e.top,kn=null),e.duration!==void 0&&(F8=e.duration),e.prefixCls!==void 0&&(k8=e.prefixCls),e.getContainer!==void 0&&(j8=e.getContainer,kn=null),e.transitionName!==void 0&&(z8=e.transitionName,kn=null,H8=!0),e.maxCount!==void 0&&(W8=e.maxCount,kn=null),e.rtl!==void 0&&(V8=e.rtl)}function Tne(e,t){if(kn){t(kn);return}R8.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||k8,rootPrefixCls:e.rootPrefixCls,transitionName:z8,hasTransitionName:H8,style:{top:L8},getContainer:j8||e.getPopupContainer,maxCount:W8,name:"message",useStyle:B8},n=>{if(kn){t(kn);return}kn=n,t(n)})}const K8={info:Wa,success:zr,error:Qn,warning:Hr,loading:co},Ene=Object.keys(K8);function Mne(e){const t=e.duration!==void 0?e.duration:F8,n=e.key||Pne(),o=new Promise(l=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),l(!0));Tne(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:c}=s;const u=K8[e.type],d=u?p(u,null,null):"",f=ie(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:V8===!0});return p("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,p("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),r=()=>{kn&&kn.removeNotice(n)};return r.then=(l,i)=>o.then(l,i),r.promise=o,r}function _ne(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const bc={open:Mne,config:Ine,destroy(e){if(kn)if(e){const{removeNotice:t}=kn;t(e)}else{const{destroy:t}=kn;t(),kn=null}}};function Ane(e,t){e[t]=(n,o,r)=>_ne(n)?e.open(m(m({},n),{type:t})):(typeof o=="function"&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}Ene.forEach(e=>Ane(bc,e));bc.warn=bc.warning;bc.useMessage=N8;const ga=bc,Rne=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new nt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new nt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new nt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},Dne=Rne,Bne=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:g,notificationMarginEdge:v,motionDurationMid:h,motionEaseInOut:b,fontSize:y,lineHeight:S,width:$,notificationIconSize:x}=e,C=`${n}-notice`,O=new nt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:$},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new nt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:m(m(m(m({},Xe(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:b,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:b,animationFillMode:"both",animationDuration:h,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),Dne(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[C]:{position:"relative",width:$,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:l,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:S,wordWrap:"break-word",background:f,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:r},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+x,fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${C}-pure-panel`]:{margin:0}}]},G8=Ve("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=Fe(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Bne(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function Nne(e,t){return t||p("span",{class:`${e}-close-x`},[p(Zn,{class:`${e}-close-icon`},null)])}p(Wa,null,null),p(zr,null,null),p(Qn,null,null),p(Hr,null,null),p(co,null,null);const Fne={success:zr,info:Wa,error:Qn,warning:Hr};function Lne(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=p("span",{class:`${t}-icon`},[Xi(n)]);else if(o){const s=Fne[o];a=p(s,{class:`${t}-icon ${t}-icon-${o}`},null)}return p("div",{class:ie({[`${t}-with-icon`]:a}),role:"alert"},[a,p("div",{class:`${t}-message`},[r]),p("div",{class:`${t}-description`},[l]),i&&p("div",{class:`${t}-btn`},[i])])}function X8(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function kne(e){return{name:`${e}-fade`}}var zne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification")),i=f=>{var g,v;return X8(f,(g=e.top)!==null&&g!==void 0?g:Bw,(v=e.bottom)!==null&&v!==void 0?v:Bw)},[,a]=G8(l),s=()=>ie(a.value,{[`${l.value}-rtl`]:e.rtl}),c=()=>kne(l.value),[u,d]=D8({prefixCls:l.value,getStyles:i,getClassName:s,motion:c,closable:!0,closeIcon:Nne(l.value),duration:Hne,getContainer:()=>{var f,g;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((g=r.value)===null||g===void 0?void 0:g.call(r))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return n(m(m({},u),{prefixCls:l.value,hashId:a})),d}});function Wne(e){const t=te(null),n=Symbol("notificationHolderKey"),o=a=>{if(!t.value)return;const{open:s,prefixCls:c,hashId:u}=t.value,d=`${c}-notice`,{message:f,description:g,icon:v,type:h,btn:b,class:y}=a,S=zne(a,["message","description","icon","type","btn","class"]);return s(m(m({placement:"topRight"},S),{content:()=>p(Lne,{prefixCls:d,icon:typeof v=="function"?v():v,type:h,message:typeof f=="function"?f():f,description:typeof g=="function"?g():g,btn:typeof b=="function"?b():b},null),class:ie(h&&`${d}-${h}`,u,y)}))},l={open:o,destroy:a=>{var s,c;a!==void 0?(s=t.value)===null||s===void 0||s.close(a):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{l[a]=s=>o(m(m({},s),{type:a}))}),[l,()=>p(jne,D(D({key:n},e),{},{ref:t}),null)]}function U8(e){return Wne(e)}globalThis&&globalThis.__awaiter;const Xl={};let Y8=4.5,q8="24px",Z8="24px",dm="",Q8="topRight",J8=()=>document.body,eE=null,fm=!1,tE;function Vne(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;a!==void 0&&(dm=a),t!==void 0&&(Y8=t),n!==void 0&&(Q8=n),o!==void 0&&(Z8=typeof o=="number"?`${o}px`:o),r!==void 0&&(q8=typeof r=="number"?`${r}px`:r),l!==void 0&&(J8=l),i!==void 0&&(eE=i),e.rtl!==void 0&&(fm=e.rtl),e.maxCount!==void 0&&(tE=e.maxCount)}function Kne(e,t){let{prefixCls:n,placement:o=Q8,getContainer:r=J8,top:l,bottom:i,closeIcon:a=eE,appContext:s}=e;const{getPrefixCls:c}=roe(),u=c("notification",n||dm),d=`${u}-${o}-${fm}`,f=Xl[d];if(f){Promise.resolve(f).then(v=>{t(v)});return}const g=ie(`${u}-${o}`,{[`${u}-rtl`]:fm===!0});R8.newInstance({name:"notification",prefixCls:n||dm,useStyle:G8,class:g,style:X8(o,l??q8,i??Z8),appContext:s,getContainer:r,closeIcon:v=>{let{prefixCls:h}=v;return p("span",{class:`${h}-close-x`},[Xi(a,{},p(Zn,{class:`${h}-close-icon`},null))])},maxCount:tE,hasTransitionName:!0},v=>{Xl[d]=v,t(v)})}const Gne={success:vT,info:bT,error:yT,warning:mT};function Xne(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=e.duration===void 0?Y8:e.duration;Kne(e,a=>{a.notice({content:s=>{let{prefixCls:c}=s;const u=`${c}-notice`;let d=null;if(t)d=()=>p("span",{class:`${u}-icon`},[Xi(t)]);else if(n){const f=Gne[n];d=()=>p(f,{class:`${u}-icon ${u}-icon-${n}`},null)}return p("div",{class:d?`${u}-with-icon`:""},[d&&d(),p("div",{class:`${u}-message`},[!o&&d?p("span",{class:`${u}-message-single-line-auto-margin`},null):null,Xi(r)]),p("div",{class:`${u}-description`},[Xi(o)]),l?p("span",{class:`${u}-btn`},[Xi(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const _a={open:Xne,close(e){Object.keys(Xl).forEach(t=>Promise.resolve(Xl[t]).then(n=>{n.removeNotice(e)}))},config:Vne,destroy(){Object.keys(Xl).forEach(e=>{Promise.resolve(Xl[e]).then(t=>{t.destroy()}),delete Xl[e]})}},Une=["success","info","warning","error"];Une.forEach(e=>{_a[e]=t=>_a.open(m(m({},t),{type:e}))});_a.warn=_a.warning;_a.useNotification=U8;const Ly=_a,Yne=`-ant-${Date.now()}-${Math.random()}`;function qne(e,t){const n={},o=(i,a)=>{let s=i.clone();return s=(a==null?void 0:a(s))||s,s.toRgbString()},r=(i,a)=>{const s=new gt(i),c=ci(s.toRgbString());n[`${a}-color`]=o(s),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){r(t.primaryColor,"primary");const i=new gt(t.primaryColor),a=ci(i.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=o(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=o(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=o(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=o(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=o(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new gt(a[0]);n["primary-color-active-deprecated-f-30"]=o(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(s,c=>c.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` -`)} - } - `.trim()}function Zne(e,t){const n=qne(e,t);Mn()?ec(n,`${Yne}-dynamic-theme`):It()}const Qne=e=>{const[t,n]=Fr();return Dd(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:m(m({},yi()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},Jne=Qne;function eoe(e,t){const n=P(()=>(e==null?void 0:e.value)||{}),o=P(()=>n.value.inherit===!1||!(t!=null&&t.value)?EP:t.value);return P(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const l=m({},o.value.components);return Object.keys(e.value.components||{}).forEach(i=>{l[i]=m(m({},l[i]),e.value.components[i])}),m(m(m({},o.value),n.value),{token:m(m({},o.value.token),n.value.token),components:l})})}var toe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{m(vn,ky),vn.prefixCls=ha(),vn.iconPrefixCls=nE(),vn.getPrefixCls=(e,t)=>t||(e?`${vn.prefixCls}-${e}`:vn.prefixCls),vn.getRootPrefixCls=()=>vn.prefixCls?vn.prefixCls:ha()});let Sh;const ooe=e=>{Sh&&Sh(),Sh=ke(()=>{m(ky,ut(e)),m(vn,ut(e))}),e.theme&&Zne(ha(),e.theme)},roe=()=>({getPrefixCls:(e,t)=>t||(e?`${ha()}-${e}`:ha()),getIconPrefixCls:nE,getRootPrefixCls:()=>vn.prefixCls?vn.prefixCls:ha()}),Ns=oe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:cD(),setup(e,t){let{slots:n}=t;const o=Xf(),r=(M,B)=>{const{prefixCls:N="ant"}=e;if(B)return B;const F=N||o.getPrefixCls("");return M?`${F}-${M}`:F},l=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||h0),i=P(()=>l.value!==o.iconPrefixCls.value),a=P(()=>{var M;return e.csp||((M=o.csp)===null||M===void 0?void 0:M.value)}),s=Jne(l),c=eoe(P(()=>e.theme),P(()=>{var M;return(M=o.theme)===null||M===void 0?void 0:M.value})),u=M=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||wB)(M),d=P(()=>{var M,B;return(M=e.autoInsertSpaceInButton)!==null&&M!==void 0?M:(B=o.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),f=P(()=>{var M;return e.locale||((M=o.locale)===null||M===void 0?void 0:M.value)});be(f,()=>{ky.locale=f.value},{immediate:!0});const g=P(()=>{var M;return e.direction||((M=o.direction)===null||M===void 0?void 0:M.value)}),v=P(()=>{var M,B;return(M=e.space)!==null&&M!==void 0?M:(B=o.space)===null||B===void 0?void 0:B.value}),h=P(()=>{var M,B;return(M=e.virtual)!==null&&M!==void 0?M:(B=o.virtual)===null||B===void 0?void 0:B.value}),b=P(()=>{var M,B;return(M=e.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(B=o.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=P(()=>{var M;return e.getTargetContainer!==void 0?e.getTargetContainer:(M=o.getTargetContainer)===null||M===void 0?void 0:M.value}),S=P(()=>{var M;return e.getPopupContainer!==void 0?e.getPopupContainer:(M=o.getPopupContainer)===null||M===void 0?void 0:M.value}),$=P(()=>{var M;return e.pageHeader!==void 0?e.pageHeader:(M=o.pageHeader)===null||M===void 0?void 0:M.value}),x=P(()=>{var M;return e.input!==void 0?e.input:(M=o.input)===null||M===void 0?void 0:M.value}),C=P(()=>{var M;return e.pagination!==void 0?e.pagination:(M=o.pagination)===null||M===void 0?void 0:M.value}),O=P(()=>{var M;return e.form!==void 0?e.form:(M=o.form)===null||M===void 0?void 0:M.value}),w=P(()=>{var M;return e.select!==void 0?e.select:(M=o.select)===null||M===void 0?void 0:M.value}),I=P(()=>e.componentSize),T=P(()=>e.componentDisabled),_=P(()=>{var M,B;return(M=e.wave)!==null&&M!==void 0?M:(B=o.wave)===null||B===void 0?void 0:B.value}),E={csp:a,autoInsertSpaceInButton:d,locale:f,direction:g,space:v,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:l,theme:P(()=>{var M,B;return(M=c.value)!==null&&M!==void 0?M:(B=o.theme)===null||B===void 0?void 0:B.value}),renderEmpty:u,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:I,componentDisabled:T,transformCellText:P(()=>e.transformCellText),wave:_},A=P(()=>{const M=c.value||{},{algorithm:B,token:N}=M,F=toe(M,["algorithm","token"]),L=B&&(!Array.isArray(B)||B.length>0)?S0(B):void 0;return m(m({},F),{theme:L,token:m(m({},Qf),N)})}),R=P(()=>{var M,B;let N={};return f.value&&(N=((M=f.value.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||((B=jn.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(N=m(m({},N),e.form.validateMessages)),N});uD(E),aD({validateMessages:R}),NP(I),eP(T);const z=M=>{var B,N;let F=i.value?s((B=n.default)===null||B===void 0?void 0:B.call(n)):(N=n.default)===null||N===void 0?void 0:N.call(n);if(e.theme){const L=function(){return F}();F=p(bB,{value:A.value},{default:()=>[L]})}return p(_8,{locale:f.value||M,ANT_MARK__:cm},{default:()=>[F]})};return ke(()=>{g.value&&(ga.config({rtl:g.value==="rtl"}),Ly.config({rtl:g.value==="rtl"}))}),()=>p(bi,{children:(M,B,N)=>z(N)},null)}});Ns.config=ooe;Ns.install=function(e){e.component(Ns.name,Ns)};const zy=Ns,loe=(e,t)=>{let{attrs:n,slots:o}=t;return p(zt,D(D({size:"small",type:"primary"},e),n),o)},ioe=loe,xu=(e,t,n)=>{const o=MR(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aoe=e=>Bd(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:l,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),soe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,l=o-n,i=t-n;return{[r]:m(m({},Xe(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-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(${r}-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}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},oE=Ve("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,l=Math.round(t*n),i=e.fontSizeSM,a=l-o*2,s=e.colorFillAlter,c=e.colorText,u=Fe(e,{tagFontSize:i,tagLineHeight:a,tagDefaultBg:s,tagDefaultColor:c,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[soe(u),aoe(u),xu(u,"success","Success"),xu(u,"processing","Info"),xu(u,"error","Error"),xu(u,"warning","Warning")]}),coe=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),uoe=oe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:coe(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l}=Te("tag",e),[i,a]=oE(l),s=u=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",u)},c=P(()=>ie(l.value,a.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:e.checked}));return()=>{var u;return i(p("span",D(D({},r),{},{class:[c.value,r.class],onClick:s}),[(u=n.default)===null||u===void 0?void 0:u.call(n)]))}}}),mf=uoe,doe=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:V.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:si(),"onUpdate:visible":Function,icon:V.any,bordered:{type:Boolean,default:!0}}),Fs=oe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:doe(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l,direction:i}=Te("tag",e),[a,s]=oE(l),c=te(!0);ke(()=>{e.visible!==void 0&&(c.value=e.visible)});const u=v=>{v.stopPropagation(),o("update:visible",!1),o("close",v),!v.defaultPrevented&&e.visible===void 0&&(c.value=!1)},d=P(()=>Ip(e.color)||jX(e.color)),f=P(()=>ie(l.value,s.value,{[`${l.value}-${e.color}`]:d.value,[`${l.value}-has-color`]:e.color&&!d.value,[`${l.value}-hidden`]:!c.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-borderless`]:!e.bordered})),g=v=>{o("click",v)};return()=>{var v,h,b;const{icon:y=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?p("span",{class:`${l.value}-close-icon`,onClick:u},[$]):p(Zn,{class:`${l.value}-close-icon`,onClick:u},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,I=(b=n.default)===null||b===void 0?void 0:b.call(n),T=w?p(We,null,[w,p("span",null,[I])]):I,_=e.onClick!==void 0,E=p("span",D(D({},r),{},{onClick:g,class:[f.value,r.class],style:[O,r.style]}),[T,C()]);return a(_?p(kb,null,{default:()=>[E]}):E)}}});Fs.CheckableTag=mf;Fs.install=function(e){return e.component(Fs.name,Fs),e.component(mf.name,mf),e};const rE=Fs;function foe(e,t){let{slots:n,attrs:o}=t;return p(rE,D(D({color:"blue"},e),o),n)}var poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const goe=poe;function Nw(e){for(var t=1;tE.value||I.value),[z,M]=k6(C),B=le();h({focus:()=>{var J;(J=B.value)===null||J===void 0||J.focus()},blur:()=>{var J;(J=B.value)===null||J===void 0||J.blur()}});const N=J=>S.valueFormat?e.toString(J,S.valueFormat):J,F=(J,Q)=>{const K=N(J);y("update:value",K),y("change",K,Q),$.onFieldChange()},L=J=>{y("update:open",J),y("openChange",J)},k=J=>{y("focus",J)},j=J=>{y("blur",J),$.onFieldBlur()},H=(J,Q)=>{const K=N(J);y("panelChange",K,Q)},Y=J=>{const Q=N(J);y("ok",Q)},[Z]=Io("DatePicker",Js),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),ee=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),G=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var J,Q,K,q,pe,W;const X=m(m({},Z.value),S.locale),ne=m(m({},S),b),{bordered:ae=!0,placeholder:se,suffixIcon:re=(J=v.suffixIcon)===null||J===void 0?void 0:J.call(v),showToday:de=!0,transitionName:ge,allowClear:me=!0,dateRender:fe=v.dateRender,renderExtraFooter:ye=v.renderExtraFooter,monthCellRender:Se=v.monthCellRender||S.monthCellContentRender||v.monthCellContentRender,clearIcon:ue=(Q=v.clearIcon)===null||Q===void 0?void 0:Q.call(v),id:ce=$.id.value}=ne,he=$oe(ne,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),Pe=ne.showTime===""?!0:ne.showTime,{format:Ie}=ne;let Ae={};c&&(Ae.picker=c);const $e=c||ne.picker||"date";Ae=m(m(m({},Ae),Pe?yf(m({format:Ie,picker:$e},typeof Pe=="object"?Pe:{})):{}),$e==="time"?yf(m(m({format:Ie},he),{picker:$e})):{});const xe=C.value,we=p(We,null,[re||p(c==="time"?iE:lE,null,null),x.hasFeedback&&x.feedbackIcon]);return z(p(Fq,D(D(D({monthCellRender:Se,dateRender:fe,renderExtraFooter:ye,ref:B,placeholder:yoe(X,$e,se),suffixIcon:we,dropdownAlign:aE(O.value,S.placement),clearIcon:ue||p(Qn,null,null),allowClear:me,transitionName:ge||`${T.value}-slide-up`},he),Ae),{},{id:ce,picker:$e,value:U.value,defaultValue:ee.value,defaultPickerValue:G.value,showToday:de,locale:X.lang,class:ie({[`${xe}-${R.value}`]:R.value,[`${xe}-borderless`]:!ae},Tn(xe,Ko(x.status,S.status),x.hasFeedback),b.class,M.value,A.value),disabled:_.value,prefixCls:xe,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((K=v.prevIcon)===null||K===void 0?void 0:K.call(v))||p("span",{class:`${xe}-prev-icon`},null),nextIcon:((q=v.nextIcon)===null||q===void 0?void 0:q.call(v))||p("span",{class:`${xe}-next-icon`},null),superPrevIcon:((pe=v.superPrevIcon)===null||pe===void 0?void 0:pe.call(v))||p("span",{class:`${xe}-super-prev-icon`},null),superNextIcon:((W=v.superNextIcon)===null||W===void 0?void 0:W.call(v))||p("span",{class:`${xe}-super-next-icon`},null),components:uE,direction:O.value,dropdownClassName:ie(M.value,S.popupClassName,S.dropdownClassName),onChange:F,onOpenChange:L,onFocus:k,onBlur:j,onPanelChange:H,onOk:Y}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),l=n("month","AMonthPicker"),i=n("year","AYearPicker"),a=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:l,YearPicker:i,TimePicker:a,QuarterPicker:s}}var xoe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const woe=xoe;function Lw(e){for(var t=1;tS.value||h.value),[C,O]=k6(f),w=le();l({focus:()=>{var k;(k=w.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=w.value)===null||k===void 0||k.blur()}});const I=k=>c.valueFormat?e.toString(k,c.valueFormat):k,T=(k,j)=>{const H=I(k);s("update:value",H),s("change",H,j),u.onFieldChange()},_=k=>{s("update:open",k),s("openChange",k)},E=k=>{s("focus",k)},A=k=>{s("blur",k),u.onFieldBlur()},R=(k,j)=>{const H=I(k);s("panelChange",H,j)},z=k=>{const j=I(k);s("ok",j)},M=(k,j,H)=>{const Y=I(k);s("calendarChange",Y,j,H)},[B]=Io("DatePicker",Js),N=P(()=>c.value&&c.valueFormat?e.toDate(c.value,c.valueFormat):c.value),F=P(()=>c.defaultValue&&c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue),L=P(()=>c.defaultPickerValue&&c.valueFormat?e.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue);return()=>{var k,j,H,Y,Z,U,ee;const G=m(m({},B.value),c.locale),J=m(m({},c),a),{prefixCls:Q,bordered:K=!0,placeholder:q,suffixIcon:pe=(k=i.suffixIcon)===null||k===void 0?void 0:k.call(i),picker:W="date",transitionName:X,allowClear:ne=!0,dateRender:ae=i.dateRender,renderExtraFooter:se=i.renderExtraFooter,separator:re=(j=i.separator)===null||j===void 0?void 0:j.call(i),clearIcon:de=(H=i.clearIcon)===null||H===void 0?void 0:H.call(i),id:ge=u.id.value}=J,me=Ioe(J,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete me["onUpdate:value"],delete me["onUpdate:open"];const{format:fe,showTime:ye}=J;let Se={};Se=m(m(m({},Se),ye?yf(m({format:fe,picker:W},ye)):{}),W==="time"?yf(m(m({format:fe},et(me,["disabledTime"])),{picker:W})):{});const ue=f.value,ce=p(We,null,[pe||p(W==="time"?iE:lE,null,null),d.hasFeedback&&d.feedbackIcon]);return C(p(Uq,D(D(D({dateRender:ae,renderExtraFooter:se,separator:re||p("span",{"aria-label":"to",class:`${ue}-separator`},[p(Poe,null,null)]),ref:w,dropdownAlign:aE(g.value,c.placement),placeholder:Soe(G,W,q),suffixIcon:ce,clearIcon:de||p(Qn,null,null),allowClear:ne,transitionName:X||`${b.value}-slide-up`},me),Se),{},{disabled:y.value,id:ge,value:N.value,defaultValue:F.value,defaultPickerValue:L.value,picker:W,class:ie({[`${ue}-${x.value}`]:x.value,[`${ue}-borderless`]:!K},Tn(ue,Ko(d.status,c.status),d.hasFeedback),a.class,O.value,$.value),locale:G.lang,prefixCls:ue,getPopupContainer:a.getCalendarContainer||v.value,generateConfig:e,prevIcon:((Y=i.prevIcon)===null||Y===void 0?void 0:Y.call(i))||p("span",{class:`${ue}-prev-icon`},null),nextIcon:((Z=i.nextIcon)===null||Z===void 0?void 0:Z.call(i))||p("span",{class:`${ue}-next-icon`},null),superPrevIcon:((U=i.superPrevIcon)===null||U===void 0?void 0:U.call(i))||p("span",{class:`${ue}-super-prev-icon`},null),superNextIcon:((ee=i.superNextIcon)===null||ee===void 0?void 0:ee.call(i))||p("span",{class:`${ue}-super-next-icon`},null),components:uE,direction:g.value,dropdownClassName:ie(O.value,c.popupClassName,c.dropdownClassName),onChange:T,onOpenChange:_,onFocus:E,onBlur:A,onPanelChange:R,onOk:z,onCalendarChange:M}),null))}}})}const uE={button:ioe,rangeItem:foe};function Eoe(e){return e?Array.isArray(e)?e:[e]:[]}function yf(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:l,use12Hours:i}=e,a=Eoe(t)[0],s=m({},e);return a&&typeof a=="string"&&(!a.includes("s")&&l===void 0&&(s.showSecond=!1),!a.includes("m")&&r===void 0&&(s.showMinute=!1),!a.includes("H")&&!a.includes("h")&&o===void 0&&(s.showHour=!1),(a.includes("a")||a.includes("A"))&&i===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof a=="function"&&delete s.format,{showTime:s})}function dE(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a}=Coe(e,t),s=Toe(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a,RangePicker:s}}const{DatePicker:$h,WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,TimePicker:_oe,QuarterPicker:td,RangePicker:nd}=dE(Ub),Aoe=m($h,{WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,RangePicker:nd,TimePicker:_oe,QuarterPicker:td,install:e=>(e.component($h.name,$h),e.component(nd.name,nd),e.component(ed.name,ed),e.component(Ju.name,Ju),e.component(td.name,td),e)});function wu(e){return e!=null}const Roe=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:l,bordered:i,label:a,content:s,colon:c}=e,u=n;return i?p(u,{class:[{[`${t}-item-label`]:wu(a),[`${t}-item-content`]:wu(s)}],colSpan:o},{default:()=>[wu(a)&&p("span",{style:r},[a]),wu(s)&&p("span",{style:l},[s])]}):p(u,{class:[`${t}-item`],colSpan:o},{default:()=>[p("div",{class:`${t}-item-container`},[(a||a===0)&&p("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||s===0)&&p("span",{class:`${t}-item-content`,style:l},[s])])]})},Ch=Roe,Doe=e=>{const t=(c,u,d)=>{let{colon:f,prefixCls:g,bordered:v}=u,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return c.map((C,O)=>{var w,I;const T=C.props||{},{prefixCls:_=g,span:E=1,labelStyle:A=T["label-style"],contentStyle:R=T["content-style"],label:z=(I=(w=C.children)===null||w===void 0?void 0:w.label)===null||I===void 0?void 0:I.call(w)}=T,M=Gf(C),B=nD(C),N=KO(C),{key:F}=C;return typeof h=="string"?p(Ch,{key:`${b}-${String(F)||O}`,class:B,style:N,labelStyle:m(m({},$),A),contentStyle:m(m({},x),R),span:E,colon:f,component:h,itemPrefixCls:_,bordered:v,label:y?z:null,content:S?M:null},null):[p(Ch,{key:`label-${String(F)||O}`,class:B,style:m(m(m({},$),N),A),span:1,colon:f,component:h[0],itemPrefixCls:_,bordered:v,label:z},null),p(Ch,{key:`content-${String(F)||O}`,class:B,style:m(m(m({},x),N),R),span:E*2-1,component:h[1],itemPrefixCls:_,bordered:v,content:M},null)]})},{prefixCls:n,vertical:o,row:r,index:l,bordered:i}=e,{labelStyle:a,contentStyle:s}=He(gE,{labelStyle:le({}),contentStyle:le({})});return o?p(We,null,[p("tr",{key:`label-${l}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),p("tr",{key:`content-${l}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):p("tr",{key:l,class:`${n}-row`},[t(r,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},Boe=Doe,Noe=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:l}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:l,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},Foe=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:l,descriptionsTitleMarginBottom:i}=e;return{[t]:m(m(m({},Xe(e)),Noe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:m(m({},Gt),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${l}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Loe=Ve("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,l=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,c=e.marginXXS/2,u=Fe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:r,descriptionsDefaultPadding:l,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:c});return[Foe(u)]});V.any;const koe=()=>({prefixCls:String,label:V.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),fE=oe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:koe(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),pE={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function zoe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=dt(e,{span:t}),It()),o}function Hoe(e,t){const n=yt(e),o=[];let r=[],l=t;return n.forEach((i,a)=>{var s;const c=(s=i.props)===null||s===void 0?void 0:s.span,u=c||1;if(a===n.length-1){r.push(kw(i,l,c)),o.push(r);return}u({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:V.any,extra:V.any,column:{type:[Number,Object],default:()=>pE},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),gE=Symbol("descriptionsContext"),Ki=oe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:joe(),slots:Object,Item:fE,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("descriptions",e);let i;const a=le({}),[s,c]=Loe(r),u=Rb();Ff(()=>{i=u.value.subscribe(f=>{typeof e.column=="object"&&(a.value=f)})}),Ze(()=>{u.value.unsubscribe(i)}),Ge(gE,{labelStyle:ze(e,"labelStyle"),contentStyle:ze(e,"contentStyle")});const d=P(()=>zoe(e.column,a.value));return()=>{var f,g,v;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(v=n.default)===null||v===void 0?void 0:v.call(n),O=Hoe(C,d.value);return s(p("div",D(D({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:l.value==="rtl"},o.class,c.value]}),[($||x)&&p("div",{class:`${r.value}-header`},[$&&p("div",{class:`${r.value}-title`},[$]),x&&p("div",{class:`${r.value}-extra`},[x])]),p("div",{class:`${r.value}-view`},[p("table",null,[p("tbody",null,[O.map((w,I)=>p(Boe,{key:I,index:I,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});Ki.install=function(e){return e.component(Ki.name,Ki),e.component(Ki.Item.name,Ki.Item),e};const Woe=Ki,Voe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:m(m({},Xe(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Koe=Ve("Divider",e=>{const t=Fe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Voe(t)]},{sizePaddingEdgeHorizontal:0}),Goe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),Xoe=oe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:Goe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("divider",e),[i,a]=Koe(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),c=P(()=>e.orientation==="right"&&e.orientationMargin!=null),u=P(()=>{const{type:g,dashed:v,plain:h}=e,b=r.value;return{[b]:!0,[a.value]:!!a.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!v,[`${b}-plain`]:!!h,[`${b}-rtl`]:l.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:c.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return m(m({},s.value&&{marginLeft:g}),c.value&&{marginRight:g})}),f=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const v=yt((g=n.default)===null||g===void 0?void 0:g.call(n));return i(p("div",D(D({},o),{},{class:[u.value,v.length?`${r.value}-with-text ${r.value}-with-text${f.value}`:"",o.class],role:"separator"}),[v.length?p("span",{class:`${r.value}-inner-text`,style:d.value},[v]):null]))}}}),Uoe=Tt(Xoe);rr.Button=uc;rr.install=function(e){return e.component(rr.name,rr),e.component(uc.name,uc),e};const hE=()=>({prefixCls:String,width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:Re(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:at(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ve(),maskMotion:Re()}),Yoe=()=>m(m({},hE()),{forceRender:{type:Boolean,default:void 0},getContainer:V.oneOfType([V.string,V.func,V.object,V.looseBool])}),qoe=()=>m(m({},hE()),{getContainer:Function,getOpenCount:Function,scrollLocker:V.any,inline:Boolean});function Zoe(e){return Array.isArray(e)?e:[e]}const Qoe={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(Qoe).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Joe=!(typeof window<"u"&&window.document&&window.document.createElement);var ere=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{ot(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$==null?void 0:$();v(e),S&&(O&&(O.parentNode,document.body),ot(()=>{C&&u()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),be(()=>e.level,()=>{v(e)},{flush:"post"}),be(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S==null?void 0:S();O&&(O.parentNode,document.body),y?(C&&u(),x&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),Rn(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),be(()=>e.placement,y=>{y&&(s.value=null)});const u=()=>{var y,S;(S=(y=l.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},f=y=>{y.keyCode===Oe.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},v=y=>{let{level:S,getContainer:$}=y;if(Joe)return;const x=$==null?void 0:$(),C=x?x.parentNode:null;c=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&c.push(w)}):S&&Zoe(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{c.push(w)})})},h=y=>{n("handleClick",y)},b=te(!1);return be(l,()=>{ot(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:I,levelMove:T,ease:_,duration:E,getContainer:A,onChange:R,afterVisibleChange:z,showMask:M,maskClosable:B,maskStyle:N,keyboard:F,getOpenCount:L,scrollLocker:k,contentWrapperStyle:j,style:H,class:Y,rootClassName:Z,rootStyle:U,maskMotion:ee,motion:G,inline:J}=e,Q=ere(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),K=C&&b.value,q=ie(O,{[`${O}-${w}`]:!0,[`${O}-open`]:K,[`${O}-inline`]:J,"no-mask":!M,[Z]:!0}),pe=typeof G=="function"?G(w):G;return p("div",D(D({},et(Q,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:l,onKeydown:K&&F?f:void 0}),[p(cn,ee,{default:()=>[M&&$n(p("div",{class:`${O}-mask`,onClick:B?d:void 0,style:N,ref:i},null),[[En,K]])]}),p(cn,D(D({},pe),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[$n(p("div",{class:`${O}-content-wrapper`,style:[j],ref:r},[p("div",{class:[`${O}-content`,Y],style:H,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?p("div",{onClick:h,ref:a},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[En,K]])]})])}}}),zw=tre;var Hw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=le(null),l=a=>{n("handleClick",a)},i=a=>{n("close",a)};return()=>{const{getContainer:a,wrapperClassName:s,rootClassName:c,rootStyle:u,forceRender:d}=e,f=Hw(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!a)return p(zw,D(D({},f),{},{rootClassName:c,rootStyle:u,open:e.open,onClose:i,onHandleClick:l,inline:!0}),o);const v=!!o.handler||d;return(v||e.open||r.value)&&(g=p(Ic,{autoLock:!0,visible:e.open,forceRender:v,getContainer:a,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=Hw(h,["visible","afterClose"]);return p(zw,D(D(D({ref:r},f),S),{},{rootClassName:c,rootStyle:u,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:i,onHandleClick:l}),o)}})),g}}}),ore=nre,rre=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},lre=rre,ire=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:l,motionDurationMid:i,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:g,marginSM:v,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:h,fontWeight:S,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${f} ${g}`},"&-rtl":{direction:"rtl"}}}},are=Ve("Drawer",e=>{const t=Fe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[ire(t),lre(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var sre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:V.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:Re(),rootClassName:String,rootStyle:Re(),size:{type:String},drawerStyle:Re(),headerStyle:Re(),bodyStyle:Re(),contentWrapperStyle:{type:Object,default:void 0},title:V.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),zIndex:Number,prefixCls:String,push:V.oneOfType([V.looseBool,{type:Object}]),placement:V.oneOf(cre),keyboard:{type:Boolean,default:void 0},extra:V.any,footer:V.any,footerStyle:Re(),level:V.any,levelMove:{type:[Number,Array,Function]},handle:V.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),dre=oe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:qe(ure(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:jw}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const l=te(!1),i=te(!1),a=te(null),s=te(!1),c=te(!1),u=P(()=>{var L;return(L=e.open)!==null&&L!==void 0?L:e.visible});be(u,()=>{u.value?s.value=!0:c.value=!1},{immediate:!0}),be([u,s],()=>{u.value&&s.value&&(c.value=!0)},{immediate:!0});const d=He("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:g,direction:v}=Te("drawer",e),[h,b]=are(f),y=P(()=>e.getContainer===void 0&&(g!=null&&g.value)?()=>g.value(document.body):e.getContainer);xt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Ge("parentDrawerOpts",{setPush:()=>{l.value=!0},setPull:()=>{l.value=!1,ot(()=>{x()})}}),je(()=>{u.value&&d&&d.setPush()}),Rn(()=>{d&&d.setPull()}),be(c,()=>{d&&(c.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var L,k;(k=(L=a.value)===null||L===void 0?void 0:L.domFocus)===null||k===void 0||k.call(L)},C=L=>{n("update:visible",!1),n("update:open",!1),n("close",L)},O=L=>{var k;L||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(s.value=!1)),(k=e.afterVisibleChange)===null||k===void 0||k.call(e,L),n("afterVisibleChange",L),n("afterOpenChange",L)},w=P(()=>{const{push:L,placement:k}=e;let j;return typeof L=="boolean"?j=L?jw.distance:0:j=L.distance,j=parseFloat(String(j||0)),k==="left"||k==="right"?`translateX(${k==="left"?j:-j}px)`:k==="top"||k==="bottom"?`translateY(${k==="top"?j:-j}px)`:null}),I=P(()=>{var L;return(L=e.width)!==null&&L!==void 0?L:e.size==="large"?736:378}),T=P(()=>{var L;return(L=e.height)!==null&&L!==void 0?L:e.size==="large"?736:378}),_=P(()=>{const{mask:L,placement:k}=e;if(!c.value&&!L)return{};const j={};return k==="left"||k==="right"?j.width=Jd(I.value)?`${I.value}px`:I.value:j.height=Jd(T.value)?`${T.value}px`:T.value,j}),E=P(()=>{const{zIndex:L,contentWrapperStyle:k}=e,j=_.value;return[{zIndex:L,transform:l.value?w.value:void 0},m({},k),j]}),A=L=>{const{closable:k,headerStyle:j}=e,H=qt(o,e,"extra"),Y=qt(o,e,"title");return!Y&&!k?null:p("div",{class:ie(`${L}-header`,{[`${L}-header-close-only`]:k&&!Y&&!H}),style:j},[p("div",{class:`${L}-header-title`},[R(L),Y&&p("div",{class:`${L}-title`},[Y])]),H&&p("div",{class:`${L}-extra`},[H])])},R=L=>{var k;const{closable:j}=e,H=o.closeIcon?(k=o.closeIcon)===null||k===void 0?void 0:k.call(o):e.closeIcon;return j&&p("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${L}-close`},[H===void 0?p(Zn,null,null):H])},z=L=>{var k;if(i.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:j,drawerStyle:H}=e;return p("div",{class:`${L}-wrapper-body`,style:H},[A(L),p("div",{key:"body",class:`${L}-body`,style:j},[(k=o.default)===null||k===void 0?void 0:k.call(o)]),M(L)])},M=L=>{const k=qt(o,e,"footer");if(!k)return null;const j=`${L}-footer`;return p("div",{class:j,style:e.footerStyle},[k])},B=P(()=>ie({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,b.value)),N=P(()=>Po(_n(f.value,"mask-motion"))),F=L=>Po(_n(f.value,`panel-motion-${L}`));return()=>{const{width:L,height:k,placement:j,mask:H,forceRender:Y}=e,Z=sre(e,["width","height","placement","mask","forceRender"]),U=m(m(m({},r),et(Z,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:f.value,open:c.value,showMask:H,placement:j,ref:a});return h(p(cc,null,{default:()=>[p(ore,D(D({},U),{},{maskMotion:N.value,motion:F,width:I.value,height:T.value,getContainer:y.value,rootClassName:B.value,rootStyle:e.rootStyle,contentWrapperStyle:E.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>z(f.value)})]}))}}}),fre=Tt(dre);var pre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const gre=pre;function Ww(e){for(var t=1;t({prefixCls:String,description:V.any,type:Be("default"),shape:Be("circle"),tooltip:V.any,href:String,target:String,badge:Re(),onClick:ve()}),vre=()=>({prefixCls:Be()}),mre=()=>m(m({},Ky()),{trigger:Be(),open:Ce(),onOpenChange:ve(),"onUpdate:open":ve()}),bre=()=>m(m({},Ky()),{prefixCls:String,duration:Number,target:ve(),visibilityHeight:Number,onClick:ve()}),yre=oe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:vre(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var r;const{prefixCls:l}=e,i=_t((r=o.description)===null||r===void 0?void 0:r.call(o));return p("div",D(D({},n),{},{class:[n.class,`${l}-content`]}),[o.icon||i.length?p(We,null,[o.icon&&p("div",{class:`${l}-icon`},[o.icon()]),i.length?p("div",{class:`${l}-description`},[i]):null]):p("div",{class:`${l}-icon`},[p(vE,null,null)])])}}}),Sre=yre,mE=Symbol("floatButtonGroupContext"),$re=e=>(Ge(mE,e),e),bE=()=>He(mE,{shape:le()}),Cre=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Vw=Cre,xre=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,l=`${t}-group`,i=new nt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new nt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:m({},_c(`${l}-wrap`,i,a,o,!0))},{[`${l}-wrap`]:{[` - &${l}-wrap-enter, - &${l}-wrap-appear - `]:{opacity:0,animationTimingFunction:r},[`&${l}-wrap-leave`]:{animationTimingFunction:r}}}]},wre=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:l,borderRadiusSM:i,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:m(m({},Xe(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},Ore=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:l,borderRadiusLG:i,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:m(m({},Xe(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Gy=Ve("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:l,fontSize:i,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=Fe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:a*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-c*2,floatButtonBodyPadding:c,badgeOffset:c*1.5,dotOffsetInCircle:Vw(o/2),dotOffsetInSquare:Vw(u)});return[wre(d),Ore(d),$b(e),xre(d)]});var Pre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:g="default",shape:v="circle",description:h=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:b,badge:y={}}=e,S=Pre(e,["prefixCls","type","shape","description","tooltip","badge"]),$=ie(r.value,`${r.value}-${g}`,`${r.value}-${u.value}`,{[`${r.value}-rtl`]:l.value==="rtl"},n.class,a.value),x=p(Yn,{placement:"left"},{title:o.tooltip||b?()=>o.tooltip&&o.tooltip()||b:void 0,default:()=>p(_s,y,{default:()=>[p("div",{class:`${r.value}-body`},[p(Sre,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return i(e.href?p("a",D(D(D({ref:c},n),S),{},{class:$}),[x]):p("button",D(D(D({ref:c},n),S),{},{class:$,type:"button"}),[x]))}}}),vl=Ire,Tre=oe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:qe(mre(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a,s]=Gy(l),[c,u]=Pt(!1,{value:P(()=>e.open)}),d=le(null),f=le(null);$re({shape:P(()=>e.shape)});const g={onMouseenter(){var y;u(!0),r("update:open",!0),(y=e.onOpenChange)===null||y===void 0||y.call(e,!0)},onMouseleave(){var y;u(!1),r("update:open",!1),(y=e.onOpenChange)===null||y===void 0||y.call(e,!1)}},v=P(()=>e.trigger==="hover"?g:{}),h=()=>{var y;const S=!c.value;r("update:open",S),(y=e.onOpenChange)===null||y===void 0||y.call(e,S),u(S)},b=y=>{var S,$,x;if(!((S=d.value)===null||S===void 0)&&S.contains(y.target)){!(($=Hn(f.value))===null||$===void 0)&&$.contains(y.target)&&h();return}u(!1),r("update:open",!1),(x=e.onOpenChange)===null||x===void 0||x.call(e,!1)};return be(P(()=>e.trigger),y=>{Mn()&&(document.removeEventListener("click",b),y==="click"&&document.addEventListener("click",b))},{immediate:!0}),Ze(()=>{document.removeEventListener("click",b)}),()=>{var y;const{shape:S="circle",type:$="default",tooltip:x,description:C,trigger:O}=e,w=`${l.value}-group`,I=ie(w,s.value,n.class,{[`${w}-rtl`]:i.value==="rtl",[`${w}-${S}`]:S,[`${w}-${S}-shadow`]:!O}),T=ie(s.value,`${w}-wrap`),_=Po(`${w}-wrap`);return a(p("div",D(D({ref:d},n),{},{class:I},v.value),[O&&["click","hover"].includes(O)?p(We,null,[p(cn,_,{default:()=>[$n(p("div",{class:T},[o.default&&o.default()]),[[En,c.value]])]}),p(vl,{ref:f,type:$,shape:S,tooltip:x,description:C},{icon:()=>{var E,A;return c.value?((E=o.closeIcon)===null||E===void 0?void 0:E.call(o))||p(Zn,null,null):((A=o.icon)===null||A===void 0?void 0:A.call(o))||p(vE,null,null)},tooltip:o.tooltip,description:o.description})]):(y=o.default)===null||y===void 0?void 0:y.call(o)]))}}}),Sf=Tre;var Ere={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const Mre=Ere;function Kw(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a]=Gy(l),s=le(),c=ut({visible:e.visibilityHeight===0,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=b=>{const{target:y=u,duration:S}=e;I0(0,{getContainer:y,duration:S}),r("click",b)},f=pv(b=>{const{visibilityHeight:y}=e,S=P0(b.target,!0);c.visible=S>=y}),g=()=>{const{target:b}=e,S=(b||u)();f({target:S}),S==null||S.addEventListener("scroll",f)},v=()=>{const{target:b}=e,S=(b||u)();f.cancel(),S==null||S.removeEventListener("scroll",f)};be(()=>e.target,()=>{v(),ot(()=>{g()})}),je(()=>{ot(()=>{g()})}),Bf(()=>{ot(()=>{g()})}),k3(()=>{v()}),Ze(()=>{v()});const h=bE();return()=>{const{description:b,type:y,shape:S,tooltip:$,badge:x}=e,C=m(m({},o),{shape:(h==null?void 0:h.shape.value)||S,onClick:d,class:{[`${l.value}`]:!0,[`${o.class}`]:o.class,[`${l.value}-rtl`]:i.value==="rtl"},description:b,type:y,tooltip:$,badge:x}),O=Po("fade");return a(p(cn,O,{default:()=>[$n(p(vl,D(D({},C),{},{ref:s}),{icon:()=>{var w;return((w=n.icon)===null||w===void 0?void 0:w.call(n))||p(Are,null,null)}}),[[En,c.visible]])]}))}}}),$f=Rre;vl.Group=Sf;vl.BackTop=$f;vl.install=function(e){return e.component(vl.name,vl),e.component(Sf.name,Sf),e.component($f.name,$f),e};const Ls=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function Yy(e){return Ls(e.prefix)||Ls(e.suffix)||Ls(e.allowClear)}function od(e){return Ls(e.addonBefore)||Ls(e.addonAfter)}function pm(e){return typeof e>"u"||e===null?"":String(e)}function ks(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const l=e.cloneNode(!0);r.target=l,r.currentTarget=l,l.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function yE(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const Dre=()=>({addonBefore:V.any,addonAfter:V.any,prefix:V.any,suffix:V.any,clearIcon:V.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),SE=()=>m(m({},Dre()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:V.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),$E=()=>m(m({},SE()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Be("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Bre=oe({name:"BaseInput",inheritAttrs:!1,props:SE(),setup(e,t){let{slots:n,attrs:o}=t;const r=le(),l=a=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(a.target)){const{triggerFocus:c}=e;c==null||c()}},i=()=>{var a;const{allowClear:s,value:c,disabled:u,readonly:d,handleReset:f,suffix:g=n.suffix,prefixCls:v}=e;if(!s)return null;const h=!u&&!d&&c,b=`${v}-clear-icon`,y=((a=n.clearIcon)===null||a===void 0?void 0:a.call(n))||"*";return p("span",{onClick:f,onMousedown:S=>S.preventDefault(),class:ie({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var a,s;const{focused:c,value:u,disabled:d,allowClear:f,readonly:g,hidden:v,prefixCls:h,prefix:b=(a=n.prefix)===null||a===void 0?void 0:a.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let I=dt(x,{value:u,hidden:v});if(Yy({prefix:b,suffix:y,allowClear:f})){const T=`${h}-affix-wrapper`,_=ie(T,{[`${T}-disabled`]:d,[`${T}-focused`]:c,[`${T}-readonly`]:g,[`${T}-input-with-clear-btn`]:y&&f&&u},!od({addonAfter:S,addonBefore:$})&&o.class,C),E=(y||f)&&p("span",{class:`${h}-suffix`},[i(),y]);I=p("span",{class:_,style:o.style,hidden:!od({addonAfter:S,addonBefore:$})&&v,onMousedown:l,ref:r},[b&&p("span",{class:`${h}-prefix`},[b]),dt(x,{style:null,value:u,hidden:null}),E])}if(od({addonAfter:S,addonBefore:$})){const T=`${h}-group`,_=`${T}-addon`,E=ie(`${h}-wrapper`,T,O),A=ie(`${h}-group-wrapper`,o.class,w);return p("span",{class:A,style:o.style,hidden:v},[p("span",{class:E},[$&&p("span",{class:_},[$]),dt(I,{style:null,hidden:null}),S&&p("span",{class:_},[S])])])}return I}}});var Nre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{i.value=e.value}),be(()=>e.disabled,()=>{e.disabled&&(a.value=!1)});const u=w=>{s.value&&yE(s.value.input,w)},d=()=>{var w;(w=s.value.input)===null||w===void 0||w.blur()},f=(w,I,T)=>{var _;(_=s.value.input)===null||_===void 0||_.setSelectionRange(w,I,T)},g=()=>{var w;(w=s.value.input)===null||w===void 0||w.select()};r({focus:u,blur:d,input:P(()=>{var w;return(w=s.value.input)===null||w===void 0?void 0:w.input}),stateValue:i,setSelectionRange:f,select:g});const v=w=>{l("change",w)},h=(w,I)=>{i.value!==w&&(e.value===void 0?i.value=w:ot(()=>{var T;s.value.input.value!==i.value&&((T=c.value)===null||T===void 0||T.$forceUpdate())}),ot(()=>{I&&I()}))},b=w=>{const{value:I}=w.target;if(i.value===I)return;const T=w.target.value;ks(s.value.input,w,v),h(T)},y=w=>{w.keyCode===13&&l("pressEnter",w),l("keydown",w)},S=w=>{a.value=!0,l("focus",w)},$=w=>{a.value=!1,l("blur",w)},x=w=>{ks(s.value.input,w,v),h("",()=>{u()})},C=()=>{var w,I;const{addonBefore:T=n.addonBefore,addonAfter:_=n.addonAfter,disabled:E,valueModifiers:A={},htmlSize:R,autocomplete:z,prefixCls:M,inputClassName:B,prefix:N=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:F=(I=n.suffix)===null||I===void 0?void 0:I.call(n),allowClear:L,type:k="text"}=e,j=et(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=m(m(m({},j),o),{autocomplete:z,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:ie(M,{[`${M}-disabled`]:E},B,!od({addonAfter:_,addonBefore:T})&&!Yy({prefix:N,suffix:F,allowClear:L})&&o.class),ref:s,key:"ant-input",size:R,type:k,lazy:e.lazy});return A.lazy&&delete H.onInput,H.autofocus||delete H.autofocus,p(Na,et(H,["size"]),null)},O=()=>{var w;const{maxlength:I,suffix:T=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:_,prefixCls:E}=e,A=Number(I)>0;if(T||_){const R=[...pm(i.value)].length,z=typeof _=="object"?_.formatter({count:R,maxlength:I}):`${R}${A?` / ${I}`:""}`;return p(We,null,[!!_&&p("span",{class:ie(`${E}-show-count-suffix`,{[`${E}-show-count-has-suffix`]:!!T})},[z]),T])}return null};return je(()=>{}),()=>{const{prefixCls:w,disabled:I}=e,T=Nre(e,["prefixCls","disabled"]);return p(Bre,D(D(D({},T),o),{},{ref:c,prefixCls:w,inputElement:C(),handleReset:x,value:pm(i.value),focused:a.value,triggerFocus:u,suffix:O(),disabled:I}),n)}}}),CE=()=>et($E(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),qy=CE,xE=()=>m(m({},et(CE(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:si(),onCompositionend:si(),valueModifiers:Object});var Lre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKo(s.status,e.status)),{direction:u,prefixCls:d,size:f,autocomplete:g}=Te("input",e),{compactSize:v,compactItemClassnames:h}=Ol(d,u),b=P(()=>v.value||f.value),[y,S]=yy(d),$=qn();r({focus:R=>{var z;(z=i.value)===null||z===void 0||z.focus(R)},blur:()=>{var R;(R=i.value)===null||R===void 0||R.blur()},input:i,setSelectionRange:(R,z,M)=>{var B;(B=i.value)===null||B===void 0||B.setSelectionRange(R,z,M)},select:()=>{var R;(R=i.value)===null||R===void 0||R.select()}});const I=le([]),T=()=>{I.value.push(setTimeout(()=>{var R,z,M,B;!((R=i.value)===null||R===void 0)&&R.input&&((z=i.value)===null||z===void 0?void 0:z.input.getAttribute("type"))==="password"&&(!((M=i.value)===null||M===void 0)&&M.input.hasAttribute("value"))&&((B=i.value)===null||B===void 0||B.input.removeAttribute("value"))}))};je(()=>{T()}),Lf(()=>{I.value.forEach(R=>clearTimeout(R))}),Ze(()=>{I.value.forEach(R=>clearTimeout(R))});const _=R=>{T(),l("blur",R),a.onFieldBlur()},E=R=>{T(),l("focus",R)},A=R=>{l("update:value",R.target.value),l("change",R),l("input",R),a.onFieldChange()};return()=>{var R,z,M,B,N,F;const{hasFeedback:L,feedbackIcon:k}=s,{allowClear:j,bordered:H=!0,prefix:Y=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:Z=(z=n.suffix)===null||z===void 0?void 0:z.call(n),addonAfter:U=(M=n.addonAfter)===null||M===void 0?void 0:M.call(n),addonBefore:ee=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:G=(N=a.id)===null||N===void 0?void 0:N.value}=e,J=Lre(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Q=(L||Z)&&p(We,null,[Z,L&&k]),K=d.value,q=Yy({prefix:Y,suffix:Z})||!!L,pe=n.clearIcon||(()=>p(Qn,null,null));return y(p(Fre,D(D(D({},o),et(J,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:G,disabled:(F=e.disabled)!==null&&F!==void 0?F:$.value,ref:i,prefixCls:K,autocomplete:g.value,onBlur:_,onFocus:E,prefix:Y,suffix:Q,allowClear:j,addonAfter:U&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[U]})]}),addonBefore:ee&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[ee]})]}),class:[o.class,h.value],inputClassName:ie({[`${K}-sm`]:b.value==="small",[`${K}-lg`]:b.value==="large",[`${K}-rtl`]:u.value==="rtl",[`${K}-borderless`]:!H},!q&&Tn(K,c.value),S.value),affixWrapperClassName:ie({[`${K}-affix-wrapper-sm`]:b.value==="small",[`${K}-affix-wrapper-lg`]:b.value==="large",[`${K}-affix-wrapper-rtl`]:u.value==="rtl",[`${K}-affix-wrapper-borderless`]:!H},Tn(`${K}-affix-wrapper`,c.value,L),S.value),wrapperClassName:ie({[`${K}-group-rtl`]:u.value==="rtl"},S.value),groupClassName:ie({[`${K}-group-wrapper-sm`]:b.value==="small",[`${K}-group-wrapper-lg`]:b.value==="large",[`${K}-group-wrapper-rtl`]:u.value==="rtl"},Tn(`${K}-group-wrapper`,c.value,L),S.value)}),m(m({},n),{clearIcon:pe})))}}}),wE=oe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,getPrefixCls:i}=Te("input-group",e),a=un.useInject();un.useProvide(a,{isFormItemInput:!1});const s=P(()=>i("input")),[c,u]=yy(s),d=P(()=>{const f=r.value;return{[`${f}`]:!0,[u.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:l.value==="rtl"}});return()=>{var f;return c(p("span",D(D({},o),{},{class:ie(d.value,o.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var kre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=i.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=i.value)===null||C===void 0||C.blur()}});const u=C=>{l("update:value",C.target.value),C&&C.target&&C.type==="click"&&l("search",C.target.value,C),l("change",C)},d=C=>{var O;document.activeElement===((O=i.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},f=C=>{var O,w;l("search",(w=(O=i.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{a.value||e.loading||f(C)},v=C=>{a.value=!0,l("compositionstart",C)},h=C=>{a.value=!1,l("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Te("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,I;const{disabled:T,loading:_,addonAfter:E=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:A=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,R=kre(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:z=(I=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&I!==void 0?I:!1}=e;z=z||z==="";const M=typeof z=="boolean"?p(mp,null,null):null,B=`${b.value}-button`,N=Array.isArray(z)?z[0]:z;let F;const L=N.type&&mb(N.type)&&N.type.__ANT_BUTTON;if(L||N.tagName==="button")F=dt(N,m({onMousedown:d,onClick:f,key:"enterButton"},L?{class:B,size:$.value}:{}),!1);else{const j=M&&!z;F=p(zt,{class:B,type:z?"primary":void 0,size:$.value,disabled:T,key:"enterButton",onMousedown:d,onClick:f,loading:_,icon:j?M:null},{default:()=>[j?null:M||z]})}E&&(F=[F,E]);const k=ie(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!z},o.class);return p(tn,D(D(D({ref:i},et(R,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:F,suffix:A,onChange:u,class:k,disabled:T}),n)}}}),Gw=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function zre(e){return Gw(e.addonBefore)||Gw(e.addonAfter)}const Hre=["text","input"],jre=oe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:V.oneOf(Cn("text","input")),value:St(),defaultValue:St(),allowClear:{type:Boolean,default:void 0},element:St(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:St(),prefix:St(),addonBefore:St(),addonAfter:St(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=un.useInject(),l=a=>{const{value:s,disabled:c,readonly:u,handleReset:d,suffix:f=n.suffix}=e,g=!c&&!u&&s,v=`${a}-clear-icon`;return p(Qn,{onClick:d,onMousedown:h=>h.preventDefault(),class:ie({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},i=(a,s)=>{const{value:c,allowClear:u,direction:d,bordered:f,hidden:g,status:v,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!u)return dt(s,{value:c,disabled:e.disabled});const x=ie(`${a}-affix-wrapper`,`${a}-affix-wrapper-textarea-with-clear-btn`,Tn(`${a}-affix-wrapper`,Ko(S,v),$),{[`${a}-affix-wrapper-rtl`]:d==="rtl",[`${a}-affix-wrapper-borderless`]:!f,[`${o.class}`]:!zre({addonAfter:h,addonBefore:b})&&o.class},y);return p("span",{class:x,style:o.style,hidden:g},[dt(s,{style:null,value:c,disabled:e.disabled}),l(a)])};return()=>{var a;const{prefixCls:s,inputType:c,element:u=(a=n.element)===null||a===void 0?void 0:a.call(n)}=e;return c===Hre[0]?i(s,u):null}}}),Wre=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,Vre=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xh={};let mo;function Kre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xh[n])return xh[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:Vre.map(c=>`${c}:${o.getPropertyValue(c)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(xh[n]=s),s}function Gre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;mo||(mo=document.createElement("textarea"),mo.setAttribute("tab-index","-1"),mo.setAttribute("aria-hidden","true"),document.body.appendChild(mo)),e.getAttribute("wrap")?mo.setAttribute("wrap",e.getAttribute("wrap")):mo.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=Kre(e,t);mo.setAttribute("style",`${a};${Wre}`),mo.value=e.value||e.placeholder||"";let s,c,u,d=mo.scrollHeight;if(i==="border-box"?d+=l:i==="content-box"&&(d-=r),n!==null||o!==null){mo.value=" ";const g=mo.scrollHeight-r;n!==null&&(s=g*n,i==="border-box"&&(s=s+r+l),d=Math.max(s,d)),o!==null&&(c=g*o,i==="border-box"&&(c=c+r+l),u=d>c?"":"hidden",d=Math.min(c,d))}const f={height:`${d}px`,overflowY:u,resize:"none"};return s&&(f.minHeight=`${s}px`),c&&(f.maxHeight=`${c}px`),f}const wh=0,Oh=1,Ph=2,Xre=oe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,l,i;const a=le(),s=le({}),c=le(Ph);Ze(()=>{Ye.cancel(l),Ye.cancel(i)});const u=()=>{try{if(a.value&&document.activeElement===a.value.input){const O=a.value.getSelectionStart(),w=a.value.getSelectionEnd(),I=a.value.getScrollTop();a.value.setSelectionRange(O,w),a.value.setScrollTop(I)}}catch{}},d=le(),f=le();ke(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,f.value=O.maxRows):(d.value=void 0,f.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),v=()=>{c.value=wh};be([()=>e.value,d,f,g],()=>{g.value&&v()},{immediate:!0});const h=le();be([c,a],()=>{if(a.value)if(c.value===wh)c.value=Oh;else if(c.value===Oh){const O=Gre(a.value.input,!1,d.value,f.value);c.value=Ph,h.value=O}else u()},{immediate:!0,flush:"post"});const b=pn(),y=le(),S=()=>{Ye.cancel(y.value)},$=O=>{c.value===Ph&&(o("resize",O),g.value&&(S(),y.value=Ye(()=>{v()})))};Ze(()=>{S()}),r({resizeTextarea:()=>{v()},textArea:P(()=>{var O;return(O=a.value)===null||O===void 0?void 0:O.input}),instance:b}),It(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,I=et(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=ie(O,n.class,{[`${O}-disabled`]:w}),_=g.value?h.value:null,E=[n.style,s.value,_],A=m(m(m({},I),n),{style:E,class:T});return(c.value===wh||c.value===Oh)&&E.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p(xo,{onResize:$,disabled:!g.value},{default:()=>[p(Na,D(D({},A),{},{ref:a,tag:"textarea"}),null)]})};return()=>C()}}),Ure=Xre;function PE(e,t){return[...e||""].slice(0,t).join("")}function Xw(e,t,n,o){let r=n;return e?r=PE(n,o):[...t||""].lengtho&&(r=t),r}const Zy=oe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;var l;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),c=te((l=e.value)!==null&&l!==void 0?l:e.defaultValue),u=te(),d=te(""),{prefixCls:f,size:g,direction:v}=Te("input",e),[h,b]=yy(f),y=qn(),S=P(()=>e.showCount===""||e.showCount||!1),$=P(()=>Number(e.maxlength)>0),x=te(!1),C=te(),O=te(0),w=L=>{x.value=!0,C.value=d.value,O.value=L.currentTarget.selectionStart,r("compositionstart",L)},I=L=>{var k;x.value=!1;let j=L.currentTarget.value;if($.value){const H=O.value>=e.maxlength+1||O.value===((k=C.value)===null||k===void 0?void 0:k.length);j=Xw(H,C.value,j,e.maxlength)}j!==d.value&&(A(j),ks(L.currentTarget,L,M,j)),r("compositionend",L)},T=pn();be(()=>e.value,()=>{var L;"value"in T.vnode.props,c.value=(L=e.value)!==null&&L!==void 0?L:""});const _=L=>{var k;yE((k=u.value)===null||k===void 0?void 0:k.textArea,L)},E=()=>{var L,k;(k=(L=u.value)===null||L===void 0?void 0:L.textArea)===null||k===void 0||k.blur()},A=(L,k)=>{c.value!==L&&(e.value===void 0?c.value=L:ot(()=>{var j,H,Y;u.value.textArea.value!==d.value&&((Y=(j=u.value)===null||j===void 0?void 0:(H=j.instance).update)===null||Y===void 0||Y.call(H))}),ot(()=>{k&&k()}))},R=L=>{L.keyCode===13&&r("pressEnter",L),r("keydown",L)},z=L=>{const{onBlur:k}=e;k==null||k(L),i.onFieldBlur()},M=L=>{r("update:value",L.target.value),r("change",L),r("input",L),i.onFieldChange()},B=L=>{ks(u.value.textArea,L,M),A("",()=>{_()})},N=L=>{let k=L.target.value;if(c.value!==k){if($.value){const j=L.target,H=j.selectionStart>=e.maxlength+1||j.selectionStart===k.length||!j.selectionStart;k=Xw(H,d.value,k,e.maxlength)}ks(L.currentTarget,L,M,k),A(k)}},F=()=>{var L,k;const{class:j}=n,{bordered:H=!0}=e,Y=m(m(m({},et(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!H,[`${j}`]:j&&!S.value,[`${f.value}-sm`]:g.value==="small",[`${f.value}-lg`]:g.value==="large"},Tn(f.value,s.value),b.value],disabled:y.value,showCount:null,prefixCls:f.value,onInput:N,onChange:N,onBlur:z,onKeydown:R,onCompositionstart:w,onCompositionend:I});return!((L=e.valueModifiers)===null||L===void 0)&&L.lazy&&delete Y.onInput,p(Ure,D(D({},Y),{},{id:(k=Y==null?void 0:Y.id)!==null&&k!==void 0?k:i.id.value,ref:u,maxlength:e.maxlength,lazy:e.lazy}),null)};return o({focus:_,blur:E,resizableTextArea:u}),ke(()=>{let L=pm(c.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(L=PE(L,e.maxlength)),d.value=L}),()=>{var L;const{maxlength:k,bordered:j=!0,hidden:H}=e,{style:Y,class:Z}=n,U=m(m(m({},e),n),{prefixCls:f.value,inputType:"text",handleReset:B,direction:v.value,bordered:j,style:S.value?void 0:Y,hashId:b.value,disabled:(L=e.disabled)!==null&&L!==void 0?L:y.value});let ee=p(jre,D(D({},U),{},{value:d.value,status:e.status}),{element:F});if(S.value||a.hasFeedback){const G=[...d.value].length;let J="";typeof S.value=="object"?J=S.value.formatter({value:d.value,count:G,maxlength:k}):J=`${G}${$.value?` / ${k}`:""}`,ee=p("div",{hidden:H,class:ie(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:v.value==="rtl",[`${f.value}-textarea-show-count`]:S.value,[`${f.value}-textarea-in-form-item`]:a.isFormItemInput},`${f.value}-textarea-show-count`,Z,b.value),style:Y,"data-count":typeof J!="object"?J:void 0},[ee,a.hasFeedback&&p("span",{class:`${f.value}-textarea-suffix`},[a.feedbackIcon])])}return h(ee)}}});var Yre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const qre=Yre;function Uw(e){for(var t=1;tp(e?Jy:tle,null,null),IE=oe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:m(m({},qy()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:l}=t;const i=te(!1),a=()=>{const{disabled:b}=e;b||(i.value=!i.value,l("update:visible",i.value))};ke(()=>{e.visible!==void 0&&(i.value=!!e.visible)});const s=te();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||rle}=e,$=ole[y]||"",x=S(i.value),C={[$]:a,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return dt(Kt(x)?x:p("span",null,[x]),C)},{prefixCls:f,getPrefixCls:g}=Te("input-password",e),v=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=nle(e,["size","visibilityToggle"]),$=y&&d(f.value),x=ie(f.value,o.class,{[`${f.value}-${b}`]:!!b}),C=m(m(m({},et(S,["suffix","iconRender","action"])),o),{type:i.value?"text":"password",class:x,prefixCls:v.value,suffix:$});return b&&(C.size=b),p(tn,D({ref:s},C),n)};return()=>h()}});tn.Group=wE;tn.Search=OE;tn.TextArea=Zy;tn.Password=IE;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Group.name,tn.Group),e.component(tn.Search.name,tn.Search),e.component(tn.TextArea.name,tn.TextArea),e.component(tn.Password.name,tn.Password),e};function Gp(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:V.shape({x:Number,y:Number}).loose,title:V.any,footer:V.any,transitionName:String,maskTransitionName:String,animation:V.any,maskAnimation:V.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:V.any,maskProps:V.any,wrapProps:V.any,getContainer:V.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:V.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function qw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let Zw=-1;function lle(){return Zw+=1,Zw}function Qw(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function ile(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Qw(r),n.top+=Qw(r,!0),n}const ale={width:0,height:0,overflow:"hidden",outline:"none"},sle={outline:"none"},cle=oe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:m(m({},Gp()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le(),i=le(),a=le();n({focus:()=>{var f;(f=l.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:g}=document;f&&g===i.value?l.value.focus({preventScroll:!0}):!f&&g===l.value&&i.value.focus({preventScroll:!0})}});const s=le(),c=P(()=>{const{width:f,height:g}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),g!==void 0&&(v.height=typeof g=="number"?`${g}px`:g),s.value&&(v.transformOrigin=s.value),v}),u=()=>{ot(()=>{if(a.value){const f=ile(a.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,g,v,h;const{prefixCls:b,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClose:O,bodyStyle:w,bodyProps:I,onMousedown:T,onMouseup:_,visible:E,modalRender:A=o.modalRender,destroyOnClose:R,motionName:z}=e;let M;y&&(M=p("div",{class:`${b}-footer`},[y]));let B;S&&(B=p("div",{class:`${b}-header`},[p("div",{class:`${b}-title`,id:$},[S])]));let N;x&&(N=p("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||p("span",{class:`${b}-close-x`},null)]));const F=p("div",{class:`${b}-content`},[N,B,p("div",D({class:`${b}-body`,style:w},I),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),M]),L=Po(z);return p(cn,D(D({},L),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!R?$n(p("div",D(D({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[b,r.class],onMousedown:T,onMouseup:_}),[p("div",{tabindex:0,ref:l,style:sle},[A?A({originVNode:F}):F]),p("div",{tabindex:0,ref:i,style:ale},null)]),[[En,E]]):null]})}}}),ule=oe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:l}=e,i=Po(l);return p(cn,i,{default:()=>[$n(p("div",D({class:`${n}-mask`},r),null),[[En,o]])]})}}}),Jw=oe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:qe(m(m({},Gp()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=te(),l=te(),i=te(),a=te(e.visible),s=te(`vcDialogTitle${lle()}`),c=y=>{var S,$;if(y)rl(l.value,document.activeElement)||(r.value=document.activeElement,(S=i.value)===null||S===void 0||S.focus());else{const x=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},u=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=te(!1),f=te(),g=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:l.value===y.target&&u(y)},b=y=>{if(e.keyboard&&y.keyCode===Oe.ESC){y.stopPropagation(),u(y);return}e.visible&&y.keyCode===Oe.TAB&&i.value.changeActive(!y.shiftKey)};return be(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),Ze(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ke(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),a.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:I,wrapStyle:T,closable:_,maskProps:E,maskStyle:A,transitionName:R,animation:z,wrapProps:M,title:B=o.title}=e,{style:N,class:F}=n;return p("div",D({class:[`${y}-root`,I]},wl(e,{data:!0})),[p(ule,{prefixCls:y,visible:S&&$,motionName:qw(y,x,C),style:m({zIndex:O},A),maskProps:E},null),p("div",D({tabIndex:-1,onKeydown:b,class:ie(`${y}-wrap`,w),ref:l,onClick:h,role:"dialog","aria-labelledby":B?s.value:null,style:m(m({zIndex:O},T),{display:a.value?null:"none"})},M),[p(cle,D(D({},et(e,["scrollLocker"])),{},{style:N,class:F,onMousedown:g,onMouseup:v,ref:i,closable:_,ariaId:s.value,prefixCls:y,visible:$,onClose:u,onVisibleChanged:c,motionName:qw(y,R,z)}),o)])])}}}),dle=Gp(),fle=oe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:qe(dle,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.visible);return G0({},{inTriggerContext:!1}),be(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:l,getContainer:i,forceRender:a,destroyOnClose:s=!1,afterClose:c}=e;let u=m(m(m({},e),n),{ref:"_component",key:"dialog"});return i===!1?p(Jw,D(D({},u),{},{getOpenCount:()=>2}),o):!a&&s&&!r.value?null:p(Ic,{autoLock:!0,visible:l,forceRender:a,getContainer:i},{default:d=>(u=m(m(m({},u),d),{afterClose:()=>{c==null||c(),r.value=!1}}),p(Jw,u,o))})}}}),TE=fle;function ple(e){const t=le(null),n=ut(m({},e)),o=le([]),r=l=>{t.value===null&&(o.value=[],t.value=Ye(()=>{let i;o.value.forEach(a=>{i=m(m({},i),a)}),m(n,i),t.value=null})),o.value.push(l)};return je(()=>{t.value&&Ye.cancel(t.value)}),[n,r]}function e2(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&ro)return{[e]:t<0?l:-l};return{}}function gle(e,t,n,o){const{width:r,height:l}=rz();let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=m(m({},e2("x",n,e,r)),e2("y",o,t,l))),i}var hle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Ge(t2,e)},inject:()=>He(t2,{isPreviewGroup:te(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:le(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},vle=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),mle=oe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:vle(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?AE(e.preview,C):C}),r=ut(new Map),l=le(),i=P(()=>o.value.visible),a=P(()=>o.value.getContainer),s=(C,O)=>{var w,I;(I=(w=o.value).onVisibleChange)===null||I===void 0||I.call(w,C,O)},[c,u]=Pt(!!i.value,{value:i,onChange:s}),d=le(null),f=P(()=>i.value!==void 0),g=P(()=>Array.from(r.keys())),v=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{l.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),I},x=C=>{C==null||C.stopPropagation(),u(!1),S(null)};return be(v,C=>{y(C)},{immediate:!0,flush:"post"}),ke(()=>{c.value&&f.value&&y(v.value)},{flush:"post"}),t1.provide({isPreviewGroup:te(!0),previewUrls:h,setPreviewUrls:b,current:l,setCurrent:y,setShowPreview:u,setMousePosition:S,registerImage:$}),()=>{const C=hle(o.value,[]);return p(We,null,[n.default&&n.default(),p(ME,D(D({},C),{},{"ria-hidden":!c.value,visible:c.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(l.value),icons:e.icons,getContainer:a.value}),null)])}}}),EE=mle,Nl={x:0,y:0},ble=m(m({},Gp()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),yle=oe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:ble,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:l,zoomIn:i,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:f}=ut(e.icons),g=te(1),v=te(0),h=ut({x:1,y:1}),[b,y]=ple(Nl),S=()=>n("close"),$=te(),x=ut({originX:0,originY:0,deltaX:0,deltaY:0}),C=te(!1),O=t1.inject(),{previewUrls:w,current:I,isPreviewGroup:T,setCurrent:_}=O,E=P(()=>w.value.size),A=P(()=>Array.from(w.value.keys())),R=P(()=>A.value.indexOf(I.value)),z=P(()=>T.value?w.value.get(I.value):e.src),M=P(()=>T.value&&E.value>1),B=te({wheelDirection:0}),N=()=>{g.value=1,v.value=0,h.x=1,h.y=1,y(Nl),n("afterClose")},F=se=>{se?g.value+=.5:g.value++,y(Nl)},L=se=>{g.value>1&&(se?g.value-=.5:g.value--),y(Nl)},k=()=>{v.value+=90},j=()=>{v.value-=90},H=()=>{h.x=-h.x},Y=()=>{h.y=-h.y},Z=se=>{se.preventDefault(),se.stopPropagation(),R.value>0&&_(A.value[R.value-1])},U=se=>{se.preventDefault(),se.stopPropagation(),R.valueF(),type:"zoomIn"},{icon:a,onClick:()=>L(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:l,onClick:k,type:"rotateRight"},{icon:r,onClick:j,type:"rotateLeft"},{icon:d,onClick:H,type:"flipX"},{icon:f,onClick:Y,type:"flipY"}],K=()=>{if(e.visible&&C.value){const se=$.value.offsetWidth*g.value,re=$.value.offsetHeight*g.value,{left:de,top:ge}=jd($.value),me=v.value%180!==0;C.value=!1;const fe=gle(me?re:se,me?se:re,de,ge);fe&&y(m({},fe))}},q=se=>{se.button===0&&(se.preventDefault(),se.stopPropagation(),x.deltaX=se.pageX-b.x,x.deltaY=se.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},pe=se=>{e.visible&&C.value&&y({x:se.pageX-x.deltaX,y:se.pageY-x.deltaY})},W=se=>{if(!e.visible)return;se.preventDefault();const re=se.deltaY;B.value={wheelDirection:re}},X=se=>{!e.visible||!M.value||(se.preventDefault(),se.keyCode===Oe.LEFT?R.value>0&&_(A.value[R.value-1]):se.keyCode===Oe.RIGHT&&R.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==Nl.x||b.y!==Nl.y)&&y(Nl))};let ae=()=>{};return je(()=>{be([()=>e.visible,C],()=>{ae();let se,re;const de=Mt(window,"mouseup",K,!1),ge=Mt(window,"mousemove",pe,!1),me=Mt(window,"wheel",W,{passive:!1}),fe=Mt(window,"keydown",X,!1);try{window.top!==window.self&&(se=Mt(window.top,"mouseup",K,!1),re=Mt(window.top,"mousemove",pe,!1))}catch{}ae=()=>{de.remove(),ge.remove(),me.remove(),fe.remove(),se&&se.remove(),re&&re.remove()}},{flush:"post",immediate:!0}),be([B],()=>{const{wheelDirection:se}=B.value;se>0?L(!0):se<0&&F(!0)})}),Rn(()=>{ae()}),()=>{const{visible:se,prefixCls:re,rootClassName:de}=e;return p(TE,D(D({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:re,onClose:S,afterClose:N,visible:se,wrapClassName:ee,rootClassName:de,getContainer:e.getContainer}),{default:()=>[p("div",{class:[`${e.prefixCls}-operations-wrapper`,de]},[p("ul",{class:`${e.prefixCls}-operations`},[Q.map(ge=>{let{icon:me,onClick:fe,type:ye,disabled:Se}=ge;return p("li",{class:ie(G,{[`${e.prefixCls}-operations-operation-disabled`]:Se&&(Se==null?void 0:Se.value)}),onClick:fe,key:ye},[sn(me,{class:J})])})])]),p("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[p("img",{onMousedown:q,onDblclick:ne,ref:$,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${v.value}deg)`}},null)]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:Z},[c]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:R.value>=E.value-1}),onClick:U},[u])]})}}}),ME=yle;var Sle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:V.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),AE=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let $le=0;const RE=oe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:_E(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.prefixCls),i=P(()=>`${l.value}-preview`),a=P(()=>{const F={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?AE(e.preview,F):F}),s=P(()=>{var F;return(F=a.value.src)!==null&&F!==void 0?F:e.src}),c=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),u=P(()=>a.value.visible),d=P(()=>a.value.getContainer),f=P(()=>u.value!==void 0),g=(F,L)=>{var k,j;(j=(k=a.value).onVisibleChange)===null||j===void 0||j.call(k,F,L)},[v,h]=Pt(!!u.value,{value:u,onChange:g}),b=le(c.value?"loading":"normal");be(()=>e.src,()=>{b.value=c.value?"loading":"normal"});const y=le(null),S=P(()=>b.value==="error"),$=t1.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:I}=$,T=le($le++),_=P(()=>e.preview&&!S.value),E=()=>{b.value="normal"},A=F=>{b.value="error",r("error",F)},R=F=>{if(!f.value){const{left:L,top:k}=jd(F.target);x.value?(C(T.value),w({x:L,y:k})):y.value={x:L,y:k}}x.value?O(!0):h(!0),r("click",F)},z=()=>{h(!1),f.value||(y.value=null)},M=le(null);be(()=>M,()=>{b.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&E()});let B=()=>{};je(()=>{be([s,_],()=>{if(B(),!x.value)return()=>{};B=I(T.value,s.value,_.value),_.value||B()},{flush:"post",immediate:!0})}),Rn(()=>{B()});const N=F=>DK(F)?F+"px":F;return()=>{const{prefixCls:F,wrapperClassName:L,fallback:k,src:j,placeholder:H,wrapperStyle:Y,rootClassName:Z,width:U,height:ee,crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,class:W,style:X}=m(m({},e),n),ne=a.value,{icons:ae,maskClassName:se}=ne,re=Sle(ne,["icons","maskClassName"]),de=ie(F,L,Z,{[`${F}-error`]:S.value}),ge=S.value&&k?k:s.value,me={crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,width:U,height:ee,class:ie(`${F}-img`,{[`${F}-img-placeholder`]:H===!0},W),style:m({height:N(ee)},X)};return p(We,null,[p("div",{class:de,onClick:_.value?R:fe=>{r("click",fe)},style:m({width:N(U),height:N(ee)},Y)},[p("img",D(D(D({},me),S.value&&k?{src:k}:{onLoad:E,onError:A,src:j}),{},{ref:M}),null),b.value==="loading"&&p("div",{"aria-hidden":"true",class:`${F}-placeholder`},[H||o.placeholder&&o.placeholder()]),o.previewMask&&_.value&&p("div",{class:[`${F}-mask`,se]},[o.previewMask()])]),!x.value&&_.value&&p(ME,D(D({},re),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:i.value,onClose:z,mousePosition:y.value,src:ge,alt:Q,getContainer:d.value,icons:ae,rootClassName:Z}),null)])}}});RE.PreviewGroup=EE;const Cle=RE;var xle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const wle=xle;function n2(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:m(m({},s2("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:m(m({},s2("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$b(e)}]},jle=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:m(m({},Xe(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:m({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Rr(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Wle=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:m({},zo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Vle=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Kle=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},Gle=Ve("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=Fe(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[jle(r),Wle(r),Vle(r),DE(r),e.wireframe&&Kle(r),Ha(r,"zoom")]}),gm=e=>({position:e||"absolute",inset:0}),Xle=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new gt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:m(m({},Gt),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Ule=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new gt(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:m(m({},Xe(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Yle=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new gt(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},qle=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:m(m({},gm()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":m(m({},gm()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Ule(e),Yle(e)]}]},Zle=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:m({},Xle(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:m({},gm())}}},Qle=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ha(e,"zoom"),"&":$b(e,!0)}},BE=Ve("Image",e=>{const t=`${e.componentCls}-preview`,n=Fe(e,{previewCls:t,modalMaskBg:new gt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Zle(n),qle(n),DE(Fe(n,{componentCls:t})),Qle(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new gt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new gt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),NE={rotateLeft:p(Ple,null,null),rotateRight:p(Mle,null,null),zoomIn:p(Dle,null,null),zoomOut:p(Lle,null,null),close:p(Zn,null,null),left:p(Sl,null,null),right:p(Wo,null,null),flipX:p(a2,null,null),flipY:p(a2,{rotate:90},null)},Jle=()=>({previewPrefixCls:String,preview:St()}),eie=oe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Jle(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:l}=Te("image",e),i=P(()=>`${r.value}-preview`),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({},d),{rootClassName:s.value,transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>a(p(EE,D(D({},m(m({},n),e)),{},{preview:c.value,icons:NE,previewPrefixCls:i.value}),o))}}),FE=eie,Ul=oe({name:"AImage",inheritAttrs:!1,props:_E(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:l,configProvider:i}=Te("image",e),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({icons:NE},d),{transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>{var u,d;const f=((d=(u=i.locale)===null||u===void 0?void 0:u.value)===null||d===void 0?void 0:d.Image)||jn.Image,g=()=>p("div",{class:`${r.value}-mask-info`},[p(Jy,null,null),f==null?void 0:f.preview]),{previewMask:v=n.previewMask||g}=e;return a(p(Cle,D(D({},m(m(m({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:ie(e.rootClassName,s.value)}),m(m({},n),{previewMask:typeof v=="function"?v:null})))}}});Ul.PreviewGroup=FE;Ul.install=function(e){return e.component(Ul.name,Ul),e.component(Ul.PreviewGroup.name,Ul.PreviewGroup),e};const tie=Ul;var nie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const oie=nie;function c2(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(hm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new Yl(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":c1(this.number):this.origin}}class Qi{constructor(t){if(this.origin="",LE(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(s1(n)&&(n=Number(n)),n=typeof n=="string"?n:c1(n),u1(n)){const o=zs(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const l=r[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new Qi(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new Qi(t);const n=new Qi(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),l=n.alignDecimal(o),i=(r+l).toString(),{negativeStr:a,trimStr:s}=zs(i),c=`${a}${s.padStart(o+1,"0")}`;return new Qi(`${c.slice(0,-o)}.${c.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":zs(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Qo(e){return hm()?new Qi(e):new Yl(e)}function vm(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:l,decimalStr:i}=zs(e),a=`${t}${i}`,s=`${r}${l}`;if(n>=0){const c=Number(i[n]);if(c>=5&&!o){const u=Qo(e).add(`${r}0.${"0".repeat(n)}${10-c}`);return vm(u.toString(),t,n,o)}return n===0?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return a===".0"?s:`${s}${a}`}const iie=200,aie=600,sie=oe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ve()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=le(),l=(a,s)=>{a.preventDefault(),o("step",s);function c(){o("step",s),r.value=setTimeout(c,iie)}r.value=setTimeout(c,aie)},i=()=>{clearTimeout(r.value)};return Ze(()=>{i()}),()=>{if(U0())return null;const{prefixCls:a,upDisabled:s,downDisabled:c}=e,u=`${a}-handler`,d=ie(u,`${u}-up`,{[`${u}-up-disabled`]:s}),f=ie(u,`${u}-down`,{[`${u}-down-disabled`]:c}),g={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:v,downNode:h}=n;return p("div",{class:`${u}-wrap`},[p("span",D(D({},g),{},{onMousedown:b=>{l(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(v==null?void 0:v())||p("span",{unselectable:"on",class:`${a}-handler-up-inner`},null)]),p("span",D(D({},g),{},{onMousedown:b=>{l(b,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:f}),[(h==null?void 0:h())||p("span",{unselectable:"on",class:`${a}-handler-down-inner`},null)])])}}});function cie(e,t){const n=le(null);function o(){try{const{selectionStart:l,selectionEnd:i,value:a}=e.value,s=a.substring(0,l),c=a.substring(i);n.value={start:l,end:i,value:a,beforeTxt:s,afterTxt:c}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:l}=e.value,{beforeTxt:i,afterTxt:a,start:s}=n.value;let c=l.length;if(l.endsWith(a))c=l.length-n.value.afterTxt.length;else if(l.startsWith(i))c=i.length;else{const u=i[s-1],d=l.indexOf(u,s-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}catch(l){`${l.message}`}}return[o,r]}const uie=()=>{const e=te(0),t=()=>{Ye.cancel(e.value)};return Ze(()=>{t()}),n=>{t(),e.value=Ye(()=>{n()})}};var die=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),d2=e=>{const t=Qo(e);return t.isInvalidate()?null:t},kE=()=>({stringMode:Ce(),defaultValue:Le([String,Number]),value:Le([String,Number]),prefixCls:Be(),min:Le([String,Number]),max:Le([String,Number]),step:Le([String,Number],1),tabindex:Number,controls:Ce(!0),readonly:Ce(),disabled:Ce(),autofocus:Ce(),keyboard:Ce(!0),parser:ve(),formatter:ve(),precision:Number,decimalSeparator:String,onInput:ve(),onChange:ve(),onPressEnter:ve(),onStep:ve(),onBlur:ve(),onFocus:ve()}),fie=oe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:m(m({},kE()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const i=te(),a=te(!1),s=te(!1),c=te(!1),u=te(Qo(e.value));function d(H){e.value===void 0&&(u.value=H)}const f=(H,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(yc(H),yc(e.step))},g=H=>{const Y=String(H);if(e.parser)return e.parser(Y);let Z=Y;return e.decimalSeparator&&(Z=Z.replace(e.decimalSeparator,".")),Z.replace(/[^\w.-]+/g,"")},v=te(""),h=(H,Y)=>{if(e.formatter)return e.formatter(H,{userTyping:Y,input:String(v.value)});let Z=typeof H=="number"?c1(H):H;if(!Y){const U=f(Z,Y);if(u1(Z)&&(e.decimalSeparator||U>=0)){const ee=e.decimalSeparator||".";Z=vm(Z,ee,U)}}return Z},b=(()=>{const H=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:h(u.value.toString(),!1)})();v.value=b;function y(H,Y){v.value=h(H.isInvalidate()?H.toString(!1):H.toString(!Y),Y)}const S=P(()=>d2(e.max)),$=P(()=>d2(e.min)),x=P(()=>!S.value||!u.value||u.value.isInvalidate()?!1:S.value.lessEquals(u.value)),C=P(()=>!$.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals($.value)),[O,w]=cie(i,a),I=H=>S.value&&!H.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(H)?$.value:null,T=H=>!I(H),_=(H,Y)=>{var Z;let U=H,ee=T(U)||U.isEmpty();if(!U.isEmpty()&&!Y&&(U=I(U)||U,ee=!0),!e.readonly&&!e.disabled&&ee){const G=U.toString(),J=f(G,Y);return J>=0&&(U=Qo(vm(G,".",J))),U.equals(u.value)||(d(U),(Z=e.onChange)===null||Z===void 0||Z.call(e,U.isEmpty()?null:u2(e.stringMode,U)),e.value===void 0&&y(U,Y)),U}return u.value},E=uie(),A=H=>{var Y;if(O(),v.value=H,!c.value){const Z=g(H),U=Qo(Z);U.isNaN()||_(U,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,H),E(()=>{let Z=H;e.parser||(Z=H.replace(/。/g,".")),Z!==H&&A(Z)})},R=()=>{c.value=!0},z=()=>{c.value=!1,A(i.value.value)},M=H=>{A(H.target.value)},B=H=>{var Y,Z;if(H&&x.value||!H&&C.value)return;s.value=!1;let U=Qo(e.step);H||(U=U.negate());const ee=(u.value||Qo(0)).add(U.toString()),G=_(ee,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,u2(e.stringMode,G),{offset:e.step,type:H?"up":"down"}),(Z=i.value)===null||Z===void 0||Z.focus()},N=H=>{const Y=Qo(g(v.value));let Z=Y;Y.isNaN()?Z=u.value:Z=_(Y,H),e.value!==void 0?y(u.value,!1):Z.isNaN()||y(Z,!1)},F=()=>{s.value=!0},L=H=>{var Y;const{which:Z}=H;s.value=!0,Z===Oe.ENTER&&(c.value||(s.value=!1),N(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,H)),e.keyboard!==!1&&!c.value&&[Oe.UP,Oe.DOWN].includes(Z)&&(B(Oe.UP===Z),H.preventDefault())},k=()=>{s.value=!1},j=H=>{N(!1),a.value=!1,s.value=!1,r("blur",H)};return be(()=>e.precision,()=>{u.value.isInvalidate()||y(u.value,!1)},{flush:"post"}),be(()=>e.value,()=>{const H=Qo(e.value);u.value=H;const Y=Qo(g(v.value));(!H.equals(Y)||!s.value||e.formatter)&&y(H,s.value)},{flush:"post"}),be(v,()=>{e.formatter&&w()},{flush:"post"}),be(()=>e.disabled,H=>{H&&(a.value=!1)}),l({focus:()=>{var H;(H=i.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=i.value)===null||H===void 0||H.blur()}}),()=>{const H=m(m({},n),e),{prefixCls:Y="rc-input-number",min:Z,max:U,step:ee=1,defaultValue:G,value:J,disabled:Q,readonly:K,keyboard:q,controls:pe=!0,autofocus:W,stringMode:X,parser:ne,formatter:ae,precision:se,decimalSeparator:re,onChange:de,onInput:ge,onPressEnter:me,onStep:fe,lazy:ye,class:Se,style:ue}=H,ce=die(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:he,downHandler:Pe}=o,Ie=`${Y}-input`,Ae={};return ye?Ae.onChange=M:Ae.onInput=M,p("div",{class:ie(Y,Se,{[`${Y}-focused`]:a.value,[`${Y}-disabled`]:Q,[`${Y}-readonly`]:K,[`${Y}-not-a-number`]:u.value.isNaN(),[`${Y}-out-of-range`]:!u.value.isInvalidate()&&!T(u.value)}),style:ue,onKeydown:L,onKeyup:k},[pe&&p(sie,{prefixCls:Y,upDisabled:x.value,downDisabled:C.value,onStep:B},{upNode:he,downNode:Pe}),p("div",{class:`${Ie}-wrap`},[p("input",D(D(D({autofocus:W,autocomplete:"off",role:"spinbutton","aria-valuemin":Z,"aria-valuemax":U,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:ee},ce),{},{ref:i,class:Ie,value:v.value,disabled:Q,readonly:K,onFocus:$e=>{a.value=!0,r("focus",$e)}},Ae),{},{onBlur:j,onCompositionstart:R,onCompositionend:z,onBeforeinput:F}),null)])])}}});function Ih(e){return e!=null}const pie=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:l,fontSizeLG:i,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:l,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":m({},Ga(e)),"&-focused":m({},yl(e)),"&-disabled":m(m({},my(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":m(m(m({},Xe(e)),N6(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":m(m({width:"100%",height:v-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},vy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:g}},"&-up-inner, &-down-inner":m(m({},yi()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:l},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gie=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:l,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:m(m(m({},Ii(e)),Nc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},hie=Ve("InputNumber",e=>{const t=Ti(e);return[pie(t),gie(t),ja(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var vie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},f2),{size:Be(),bordered:Ce(!0),placeholder:String,name:String,id:String,type:String,addonBefore:V.any,addonAfter:V.any,prefix:V.any,"onUpdate:value":f2.onChange,valueModifiers:Object,status:Be()}),Th=oe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:mie(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:l}=t;var i;const a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),{prefixCls:u,size:d,direction:f,disabled:g}=Te("input-number",e),{compactSize:v,compactItemClassnames:h}=Ol(u,f),b=qn(),y=P(()=>{var R;return(R=g.value)!==null&&R!==void 0?R:b.value}),[S,$]=hie(u),x=P(()=>v.value||d.value),C=te((i=e.value)!==null&&i!==void 0?i:e.defaultValue),O=te(!1);be(()=>e.value,()=>{C.value=e.value});const w=te(null),I=()=>{var R;(R=w.value)===null||R===void 0||R.focus()};o({focus:I,blur:()=>{var R;(R=w.value)===null||R===void 0||R.blur()}});const _=R=>{e.value===void 0&&(C.value=R),n("update:value",R),n("change",R),a.onFieldChange()},E=R=>{O.value=!1,n("blur",R),a.onFieldBlur()},A=R=>{O.value=!0,n("focus",R)};return()=>{var R,z,M,B;const{hasFeedback:N,isFormItemInput:F,feedbackIcon:L}=s,k=(R=e.id)!==null&&R!==void 0?R:a.id.value,j=m(m(m({},r),e),{id:k,disabled:y.value}),{class:H,bordered:Y,readonly:Z,style:U,addonBefore:ee=(z=l.addonBefore)===null||z===void 0?void 0:z.call(l),addonAfter:G=(M=l.addonAfter)===null||M===void 0?void 0:M.call(l),prefix:J=(B=l.prefix)===null||B===void 0?void 0:B.call(l),valueModifiers:Q={}}=j,K=vie(j,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),q=u.value,pe=ie({[`${q}-lg`]:x.value==="large",[`${q}-sm`]:x.value==="small",[`${q}-rtl`]:f.value==="rtl",[`${q}-readonly`]:Z,[`${q}-borderless`]:!Y,[`${q}-in-form-item`]:F},Tn(q,c.value),H,h.value,$.value);let W=p(fie,D(D({},et(K,["size","defaultValue"])),{},{ref:w,lazy:!!Q.lazy,value:C.value,class:pe,prefixCls:q,readonly:Z,onChange:_,onBlur:E,onFocus:A}),{upHandler:l.upIcon?()=>p("span",{class:`${q}-handler-up-inner`},[l.upIcon()]):()=>p(lie,{class:`${q}-handler-up-inner`},null),downHandler:l.downIcon?()=>p("span",{class:`${q}-handler-down-inner`},[l.downIcon()]):()=>p(Ec,{class:`${q}-handler-down-inner`},null)});const X=Ih(ee)||Ih(G),ne=Ih(J);if(ne||N){const ae=ie(`${q}-affix-wrapper`,Tn(`${q}-affix-wrapper`,c.value,N),{[`${q}-affix-wrapper-focused`]:O.value,[`${q}-affix-wrapper-disabled`]:y.value,[`${q}-affix-wrapper-sm`]:x.value==="small",[`${q}-affix-wrapper-lg`]:x.value==="large",[`${q}-affix-wrapper-rtl`]:f.value==="rtl",[`${q}-affix-wrapper-readonly`]:Z,[`${q}-affix-wrapper-borderless`]:!Y,[`${H}`]:!X&&H},$.value);W=p("div",{class:ae,style:U,onClick:I},[ne&&p("span",{class:`${q}-prefix`},[J]),W,N&&p("span",{class:`${q}-suffix`},[L])])}if(X){const ae=`${q}-group`,se=`${ae}-addon`,re=ee?p("div",{class:se},[ee]):null,de=G?p("div",{class:se},[G]):null,ge=ie(`${q}-wrapper`,ae,{[`${ae}-rtl`]:f.value==="rtl"},$.value),me=ie(`${q}-group-wrapper`,{[`${q}-group-wrapper-sm`]:x.value==="small",[`${q}-group-wrapper-lg`]:x.value==="large",[`${q}-group-wrapper-rtl`]:f.value==="rtl"},Tn(`${u}-group-wrapper`,c.value,N),H,$.value);W=p("div",{class:me,style:U},[p("div",{class:ge},[re&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[re]})]}),W,de&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[de]})]})])])}return S(dt(W,{style:U}))}}}),bie=m(Th,{install:e=>(e.component(Th.name,Th),e)}),yie=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},Sie=yie,$ie=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:l,colorBgBody:i,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:m(m({display:"flex",flex:"auto",flexDirection:"column",color:o,minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:l,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:l,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:r,lineHeight:`${f}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:l,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},Sie(e)),{"&-rtl":{direction:"rtl"}})}},Cie=Ve("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:l}=e,i=r*1.25,a=Fe(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:r+l*2,layoutZeroTriggerSize:r});return[$ie(a)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),d1=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function Xp(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>oe({compatConfig:{MODE:3},name:o,props:d1(),setup(i,a){let{slots:s}=a;const{prefixCls:c}=Te(t,i);return()=>{const u=m(m({},i),{prefixCls:c.value,tagName:n});return p(r,u,s)}}})}const f1=oe({compatConfig:{MODE:3},props:d1(),setup(e,t){let{slots:n}=t;return()=>p(e.tagName,{class:e.prefixCls},n)}}),xie=oe({compatConfig:{MODE:3},inheritAttrs:!1,props:d1(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("",e),[i,a]=Cie(r),s=le([]);Ge(VT,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const u=P(()=>{const{prefixCls:d,hasSider:f}=e;return{[a.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:l.value==="rtl"}});return()=>{const{tagName:d}=e;return i(p(d,m(m({},o),{class:[u.value,o.class]}),n))}}}),wie=Xp({suffixCls:"layout",tagName:"section",name:"ALayout"})(xie),rd=Xp({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(f1),ld=Xp({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(f1),id=Xp({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(f1),Eh=wie;var Oie={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"};const Pie=Oie;function p2(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:V.any,width:V.oneOfType([V.number,V.string]),collapsedWidth:V.oneOfType([V.number,V.string]),breakpoint:V.oneOf(Cn("xs","sm","md","lg","xl","xxl","xxxl")),theme:V.oneOf(Cn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Mie=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ad=oe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:qe(Eie(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:l}=Te("layout-sider",e),i=He(VT,void 0),a=te(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=te(!1);be(()=>e.collapsed,()=>{a.value=!!e.collapsed}),Ge(WT,a);const c=(h,b)=>{e.collapsed===void 0&&(a.value=h),n("update:collapsed",h),n("collapse",h,b)},u=te(h=>{s.value=h.matches,n("breakpoint",h.matches),a.value!==h.matches&&c(h.matches,"responsive")});let d;function f(h){return u.value(h)}const g=Mie("ant-sider-");i&&i.addSider(g),je(()=>{be(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in g2){d=h(`(max-width: ${g2[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Ze(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}i&&i.removeSider(g)});const v=()=>{c(!a.value,"clickTrigger")};return()=>{var h,b;const y=l.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:I}=e,T=a.value?S:$,_=Jd(T)?`${T}px`:String(T),E=parseFloat(String(S||0))===0?p("span",{onClick:v,class:ie(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||p(Tie,null,null)]):null,A={expanded:p(x?Wo:Sl,null,null),collapsed:p(x?Sl:Wo,null,null)},R=a.value?"collapsed":"expanded",z=A[R],M=O!==null?E||p("div",{class:`${y}-trigger`,onClick:v,style:{width:_}},[O||z]):null,B=[o.style,{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}],N=ie(y,`${y}-${I}`,{[`${y}-collapsed`]:!!a.value,[`${y}-has-trigger`]:w&&O!==null&&!E,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(_)===0},o.class);return p("aside",D(D({},o),{},{class:N,style:B}),[p("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&E?M:null])}}}),_ie=rd,Aie=ld,Rie=ad,Die=id,Bie=m(Eh,{Header:rd,Footer:ld,Content:id,Sider:ad,install:e=>(e.component(Eh.name,Eh),e.component(rd.name,rd),e.component(ld.name,ld),e.component(ad.name,ad),e.component(id.name,id),e)});function Nie(e,t,n){var o=n||{},r=o.noTrailing,l=r===void 0?!1:r,i=o.noLeading,a=i===void 0?!1:i,s=o.debounceMode,c=s===void 0?void 0:s,u,d=!1,f=0;function g(){u&&clearTimeout(u)}function v(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?a?(f=Date.now(),l||(u=setTimeout(c?O:C,e))):C():l!==!0&&(u=setTimeout(c?O:C,c===void 0?e-x:e))}return h.cancel=v,h}function Fie(e,t,n){var o=n||{},r=o.atBegin,l=r===void 0?!1:r;return Nie(e,t,{debounceMode:l!==!1})}const Lie=new nt("antSpinMove",{to:{opacity:1}}),kie=new nt("antRotate",{to:{transform:"rotate(405deg)"}}),zie=e=>({[`${e.componentCls}`]:m(m({},Xe(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Lie,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:kie,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Hie=Ve("Spin",e=>{const t=Fe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[zie(t)]},{contentHeight:400});var jie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:V.any,delay:Number,indicator:V.any});let sd=null;function Vie(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Kie(e){const t=e.indicator;sd=typeof t=="function"?t:()=>p(t,null,null)}const ir=oe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:qe(Wie(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:l,direction:i}=Te("spin",e),[a,s]=Hie(r),c=te(e.spinning&&!Vie(e.spinning,e.delay));let u;return be([()=>e.spinning,()=>e.delay],()=>{u==null||u.cancel(),u=Fie(e.delay,()=>{c.value=e.spinning}),u==null||u()},{immediate:!0,flush:"post"}),Ze(()=>{u==null||u.cancel()}),()=>{var d,f;const{class:g}=n,v=jie(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(f=o.default)===null||f===void 0?void 0:f.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:l.value==="small",[`${r.value}-lg`]:l.value==="large",[`${r.value}-spinning`]:c.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:i.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=qt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),Yt(O)?sn(O,{class:C}):sd&&Yt(sd())?sn(sd(),{class:C}):p("span",{class:`${C} ${x}-dot-spin`},[p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null)]))}const $=p("div",D(D({},v),{},{class:y,"aria-live":"polite","aria-busy":c.value}),[S(r.value),h?p("div",{class:`${r.value}-text`},[h]):null]);if(b&&_t(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:c.value};return a(p("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[c.value&&p("div",{key:"loading"},[$]),p("div",{class:x,key:"container"},[b])]))}return a($)}}});ir.setDefaultIndicator=Kie;ir.install=function(e){return e.component(ir.name,ir),e};var Gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Xie=Gie;function h2(e){for(var t=1;t{const r=m(m(m({},e),{size:"small"}),n);return p(Dr,r,o)}}}),Jie=oe({name:"MiddleSelect",inheritAttrs:!1,props:Pp(),Option:Dr.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=m(m(m({},e),{size:"middle"}),n);return p(Dr,r,o)}}}),Fl=oe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:V.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},l=i=>{n("keypress",i,r,e.page)};return()=>{const{showTitle:i,page:a,itemRender:s}=e,{class:c,style:u}=o,d=`${e.rootPrefixCls}-item`,f=ie(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},c);return p("li",{onClick:r,onKeypress:l,title:i?String(a):null,tabindex:"0",class:f,style:u},[s({page:a,type:"page",originalElement:p("a",{rel:"nofollow"},[a])})])}}}),jl={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},eae=oe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:V.any,current:Number,pageSizeOptions:V.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:V.object,rootPrefixCls:String,selectPrefixCls:String,goButton:V.any},setup(e){const t=le(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:c}=s.target;t.value!==c&&(t.value=c)},l=s=>{const{goButton:c,quickGo:u,rootPrefixCls:d}=e;if(!(c||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else u(n.value),t.value=""},i=s=>{t.value!==""&&(s.keyCode===jl.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},a=P(()=>{const{pageSize:s,pageSizeOptions:c}=e;return c.some(u=>u.toString()===s.toString())?c:c.concat([s.toString()]).sort((u,d)=>{const f=isNaN(Number(u))?0:Number(u),g=isNaN(Number(d))?0:Number(d);return f-g})});return()=>{const{rootPrefixCls:s,locale:c,changeSize:u,quickGo:d,goButton:f,selectComponentClass:g,selectPrefixCls:v,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!u&&!d)return null;if(u&&g){const C=e.buildOptionText||o,O=a.value.map((w,I)=>p(g.Option,{key:I,value:w},{default:()=>[C({value:w})]}));S=p(g,{disabled:b,prefixCls:v,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||a.value[0]).toString(),onChange:w=>u(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(f&&(x=typeof f=="boolean"?p("button",{type:"button",onClick:i,onKeyup:i,disabled:b,class:`${y}-quick-jumper-button`},[c.jump_to_confirm]):p("span",{onClick:i,onKeyup:i},[f])),$=p("div",{class:`${y}-quick-jumper`},[c.jump_to,p(Na,{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:i,onBlur:l},null),c.page,x])),p("li",{class:`${y}`},[S,$])}}}),tae={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var nae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const lae=oe({compatConfig:{MODE:3},name:"Pagination",mixins:[xi],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:V.string.def("rc-pagination"),selectPrefixCls:V.string.def("rc-select"),current:Number,defaultCurrent:V.number.def(1),total:V.number.def(0),pageSize:Number,defaultPageSize:V.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:V.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:V.oneOfType([V.looseBool,V.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:V.object.def(tae),itemRender:V.func.def(rae),prevIcon:V.any,nextIcon:V.any,jumpPrevIcon:V.any,jumpNextIcon:V.any,totalBoundaryShowSizeChanger:V.number.def(50)},data(){const e=this.$props;let t=qd([this.current,this.defaultCurrent]);const n=qd([this.pageSize,this.defaultPageSize]);return t=Math.min(t,hr(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=hr(e,this.$data,this.$props);n=n>o?o:n,xr(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=hr(this.pageSize,this.$data,this.$props);if(xr(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(hr(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return VO(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=hr(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return oae(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===jl.ARROW_UP||e.keyCode===jl.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===jl.ENTER?this.handleChange(t):e.keyCode===jl.ARROW_UP?this.handleChange(t-1):e.keyCode===jl.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=hr(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(xr(this,"pageSize")||this.setState({statePageSize:e}),xr(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=hr(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),xr(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,B=y+1=z*2&&y!==1+2&&(w[0]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.unshift(I)),O-y>=z*2&&y!==O-2&&(w[w.length-1]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ee,page:ee,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.push(T)),U!==1&&w.unshift(_),ee!==O&&w.push(E)}let L=null;s&&(L=p("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const k=!N||!O,j=!F||!O,H=this.buildOptionText||this.$slots.buildOptionText;return p("ul",D(D({unselectable:"on",ref:"paginationNode"},C),{},{class:ie({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[L,p("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:k?null:0,onKeypress:this.runIfEnterPrev,class:ie(`${e}-prev`,{[`${e}-disabled`]:k}),"aria-disabled":k},[this.renderPrev(M)]),w,p("li",{title:a?r.next_page:null,onClick:this.next,tabindex:j?null:0,onKeypress:this.runIfEnterNext,class:ie(`${e}-next`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderNext(B)]),p(eae,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:H||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R},null)])}}),iae=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},aae=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:m(m({},by(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},sae=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},cae=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":m({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ar(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:m({},Ar(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:m(m({},Ii(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},uae=e=>{const{componentCls:t}=e;return{[`${t}-item`]:m(m({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Rr(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},dae=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m({},Xe(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),uae(e)),cae(e)),sae(e)),aae(e)),iae(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},fae=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pae=Ve("Pagination",e=>{const t=Fe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ti(e));return[dae(t),e.wireframe&&fae(t)]});var gae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:Ce(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Ce(),showSizeChanger:Ce(),pageSizeOptions:at(),buildOptionText:ve(),showQuickJumper:Le([Boolean,Object]),showTotal:ve(),size:Be(),simple:Ce(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:ve(),role:String,responsive:Boolean,showLessItems:Ce(),onChange:ve(),onShowSizeChange:ve(),"onUpdate:current":ve(),"onUpdate:pageSize":ve()}),vae=oe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:hae(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:l,direction:i,size:a}=Te("pagination",e),[s,c]=pae(r),u=P(()=>l.getPrefixCls("select",e.selectPrefixCls)),d=Va(),[f]=Io("Pagination",tP,ze(e,"locale")),g=v=>{const h=p("span",{class:`${v}-item-ellipsis`},[Lt("•••")]),b=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Wo,null,null):p(Sl,null,null)]),y=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Sl,null,null):p(Wo,null,null)]),S=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(b2,{class:`${v}-item-link-icon`},null):p(v2,{class:`${v}-item-link-icon`},null),h])]),$=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(v2,{class:`${v}-item-link-icon`},null):p(b2,{class:`${v}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var v;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=gae(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=a.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!a.value&&S),C=m(m(m(m(m({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:y||(x?Qie:Jie),locale:f.value,buildOptionText:b}),o),{class:ie({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:i.value==="rtl"},o.class,c.value),itemRender:h});return s(p(lae,C,null))}}}),Up=Tt(vae),mae=()=>({avatar:V.any,description:V.any,prefixCls:String,title:V.any}),zE=oe({compatConfig:{MODE:3},name:"AListItemMeta",props:mae(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("list",e);return()=>{var r,l,i,a,s,c;const u=`${o.value}-item-meta`,d=(r=e.title)!==null&&r!==void 0?r:(l=n.title)===null||l===void 0?void 0:l.call(n),f=(i=e.description)!==null&&i!==void 0?i:(a=n.description)===null||a===void 0?void 0:a.call(n),g=(s=e.avatar)!==null&&s!==void 0?s:(c=n.avatar)===null||c===void 0?void 0:c.call(n),v=p("div",{class:`${o.value}-item-meta-content`},[d&&p("h4",{class:`${o.value}-item-meta-title`},[d]),f&&p("div",{class:`${o.value}-item-meta-description`},[f])]);return p("div",{class:u},[g&&p("div",{class:`${o.value}-item-meta-avatar`},[g]),(d||f)&&v])}}}),HE=Symbol("ListContextKey");var bae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,extra:V.any,actions:V.array,grid:Object,colStyle:{type:Object,default:void 0}}),jE=oe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:zE,props:yae(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:l}=He(HE,{grid:le(),itemLayout:le()}),{prefixCls:i}=Te("list",e),a=()=>{var c;const u=((c=n.default)===null||c===void 0?void 0:c.call(n))||[];let d;return u.forEach(f=>{lD(f)&&!wc(f)&&(d=!0)}),d&&u.length>1},s=()=>{var c,u;const d=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n);return r.value==="vertical"?!!d:!a()};return()=>{var c,u,d,f,g;const{class:v}=o,h=bae(o,["class"]),b=i.value,y=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n),S=(d=n.default)===null||d===void 0?void 0:d.call(n);let $=(f=e.actions)!==null&&f!==void 0?f:yt((g=n.actions)===null||g===void 0?void 0:g.call(n));$=$&&!Array.isArray($)?[$]:$;const x=$&&$.length>0&&p("ul",{class:`${b}-item-action`,key:"actions"},[$.map((w,I)=>p("li",{key:`${b}-item-action-${I}`},[w,I!==$.length-1&&p("em",{class:`${b}-item-action-split`},null)]))]),C=l.value?"div":"li",O=p(C,D(D({},h),{},{class:ie(`${b}-item`,{[`${b}-item-no-flex`]:!s()},v)}),{default:()=>[r.value==="vertical"&&y?[p("div",{class:`${b}-item-main`,key:"content"},[S,x]),p("div",{class:`${b}-item-extra`,key:"extra"},[y])]:[S,x,dt(y,{key:"extra"})]]});return l.value?p(Vp,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),Sae=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:l,listItemPaddingSM:i,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${l}px ${o}px`}}}},$ae=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:l,margin:i}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},Cae=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:l,marginLG:i,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:f,margin:g,colorText:v,colorTextDescription:h,motionDurationSlow:b,lineWidth:y}=e;return{[`${t}`]:m(m({},Xe(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${b}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:l,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},xae=Ve("List",e=>{const t=Fe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Cae(t),Sae(t),$ae(t)]},{contentWidth:220}),wae=()=>({bordered:Ce(),dataSource:at(),extra:In(),grid:Re(),itemLayout:String,loading:Le([Boolean,Object]),loadMore:In(),pagination:Le([Boolean,Object]),prefixCls:String,rowKey:Le([String,Number,Function]),renderItem:ve(),size:String,split:Ce(),header:In(),footer:In(),locale:Re()}),Qr=oe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:jE,props:qe(wae(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,l;Ge(HE,{grid:ze(e,"grid"),itemLayout:ze(e,"itemLayout")});const i={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=Te("list",e),[u,d]=xae(a),f=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),g=le((r=f.value.defaultCurrent)!==null&&r!==void 0?r:1),v=le((l=f.value.defaultPageSize)!==null&&l!==void 0?l:10);be(f,()=>{"current"in f.value&&(g.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const h=[],b=R=>(z,M)=>{g.value=z,v.value=M,f.value[R]&&f.value[R](z,M)},y=b("onChange"),S=b("onShowSizeChange"),$=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>$.value&&$.value.spinning),C=P(()=>{let R="";switch(e.size){case"large":R="lg";break;case"small":R="sm";break}return R}),O=P(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${C.value}`]:C.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:x.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:s.value==="rtl"})),w=P(()=>{const R=m(m(m({},i),{total:e.dataSource.length,current:g.value,pageSize:v.value}),e.pagination||{}),z=Math.ceil(R.total/R.pageSize);return R.current>z&&(R.current=z),R}),I=P(()=>{let R=[...e.dataSource];return e.pagination&&e.dataSource.length>(w.value.current-1)*w.value.pageSize&&(R=[...e.dataSource].splice((w.value.current-1)*w.value.pageSize,w.value.pageSize)),R}),T=Va(),_=ro(()=>{for(let R=0;R{if(!e.grid)return;const R=_.value&&e.grid[_.value]?e.grid[_.value]:e.grid.column;if(R)return{width:`${100/R}%`,maxWidth:`${100/R}%`}}),A=(R,z)=>{var M;const B=(M=e.renderItem)!==null&&M!==void 0?M:n.renderItem;if(!B)return null;let N;const F=typeof e.rowKey;return F==="function"?N=e.rowKey(R):F==="string"||F==="number"?N=R[e.rowKey]:N=R.key,N||(N=`list-item-${z}`),h[z]=N,B({item:R,index:z})};return()=>{var R,z,M,B,N,F,L,k;const j=(R=e.loadMore)!==null&&R!==void 0?R:(z=n.loadMore)===null||z===void 0?void 0:z.call(n),H=(M=e.footer)!==null&&M!==void 0?M:(B=n.footer)===null||B===void 0?void 0:B.call(n),Y=(N=e.header)!==null&&N!==void 0?N:(F=n.header)===null||F===void 0?void 0:F.call(n),Z=yt((L=n.default)===null||L===void 0?void 0:L.call(n)),U=!!(j||e.pagination||H),ee=ie(m(m({},O.value),{[`${a.value}-something-after-last-item`]:U}),o.class,d.value),G=e.pagination?p("div",{class:`${a.value}-pagination`},[p(Up,D(D({},w.value),{},{onChange:y,onShowSizeChange:S}),null)]):null;let J=x.value&&p("div",{style:{minHeight:"53px"}},null);if(I.value.length>0){h.length=0;const K=I.value.map((pe,W)=>A(pe,W)),q=K.map((pe,W)=>p("div",{key:h[W],style:E.value},[pe]));J=e.grid?p(Ry,{gutter:e.grid.gutter},{default:()=>[q]}):p("ul",{class:`${a.value}-items`},[K])}else!Z.length&&!x.value&&(J=p("div",{class:`${a.value}-empty-text`},[((k=e.locale)===null||k===void 0?void 0:k.emptyText)||c("List")]));const Q=w.value.position||"bottom";return u(p("div",D(D({},o),{},{class:ee}),[(Q==="top"||Q==="both")&&G,Y&&p("div",{class:`${a.value}-header`},[Y]),p(ir,$.value,{default:()=>[J,Z]}),H&&p("div",{class:`${a.value}-footer`},[H]),j||(Q==="bottom"||Q==="both")&&G]))}}});Qr.install=function(e){return e.component(Qr.name,Qr),e.component(Qr.Item.name,Qr.Item),e.component(Qr.Item.Meta.name,Qr.Item.Meta),e};const Oae=Qr;function Pae(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Iae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,r)=>{const l=e.lastIndexOf(r);return l>o.location?{location:l,prefix:r}:o},{location:-1,prefix:""})}function y2(e){return(e||"").toLowerCase()}function Tae(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const l=t.length;for(let i=0;i[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:l,onFocus:i=Dae,loading:a}=He(WE,{activeIndex:te(),loading:te(!1)});let s;const c=u=>{clearTimeout(s),s=setTimeout(()=>{i(u)})};return Ze(()=>{clearTimeout(s)}),()=>{var u;const{prefixCls:d,options:f}=e,g=f[o.value]||{};return p(Vt,{prefixCls:`${d}-menu`,activeKey:g.value,onSelect:v=>{let{key:h}=v;const b=f.find(y=>{let{value:S}=y;return S===h});l(b)},onMousedown:c},{default:()=>[!a.value&&f.map((v,h)=>{var b,y;const{value:S,disabled:$,label:x=v.value,class:C,style:O}=v;return p(lr,{key:S,disabled:$,onMouseenter:()=>{r(h)},class:C,style:O},{default:()=>[(y=(b=n.option)===null||b===void 0?void 0:b.call(n,v))!==null&&y!==void 0?y:typeof x=="function"?x(v):x]})}),!a.value&&f.length===0?p(lr,{key:"notFoundContent",disabled:!0},{default:()=>[(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)]}):null,a.value&&p(lr,{key:"loading",disabled:!0},{default:()=>[p(ir,{size:"small"},null)]})]})}}}),Nae={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},Fae=oe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:i}=e;return p(Bae,{prefixCls:o(),options:i},{notFoundContent:n.notFoundContent,option:n.option})},l=P(()=>{const{placement:i,direction:a}=e;let s="topRight";return a==="rtl"?s=i==="top"?"topLeft":"bottomLeft":s=i==="top"?"topRight":"bottomRight",s});return()=>{const{visible:i,transitionName:a,getPopupContainer:s}=e;return p(wi,{prefixCls:o(),popupVisible:i,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:l.value,popupTransitionName:a,builtinPlacements:Nae,getPopupContainer:s},{default:n.default})}}}),Lae=Cn("top","bottom"),VE={autofocus:{type:Boolean,default:void 0},prefix:V.oneOfType([V.string,V.arrayOf(V.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:V.oneOf(Lae),character:V.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:at(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},KE=m(m({},VE),{dropdownClassName:String}),GE={prefix:"@",split:" ",rows:1,validateSearch:_ae,filterOption:()=>Aae};qe(KE,GE);var S2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{c.value=e.value});const u=E=>{n("change",E)},d=E=>{let{target:{value:A}}=E;u(A)},f=(E,A,R)=>{m(c,{measuring:!0,measureText:E,measurePrefix:A,measureLocation:R,activeIndex:0})},g=E=>{m(c,{measuring:!1,measureLocation:0,measureText:null}),E==null||E()},v=E=>{const{which:A}=E;if(c.measuring){if(A===Oe.UP||A===Oe.DOWN){const R=I.value.length,z=A===Oe.UP?-1:1,M=(c.activeIndex+z+R)%R;c.activeIndex=M,E.preventDefault()}else if(A===Oe.ESC)g();else if(A===Oe.ENTER){if(E.preventDefault(),!I.value.length){g();return}const R=I.value[c.activeIndex];C(R)}}},h=E=>{const{key:A,which:R}=E,{measureText:z,measuring:M}=c,{prefix:B,validateSearch:N}=e,F=E.target;if(F.composing)return;const L=Pae(F),{location:k,prefix:j}=Iae(L,B);if([Oe.ESC,Oe.UP,Oe.DOWN,Oe.ENTER].indexOf(R)===-1)if(k!==-1){const H=L.slice(k+j.length),Y=N(H,e),Z=!!w(H).length;Y?(A===j||A==="Shift"||M||H!==z&&Z)&&f(H,j,k):M&&g(),Y&&n("search",H,j)}else M&&g()},b=E=>{c.measuring||n("pressenter",E)},y=E=>{$(E)},S=E=>{x(E)},$=E=>{clearTimeout(s.value);const{isFocus:A}=c;!A&&E&&n("focus",E),c.isFocus=!0},x=E=>{s.value=setTimeout(()=>{c.isFocus=!1,g(),n("blur",E)},100)},C=E=>{const{split:A}=e,{value:R=""}=E,{text:z,selectionLocation:M}=Eae(c.value,{measureLocation:c.measureLocation,targetText:R,prefix:c.measurePrefix,selectionStart:a.value.getSelectionStart(),split:A});u(z),g(()=>{Mae(a.value.input,M)}),n("select",E,c.measurePrefix)},O=E=>{c.activeIndex=E},w=E=>{const A=E||c.measureText||"",{filterOption:R}=e;return e.options.filter(M=>R?R(A,M):!0)},I=P(()=>w());return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Ge(WE,{activeIndex:ze(c,"activeIndex"),setActiveIndex:O,selectOption:C,onFocus:$,onBlur:x,loading:ze(e,"loading")}),An(()=>{ot(()=>{c.measuring&&(i.value.scrollTop=a.value.getScrollTop())})}),()=>{const{measureLocation:E,measurePrefix:A,measuring:R}=c,{prefixCls:z,placement:M,transitionName:B,getPopupContainer:N,direction:F}=e,L=S2(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:k,style:j}=o,H=S2(o,["class","style"]),Y=et(L,["value","prefix","split","validateSearch","filterOption","options","loading"]),Z=m(m(m({},Y),H),{onChange:$2,onSelect:$2,value:c.value,onInput:d,onBlur:S,onKeydown:v,onKeyup:h,onFocus:y,onPressenter:b});return p("div",{class:ie(z,k),style:j},[p(Na,D(D({},Z),{},{ref:a,tag:"textarea"}),null),R&&p("div",{ref:i,class:`${z}-measure`},[c.value.slice(0,E),p(Fae,{prefixCls:z,transitionName:B,dropdownClassName:e.dropdownClassName,placement:M,options:R?I.value:[],visible:!0,direction:F,getPopupContainer:N},{default:()=>[p("span",null,[A])],notFoundContent:l.notFoundContent,option:l.option}),c.value.slice(E+A.length)])])}}}),zae={value:String,disabled:Boolean,payload:Re()},XE=m(m({},zae),{label:St([])}),UE={name:"Option",props:XE,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};m({compatConfig:{MODE:3}},UE);const Hae=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:l,motionDurationSlow:i,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:f,borderRadiusLG:g,boxShadowSecondary:v}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:m(m(m(m(m({},Xe(e)),Ii(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Nc(e,t)),{"&-disabled":{"> textarea":m({},my(e))},"&-focused":m({},yl(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:l,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":m({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},vy(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":m(m({},Xe(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:g,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":m(m({},Gt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:l,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:g,borderEndEndRadius:g},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:l,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},jae=Ve("Mentions",e=>{const t=Ti(e);return[Hae(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var C2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=null;return r.some(a=>l.slice(0,a.length)===a?(i=a,!0):!1),i!==null?{prefix:i,value:l.slice(i.length)}:null}).filter(l=>!!l&&!!l.value)},Kae=()=>m(m({},VE),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:V.any,defaultValue:String,id:String,status:String}),Mh=oe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:Kae(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;var i,a;const{prefixCls:s,renderEmpty:c,direction:u}=Te("mentions",e),[d,f]=jae(s),g=te(!1),v=te(null),h=te((a=(i=e.value)!==null&&i!==void 0?i:e.defaultValue)!==null&&a!==void 0?a:""),b=Qt(),y=un.useInject(),S=P(()=>Ko(y.status,e.status));Kb({prefixCls:P(()=>`${s.value}-menu`),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:A=>{It()}}),be(()=>e.value,A=>{h.value=A});const $=A=>{g.value=!0,o("focus",A)},x=A=>{g.value=!1,o("blur",A),b.onFieldBlur()},C=function(){for(var A=arguments.length,R=new Array(A),z=0;z{e.value===void 0&&(h.value=A),o("update:value",A),o("change",A),b.onFieldChange()},w=()=>{const A=e.notFoundContent;return A!==void 0?A:n.notFoundContent?n.notFoundContent():c("Select")},I=()=>{var A;return yt(((A=n.default)===null||A===void 0?void 0:A.call(n))||[]).map(R=>{var z,M;return m(m({},WO(R)),{label:(M=(z=R.children)===null||z===void 0?void 0:z.default)===null||M===void 0?void 0:M.call(z)})})};l({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const E=P(()=>e.loading?Wae:e.filterOption);return()=>{const{disabled:A,getPopupContainer:R,rows:z=1,id:M=b.id.value}=e,B=C2(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:N,feedbackIcon:F}=y,{class:L}=r,k=C2(r,["class"]),j=et(B,["defaultValue","onUpdate:value","prefixCls"]),H=ie({[`${s.value}-disabled`]:A,[`${s.value}-focused`]:g.value,[`${s.value}-rtl`]:u.value==="rtl"},Tn(s.value,S.value),!N&&L,f.value),Y=m(m(m(m({prefixCls:s.value},j),{disabled:A,direction:u.value,filterOption:E.value,getPopupContainer:R,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:p(ir,{size:"small"},null)}]:e.options||I(),class:H}),k),{rows:z,onChange:O,onSelect:C,onFocus:$,onBlur:x,ref:v,value:h.value,id:M}),Z=p(kae,D(D({},Y),{},{dropdownClassName:f.value}),{notFoundContent:w,option:n.option});return d(N?p("div",{class:ie(`${s.value}-affix-wrapper`,Tn(`${s.value}-affix-wrapper`,S.value,N),L,f.value)},[Z,p("span",{class:`${s.value}-suffix`},[F])]):Z)}}}),cd=oe(m(m({compatConfig:{MODE:3}},UE),{name:"AMentionsOption",props:XE})),Gae=m(Mh,{Option:cd,getMentions:Vae,install:e=>(e.component(Mh.name,Mh),e.component(cd.name,cd),e)});var Xae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{mm={x:e.pageX,y:e.pageY},setTimeout(()=>mm=null,100)};h8()&&Mt(document.documentElement,"click",Uae,!0);const Yae=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:V.any,closable:{type:Boolean,default:void 0},closeIcon:V.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:V.any,okText:V.any,okType:String,cancelText:V.any,icon:V.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Re(),cancelButtonProps:Re(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Re(),maskStyle:Re(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Re()}),an=oe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:qe(Yae(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[l]=Io("Modal"),{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c}=Te("modal",e),[u,d]=Gle(i);It(e.visible===void 0);const f=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},v=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return p(We,null,[p(zt,D({onClick:f},e.cancelButtonProps),{default:()=>[$||l.value.cancelText]}),p(zt,D(D({},ef(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||l.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:I=!0}=e,T=Xae(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),_=ie(x,{[`${i.value}-centered`]:!!C,[`${i.value}-wrap-rtl`]:s.value==="rtl"});return u(p(TE,D(D(D({},T),r),{},{rootClassName:d.value,class:ie(d.value,r.class),getContainer:O||(c==null?void 0:c.value),prefixCls:i.value,wrapClassName:_,visible:$??S,onClose:f,focusTriggerAfterClose:I,transitionName:_n(a.value,"zoom",e.transitionName),maskTransitionName:_n(a.value,"fade",e.maskTransitionName),mousePosition:(b=T.mousePosition)!==null&&b!==void 0?b:mm}),m(m({},o),{footer:o.footer||v,closeIcon:()=>p("span",{class:`${i.value}-close-x`},[w||p(Zn,{class:`${i.value}-close-icon`},null)])})))}}}),qae=()=>{const e=te(!1);return Ze(()=>{e.value=!0}),e},YE=qae,Zae={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Re(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function x2(e){return!!(e&&e.then)}const bm=oe({compatConfig:{MODE:3},name:"ActionButton",props:Zae,setup(e,t){let{slots:n}=t;const o=te(!1),r=te(),l=te(!1);let i;const a=YE();je(()=>{e.autofocus&&(i=setTimeout(()=>{var d,f;return(f=(d=Hn(r.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Ze(()=>{clearTimeout(i)});const s=function(){for(var d,f=arguments.length,g=new Array(f),v=0;v{x2(d)&&(l.value=!0,d.then(function(){a.value||(l.value=!1),s(...arguments),o.value=!1},f=>(a.value||(l.value=!1),o.value=!1,Promise.reject(f))))},u=d=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){s();return}let g;if(e.emitEvent){if(g=f(d),e.quitOnNullishReturnValue&&!x2(g)){o.value=!1,s(d);return}}else if(f.length)g=f(e.close),o.value=!1;else if(g=f(),!g){s();return}c(g)};return()=>{const{type:d,prefixCls:f,buttonProps:g}=e;return p(zt,D(D(D({},ef(d)),{},{onClick:u,loading:l.value,prefixCls:f},g),{},{ref:r}),n)}}});function Li(e){return typeof e=="function"?e():e}const qE=oe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Io("Modal");return()=>{const{icon:r,onCancel:l,onOk:i,close:a,okText:s,closable:c=!1,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:I,content:T,direction:_,closeIcon:E,modalRender:A,focusTriggerAfterClose:R,rootPrefixCls:z,bodyStyle:M,wrapClassName:B,footer:N}=e;let F=r;if(!r&&r!==null)switch(O){case"info":F=p(Wa,null,null);break;case"success":F=p(zr,null,null);break;case"error":F=p(Qn,null,null);break;default:F=p(Hr,null,null)}const L=e.okType||"primary",k=e.prefixCls||"ant-modal",j=`${k}-confirm`,H=n.style||{},Y=S??O==="confirm",Z=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${k}-confirm`,ee=ie(U,`${U}-${e.type}`,{[`${U}-rtl`]:_==="rtl"},n.class),G=o.value,J=Y&&p(bm,{actionFn:l,close:a,autofocus:Z==="cancel",buttonProps:y,prefixCls:`${z}-btn`},{default:()=>[Li(e.cancelText)||G.cancelText]});return p(an,{prefixCls:k,class:ee,wrapClassName:ie({[`${U}-centered`]:!!g},B),onCancel:Q=>a==null?void 0:a({triggerCancel:!0},Q),open:w,title:"",footer:"",transitionName:_n(z,"zoom",e.transitionName),maskTransitionName:_n(z,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:H,bodyStyle:M,width:$,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,closable:c,closeIcon:E,modalRender:A,focusTriggerAfterClose:R},{default:()=>[p("div",{class:`${j}-body-wrapper`},[p("div",{class:`${j}-body`},[Li(F),I===void 0?null:p("span",{class:`${j}-title`},[Li(I)]),p("div",{class:`${j}-content`},[Li(T)])]),N!==void 0?Li(N):p("div",{class:`${j}-btns`},[J,p(bm,{type:L,actionFn:i,close:a,autofocus:Z==="ok",buttonProps:b,prefixCls:`${z}-btn`},{default:()=>[Li(s)||(Y?G.okText:G.justOkText)]})])])]})}}}),Qae=[],Ql=Qae,Jae=e=>{const t=document.createDocumentFragment();let n=m(m({},et(e,["parentContext","appContext"])),{close:l,open:!0}),o=null;function r(){o&&(bl(null,t),o=null);for(var c=arguments.length,u=new Array(c),d=0;dg&&g.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...u.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,u)}}),n.visible&&delete n.visible,i(n)}function i(c){typeof c=="function"?n=c(n):n=m(m({},n),c),o&&KN(o,n,t)}const a=c=>{const u=vn,d=u.prefixCls,f=c.prefixCls||`${d}-modal`,g=u.iconPrefixCls,v=sne();return p(zy,D(D({},u),{},{prefixCls:d}),{default:()=>[p(qE,D(D({},c),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:g,locale:v,cancelText:c.cancelText||v.cancelText}),null)]})};function s(c){const u=p(a,m({},c));return u.appContext=e.parentContext||e.appContext||u.appContext,bl(u,t),u}return o=s(n),Ql.push(l),{destroy:l,update:i}},Hc=Jae;function ZE(e){return m(m({},e),{type:"warning"})}function QE(e){return m(m({},e),{type:"info"})}function JE(e){return m(m({},e),{type:"success"})}function e5(e){return m(m({},e),{type:"error"})}function t5(e){return m(m({},e),{type:"confirm"})}const ese=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),tse=oe({name:"HookModal",inheritAttrs:!1,props:qe(ese(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),l=P(()=>e.config),{direction:i,getPrefixCls:a}=Xf(),s=a("modal"),c=a(),u=()=>{var v,h;e==null||e.afterClose(),(h=(v=l.value).afterClose)===null||h===void 0||h.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(o=l.value.okCancel)!==null&&o!==void 0?o:l.value.type==="confirm",[g]=Io("Modal",jn.Modal);return()=>p(qE,D(D({prefixCls:s,rootPrefixCls:c},l.value),{},{close:d,open:r.value,afterClose:u,okText:l.value.okText||(f?g==null?void 0:g.value.okText:g==null?void 0:g.value.justOkText),direction:l.value.direction||i.value,cancelText:l.value.cancelText||(g==null?void 0:g.value.cancelText)}),null)}});let w2=0;const nse=oe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=te([]);return n({addModal:l=>(o.value.push(l),o.value=o.value.slice(),()=>{o.value=o.value.filter(i=>i!==l)})}),()=>o.value.map(l=>l())}});function n5(){const e=te(null),t=te([]);be(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=l=>function(a){var s;w2+=1;const c=te(!0),u=te(null),d=te($t(a)),f=te({});be(()=>a,$=>{b(m(m({},kt($)?$.value:$),f.value))});const g=function(){c.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let v;const h=()=>p(tse,{key:`modal-${w2}`,config:l(d.value),ref:u,open:c.value,destroyAction:g,afterClose:()=>{v==null||v()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(h),v&&Ql.push(v);const b=$=>{d.value=m(m({},d.value),$)};return{destroy:()=>{u.value?g():t.value=[...t.value,g]},update:$=>{f.value=$,u.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(QE),success:n(JE),error:n(e5),warning:n(ZE),confirm:n(t5)})),r=Symbol("modalHolderKey");return[o.value,()=>p(nse,{key:r,ref:e},null)]}function o5(e){return Hc(ZE(e))}an.useModal=n5;an.info=function(t){return Hc(QE(t))};an.success=function(t){return Hc(JE(t))};an.error=function(t){return Hc(e5(t))};an.warning=o5;an.warn=o5;an.confirm=function(t){return Hc(t5(t))};an.destroyAll=function(){for(;Ql.length;){const t=Ql.pop();t&&t()}};an.install=function(e){return e.component(an.name,an),e};const r5=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:l="",prefixCls:i}=e;let a;if(typeof n=="function")a=n({value:t});else{const s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c)a=s;else{const u=c[1];let d=c[2]||"0",f=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof o=="number"&&(f=f.padEnd(o,"0").slice(0,o>0?o:0)),f&&(f=`${r}${f}`),a=[p("span",{key:"int",class:`${i}-content-value-int`},[u,d]),f&&p("span",{key:"decimal",class:`${i}-content-value-decimal`},[f])]}}return p("span",{class:`${i}-content-value`},[a])};r5.displayName="StatisticNumber";const ose=r5,rse=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:l,colorTextHeading:i,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:m(m({},Xe(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:i,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},lse=Ve("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=Fe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[rse(r)]}),l5=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Le([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:ve(),formatter:St(),precision:Number,prefix:In(),suffix:In(),title:In(),loading:Ce()}),wr=oe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:qe(l5(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("statistic",e),[i,a]=lse(r);return()=>{var s,c,u,d,f,g,v;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(c=n.title)===null||c===void 0?void 0:c.call(n),x=(u=e.prefix)!==null&&u!==void 0?u:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(f=e.suffix)!==null&&f!==void 0?f:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let w=p(ose,D({"data-for-update":Date.now()},m(m({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),i(p("div",D(D({},o),{},{class:[S,{[`${S}-rtl`]:l.value==="rtl"},o.class,a.value]}),[$&&p("div",{class:`${S}-title`},[$]),p(On,{paragraph:!1,loading:e.loading},{default:()=>[p("div",{style:b,class:`${S}-content`},[x&&p("span",{class:`${S}-content-prefix`},[x]),w,C&&p("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),ise=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ase(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),l=t.replace(o,"[]"),i=ise.reduce((s,c)=>{let[u,d]=c;if(s.includes(u)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${u}+`,"g"),g=>{const v=g.length;return f.toString().padStart(v,"0")})}return s},l);let a=0;return i.replace(o,()=>{const s=r[a];return a+=1,s})}function sse(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),l=Math.max(o-r,0);return ase(l,n)}const cse=1e3/30;function _h(e){return new Date(e).getTime()}const use=()=>m(m({},l5()),{value:Le([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),dse=oe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:qe(use(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=le(),l=le(),i=()=>{const{value:d}=e;_h(d)>=Date.now()?a():s()},a=()=>{if(r.value)return;const d=_h(e.value);r.value=setInterval(()=>{l.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),i()},cse)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,_h(d){let{value:f,config:g}=d;const{format:v}=e;return sse(f,m(m({},g),{format:v}))},u=d=>d;return je(()=>{i()}),An(()=>{i()}),Ze(()=>{s()}),()=>{const d=e.value;return p(wr,D({ref:l},m(m({},et(e,["onFinish","onChange"])),{value:d,valueRender:u,formatter:c})),o)}}});wr.Countdown=dse;wr.install=function(e){return e.component(wr.name,wr),e.component(wr.Countdown.name,wr.Countdown),e};const fse=wr.Countdown;var pse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const gse=pse;function O2(e){for(var t=1;t{const{keyCode:g}=f;g===Oe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:g}=f;g===Oe.ENTER&&o("click",f)},c=f=>{o("click",f)},u=()=>{i.value&&i.value.focus()},d=()=>{i.value&&i.value.blur()};return je(()=>{e.autofocus&&u()}),l({focus:u,blur:d}),()=>{var f;const{noStyle:g,disabled:v}=e,h=$se(e,["noStyle","disabled"]);let b={};return g||(b=m({},Cse)),v&&(b.pointerEvents="none"),p("div",D(D(D({role:"button",tabindex:0,ref:i},h),r),{},{onClick:c,onKeydown:a,onKeyup:s,style:m(m({},b),r.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Cf=xse,wse={small:8,middle:16,large:24},Ose=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),wrap:Ce()});function Pse(e){return typeof e=="string"?wse[e]:e||0}const Hs=oe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:Ose(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:l,direction:i}=Te("space",e),[a,s]=XI(r),c=m8(),u=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=l==null?void 0:l.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=le(),f=le();be(u,()=>{[d.value,f.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(y=>Pse(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=P(()=>ie(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>i.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return c.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${f.value}px`),m(m({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=_t(C),w=O.length;if(w===0)return null;const I=(S=n.split)===null||S===void 0?void 0:S.call(n),T=`${r.value}-item`,_=d.value,E=w-1;return p("div",D(D({},o),{},{class:[v.value,o.class],style:[b.value,o.style]}),[O.map((A,R)=>{let z=C.indexOf(A);z===-1&&(z=`$$space-${R}`);let M={};return c.value||(x==="vertical"?R{const{componentCls:t,antCls:n}=e;return{[t]:m(m({},Xe(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":m(m({},Jf(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":m({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Gt),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":m({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Gt),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Tse=Ve("PageHeader",e=>{const t=Fe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Ise(t)]}),Ese=()=>({backIcon:In(),prefixCls:String,title:In(),subTitle:In(),breadcrumb:V.object,tags:In(),footer:In(),extra:In(),avatar:Re(),ghost:{type:Boolean,default:void 0},onBack:Function}),Mse=oe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ese(),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,pageHeader:a}=Te("page-header",e),[s,c]=Tse(l),u=te(!1),d=YE(),f=x=>{let{width:C}=x;d.value||(u.value=C<768)},g=P(()=>{var x,C,O;return(O=(x=e.ghost)!==null&&x!==void 0?x:(C=a==null?void 0:a.value)===null||C===void 0?void 0:C.ghost)!==null&&O!==void 0?O:!0}),v=()=>{var x,C,O;return(O=(x=e.backIcon)!==null&&x!==void 0?x:(C=o.backIcon)===null||C===void 0?void 0:C.call(o))!==null&&O!==void 0?O:i.value==="rtl"?p(Sse,null,null):p(vse,null,null)},h=x=>!x||!e.onBack?null:p(bi,{componentName:"PageHeader",children:C=>{let{back:O}=C;return p("div",{class:`${l.value}-back`},[p(Cf,{onClick:w=>{n("back",w)},class:`${l.value}-back-button`,"aria-label":O},{default:()=>[x]})])}},null),b=()=>{var x;return e.breadcrumb?p(oi,e.breadcrumb,null):(x=o.breadcrumb)===null||x===void 0?void 0:x.call(o)},y=()=>{var x,C,O,w,I,T,_,E,A;const{avatar:R}=e,z=(x=e.title)!==null&&x!==void 0?x:(C=o.title)===null||C===void 0?void 0:C.call(o),M=(O=e.subTitle)!==null&&O!==void 0?O:(w=o.subTitle)===null||w===void 0?void 0:w.call(o),B=(I=e.tags)!==null&&I!==void 0?I:(T=o.tags)===null||T===void 0?void 0:T.call(o),N=(_=e.extra)!==null&&_!==void 0?_:(E=o.extra)===null||E===void 0?void 0:E.call(o),F=`${l.value}-heading`,L=z||M||B||N;if(!L)return null;const k=v(),j=h(k);return p("div",{class:F},[(j||R||L)&&p("div",{class:`${F}-left`},[j,R?p(ni,R,null):(A=o.avatar)===null||A===void 0?void 0:A.call(o),z&&p("span",{class:`${F}-title`,title:typeof z=="string"?z:void 0},[z]),M&&p("span",{class:`${F}-sub-title`,title:typeof M=="string"?M:void 0},[M]),B&&p("span",{class:`${F}-tags`},[B])]),N&&p("span",{class:`${F}-extra`},[p(i5,null,{default:()=>[N]})])])},S=()=>{var x,C;const O=(x=e.footer)!==null&&x!==void 0?x:_t((C=o.footer)===null||C===void 0?void 0:C.call(o));return rD(O)?null:p("div",{class:`${l.value}-footer`},[O])},$=x=>p("div",{class:`${l.value}-content`},[x]);return()=>{var x,C;const O=((x=e.breadcrumb)===null||x===void 0?void 0:x.routes)||o.breadcrumb,w=e.footer||o.footer,I=yt((C=o.default)===null||C===void 0?void 0:C.call(o)),T=ie(l.value,{"has-breadcrumb":O,"has-footer":w,[`${l.value}-ghost`]:g.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-compact`]:u.value},r.class,c.value);return s(p(xo,{onResize:f},{default:()=>[p("div",D(D({},r),{},{class:T}),[b(),y(),I.length?$(I):null,S()])]}))}}}),_se=Tt(Mse),Ase=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:l,marginXS:i,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:i,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+i,marginBottom:i,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},Rse=Ve("Popconfirm",e=>Ase(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var Dse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Db()),{prefixCls:String,content:St(),title:St(),description:St(),okType:Be("primary"),disabled:{type:Boolean,default:!1},okText:St(),cancelText:St(),icon:St(),okButtonProps:Re(),cancelButtonProps:Re(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Nse=oe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:qe(Bse(),m(m({},OT()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=le();It(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=i.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[a,s]=Pt(!1,{value:ze(e,"open")}),c=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},u=O=>{c(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},f=O=>{var w;c(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===Oe.ESC&&a&&c(!1,O)},v=O=>{const{disabled:w}=e;w||c(O)},{prefixCls:h,getPrefixCls:b}=Te("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=Rse(h),[x]=Io("Popconfirm",jn.Popconfirm),C=()=>{var O,w,I,T,_;const{okButtonProps:E,cancelButtonProps:A,title:R=(O=n.title)===null||O===void 0?void 0:O.call(n),description:z=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:M=(I=n.cancel)===null||I===void 0?void 0:I.call(n),okText:B=(T=n.okText)===null||T===void 0?void 0:T.call(n),okType:N,icon:F=((_=n.icon)===null||_===void 0?void 0:_.call(n))||p(Hr,null,null),showCancel:L=!0}=e,{cancelButton:k,okButton:j}=n,H=m({onClick:f,size:"small"},A),Y=m(m(m({onClick:d},ef(N)),{size:"small"}),E);return p("div",{class:`${h.value}-inner-content`},[p("div",{class:`${h.value}-message`},[F&&p("span",{class:`${h.value}-message-icon`},[F]),p("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!z}]},[R])]),z&&p("div",{class:`${h.value}-description`},[z]),p("div",{class:`${h.value}-buttons`},[L?k?k(H):p(zt,H,{default:()=>[M||x.value.cancelText]}):null,j?j(Y):p(bm,{buttonProps:m(m({size:"small"},ef(N)),E),actionFn:d,close:u,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[B||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:I,trigger:T="click"}=e,_=Dse(e,["placement","overlayClassName","trigger"]),E=et(_,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),A=ie(h.value,I);return $(p(Lb,D(D(D({},E),l),{},{trigger:T,placement:w,onOpenChange:v,open:a.value,overlayClassName:A,transitionName:_n(y.value,"zoom-big",e.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[VN(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:R=>{g(R)}},!1)],content:C}))}}}),Fse=Tt(Nse),Lse=["normal","exception","active","success"],Yp=()=>({prefixCls:String,type:Be(),percent:Number,format:ve(),status:Be(),showInfo:Ce(),strokeWidth:Number,strokeLinecap:Be(),strokeColor:St(),trailColor:String,width:Number,success:Re(),gapDegree:Number,gapPosition:Be(),size:Le([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Be()});function li(e){return!e||e<0?0:e>100?100:e}function xf(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(xt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function kse(e){let{percent:t,success:n,successPercent:o}=e;const r=li(xf({success:n,successPercent:o}));return[r,li(li(t)-r)]}function zse(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||la.green,n||null]}const qp=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,s=u??8):typeof e=="number"?[a,s]=[e,e]:[a=14,s=8]=e,a*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[a,s]=[e,e]:[a=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,s]=[e,e]:(a=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(i=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&i!==void 0?i:120));return{width:a,height:s}};var Hse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Yp()),{strokeColor:St(),direction:Be()}),Wse=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},Vse=(e,t)=>{const{from:n=la.blue,to:o=la.blue,direction:r=t==="rtl"?"to left":"to right"}=e,l=Hse(e,["from","to","direction"]);if(Object.keys(l).length!==0){const i=Wse(l);return{backgroundImage:`linear-gradient(${r}, ${i})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},Kse=oe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:jse(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Vse(g,v):{backgroundColor:g}}),l=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),a=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>qp(a.value,"line",{strokeWidth:e.strokeWidth})),c=P(()=>{const{percent:g}=e;return m({width:`${li(g)}%`,height:`${s.value.height}px`,borderRadius:l.value},r.value)}),u=P(()=>xf(e)),d=P(()=>{const{success:g}=e;return{width:`${li(u.value)}%`,height:`${s.value.height}px`,borderRadius:l.value,backgroundColor:g==null?void 0:g.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return p(We,null,[p("div",D(D({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,f]}),[p("div",{class:`${e.prefixCls}-inner`,style:i.value},[p("div",{class:`${e.prefixCls}-bg`,style:c.value},null),u.value!==void 0?p("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),Gse={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Xse=e=>{const t=le(null);return An(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const l=(r==null?void 0:r.$el)||r;if(!l)return;o=!0;const i=l.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Use={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Yse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;const i=50-o/2;let a=0,s=-i,c=0,u=-2*i;switch(l){case"left":a=-i,s=0,c=2*i,u=0;break;case"right":a=i,s=0,c=-2*i,u=0;break;case"bottom":s=i,u=2*i;break}const d=`M 50,50 m ${a},${s} - a ${i},${i} 0 1 1 ${c},${-u} - a ${i},${i} 0 1 1 ${-c},${u}`,f=Math.PI*2*i,g={stroke:n,strokeDasharray:`${t/100*(f-r)}px ${f}px`,strokeDashoffset:`-${r/2+e/100*(f-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const qse=oe({compatConfig:{MODE:3},name:"VCCircle",props:qe(Use,Gse),setup(e){I2+=1;const t=le(I2),n=P(()=>E2(e.percent)),o=P(()=>E2(e.strokeColor)),[r,l]=Sy();Xse(l);const i=()=>{const{prefixCls:a,strokeWidth:s,strokeLinecap:c,gapDegree:u,gapPosition:d}=e;let f=0;return n.value.map((g,v)=>{const h=o.value[v]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${a}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=M2(f,g,h,s,u,d);f+=g;const $={key:v,d:y,stroke:b,"stroke-linecap":c,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${a}-circle-path`,style:S};return p("path",D({ref:r(v)},$),null)})};return()=>{const{prefixCls:a,strokeWidth:s,trailWidth:c,gapDegree:u,gapPosition:d,trailColor:f,strokeLinecap:g,strokeColor:v}=e,h=Yse(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=M2(0,100,f,s,u,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:f,"stroke-linecap":g,"stroke-width":c||s,"fill-opacity":"0",class:`${a}-circle-trail`,style:y};return p("svg",D({class:`${a}-circle`,viewBox:"0 0 100 100"},h),[S&&p("defs",null,[p("linearGradient",{id:`${a}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>T2(x)-T2(C)).map((x,C)=>p("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),p("path",$,null),i().reverse()])}}}),Zse=()=>m(m({},Yp()),{strokeColor:St()}),Qse=3,Jse=e=>Qse/e*100,ece=oe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:qe(Zse(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),l=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),i=P(()=>qp(l.value,"circle")),a=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),c=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(Jse(i.value.width),6)}),u=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>kse(e)),f=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>zse({success:e.success,strokeColor:e.strokeColor})),v=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var h;const b=p(qse,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return p("div",D(D({},o),{},{class:[v.value,o.class],style:[o.style,s.value]}),[i.value.width<=20?p(Yn,null,{default:()=>[p("span",null,[b])],title:n.default}):p(We,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),tce=()=>m(m({},Yp()),{steps:Number,strokeColor:Le(),trailColor:String}),nce=oe({compatConfig:{MODE:3},name:"Steps",props:tce(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[e.size==="small"?2:14,e.strokeWidth||8]}),l=P(()=>qp(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=P(()=>{const{steps:a,strokeColor:s,trailColor:c,prefixCls:u}=e,d=[];for(let f=0;f{var a;return p("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),oce=new nt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),rce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:oce,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},lce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ice=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},ace=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},sce=Ve("Progress",e=>{const t=e.marginXXS/2,n=Fe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[rce(n),lce(n),ice(n),ace(n)]});var cce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),c=P(()=>{const{percent:v=0}=e,h=xf(e);return parseInt(h!==void 0?h.toString():v.toString(),10)}),u=P(()=>{const{status:v}=e;return!Lse.includes(v)&&c.value>=100?"success":v||"normal"}),d=P(()=>{const{type:v,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:v==="circle"&&qp(b,"circle").width<=20,[`${y}-${v==="dashboard"&&"circle"||v}`]:!0,[`${y}-status-${u.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:l.value==="rtl",[a.value]:!0}}),f=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:h,type:b,percent:y,title:S}=e,$=xf(e);if(!v)return null;let x;const C=h||(n==null?void 0:n.format)||(w=>`${w}%`),O=b==="line";return h||n!=null&&n.format||u.value!=="exception"&&u.value!=="success"?x=C(li(y),li($)):u.value==="exception"?x=p(O?Qn:Zn,null,null):u.value==="success"&&(x=p(O?zr:vp,null,null)),p("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:v,steps:h,title:b}=e,{class:y}=o,S=cce(o,["class"]),$=g();let x;return v==="line"?x=h?p(nce,D(D({},e),{},{strokeColor:f.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):p(Kse,D(D({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:l.value}),{default:()=>[$]}):(v==="circle"||v==="dashboard")&&(x=p(ece,D(D({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[$]})),i(p("div",D(D({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),b1=Tt(uce);function dce(e){let t=e.scrollX;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function fce(e){let t,n;const o=e.ownerDocument,{body:r}=o,l=o&&o.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=l.clientLeft||r.clientLeft||0,n-=l.clientTop||r.clientTop||0,{left:t,top:n}}function pce(e){const t=fce(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=dce(o),t.left}var gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const hce=gce;function _2(e){for(var t=1;t{const{index:s}=e;n("hover",a,s)},r=a=>{const{index:s}=e;n("click",a,s)},l=a=>{const{index:s}=e;a.keyCode===13&&n("click",a,s)},i=P(()=>{const{prefixCls:a,index:s,value:c,allowHalf:u,focused:d}=e,f=s+1;let g=a;return c===0&&s===0&&d?g+=` ${a}-focused`:u&&c+.5>=f&&c{const{disabled:a,prefixCls:s,characterRender:c,character:u,index:d,count:f,value:g}=e,v=typeof u=="function"?u({disabled:a,prefixCls:s,index:d,count:f,value:g}):u;let h=p("li",{class:i.value},[p("div",{onClick:a?null:r,onKeydown:a?null:l,onMousemove:a?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:a?-1:0},[p("div",{class:`${s}-first`},[v]),p("div",{class:`${s}-second`},[v])])]);return c&&(h=c(h,e)),h}}}),Sce=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},$ce=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Cce=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Sce(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),$ce(e))}},xce=Ve("Rate",e=>{const{colorFillContent:t}=e,n=Fe(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Cce(n)]}),wce=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:V.any,autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),Oce=oe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:qe(wce(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("rate",e),[s,c]=xce(i),u=Qt(),d=le(),[f,g]=Sy(),v=ut({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});be(()=>e.value,()=>{v.value=e.value});const h=E=>Hn(g.value.get(E)),b=(E,A)=>{const R=a.value==="rtl";let z=E+1;if(e.allowHalf){const M=h(E),B=pce(M),N=M.clientWidth;(R&&A-B>N/2||!R&&A-B{e.value===void 0&&(v.value=E),r("update:value",E),r("change",E),u.onFieldChange()},S=(E,A)=>{const R=b(A,E.pageX);R!==v.cleanedValue&&(v.hoverValue=R,v.cleanedValue=null),r("hoverChange",R)},$=()=>{v.hoverValue=void 0,v.cleanedValue=null,r("hoverChange",void 0)},x=(E,A)=>{const{allowClear:R}=e,z=b(A,E.pageX);let M=!1;R&&(M=z===v.value),$(),y(M?0:z),v.cleanedValue=M?z:null},C=E=>{v.focused=!0,r("focus",E)},O=E=>{v.focused=!1,r("blur",E),u.onFieldBlur()},w=E=>{const{keyCode:A}=E,{count:R,allowHalf:z}=e,M=a.value==="rtl";A===Oe.RIGHT&&v.value0&&!M||A===Oe.RIGHT&&v.value>0&&M?(z?v.value-=.5:v.value-=1,y(v.value),E.preventDefault()):A===Oe.LEFT&&v.value{e.disabled||d.value.focus()};l({focus:I,blur:()=>{e.disabled||d.value.blur()}}),je(()=>{const{autofocus:E,disabled:A}=e;E&&!A&&I()});const _=(E,A)=>{let{index:R}=A;const{tooltips:z}=e;return z?p(Yn,{title:z[R]},{default:()=>[E]}):E};return()=>{const{count:E,allowHalf:A,disabled:R,tabindex:z,id:M=u.id.value}=e,{class:B,style:N}=o,F=[],L=R?`${i.value}-disabled`:"",k=e.character||n.character||(()=>p(mce,null,null));for(let H=0;Hp("svg",{width:"252",height:"294"},[p("defs",null,[p("path",{d:"M0 .387h251.772v251.772H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .012)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),p("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),p("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),p("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),p("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),p("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),p("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),p("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),p("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),p("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),p("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),p("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),p("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),p("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),p("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),p("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),p("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),p("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),p("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),p("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),p("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),p("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),p("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),p("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),p("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),p("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),p("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),p("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),p("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),p("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),p("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),p("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),p("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),p("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),p("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),p("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),p("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Ace=_ce,Rce=()=>p("svg",{width:"254",height:"294"},[p("defs",null,[p("path",{d:"M0 .335h253.49v253.49H0z"},null),p("path",{d:"M0 293.665h253.49V.401H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .067)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),p("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),p("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),p("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),p("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),p("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),p("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),p("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),p("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),p("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),p("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),p("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),p("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),p("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),p("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),p("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),p("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),p("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),p("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),p("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),p("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),p("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),p("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),p("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),p("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),p("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),p("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),p("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),p("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),p("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),p("mask",{fill:"#fff"},null),p("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),p("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),p("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),p("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Dce=Rce,Bce=()=>p("svg",{width:"251",height:"294"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),p("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),p("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),p("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),p("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),p("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),p("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),p("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),p("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),p("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),p("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),p("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),p("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),p("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),p("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),p("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),p("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),p("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),p("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),p("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),p("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),p("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),p("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),p("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),p("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),p("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),p("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),p("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),p("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),p("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),p("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),p("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),p("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),p("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),p("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),p("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Nce=Bce,Fce=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:l,paddingXS:i,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${a*2}px ${l}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Lce=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},kce=e=>[Fce(e),Lce(e)],zce=e=>kce(e),Hce=Ve("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,l=e.colorInfo,i=e.colorError,a=e.colorSuccess,s=e.colorWarning,c=Fe(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:l,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:s});return[zce(c)]},{imageWidth:250,imageHeight:295}),jce={success:zr,error:Qn,info:Hr,warning:Mce},jc={404:Ace,500:Dce,403:Nce},Wce=Object.keys(jc),Vce=()=>({prefixCls:String,icon:V.any,status:{type:[Number,String],default:"info"},title:V.any,subTitle:V.any,extra:V.any}),Kce=(e,t)=>{let{status:n,icon:o}=t;if(Wce.includes(`${n}`)){const i=jc[n];return p("div",{class:`${e}-icon ${e}-image`},[p(i,null,null)])}const r=jce[n],l=o||p(r,null,null);return p("div",{class:`${e}-icon`},[l])},Gce=(e,t)=>t&&p("div",{class:`${e}-extra`},[t]),ii=oe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:Vce(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("result",e),[i,a]=Hce(r),s=P(()=>ie(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:l.value==="rtl"}));return()=>{var c,u,d,f,g,v,h,b;const y=(c=e.title)!==null&&c!==void 0?c:(u=n.title)===null||u===void 0?void 0:u.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(v=n.icon)===null||v===void 0?void 0:v.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return i(p("div",D(D({},o),{},{class:[s.value,o.class]}),[Kce(C,{status:e.status,icon:$}),p("div",{class:`${C}-title`},[y]),S&&p("div",{class:`${C}-subtitle`},[S]),Gce(C,x),n.default&&p("div",{class:`${C}-content`},[n.default()])]))}}});ii.PRESENTED_IMAGE_403=jc[403];ii.PRESENTED_IMAGE_404=jc[404];ii.PRESENTED_IMAGE_500=jc[500];ii.install=function(e){return e.component(ii.name,ii),e};const Xce=ii,Uce=Tt(Ry),a5=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:l,class:i}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=m(m({},l),u);return o?p("div",{class:i,style:d},null):null};a5.inheritAttrs=!1;const s5=a5,Yce=(e,t,n,o,r,l)=>{It();const i=Object.keys(t).map(parseFloat).sort((a,s)=>a-s);if(n&&o)for(let a=r;a<=l;a+=o)i.indexOf(a)===-1&&i.push(a);return i},c5=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:l,marks:i,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:f,min:g,dotStyle:v,activeDotStyle:h}=n,b=f-g,y=Yce(r,i,a,s,g,f).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!c&&S===d||c&&S<=d&&S>=u;let C=r?m(m({},v),{[l?"top":"bottom"]:$}):m(m({},v),{[l?"right":"left"]:$});x&&(C=m(m({},C),h));const O=ie({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:l});return p("span",{class:O,style:C,key:S},null)});return p("div",{class:`${o}-step`},[y])};c5.inheritAttrs=!1;const qce=c5,u5=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:l,reverse:i,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:f,onClickLabel:g}=n,v=Object.keys(a),h=o.mark,b=d-f,y=v.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof a[S]=="function"?a[S]():a[S],x=typeof $=="object"&&!Kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===c||s&&S<=c&&S>=u,w=ie({[`${r}-text`]:!0,[`${r}-text-active`]:O}),I={marginBottom:"-50%",[i?"top":"bottom"]:`${(S-f)/b*100}%`},T={transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:`${(S-f)/b*100}%`},_=l?I:T,E=x?m(m({},_),$.style):_,A={[nn?"onTouchstartPassive":"onTouchstart"]:R=>g(R,S)};return p("span",D({class:w,style:E,key:S,onMousedown:R=>g(R,S)},A),[C])});return p("div",{class:r},[y])};u5.inheritAttrs=!1;const Zce=u5,d5=oe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=te(!1),i=te(),a=()=>{document.activeElement===i.value&&(l.value=!0)},s=b=>{l.value=!1,o("blur",b)},c=()=>{l.value=!1},u=()=>{var b;(b=i.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=i.value)===null||b===void 0||b.blur()},f=()=>{l.value=!0,u()},g=b=>{b.preventDefault(),u(),o("mousedown",b)};r({focus:u,blur:d,clickFocus:f,ref:i});let v=null;je(()=>{v=Mt(document,"mouseup",a)}),Ze(()=>{v==null||v.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:I,onMouseenter:T,onMouseleave:_}=e,E=ie(n.class,{[`${b}-handle-click-focused`]:l.value}),A={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},R=[n.style,h.value];let z=C||0;(y||C===null)&&(z=null);let M;I&&(M=I(x));const B=m(m(m(m({},n),{role:"slider",tabindex:z}),A),{class:E,onBlur:s,onKeydown:c,onMousedown:g,onMouseenter:T,onMouseleave:_,ref:i,style:R});return p("div",D(D({},B),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":M}),null)}}});function Ah(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function f5(e,t){let{min:n,max:o}=t;return eo}function R2(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function D2(e,t){let{marks:n,step:o,min:r,max:l}=t;const i=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,p5(o)),c=Math.floor((l*s-r*s)/(o*s)),u=Math.min((e-r)/o,c),d=Math.round(u)*o+r;i.push(d)}const a=i.map(s=>Math.abs(e-s));return i[a.indexOf(Math.min(...a))]}function p5(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function B2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function N2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function F2(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function $1(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function g5(e,t){const{step:n}=t,o=isFinite(D2(e,t))?D2(e,t):0;return n===null?o:parseFloat(o.toFixed(p5(n)))}function Aa(e){e.stopPropagation(),e.preventDefault()}function Qce(e,t,n){const o={increase:(i,a)=>i+a,decrease:(i,a)=>i-a},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),l=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[l]?n.marks[l]:t}function h5(e,t,n){const o="increase",r="decrease";let l=o;switch(e.keyCode){case Oe.UP:l=t&&n?r:o;break;case Oe.RIGHT:l=!t&&n?r:o;break;case Oe.DOWN:l=t&&n?o:r;break;case Oe.LEFT:l=!t&&n?o:r;break;case Oe.END:return(i,a)=>a.max;case Oe.HOME:return(i,a)=>a.min;case Oe.PAGE_UP:return(i,a)=>i+a.step*2;case Oe.PAGE_DOWN:return(i,a)=>i-a.step*2;default:return}return(i,a)=>Qce(l,i,a)}var Jce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:l,style:i}=n,a=Jce(n,["index","directives","className","style"]);if(delete a.dragging,a.value===null)return null;const s=m(m({},a),{class:l,style:i,key:o});return p(d5,s,null)},onDown(n,o){let r=o;const{draggableTrack:l,vertical:i}=this.$props,{bounds:a}=this.$data,s=l&&this.positionGetValue?this.positionGetValue(r)||[]:[],c=Ah(n,this.handlesRefs);if(this.dragTrack=l&&a.length>=2&&!c&&!s.map((u,d)=>{const f=d?!0:u>=a[d];return d===s.length-1?u<=a[d]:f}).some(u=>!u),this.dragTrack)this.dragOffset=r,this.startBounds=[...a];else{if(!c)this.dragOffset=0;else{const u=F2(i,n.target);this.dragOffset=r-u,r=u}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=B2(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(R2(n))return;const o=this.vertical,r=N2(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Aa(n)},onFocus(n){const{vertical:o}=this;if(Ah(n,this.handlesRefs)&&!this.dragTrack){const r=F2(o,n.target);this.dragOffset=0,this.onStart(r),Aa(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=B2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(R2(n)||!this.sliderRef){this.onEnd();return}const o=N2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Ah(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,l=n.getBoundingClientRect();return o?r?l.bottom:l.top:window.scrollX+(r?l.right:l.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=Mt(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Mt(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Mt(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Mt(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:l}=this,i=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-i)*(l-r)+r:i*(l-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,l=(n-o)/(r-o);return Math.max(0,l*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:l,included:i,disabled:a,vertical:s,reverse:c,min:u,max:d,maximumTrackStyle:f,railStyle:g,dotStyle:v,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=ie(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:a,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,reverse:c,class:`${n}-mark`,onClickLabel:a?Ll:this.onClickMarkLabel},w={[nn?"onTouchstartPassive":"onTouchstart"]:a?Ll:this.onTouchStart};return p("div",D(D({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:a?Ll:this.onMouseDown,onMouseup:a?Ll:this.onMouseUp,onKeydown:a?Ll:this.onKeyDown,onFocus:a?Ll:this.onFocus,onBlur:a?Ll:this.onBlur,style:S}),[p("div",{class:`${n}-rail`,style:m(m({},f),g)},null),$,p(qce,{prefixCls:n,vertical:s,reverse:c,marks:o,dots:r,step:l,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,dotStyle:v,activeDotStyle:h},null),x,p(Zce,O,{mark:this.$slots.mark}),Gf(this)])}})}const eue=oe({compatConfig:{MODE:3},name:"Slider",mixins:[xi],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),f5(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!xr(this,"value"),n=e.sValue>this.max?m(m({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Aa(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{sValue:r}=this,l=o(r,this.$props),i=this.trimAlignValue(l);if(i===r)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=m(m({},this.$props),t),o=$1(e,n);return g5(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:l,mergedTrackStyle:i,length:a,offset:s}=e;return p(s5,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:m(m({},l),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:l,handleStyle:i,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:f,startPoint:g,reverse:v,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:f,reverse:v,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:i[0]||i,ref:I=>this.saveHandle(0,I),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=l[0]||l;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),tue=v5(eue),ls=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:l,pushable:i}=r,a=Number(i),s=$1(t,r);let c=s;return!l&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),g5(c,r)},nue={defaultValue:V.arrayOf(V.number),value:V.arrayOf(V.number),count:Number,pushable:qP(V.oneOfType([V.looseBool,V.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:V.arrayOf(V.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},oue=oe({compatConfig:{MODE:3},name:"Range",mixins:[xi],inheritAttrs:!1,props:qe(nue,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=xr(this,"defaultValue")?this.defaultValue:o;let{value:l}=this;l===void 0&&(l=r);const i=l.map((s,c)=>ls({value:s,handle:c,props:this.$props}));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>ls({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>ls({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>f5(o,this.$props))){const o=e.map(r=>$1(r,this.$props));this.$emit("change",o)}},onChange(e){if(!xr(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(l=>{e[l]!==void 0&&(r[l]=e[l])}),Object.keys(r).length&&this.setState(r)}const o=m(m({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),l=t[r];if(n===l)return null;const i=[...t];return i[r]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const l=[...t];l[this.prevMovedHandleIndex]=n,this.onChange({bounds:l})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Aa(e);const{$data:r,$props:l}=this,i=l.max||100,a=l.min||0;if(n){let f=l.vertical?-t:t;f=l.reverse?-f:f;const g=i-Math.max(...o),v=a-Math.min(...o),h=Math.min(Math.max(f/(this.getSliderLength()/100),v),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,i),a)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t),d=s[c];u!==d&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{bounds:r,sHandle:l}=this,i=r[l===null?this.recent:l],a=o(i,this.$props),s=ls({value:a,handle:l,bounds:r,props:this.$props});if(s===i)return;const c=!0;this.moveTo(s,c)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)a-s),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,l=o===null?r:o;n[l]=e;let i=l;this.$props.pushable!==!1?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort((a,s)=>a-s),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[i].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let l=0;if(e[t+1]-n=o.length||l<0)return!1;const i=t+n,a=o[l],{pushable:s}=this,c=Number(s),u=n*(e[i]-a);return this.pushHandle(e,i,n,c-u)?(e[t]=a,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return ls({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const l=this.$data||{},{bounds:i}=l;if(e=e===void 0?l.sHandle:e,r=Number(r),!o&&e!=null&&i!==void 0){if(e>0&&t<=i[e-1]+r)return i[e-1]+r;if(e=i[e+1]-r)return i[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:l,offsets:i,trackStyle:a}=e;return t.slice(0,-1).map((s,c)=>{const u=c+1,d=ie({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return p(s5,{class:d,vertical:r,reverse:o,included:l,offset:i[u-1],length:i[u]-i[u-1],style:a[c],key:u},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:l,min:i,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:f,tabindex:g,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=c||u,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(l||g[O]===null)&&(w=null);const I=e===O;return y({class:ie({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:I}),prefixCls:n,vertical:o,dragging:I,offset:S[O],value:C,index:O,tabindex:w,min:i,max:a,reverse:s,disabled:l,style:f[O],ref:T=>this.saveHandle(O,T),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),rue=v5(oue),lue=oe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:wT(),setup(e,t){let{attrs:n,slots:o}=t;const r=le(null),l=le(null);function i(){Ye.cancel(l.value),l.value=null}function a(){l.value=Ye(()=>{var c;(c=r.value)===null||c===void 0||c.forcePopupAlign(),l.value=null})}const s=()=>{i(),e.open&&a()};return be([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Bf(()=>{s()}),Ze(()=>{i()}),()=>p(Yn,D(D({ref:r},e),n),o)}}),iue=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:l,colorFillContentHover:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",height:n,margin:`${l}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${l}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${e.motionDurationMid}, - inset-block-start ${e.motionDurationMid}, - width ${e.motionDurationMid}, - height ${e.motionDurationMid}, - box-shadow ${e.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}}})}},m5=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:l}=e,i=t?"paddingBlock":"paddingInline",a=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return{[i]:o,[s]:o*3,[`${n}-rail`]:{[a]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[c]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:o,[a]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[c]:(o-l)/2}}},aue=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:m(m({},m5(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sue=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:m(m({},m5(e,!1)),{height:"100%"})}},cue=Ve("Slider",e=>{const t=Fe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[iue(t),aue(t),sue(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:l}});var L2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",due=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Le([Boolean,Object]),reverse:Ce(),min:Number,max:Number,step:Le([Object,Number]),marks:Re(),dots:Ce(),value:Le([Array,Number]),defaultValue:Le([Array,Number]),included:Ce(),disabled:Ce(),vertical:Ce(),tipFormatter:Le([Function,Object],()=>uue),tooltipOpen:Ce(),tooltipVisible:Ce(),tooltipPlacement:Be(),getTooltipPopupContainer:ve(),autofocus:Ce(),handleStyle:Le([Array,Object]),trackStyle:Le([Array,Object]),onChange:ve(),onAfterChange:ve(),onFocus:ve(),onBlur:ve(),"onUpdate:value":ve()}),fue=oe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:due(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=Te("slider",e),[d,f]=cue(i),g=Qt(),v=le(),h=le({}),b=(w,I)=>{h.value[w]=I},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=v.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=v.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};l({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:I}=w,T=w.info,{value:_,dragging:E,index:A}=T,R=L2(T,["value","dragging","index"]);const{tipFormatter:z,tooltipOpen:M=e.tooltipVisible,getTooltipPopupContainer:B}=e,N=z?h.value[A]||E:!1,F=M||M===void 0&&N;return p(lue,{prefixCls:I,title:z?z(_):"",open:F,placement:y.value,transitionName:`${a.value}-zoom-down`,key:A,overlayClassName:`${i.value}-tooltip`,getPopupContainer:B||(c==null?void 0:c.value)},{default:()=>[p(d5,D(D({},R),{},{value:_,onMouseenter:()=>b(A,!0),onMouseleave:()=>b(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:I,id:T=g.id.value}=e,_=L2(e,["tooltipPrefixCls","range","id"]),E=u.getPrefixCls("tooltip",w),A=ie(n.class,{[`${i.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!_.vertical&&(_.reverse=!_.reverse);let R;return typeof I=="object"&&(R=I.draggableTrack),d(I?p(rue,D(D(D({},n),_),{},{step:_.step,draggableTrack:R,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}):p(tue,D(D(D({},n),_),{},{id:T,step:_.step,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),pue=Tt(fue);function k2(e){return typeof e=="string"}function gue(){}const b5=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Be(),iconPrefix:String,icon:V.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:V.any,title:V.any,subTitle:V.any,progressDot:qP(V.oneOfType([V.looseBool,V.func])),tailContent:V.any,icons:V.shape({finish:V.any,error:V.any}).loose,onClick:ve(),onStepClick:ve(),stepIcon:ve(),itemRender:ve(),__legacy:Ce()}),y5=oe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:b5(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=a=>{o("click",a),o("stepClick",e.stepIndex)},i=a=>{let{icon:s,title:c,description:u}=a;const{prefixCls:d,stepNumber:f,status:g,iconPrefix:v,icons:h,progressDot:b=n.progressDot,stepIcon:y=n.stepIcon}=e;let S;const $=ie(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&k2(s),[`${v}icon-check`]:!s&&g==="finish"&&(h&&!h.finish||!h),[`${v}icon-cross`]:!s&&g==="error"&&(h&&!h.error||!h)}),x=p("span",{class:`${d}-icon-dot`},null);return b?typeof b=="function"?S=p("span",{class:`${d}-icon`},[b({iconDot:x,index:f-1,status:g,title:c,description:u,prefixCls:d})]):S=p("span",{class:`${d}-icon`},[x]):s&&!k2(s)?S=p("span",{class:`${d}-icon`},[s]):h&&h.finish&&g==="finish"?S=p("span",{class:`${d}-icon`},[h.finish]):h&&h.error&&g==="error"?S=p("span",{class:`${d}-icon`},[h.error]):s||g==="finish"||g==="error"?S=p("span",{class:$},null):S=p("span",{class:`${d}-icon`},[f]),y&&(S=y({index:f-1,status:g,title:c,description:u,node:S})),S};return()=>{var a,s,c,u;const{prefixCls:d,itemWidth:f,active:g,status:v="wait",tailContent:h,adjustMarginRight:b,disabled:y,title:S=(a=n.title)===null||a===void 0?void 0:a.call(n),description:$=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:x=(c=n.subTitle)===null||c===void 0?void 0:c.call(n),icon:C=(u=n.icon)===null||u===void 0?void 0:u.call(n),onClick:O,onStepClick:w}=e,I=v||"wait",T=ie(`${d}-item`,`${d}-item-${I}`,{[`${d}-item-custom`]:C,[`${d}-item-active`]:g,[`${d}-item-disabled`]:y===!0}),_={};f&&(_.width=f),b&&(_.marginRight=b);const E={onClick:O||gue};w&&!y&&(E.role="button",E.tabindex=0,E.onClick=l);const A=p("div",D(D({},et(r,["__legacy"])),{},{class:[T,r.class],style:[r.style,_]}),[p("div",D(D({},E),{},{class:`${d}-item-container`}),[p("div",{class:`${d}-item-tail`},[h]),p("div",{class:`${d}-item-icon`},[i({icon:C,title:S,description:$})]),p("div",{class:`${d}-item-content`},[p("div",{class:`${d}-item-title`},[S,x&&p("div",{title:typeof x=="string"?x:void 0,class:`${d}-item-subtitle`},[x])]),$&&p("div",{class:`${d}-item-description`},[$])])])]);return e.itemRender?e.itemRender(A):A}}});var hue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r[]),icons:V.shape({finish:V.any,error:V.any}).loose,stepIcon:ve(),isInline:V.looseBool,itemRender:ve()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=a=>{const{current:s}=e;s!==a&&o("change",a)},l=(a,s,c)=>{const{prefixCls:u,iconPrefix:d,status:f,current:g,initial:v,icons:h,stepIcon:b=n.stepIcon,isInline:y,itemRender:S,progressDot:$=n.progressDot}=e,x=y||$,C=m(m({},a),{class:""}),O=v+s,w={active:O===g,stepNumber:O+1,stepIndex:O,key:O,prefixCls:u,iconPrefix:d,progressDot:x,stepIcon:b,icons:h,onStepClick:r};return f==="error"&&s===g-1&&(C.class=`${u}-next-error`),C.status||(O===g?C.status=f:OS(C,I)),p(y5,D(D(D({},C),w),{},{__legacy:!1}),null))},i=(a,s)=>l(m({},a.props),s,c=>dt(a,c));return()=>{var a;const{prefixCls:s,direction:c,type:u,labelPlacement:d,iconPrefix:f,status:g,size:v,current:h,progressDot:b=n.progressDot,initial:y,icons:S,items:$,isInline:x,itemRender:C}=e,O=hue(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),w=u==="navigation",I=x||b,T=x?"horizontal":c,_=x?void 0:v,E=I?"vertical":d,A=ie(s,`${s}-${c}`,{[`${s}-${_}`]:_,[`${s}-label-${E}`]:T==="horizontal",[`${s}-dot`]:!!I,[`${s}-navigation`]:w,[`${s}-inline`]:x});return p("div",D({class:A},O),[$.filter(R=>R).map((R,z)=>l(R,z)),_t((a=n.default)===null||a===void 0?void 0:a.call(n)).map(i)])}}}),mue=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},bue=mue,yue=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},Sue=yue,$ue=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:l}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${l}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:m(m({maxWidth:"100%",paddingInlineEnd:0},Gt),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${l}, inset-inline-start ${l}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Cue=$ue,xue=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},wue=xue,Oue=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:l,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:l,height:l,marginInlineStart:(e.descriptionWidth-l)/2,paddingInlineEnd:0,lineHeight:`${l}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(l-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(l-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-l)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(l-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-l)/2,insetInlineStart:0,margin:0,padding:`${l+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(l-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-l)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-l)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Pue=Oue,Iue=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Tue=Iue,Eue=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:l}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:l,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Mue=Eue,_ue=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Aue=_ue,Rue=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,l=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:l+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":m({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-finish":m({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-error":i,"&-active, &-process":m({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},Due=Rue;var Ji;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(Ji||(Ji={}));const Ou=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,l=`${e}DescriptionColor`,i=`${e}TailColor`,a=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[l]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},Bue=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return m(m(m(m(m(m({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Ou(Ji.wait,e)),Ou(Ji.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Ou(Ji.finish,e)),Ou(Ji.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},Nue=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},Fue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m(m(m(m(m(m({},Xe(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Bue(e)),Nue(e)),bue(e)),Mue(e)),Aue(e)),Sue(e)),Pue(e)),Cue(e)),Tue(e)),wue(e)),Due(e))}},Lue=Ve("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:l,controlHeightLG:i,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:g,controlItemBgActive:v,colorError:h,colorBgContainer:b,colorBorderSecondary:y}=e,S=e.controlHeight,$=e.colorSplit,x=Fe(e,{processTailColor:$,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:l,stepsSmallIconSize:o,stepsDotSize:l/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:$,waitIconBgColor:t?b:g,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?b:v,finishIconBorderColor:t?c:v,finishDotColor:c,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:$,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:y});return[Fue(x)]},{descriptionWidth:140}),kue=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Ce(),items:at(),labelPlacement:Be(),status:Be(),size:Be(),direction:Be(),progressDot:Le([Boolean,Function]),type:Be(),onChange:ve(),"onUpdate:current":ve()}),Rh=oe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:qe(kue(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i,configProvider:a}=Te("steps",e),[s,c]=Lue(l),[,u]=Fr(),d=Va(),f=P(()=>e.responsive&&d.value.xs?"vertical":e.direction),g=P(()=>a.getPrefixCls("",e.iconPrefix)),v=$=>{r("update:current",$),r("change",$)},h=P(()=>e.type==="inline"),b=P(()=>h.value?void 0:e.percent),y=$=>{let{node:x,status:C}=$;if(C==="process"&&e.percent!==void 0){const O=e.size==="small"?u.value.controlHeight:u.value.controlHeightLG;return p("div",{class:`${l.value}-progress-icon`},[p(b1,{type:"circle",percent:b.value,size:O,strokeWidth:4,format:()=>null},null),x])}return x},S=P(()=>({finish:p(vp,{class:`${l.value}-finish-icon`},null),error:p(Zn,{class:`${l.value}-error-icon`},null)}));return()=>{const $=ie({[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-with-progress`]:b.value!==void 0},n.class,c.value),x=(C,O)=>C.description?p(Yn,{title:C.description},{default:()=>[O]}):O;return s(p(vue,D(D(D({icons:S.value},n),et(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:l.value,iconPrefix:g.value,class:$,onChange:v,isInline:h.value,itemRender:h.value?x:void 0}),m({stepIcon:y},o)))}}}),ud=oe(m(m({compatConfig:{MODE:3}},y5),{name:"AStep",props:b5()})),zue=m(Rh,{Step:ud,install:e=>(e.component(Rh.name,Rh),e.component(ud.name,ud),e)}),Hue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},jue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Wue=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Vue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},Kue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Rr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Gue=Ve("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,l=n-o*2,i=Fe(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:l*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:l/2,switchInnerMarginMaxSM:l+o+o*2,switchPinSizeSM:l,switchHandleShadow:`0 2px 4px 0 ${new gt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kue(i),Vue(i),Wue(i),jue(i),Hue(i)]}),Xue=Cn("small","default"),Uue=()=>({id:String,prefixCls:String,size:V.oneOf(Xue),disabled:{type:Boolean,default:void 0},checkedChildren:V.any,unCheckedChildren:V.any,tabindex:V.oneOfType([V.string,V.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:V.oneOfType([V.string,V.number,V.looseBool]),checkedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!0),unCheckedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),Yue=oe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:Uue(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;const i=Qt(),a=qn(),s=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:a.value});Ff(()=>{It(),It()});const c=le(e.checked!==void 0?e.checked:n.defaultChecked),u=P(()=>c.value===e.checkedValue);be(()=>e.checked,()=>{c.value=e.checked});const{prefixCls:d,direction:f,size:g}=Te("switch",e),[v,h]=Gue(d),b=le(),y=()=>{var T;(T=b.value)===null||T===void 0||T.focus()};r({focus:y,blur:()=>{var T;(T=b.value)===null||T===void 0||T.blur()}}),je(()=>{ot(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(T,_)=>{s.value||(l("update:checked",T),l("change",T,_),i.onFieldChange())},x=T=>{l("blur",T)},C=T=>{y();const _=u.value?e.unCheckedValue:e.checkedValue;$(_,T),l("click",_,T)},O=T=>{T.keyCode===Oe.LEFT?$(e.unCheckedValue,T):T.keyCode===Oe.RIGHT&&$(e.checkedValue,T),l("keydown",T)},w=T=>{var _;(_=b.value)===null||_===void 0||_.blur(),l("mouseup",T)},I=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[h.value]:!0}));return()=>{var T;return v(p(kb,null,{default:()=>[p("button",D(D(D({},et(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(T=e.id)!==null&&T!==void 0?T:i.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,I.value],ref:b}),[p("div",{class:`${d.value}-handle`},[e.loading?p(co,{class:`${d.value}-loading-icon`},null):null]),p("span",{class:`${d.value}-inner`},[p("span",{class:`${d.value}-inner-checked`},[qt(o,e,"checkedChildren")]),p("span",{class:`${d.value}-inner-unchecked`},[qt(o,e,"unCheckedChildren")])])])]}))}}}),que=Tt(Yue),S5=Symbol("TableContextProps"),Zue=e=>{Ge(S5,e)},ur=()=>He(S5,{}),Que="RC_TABLE_KEY";function $5(e){return e==null?[]:Array.isArray(e)?e:[e]}function C5(e,t){if(!t&&typeof t!="number")return e;const n=$5(t);let o=e;for(let r=0;r{const{key:r,dataIndex:l}=o||{};let i=r||$5(l).join("-")||Que;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function Jue(){const e={};function t(l,i){i&&Object.keys(i).forEach(a=>{const s=i[a];s&&typeof s=="object"?(l[a]=l[a]||{},t(l[a],s)):l[a]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,l)}),e}function ym(e){return e!=null}const x5=Symbol("SlotsContextProps"),ede=e=>{Ge(x5,e)},C1=()=>He(x5,P(()=>({}))),w5=Symbol("ContextProps"),tde=e=>{Ge(w5,e)},nde=()=>He(w5,{onResizeColumn:()=>{}});globalThis&&globalThis.__rest;const va="RC_TABLE_INTERNAL_COL_DEFINE",O5=Symbol("HoverContextProps"),ode=e=>{Ge(O5,e)},rde=()=>He(O5,{startRow:te(-1),endRow:te(-1),onHover(){}}),Sm=te(!1),lde=()=>{je(()=>{Sm.value=Sm.value||Ay("position","sticky")})},ide=()=>Sm;var ade=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function cde(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Yt(e)}const Qp=oe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=C1(),{onHover:r,startRow:l,endRow:i}=rde(),a=P(()=>{var h,b,y,S;return(y=(h=e.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=P(()=>{var h,b,y,S;return(y=(h=e.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),c=ro(()=>{const{index:h}=e;return sde(h,s.value||1,l.value,i.value)}),u=ide(),d=(h,b)=>{var y;const{record:S,index:$,additionalProps:x}=e;S&&r($,$+b-1),(y=x==null?void 0:x.onMouseenter)===null||y===void 0||y.call(x,h)},f=h=>{var b;const{record:y,additionalProps:S}=e;y&&r(-1,-1),(b=S==null?void 0:S.onMouseleave)===null||b===void 0||b.call(S,h)},g=h=>{const b=_t(h)[0];return Yt(b)?b.type===Cl?b.children:Array.isArray(b.children)?g(b.children):void 0:b},v=te(null);return be([c,()=>e.prefixCls,v],()=>{const h=Hn(v.value);h&&(c.value?lf(h,`${e.prefixCls}-cell-row-hover`):af(h,`${e.prefixCls}-cell-row-hover`))}),()=>{var h,b,y,S,$,x;const{prefixCls:C,record:O,index:w,renderIndex:I,dataIndex:T,customRender:_,component:E="td",fixLeft:A,fixRight:R,firstFixLeft:z,lastFixLeft:M,firstFixRight:B,lastFixRight:N,appendNode:F=(h=n.appendNode)===null||h===void 0?void 0:h.call(n),additionalProps:L={},ellipsis:k,align:j,rowType:H,isSticky:Y,column:Z={},cellType:U}=e,ee=`${C}-cell`;let G,J;const Q=(b=n.default)===null||b===void 0?void 0:b.call(n);if(ym(Q)||U==="header")J=Q;else{const ue=C5(O,T);if(J=ue,_){const ce=_({text:ue,value:ue,record:O,index:w,renderIndex:I,column:Z.__originColumn__});cde(ce)?(J=ce.children,G=ce.props):J=ce}if(!(va in Z)&&U==="body"&&o.value.bodyCell&&!(!((y=Z.slots)===null||y===void 0)&&y.customRender)){const ce=np(o.value,"bodyCell",{text:ue,value:ue,record:O,index:w,column:Z.__originColumn__},()=>{const he=J===void 0?ue:J;return[typeof he=="object"&&Kt(he)||typeof he!="object"?he:null]});J=yt(ce)}e.transformCellText&&(J=e.transformCellText({text:J,record:O,index:w,column:Z.__originColumn__}))}typeof J=="object"&&!Array.isArray(J)&&!Yt(J)&&(J=null),k&&(M||B)&&(J=p("span",{class:`${ee}-content`},[J])),Array.isArray(J)&&J.length===1&&(J=J[0]);const K=G||{},{colSpan:q,rowSpan:pe,style:W,class:X}=K,ne=ade(K,["colSpan","rowSpan","style","class"]),ae=(S=q!==void 0?q:a.value)!==null&&S!==void 0?S:1,se=($=pe!==void 0?pe:s.value)!==null&&$!==void 0?$:1;if(ae===0||se===0)return null;const re={},de=typeof A=="number"&&u.value,ge=typeof R=="number"&&u.value;de&&(re.position="sticky",re.left=`${A}px`),ge&&(re.position="sticky",re.right=`${R}px`);const me={};j&&(me.textAlign=j);let fe;const ye=k===!0?{showTitle:!0}:k;ye&&(ye.showTitle||H==="header")&&(typeof J=="string"||typeof J=="number"?fe=J.toString():Yt(J)&&(fe=g([J])));const Se=m(m(m({title:fe},ne),L),{colSpan:ae!==1?ae:null,rowSpan:se!==1?se:null,class:ie(ee,{[`${ee}-fix-left`]:de&&u.value,[`${ee}-fix-left-first`]:z&&u.value,[`${ee}-fix-left-last`]:M&&u.value,[`${ee}-fix-right`]:ge&&u.value,[`${ee}-fix-right-first`]:B&&u.value,[`${ee}-fix-right-last`]:N&&u.value,[`${ee}-ellipsis`]:k,[`${ee}-with-append`]:F,[`${ee}-fix-sticky`]:(de||ge)&&Y&&u.value},L.class,X),onMouseenter:ue=>{d(ue,se)},onMouseleave:f,style:[L.style,me,re,W]});return p(E,D(D({},Se),{},{ref:v}),{default:()=>[F,J,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function x1(e,t,n,o,r){const l=n[e]||{},i=n[t]||{};let a,s;l.fixed==="left"?a=o.left[e]:i.fixed==="right"&&(s=o.right[t]);let c=!1,u=!1,d=!1,f=!1;const g=n[t+1],v=n[e-1];return r==="rtl"?a!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):a!==void 0?c=!(g&&g.fixed==="left"):s!==void 0&&(u=!(v&&v.fixed==="right")),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const z2={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},H2=50,ude=oe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:H2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};Rn(()=>{r()}),ke(()=>{xt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:l}=nde(),i=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:H2),a=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=pn();let c=0;const u=te(!1);let d;const f=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(c-C,i.value);O=Math.min(O,a.value),Ye.cancel(d),d=Ye(()=>{l(O,e.column.__originColumn__)})},g=$=>{f($)},v=$=>{u.value=!1,f($),r()},h=($,x)=>{u.value=!0,r(),c=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=Mt(document.documentElement,x.move,g),o=Mt(document.documentElement,x.stop,v))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[nn?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return p("div",D(D({class:`${$}-resize-handle ${u.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[p("div",{class:`${$}-resize-handle-line`},null)])}}}),dde=oe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=ur();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:l,flattenColumns:i,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map(g=>g.column),u));const f=Zp(r.map(g=>g.column));return p(a,d,{default:()=>[r.map((g,v)=>{const{column:h}=g,b=x1(g.colStart,g.colEnd,i,l,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return p(Qp,D(D(D({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:f[v]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?p(ude,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function fde(e){const t=[];function n(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let a=l;return r.filter(Boolean).map(c=>{const u={key:c.key,class:ie(c.className,c.class),column:c,colStart:a};let d=1;const f=c.children;return f&&f.length>0&&(d=n(f,a,i+1).reduce((g,v)=>g+v,0),u.hasSubColumns=!0),"colSpan"in c&&({colSpan:d}=c),"rowSpan"in c&&(u.rowSpan=c.rowSpan),u.colSpan=d,u.colEnd=u.colStart+d-1,t[i].push(u),a+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=o-r)});return t}const j2=oe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=ur(),n=P(()=>fde(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:l,flattenColumns:i,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return p(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,f)=>p(dde,{key:f,flattenColumns:i,cells:d,stickyOffsets:l,rowComponent:c,cellComponent:u,customHeaderRow:a,index:f},null))]})}}}),P5=Symbol("ExpandedRowProps"),pde=e=>{Ge(P5,e)},gde=()=>He(P5,{}),I5=oe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=ur(),l=gde(),{fixHeader:i,fixColumn:a,componentWidth:s,horizonScroll:c}=l;return()=>{const{prefixCls:u,component:d,cellComponent:f,expanded:g,colSpan:v,isEmpty:h}=e;return p(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[p(Qp,{component:f,prefixCls:u,colSpan:v},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?c.value:a.value)&&(y=p("div",{style:{width:`${s.value-(i.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${u}-expanded-row-fixed`},[y])),y}})]})}}}),hde=oe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=le();return je(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>p(xo,{onResize:r=>{let{offsetWidth:l}=r;n("columnResize",e.columnKey,l)}},{default:()=>[p("td",{ref:o,style:{padding:0,border:0,height:0}},[p("div",{style:{height:0,overflow:"hidden"}},[Lt(" ")])])]})}}),T5=Symbol("BodyContextProps"),vde=e=>{Ge(T5,e)},E5=()=>He(T5,{}),mde=oe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=ur(),r=E5(),l=te(!1),i=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ke(()=>{i.value&&(l.value=!0)});const a=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),c=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),u=P(()=>a.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},f=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&u.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=f.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},v=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>Zp(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:I,fixedInfoList:T,transformCellText:_}=o,{flattenColumns:E,expandedRowClassName:A,indentSize:R,expandIcon:z,expandedRowRender:M,expandIconColumnIndex:B}=r,N=p(O,D(D({},f.value),{},{"data-row-key":x,class:ie(b,`${I}-row`,`${I}-row-level-${C}`,v.value,f.value.class),style:[y,f.value.style],onClick:g}),{default:()=>[E.map((L,k)=>{const{customRender:j,dataIndex:H,className:Y}=L,Z=h[k],U=T[k];let ee;L.customCell&&(ee=L.customCell(S,$,L));const G=k===(B||0)&&s.value?p(We,null,[p("span",{style:{paddingLeft:`${R*C}px`},class:`${I}-row-indent indent-level-${C}`},null),z({prefixCls:I,expanded:i.value,expandable:c.value,record:S,onExpand:d})]):null;return p(Qp,D(D({cellType:"body",class:Y,ellipsis:L.ellipsis,align:L.align,component:w,prefixCls:I,key:Z,record:S,index:$,renderIndex:e.renderIndex,dataIndex:H,customRender:j},U),{},{additionalProps:ee,column:L,transformCellText:_,appendNode:G}),null)})]});let F;if(a.value&&(l.value||i.value)){const L=M({record:S,index:$,indent:C+1,expanded:i.value}),k=A&&A(S,$,C);F=p(I5,{expanded:i.value,class:ie(`${I}-expanded-row`,`${I}-expanded-row-level-${C+1}`,k),prefixCls:I,component:O,cellComponent:w,colSpan:E.length,isEmpty:!1},{default:()=>[L]})}return p(We,null,[N,F])}}});function M5(e,t,n,o,r,l){const i=[];i.push({record:e,indent:t,index:l});const a=r(e),s=o==null?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{const l=t.value,i=n.value,a=e.value;if(i!=null&&i.size){const s=[];for(let c=0;c<(a==null?void 0:a.length);c+=1){const u=a[c];s.push(...M5(u,0,l,i,o.value,c))}return s}return a==null?void 0:a.map((s,c)=>({record:s,indent:0,index:c}))})}const _5=Symbol("ResizeContextProps"),yde=e=>{Ge(_5,e)},Sde=()=>He(_5,{onColumnResize:()=>{}}),$de=oe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Sde(),r=ur(),l=E5(),i=bde(ze(e,"data"),ze(e,"childrenColumnName"),ze(e,"expandedKeys"),ze(e,"getRowKey")),a=te(-1),s=te(-1);let c;return ode({startRow:a,endRow:s,onHover:(u,d)=>{clearTimeout(c),c=setTimeout(()=>{a.value=u,s.value=d},100)}}),()=>{var u;const{data:d,getRowKey:f,measureColumnWidth:g,expandedKeys:v,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=l,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),I=x(["body","cell"],"td");let T;d.length?T=i.value.map((E,A)=>{const{record:R,indent:z,index:M}=E,B=f(R,A);return p(mde,{key:B,rowKey:B,record:R,recordKey:B,index:A,renderIndex:M,rowComponent:w,cellComponent:I,expandedKeys:v,customRow:h,getRowKey:f,rowExpandable:b,childrenColumnName:y,indent:z},null)}):T=p(I5,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:I,colSpan:C.length,isEmpty:!0},{default:()=>[(u=n.emptyNode)===null||u===void 0?void 0:u.call(n)]});const _=Zp(C);return p(O,{class:`${$}-tbody`},{default:()=>[g&&p("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[_.map(E=>p(hde,{key:E,columnKey:E,onColumnResize:S},null))]),T]})}}}),ol={};var Cde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,l=n.children;return l&&l.length>0?[...t,...$m(l).map(i=>m({fixed:r},i))]:[...t,m(m({},n),{fixed:r})]},[])}function xde(e){return e.map(t=>{const{fixed:n}=t,o=Cde(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),m({fixed:r},o)})}function wde(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:l,getRowKey:i,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:f,expandColumnWidth:g,expandFixed:v}=e;const h=C1(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(ol)){const R=u.value||0;R>=0&&$.splice(R,0,ol)}const x=$.indexOf(ol);$=$.filter((R,z)=>R!==ol||z===x);const C=o.value[x];let O;(v.value==="left"||v.value)&&!u.value?O="left":(v.value==="right"||v.value)&&u.value===o.value.length?O="right":O=C?C.fixed:null;const w=l.value,I=c.value,T=s.value,_=n.value,E=f.value,A={[va]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:np(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:R=>{let{record:z,index:M}=R;const B=i.value(z,M),N=w.has(B),F=I?I(z):!0,L=T({prefixCls:_,expanded:N,expandable:F,record:z,onExpand:a});return E?p("span",{onClick:k=>k.stopPropagation()},[L]):L}};return $.map(R=>R===ol?A:R)}return o.value.filter($=>$!==ol)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?xde($m(y.value)):$m(y.value));return[y,S]}function A5(e){const t=te(e);let n;const o=te([]);function r(l){o.value.push(l),Ye.cancel(n),n=Ye(()=>{const i=o.value;o.value=[],i.forEach(a=>{t.value=a(t.value)})})}return Ze(()=>{Ye.cancel(n)}),[t,r]}function Ode(e){const t=le(e||null),n=le();function o(){clearTimeout(n.value)}function r(i){t.value=i,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function l(){return t.value}return Ze(()=>{o()}),[r,l]}function Pde(e,t,n){return P(()=>{const r=[],l=[];let i=0,a=0;const s=e.value,c=t.value,u=n.value;for(let d=0;d=0;a-=1){const s=t[a],c=n&&n[a],u=c&&c[va];if(s||u||i){const d=u||{},f=Ide(d,["columnType"]);r.unshift(p("col",D({key:a,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),i=!0}}return p("colgroup",null,[r])}function Cm(e,t){let{slots:n}=t;var o;return p("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}Cm.displayName="Panel";let Tde=0;const Ede=oe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=ur(),r=`table-summary-uni-key-${++Tde}`,l=P(()=>e.fixed===""||e.fixed);return ke(()=>{o.summaryCollect(r,l.value)}),Ze(()=>{o.summaryCollect(r,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),Mde=Ede,_de=oe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return p("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),D5=Symbol("SummaryContextProps"),Ade=e=>{Ge(D5,e)},Rde=()=>He(D5,{}),Dde=oe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=ur(),l=Rde();return()=>{const{index:i,colSpan:a=1,rowSpan:s,align:c}=e,{prefixCls:u,direction:d}=r,{scrollColumnIndex:f,stickyOffsets:g,flattenColumns:v}=l,b=i+a-1+1===f?a+1:a,y=x1(i,i+b-1,v,g,d);return p(Qp,D({class:n.class,index:i,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Pu=oe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=ur();return Ade(ut({stickyOffsets:ze(e,"stickyOffsets"),flattenColumns:ze(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,l=e.flattenColumns[r];return l!=null&&l.scrollbar?r:null})})),()=>{var r;const{prefixCls:l}=o;return p("tfoot",{class:`${l}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Bde=Mde;function Nde(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:l}=e;const i=`${t}-row-expand-icon`;if(!l)return p("span",{class:[i,`${t}-row-spaced`]},null);const a=s=>{o(n,s),s.stopPropagation()};return p("span",{class:{[i]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:a},null)}function Fde(e,t,n){const o=[];function r(l){(l||[]).forEach((i,a)=>{o.push(t(i,a)),r(i[n])})}return r(e),o}const Lde=oe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=ur(),l=te(0),i=te(0),a=te(0);ke(()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,a.value=l.value&&i.value*(i.value/l.value)},{flush:"post"});const s=te(),[c,u]=A5({scrollLeft:0,isHiddenScrollBar:!0}),d=le({delta:0,x:0}),f=te(!1),g=()=>{f.value=!1},v=w=>{d.value={delta:w.pageX-c.value.scrollLeft,x:0},f.value=!0,w.preventDefault()},h=w=>{const{buttons:I}=w||(window==null?void 0:window.event);if(!f.value||I===0){f.value&&(f.value=!1);return}let T=d.value.x+w.pageX-d.value.x-d.value.delta;T<=0&&(T=0),T+a.value>=i.value&&(T=i.value-a.value),n("scroll",{scrollLeft:T/i.value*(l.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=jd(e.scrollBodyRef.value).top,I=w+e.scrollBodyRef.value.offsetHeight,T=e.container===window?document.documentElement.scrollTop+window.innerHeight:jd(e.container).top+e.container.clientHeight;I-zd()<=T||w>=T-e.offsetScroll?u(_=>m(m({},_),{isHiddenScrollBar:!0})):u(_=>m(m({},_),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{u(I=>m(m({},I),{scrollLeft:w/l.value*i.value||0}))}});let S=null,$=null,x=null,C=null;je(()=>{S=Mt(document.body,"mouseup",g,!1),$=Mt(document.body,"mousemove",h,!1),x=Mt(window,"resize",b,!1)}),Bf(()=>{ot(()=>{b()})}),je(()=>{setTimeout(()=>{be([a,f],()=>{b()},{immediate:!0,flush:"post"})})}),be(()=>e.container,()=>{C==null||C.remove(),C=Mt(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Ze(()=>{S==null||S.remove(),$==null||$.remove(),C==null||C.remove(),x==null||x.remove()}),be(()=>m({},c.value),(w,I)=>{w.isHiddenScrollBar!==(I==null?void 0:I.isHiddenScrollBar)&&!w.isHiddenScrollBar&&u(T=>{const _=e.scrollBodyRef.value;return _?m(m({},T),{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):T})},{immediate:!0});const O=zd();return()=>{if(l.value<=i.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return p("div",{style:{height:`${O}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[p("div",{onMousedown:v,ref:s,class:ie(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:f.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),W2=Mn()?window:null;function kde(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:l=()=>W2}=typeof e.value=="object"?e.value:{},i=l()||W2,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:i}})}function zde(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let l=0;ll.isSticky&&!e.fixHeader?0:l.scrollbarSize),a=le(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},c=le();je(()=>{ot(()=>{c.value=Mt(a.value,"wheel",s)})}),Ze(()=>{var h;(h=c.value)===null||h===void 0||h.remove()});const u=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=le([]),f=le([]);ke(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};d.value=i.value?[...e.columns,b]:e.columns,f.value=i.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return m(m({},h),{left:b==="rtl"?[...S.map($=>$+i.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+i.value),0],isSticky:l.isSticky})}),v=zde(ze(e,"colWidths"),ze(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=l;return p("div",{style:m({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:a,class:ie(n.class,{[x]:!!x})},[p("table",{style:{tableLayout:"fixed",visibility:b||v.value?null:"hidden"}},[(!b||!C||u.value)&&p(R5,{colWidths:v.value?[...v.value,i.value]:[],columCount:y+1,columns:f.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,m(m({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:f.value}))])])}}});function K2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,ze(e,r)])))}const Hde=[],jde={},xm="rc-table-internal-hook",Wde=oe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.data||Hde),i=P(()=>!!l.value.length),a=P(()=>Jue(e.components,{})),s=(ce,he)=>C5(a.value,ce)||he,c=P(()=>{const ce=e.rowKey;return typeof ce=="function"?ce:he=>he&&he[ce]}),u=P(()=>e.expandIcon||Nde),d=P(()=>e.childrenColumnName||"children"),f=P(()=>e.expandedRowRender?"row":e.canExpandable||l.value.some(ce=>ce&&typeof ce=="object"&&ce[d.value])?"nest":!1),g=te([]);ke(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Fde(l.value,c.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=ce=>{const he=c.value(ce,l.value.indexOf(ce));let Pe;const Ie=h.value.has(he);Ie?(h.value.delete(he),Pe=[...h.value]):Pe=[...h.value,he],g.value=Pe,r("expand",!Ie,ce),r("update:expandedRowKeys",Pe),r("expandedRowsChange",Pe)},y=le(0),[S,$]=wde(m(m({},No(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:c,onTriggerExpand:b,expandIcon:u}),P(()=>e.internalHooks===xm?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=le(),O=le(),w=le(),I=le({scrollWidth:0,clientWidth:0}),T=le(),[_,E]=vt(!1),[A,R]=vt(!1),[z,M]=A5(new Map),B=P(()=>Zp($.value)),N=P(()=>B.value.map(ce=>z.value.get(ce))),F=P(()=>$.value.length),L=Pde(N,F,ze(e,"direction")),k=P(()=>e.scroll&&ym(e.scroll.y)),j=P(()=>e.scroll&&ym(e.scroll.x)||!!e.expandFixed),H=P(()=>j.value&&$.value.some(ce=>{let{fixed:he}=ce;return he})),Y=le(),Z=kde(ze(e,"sticky"),ze(e,"prefixCls")),U=ut({}),ee=P(()=>{const ce=Object.values(U)[0];return(k.value||Z.value.isSticky)&&ce}),G=(ce,he)=>{he?U[ce]=he:delete U[ce]},J=le({}),Q=le({}),K=le({});ke(()=>{k.value&&(Q.value={overflowY:"scroll",maxHeight:Vl(e.scroll.y)}),j.value&&(J.value={overflowX:"auto"},k.value||(Q.value={overflowY:"hidden"}),K.value={width:e.scroll.x===!0?"auto":Vl(e.scroll.x),minWidth:"100%"})});const q=(ce,he)=>{op(C.value)&&M(Pe=>{if(Pe.get(ce)!==he){const Ie=new Map(Pe);return Ie.set(ce,he),Ie}return Pe})},[pe,W]=Ode(null);function X(ce,he){if(!he)return;if(typeof he=="function"){he(ce);return}const Pe=he.$el||he;Pe.scrollLeft!==ce&&(Pe.scrollLeft=ce)}const ne=ce=>{let{currentTarget:he,scrollLeft:Pe}=ce;var Ie;const Ae=e.direction==="rtl",$e=typeof Pe=="number"?Pe:he.scrollLeft,xe=he||jde;if((!W()||W()===xe)&&(pe(xe),X($e,O.value),X($e,w.value),X($e,T.value),X($e,(Ie=Y.value)===null||Ie===void 0?void 0:Ie.setScrollLeft)),he){const{scrollWidth:we,clientWidth:Me}=he;Ae?(E(-$e0)):(E($e>0),R($e{j.value&&w.value?ne({currentTarget:w.value}):(E(!1),R(!1))};let se;const re=ce=>{ce!==y.value&&(ae(),y.value=C.value?C.value.offsetWidth:ce)},de=ce=>{let{width:he}=ce;if(clearTimeout(se),y.value===0){re(he);return}se=setTimeout(()=>{re(he)},100)};be([j,()=>e.data,()=>e.columns],()=>{j.value&&ae()},{flush:"post"});const[ge,me]=vt(0);lde(),je(()=>{ot(()=>{var ce,he;ae(),me(Gk(w.value).width),I.value={scrollWidth:((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,clientWidth:((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0}})}),An(()=>{ot(()=>{var ce,he;const Pe=((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,Ie=((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0;(I.value.scrollWidth!==Pe||I.value.clientWidth!==Ie)&&(I.value={scrollWidth:Pe,clientWidth:Ie})})}),ke(()=>{e.internalHooks===xm&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const fe=P(()=>e.tableLayout?e.tableLayout:H.value?e.scroll.x==="max-content"?"auto":"fixed":k.value||Z.value.isSticky||$.value.some(ce=>{let{ellipsis:he}=ce;return he})?"fixed":"auto"),ye=()=>{var ce;return i.value?null:((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||"No Data"};Zue(ut(m(m({},No(K2(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ge,fixedInfoList:P(()=>$.value.map((ce,he)=>x1(he,he,$.value,L.value,e.direction))),isSticky:P(()=>Z.value.isSticky),summaryCollect:G}))),vde(ut(m(m({},No(K2(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:fe,expandIcon:u,expandableType:f,onTriggerExpand:b}))),yde({onColumnResize:q}),pde({componentWidth:y,fixHeader:k,fixColumn:H,horizonScroll:j});const Se=()=>p($de,{data:l.value,measureColumnWidth:k.value||j.value||Z.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:ye}),ue=()=>p(R5,{colWidths:$.value.map(ce=>{let{width:he}=ce;return he}),columns:$.value},null);return()=>{var ce;const{prefixCls:he,scroll:Pe,tableLayout:Ie,direction:Ae,title:$e=o.title,footer:xe=o.footer,id:we,showHeader:Me,customHeaderRow:Ne}=e,{isSticky:_e,offsetHeader:De,offsetSummary:Je,offsetScroll:ft,stickyClassName:it,container:pt}=Z.value,ht=s(["table"],"table"),Ut=s(["body"]),Jt=(ce=o.summary)===null||ce===void 0?void 0:ce.call(o,{pageData:l.value});let rn=()=>null;const jt={colWidths:N.value,columCount:$.value.length,stickyOffsets:L.value,customHeaderRow:Ne,fixHeader:k.value,scroll:Pe};if(k.value||_e){let uo=()=>null;typeof Ut=="function"?(uo=()=>Ut(l.value,{scrollbarSize:ge.value,ref:w,onScroll:ne}),jt.colWidths=$.value.map((Vn,El)=>{let{width:Ee}=Vn;const Ue=El===S.value.length-1?Ee-ge.value:Ee;return typeof Ue=="number"&&!Number.isNaN(Ue)?Ue:0})):uo=()=>p("div",{style:m(m({},J.value),Q.value),onScroll:ne,ref:w,class:ie(`${he}-body`)},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Se(),!ee.value&&Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const To=m(m(m({noData:!l.value.length,maxContentScroll:j.value&&Pe.x==="max-content"},jt),x.value),{direction:Ae,stickyClassName:it,onScroll:ne});rn=()=>p(We,null,[Me!==!1&&p(V2,D(D({},To),{},{stickyTopOffset:De,class:`${he}-header`,ref:O}),{default:Vn=>p(We,null,[p(j2,Vn,null),ee.value==="top"&&p(Pu,Vn,{default:()=>[Jt]})])}),uo(),ee.value&&ee.value!=="top"&&p(V2,D(D({},To),{},{stickyBottomOffset:Je,class:`${he}-summary`,ref:T}),{default:Vn=>p(Pu,Vn,{default:()=>[Jt]})}),_e&&w.value&&p(Lde,{ref:Y,offsetScroll:ft,scrollBodyRef:w,onScroll:ne,container:pt,scrollBodySizeInfo:I.value},null)])}else rn=()=>p("div",{style:m(m({},J.value),Q.value),class:ie(`${he}-content`),onScroll:ne,ref:w},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Me!==!1&&p(j2,D(D({},jt),x.value),null),Se(),Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const xn=wl(n,{aria:!0,data:!0}),Wn=()=>p("div",D(D({},xn),{},{class:ie(he,{[`${he}-rtl`]:Ae==="rtl",[`${he}-ping-left`]:_.value,[`${he}-ping-right`]:A.value,[`${he}-layout-fixed`]:Ie==="fixed",[`${he}-fixed-header`]:k.value,[`${he}-fixed-column`]:H.value,[`${he}-scroll-horizontal`]:j.value,[`${he}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${he}-has-fix-right`]:$.value[F.value-1]&&$.value[F.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:we,ref:C}),[$e&&p(Cm,{class:`${he}-title`},{default:()=>[$e(l.value)]}),p("div",{class:`${he}-container`},[rn()]),xe&&p(Cm,{class:`${he}-footer`},{default:()=>[xe(l.value)]})]);return j.value?p(xo,{onResize:de},{default:Wn}):Wn()}}});function Vde(){const e=m({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const wm=10;function Kde(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const l=e[r];typeof l!="function"&&(n[r]=l)}),n}function Gde(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[l,i]=vt(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:wm})),a=P(()=>{const u=Vde(l.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/u.pageSize);return u.current>d&&(u.current=d||1),u}),s=(u,d)=>{t.value!==!1&&i({current:u??1,pageSize:d||a.value.pageSize})},c=(u,d)=>{var f,g;t.value&&((g=(f=o.value).onChange)===null||g===void 0||g.call(f,u,d)),s(u,d),n(u,d||a.value.pageSize)};return[P(()=>t.value===!1?{}:m(m({},a.value),{onChange:c})),s]}function Xde(e,t,n){const o=te({});be([e,t,n],()=>{const l=new Map,i=n.value,a=t.value;function s(c){c.forEach((u,d)=>{const f=i(u,d);l.set(f,u),u&&typeof u=="object"&&a in u&&s(u[a]||[])})}s(e.value),o.value={kvMap:l}},{deep:!0,immediate:!0});function r(l){return o.value.kvMap.get(l)}return[r]}const yr={},Om="SELECT_ALL",Pm="SELECT_INVERT",Im="SELECT_NONE",Ude=[];function B5(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...B5(e,o[e])])}),n}function Yde(e,t){const n=P(()=>{const T=e.value||{},{checkStrictly:_=!0}=T;return m(m({},T),{checkStrictly:_})}),[o,r]=Pt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Ude,{value:P(()=>n.value.selectedRowKeys)}),l=te(new Map),i=T=>{if(n.value.preserveSelectedRowKeys){const _=new Map;T.forEach(E=>{let A=t.getRecordByKey(E);!A&&l.value.has(E)&&(A=l.value.get(E)),_.set(E,A)}),l.value=_}};ke(()=>{i(o.value)});const a=P(()=>n.value.checkStrictly?null:kc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>B5(t.childrenColumnName.value,t.pageData.value)),c=P(()=>{const T=new Map,_=t.getRowKey.value,E=n.value.getCheckboxProps;return s.value.forEach((A,R)=>{const z=_(A,R),M=(E?E(A):null)||{};T.set(z,M)}),T}),{maxLevel:u,levelEntities:d}=Hp(a),f=T=>{var _;return!!(!((_=c.value.get(t.getRowKey.value(T)))===null||_===void 0)&&_.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:T,halfCheckedKeys:_}=So(o.value,!0,a.value,u.value,d.value,f);return[T||[],_]}),v=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const T=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(T)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=vt(null),x=T=>{let _,E;i(T);const{preserveSelectedRowKeys:A,onChange:R}=n.value,{getRecordByKey:z}=t;A?(_=T,E=T.map(M=>l.value.get(M))):(_=[],E=[],T.forEach(M=>{const B=z(M);B!==void 0&&(_.push(M),E.push(B))})),r(_),R==null||R(_,E)},C=(T,_,E,A)=>{const{onSelect:R}=n.value,{getRecordByKey:z}=t||{};if(R){const M=E.map(B=>z(B));R(z(T),_,M,A)}x(E)},O=P(()=>{const{onSelectInvert:T,onSelectNone:_,selections:E,hideSelectAll:A}=n.value,{data:R,pageData:z,getRowKey:M,locale:B}=t;return!E||A?null:(E===!0?[Om,Pm,Im]:E).map(F=>F===Om?{key:"all",text:B.value.selectionAll,onSelect(){x(R.value.map((L,k)=>M.value(L,k)).filter(L=>{const k=c.value.get(L);return!(k!=null&&k.disabled)||b.value.has(L)}))}}:F===Pm?{key:"invert",text:B.value.selectInvert,onSelect(){const L=new Set(b.value);z.value.forEach((j,H)=>{const Y=M.value(j,H),Z=c.value.get(Y);Z!=null&&Z.disabled||(L.has(Y)?L.delete(Y):L.add(Y))});const k=Array.from(L);T&&(xt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),T(k)),x(k)}}:F===Im?{key:"none",text:B.value.selectNone,onSelect(){_==null||_(),x(Array.from(b.value).filter(L=>{const k=c.value.get(L);return k==null?void 0:k.disabled}))}}:F)}),w=P(()=>s.value.length);return[T=>{var _;const{onSelectAll:E,onSelectMultiple:A,columnWidth:R,type:z,fixed:M,renderCell:B,hideSelectAll:N,checkStrictly:F}=n.value,{prefixCls:L,getRecordByKey:k,getRowKey:j,expandType:H,getPopupContainer:Y}=t;if(!e.value)return T.filter(re=>re!==yr);let Z=T.slice();const U=new Set(b.value),ee=s.value.map(j.value).filter(re=>!c.value.get(re).disabled),G=ee.every(re=>U.has(re)),J=ee.some(re=>U.has(re)),Q=()=>{const re=[];G?ee.forEach(ge=>{U.delete(ge),re.push(ge)}):ee.forEach(ge=>{U.has(ge)||(U.add(ge),re.push(ge))});const de=Array.from(U);E==null||E(!G,de.map(ge=>k(ge)),re.map(ge=>k(ge))),x(de)};let K;if(z!=="radio"){let re;if(O.value){const ye=p(Vt,{getPopupContainer:Y.value},{default:()=>[O.value.map((Se,ue)=>{const{key:ce,text:he,onSelect:Pe}=Se;return p(Vt.Item,{key:ce||ue,onClick:()=>{Pe==null||Pe(ee)}},{default:()=>[he]})})]});re=p("div",{class:`${L.value}-selection-extra`},[p(rr,{overlay:ye,getPopupContainer:Y.value},{default:()=>[p("span",null,[p(Ec,null,null)])]})])}const de=s.value.map((ye,Se)=>{const ue=j.value(ye,Se),ce=c.value.get(ue)||{};return m({checked:U.has(ue)},ce)}).filter(ye=>{let{disabled:Se}=ye;return Se}),ge=!!de.length&&de.length===w.value,me=ge&&de.every(ye=>{let{checked:Se}=ye;return Se}),fe=ge&&de.some(ye=>{let{checked:Se}=ye;return Se});K=!N&&p("div",{class:`${L.value}-selection`},[p($o,{checked:ge?me:!!w.value&&G,indeterminate:ge?!me&&fe:!G&&J,onChange:Q,disabled:w.value===0||ge,"aria-label":re?"Custom selection":"Select all",skipGroup:!0},null),re])}let q;z==="radio"?q=re=>{let{record:de,index:ge}=re;const me=j.value(de,ge),fe=U.has(me);return{node:p(Nn,D(D({},c.value.get(me)),{},{checked:fe,onClick:ye=>ye.stopPropagation(),onChange:ye=>{U.has(me)||C(me,!0,[me],ye.nativeEvent)}}),null),checked:fe}}:q=re=>{let{record:de,index:ge}=re;var me;const fe=j.value(de,ge),ye=U.has(fe),Se=y.value.has(fe),ue=c.value.get(fe);let ce;return H.value==="nest"?(ce=Se,xt(typeof(ue==null?void 0:ue.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ce=(me=ue==null?void 0:ue.indeterminate)!==null&&me!==void 0?me:Se,{node:p($o,D(D({},ue),{},{indeterminate:ce,checked:ye,skipGroup:!0,onClick:he=>he.stopPropagation(),onChange:he=>{let{nativeEvent:Pe}=he;const{shiftKey:Ie}=Pe;let Ae=-1,$e=-1;if(Ie&&F){const xe=new Set([S.value,fe]);ee.some((we,Me)=>{if(xe.has(we))if(Ae===-1)Ae=Me;else return $e=Me,!0;return!1})}if($e!==-1&&Ae!==$e&&F){const xe=ee.slice(Ae,$e+1),we=[];ye?xe.forEach(Ne=>{U.has(Ne)&&(we.push(Ne),U.delete(Ne))}):xe.forEach(Ne=>{U.has(Ne)||(we.push(Ne),U.add(Ne))});const Me=Array.from(U);A==null||A(!ye,Me.map(Ne=>k(Ne)),we.map(Ne=>k(Ne))),x(Me)}else{const xe=v.value;if(F){const we=ye?qo(xe,fe):mr(xe,fe);C(fe,!ye,we,Pe)}else{const we=So([...xe,fe],!0,a.value,u.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Ne}=we;let _e=Me;if(ye){const De=new Set(Me);De.delete(fe),_e=So(Array.from(De),{checked:!1,halfCheckedKeys:Ne},a.value,u.value,d.value,f).checkedKeys}C(fe,!ye,_e,Pe)}}$(fe)}}),null),checked:ye}};const pe=re=>{let{record:de,index:ge}=re;const{node:me,checked:fe}=q({record:de,index:ge});return B?B(fe,de,ge,me):me};if(!Z.includes(yr))if(Z.findIndex(re=>{var de;return((de=re[va])===null||de===void 0?void 0:de.columnType)==="EXPAND_COLUMN"})===0){const[re,...de]=Z;Z=[re,yr,...de]}else Z=[yr,...Z];const W=Z.indexOf(yr);Z=Z.filter((re,de)=>re!==yr||de===W);const X=Z[W-1],ne=Z[W+1];let ae=M;ae===void 0&&((ne==null?void 0:ne.fixed)!==void 0?ae=ne.fixed:(X==null?void 0:X.fixed)!==void 0&&(ae=X.fixed)),ae&&X&&((_=X[va])===null||_===void 0?void 0:_.columnType)==="EXPAND_COLUMN"&&X.fixed===void 0&&(X.fixed=ae);const se={fixed:ae,width:R,className:`${L.value}-selection-column`,title:n.value.columnTitle||K,customRender:pe,[va]:{class:`${L.value}-selection-col`}};return Z.map(re=>re===yr?se:re)},b]}var qde={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const Zde=qde;function G2(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=yt(e),n=[];return t.forEach(o=>{var r,l,i,a;if(!o)return;const s=o.key,c=((r=o.props)===null||r===void 0?void 0:r.style)||{},u=((l=o.props)===null||l===void 0?void 0:l.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[mi(b)]=y;const f=o.children||{},{default:g}=f,v=rfe(f,["default"]),h=m(m(m({},v),d),{style:c,class:u});if(s&&(h.key=s),!((i=o.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)h.children=N5(typeof g=="function"?g():g);else{const b=(a=o.children)===null||a===void 0?void 0:a.default;h.customRender=h.customRender||b}n.push(h)}),n}const dd="ascend",Dh="descend";function wf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function U2(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function lfe(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Tm(e,t,n){let o=[];function r(l,i){o.push({column:l,key:pi(l,i),multiplePriority:wf(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,i)=>{const a=Wc(i,n);l.children?("sortOrder"in l&&r(l,a),o=[...o,...Tm(l.children,t,a)]):l.sorter&&("sortOrder"in l?r(l,a):t&&l.defaultSortOrder&&o.push({column:l,key:pi(l,a),multiplePriority:wf(l),sortOrder:l.defaultSortOrder}))}),o}function F5(e,t,n,o,r,l,i,a){return(t||[]).map((s,c)=>{const u=Wc(c,a);let d=s;if(d.sorter){const f=d.sortDirections||r,g=d.showSorterTooltip===void 0?i:d.showSorterTooltip,v=pi(d,u),h=n.find(T=>{let{key:_}=T;return _===v}),b=h?h.sortOrder:null,y=lfe(f,b),S=f.includes(dd)&&p(ofe,{class:ie(`${e}-column-sorter-up`,{active:b===dd}),role:"presentation"},null),$=f.includes(Dh)&&p(Jde,{role:"presentation",class:ie(`${e}-column-sorter-down`,{active:b===Dh})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=l||{};let w=x;y===Dh?w=O:y===dd&&(w=C);const I=typeof g=="object"?g:{title:w};d=m(m({},d),{className:ie(d.className,{[`${e}-column-sort`]:b}),title:T=>{const _=p("div",{class:`${e}-column-sorters`},[p("span",{class:`${e}-column-title`},[P1(s.title,T)]),p("span",{class:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[p("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?p(Yn,I,{default:()=>[_]}):_},customHeaderCell:T=>{const _=s.customHeaderCell&&s.customHeaderCell(T)||{},E=_.onClick,A=_.onKeydown;return _.onClick=R=>{o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),E&&E(R)},_.onKeydown=R=>{R.keyCode===Oe.ENTER&&(o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),A==null||A(R))},b&&(_["aria-sort"]=b==="ascend"?"ascending":"descending"),_.class=ie(_.class,`${e}-column-has-sorters`),_.tabindex=0,_}})}return"children"in d&&(d=m(m({},d),{children:F5(e,d.children,n,o,r,l,i,u)})),d})}function Y2(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function q2(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(Y2);return t.length===0&&e.length?m(m({},Y2(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Em(e,t,n){const o=t.slice().sort((i,a)=>a.multiplePriority-i.multiplePriority),r=e.slice(),l=o.filter(i=>{let{column:{sorter:a},sortOrder:s}=i;return U2(a)&&s});return l.length?r.sort((i,a)=>{for(let s=0;s{const a=i[n];return a?m(m({},i),{[n]:Em(a,t,n)}):i}):r}function ife(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:l,showSorterTooltip:i}=e;const[a,s]=vt(Tm(n.value,!0)),c=P(()=>{let v=!0;const h=Tm(n.value,!1);if(!h.length)return a.value;const b=[];function y($){v?b.push($):b.push(m(m({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?v=!1:S=!0)):(S&&$.multiplePriority!==!1||(v=!1),y($))}),b}),u=P(()=>{const v=c.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let h;v.multiplePriority===!1||!c.value.length||c.value[0].multiplePriority===!1?h=[v]:h=[...c.value.filter(b=>{let{key:y}=b;return y!==v.key}),v],s(h),o(q2(h),h)}const f=v=>F5(t.value,v,c.value,d,r.value,l.value,i.value),g=P(()=>q2(c.value));return[f,c,u,g]}var afe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const sfe=afe;function Z2(e){for(var t=1;t{const{keyCode:t}=e;t===Oe.ENTER&&e.stopPropagation()},ffe=(e,t)=>{let{slots:n}=t;var o;return p("div",{onClick:r=>r.stopPropagation(),onKeydown:dfe},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},pfe=ffe,Q2=oe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Be(),onChange:ve(),filterSearch:Le([Boolean,Function]),tablePrefixCls:Be(),locale:Re()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:l}=e;return o?p("div",{class:`${r}-filter-dropdown-search`},[p(tn,{placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>p(mp,null,null)})]):null}}});var J2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Rc()),s=(c,u)=>{var d,f,g,v;u==="appear"?(f=(d=a.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,c):u==="leave"&&((v=(g=a.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,c)),i.value||e.onMotionEnd(),i.value=!0};return be(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&&ot(()=>{r.value=!1})},{immediate:!0,flush:"post"}),je(()=>{e.motionNodes&&e.onMotionStart()}),Ze(()=>{e.motionNodes&&s()}),()=>{const{motion:c,motionNodes:u,motionType:d,active:f,eventKey:g}=e,v=J2(e,["motion","motionNodes","motionType","active","eventKey"]);return u?p(cn,D(D({},a.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[$n(p("div",{class:`${l.value.prefixCls}-treenode-motion`},[u.map(h=>{const b=J2(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,p(Qv,D(D({},b),{},{title:y,active:f,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[En,r.value]])]}):p(Qv,D(D({class:n.class,style:n.style},v),{},{active:f,eventKey:g}),o)}}});function hfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(l,i){const a=new Map;l.forEach(c=>{a.set(c,!0)});const s=i.filter(c=>!a.has(c));return s.length===1?s[0]:null}return ni.key===n),r=e[o+1],l=t.findIndex(i=>i.key===n);if(r){const i=t.findIndex(a=>a.key===r.key);return t.slice(l+1,i)}return t.slice(l+1)}var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},gi=`RC_TREE_MOTION_${Math.random()}`,Mm={key:gi},L5={key:gi,level:0,index:0,pos:"0",node:Mm,nodes:[Mm]},o4={parent:null,children:[],pos:L5.pos,data:Mm,title:null,key:gi,isStart:[],isEnd:[]};function r4(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function l4(e){const{key:t,pos:n}=e;return Lc(t,n)}function mfe(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const bfe=oe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:RJ,setup(e,t){let{expose:n,attrs:o}=t;const r=le(),l=le(),{expandedKeys:i,flattenNodes:a}=a8();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>l.value.offsetWidth});const s=te(a.value),c=te([]),u=le(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const f=Ey();be([()=>i.value.slice(),a],(h,b)=>{let[y,S]=h,[$,x]=b;const C=hfe($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:I}=e;if(C.add){const T=x.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(x,S,C.key),O,w,I),E=x.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="show"}else{const T=S.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(S,x,C.key),O,w,I),E=S.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="hide"}}else x!==S&&(s.value=S)}),be(()=>f.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:a.value),v=()=>{e.onActiveChange(null)};return()=>{const h=m(m({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:I,activeItem:T,focused:_,tabindex:E,onKeydown:A,onFocus:R,onBlur:z,onListChangeStart:M,onListChangeEnd:B}=h,N=t4(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(We,null,[_&&T&&p("span",{style:n4,"aria-live":"assertive"},[mfe(T)]),p("div",null,[p("input",{style:n4,disabled:I===!1||$,tabindex:I!==!1?E:null,onKeydown:A,onFocus:R,onBlur:z,value:"",onChange:vfe,"aria-label":"for screen reader"},null)]),p("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${b}-indent`},[p("div",{ref:l,class:`${b}-indent-unit`},null)])]),p(DI,D(D({},et(N,["onActiveChange"])),{},{data:g.value,itemKey:l4,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(F,L)=>{const k=new Set(F);L.filter(H=>!k.has(H)).some(H=>l4(H)===gi)&&d()}}),{default:F=>{const{pos:L}=F,k=t4(F.data,[]),{title:j,key:H,isStart:Y,isEnd:Z}=F,U=Lc(H,L);return delete k.key,delete k.children,p(gfe,D(D({},k),{},{eventKey:U,title:j,active:!!T&&H===T.key,data:F.data,isStart:Y,isEnd:Z,motion:x,motionNodes:H===gi?c.value:null,motionType:u.value,onMotionStart:M,onMotionEnd:d,onMousemove:v}),null)}})])}}});function yfe(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return p("div",{style:r},null)}const Sfe=10,k5=oe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:qe(c8(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:yfe,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1);let i={};const a=te(),s=te([]),c=te([]),u=te([]),d=te([]),f=te([]),g=te([]),v={},h=ut({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=te([]);be([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?e.treeData.slice():em(Qe(e.children))},{immediate:!0,deep:!0});const y=te({}),S=te(!1),$=te(null),x=te(!1),C=P(()=>Fp(e.fieldNames)),O=te();let w=null,I=null,T=null;const _=P(()=>({expandedKeysSet:E.value,selectedKeysSet:A.value,loadedKeysSet:R.value,loadingKeysSet:z.value,checkedKeysSet:M.value,halfCheckedKeysSet:B.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),E=P(()=>new Set(g.value)),A=P(()=>new Set(s.value)),R=P(()=>new Set(d.value)),z=P(()=>new Set(f.value)),M=P(()=>new Set(c.value)),B=P(()=>new Set(u.value));ke(()=>{if(b.value){const $e=kc(b.value,{fieldNames:C.value});y.value=m({[gi]:L5},$e.keyEntities)}});let N=!1;be([()=>e.expandedKeys,()=>e.autoExpandParent,y],($e,xe)=>{let[we,Me]=$e,[Ne,_e]=xe,De=g.value;if(e.expandedKeys!==void 0||N&&Me!==_e)De=e.autoExpandParent||!N&&e.defaultExpandParent?Jv(e.expandedKeys,y.value):e.expandedKeys;else if(!N&&e.defaultExpandAll){const Je=m({},y.value);delete Je[gi],De=Object.keys(Je).map(ft=>Je[ft].key)}else!N&&e.defaultExpandedKeys&&(De=e.autoExpandParent||e.defaultExpandParent?Jv(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);De&&(g.value=De),N=!0},{immediate:!0});const F=te([]);ke(()=>{F.value=HJ(b.value,g.value,C.value)}),ke(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=pw(e.selectedKeys,e):!N&&e.defaultSelectedKeys&&(s.value=pw(e.defaultSelectedKeys,e)))});const{maxLevel:L,levelEntities:k}=Hp(y);ke(()=>{if(e.checkable){let $e;if(e.checkedKeys!==void 0?$e=vh(e.checkedKeys)||{}:!N&&e.defaultCheckedKeys?$e=vh(e.defaultCheckedKeys)||{}:b.value&&($e=vh(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),$e){let{checkedKeys:xe=[],halfCheckedKeys:we=[]}=$e;e.checkStrictly||({checkedKeys:xe,halfCheckedKeys:we}=So(xe,!0,y.value,L.value,k.value)),c.value=xe,u.value=we}}}),ke(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const j=()=>{m(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=$e=>{O.value.scrollTo($e)};be(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),be($,$e=>{ot(()=>{$e!==null&&H({key:$e})})},{immediate:!0,flush:"post"});const Y=$e=>{e.expandedKeys===void 0&&(g.value=$e)},Z=()=>{h.draggingNodeKey!==null&&m(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,T=null},U=($e,xe)=>{const{onDragend:we}=e;h.dragOverNodeKey=null,Z(),we==null||we({event:$e,node:xe.eventData}),I=null},ee=$e=>{U($e,null),window.removeEventListener("dragend",ee)},G=($e,xe)=>{const{onDragstart:we}=e,{eventKey:Me,eventData:Ne}=xe;I=xe,w={x:$e.clientX,y:$e.clientY};const _e=qo(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=FJ(Me,y.value),a.value=O.value.getIndentWidth(),Y(_e),window.addEventListener("dragend",ee),we&&we({event:$e,node:Ne})},J=($e,xe)=>{const{onDragenter:we,onExpand:Me,allowDrop:Ne,direction:_e}=e,{pos:De,eventKey:Je}=xe;if(T!==Je&&(T=Je),!I){j();return}const{dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt,dragOverNodeKey:rn}=fw($e,I,xe,a.value,w,Ne,F.value,y.value,E.value,_e);if(h.dragChildrenKeys.indexOf(pt)!==-1||!Jt){j();return}if(i||(i={}),Object.keys(i).forEach(jt=>{clearTimeout(i[jt])}),I.eventKey!==xe.eventKey&&(i[De]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let jt=g.value.slice();const xn=y.value[xe.eventKey];xn&&(xn.children||[]).length&&(jt=mr(g.value,xe.eventKey)),Y(jt),Me&&Me(jt,{node:xe.eventData,expanded:!0,nativeEvent:$e})},800)),I.eventKey===pt&&it===0){j();return}m(h,{dragOverNodeKey:rn,dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt}),we&&we({event:$e,node:xe.eventData,expandedKeys:g.value})},Q=($e,xe)=>{const{onDragover:we,allowDrop:Me,direction:Ne}=e;if(!I)return;const{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropAllowed:it,dropTargetPos:pt,dragOverNodeKey:ht}=fw($e,I,xe,a.value,w,Me,F.value,y.value,E.value,Ne);h.dragChildrenKeys.indexOf(Je)!==-1||!it||(I.eventKey===Je&&De===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||j():_e===h.dropPosition&&De===h.dropLevelOffset&&Je===h.dropTargetKey&&ft===h.dropContainerKey&&pt===h.dropTargetPos&&it===h.dropAllowed&&ht===h.dragOverNodeKey||m(h,{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropTargetPos:pt,dropAllowed:it,dragOverNodeKey:ht}),we&&we({event:$e,node:xe.eventData}))},K=($e,xe)=>{T===xe.eventKey&&!$e.currentTarget.contains($e.relatedTarget)&&(j(),T=null);const{onDragleave:we}=e;we&&we({event:$e,node:xe.eventData})},q=function($e,xe){let we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Ne,dropPosition:_e,dropTargetKey:De,dropTargetPos:Je,dropAllowed:ft}=h;if(!ft)return;const{onDrop:it}=e;if(h.dragOverNodeKey=null,Z(),De===null)return;const pt=m(m({},Uu(De,Qe(_.value))),{active:((Me=he.value)===null||Me===void 0?void 0:Me.key)===De,data:y.value[De].node});Ne.indexOf(De);const ht=My(Je),Ut={event:$e,node:Yu(pt),dragNode:I?I.eventData:null,dragNodesKeys:[I.eventKey].concat(Ne),dropToGap:_e!==0,dropPosition:_e+Number(ht[ht.length-1])};we||it==null||it(Ut),I=null},pe=($e,xe)=>{const{expanded:we,key:Me}=xe,Ne=F.value.filter(De=>De.key===Me)[0],_e=Yu(m(m({},Uu(Me,_.value)),{data:Ne.data}));Y(we?qo(g.value,Me):mr(g.value,Me)),ye($e,_e)},W=($e,xe)=>{const{onClick:we,expandAction:Me}=e;Me==="click"&&pe($e,xe),we&&we($e,xe)},X=($e,xe)=>{const{onDblclick:we,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&pe($e,xe),we&&we($e,xe)},ne=($e,xe)=>{let we=s.value;const{onSelect:Me,multiple:Ne}=e,{selected:_e}=xe,De=xe[C.value.key],Je=!_e;Je?Ne?we=mr(we,De):we=[De]:we=qo(we,De);const ft=y.value,it=we.map(pt=>{const ht=ft[pt];return ht?ht.node:null}).filter(pt=>pt);e.selectedKeys===void 0&&(s.value=we),Me&&Me(we,{event:"select",selected:Je,node:xe,selectedNodes:it,nativeEvent:$e})},ae=($e,xe,we)=>{const{checkStrictly:Me,onCheck:Ne}=e,_e=xe[C.value.key];let De;const Je={event:"check",node:xe,checked:we,nativeEvent:$e},ft=y.value;if(Me){const it=we?mr(c.value,_e):qo(c.value,_e),pt=qo(u.value,_e);De={checked:it,halfChecked:pt},Je.checkedNodes=it.map(ht=>ft[ht]).filter(ht=>ht).map(ht=>ht.node),e.checkedKeys===void 0&&(c.value=it)}else{let{checkedKeys:it,halfCheckedKeys:pt}=So([...c.value,_e],!0,ft,L.value,k.value);if(!we){const ht=new Set(it);ht.delete(_e),{checkedKeys:it,halfCheckedKeys:pt}=So(Array.from(ht),{checked:!1,halfCheckedKeys:pt},ft,L.value,k.value)}De=it,Je.checkedNodes=[],Je.checkedNodesPositions=[],Je.halfCheckedKeys=pt,it.forEach(ht=>{const Ut=ft[ht];if(!Ut)return;const{node:Jt,pos:rn}=Ut;Je.checkedNodes.push(Jt),Je.checkedNodesPositions.push({node:Jt,pos:rn})}),e.checkedKeys===void 0&&(c.value=it,u.value=pt)}Ne&&Ne(De,Je)},se=$e=>{const xe=$e[C.value.key],we=new Promise((Me,Ne)=>{const{loadData:_e,onLoad:De}=e;if(!_e||R.value.has(xe)||z.value.has(xe))return null;_e($e).then(()=>{const ft=mr(d.value,xe),it=qo(f.value,xe);De&&De(ft,{event:"load",node:$e}),e.loadedKeys===void 0&&(d.value=ft),f.value=it,Me()}).catch(ft=>{const it=qo(f.value,xe);if(f.value=it,v[xe]=(v[xe]||0)+1,v[xe]>=Sfe){const pt=mr(d.value,xe);e.loadedKeys===void 0&&(d.value=pt),Me()}Ne(ft)}),f.value=mr(f.value,xe)});return we.catch(()=>{}),we},re=($e,xe)=>{const{onMouseenter:we}=e;we&&we({event:$e,node:xe})},de=($e,xe)=>{const{onMouseleave:we}=e;we&&we({event:$e,node:xe})},ge=($e,xe)=>{const{onRightClick:we}=e;we&&($e.preventDefault(),we({event:$e,node:xe}))},me=$e=>{const{onFocus:xe}=e;S.value=!0,xe&&xe($e)},fe=$e=>{const{onBlur:xe}=e;S.value=!1,ce(null),xe&&xe($e)},ye=($e,xe)=>{let we=g.value;const{onExpand:Me,loadData:Ne}=e,{expanded:_e}=xe,De=xe[C.value.key];if(x.value)return;we.indexOf(De);const Je=!_e;if(Je?we=mr(we,De):we=qo(we,De),Y(we),Me&&Me(we,{node:xe,expanded:Je,nativeEvent:$e}),Je&&Ne){const ft=se(xe);ft&&ft.then(()=>{}).catch(it=>{const pt=qo(g.value,De);Y(pt),Promise.reject(it)})}},Se=()=>{x.value=!0},ue=()=>{setTimeout(()=>{x.value=!1})},ce=$e=>{const{onActiveChange:xe}=e;$.value!==$e&&(e.activeKey!==void 0&&($.value=$e),$e!==null&&H({key:$e}),xe&&xe($e))},he=P(()=>$.value===null?null:F.value.find($e=>{let{key:xe}=$e;return xe===$.value})||null),Pe=$e=>{let xe=F.value.findIndex(Me=>{let{key:Ne}=Me;return Ne===$.value});xe===-1&&$e<0&&(xe=F.value.length),xe=(xe+$e+F.value.length)%F.value.length;const we=F.value[xe];if(we){const{key:Me}=we;ce(Me)}else ce(null)},Ie=P(()=>Yu(m(m({},Uu($.value,_.value)),{data:he.value.data,active:!0}))),Ae=$e=>{const{onKeydown:xe,checkable:we,selectable:Me}=e;switch($e.which){case Oe.UP:{Pe(-1),$e.preventDefault();break}case Oe.DOWN:{Pe(1),$e.preventDefault();break}}const Ne=he.value;if(Ne&&Ne.data){const _e=Ne.data.isLeaf===!1||!!(Ne.data.children||[]).length,De=Ie.value;switch($e.which){case Oe.LEFT:{_e&&E.value.has($.value)?ye({},De):Ne.parent&&ce(Ne.parent.key),$e.preventDefault();break}case Oe.RIGHT:{_e&&!E.value.has($.value)?ye({},De):Ne.children&&Ne.children.length&&ce(Ne.children[0].key),$e.preventDefault();break}case Oe.ENTER:case Oe.SPACE:{we&&!De.disabled&&De.checkable!==!1&&!De.disableCheckbox?ae({},De,!M.value.has($.value)):!we&&Me&&!De.disabled&&De.selectable!==!1&&ne({},De);break}}}xe&&xe($e)};return r({onNodeExpand:ye,scrollTo:H,onKeydown:Ae,selectedKeys:P(()=>s.value),checkedKeys:P(()=>c.value),halfCheckedKeys:P(()=>u.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>f.value),expandedKeys:P(()=>g.value)}),Rn(()=>{window.removeEventListener("dragend",ee),l.value=!0}),MJ({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:E,selectedKeysSet:A,loadedKeysSet:R,loadingKeysSet:z,checkedKeysSet:M,halfCheckedKeysSet:B,flattenNodes:F}),()=>{const{draggingNodeKey:$e,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e}=h,{prefixCls:De,showLine:Je,focusable:ft,tabindex:it=0,selectable:pt,showIcon:ht,icon:Ut=o.icon,switcherIcon:Jt,draggable:rn,checkable:jt,checkStrictly:xn,disabled:Wn,motion:uo,loadData:To,filterTreeNode:Vn,height:El,itemHeight:Ee,virtual:Ue,dropIndicatorRender:Ke,onContextmenu:Ct,onScroll:en,direction:Wt,rootClassName:Kn,rootStyle:gn}=e,{class:Go,style:Jn}=n,fo=wl(m(m({},e),n),{aria:!0,data:!0});let At;return rn?typeof rn=="object"?At=rn:typeof rn=="function"?At={nodeDraggable:rn}:At={}:At=!1,p(EJ,{value:{prefixCls:De,selectable:pt,showIcon:ht,icon:Ut,switcherIcon:Jt,draggable:At,draggingNodeKey:$e,checkable:jt,customCheckable:o.checkable,checkStrictly:xn,disabled:Wn,keyEntities:y.value,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e,dragging:$e!==null,indent:a.value,direction:Wt,dropIndicatorRender:Ke,loadData:To,filterTreeNode:Vn,onNodeClick:W,onNodeDoubleClick:X,onNodeExpand:ye,onNodeSelect:ne,onNodeCheck:ae,onNodeLoad:se,onNodeMouseEnter:re,onNodeMouseLeave:de,onNodeContextMenu:ge,onNodeDragStart:G,onNodeDragEnter:J,onNodeDragOver:Q,onNodeDragLeave:K,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[p("div",{role:"tree",class:ie(De,Go,Kn,{[`${De}-show-line`]:Je,[`${De}-focused`]:S.value,[`${De}-active-focused`]:$.value!==null}),style:gn},[p(bfe,D({ref:O,prefixCls:De,style:Jn,disabled:Wn,selectable:pt,checkable:!!jt,motion:uo,height:El,itemHeight:Ee,virtual:Ue,focusable:ft,focused:S.value,tabindex:it,activeItem:he.value,onFocus:me,onBlur:fe,onKeydown:Ae,onActiveChange:ce,onListChangeStart:Se,onListChangeEnd:ue,onContextmenu:Ct,onScroll:en},fo),null)])]})}}});var $fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Cfe=$fe;function i4(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kfe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),zfe=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l}=t,i=(l-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:m(m({},Xe(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:m({},Ar(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ffe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:m({},Ar(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:l,lineHeight:`${l}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:m(m({},Lfe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${l}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l/2*.8,height:l/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${l}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${l}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:m({lineHeight:`${l}px`,userSelect:"none"},kfe(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${l/2}px !important`}}}}})}},Hfe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},j5=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,l=t.controlHeightSM,i=Fe(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l});return[zfe(e,i),Hfe(i)]},jfe=Ve("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Kp(`${n}-checkbox`,e)},j5(n,e),Ac(e)]}),W5=()=>{const e=c8();return m(m({},e),{showLine:Le([Boolean,Object]),multiple:Ce(),autoExpandParent:Ce(),checkStrictly:Ce(),checkable:Ce(),disabled:Ce(),defaultExpandAll:Ce(),defaultExpandParent:Ce(),defaultExpandedKeys:at(),expandedKeys:at(),checkedKeys:Le([Array,Object]),defaultCheckedKeys:at(),selectedKeys:at(),defaultSelectedKeys:at(),selectable:Ce(),loadedKeys:at(),draggable:Ce(),showIcon:Ce(),icon:ve(),switcherIcon:V.any,prefixCls:String,replaceFields:Re(),blockNode:Ce(),openAnimation:V.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":ve(),"onUpdate:checkedKeys":ve(),"onUpdate:expandedKeys":ve()})},fd=oe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:qe(W5(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:l}=t;e.treeData===void 0&&l.default;const{prefixCls:i,direction:a,virtual:s}=Te("tree",e),[c,u]=jfe(i),d=le();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),ke(()=>{xt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},v=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=l.switcherIcon,icon:$=l.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:I=e.openAnimation,itemHeight:T=28,onDoubleclick:_,onDblclick:E}=e,A=m(m(m({},n),et(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:Nfe,fieldNames:w,icon:$,itemHeight:T}),R=l.default?_t(l.default()):void 0;return c(p(k5,D(D({},A),{},{virtual:s.value,motion:I,ref:d,prefixCls:i.value,class:ie({[`${i.value}-icon-hide`]:!b,[`${i.value}-block-node`]:x,[`${i.value}-unselectable`]:!O,[`${i.value}-rtl`]:a.value==="rtl"},n.class,u.value),direction:a.value,checkable:C,selectable:O,switcherIcon:z=>H5(i.value,S,z,l.leafIcon,y),onCheck:g,onExpand:v,onSelect:h,onDblclick:E||_,children:R}),m(m({},l),{checkable:()=>p("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var Wfe={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"};const Vfe=Wfe;function d4(e){for(var t=1;t{if(a===Sr.End)return!1;if(s(c)){if(i.push(c),a===Sr.None)a=Sr.Start;else if(a===Sr.Start)return a=Sr.End,!1}else a===Sr.Start&&i.push(c);return n.includes(c)}),i}function Bh(e,t,n){const o=[...t],r=[];return D1(e,n,(l,i)=>{const a=o.indexOf(l);return a!==-1&&(r.push(i),o.splice(a,1)),!!o.length}),r}var Qfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},W5()),{expandAction:Le([Boolean,String])});function epe(e){const{isLeaf:t,expanded:n}=e;return p(t?z5:n?Gfe:qfe,null,null)}const pd=oe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:qe(Jfe(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;var i;const a=le(e.treeData||em(_t((i=o.default)===null||i===void 0?void 0:i.call(o))));be(()=>e.treeData,()=>{a.value=e.treeData}),An(()=>{ot(()=>{var T;e.treeData===void 0&&o.default&&(a.value=em(_t((T=o.default)===null||T===void 0?void 0:T.call(o))))})});const s=le(),c=le(),u=P(()=>Fp(e.fieldNames)),d=le();l({scrollTo:T=>{var _;(_=d.value)===null||_===void 0||_.scrollTo(T)},selectedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.selectedKeys}),checkedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.checkedKeys}),halfCheckedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.halfCheckedKeys}),loadedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadedKeys}),loadingKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadingKeys}),expandedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.expandedKeys})});const g=()=>{const{keyEntities:T}=kc(a.value,{fieldNames:u.value});let _;return e.defaultExpandAll?_=Object.keys(T):e.defaultExpandParent?_=Jv(e.expandedKeys||e.defaultExpandedKeys||[],T):_=e.expandedKeys||e.defaultExpandedKeys,_},v=le(e.selectedKeys||e.defaultSelectedKeys||[]),h=le(g());be(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),be(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=Sb((T,_)=>{const{isLeaf:E}=_;E||T.shiftKey||T.metaKey||T.ctrlKey||d.value.onNodeExpand(T,_)},200,{leading:!0}),S=(T,_)=>{e.expandedKeys===void 0&&(h.value=T),r("update:expandedKeys",T),r("expand",T,_)},$=(T,_)=>{const{expandAction:E}=e;E==="click"&&y(T,_),r("click",T,_)},x=(T,_)=>{const{expandAction:E}=e;(E==="dblclick"||E==="doubleclick")&&y(T,_),r("doubleclick",T,_),r("dblclick",T,_)},C=(T,_)=>{const{multiple:E}=e,{node:A,nativeEvent:R}=_,z=A[u.value.key],M=m(m({},_),{selected:!0}),B=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),N=R==null?void 0:R.shiftKey;let F;E&&B?(F=T,s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)):E&&N?(F=Array.from(new Set([...c.value||[],...Zfe({treeData:a.value,expandedKeys:h.value,startKey:z,endKey:s.value,fieldNames:u.value})])),M.selectedNodes=Bh(a.value,F,u.value)):(F=[z],s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)),r("update:selectedKeys",F),r("select",F,M),e.selectedKeys===void 0&&(v.value=F)},O=(T,_)=>{r("update:checkedKeys",T),r("check",T,_)},{prefixCls:w,direction:I}=Te("tree",e);return()=>{const T=ie(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:I.value==="rtl"},n.class),{icon:_=o.icon,blockNode:E=!0}=e,A=Qfe(e,["icon","blockNode"]);return p(fd,D(D(D({},n),{},{icon:_||epe,ref:d,blockNode:E},A),{},{prefixCls:w.value,class:T,expandedKeys:h.value,selectedKeys:v.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),gd=Qv,V5=m(fd,{DirectoryTree:pd,TreeNode:gd,install:e=>(e.component(fd.name,fd),e.component(gd.name,gd),e.component(pd.name,pd),e)});function p4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(l);if(Yf(!s,"Warning: There may be circular references"),s)return!1;if(l===i)return!0;if(n&&a>1)return!1;o.add(l);const c=a+1;if(Array.isArray(l)){if(!Array.isArray(i)||l.length!==i.length)return!1;for(let u=0;ur(l[d],i[d],c))}return!1}return r(e,t)}const{SubMenu:tpe,Item:npe}=Vt;function ope(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function K5(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function G5(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i}=e;return t.map((a,s)=>{const c=String(a.value);if(a.children)return p(tpe,{key:c||s,title:a.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[G5({filters:a.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i})]});const u=r?$o:Nn,d=p(npe,{key:a.value!==void 0?c:s},{default:()=>[p(u,{checked:o.includes(c)},null),p("span",null,[a.text])]});return l.trim()?typeof i=="function"?i(l,a)?d:void 0:K5(l,a.text)?d:void 0:d})}const rpe=oe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=C1(),r=P(()=>{var H;return(H=e.filterMode)!==null&&H!==void 0?H:"menu"}),l=P(()=>{var H;return(H=e.filterSearch)!==null&&H!==void 0?H:!1}),i=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),a=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=te(!1),c=P(()=>{var H;return!!(e.filterState&&(!((H=e.filterState.filteredKeys)===null||H===void 0)&&H.length||e.filterState.forceFiltered))}),u=P(()=>{var H;return Jp((H=e.column)===null||H===void 0?void 0:H.filters)}),d=P(()=>{const{filterDropdown:H,slots:Y={},customFilterDropdown:Z}=e.column;return H||Y.filterDropdown&&o.value[Y.filterDropdown]||Z&&o.value.customFilterDropdown}),f=P(()=>{const{filterIcon:H,slots:Y={}}=e.column;return H||Y.filterIcon&&o.value[Y.filterIcon]||o.value.customFilterIcon}),g=H=>{var Y;s.value=H,(Y=a.value)===null||Y===void 0||Y.call(a,H)},v=P(()=>typeof i.value=="boolean"?i.value:s.value),h=P(()=>{var H;return(H=e.filterState)===null||H===void 0?void 0:H.filteredKeys}),b=te([]),y=H=>{let{selectedKeys:Y}=H;b.value=Y},S=(H,Y)=>{let{node:Z,checked:U}=Y;e.filterMultiple?y({selectedKeys:H}):y({selectedKeys:U&&Z.key?[Z.key]:[]})};be(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=te([]),x=te(),C=H=>{x.value=setTimeout(()=>{$.value=H})},O=()=>{clearTimeout(x.value)};Ze(()=>{clearTimeout(x.value)});const w=te(""),I=H=>{const{value:Y}=H.target;w.value=Y};be(s,()=>{s.value||(w.value="")});const T=H=>{const{column:Y,columnKey:Z,filterState:U}=e,ee=H&&H.length?H:null;if(ee===null&&(!U||!U.filteredKeys)||p4(ee,U==null?void 0:U.filteredKeys,!0))return null;e.triggerFilter({column:Y,key:Z,filteredKeys:ee})},_=()=>{g(!1),T(b.value)},E=function(){let{confirm:H,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&T([]),Y&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(Z=>String(Z)):b.value=[]},A=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&g(!1),T(b.value)},R=H=>{H&&h.value!==void 0&&(b.value=h.value||[]),g(H),!H&&!d.value&&_()},{direction:z}=Te("",e),M=H=>{if(H.target.checked){const Y=u.value;b.value=Y}else b.value=[]},B=H=>{let{filters:Y}=H;return(Y||[]).map((Z,U)=>{const ee=String(Z.value),G={title:Z.text,key:Z.value!==void 0?ee:U};return Z.children&&(G.children=B({filters:Z.children})),G})},N=H=>{var Y;return m(m({},H),{text:H.title,value:H.key,children:((Y=H.children)===null||Y===void 0?void 0:Y.map(Z=>N(Z)))||[]})},F=P(()=>B({filters:e.column.filters})),L=P(()=>ie({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!ope(e.column.filters||[])})),k=()=>{const H=b.value,{column:Y,locale:Z,tablePrefixCls:U,filterMultiple:ee,dropdownPrefixCls:G,getPopupContainer:J,prefixCls:Q}=e;return(Y.filters||[]).length===0?p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,description:Z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p("div",{class:`${U}-filter-dropdown-tree`},[ee?p($o,{class:`${U}-filter-dropdown-checkall`,onChange:M,checked:H.length===u.value.length,indeterminate:H.length>0&&H.length[Z.filterCheckall]}):null,p(V5,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,class:`${G}-menu`,onCheck:S,checkedKeys:H,selectedKeys:H,showIcon:!1,treeData:F.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?K=>typeof l.value=="function"?l.value(w.value,N(K)):K5(w.value,K.title):void 0},null)])]):p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p(Vt,{multiple:ee,prefixCls:`${G}-menu`,class:L.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:H,getPopupContainer:J,openKeys:$.value,onOpenChange:C},{default:()=>G5({filters:Y.filters||[],filterSearch:l.value,prefixCls:Q,filteredKeys:b.value,filterMultiple:ee,searchValue:w.value})})])},j=P(()=>{const H=b.value;return e.column.filterResetToDefaultFilteredValue?p4((e.column.defaultFilteredValue||[]).map(Y=>String(Y)),H,!0):H.length===0});return()=>{var H;const{tablePrefixCls:Y,prefixCls:Z,column:U,dropdownPrefixCls:ee,locale:G,getPopupContainer:J}=e;let Q;typeof d.value=="function"?Q=d.value({prefixCls:`${ee}-custom`,setSelectedKeys:pe=>y({selectedKeys:pe}),selectedKeys:b.value,confirm:A,clearFilters:E,filters:U.filters,visible:v.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Q=d.value:Q=p(We,null,[k(),p("div",{class:`${Z}-dropdown-btns`},[p(zt,{type:"link",size:"small",disabled:j.value,onClick:()=>E()},{default:()=>[G.filterReset]}),p(zt,{type:"primary",size:"small",onClick:_},{default:()=>[G.filterConfirm]})])]);const K=p(pfe,{class:`${Z}-dropdown`},{default:()=>[Q]});let q;return typeof f.value=="function"?q=f.value({filtered:c.value,column:U.__originColumn__}):f.value?q=f.value:q=p(ufe,null,null),p("div",{class:`${Z}-column`},[p("span",{class:`${Y}-column-title`},[(H=n.default)===null||H===void 0?void 0:H.call(n)]),p(rr,{overlay:K,trigger:["click"],open:v.value,onOpenChange:R,getPopupContainer:J,placement:z.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[p("span",{role:"button",tabindex:-1,class:ie(`${Z}-trigger`,{active:c.value}),onClick:pe=>{pe.stopPropagation()}},[q])]})])}}});function _m(e,t,n){let o=[];return(e||[]).forEach((r,l)=>{var i,a;const s=Wc(l,n),c=r.filterDropdown||((i=r==null?void 0:r.slots)===null||i===void 0?void 0:i.filterDropdown)||r.customFilterDropdown;if(r.filters||c||"onFilter"in r)if("filteredValue"in r){let u=r.filteredValue;c||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),o.push({column:r,key:pi(r,s),filteredKeys:u,forceFiltered:r.filtered})}else o.push({column:r,key:pi(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,..._m(r.children,t,s)])}),o}function X5(e,t,n,o,r,l,i,a){return n.map((s,c)=>{var u;const d=Wc(c,a),{filterMultiple:f=!0,filterMode:g,filterSearch:v}=s;let h=s;const b=s.filterDropdown||((u=s==null?void 0:s.slots)===null||u===void 0?void 0:u.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=pi(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=m(m({},h),{title:$=>p(rpe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:f,filterMode:g,filterSearch:v,triggerFilter:l,locale:r,getPopupContainer:i},{default:()=>[P1(s.title,$)]})})}return"children"in h&&(h=m(m({},h),{children:X5(e,t,h.children,o,r,l,i,d)})),h})}function Jp(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...Jp(r)])}),t}function g4(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:l}=n;var i;const a=l.filterDropdown||((i=l==null?void 0:l.slots)===null||i===void 0?void 0:i.filterDropdown)||l.customFilterDropdown,{filters:s}=l;if(a)t[o]=r||null;else if(Array.isArray(r)){const c=Jp(s);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t}function h4(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:l},filteredKeys:i}=o;return r&&i&&i.length?n.filter(a=>i.some(s=>{const c=Jp(l),u=c.findIndex(f=>String(f)===String(s)),d=u!==-1?c[u]:s;return r(d,a)})):n},e)}function U5(e){return e.flatMap(t=>"children"in t?[t,...U5(t.children||[])]:[t])}function lpe(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:l,getPopupContainer:i}=e;const a=P(()=>U5(o.value)),[s,c]=vt(_m(a.value,!0)),u=P(()=>{const v=_m(a.value,!1);if(v.length===0)return v;let h=!0,b=!0;if(v.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(a.value||[]).map((S,$)=>pi(S,Wc($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=a.value[y.findIndex(x=>x===S.key)];return m(m({},S),{column:m(m({},S.column),$),forceFiltered:$.filtered})})}return xt(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),d=P(()=>g4(u.value)),f=v=>{const h=u.value.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),c(h),l(g4(h),h)};return[v=>X5(t.value,n.value,v,u.value,r.value,f,i.value),u,d]}function Y5(e,t){return e.map(n=>{const o=m({},n);return o.title=P1(o.title,t),"children"in o&&(o.children=Y5(o.children,t)),o})}function ipe(e){return[n=>Y5(n,e.value)]}function ape(e){return function(n){let{prefixCls:o,onExpand:r,record:l,expanded:i,expandable:a}=n;const s=`${o}-row-expand-icon`;return p("button",{type:"button",onClick:c=>{r(l,c),c.stopPropagation()},class:ie(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function q5(e,t){const n=t.value;return e.map(o=>{var r;if(o===yr||o===ol)return o;const l=m({},o),{slots:i={}}=l;return l.__originColumn__=o,xt(!("slots"in l),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(a=>{const s=i[a];l[a]===void 0&&n[s]&&(l[a]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(l.title=np(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in l&&Array.isArray(l.children)&&(l.children=q5(l.children,t)),l})}function spe(e){return[n=>q5(n,e)]}const cpe=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,l,i)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${l}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:m(m(m({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` - > ${t}-content, - > ${t}-header - `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},upe=cpe,dpe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:m(m({},Gt),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},fpe=dpe,ppe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},gpe=ppe,hpe=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:l,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:g,lineHeight:v,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-l,x=$*2+l*3,C=`${l}px ${a} ${s}`,O=S-l;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:m(m({},Jf(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:c,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:l},"&::after":{top:O,bottom:O,insetInlineStart:$,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*v-l*3)/2-Math.ceil((g*1.4-l*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},vpe=hpe,mpe=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T}=e,_=`${n}-dropdown`,E=`${t}-filter-dropdown`,A=`${n}-tree`,R=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:f,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[E]:m(m({},Xe(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:T,[`${_}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:w},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${E}-search`]:{padding:a,borderBottom:R,"&-input":{input:{minWidth:l},[o]:{color:x}}},[`${E}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:R}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},bpe=mpe,ype=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:a}=e,s=o;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:l,background:i},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},Spe=ype,$pe=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Cpe=$pe,xpe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},wpe=xpe,Ope=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},Ppe=Ope,Ipe=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:l,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+l*2},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[o]:{color:i,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},Tpe=Ipe,Epe=e=>{const{componentCls:t}=e,n=(o,r,l,i)=>({[`${t}${t}-${o}`]:{fontSize:i,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:m(m({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Mpe=Epe,_pe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},Ape=_pe,Rpe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Dpe=Rpe,Bpe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:a,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},Npe=Bpe,Fpe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},v4=Fpe,Lpe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:l,lineType:i,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:h,tableSelectedRowBg:b,tableSelectedRowHoverBg:y,tableFooterTextColor:S,tableFooterBg:$,paddingContentVerticalLG:x}=e,C=`${l}px ${i} ${a}`;return{[`${t}-wrapper`]:m(m({clear:"both",maxWidth:"100%"},zo()),{[t]:m(m({},Xe(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${x}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:C,borderBottom:"transparent"},"&:last-child > td":{borderBottom:C},[`&:first-child > td, - &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:C}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` - &${t}-row:hover > td, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},kpe=Ve("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:l,colorBorderSecondary:i,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:g,colorIconHover:v,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new gt(g),O=new gt(v),w=t,I=2,T=new gt($).onBackground(b).toHexString(),_=new gt(S).onBackground(b).toHexString(),E=new gt(f).onBackground(b).toHexString(),A=Fe(e,{tableFontSize:a,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:i,tableHeaderTextColor:r,tableHeaderBg:E,tableFooterTextColor:r,tableFooterBg:E,tableHeaderCellSplitColor:i,tableHeaderSortBg:T,tableHeaderSortHoverBg:_,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:E,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:I,zIndexTableSticky:I+1,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:l});return[Lpe(A),Cpe(A),v4(A),Dpe(A),bpe(A),upe(A),wpe(A),vpe(A),v4(A),gpe(A),Tpe(A),Spe(A),Npe(A),fpe(A),Mpe(A),Ape(A),Ppe(A)]}),zpe=[],Z5=()=>({prefixCls:Be(),columns:at(),rowKey:Le([String,Function]),tableLayout:Be(),rowClassName:Le([String,Function]),title:ve(),footer:ve(),id:Be(),showHeader:Ce(),components:Re(),customRow:ve(),customHeaderRow:ve(),direction:Be(),expandFixed:Le([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:at(),defaultExpandedRowKeys:at(),expandedRowRender:ve(),expandRowByClick:Ce(),expandIcon:ve(),onExpand:ve(),onExpandedRowsChange:ve(),"onUpdate:expandedRowKeys":ve(),defaultExpandAllRows:Ce(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ce(),expandedRowClassName:ve(),childrenColumnName:Be(),rowExpandable:ve(),sticky:Le([Boolean,Object]),dropdownPrefixCls:String,dataSource:at(),pagination:Le([Boolean,Object]),loading:Le([Boolean,Object]),size:Be(),bordered:Ce(),locale:Re(),onChange:ve(),onResizeColumn:ve(),rowSelection:Re(),getPopupContainer:ve(),scroll:Re(),sortDirections:at(),showSorterTooltip:Le([Boolean,Object],!0),transformCellText:ve()}),Hpe=oe({name:"InternalTable",inheritAttrs:!1,props:qe(m(m({},Z5()),{contextSlots:Re()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;xt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ede(P(()=>e.contextSlots)),tde({onResizeColumn:(ae,se)=>{l("resizeColumn",ae,se)}});const i=Va(),a=P(()=>{const ae=new Set(Object.keys(i.value).filter(se=>i.value[se]));return e.columns.filter(se=>!se.responsive||se.responsive.some(re=>ae.has(re)))}),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:f}=Te("table",e),[g,v]=kpe(d),h=P(()=>{var ae;return e.transformCellText||((ae=f.transformCellText)===null||ae===void 0?void 0:ae.value)}),[b]=Io("Table",jn.Table,ze(e,"locale")),y=P(()=>e.dataSource||zpe),S=P(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ae=>ae==null?void 0:ae[$.value])?"nest":e.expandedRowRender?"row":null),C=ut({body:null}),O=ae=>{m(C,ae)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ae=>ae==null?void 0:ae[e.rowKey]),[I]=Xde(y,$,w),T={},_=function(ae,se){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:de,scroll:ge,onChange:me}=e,fe=m(m({},T),ae);re&&(T.resetPagination(),fe.pagination.current&&(fe.pagination.current=1),de&&de.onChange&&de.onChange(1,fe.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&C.body&&I0(0,{getContainer:()=>C.body}),me==null||me(fe.pagination,fe.filters,fe.sorter,{currentDataSource:h4(Em(y.value,fe.sorterStates,$.value),fe.filterStates),action:se})},E=(ae,se)=>{_({sorter:ae,sorterStates:se},"sort",!1)},[A,R,z,M]=ife({prefixCls:d,mergedColumns:a,onSorterChange:E,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:ze(e,"showSorterTooltip")}),B=P(()=>Em(y.value,R.value,$.value)),N=(ae,se)=>{_({filters:ae,filterStates:se},"filter",!0)},[F,L,k]=lpe({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:a,onFilterChange:N,getPopupContainer:ze(e,"getPopupContainer")}),j=P(()=>h4(B.value,L.value)),[H]=spe(ze(e,"contextSlots")),Y=P(()=>{const ae={},se=k.value;return Object.keys(se).forEach(re=>{se[re]!==null&&(ae[re]=se[re])}),m(m({},z.value),{filters:ae})}),[Z]=ipe(Y),U=(ae,se)=>{_({pagination:m(m({},T.pagination),{current:ae,pageSize:se})},"paginate")},[ee,G]=Gde(P(()=>j.value.length),ze(e,"pagination"),U);ke(()=>{T.sorter=M.value,T.sorterStates=R.value,T.filters=k.value,T.filterStates=L.value,T.pagination=e.pagination===!1?{}:Kde(ee.value,e.pagination),T.resetPagination=G});const J=P(()=>{if(e.pagination===!1||!ee.value.pageSize)return j.value;const{current:ae=1,total:se,pageSize:re=wm}=ee.value;return xt(ae>0,"Table","`current` should be positive number."),j.value.lengthre?j.value.slice((ae-1)*re,ae*re):j.value:j.value.slice((ae-1)*re,ae*re)});ke(()=>{ot(()=>{const{total:ae,pageSize:se=wm}=ee.value;j.value.lengthse&&xt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Q=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),K=le();be(()=>e.rowSelection,()=>{K.value=e.rowSelection?m({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,pe]=Yde(K,{prefixCls:d,data:j,pageData:J,getRowKey:w,getRecordByKey:I,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),W=(ae,se,re)=>{let de;const{rowClassName:ge}=e;return typeof ge=="function"?de=ie(ge(ae,se,re)):de=ie(ge),ie({[`${d.value}-row-selected`]:pe.value.has(w.value(ae,se))},de)};r({selectedKeySet:pe});const X=P(()=>typeof e.indentSize=="number"?e.indentSize:15),ne=ae=>Z(q(F(A(H(ae)))));return()=>{var ae;const{expandIcon:se=o.expandIcon||ape(b.value),pagination:re,loading:de,bordered:ge}=e;let me,fe;if(re!==!1&&(!((ae=ee.value)===null||ae===void 0)&&ae.total)){let ce;ee.value.size?ce=ee.value.size:ce=s.value==="small"||s.value==="middle"?"small":void 0;const he=Ae=>p(Up,D(D({},ee.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,ee.value.class],size:ce}),null),Pe=u.value==="rtl"?"left":"right",{position:Ie}=ee.value;if(Ie!==null&&Array.isArray(Ie)){const Ae=Ie.find(we=>we.includes("top")),$e=Ie.find(we=>we.includes("bottom")),xe=Ie.every(we=>`${we}`=="none");!Ae&&!$e&&!xe&&(fe=he(Pe)),Ae&&(me=he(Ae.toLowerCase().replace("top",""))),$e&&(fe=he($e.toLowerCase().replace("bottom","")))}else fe=he(Pe)}let ye;typeof de=="boolean"?ye={spinning:de}:typeof de=="object"&&(ye=m({spinning:!0},de));const Se=ie(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:u.value==="rtl"},n.class,v.value),ue=et(e,["columns"]);return g(p("div",{class:Se,style:n.style},[p(ir,D({spinning:!1},ye),{default:()=>[me,p(Wde,D(D(D({},n),ue),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Q.value,indentSize:X.value,expandIcon:se,columns:a.value,direction:u.value,prefixCls:d.value,class:ie({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:ge,[`${d.value}-empty`]:y.value.length===0}),data:J.value,rowKey:w.value,rowClassName:W,internalHooks:xm,internalRefs:C,onUpdateInternalRefs:O,transformColumns:ne,transformCellText:h.value}),m(m({},o),{emptyText:()=>{var ce,he;return((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||((he=e.locale)===null||he===void 0?void 0:he.emptyText)||c("Table")}})),fe]})]))}}}),jpe=oe({name:"ATable",inheritAttrs:!1,props:qe(Z5(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=le();return r({table:l}),()=>{var i;const a=e.columns||N5((i=o.default)===null||i===void 0?void 0:i.call(o));return p(Hpe,D(D(D({ref:l},n),e),{},{columns:a||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:m({},o)}),o)}}}),Nh=jpe,hd=oe({name:"ATableColumn",slots:Object,render(){return null}}),vd=oe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Of=_de,Pf=Dde,md=m(Bde,{Cell:Pf,Row:Of,name:"ATableSummary"}),Wpe=m(Nh,{SELECTION_ALL:Om,SELECTION_INVERT:Pm,SELECTION_NONE:Im,SELECTION_COLUMN:yr,EXPAND_COLUMN:ol,Column:hd,ColumnGroup:vd,Summary:md,install:e=>(e.component(md.name,md),e.component(Pf.name,Pf),e.component(Of.name,Of),e.component(Nh.name,Nh),e.component(hd.name,hd),e.component(vd.name,vd),e)}),Vpe={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},Kpe=oe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:qe(Vpe,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=r=>{var l;n("change",r),r.target.value===""&&((l=e.handleClear)===null||l===void 0||l.call(e))};return()=>{const{placeholder:r,value:l,prefixCls:i,disabled:a}=e;return p(tn,{placeholder:r,class:i,value:l,onChange:o,disabled:a,allowClear:!0},{prefix:()=>p(mp,null,null)})}}});var Gpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Xpe=Gpe;function m4(e){for(var t=1;t{const{renderedText:o,renderedEl:r,item:l,checked:i,disabled:a,prefixCls:s,showRemove:c}=e,u=ie({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:a||l.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer},{default:f=>{const g=p("span",{class:`${s}-content-item-text`},[r]);return c?p("li",{class:u,title:d},[g,p(Cf,{disabled:a||l.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",l)}},{default:()=>[p(Q5,null,null)]})]):p("li",{class:u,title:d,onClick:a||l.disabled?Ype:()=>{n("click",l)}},[p($o,{class:`${s}-checkbox`,checked:i,disabled:a||l.disabled},null),g])}})}}}),Qpe={prefixCls:String,filteredRenderItems:V.array.def([]),selectedKeys:V.array,disabled:Ce(),showRemove:Ce(),pagination:V.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Jpe(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?m(m({},t),e):t}const ege=oe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Qpe,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=le(1),l=d=>{const{selectedKeys:f}=e,g=f.indexOf(d.key)>=0;n("itemSelect",d.key,!g)},i=d=>{n("itemRemove",[d.key])},a=d=>{n("scroll",d)},s=P(()=>Jpe(e.pagination));be([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,d)}},{immediate:!0});const c=P(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),f}),u=d=>{r.value=d};return o({items:c}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:g,disabled:v,showRemove:h}=e;let b=null;s.value&&(b=p(Up,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const y=c.value.map(S=>{let{renderedEl:$,renderedText:x,item:C}=S;const{disabled:O}=C,w=g.indexOf(C.key)>=0;return p(Zpe,{disabled:v||O,key:C.key,item:C,renderedText:x,renderedEl:$,checked:w,prefixCls:d,onClick:l,onRemove:i,showRemove:h},null)});return p(We,null,[p("ul",{class:ie(`${d}-content`,{[`${d}-content-show-remove`]:h}),onScroll:a},[y]),b])}}}),tge=ege,Am=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},nge=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:r,key:l}=n;r&&t.set(l,o)}),t},oge=()=>null;function rge(e){return!!(e&&!Kt(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Iu(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const lge={prefixCls:String,dataSource:at([]),filter:String,filterOption:Function,checkedKeys:V.arrayOf(V.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Ce(!1),searchPlaceholder:String,notFoundContent:V.any,itemUnit:String,itemsUnit:String,renderList:V.any,disabled:Ce(),direction:Be(),showSelectAll:Ce(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:V.any,showRemove:Ce(),pagination:V.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},b4=oe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:lge,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(""),l=le(),i=le(),a=(C,O)=>{let w=C?C(O):null;const I=!!w&&_t(w).length>0;return I||(w=p(tge,D(D({},O),{},{ref:i}),null)),{customize:I,bodyContent:w}},s=C=>{const{renderItem:O=oge}=e,w=O(C),I=rge(w);return{renderedText:I?w.value:w,renderedEl:I?w.label:w,item:C}},c=le([]),u=le([]);ke(()=>{const C=[],O=[];e.dataSource.forEach(w=>{const I=s(w),{renderedText:T}=I;if(r.value&&r.value.trim()&&!y(T,w))return null;C.push(w),O.push(I)}),c.value=C,u.value=O});const d=P(()=>{const{checkedKeys:C}=e;if(C.length===0)return"none";const O=Am(C);return c.value.every(w=>O.has(w.key)||!!w.disabled)?"all":"part"}),f=P(()=>Iu(c.value)),g=(C,O)=>Array.from(new Set([...C,...e.checkedKeys])).filter(w=>O.indexOf(w)===-1),v=C=>{let{disabled:O,prefixCls:w}=C;var I;const T=d.value==="all";return p($o,{disabled:((I=e.dataSource)===null||I===void 0?void 0:I.length)===0||O,checked:T,indeterminate:d.value==="part",class:`${w}-checkbox`,onChange:()=>{const E=f.value;e.onItemSelectAll(g(T?[]:E,T?e.checkedKeys:[]))}},null)},h=C=>{var O;const{target:{value:w}}=C;r.value=w,(O=e.handleFilter)===null||O===void 0||O.call(e,C)},b=C=>{var O;r.value="",(O=e.handleClear)===null||O===void 0||O.call(e,C)},y=(C,O)=>{const{filterOption:w}=e;return w?w(r.value,O):C.includes(r.value)},S=(C,O)=>{const{itemsUnit:w,itemUnit:I,selectAllLabel:T}=e;if(T)return typeof T=="function"?T({selectedCount:C,totalCount:O}):T;const _=O>1?w:I;return p(We,null,[(C>0?`${C}/`:"")+O,Lt(" "),_])},$=P(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),x=(C,O,w,I,T,_)=>{const E=T?p("div",{class:`${C}-body-search-wrapper`},[p(Kpe,{prefixCls:`${C}-search`,onChange:h,handleClear:b,placeholder:O,value:r.value,disabled:_},null)]):null;let A;const{onEvents:R}=p0(n),{bodyContent:z,customize:M}=a(I,m(m(m({},e),{filteredItems:c.value,filteredRenderItems:u.value,selectedKeys:w}),R));return M?A=p("div",{class:`${C}-body-customize-wrapper`},[z]):A=c.value.length?z:p("div",{class:`${C}-body-not-found`},[$.value]),p("div",{class:T?`${C}-body ${C}-body-with-search`:`${C}-body`,ref:l},[E,A])};return()=>{var C,O;const{prefixCls:w,checkedKeys:I,disabled:T,showSearch:_,searchPlaceholder:E,selectAll:A,selectCurrent:R,selectInvert:z,removeAll:M,removeCurrent:B,renderList:N,onItemSelectAll:F,onItemRemove:L,showSelectAll:k=!0,showRemove:j,pagination:H}=e,Y=(C=o.footer)===null||C===void 0?void 0:C.call(o,m({},e)),Z=ie(w,{[`${w}-with-pagination`]:!!H,[`${w}-with-footer`]:!!Y}),U=x(w,E,I,N,_,T),ee=Y?p("div",{class:`${w}-footer`},[Y]):null,G=!j&&!H&&v({disabled:T,prefixCls:w});let J=null;j?J=p(Vt,null,{default:()=>[H&&p(Vt.Item,{key:"removeCurrent",onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));L==null||L(K)}},{default:()=>[B]}),p(Vt.Item,{key:"removeAll",onClick:()=>{L==null||L(f.value)}},{default:()=>[M]})]}):J=p(Vt,null,{default:()=>[p(Vt.Item,{key:"selectAll",onClick:()=>{const K=f.value;F(g(K,[]))}},{default:()=>[A]}),H&&p(Vt.Item,{onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));F(g(K,[]))}},{default:()=>[R]}),p(Vt.Item,{key:"selectInvert",onClick:()=>{let K;H?K=Iu((i.value.items||[]).map(X=>X.item)):K=f.value;const q=new Set(I),pe=[],W=[];K.forEach(X=>{q.has(X)?W.push(X):pe.push(X)}),F(g(pe,W))}},{default:()=>[z]})]});const Q=p(rr,{class:`${w}-header-dropdown`,overlay:J,disabled:T},{default:()=>[p(Ec,null,null)]});return p("div",{class:Z,style:n.style},[p("div",{class:`${w}-header`},[k?p(We,null,[G,Q]):null,p("span",{class:`${w}-header-selected`},[p("span",null,[S(I.length,c.value.length)]),p("span",{class:`${w}-header-title`},[(O=o.titleText)===null||O===void 0?void 0:O.call(o)])])]),U,ee])}}});function y4(){}const N1=e=>{const{disabled:t,moveToLeft:n=y4,moveToRight:o=y4,leftArrowText:r="",rightArrowText:l="",leftActive:i,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return p("div",{class:s,style:c},[p(zt,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p(u!=="rtl"?Wo:Sl,null,null)},{default:()=>[l]}),!d&&p(zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:p(u!=="rtl"?Sl:Wo,null,null)},{default:()=>[r]})])};N1.displayName="Operation";N1.inheritAttrs=!1;const ige=N1,age=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:l,margin:i}=e,a=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${i}px 0 ${l}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},S4=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},sge=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:m({},S4(e,e.colorError)),[`${t}-status-warning`]:m({},S4(e,e.colorWarning))}},cge=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:l,transferHeaderHeight:i,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:f,listWidth:g,listWidthLG:v,fontSizeIcon:h,marginXS:b,paddingSM:y,lineType:S,iconCls:$,motionDurationSlow:x}=e;return{display:"flex",flexDirection:"column",width:g,height:f,border:`${r}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${$}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${a-r}px ${y}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":m(m({},Gt),{flex:"auto",textAlign:"end"}),"&-dropdown":m(m({},yi()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:l,padding:`${s}px ${y}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:b},"> *":{flex:"none"},"&-text":m(m({},Gt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},uge=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:l,marginXXS:i,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:cge(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${l}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},dge=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},fge=Ve("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:l}=e,i=Math.round(t*n),a=r,s=l,c=Fe(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-i)/2),transferItemPaddingVertical:(s-i)/2});return[uge(c),age(c),sge(c),dge(c)]},{listWidth:180,listHeight:200,listWidthLG:250}),pge=()=>({id:String,prefixCls:String,dataSource:at([]),disabled:Ce(),targetKeys:at(),selectedKeys:at(),render:ve(),listStyle:Le([Function,Object],()=>({})),operationStyle:Re(void 0),titles:at(),operations:at(),showSearch:Ce(!1),filterOption:ve(),searchPlaceholder:String,notFoundContent:V.any,locale:Re(),rowKey:ve(),showSelectAll:Ce(),selectAllLabels:at(),children:ve(),oneWay:Ce(),pagination:Le([Object,Boolean]),status:Be(),onChange:ve(),onSelectChange:ve(),onSearch:ve(),onScroll:ve(),"onUpdate:targetKeys":ve(),"onUpdate:selectedKeys":ve()}),gge=oe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:pge(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{configProvider:i,prefixCls:a,direction:s}=Te("transfer",e),[c,u]=fge(a),d=le([]),f=le([]),g=Qt(),v=un.useInject(),h=P(()=>Ko(v.status,e.status));be(()=>e.selectedKeys,()=>{var U,ee;d.value=((U=e.selectedKeys)===null||U===void 0?void 0:U.filter(G=>e.targetKeys.indexOf(G)===-1))||[],f.value=((ee=e.selectedKeys)===null||ee===void 0?void 0:ee.filter(G=>e.targetKeys.indexOf(G)>-1))||[]},{immediate:!0});const b=(U,ee)=>{const G={notFoundContent:ee("Transfer")},J=qt(r,e,"notFoundContent");return J&&(G.notFoundContent=J),e.searchPlaceholder!==void 0&&(G.searchPlaceholder=e.searchPlaceholder),m(m(m({},U),G),e.locale)},y=U=>{const{targetKeys:ee=[],dataSource:G=[]}=e,J=U==="right"?d.value:f.value,Q=nge(G),K=J.filter(X=>!Q.has(X)),q=Am(K),pe=U==="right"?K.concat(ee):ee.filter(X=>!q.has(X)),W=U==="right"?"left":"right";U==="right"?d.value=[]:f.value=[],n("update:targetKeys",pe),w(W,[]),n("change",pe,U,K),g.onFieldChange()},S=()=>{y("left")},$=()=>{y("right")},x=(U,ee)=>{w(U,ee)},C=U=>x("left",U),O=U=>x("right",U),w=(U,ee)=>{U==="left"?(e.selectedKeys||(d.value=ee),n("update:selectedKeys",[...ee,...f.value]),n("selectChange",ee,Qe(f.value))):(e.selectedKeys||(f.value=ee),n("update:selectedKeys",[...ee,...d.value]),n("selectChange",Qe(d.value),ee))},I=(U,ee)=>{const G=ee.target.value;n("search",U,G)},T=U=>{I("left",U)},_=U=>{I("right",U)},E=U=>{n("search",U,"")},A=()=>{E("left")},R=()=>{E("right")},z=(U,ee,G)=>{const J=U==="left"?[...d.value]:[...f.value],Q=J.indexOf(ee);Q>-1&&J.splice(Q,1),G&&J.push(ee),w(U,J)},M=(U,ee)=>z("left",U,ee),B=(U,ee)=>z("right",U,ee),N=U=>{const{targetKeys:ee=[]}=e,G=ee.filter(J=>!U.includes(J));n("update:targetKeys",G),n("change",G,"left",[...U])},F=(U,ee)=>{n("scroll",U,ee)},L=U=>{F("left",U)},k=U=>{F("right",U)},j=(U,ee)=>typeof U=="function"?U({direction:ee}):U,H=le([]),Y=le([]);ke(()=>{const{dataSource:U,rowKey:ee,targetKeys:G=[]}=e,J=[],Q=new Array(G.length),K=Am(G);U.forEach(q=>{ee&&(q.key=ee(q)),K.has(q.key)?Q[K.get(q.key)]=q:J.push(q)}),H.value=J,Y.value=Q}),l({handleSelectChange:w});const Z=U=>{var ee,G,J,Q,K,q;const{disabled:pe,operations:W=[],showSearch:X,listStyle:ne,operationStyle:ae,filterOption:se,showSelectAll:re,selectAllLabels:de=[],oneWay:ge,pagination:me,id:fe=g.id.value}=e,{class:ye,style:Se}=o,ue=r.children,ce=!ue&&me,he=i.renderEmpty,Pe=b(U,he),{footer:Ie}=r,Ae=e.render||r.render,$e=f.value.length>0,xe=d.value.length>0,we=ie(a.value,ye,{[`${a.value}-disabled`]:pe,[`${a.value}-customize-list`]:!!ue,[`${a.value}-rtl`]:s.value==="rtl"},Tn(a.value,h.value,v.hasFeedback),u.value),Me=e.titles,Ne=(J=(ee=Me&&Me[0])!==null&&ee!==void 0?ee:(G=r.leftTitle)===null||G===void 0?void 0:G.call(r))!==null&&J!==void 0?J:(Pe.titles||["",""])[0],_e=(q=(Q=Me&&Me[1])!==null&&Q!==void 0?Q:(K=r.rightTitle)===null||K===void 0?void 0:K.call(r))!==null&&q!==void 0?q:(Pe.titles||["",""])[1];return p("div",D(D({},o),{},{class:we,style:Se,id:fe}),[p(b4,D({key:"leftList",prefixCls:`${a.value}-list`,dataSource:H.value,filterOption:se,style:j(ne,"left"),checkedKeys:d.value,handleFilter:T,handleClear:A,onItemSelect:M,onItemSelectAll:C,renderItem:Ae,showSearch:X,renderList:ue,onScroll:L,disabled:pe,direction:s.value==="rtl"?"right":"left",showSelectAll:re,selectAllLabel:de[0]||r.leftSelectAllLabel,pagination:ce},Pe),{titleText:()=>Ne,footer:Ie}),p(ige,{key:"operation",class:`${a.value}-operation`,rightActive:xe,rightArrowText:W[0],moveToRight:$,leftActive:$e,leftArrowText:W[1],moveToLeft:S,style:ae,disabled:pe,direction:s.value,oneWay:ge},null),p(b4,D({key:"rightList",prefixCls:`${a.value}-list`,dataSource:Y.value,filterOption:se,style:j(ne,"right"),checkedKeys:f.value,handleFilter:_,handleClear:R,onItemSelect:B,onItemSelectAll:O,onItemRemove:N,renderItem:Ae,showSearch:X,renderList:ue,onScroll:k,disabled:pe,direction:s.value==="rtl"?"left":"right",showSelectAll:re,selectAllLabel:de[1]||r.rightSelectAllLabel,showRemove:ge,pagination:ce},Pe),{titleText:()=>_e,footer:Ie})])};return()=>c(p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer,children:Z},null))}}),hge=Tt(gge);function vge(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function mge(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}function Rm(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function bge(e,t){const n=[];function o(r){r.forEach(l=>{n.push(l[t.value]);const i=l[t.children];i&&o(i)})}return o(e),n}function $4(e){return e==null}const J5=Symbol("TreeSelectContextPropsKey");function yge(e){return Ge(J5,e)}function Sge(){return He(J5,{})}const $ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cge=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Tc(),l=pp(),i=Sge(),a=le(),s=q0(()=>i.treeData,[()=>r.open,()=>i.treeData],C=>C[0]),c=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=l;return C?{checked:w,halfChecked:O}:null});be(()=>r.open,()=>{ot(()=>{var C;r.open&&!r.multiple&&l.checkedKeys.length&&((C=a.value)===null||C===void 0||C.scrollTo({key:l.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const u=P(()=>String(r.searchValue).toLowerCase()),d=C=>u.value?String(C[l.treeNodeFilterProp]).toLowerCase().includes(u.value):!1,f=te(l.treeDefaultExpandedKeys),g=te(null);be(()=>r.searchValue,()=>{r.searchValue&&(g.value=bge(Qe(i.treeData),Qe(i.fieldNames)))},{immediate:!0});const v=P(()=>l.treeExpandedKeys?l.treeExpandedKeys.slice():r.searchValue?g.value:f.value),h=C=>{var O;f.value=C,g.value=C,(O=l.onTreeExpand)===null||O===void 0||O.call(l,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var I,T;const{checkable:_,checkedKeys:E}=l;_&&Rm(w)||((I=i.onSelect)===null||I===void 0||I.call(i,w.key,{selected:!E.includes(w.key)}),r.multiple||(T=r.toggleOpen)===null||T===void 0||T.call(r,!1))},S=le(null),$=P(()=>l.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,I=new Array(w),T=0;T{var O;const{which:w}=C;switch(w){case Oe.UP:case Oe.DOWN:case Oe.LEFT:case Oe.RIGHT:(O=a.value)===null||O===void 0||O.onKeydown(C);break;case Oe.ENTER:{if($.value){const{selectable:I,value:T}=$.value.node||{};I!==!1&&y(null,{node:{key:S.value},selected:!l.checkedKeys.includes(T)})}break}case Oe.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:I,open:T,notFoundContent:_=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:E,listItemHeight:A,virtual:R,dropdownMatchSelectWidth:z,treeExpandAction:M}=i,{checkable:B,treeDefaultExpandAll:N,treeIcon:F,showTreeIcon:L,switcherIcon:k,treeLine:j,loadData:H,treeLoadedKeys:Y,treeMotion:Z,onTreeLoad:U,checkedKeys:ee}=l;if(s.value.length===0)return p("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[_]);const G={fieldNames:i.fieldNames};return Y&&(G.loadedKeys=Y),v.value&&(G.expandedKeys=v.value),p("div",{onMousedown:b},[$.value&&T&&p("span",{style:$ge,"aria-live":"assertive"},[$.value.node.value]),p(k5,D(D({ref:a,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:E,itemHeight:A,virtual:R!==!1&&z!==!1,multiple:w,icon:F,showIcon:L,switcherIcon:k,showLine:j,loadData:I?null:H,motion:Z,activeKey:S.value,checkable:B,checkStrictly:!0,checkedKeys:c.value,selectedKeys:B?[]:ee,defaultExpandAll:N},G),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:M}),m(m({},n),{checkable:l.customSlots.treeCheckable}))])}}}),xge="SHOW_ALL",eM="SHOW_PARENT",F1="SHOW_CHILD";function C4(e,t,n,o){const r=new Set(e);return t===F1?e.filter(l=>{const i=n[l];return!(i&&i.children&&i.children.some(a=>{let{node:s}=a;return r.has(s[o.value])})&&i.children.every(a=>{let{node:s}=a;return Rm(s)||r.has(s[o.value])}))}):t===eM?e.filter(l=>{const i=n[l],a=i?i.parent:null;return!(a&&!Rm(a.node)&&r.has(a.key))}):e}const eg=()=>null;eg.inheritAttrs=!1;eg.displayName="ATreeSelectNode";eg.isTreeSelectNode=!0;const L1=eg;var wge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(o=>{var r,l,i;if(!Oge(o))return null;const a=o.children||{},s=o.key,c={};for(const[w,I]of Object.entries(o.props))c[mi(w)]=I;const{isLeaf:u,checkable:d,selectable:f,disabled:g,disableCheckbox:v}=c,h={isLeaf:u||u===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:g||g===""||void 0,disableCheckbox:v||v===""||void 0},b=m(m({},c),h),{title:y=(r=a.title)===null||r===void 0?void 0:r.call(a,b),switcherIcon:S=(l=a.switcherIcon)===null||l===void 0?void 0:l.call(a,b)}=c,$=wge(c,["title","switcherIcon"]),x=(i=a.default)===null||i===void 0?void 0:i.call(a),C=m(m(m({},$),{title:y,switcherIcon:S,key:s,isLeaf:u}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Dm(e){if(!e)return e;const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Ige(e,t,n,o,r,l){let i=null,a=null;function s(){function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map((g,v)=>{const h=`${d}-${v}`,b=g[l.value],y=n.includes(b),S=c(g[l.children]||[],h,y),$=p(L1,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(i=$),y){const x={pos:h,node:$,children:S};return f||a.push(x),x}return null}).filter(g=>g)}a||(a=[],c(o),a.sort((u,d)=>{let{node:{props:{value:f}}}=u,{node:{props:{value:g}}}=d;const v=n.indexOf(f),h=n.indexOf(g);return v-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?a:a.map(c=>{let{node:u}=c;return u})}})}function Tge(e,t){let{id:n,pId:o,rootPId:r}=t;const l={},i=[];return e.map(s=>{const c=m({},s),u=c[n];return l[u]=c,c.key=c.key||u,c}).forEach(s=>{const c=s[o],u=l[c];u&&(u.children=u.children||[],u.children.push(s)),(c===r||!u&&r===null)&&i.push(s)}),i}function Ege(e,t,n){const o=te();return be([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?Tge(Qe(e.value),m({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):Qe(e.value).slice():o.value=Pge(Qe(t.value))},{immediate:!0,deep:!0}),o}const Mge=e=>{const t=te({valueLabels:new Map}),n=te();return be(e,()=>{n.value=Qe(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,l=new Map,i=n.value.map(a=>{var s;const{value:c}=a,u=(s=a.label)!==null&&s!==void 0?s:r.get(c);return l.set(c,u),m(m({},a),{label:u})});return t.value.valueLabels=l,i})]},_ge=(e,t)=>{const n=te(new Map),o=te({});return ke(()=>{const r=t.value,l=kc(e.value,{fieldNames:r,initWrapper:i=>m(m({},i),{valueEntities:new Map}),processEntity:(i,a)=>{const s=i.node[r.value];a.valueEntities.set(s,i)}});n.value=l.valueEntities,o.value=l.keyEntities}),{valueEntities:n,keyEntities:o}},Age=(e,t,n,o,r,l)=>{const i=te([]),a=te([]);return ke(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),c=t.value.map(d=>{let{value:f}=d;return f});const u=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:c}=So(s,!0,o.value,r.value,l.value)),i.value=Array.from(new Set([...u,...s])),a.value=c}),[i,a]},Rge=(e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:l}=n;return P(()=>{const{children:i}=l.value,a=t.value,s=o==null?void 0:o.value;if(!a||r.value===!1)return e.value;let c;if(typeof r.value=="function")c=r.value;else{const d=a.toUpperCase();c=(f,g)=>{const v=g[s];return String(v).toUpperCase().includes(d)}}function u(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let v=0,h=d.length;ve.treeCheckable&&!e.treeCheckStrictly),a=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),c=P(()=>a.value||e.multiple),u=P(()=>mge(e.fieldNames)),[d,f]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:fe=>fe||""}),g=fe=>{var ye;f(fe),(ye=e.onSearch)===null||ye===void 0||ye.call(e,fe)},v=Ege(ze(e,"treeData"),ze(e,"children"),ze(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=_ge(v,u),y=fe=>{const ye=[],Se=[];return fe.forEach(ue=>{b.value.has(ue)?Se.push(ue):ye.push(ue)}),{missingRawValues:ye,existRawValues:Se}},S=Rge(v,d,{fieldNames:u,treeNodeFilterProp:ze(e,"treeNodeFilterProp"),filterTreeNode:ze(e,"filterTreeNode")}),$=fe=>{if(fe){if(e.treeNodeLabelProp)return fe[e.treeNodeLabelProp];const{_title:ye}=u.value;for(let Se=0;Sevge(fe).map(Se=>Dge(Se)?{value:Se}:Se),C=fe=>x(fe).map(Se=>{let{label:ue}=Se;const{value:ce,halfChecked:he}=Se;let Pe;const Ie=b.value.get(ce);return Ie&&(ue=ue??$(Ie.node),Pe=Ie.node.disabled),{label:ue,value:ce,halfChecked:he,disabled:Pe}}),[O,w]=Pt(e.defaultValue,{value:ze(e,"value")}),I=P(()=>x(O.value)),T=te([]),_=te([]);ke(()=>{const fe=[],ye=[];I.value.forEach(Se=>{Se.halfChecked?ye.push(Se):fe.push(Se)}),T.value=fe,_.value=ye});const E=P(()=>T.value.map(fe=>fe.value)),{maxLevel:A,levelEntities:R}=Hp(h),[z,M]=Age(T,_,i,h,A,R),B=P(()=>{const Se=C4(z.value,e.showCheckedStrategy,h.value,u.value).map(he=>{var Pe,Ie,Ae;return(Ae=(Ie=(Pe=h.value[he])===null||Pe===void 0?void 0:Pe.node)===null||Ie===void 0?void 0:Ie[u.value.value])!==null&&Ae!==void 0?Ae:he}).map(he=>{const Pe=T.value.find(Ie=>Ie.value===he);return{value:he,label:Pe==null?void 0:Pe.label}}),ue=C(Se),ce=ue[0];return!c.value&&ce&&$4(ce.value)&&$4(ce.label)?[]:ue.map(he=>{var Pe;return m(m({},he),{label:(Pe=he.label)!==null&&Pe!==void 0?Pe:he.value})})}),[N]=Mge(B),F=(fe,ye,Se)=>{const ue=C(fe);if(w(ue),e.autoClearSearchValue&&f(""),e.onChange){let ce=fe;i.value&&(ce=C4(fe,e.showCheckedStrategy,h.value,u.value).map(Ne=>{const _e=b.value.get(Ne);return _e?_e.node[u.value.value]:Ne}));const{triggerValue:he,selected:Pe}=ye||{triggerValue:void 0,selected:void 0};let Ie=ce;if(e.treeCheckStrictly){const Me=_.value.filter(Ne=>!ce.includes(Ne.value));Ie=[...Ie,...Me]}const Ae=C(Ie),$e={preValue:T.value,triggerValue:he};let xe=!0;(e.treeCheckStrictly||Se==="selection"&&!Pe)&&(xe=!1),Ige($e,he,fe,v.value,xe,u.value),a.value?$e.checked=Pe:$e.selected=Pe;const we=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(c.value?we:we[0],s.value?null:Ae.map(Me=>Me.label),$e)}},L=(fe,ye)=>{let{selected:Se,source:ue}=ye;var ce,he,Pe;const Ie=Qe(h.value),Ae=Qe(b.value),$e=Ie[fe],xe=$e==null?void 0:$e.node,we=(ce=xe==null?void 0:xe[u.value.value])!==null&&ce!==void 0?ce:fe;if(!c.value)F([we],{selected:!0,triggerValue:we},"option");else{let Me=Se?[...E.value,we]:z.value.filter(Ne=>Ne!==we);if(i.value){const{missingRawValues:Ne,existRawValues:_e}=y(Me),De=_e.map(ft=>Ae.get(ft).key);let Je;Se?{checkedKeys:Je}=So(De,!0,Ie,A.value,R.value):{checkedKeys:Je}=So(De,{checked:!1,halfCheckedKeys:M.value},Ie,A.value,R.value),Me=[...Ne,...Je.map(ft=>Ie[ft].node[u.value.value])]}F(Me,{selected:Se,triggerValue:we},ue||"option")}Se||!c.value?(he=e.onSelect)===null||he===void 0||he.call(e,we,Dm(xe)):(Pe=e.onDeselect)===null||Pe===void 0||Pe.call(e,we,Dm(xe))},k=fe=>{if(e.onDropdownVisibleChange){const ye={};Object.defineProperty(ye,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(fe,ye)}},j=(fe,ye)=>{const Se=fe.map(ue=>ue.value);if(ye.type==="clear"){F(Se,{},"selection");return}ye.values.length&&L(ye.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:H,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,virtual:K,listHeight:q,listItemHeight:pe,treeLine:W,treeIcon:X,showTreeIcon:ne,switcherIcon:ae,treeMotion:se,customSlots:re,dropdownMatchSelectWidth:de,treeExpandAction:ge}=No(e);$z(Wd({checkable:a,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,checkedKeys:z,halfCheckedKeys:M,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,treeIcon:X,treeMotion:se,showTreeIcon:ne,switcherIcon:ae,treeLine:W,treeNodeFilterProp:H,keyEntities:h,customSlots:re})),yge(Wd({virtual:K,listHeight:q,listItemHeight:pe,treeData:S,fieldNames:u,onSelect:L,dropdownMatchSelectWidth:de,treeExpandAction:ge}));const me=le();return o({focus(){var fe;(fe=me.value)===null||fe===void 0||fe.focus()},blur(){var fe;(fe=me.value)===null||fe===void 0||fe.blur()},scrollTo(fe){var ye;(ye=me.value)===null||ye===void 0||ye.scrollTo(fe)}}),()=>{var fe;const ye=et(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return p(Y0,D(D(D({ref:me},n),ye),{},{id:l,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:N.value,onDisplayValuesChange:j,searchValue:d.value,onSearch:g,OptionList:Cge,emptyOptions:!v.value.length,onDropdownVisibleChange:k,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(fe=e.dropdownMatchSelectWidth)!==null&&fe!==void 0?fe:!0}),r)}}}),Nge=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},j5(n,Fe(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},Kp(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Fge(e,t){return Ve("TreeSelect",n=>{const o=Fe(n,{treePrefixCls:t.value});return[Nge(o)]})(e)}const x4=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Lge(){return m(m({},et(tM(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:V.any,size:Be(),bordered:Ce(),treeLine:Le([Boolean,Object]),replaceFields:Re(),placement:Be(),status:Be(),popupClassName:String,dropdownClassName:String,"onUpdate:value":ve(),"onUpdate:treeExpandedKeys":ve(),"onUpdate:searchValue":ve()})}const Fh=oe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:qe(Lge(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;e.treeData===void 0&&o.default,xt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),xt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),xt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,renderEmpty:u,direction:d,virtual:f,dropdownMatchSelectWidth:g,size:v,getPopupContainer:h,getPrefixCls:b,disabled:y}=Te("select",e),{compactSize:S,compactItemClassnames:$}=Ol(c,d),x=P(()=>S.value||v.value),C=qn(),O=P(()=>{var Z;return(Z=y.value)!==null&&Z!==void 0?Z:C.value}),w=P(()=>b()),I=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),T=P(()=>x4(w.value,K0(I.value),e.transitionName)),_=P(()=>x4(w.value,"",e.choiceTransitionName)),E=P(()=>b("select-tree",e.prefixCls)),A=P(()=>b("tree-select",e.prefixCls)),[R,z]=xb(c),[M]=Fge(A,E),B=P(()=>ie(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),N=P(()=>!!(e.treeCheckable||e.multiple)),F=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!N.value),L=le();r({focus(){var Z,U;(U=(Z=L.value).focus)===null||U===void 0||U.call(Z)},blur(){var Z,U;(U=(Z=L.value).blur)===null||U===void 0||U.call(Z)}});const k=function(){for(var Z=arguments.length,U=new Array(Z),ee=0;ee{l("update:treeExpandedKeys",Z),l("treeExpand",Z)},H=Z=>{l("update:searchValue",Z),l("search",Z)},Y=Z=>{l("blur",Z),i.onFieldBlur()};return()=>{var Z,U,ee;const{notFoundContent:G=(Z=o.notFoundContent)===null||Z===void 0?void 0:Z.call(o),prefixCls:J,bordered:Q,listHeight:K,listItemHeight:q,multiple:pe,treeIcon:W,treeLine:X,showArrow:ne,switcherIcon:ae=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:se=e.replaceFields,id:re=i.id.value,placeholder:de=(ee=o.placeholder)===null||ee===void 0?void 0:ee.call(o)}=e,{isFormItemInput:ge,hasFeedback:me,feedbackIcon:fe}=a,{suffixIcon:ye,removeIcon:Se,clearIcon:ue}=cb(m(m({},e),{multiple:N.value,showArrow:F.value,hasFeedback:me,feedbackIcon:fe,prefixCls:c.value}),o);let ce;G!==void 0?ce=G:ce=u("Select");const he=et(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),Pe=ie(!J&&A.value,{[`${c.value}-lg`]:x.value==="large",[`${c.value}-sm`]:x.value==="small",[`${c.value}-rtl`]:d.value==="rtl",[`${c.value}-borderless`]:!Q,[`${c.value}-in-form-item`]:ge},Tn(c.value,s.value,me),$.value,n.class,z.value),Ie={};return e.treeData===void 0&&o.default&&(Ie.children=yt(o.default())),R(M(p(Bge,D(D(D(D({},n),he),{},{disabled:O.value,virtual:f.value,dropdownMatchSelectWidth:g.value,id:re,fieldNames:se,ref:L,prefixCls:c.value,class:Pe,listHeight:K,listItemHeight:q,treeLine:!!X,inputIcon:ye,multiple:pe,removeIcon:Se,clearIcon:ue,switcherIcon:Ae=>H5(E.value,ae,Ae,o.leafIcon,X),showTreeIcon:W,notFoundContent:ce,getPopupContainer:h==null?void 0:h.value,treeMotion:null,dropdownClassName:B.value,choiceTransitionName:_.value,onChange:k,onBlur:Y,onSearch:H,onTreeExpand:j},Ie),{},{transitionName:T.value,customSlots:m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:me||ne,placeholder:de}),m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),Bm=L1,kge=m(Fh,{TreeNode:L1,SHOW_ALL:xge,SHOW_PARENT:eM,SHOW_CHILD:F1,install:e=>(e.component(Fh.name,Fh),e.component(Bm.displayName,Bm),e)}),Lh=()=>({format:String,showNow:Ce(),showHour:Ce(),showMinute:Ce(),showSecond:Ce(),use12Hours:Ce(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Ce(),popupClassName:String,status:Be()});function zge(e){const t=dE(e,m(m({},Lh()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=oe({name:"ATimePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),sE()),Lh()),{addon:{type:Function}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=Qt();xt(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=le();c({focus:()=>{var x;(x=v.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=v.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{u("update:value",x),u("change",x,C),g.onFieldChange()},b=x=>{u("update:open",x),u("openChange",x)},y=x=>{u("focus",x)},S=x=>{u("blur",x),g.onFieldBlur()},$=x=>{u("ok",x)};return()=>{const{id:x=g.id.value}=f;return p(n,D(D(D({},d),et(f,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),l=oe({name:"ATimeRangePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),cE()),Lh()),{order:{type:Boolean,default:!0}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=le(),v=Qt();c({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{u("update:value",O),u("change",O,w),v.onFieldChange()},b=O=>{u("update:open",O),u("openChange",O)},y=O=>{u("focus",O)},S=O=>{u("blur",O),v.onFieldBlur()},$=(O,w)=>{u("panelChange",O,w)},x=O=>{u("ok",O)},C=(O,w,I)=>{u("calendarChange",O,w,I)};return()=>{const{id:O=v.id.value}=f;return p(o,D(D(D({},d),et(f,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:l}}const{TimePicker:Tu,TimeRangePicker:bd}=zge(Ub),Hge=m(Tu,{TimePicker:Tu,TimeRangePicker:bd,install:e=>(e.component(Tu.name,Tu),e.component(bd.name,bd),e)}),jge=()=>({prefixCls:String,color:String,dot:V.any,pending:Ce(),position:V.oneOf(Cn("left","right","")).def(""),label:V.any}),Sc=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:qe(jge(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("timeline",e),r=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),l=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),i=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!l.value}));return()=>{var a,s,c;const{label:u=(a=n.label)===null||a===void 0?void 0:a.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return p("li",{class:r.value},[u&&p("div",{class:`${o.value}-item-label`},[u]),p("div",{class:`${o.value}-item-tail`},null),p("div",{class:[i.value,!!d&&`${o.value}-item-head-custom`],style:{borderColor:l.value,color:l.value}},[d]),p("div",{class:`${o.value}-item-content`},[(c=n.default)===null||c===void 0?void 0:c.call(n)])])}}}),Wge=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, - &${t}-right, - &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, - ${t}-item-head, - ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending - ${t}-item-last - ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse - ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Vge=Ve("Timeline",e=>{const t=Fe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Wge(t)]}),Kge=()=>({prefixCls:String,pending:V.any,pendingDot:V.any,reverse:Ce(),mode:V.oneOf(Cn("left","alternate","right",""))}),js=oe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:qe(Kge(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("timeline",e),[i,a]=Vge(r),s=(c,u)=>{const d=c.props||{};return e.mode==="alternate"?d.position==="right"?`${r.value}-item-right`:d.position==="left"?`${r.value}-item-left`:u%2===0?`${r.value}-item-left`:`${r.value}-item-right`:e.mode==="left"?`${r.value}-item-left`:e.mode==="right"?`${r.value}-item-right`:d.position==="right"?`${r.value}-item-right`:""};return()=>{var c,u,d;const{pending:f=(c=n.pending)===null||c===void 0?void 0:c.call(n),pendingDot:g=(u=n.pendingDot)===null||u===void 0?void 0:u.call(n),reverse:v,mode:h}=e,b=typeof f=="boolean"?null:f,y=_t((d=n.default)===null||d===void 0?void 0:d.call(n)),S=f?p(Sc,{pending:!!f,dot:g||p(co,null,null)},{default:()=>[b]}):null;S&&y.push(S);const $=v?y.reverse():y,x=$.length,C=`${r.value}-item-last`,O=$.map((T,_)=>{const E=_===x-2?C:"",A=_===x-1?C:"";return sn(T,{class:ie([!v&&f?E:A,s(T,_)])})}),w=$.some(T=>{var _,E;return!!(!((_=T.props)===null||_===void 0)&&_.label||!((E=T.children)===null||E===void 0)&&E.label)}),I=ie(r.value,{[`${r.value}-pending`]:!!f,[`${r.value}-reverse`]:!!v,[`${r.value}-${h}`]:!!h&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value);return i(p("ul",D(D({},o),{},{class:I}),[O]))}}});js.Item=Sc;js.install=function(e){return e.component(js.name,js),e.component(Sc.name,Sc),e};var Gge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Xge=Gge;function w4(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Zge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` - h${o}&, - div&-h${o}, - div&-h${o} > textarea, - h${o} - `]=qge(e[`fontSizeHeading${o}`],e[`lineHeightHeading${o}`],e.colorTextHeading,e)}),n},Qge=e=>{const{componentCls:t}=e;return{"a&, a":m(m({},Jf(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Jge=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:U9[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ehe=e=>{const{componentCls:t}=e,o=Ti(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},the=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),nhe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ohe=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:m(m(m(m(m(m(m(m(m({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Zge(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Jge()),Qge(e)),{[` - ${t}-expand, - ${t}-edit, - ${t}-copy - `]:m(m({},Jf(e)),{marginInlineStart:e.marginXXS})}),ehe(e)),the(e)),nhe()),{"&-rtl":{direction:"rtl"}})}},nM=Ve("Typography",e=>[ohe(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),rhe=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),lhe=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:rhe(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l}=No(e),i=ut({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});be(()=>e.value,S=>{i.current=S});const a=le();je(()=>{var S;if(a.value){const $=(S=a.value)===null||S===void 0?void 0:S.resizableTextArea,x=$==null?void 0:$.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){a.value=S}function c(S){let{target:{value:$}}=S;i.current=$.replace(/[\r\n]/g,""),n("change",i.current)}function u(){i.inComposition=!0}function d(){i.inComposition=!1}function f(S){const{keyCode:$}=S;$===Oe.ENTER&&S.preventDefault(),!i.inComposition&&(i.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;i.lastKeyCode===$&&!i.inComposition&&!x&&!C&&!O&&!w&&($===Oe.ENTER?(h(),n("end")):$===Oe.ESC&&(i.current=e.originContent,n("cancel")))}function v(){h()}function h(){n("save",i.current.trim())}const[b,y]=nM(l);return()=>{const S=ie({[`${l.value}`]:!0,[`${l.value}-edit-content`]:!0,[`${l.value}-rtl`]:e.direction==="rtl",[e.component?`${l.value}-${e.component}`:""]:!0},r.class,y.value);return b(p("div",D(D({},r),{},{class:S}),[p(Zy,{ref:s,maxlength:e.maxlength,value:i.current,onChange:c,onKeydown:f,onKeyup:g,onCompositionstart:u,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(Yge,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),ihe=lhe,ahe=3,she=8;let Xn;const kh={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function oM(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=lz(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function che(e){const t=document.createElement("div");oM(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const uhe=(e,t,n,o,r)=>{Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const{rows:l,suffix:i=""}=t,a=che(e),s=Math.round(a*l*100)/100;oM(Xn,e);const c=mO({render(){return p("div",{style:kh},[p("span",{style:kh},[n,i]),p("span",{style:kh},[o])])}});c.mount(Xn);function u(){return Math.round(Xn.getBoundingClientRect().height*100)/100-.1<=s}if(u())return c.unmount(),{content:n,text:Xn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==she&&C!==""}),f=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const g=[];Xn.innerHTML="";const v=document.createElement("span");Xn.appendChild(v);const h=document.createTextNode(r+i);v.appendChild(h),f.forEach($=>{Xn.appendChild($)});function b($){v.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const I=Math.floor((C+O)/2),T=x.slice(0,I);if($.textContent=T,C>=O-1)for(let _=O;_>=C;_-=1){const E=x.slice(0,_);if($.textContent=E,u()||!E)return _===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:E}}return u()?y($,x,I,O,I):y($,x,C,I,w)}function S($){if($.nodeType===ahe){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:Xn.innerHTML,ellipsis:!0}};var dhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),phe=oe({name:"ATypography",inheritAttrs:!1,props:fhe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("typography",e),[i,a]=nM(r);return()=>{var s;const c=m(m({},e),o),{prefixCls:u,direction:d,component:f="article"}=c,g=dhe(c,["prefixCls","direction","component"]);return i(p(f,D(D({},g),{},{class:ie(r.value,{[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Un=phe,ghe=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=O4[t.format]||O4.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(i),r.selectNodeContents(i),l.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(c){s&&console.error("unable to copy using execCommand: ",c),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(u){s&&console.error("unable to copy using clipboardData: ",u),s&&console.error("falling back to prompt"),n=mhe("message"in t?t.message:vhe),window.prompt(n,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(r):l.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var yhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const She=yhe;function P4(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Mhe=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Vc(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te("typography",e),a=ut({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=le(),c=le(),u=P(()=>{const M=e.ellipsis;return M?m({rows:1,expandable:!1},typeof M=="object"?M:null):{}});je(()=>{a.clientRendered=!0,I()}),Ze(()=>{clearTimeout(a.copyId),Ye.cancel(a.rafId)}),be([()=>u.value.rows,()=>e.content],()=>{ot(()=>{O()})},{flush:"post",deep:!0}),ke(()=>{e.content===void 0&&(It(!e.editable),It(!e.ellipsis))});function d(){var M;return e.ellipsis||e.editable?e.content:(M=Hn(s.value))===null||M===void 0?void 0:M.innerText}function f(M){const{onExpand:B}=u.value;a.expanded=!0,B==null||B(M)}function g(M){M.preventDefault(),a.originContent=e.content,C(!0)}function v(M){h(M),C(!1)}function h(M){const{onChange:B}=S.value;M!==e.content&&(r("update:content",M),B==null||B(M))}function b(){var M,B;(B=(M=S.value).onCancel)===null||B===void 0||B.call(M),C(!1)}function y(M){M.preventDefault(),M.stopPropagation();const{copyable:B}=e,N=m({},typeof B=="object"?B:null);N.text===void 0&&(N.text=d()),bhe(N.text||""),a.copied=!0,ot(()=>{N.onCopy&&N.onCopy(M),a.copyId=setTimeout(()=>{a.copied=!1},3e3)})}const S=P(()=>{const M=e.editable;return M?m({},typeof M=="object"?M:null):{editing:!1}}),[$,x]=Pt(!1,{value:P(()=>S.value.editing)});function C(M){const{onStart:B}=S.value;M&&B&&B(),x(M)}be($,M=>{var B;M||(B=c.value)===null||B===void 0||B.focus()},{flush:"post"});function O(M){if(M){const{width:B,height:N}=M;if(!B||!N)return}Ye.cancel(a.rafId),a.rafId=Ye(()=>{I()})}const w=P(()=>{const{rows:M,expandable:B,suffix:N,onEllipsis:F,tooltip:L}=u.value;return N||L||e.editable||e.copyable||B||F?!1:M===1?Ehe:The}),I=()=>{const{ellipsisText:M,isEllipsis:B}=a,{rows:N,suffix:F,onEllipsis:L}=u.value;if(!N||N<0||!Hn(s.value)||a.expanded||e.content===void 0||w.value)return;const{content:k,text:j,ellipsis:H}=uhe(Hn(s.value),{rows:N,suffix:F},e.content,z(!0),T4);(M!==j||a.isEllipsis!==H)&&(a.ellipsisText=j,a.ellipsisContent=k,a.isEllipsis=H,B!==H&&L&&L(H))};function T(M,B){let{mark:N,code:F,underline:L,delete:k,strong:j,keyboard:H}=M,Y=B;function Z(U,ee){if(!U)return;const G=function(){return Y}();Y=p(ee,null,{default:()=>[G]})}return Z(j,"strong"),Z(L,"u"),Z(k,"del"),Z(F,"code"),Z(N,"mark"),Z(H,"kbd"),Y}function _(M){const{expandable:B,symbol:N}=u.value;if(!B||!M&&(a.expanded||!a.isEllipsis))return null;const F=(n.ellipsisSymbol?n.ellipsisSymbol():N)||a.expandStr;return p("a",{key:"expand",class:`${l.value}-expand`,onClick:f,"aria-label":a.expandStr},[F])}function E(){if(!e.editable)return;const{tooltip:M,triggerType:B=["icon"]}=e.editable,N=n.editableIcon?n.editableIcon():p(Phe,{role:"button"},null),F=n.editableTooltip?n.editableTooltip():a.editStr,L=typeof F=="string"?F:"";return B.indexOf("icon")!==-1?p(Yn,{key:"edit",title:M===!1?"":F},{default:()=>[p(Cf,{ref:c,class:`${l.value}-edit`,onClick:g,"aria-label":L},{default:()=>[N]})]}):null}function A(){if(!e.copyable)return;const{tooltip:M}=e.copyable,B=a.copied?a.copiedStr:a.copyStr,N=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):B,F=typeof N=="string"?N:"",L=a.copied?p(vp,null,null):p(Che,null,null),k=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):L;return p(Yn,{key:"copy",title:M===!1?"":N},{default:()=>[p(Cf,{class:[`${l.value}-copy`,{[`${l.value}-copy-success`]:a.copied}],onClick:y,"aria-label":F},{default:()=>[k]})]})}function R(){const{class:M,style:B}=o,{maxlength:N,autoSize:F,onEnd:L}=S.value;return p(ihe,{class:M,style:B,prefixCls:l.value,value:e.content,originContent:a.originContent,maxlength:N,autoSize:F,onSave:v,onChange:h,onCancel:b,onEnd:L,direction:i.value,component:e.component},{enterIcon:n.editableEnterIcon})}function z(M){return[_(M),E(),A()].filter(B=>B)}return()=>{var M;const{triggerType:B=["icon"]}=S.value,N=e.ellipsis||e.editable?e.content!==void 0?e.content:(M=n.default)===null||M===void 0?void 0:M.call(n):n.default?n.default():e.content;return $.value?R():p(bi,{componentName:"Text",children:F=>{const L=m(m({},e),o),{type:k,disabled:j,content:H,class:Y,style:Z}=L,U=Ihe(L,["type","disabled","content","class","style"]),{rows:ee,suffix:G,tooltip:J}=u.value,{edit:Q,copy:K,copied:q,expand:pe}=F;a.editStr=Q,a.copyStr=K,a.copiedStr=q,a.expandStr=pe;const W=et(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),X=w.value,ne=ee===1&&X,ae=ee&&ee>1&&X;let se=N,re;if(ee&&a.isEllipsis&&!a.expanded&&!X){const{title:me}=U;let fe=me||"";!me&&(typeof N=="string"||typeof N=="number")&&(fe=String(N)),fe=fe==null?void 0:fe.slice(String(a.ellipsisContent||"").length),se=p(We,null,[Qe(a.ellipsisContent),p("span",{title:fe,"aria-hidden":"true"},[T4]),G])}else se=p(We,null,[N,G]);se=T(e,se);const de=J&&ee&&a.isEllipsis&&!a.expanded&&!X,ge=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(xo,{onResize:O,disabled:!ee},{default:()=>[p(Un,D({ref:s,class:[{[`${l.value}-${k}`]:k,[`${l.value}-disabled`]:j,[`${l.value}-ellipsis`]:ee,[`${l.value}-single-line`]:ee===1&&!a.isEllipsis,[`${l.value}-ellipsis-single-line`]:ne,[`${l.value}-ellipsis-multiple-line`]:ae},Y],style:m(m({},Z),{WebkitLineClamp:ae?ee:void 0}),"aria-label":re,direction:i.value,onClick:B.indexOf("text")!==-1?g:()=>{}},W),{default:()=>[de?p(Yn,{title:J===!0?N:ge},{default:()=>[p("span",null,[se])]}):se,z()]})]})}},null)}}}),Kc=Mhe;var _he=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);ret(m(m({},Vc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),tg=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m({},e),o),{ellipsis:l,rel:i}=r,a=_he(r,["ellipsis","rel"]);It();const s=m(m({},a),{rel:i===void 0&&a.target==="_blank"?"noopener noreferrer":i,ellipsis:!!l,component:"a"});return delete s.navigate,p(Kc,s,n)};tg.displayName="ATypographyLink";tg.inheritAttrs=!1;tg.props=Ahe();const j1=tg,Rhe=()=>et(Vc(),["component"]),ng=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m(m({},e),{component:"div"}),o);return p(Kc,r,n)};ng.displayName="ATypographyParagraph";ng.inheritAttrs=!1;ng.props=Rhe();const W1=ng,Dhe=()=>m(m({},et(Vc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),og=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;It();const l=m(m(m({},e),{ellipsis:r&&typeof r=="object"?et(r,["expandable","rows"]):r,component:"span"}),o);return p(Kc,l,n)};og.displayName="ATypographyText";og.inheritAttrs=!1;og.props=Dhe();const V1=og;var Bhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},et(Vc(),["component","strong"])),{level:Number}),rg=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=Bhe(e,["level"]);let i;Nhe.includes(r)?i=`h${r}`:(It(),i="h1");const a=m(m(m({},l),{component:i}),o);return p(Kc,a,n)};rg.displayName="ATypographyTitle";rg.inheritAttrs=!1;rg.props=Fhe();const K1=rg;Un.Text=V1;Un.Title=K1;Un.Paragraph=W1;Un.Link=j1;Un.Base=Kc;Un.install=function(e){return e.component(Un.name,Un),e.component(Un.Text.displayName,V1),e.component(Un.Title.displayName,K1),e.component(Un.Paragraph.displayName,W1),e.component(Un.Link.displayName,j1),e};function Lhe(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function E4(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function khe(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const l=e.data[r];if(Array.isArray(l)){l.forEach(i=>{n.append(`${r}[]`,i)});return}n.append(r,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(l){e.onError(l)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Lhe(e,t),E4(t)):e.onSuccess(E4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const zhe=+new Date;let Hhe=0;function zh(){return`vc-upload-${zhe}-${++Hhe}`}const Hh=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some(i=>{const a=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(a.charAt(0)==="."){const s=o.toLowerCase(),c=a.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(d=>s.endsWith(d))}return/\/\*$/.test(a)?l===a.replace(/\/.*$/,""):!!(r===a||/^\w+$/.test(a))})}return!0};function jhe(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(l=>{const i=Array.prototype.slice.apply(l);o=o.concat(i),!i.length?t(o):r()})}r()}const Whe=(e,t,n)=>{const o=(r,l)=>{r.path=l||"",r.isFile?r.file(i=>{n(i)&&(r.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t([i]))}):r.isDirectory&&jhe(r,i=>{i.forEach(a=>{o(a,`${l}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},Vhe=Whe,rM=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var Khe=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ghe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKhe(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:I}=e;let T;typeof I=="function"?T=yield I(S):T=I;const _=(typeof C=="object"||typeof C=="string")&&C?C:S;let E;_ instanceof File?E=_:E=new File([_],S.name,{type:S.type});const A=E;return A.uid=S.uid,{origin:S,data:T,parsedFile:A,action:w}}),u=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:I,name:T,headers:_,withCredentials:E,method:A}=e,{uid:R}=x,z=I||khe,M={action:C,filename:T,data:$,file:O,headers:_,withCredentials:E,method:A||"post",onProgress:B=>{const{onProgress:N}=e;N==null||N(B,O)},onSuccess:(B,N)=>{const{onSuccess:F}=e;F==null||F(B,O,N),delete i[R]},onError:(B,N)=>{const{onError:F}=e;F==null||F(B,N,O),delete i[R]}};w(x),i[R]=z(M)},d=()=>{l.value=zh()},f=S=>{if(S){const $=S.uid?S.uid:S;i[$]&&i[$].abort&&i[$].abort(),delete i[$]}else Object.keys(i).forEach($=>{i[$]&&i[$].abort&&i[$].abort(),delete i[$]})};je(()=>{s=!0}),Ze(()=>{s=!1,f()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=zh(),c(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O==null||O(C.map(w=>{let{origin:I,parsedFile:T}=w;return{file:I,parsedFile:T}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{u(w)})})},v=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||Hh(w,$));g(O),d()},h=S=>{const $=a.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)Vhe(Array.prototype.slice.call(S.dataTransfer.items),g,x=>Hh(x,e.accept));else{const x=KK(Array.prototype.slice.call(S.dataTransfer.files),w=>Hh(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:f}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:I,capture:T,directory:_,openFileDialogOnClick:E,onMouseenter:A,onMouseleave:R}=e,z=Ghe(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),M={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},B=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return p($,D(D({},C?{}:{onClick:E?h:()=>{},onKeydown:E?b:()=>{},onMouseenter:A,onMouseleave:R,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:M,role:"button",style:o.style}),{default:()=>[p("input",D(D(D({},wl(z,{aria:!0,data:!0})),{},{id:O,type:"file",ref:a,onClick:F=>F.stopPropagation(),onCancel:F=>F.stopPropagation(),key:l.value,style:{display:"none"},accept:I},B),{},{multiple:w,onChange:v},T!=null?{capture:T}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function jh(){}const M4=oe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:qe(rM(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jh,onError:jh,onSuccess:jh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();return r({abort:a=>{var s;(s=l.value)===null||s===void 0||s.abort(a)}}),()=>p(Xhe,D(D(D({},e),o),{},{ref:l}),n)}});var Uhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const Yhe=Uhe;function _4(e){for(var t=1;t{let{uid:l}=r;return l===e.uid});return o===-1?n.push(e):n[o]=e,n}function Wh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function ave(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const sve=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},iM=e=>e.indexOf("image/")===0,cve=e=>{if(e.type&&!e.thumbUrl)return iM(e.type);const t=e.thumbUrl||e.url||"",n=sve(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Yr=200;function uve(e){return new Promise(t=>{if(!e.type||!iM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Yr,n.height=Yr,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yr}px; height: ${Yr}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:l,height:i}=r;let a=Yr,s=Yr,c=0,u=0;l>i?(s=i*(Yr/l),u=-(s-a)/2):(a=l*(Yr/i),c=-(a-s)/2),o.drawImage(r,c,u,a,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.addEventListener("load",()=>{l.result&&(r.src=l.result)}),l.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var dve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const fve=dve;function D4(e){for(var t=1;t({prefixCls:String,locale:Re(void 0),file:Re(),items:at(),listType:Be(),isImgUrl:ve(),showRemoveIcon:Ce(),showDownloadIcon:Ce(),showPreviewIcon:Ce(),removeIcon:ve(),downloadIcon:ve(),previewIcon:ve(),iconRender:ve(),actionIconRender:ve(),itemRender:ve(),onPreview:ve(),onClose:ve(),onDownload:ve(),progress:Re()}),vve=oe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:hve(),setup(e,t){let{slots:n,attrs:o}=t;var r;const l=te(!1),i=te();je(()=>{i.value=setTimeout(()=>{l.value=!0},300)}),Ze(()=>{clearTimeout(i.value)});const a=te((r=e.file)===null||r===void 0?void 0:r.status);be(()=>{var u;return(u=e.file)===null||u===void 0?void 0:u.status},u=>{u!=="removed"&&(a.value=u)});const{rootPrefixCls:s}=Te("upload",e),c=P(()=>Po(`${s.value}-fade`));return()=>{var u,d;const{prefixCls:f,locale:g,listType:v,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:I,previewIcon:T=n.previewIcon,removeIcon:_=n.removeIcon,downloadIcon:E=n.downloadIcon,onPreview:A,onDownload:R,onClose:z}=e,{class:M,style:B}=o,N=S({file:h});let F=p("div",{class:`${f}-text-icon`},[N]);if(v==="picture"||v==="picture-card")if(a.value==="uploading"||!h.thumbUrl&&!h.url){const W={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:a.value!=="uploading"};F=p("div",{class:W},[N])}else{const W=C!=null&&C(h)?p("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${f}-list-item-image`,crossorigin:h.crossOrigin},null):N,X={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:C&&!C(h)};F=p("a",{class:X,onClick:ne=>A(h,ne),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[W])}const L={[`${f}-list-item`]:!0,[`${f}-list-item-${a.value}`]:!0},k=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,j=w?$({customIcon:_?_({file:h}):p(Q5,null,null),callback:()=>z(h),prefixCls:f,title:g.removeFile}):null,H=I&&a.value==="done"?$({customIcon:E?E({file:h}):p(gve,null,null),callback:()=>R(h),prefixCls:f,title:g.downloadFile}):null,Y=v!=="picture-card"&&p("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[H,j]),Z=`${f}-list-item-name`,U=h.url?[p("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:h.name},k),{},{href:h.url,onClick:W=>A(h,W)}),[h.name]),Y]:[p("span",{key:"view",class:Z,onClick:W=>A(h,W),title:h.name},[h.name]),Y],ee={pointerEvents:"none",opacity:.5},G=O?p("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:ee,onClick:W=>A(h,W),title:g.previewFile},[T?T({file:h}):p(Jy,null,null)]):null,J=v==="picture-card"&&a.value!=="uploading"&&p("span",{class:`${f}-list-item-actions`},[G,a.value==="done"&&H,j]),Q=p("div",{class:L},[F,U,J,l.value&&p(cn,c.value,{default:()=>[$n(p("div",{class:`${f}-list-item-progress`},["percent"in h?p(b1,D(D({},y),{},{type:"line",percent:h.percent}),null):null]),[[En,a.value==="uploading"]])]})]),K={[`${f}-list-item-container`]:!0,[`${M}`]:!!M},q=h.response&&typeof h.response=="string"?h.response:((u=h.error)===null||u===void 0?void 0:u.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,pe=a.value==="error"?p(Yn,{title:q,getPopupContainer:W=>W.parentNode},{default:()=>[Q]}):Q;return p("div",{class:K,style:B},[x?x({originNode:pe,file:h,fileList:b,actions:{download:R.bind(null,h),preview:A.bind(null,h),remove:z.bind(null,h)}}):pe])}}}),mve=(e,t)=>{let{slots:n}=t;var o;return _t((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},bve=oe({compatConfig:{MODE:3},name:"AUploadList",props:qe(ive(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:uve,isImageUrl:cve,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=te(!1);je(()=>{r.value==!0});const l=te([]);be(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.value=h.slice()},{immediate:!0,deep:!0}),ke(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(l.value[y].thumbUrl=$,h=!0)}))}),h&&$3(l)});const i=(h,b)=>{if(e.onPreview)return b==null||b.preventDefault(),e.onPreview(h)},a=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},c=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?p(tve,null,null):p(lve,null,null);let x=p(S?co:Zhe,null,null);return e.listType==="picture"?x=S?p(co,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},u=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return Kt(b)?p(zt,x,{icon:()=>b}):p(zt,x,{default:()=>[p("span",null,[b])]})};o({handlePreview:i,handleDownload:a});const{prefixCls:d,rootPrefixCls:f}=Te("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=P(()=>{const h=m({},Rc(`${f.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=m(m({},up(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?m(m({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:I,appendAction:T,itemRender:_,appendActionVisible:E}=e,A=T==null?void 0:T(),R=l.value;return p(Hf,D(D({},v.value),{},{tag:"div"}),{default:()=>[R.map(z=>{const{uid:M}=z;return p(vve,{key:M,locale:b,prefixCls:d.value,file:z,items:R,progress:I,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:i,onDownload:a,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:_},m(m({},n),{iconRender:c,actionIconRender:u}))}),T?$n(p(mve,{key:"__ant_upload_appendAction"},{default:()=>A}),[[En,!!E]]):null]})}}}),yve=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Sve=yve,$ve=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,c=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:m(m({},zo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:m(m({},Gt),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${s}:focus, - &.picture ${s} - `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cve=$ve,B4=new nt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),N4=new nt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),xve=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:B4},[`${n}-leave`]:{animationName:N4}}},B4,N4]},wve=xve,Ove=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:m(m({},Gt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},Pve=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:m(m({},zo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new gt(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Ive=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Tve=Ive,Eve=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:m(m({},Xe(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Mve=Ve("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=Math.round(n*o),a=Fe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:i/2+r,uploadPicCardSize:l*2.55});return[Eve(a),Sve(a),Ove(a),Pve(a),Cve(a),wve(a),Tve(a),Ac(a)]});var _ve=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ave=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var E;return(E=s.value)!==null&&E!==void 0?E:d.value}),[g,v]=Pt(e.defaultFileList||[],{value:ze(e,"fileList"),postState:E=>{const A=Date.now();return(E??[]).map((R,z)=>(!R.uid&&!Object.isFrozen(R)&&(R.uid=`__AUTO__${A}_${z}__`),R))}}),h=le("drop"),b=le(null);je(()=>{xt(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),xt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),xt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(E,A,R)=>{var z,M;let B=[...A];e.maxCount===1?B=B.slice(-1):e.maxCount&&(B=B.slice(0,e.maxCount)),v(B);const N={file:E,fileList:B};R&&(N.event=R),(z=e["onUpdate:fileList"])===null||z===void 0||z.call(e,N.fileList),(M=e.onChange)===null||M===void 0||M.call(e,N),l.onFieldChange()},S=(E,A)=>_ve(this,void 0,void 0,function*(){const{beforeUpload:R,transformFile:z}=e;let M=E;if(R){const B=yield R(E,A);if(B===!1)return!1;if(delete E[ds],B===ds)return Object.defineProperty(E,ds,{value:!0,configurable:!0}),!1;typeof B=="object"&&B&&(M=B)}return z&&(M=yield z(M)),M}),$=E=>{const A=E.filter(M=>!M.file[ds]);if(!A.length)return;const R=A.map(M=>Eu(M.file));let z=[...g.value];R.forEach(M=>{z=Mu(M,z)}),R.forEach((M,B)=>{let N=M;if(A[B].parsedFile)M.status="uploading";else{const{originFileObj:F}=M;let L;try{L=new File([F],F.name,{type:F.type})}catch{L=new Blob([F],{type:F.type}),L.name=F.name,L.lastModifiedDate=new Date,L.lastModified=new Date().getTime()}L.uid=M.uid,N=L}y(N,z)})},x=(E,A,R)=>{try{typeof E=="string"&&(E=JSON.parse(E))}catch{}if(!Wh(A,g.value))return;const z=Eu(A);z.status="done",z.percent=100,z.response=E,z.xhr=R;const M=Mu(z,g.value);y(z,M)},C=(E,A)=>{if(!Wh(A,g.value))return;const R=Eu(A);R.status="uploading",R.percent=E.percent;const z=Mu(R,g.value);y(R,z,E)},O=(E,A,R)=>{if(!Wh(R,g.value))return;const z=Eu(R);z.error=E,z.response=A,z.status="error";const M=Mu(z,g.value);y(z,M)},w=E=>{let A;const R=e.onRemove||e.remove;Promise.resolve(typeof R=="function"?R(E):R).then(z=>{var M,B;if(z===!1)return;const N=ave(E,g.value);N&&(A=m(m({},E),{status:"removed"}),(M=g.value)===null||M===void 0||M.forEach(F=>{const L=A.uid!==void 0?"uid":"name";F[L]===A[L]&&!Object.isFrozen(F)&&(F.status="removed")}),(B=b.value)===null||B===void 0||B.abort(A),y(A,N))})},I=E=>{var A;h.value=E.type,E.type==="drop"&&((A=e.onDrop)===null||A===void 0||A.call(e,E))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[T]=Io("Upload",jn.Upload,P(()=>e.locale)),_=(E,A)=>{const{removeIcon:R,previewIcon:z,downloadIcon:M,previewFile:B,onPreview:N,onDownload:F,isImageUrl:L,progress:k,itemRender:j,iconRender:H,showUploadList:Y}=e,{showDownloadIcon:Z,showPreviewIcon:U,showRemoveIcon:ee}=typeof Y=="boolean"?{}:Y;return Y?p(bve,{prefixCls:i.value,listType:e.listType,items:g.value,previewFile:B,onPreview:N,onDownload:F,onRemove:w,showRemoveIcon:!f.value&&ee,showPreviewIcon:U,showDownloadIcon:Z,removeIcon:R,previewIcon:z,downloadIcon:M,iconRender:H,locale:T.value,isImageUrl:L,progress:k,itemRender:j,appendActionVisible:A,appendAction:E},m({},n)):E==null?void 0:E()};return()=>{var E,A,R;const{listType:z,type:M}=e,{class:B,style:N}=o,F=Ave(o,["class","style"]),L=m(m(m({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},F),e),{id:(E=e.id)!==null&&E!==void 0?E:l.id.value,prefixCls:i.value,beforeUpload:S,onChange:void 0,disabled:f.value});delete L.remove,(!n.default||f.value)&&delete L.id;const k={[`${i.value}-rtl`]:a.value==="rtl"};if(M==="drag"){const Z=ie(i.value,{[`${i.value}-drag`]:!0,[`${i.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${i.value}-drag-hover`]:h.value==="dragover",[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"},o.class,u.value);return c(p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,B,u.value)}),[p("div",{class:Z,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[p(M4,D(D({},L),{},{ref:b,class:`${i.value}-btn`}),D({default:()=>[p("div",{class:`${i.value}-drag-container`},[(A=n.default)===null||A===void 0?void 0:A.call(n)])]},n))]),_()]))}const j=ie(i.value,{[`${i.value}-select`]:!0,[`${i.value}-select-${z}`]:!0,[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"}),H=yt((R=n.default)===null||R===void 0?void 0:R.call(n)),Y=Z=>p("div",{class:j,style:Z},[p(M4,D(D({},L),{},{ref:b}),n)]);return c(z==="picture-card"?p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,`${i.value}-picture-card-wrapper`,k,o.class,u.value)}),[_(Y,!!(H&&H.length))]):p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,o.class,u.value)}),[Y(H&&H.length?void 0:{display:"none"}),_()]))}}});var F4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,l=F4(e,["height"]),{style:i}=o,a=F4(o,["style"]),s=m(m(m({},l),a),{type:"drag",style:m(m({},i),{height:typeof r=="number"?`${r}px`:r})});return p(yd,s,n)}}}),Rve=Sd,Dve=m(yd,{Dragger:Sd,LIST_IGNORE:ds,install(e){return e.component(yd.name,yd),e.component(Sd.name,Sd),e}});function Bve(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Nve(e){return Object.keys(e).map(t=>`${Bve(t)}: ${e[t]};`).join(" ")}function L4(){return window.devicePixelRatio||1}function Vh(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const Fve=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var Lve=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Lve(n,["window"]);let l;const i=w6(()=>o&&"MutationObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new MutationObserver(t),l.observe(u,r))},{immediate:!0}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}const Kh=2,k4=3,zve=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Le([String,Array]),font:Re(),rootClassName:String,gap:at(),offset:at()}),Hve=oe({name:"AWatermark",inheritAttrs:!1,props:qe(zve(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=Fr(),l=te(),i=te(),a=te(!1),s=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:100}),c=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:100}),u=P(()=>s.value/2),d=P(()=>c.value/2),f=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:u.value}),g=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:d.value}),v=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontSize)!==null&&E!==void 0?E:r.value.fontSizeLG}),h=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontWeight)!==null&&E!==void 0?E:"normal"}),b=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontStyle)!==null&&E!==void 0?E:"normal"}),y=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontFamily)!==null&&E!==void 0?E:"sans-serif"}),S=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.color)!==null&&E!==void 0?E:r.value.colorFill}),$=P(()=>{var _;const E={zIndex:(_=e.zIndex)!==null&&_!==void 0?_:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=f.value-u.value,R=g.value-d.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),R>0&&(E.top=`${R}px`,E.height=`calc(100% - ${R}px)`,R=0),E.backgroundPosition=`${A}px ${R}px`,E}),x=()=>{i.value&&(i.value.remove(),i.value=void 0)},C=(_,E)=>{var A;l.value&&i.value&&(a.value=!0,i.value.setAttribute("style",Nve(m(m({},$.value),{backgroundImage:`url('${_}')`,backgroundSize:`${(s.value+E)*Kh}px`}))),(A=l.value)===null||A===void 0||A.append(i.value),setTimeout(()=>{a.value=!1}))},O=_=>{let E=120,A=64;const R=e.content,z=e.image,M=e.width,B=e.height;if(!z&&_.measureText){_.font=`${Number(v.value)}px ${y.value}`;const N=Array.isArray(R)?R:[R],F=N.map(L=>_.measureText(L).width);E=Math.ceil(Math.max(...F)),A=Number(v.value)*N.length+(N.length-1)*k4}return[M??E,B??A]},w=(_,E,A,R,z)=>{const M=L4(),B=e.content,N=Number(v.value)*M;_.font=`${b.value} normal ${h.value} ${N}px/${z}px ${y.value}`,_.fillStyle=S.value,_.textAlign="center",_.textBaseline="top",_.translate(R/2,0);const F=Array.isArray(B)?B:[B];F==null||F.forEach((L,k)=>{_.fillText(L??"",E,A+k*(N+k4*M))})},I=()=>{var _;const E=document.createElement("canvas"),A=E.getContext("2d"),R=e.image,z=(_=e.rotate)!==null&&_!==void 0?_:-22;if(A){i.value||(i.value=document.createElement("div"));const M=L4(),[B,N]=O(A),F=(s.value+B)*M,L=(c.value+N)*M;E.setAttribute("width",`${F*Kh}px`),E.setAttribute("height",`${L*Kh}px`);const k=s.value*M/2,j=c.value*M/2,H=B*M,Y=N*M,Z=(H+s.value*M)/2,U=(Y+c.value*M)/2,ee=k+F,G=j+L,J=Z+F,Q=U+L;if(A.save(),Vh(A,Z,U,z),R){const K=new Image;K.onload=()=>{A.drawImage(K,k,j,H,Y),A.restore(),Vh(A,J,Q,z),A.drawImage(K,ee,G,H,Y),C(E.toDataURL(),B)},K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=R}else w(A,k,j,H,Y),A.restore(),Vh(A,J,Q,z),w(A,ee,G,H,Y),C(E.toDataURL(),B)}};return je(()=>{I()}),be(()=>[e,r.value.colorFill,r.value.fontSizeLG],()=>{I()},{deep:!0,flush:"post"}),Ze(()=>{x()}),kve(l,_=>{a.value||_.forEach(E=>{Fve(E,i.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var _;return p("div",D(D({},o),{},{ref:l,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(_=n.default)===null||_===void 0?void 0:_.call(n)])}}}),jve=Tt(Hve);function z4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function H4(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Wve=m({overflow:"hidden"},Gt),Vve=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":m(m({},H4(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":m({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Wve),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:m(m({},H4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),z4(`&-disabled ${t}-item`,e)),z4(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Kve=Ve("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:l,colorBgLayout:i,colorBgElevated:a}=e,s=Fe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:i,bgColorHover:l,bgColorSelected:a});return[Vve(s)]}),j4=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,ki=e=>e!==void 0?`${e}px`:void 0,Gve=oe({props:{value:St(),getValueIndex:St(),prefixCls:St(),motionName:St(),onMotionStart:St(),onMotionEnd:St(),direction:St(),containerRef:St()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=le(),r=v=>{var h;const b=e.getValueIndex(v),y=(h=e.containerRef.value)===null||h===void 0?void 0:h.querySelectorAll(`.${e.prefixCls}-item`)[b];return(y==null?void 0:y.offsetParent)&&y},l=le(null),i=le(null);be(()=>e.value,(v,h)=>{const b=r(h),y=r(v),S=j4(b),$=j4(y);l.value=S,i.value=$,n(b&&y?"motionStart":"motionEnd")},{flush:"post"});const a=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=l.value)===null||v===void 0?void 0:v.right)):ki((h=l.value)===null||h===void 0?void 0:h.left)}),s=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=i.value)===null||v===void 0?void 0:v.right)):ki((h=i.value)===null||h===void 0?void 0:h.left)});let c;const u=v=>{clearTimeout(c),ot(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{c=setTimeout(()=>{v&&(lf(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{l.value=null,i.value=null,v&&(v.style.transform=null,v.style.width=null,af(v,`${e.motionName}-appear-active`)),n("motionEnd")},g=P(()=>{var v,h;return{"--thumb-start-left":a.value,"--thumb-start-width":ki((v=l.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":ki((h=i.value)===null||h===void 0?void 0:h.width)}});return Ze(()=>{clearTimeout(c)}),()=>{const v={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return p(cn,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:f},{default:()=>[!l.value||!i.value?null:p("div",v,null)]})}}}),Xve=Gve;function Uve(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const Yve=()=>({prefixCls:String,options:at(),block:Ce(),disabled:Ce(),size:Be(),value:m(m({},Le([String,Number])),{required:!0}),motionName:String,onChange:ve(),"onUpdate:value":ve()}),aM=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:l,payload:i,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e,f=g=>{l||o("change",g,r)};return p("label",{class:ie({[`${s}-item-disabled`]:l},d)},[p("input",{class:`${s}-item-input`,type:"radio",disabled:l,checked:u,onChange:f},null),p("div",{class:`${s}-item-label`,title:typeof a=="string"?a:""},[typeof c=="function"?c({value:r,disabled:l,payload:i,title:a}):c??r])])};aM.inheritAttrs=!1;const qve=oe({name:"ASegmented",inheritAttrs:!1,props:qe(Yve(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,size:a}=Te("segmented",e),[s,c]=Kve(l),u=te(),d=te(!1),f=P(()=>Uve(e.options)),g=(v,h)=>{e.disabled||(n("update:value",h),n("change",h))};return()=>{const v=l.value;return s(p("div",D(D({},r),{},{class:ie(v,{[c.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:a.value=="large",[`${v}-sm`]:a.value=="small",[`${v}-rtl`]:i.value==="rtl"},r.class),ref:u}),[p("div",{class:`${v}-group`},[p(Xve,{containerRef:u,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:i.value,getValueIndex:h=>f.value.findIndex(b=>b.value===h),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(h=>p(aM,D(D({key:h.value,prefixCls:v,checked:h.value===e.value,onChange:g},h),{},{className:ie(h.className,`${v}-item`,{[`${v}-item-selected`]:h.value===e.value&&!d.value}),disabled:!!e.disabled||!!h.disabled}),o))])]))}}}),Zve=Tt(qve),Qve=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Jve=Ve("QRCode",e=>Qve(Fe(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var eme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const tme=eme;function W4(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Be("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:Re()}),rme=()=>m(m({},Z1()),{errorLevel:Be("M"),icon:String,iconSize:{type:Number,default:40},status:Be("active"),bordered:{type:Boolean,default:!0}});/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var hi;(function(e){class t{static encodeText(a,s){const c=e.QrSegment.makeSegments(a);return t.encodeSegments(c,s)}static encodeBinary(a,s){const c=e.QrSegment.makeBytes(a);return t.encodeSegments([c],s)}static encodeSegments(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=c&&c<=u&&u<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let g,v;for(g=c;;g++){const S=t.getNumDataCodewords(g,s)*8,$=l.getTotalBits(a,g);if($<=S){v=$;break}if(g>=u)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(g,S)*8&&(s=S);const h=[];for(const S of a){n(S.mode.modeBits,4,h),n(S.numChars,S.mode.numCharCountBits(g),h);for(const $ of S.getData())h.push($)}r(h.length==v);const b=t.getNumDataCodewords(g,s)*8;r(h.length<=b),n(0,Math.min(4,b-h.length),h),n(0,(8-h.length%8)%8,h),r(h.length%8==0);for(let S=236;h.lengthy[$>>>3]|=S<<7-($&7)),new t(g,s,y,d)}constructor(a,s,c,u){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const d=[];for(let g=0;g>>9)*1335;const u=(s<<10|c)^21522;r(u>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(u,d));this.setFunctionModule(8,7,o(u,6)),this.setFunctionModule(8,8,o(u,7)),this.setFunctionModule(7,8,o(u,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(u,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(u,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(u,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let c=0;c<12;c++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;r(s>>>18==0);for(let c=0;c<18;c++){const u=o(s,c),d=this.size-11+c%3,f=Math.floor(c/3);this.setFunctionModule(d,f,u),this.setFunctionModule(f,d,u)}}drawFinderPattern(a,s){for(let c=-4;c<=4;c++)for(let u=-4;u<=4;u++){const d=Math.max(Math.abs(u),Math.abs(c)),f=a+u,g=s+c;0<=f&&f{(S!=v-d||x>=g)&&y.push($[S])});return r(y.length==f),y}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let u=0;u>>3],7-(s&7)),s++)}}r(s==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][h],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;d5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[h][d],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;df+(g?1:0),s);const c=this.size*this.size,u=Math.ceil(Math.abs(s*20-c*10)/c)-1;return r(0<=u&&u<=9),a+=u*t.PENALTY_N4,r(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,c=[6];for(let u=this.size-7;c.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const c=Math.floor(a/7)+2;s-=(25*c-10)*c-55,a>=7&&(s-=36)}return r(208<=s&&s<=29648),s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let u=0;u0);for(const u of a){const d=u^c.shift();c.push(0),s.forEach((f,g)=>c[g]^=t.reedSolomonMultiply(f,d))}return c}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let c=0;for(let u=7;u>=0;u--)c=c<<1^(c>>>7)*285,c^=(s>>>u&1)*a;return r(c>>>8==0),c}finderPenaltyCountPatterns(a){const s=a[1];r(s<=this.size*3);const c=s>0&&a[2]==s&&a[3]==s*3&&a[4]==s&&a[5]==s;return(c&&a[0]>=s*4&&a[6]>=s?1:0)+(c&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,c){return a&&(this.finderPenaltyAddHistory(s,c),s=0),s+=this.size,this.finderPenaltyAddHistory(s,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(a,s){s[0]==0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let c=a-1;c>=0;c--)s.push(i>>>c&1)}function o(i,a){return(i>>>a&1)!=0}function r(i){if(!i)throw new Error("Assertion error")}class l{static makeBytes(a){const s=[];for(const c of a)n(c,8,s);return new l(l.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!l.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let c=0;c=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,r){let l=null;o.forEach(function(i,a){if(!i&&l!==null){n.push(`M${l+t} ${r+t}h${a-l}v1H${l+t}z`),l=null;return}if(a===o.length-1){if(!i)return;l===null?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${l+t},${r+t} h${a+1-l}v1H${l+t}z`);return}i&&l===null&&(l=a)})}),n.join("")}function gM(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((r,l)=>l=t.x+t.w?r:!1))}function hM(e,t,n,o){if(o==null)return null;const r=e.length+n*2,l=Math.floor(t*ame),i=r/t,a=(o.width||l)*i,s=(o.height||l)*i,c=o.x==null?e.length/2-a/2:o.x*i,u=o.y==null?e.length/2-s/2:o.y*i;let d=null;if(o.excavate){const f=Math.floor(c),g=Math.floor(u),v=Math.ceil(a+c-f),h=Math.ceil(s+u-g);d={x:f,y:g,w:v,h}}return{x:c,y:u,h:s,w:a,excavation:d}}function vM(e,t){return t!=null?Math.floor(t):e?lme:ime}const sme=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),cme=oe({name:"QRCodeCanvas",inheritAttrs:!1,props:m(m({},Z1()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),l=te(null),i=te(null),a=te(!1);return o({toDataURL:(s,c)=>{var u;return(u=l.value)===null||u===void 0?void 0:u.toDataURL(s,c)}}),ke(()=>{const{value:s,size:c=Nm,level:u=cM,bgColor:d=uM,fgColor:f=dM,includeMargin:g=fM,marginSize:v,imageSettings:h}=e;if(l.value!=null){const b=l.value,y=b.getContext("2d");if(!y)return;let S=ea.QrCode.encodeText(s,sM[u]).getModules();const $=vM(g,v),x=S.length+$*2,C=hM(S,c,$,h),O=i.value,w=a.value&&C!=null&&O!==null&&O.complete&&O.naturalHeight!==0&&O.naturalWidth!==0;w&&C.excavation!=null&&(S=gM(S,C.excavation));const I=window.devicePixelRatio||1;b.height=b.width=c*I;const T=c/x*I;y.scale(T,T),y.fillStyle=d,y.fillRect(0,0,x,x),y.fillStyle=f,sme?y.fill(new Path2D(pM(S,$))):S.forEach(function(_,E){_.forEach(function(A,R){A&&y.fillRect(R+$,E+$,1,1)})}),w&&y.drawImage(O,C.x+$,C.y+$,C.w,C.h)}},{flush:"post"}),be(r,()=>{a.value=!1}),()=>{var s;const c=(s=e.size)!==null&&s!==void 0?s:Nm,u={height:`${c}px`,width:`${c}px`};let d=null;return r.value!=null&&(d=p("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:i},null)),p(We,null,[p("canvas",D(D({},n),{},{style:[u,n.style],ref:l}),null),d])}}}),ume=oe({name:"QRCodeSVG",inheritAttrs:!1,props:m(m({},Z1()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,l=null,i=null;return ke(()=>{const{value:a,size:s=Nm,level:c=cM,includeMargin:u=fM,marginSize:d,imageSettings:f}=e;t=ea.QrCode.encodeText(a,sM[c]).getModules(),n=vM(u,d),o=t.length+n*2,r=hM(t,s,n,f),f!=null&&r!=null&&(r.excavation!=null&&(t=gM(t,r.excavation)),i=p("image",{"xlink:href":f.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),l=pM(t,n)}),()=>{const a=e.bgColor&&uM,s=e.fgColor&&dM;return p("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&p("title",null,[e.title]),p("path",{fill:a,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),p("path",{fill:s,d:l,"shape-rendering":"crispEdges"},null),i])}}}),dme=oe({name:"AQrcode",inheritAttrs:!1,props:rme(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[l]=Io("QRCode"),{prefixCls:i}=Te("qrcode",e),[a,s]=Jve(i),[,c]=Fr(),u=le();r({toDataURL:(f,g)=>{var v;return(v=u.value)===null||v===void 0?void 0:v.toDataURL(f,g)}});const d=P(()=>{const{value:f,icon:g="",size:v=160,iconSize:h=40,color:b=c.value.colorText,bgColor:y="transparent",errorLevel:S="M"}=e,$={src:g,x:void 0,y:void 0,height:h,width:h,excavate:!0};return{value:f,size:v-(c.value.paddingSM+c.value.lineWidth)*2,level:S,bgColor:y,fgColor:b,imageSettings:g?$:void 0}});return()=>{const f=i.value;return a(p("div",D(D({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&p("div",{class:`${f}-mask`},[e.status==="loading"&&p(ir,null,null),e.status==="expired"&&p(We,null,[p("p",{class:`${f}-expired`},[l.value.expired]),p(zt,{type:"link",onClick:g=>n("refresh",g)},{default:()=>[l.value.refresh],icon:()=>p(ome,null,null)})]),e.status==="scanned"&&p("p",{class:`${f}-scanned`},[l.value.scanned])]),e.type==="canvas"?p(cme,D({ref:u},d.value),null):p(ume,d.value,null)]))}}}),fme=Tt(dme);function pme(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:l,left:i}=e.getBoundingClientRect();return o>=0&&i>=0&&r<=t&&l<=n}function gme(e,t,n,o){const[r,l]=vt(void 0);ke(()=>{const u=typeof e.value=="function"?e.value():e.value;l(u||null)},{flush:"post"});const[i,a]=vt(null),s=()=>{if(!t.value){a(null);return}if(r.value){!pme(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:u,top:d,width:f,height:g}=r.value.getBoundingClientRect(),v={left:u,top:d,width:f,height:g,radius:0};JSON.stringify(i.value)!==JSON.stringify(v)&&a(v)}else a(null)};return je(()=>{be([t,r],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Ze(()=>{window.removeEventListener("resize",s)}),[P(()=>{var u,d;if(!i.value)return i.value;const f=((u=n.value)===null||u===void 0?void 0:u.offset)||6,g=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:i.value.left-f,top:i.value.top-f,width:i.value.width+f*2,height:i.value.height+f*2,radius:g}}),r]}const hme=()=>({arrow:Le([Boolean,Object]),target:Le([String,Function,Object]),title:Le([String,Object]),description:Le([String,Object]),placement:Be(),mask:Le([Object,Boolean],!0),className:{type:String},style:Re(),scrollIntoViewOptions:Le([Boolean,Object])}),Q1=()=>m(m({},hme()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:ve(),onFinish:ve(),renderPanel:ve(),onPrev:ve(),onNext:ve()}),vme=oe({name:"DefaultPanel",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:r,total:l,title:i,description:a,onClose:s,onPrev:c,onNext:u,onFinish:d}=e;return p("div",D(D({},n),{},{class:ie(`${o}-content`,n.class)}),[p("div",{class:`${o}-inner`},[p("button",{type:"button",onClick:s,"aria-label":"Close",class:`${o}-close`},[p("span",{class:`${o}-close-x`},[Lt("×")])]),p("div",{class:`${o}-header`},[p("div",{class:`${o}-title`},[i])]),p("div",{class:`${o}-description`},[a]),p("div",{class:`${o}-footer`},[p("div",{class:`${o}-sliders`},[l>1?[...Array.from({length:l}).keys()].map((f,g)=>p("span",{key:f,class:g===r?"active":""},null)):null]),p("div",{class:`${o}-buttons`},[r!==0?p("button",{class:`${o}-prev-btn`,onClick:c},[Lt("Prev")]):null,r===l-1?p("button",{class:`${o}-finish-btn`,onClick:d},[Lt("Finish")]):p("button",{class:`${o}-next-btn`,onClick:u},[Lt("Next")])])])])])}}}),mme=vme,bme=oe({name:"TourStep",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:r}=e;return p(We,null,[typeof r=="function"?r(m(m({},n),e),o):p(mme,D(D({},n),e),null)])}}}),yme=bme;let V4=0;const Sme=Mn();function $me(){let e;return Sme?(e=V4,V4+=1):e="TEST_OR_SSR",e}function Cme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le("");const t=`vc_unique_${$me()}`;return e.value||t}const _u={fill:"transparent","pointer-events":"auto"},xme=oe({name:"TourMask",props:{prefixCls:{type:String},pos:Re(),rootClassName:{type:String},showMask:Ce(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Ce(),animated:Le([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=Cme();return()=>{const{prefixCls:r,open:l,rootClassName:i,pos:a,showMask:s,fill:c,animated:u,zIndex:d}=e,f=`${r}-mask-${o}`,g=typeof u=="object"?u==null?void 0:u.placeholder:u;return p(Ic,{visible:l,autoLock:!0},{default:()=>l&&p("div",D(D({},n),{},{class:ie(`${r}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?p("svg",{style:{width:"100%",height:"100%"}},[p("defs",null,[p("mask",{id:f},[p("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&p("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:g?`${r}-placeholder-animated`:""},null)])]),p("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:`url(#${f})`},null),a&&p(We,null,[p("rect",D(D({},_u),{},{x:"0",y:"0",width:"100%",height:a.top}),null),p("rect",D(D({},_u),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),p("rect",D(D({},_u),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),p("rect",D(D({},_u),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),wme=xme,Ome=[0,0],K4={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function mM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(K4).forEach(n=>{t[n]=m(m({},K4[n]),{autoArrow:e,targetOffset:Ome})}),t}mM();var Pme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{builtinPlacements:e,popupAlign:t}=JP();return{builtinPlacements:e,popupAlign:t,steps:at(),open:Ce(),defaultCurrent:{type:Number},current:{type:Number},onChange:ve(),onClose:ve(),onFinish:ve(),mask:Le([Boolean,Object],!0),arrow:Le([Boolean,Object],!0),rootClassName:{type:String},placement:Be("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:ve(),gap:Re(),animated:Le([Boolean,Object]),scrollIntoViewOptions:Le([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Ime=oe({name:"Tour",inheritAttrs:!1,props:qe(bM(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:l,gap:i,arrow:a}=No(e),s=le(),[c,u]=Pt(0,{value:P(()=>e.current),defaultValue:t.value}),[d,f]=Pt(void 0,{value:P(()=>e.open),postState:w=>c.value<0||c.value>=e.steps.length?!1:w??!0}),g=te(d.value);ke(()=>{d.value&&!g.value&&u(0),g.value=d.value});const v=P(()=>e.steps[c.value]||{}),h=P(()=>{var w;return(w=v.value.placement)!==null&&w!==void 0?w:n.value}),b=P(()=>{var w;return d.value&&((w=v.value.mask)!==null&&w!==void 0?w:o.value)}),y=P(()=>{var w;return(w=v.value.scrollIntoViewOptions)!==null&&w!==void 0?w:r.value}),[S,$]=gme(P(()=>v.value.target),l,i,y),x=P(()=>$.value?typeof v.value.arrow>"u"?a.value:v.value.arrow:!1),C=P(()=>typeof x.value=="object"?x.value.pointAtCenter:!1);be(C,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()}),be(c,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()});const O=w=>{var I;u(w),(I=e.onChange)===null||I===void 0||I.call(e,w)};return()=>{var w;const{prefixCls:I,steps:T,onClose:_,onFinish:E,rootClassName:A,renderPanel:R,animated:z,zIndex:M}=e,B=Pme(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if($.value===void 0)return null;const N=()=>{f(!1),_==null||_(c.value)},F=typeof b.value=="boolean"?b.value:!!b.value,L=typeof b.value=="boolean"?void 0:b.value,k=()=>$.value||document.body,j=()=>p(yme,D({arrow:x.value,key:"content",prefixCls:I,total:T.length,renderPanel:R,onPrev:()=>{O(c.value-1)},onNext:()=>{O(c.value+1)},onClose:N,current:c.value,onFinish:()=>{N(),E==null||E()}},v.value),null),H=P(()=>{const Y=S.value||Gh,Z={};return Object.keys(Y).forEach(U=>{typeof Y[U]=="number"?Z[U]=`${Y[U]}px`:Z[U]=Y[U]}),Z});return d.value?p(We,null,[p(wme,{zIndex:M,prefixCls:I,pos:S.value,showMask:F,style:L==null?void 0:L.style,fill:L==null?void 0:L.color,open:d.value,animated:z,rootClassName:A},null),p(wi,D(D({},B),{},{arrow:!!B.arrow,builtinPlacements:v.value.target?(w=B.builtinPlacements)!==null&&w!==void 0?w:mM(C.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:m(m({},v.value.style),{position:"fixed",left:Gh.left,top:Gh.top,transform:"translate(-50%, -50%)"}),popupPlacement:h.value,popupVisible:d.value,popupClassName:ie(A,v.value.className),prefixCls:I,popup:j,forceRender:!1,destroyPopupOnHide:!0,zIndex:M,mask:!1,getTriggerDOMNode:k}),{default:()=>[p(Ic,{visible:d.value,autoLock:!0},{default:()=>[p("div",{class:ie(A,`${I}-target-placeholder`),style:m(m({},H.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),Tme=Ime,Eme=()=>m(m({},bM()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Mme=()=>m(m({},Q1()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),_me=oe({name:"ATourPanel",inheritAttrs:!1,props:Mme(),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:l}=No(e),i=P(()=>r.value===l.value-1),a=c=>{var u;const d=e.prevButtonProps;(u=e.onPrev)===null||u===void 0||u.call(e,c),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=c=>{var u,d;const f=e.nextButtonProps;i.value?(u=e.onFinish)===null||u===void 0||u.call(e,c):(d=e.onNext)===null||d===void 0||d.call(e,c),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:c,title:u,onClose:d,cover:f,description:g,type:v,arrow:h}=e,b=e.prevButtonProps,y=e.nextButtonProps;let S;u&&(S=p("div",{class:`${c}-header`},[p("div",{class:`${c}-title`},[u])]));let $;g&&($=p("div",{class:`${c}-description`},[g]));let x;f&&(x=p("div",{class:`${c}-cover`},[f]));let C;o.indicatorsRender?C=o.indicatorsRender({current:r.value,total:l}):C=[...Array.from({length:l.value}).keys()].map((I,T)=>p("span",{key:I,class:ie(T===r.value&&`${c}-indicator-active`,`${c}-indicator`)},null));const O=v==="primary"?"default":"primary",w={type:"default",ghost:v==="primary"};return p(bi,{componentName:"Tour",defaultLocale:jn.Tour},{default:I=>{var T;return p("div",D(D({},n),{},{class:ie(v==="primary"?`${c}-primary`:"",n.class,`${c}-content`)}),[h&&p("div",{class:`${c}-arrow`,key:"arrow"},null),p("div",{class:`${c}-inner`},[p(Zn,{class:`${c}-close`,onClick:d},null),x,S,$,p("div",{class:`${c}-footer`},[l.value>1&&p("div",{class:`${c}-indicators`},[C]),p("div",{class:`${c}-buttons`},[r.value!==0?p(zt,D(D(D({},w),b),{},{onClick:a,size:"small",class:ie(`${c}-prev-btn`,b==null?void 0:b.className)}),{default:()=>[uv(b==null?void 0:b.children)?b.children():(T=b==null?void 0:b.children)!==null&&T!==void 0?T:I.Previous]}):null,p(zt,D(D({type:O},y),{},{onClick:s,size:"small",class:ie(`${c}-next-btn`,y==null?void 0:y.className)}),{default:()=>[uv(y==null?void 0:y.children)?y==null?void 0:y.children():i.value?I.Finish:I.Next]})])])])])}})}}}),Ame=_me,Rme=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const l=le(r==null?void 0:r.value),i=P(()=>o==null?void 0:o.value);be(i,u=>{l.value=u??(r==null?void 0:r.value)},{immediate:!0});const a=u=>{l.value=u},s=P(()=>{var u,d;return typeof l.value=="number"?n&&((d=(u=n.value)===null||u===void 0?void 0:u[l.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:P(()=>{var u;return(u=s.value)!==null&&u!==void 0?u:t==null?void 0:t.value}),updateInnerCurrent:a}},Dme=Rme,Bme=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:l,borderRadiusXS:i,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:g,fontSize:v,colorBgContainer:h,fontWeightStrong:b,marginXS:y,colorTextLightSolid:S,tourBorderRadius:$,colorWhite:x,colorBgTextHover:C,tourCloseSize:O,motionDurationSlow:w,antCls:I}=e;return[{[t]:m(m({},Xe(e)),{color:s,position:"absolute",zIndex:g,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:$,boxShadow:f,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:O,height:O,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+O+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:b}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${I}-btn`]:{marginInlineStart:y}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:l,boxShadow:f,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new gt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new gt(S).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new gt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:x,"&:hover":{background:new gt(C).onBackground(x).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min($,Nb)}}},Fb(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:$,limitVerticalRadius:!0})]},Nme=Ve("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=Fe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[Bme(r)]});var Fme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{steps:h,current:b,type:y,rootClassName:S}=e,$=Fme(e,["steps","current","type","rootClassName"]),x=ie({[`${c.value}-primary`]:g.value==="primary",[`${c.value}-rtl`]:u.value==="rtl"},f.value,S),C=(I,T)=>p(Ame,D(D({},I),{},{type:y,current:T}),{indicatorsRender:r.indicatorsRender}),O=I=>{v(I),o("update:current",I),o("change",I)},w=P(()=>Bb({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(p(Tme,D(D(D({},n),$),{},{rootClassName:x,prefixCls:c.value,current:b,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:C,onChange:O,steps:h,builtinPlacements:w.value}),null))}}}),kme=Tt(Lme),yM=Symbol("appConfigContext"),zme=e=>Ge(yM,e),Hme=()=>He(yM,{}),SM=Symbol("appContext"),jme=e=>Ge(SM,e),Wme=ut({message:{},notification:{},modal:{}}),Vme=()=>He(SM,Wme),Kme=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:l}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:l}}},Gme=Ve("App",e=>[Kme(e)]),Xme=()=>({rootClassName:String,message:Re(),notification:Re()}),Ume=()=>Vme(),Ws=oe({name:"AApp",props:qe(Xme(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("app",e),[r,l]=Gme(o),i=P(()=>ie(l.value,o.value,e.rootClassName)),a=Hme(),s=P(()=>({message:m(m({},a.message),e.message),notification:m(m({},a.notification),e.notification)}));zme(s.value);const[c,u]=N8(s.value.message),[d,f]=U8(s.value.notification),[g,v]=n5(),h=P(()=>({message:c,notification:d,modal:g}));return jme(h.value),()=>{var b;return r(p("div",{class:i.value},[v(),u(),f(),(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});Ws.useApp=Ume;Ws.install=function(e){e.component(Ws.name,Ws)};const Yme=Ws,$M=["wrap","nowrap","wrap-reverse"],CM=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xM=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qme=(e,t)=>{const n={};return $M.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},Zme=(e,t)=>{const n={};return xM.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Qme=(e,t)=>{const n={};return CM.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function Jme(e,t){return ie(m(m(m({},qme(e,t)),Zme(e,t)),Qme(e,t)))}const e0e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},t0e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},n0e=e=>{const{componentCls:t}=e,n={};return $M.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},o0e=e=>{const{componentCls:t}=e,n={};return xM.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},r0e=e=>{const{componentCls:t}=e,n={};return CM.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},l0e=Ve("Flex",e=>{const t=Fe(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[e0e(t),t0e(t),n0e(t),o0e(t),r0e(t)]});function G4(e){return["small","middle","large"].includes(e)}const i0e=()=>({prefixCls:Be(),vertical:Ce(),wrap:Be(),justify:Be(),align:Be(),flex:Le([Number,String]),gap:Le([Number,String]),component:St()});var a0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var u;return[i.value,s.value,Jme(i.value,e),{[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-gap-${e.gap}`]:G4(e.gap),[`${i.value}-vertical`]:(u=e.vertical)!==null&&u!==void 0?u:r==null?void 0:r.value.vertical}]});return()=>{var u;const{flex:d,gap:f,component:g="div"}=e,v=a0e(e,["flex","gap","component"]),h={};return d&&(h.flex=d),f&&!G4(f)&&(h.gap=`${f}px`),a(p(g,D({class:[o.class,c.value],style:[o.style,h]},et(v,["justify","wrap","align","vertical"])),{default:()=>[(u=n.default)===null||u===void 0?void 0:u.call(n)]}))}}}),c0e=Tt(s0e),X4=Object.freeze(Object.defineProperty({__proto__:null,Affix:FP,Alert:PX,Anchor:Gl,AnchorLink:T0,App:Yme,AutoComplete:UG,AutoCompleteOptGroup:XG,AutoCompleteOption:GG,Avatar:ni,AvatarGroup:Zd,BackTop:$f,Badge:_s,BadgeRibbon:Qd,Breadcrumb:oi,BreadcrumbItem:dc,BreadcrumbSeparator:sf,Button:zt,ButtonGroup:of,Calendar:xZ,Card:fa,CardGrid:pf,CardMeta:ff,Carousel:OJ,Cascader:Yte,CheckableTag:mf,Checkbox:$o,CheckboxGroup:vf,Col:tne,Collapse:Rs,CollapsePanel:gf,Comment:ine,Compact:Yd,ConfigProvider:zy,DatePicker:Aoe,Descriptions:Woe,DescriptionsItem:fE,DirectoryTree:pd,Divider:Uoe,Drawer:fre,Dropdown:rr,DropdownButton:uc,Empty:ll,Flex:c0e,FloatButton:vl,FloatButtonGroup:Sf,Form:il,FormItem:I8,FormItemRest:Gd,Grid:ene,Image:tie,ImagePreviewGroup:FE,Input:tn,InputGroup:wE,InputNumber:bie,InputPassword:IE,InputSearch:OE,Layout:Bie,LayoutContent:Die,LayoutFooter:Aie,LayoutHeader:_ie,LayoutSider:Rie,List:Oae,ListItem:jE,ListItemMeta:zE,LocaleProvider:_8,Mentions:Gae,MentionsOption:cd,Menu:Vt,MenuDivider:pc,MenuItem:lr,MenuItemGroup:fc,Modal:an,MonthPicker:ed,PageHeader:_se,Pagination:Up,Popconfirm:Fse,Popover:Lb,Progress:b1,QRCode:fme,QuarterPicker:td,Radio:Nn,RadioButton:uf,RadioGroup:hy,RangePicker:nd,Rate:Pce,Result:Xce,Row:Uce,Segmented:Zve,Select:Dr,SelectOptGroup:WG,SelectOption:jG,Skeleton:On,SkeletonAvatar:Oy,SkeletonButton:Cy,SkeletonImage:wy,SkeletonInput:xy,SkeletonTitle:Ap,Slider:pue,Space:i5,Spin:ir,Statistic:wr,StatisticCountdown:fse,Step:ud,Steps:zue,SubMenu:fi,Switch:que,TabPane:df,Table:Wpe,TableColumn:hd,TableColumnGroup:vd,TableSummary:md,TableSummaryCell:Pf,TableSummaryRow:Of,Tabs:ri,Tag:rE,Textarea:Zy,TimePicker:Hge,TimeRangePicker:bd,Timeline:js,TimelineItem:Sc,Tooltip:Yn,Tour:kme,Transfer:hge,Tree:V5,TreeNode:gd,TreeSelect:kge,TreeSelectNode:Bm,Typography:Un,TypographyLink:j1,TypographyParagraph:W1,TypographyText:V1,TypographyTitle:K1,Upload:Dve,UploadDragger:Rve,Watermark:jve,WeekPicker:Ju,message:ga,notification:Ly},Symbol.toStringTag,{value:"Module"})),u0e=function(e){return Object.keys(X4).forEach(t=>{const n=X4[t];n.install&&e.use(n)}),e.use(_9.StyleProvider),e.config.globalProperties.$message=ga,e.config.globalProperties.$notification=Ly,e.config.globalProperties.$info=an.info,e.config.globalProperties.$success=an.success,e.config.globalProperties.$error=an.error,e.config.globalProperties.$warning=an.warning,e.config.globalProperties.$confirm=an.confirm,e.config.globalProperties.$destroyAll=an.destroyAll,e},d0e={version:xP,install:u0e};const f0e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},p0e={key:0,class:"env-info"},g0e={class:"env-details"},h0e={class:"env-actions",style:{"margin-top":"12px"}},v0e={__name:"EnvInfo",setup(e){const t=P(()=>!Nt.isProduction),n=le(!1),o=P(()=>{switch(Nt.APP_ENV){case"development":return"blue";case"test":return"orange";case"production":return"green";default:return"default"}}),r=()=>{n.value=!n.value},l=()=>{NO(),ga.success("环境信息已打印到控制台")},i=async()=>{const a=` -环境: ${Nt.APP_ENV} -标题: ${Nt.APP_TITLE} -版本: ${Nt.APP_VERSION} -API地址: ${Nt.API_BASE_URL} -API目标: ${Nt.API_TARGET} -超时时间: ${Nt.API_TIMEOUT}ms -调试模式: ${Nt.DEBUG_MODE?"开启":"关闭"} - `.trim();try{await navigator.clipboard.writeText(a),ga.success("环境信息已复制到剪贴板")}catch{ga.error("复制失败")}};return(a,s)=>{const c=zl("a-button"),u=zl("a-tag"),d=zl("a-descriptions-item"),f=zl("a-descriptions"),g=zl("a-space"),v=zl("a-card");return t.value?(s0(),oO("div",p0e,[p(v,{title:"环境信息",size:"small",style:{position:"fixed",top:"10px",right:"10px",zIndex:9999,width:"300px"}},{extra:hn(()=>[p(c,{size:"small",onClick:r},{default:hn(()=>[Lt(vr(n.value?"隐藏":"显示"),1)]),_:1})]),default:hn(()=>[$n(Gi("div",g0e,[p(f,{size:"small",column:1,bordered:""},{default:hn(()=>[p(d,{label:"环境"},{default:hn(()=>[p(u,{color:o.value},{default:hn(()=>[Lt(vr($t(Nt).APP_ENV),1)]),_:1},8,["color"])]),_:1}),p(d,{label:"标题"},{default:hn(()=>[Lt(vr($t(Nt).APP_TITLE),1)]),_:1}),p(d,{label:"版本"},{default:hn(()=>[Lt(vr($t(Nt).APP_VERSION),1)]),_:1}),p(d,{label:"API地址"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_BASE_URL),1)]),_:1}),p(d,{label:"API目标"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_TARGET),1)]),_:1}),p(d,{label:"超时时间"},{default:hn(()=>[Lt(vr($t(Nt).API_TIMEOUT)+"ms ",1)]),_:1}),p(d,{label:"调试模式"},{default:hn(()=>[p(u,{color:$t(Nt).DEBUG_MODE?"green":"red"},{default:hn(()=>[Lt(vr($t(Nt).DEBUG_MODE?"开启":"关闭"),1)]),_:1},8,["color"])]),_:1})]),_:1}),Gi("div",h0e,[p(g,null,{default:hn(()=>[p(c,{size:"small",onClick:l},{default:hn(()=>s[0]||(s[0]=[Lt(" 打印到控制台 ")])),_:1,__:[0]}),p(c,{size:"small",onClick:i},{default:hn(()=>s[1]||(s[1]=[Lt(" 复制信息 ")])),_:1,__:[1]})]),_:1})])],512),[[En,n.value]])]),_:1})])):gA("",!0)}}},m0e=f0e(v0e,[["__scopeId","data-v-89545570"]]);const b0e={id:"app"},y0e={__name:"App",setup(e){const t=mR();return je(()=>{t.initUser(),xc("App.vue loaded successfully, user:",t.userInfo)}),(n,o)=>{const r=zl("router-view");return s0(),oO("div",b0e,[p(r),p(m0e)])}}};xc("main.js loading...");Nt.DEBUG_MODE&&NO();const lg=mO(y0e);xc("App created");lg.use(r7());lg.use(BO);lg.use(d0e);xc("Plugins loaded");document.title=Nt.APP_TITLE;lg.mount("#app");xc("App mounted");export{be as A,jm as B,moe as C,Xpe as D,Nt as E,We as F,ot as G,WS as H,_r as I,ci as J,LZ as P,tme as R,f0e as _,le as a,zl as b,p as c,xc as d,oO as e,Gi as f,Lt as g,x0e as h,gA as i,P as j,je as k,$t as l,ga as m,dA as n,s0 as o,C0e as p,u7 as q,ut as r,Pl as s,vr as t,w0e as u,Il as v,hn as w,GY as x,ln as y,mR as z}; diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/config/test.env.js b/packages/emotion-museum-1.0.0-20250713_111829/frontend/config/test.env.js deleted file mode 100644 index 3f95ade..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/config/test.env.js +++ /dev/null @@ -1,78 +0,0 @@ -// 测试环境配置 -module.exports = { - NODE_ENV: 'test', - - // API配置 - VUE_APP_API_BASE_URL: process.env.VUE_APP_API_BASE_URL || 'http://localhost:9000', - VUE_APP_GATEWAY_URL: process.env.VUE_APP_GATEWAY_URL || 'http://localhost:9000', - - // 服务端点配置 - VUE_APP_USER_SERVICE_URL: process.env.VUE_APP_USER_SERVICE_URL || 'http://localhost:9001', - VUE_APP_AI_SERVICE_URL: process.env.VUE_APP_AI_SERVICE_URL || 'http://localhost:9002', - - // WebSocket配置 - VUE_APP_WS_URL: process.env.VUE_APP_WS_URL || 'ws://localhost:9000/ws', - - // 静态资源配置 - VUE_APP_STATIC_URL: process.env.VUE_APP_STATIC_URL || 'http://localhost:9000/static', - VUE_APP_UPLOAD_URL: process.env.VUE_APP_UPLOAD_URL || 'http://localhost:9000/api/upload', - - // 应用配置 - VUE_APP_TITLE: '情绪博物馆 - 测试环境', - VUE_APP_VERSION: '1.0.0', - VUE_APP_ENVIRONMENT: 'test', - - // 功能开关 - VUE_APP_ENABLE_MOCK: 'false', - VUE_APP_ENABLE_DEBUG: 'true', - VUE_APP_ENABLE_CONSOLE_LOG: 'true', - VUE_APP_ENABLE_ERROR_REPORT: 'true', - - // 认证配置 - VUE_APP_TOKEN_KEY: 'emotion_token', - VUE_APP_REFRESH_TOKEN_KEY: 'emotion_refresh_token', - VUE_APP_TOKEN_EXPIRE_TIME: 7200, // 2小时 - - // 缓存配置 - VUE_APP_CACHE_PREFIX: 'emotion_test_', - VUE_APP_CACHE_EXPIRE_TIME: 3600, // 1小时 - - // 请求配置 - VUE_APP_REQUEST_TIMEOUT: 30000, // 30秒 - VUE_APP_REQUEST_RETRY_COUNT: 3, - VUE_APP_REQUEST_RETRY_DELAY: 1000, - - // 分页配置 - VUE_APP_PAGE_SIZE: 20, - VUE_APP_PAGE_SIZE_OPTIONS: '10,20,50,100', - - // 文件上传配置 - VUE_APP_UPLOAD_MAX_SIZE: 10485760, // 10MB - VUE_APP_UPLOAD_ALLOWED_TYPES: 'image/jpeg,image/png,image/gif,image/webp', - - // AI对话配置 - VUE_APP_AI_MAX_MESSAGE_LENGTH: 2000, - VUE_APP_AI_HISTORY_LIMIT: 20, - VUE_APP_AI_TYPING_DELAY: 1000, - - // 主题配置 - VUE_APP_DEFAULT_THEME: 'light', - VUE_APP_THEME_COLOR: '#1890ff', - - // 国际化配置 - VUE_APP_DEFAULT_LOCALE: 'zh-CN', - VUE_APP_FALLBACK_LOCALE: 'en-US', - - // 监控配置 - VUE_APP_ENABLE_PERFORMANCE_MONITOR: 'true', - VUE_APP_ENABLE_ERROR_MONITOR: 'true', - VUE_APP_MONITOR_SAMPLE_RATE: 0.1, - - // 安全配置 - VUE_APP_ENABLE_CSP: 'true', - VUE_APP_ENABLE_XSS_PROTECTION: 'true', - - // 开发工具配置 - VUE_APP_ENABLE_VUE_DEVTOOLS: 'true', - VUE_APP_ENABLE_SOURCE_MAP: 'true' -} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/index.html b/packages/emotion-museum-1.0.0-20250713_111829/frontend/index.html deleted file mode 100644 index 791f0de..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - 情绪博物馆 - AI心理健康助手 - - - - - - -
-
加载中...
-
- - - diff --git a/packages/emotion-museum-1.0.0-20250713_111829/frontend/nginx.conf b/packages/emotion-museum-1.0.0-20250713_111829/frontend/nginx.conf deleted file mode 100644 index 636a14c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/frontend/nginx.conf +++ /dev/null @@ -1,64 +0,0 @@ -server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html index.htm; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - try_files $uri =404; - } - - # HTML文件不缓存 - location ~* \.(html|htm)$ { - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - try_files $uri $uri/ /index.html; - } - - # SPA路由支持 - location / { - try_files $uri $uri/ /index.html; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - } - - # 健康检查 - location /health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /index.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } -} diff --git a/packages/emotion-museum-1.0.0-20250713_111829/init-database.sh b/packages/emotion-museum-1.0.0-20250713_111829/init-database.sh deleted file mode 100755 index 544332c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/init-database.sh +++ /dev/null @@ -1,309 +0,0 @@ -#!/bin/bash - -# 情绪博物馆数据库初始化脚本 -# 作者: EmotionMuseum Team -# 版本: 1.0.0 -# 日期: 2025-07-13 -# 说明: 初始化MySQL数据库和Nacos配置数据库 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 配置变量 -MYSQL_ROOT_PASSWORD="123456" -MYSQL_HOST="localhost" -MYSQL_PORT="3306" -EMOTION_DB_NAME="emotion_museum" -NACOS_DB_NAME="nacos_config" -EMOTION_USER="emotion" -EMOTION_PASSWORD="emotion123" - -# 检查Docker是否运行 -check_docker() { - log_step "检查Docker服务..." - - if ! command -v docker &> /dev/null; then - log_error "Docker未安装,请先运行 ./install-environment.sh" - exit 1 - fi - - if ! docker info &> /dev/null; then - log_error "Docker服务未启动,请启动Docker服务" - exit 1 - fi - - log_info "Docker服务正常" -} - -# 启动MySQL容器 -start_mysql_container() { - log_step "启动MySQL容器..." - - # 检查是否已有MySQL容器运行 - if docker ps -a | grep -q "emotion-mysql"; then - log_info "检测到已存在的MySQL容器" - if docker ps | grep -q "emotion-mysql"; then - log_info "MySQL容器已在运行" - return - else - log_info "启动已存在的MySQL容器" - docker start emotion-mysql - sleep 10 - return - fi - fi - - # 创建数据目录 - mkdir -p ./data/mysql - - # 启动新的MySQL容器 - log_info "创建新的MySQL容器..." - docker run -d \ - --name emotion-mysql \ - --restart unless-stopped \ - -e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD \ - -e TZ=Asia/Shanghai \ - -p $MYSQL_PORT:3306 \ - -v $(pwd)/data/mysql:/var/lib/mysql \ - mysql:8.0 \ - --default-authentication-plugin=mysql_native_password \ - --character-set-server=utf8mb4 \ - --collation-server=utf8mb4_unicode_ci \ - --default-time-zone='+8:00' - - log_info "等待MySQL容器启动..." - sleep 30 - - # 等待MySQL服务就绪 - local retry_count=0 - local max_retries=30 - - while [ $retry_count -lt $max_retries ]; do - if docker exec emotion-mysql mysqladmin ping -h localhost -u root -p$MYSQL_ROOT_PASSWORD &> /dev/null; then - log_info "MySQL服务已就绪" - break - fi - - retry_count=$((retry_count + 1)) - log_info "等待MySQL服务就绪... ($retry_count/$max_retries)" - sleep 2 - done - - if [ $retry_count -eq $max_retries ]; then - log_error "MySQL服务启动超时" - exit 1 - fi -} - -# 创建数据库和用户 -create_databases() { - log_step "创建数据库和用户..." - - # 创建情绪博物馆数据库 - log_info "创建情绪博物馆数据库..." - docker exec emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD -e " - CREATE DATABASE IF NOT EXISTS $EMOTION_DB_NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - CREATE USER IF NOT EXISTS '$EMOTION_USER'@'%' IDENTIFIED BY '$EMOTION_PASSWORD'; - GRANT ALL PRIVILEGES ON $EMOTION_DB_NAME.* TO '$EMOTION_USER'@'%'; - FLUSH PRIVILEGES; - " - - # 创建Nacos配置数据库 - log_info "创建Nacos配置数据库..." - docker exec emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD -e " - CREATE DATABASE IF NOT EXISTS $NACOS_DB_NAME CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; - GRANT ALL PRIVILEGES ON $NACOS_DB_NAME.* TO '$EMOTION_USER'@'%'; - FLUSH PRIVILEGES; - " - - log_info "数据库创建完成" -} - -# 初始化情绪博物馆数据库表结构 -init_emotion_database() { - log_step "初始化情绪博物馆数据库表结构..." - - if [ ! -f "./database/mysql_emotion_museum_final.sql" ]; then - log_error "数据库初始化脚本不存在: ./database/mysql_emotion_museum_final.sql" - exit 1 - fi - - log_info "执行数据库初始化脚本..." - docker exec -i emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD $EMOTION_DB_NAME < ./database/mysql_emotion_museum_final.sql - - log_info "情绪博物馆数据库初始化完成" -} - -# 初始化Nacos配置数据库 -init_nacos_database() { - log_step "初始化Nacos配置数据库..." - - # 下载Nacos数据库初始化脚本 - local nacos_sql_url="https://raw.githubusercontent.com/alibaba/nacos/2.2.0/distribution/conf/nacos-mysql.sql" - local nacos_sql_file="./database/nacos-mysql.sql" - - if [ ! -f "$nacos_sql_file" ]; then - log_info "下载Nacos数据库初始化脚本..." - mkdir -p ./database - curl -fsSL $nacos_sql_url -o $nacos_sql_file - fi - - log_info "执行Nacos数据库初始化脚本..." - docker exec -i emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD $NACOS_DB_NAME < $nacos_sql_file - - log_info "Nacos配置数据库初始化完成" -} - -# 验证数据库初始化 -verify_database() { - log_step "验证数据库初始化..." - - echo "" - echo "=== 数据库验证结果 ===" - - # 验证情绪博物馆数据库 - log_info "验证情绪博物馆数据库..." - local emotion_tables=$(docker exec emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD -e "USE $EMOTION_DB_NAME; SHOW TABLES;" | wc -l) - if [ $emotion_tables -gt 1 ]; then - log_info "✅ 情绪博物馆数据库表数量: $((emotion_tables - 1))" - else - log_error "❌ 情绪博物馆数据库初始化失败" - fi - - # 验证Nacos配置数据库 - log_info "验证Nacos配置数据库..." - local nacos_tables=$(docker exec emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD -e "USE $NACOS_DB_NAME; SHOW TABLES;" | wc -l) - if [ $nacos_tables -gt 1 ]; then - log_info "✅ Nacos配置数据库表数量: $((nacos_tables - 1))" - else - log_error "❌ Nacos配置数据库初始化失败" - fi - - # 验证用户权限 - log_info "验证数据库用户权限..." - if docker exec emotion-mysql mysql -u $EMOTION_USER -p$EMOTION_PASSWORD -e "USE $EMOTION_DB_NAME; SELECT 1;" &> /dev/null; then - log_info "✅ 情绪博物馆数据库用户权限正常" - else - log_error "❌ 情绪博物馆数据库用户权限异常" - fi - - if docker exec emotion-mysql mysql -u $EMOTION_USER -p$EMOTION_PASSWORD -e "USE $NACOS_DB_NAME; SELECT 1;" &> /dev/null; then - log_info "✅ Nacos数据库用户权限正常" - else - log_error "❌ Nacos数据库用户权限异常" - fi - - echo "" - log_info "数据库验证完成" -} - -# 显示数据库连接信息 -show_database_info() { - log_step "数据库连接信息" - - echo "" - echo "🗄️ 数据库连接信息:" - echo " MySQL主机: $MYSQL_HOST:$MYSQL_PORT" - echo " Root密码: $MYSQL_ROOT_PASSWORD" - echo " 情绪博物馆数据库: $EMOTION_DB_NAME" - echo " Nacos配置数据库: $NACOS_DB_NAME" - echo " 应用用户: $EMOTION_USER" - echo " 应用密码: $EMOTION_PASSWORD" - echo "" - echo "🔧 管理命令:" - echo " 连接MySQL: docker exec -it emotion-mysql mysql -u root -p$MYSQL_ROOT_PASSWORD" - echo " 查看日志: docker logs emotion-mysql" - echo " 停止容器: docker stop emotion-mysql" - echo " 启动容器: docker start emotion-mysql" - echo "" -} - -# 清理数据库(危险操作) -clean_database() { - log_warn "⚠️ 这将删除所有数据库数据,此操作不可逆!" - read -p "确认删除所有数据库数据? (输入 'YES' 确认): " -r - - if [ "$REPLY" = "YES" ]; then - log_step "清理数据库..." - - # 停止并删除MySQL容器 - docker stop emotion-mysql 2>/dev/null || true - docker rm emotion-mysql 2>/dev/null || true - - # 删除数据目录 - sudo rm -rf ./data/mysql - - log_info "数据库清理完成" - else - log_info "清理操作已取消" - fi -} - -# 主函数 -main() { - echo "🗄️ 开始初始化情绪博物馆数据库..." - echo "" - - check_docker - start_mysql_container - create_databases - init_emotion_database - init_nacos_database - verify_database - show_database_info - - echo "" - log_info "🎉 数据库初始化完成!" -} - -# 处理命令行参数 -case "${1:-}" in - "start") - check_docker - start_mysql_container - show_database_info - ;; - "init") - check_docker - start_mysql_container - create_databases - init_emotion_database - init_nacos_database - verify_database - ;; - "verify") - verify_database - ;; - "clean") - clean_database - ;; - "info") - show_database_info - ;; - *) - main - ;; -esac diff --git a/packages/emotion-museum-1.0.0-20250713_111829/install-environment.sh b/packages/emotion-museum-1.0.0-20250713_111829/install-environment.sh deleted file mode 100755 index 42de94a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/install-environment.sh +++ /dev/null @@ -1,382 +0,0 @@ -#!/bin/bash - -# 情绪博物馆环境安装脚本 -# 作者: EmotionMuseum Team -# 版本: 1.0.0 -# 日期: 2025-07-13 -# 说明: 安装部署所需的基础环境 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 检测操作系统 -detect_os() { - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - if [ -f /etc/redhat-release ]; then - OS="centos" - PKG_MANAGER="yum" - elif [ -f /etc/debian_version ]; then - OS="ubuntu" - PKG_MANAGER="apt" - else - OS="linux" - PKG_MANAGER="unknown" - fi - elif [[ "$OSTYPE" == "darwin"* ]]; then - OS="macos" - PKG_MANAGER="brew" - else - log_error "不支持的操作系统: $OSTYPE" - exit 1 - fi - - log_info "检测到操作系统: $OS" -} - -# 更新系统包管理器 -update_package_manager() { - log_step "更新系统包管理器..." - - case $PKG_MANAGER in - "yum") - sudo yum update -y - sudo yum install -y wget curl git unzip - ;; - "apt") - sudo apt update - sudo apt upgrade -y - sudo apt install -y wget curl git unzip software-properties-common - ;; - "brew") - if ! command -v brew &> /dev/null; then - log_info "安装Homebrew..." - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - fi - brew update - ;; - *) - log_error "不支持的包管理器: $PKG_MANAGER" - exit 1 - ;; - esac - - log_info "系统包管理器更新完成" -} - -# 安装Java 17 -install_java() { - log_step "安装Java 17..." - - if command -v java &> /dev/null; then - JAVA_VERSION=$(java -version 2>&1 | head -n1 | cut -d'"' -f2 | cut -d'.' -f1) - if [ "$JAVA_VERSION" = "17" ]; then - log_info "Java 17已安装" - return - else - log_warn "检测到Java版本: $JAVA_VERSION,将安装Java 17" - fi - fi - - case $PKG_MANAGER in - "yum") - sudo yum install -y java-17-openjdk java-17-openjdk-devel - ;; - "apt") - sudo apt install -y openjdk-17-jdk openjdk-17-jre - ;; - "brew") - brew install openjdk@17 - echo 'export PATH="/opt/homebrew/opt/openjdk@17/bin:$PATH"' >> ~/.zshrc - ;; - esac - - # 设置JAVA_HOME - JAVA_HOME_PATH=$(dirname $(dirname $(readlink -f $(which java)))) - echo "export JAVA_HOME=$JAVA_HOME_PATH" >> ~/.bashrc - echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> ~/.bashrc - - if [ "$OS" = "macos" ]; then - echo "export JAVA_HOME=$JAVA_HOME_PATH" >> ~/.zshrc - echo "export PATH=\$JAVA_HOME/bin:\$PATH" >> ~/.zshrc - fi - - log_info "Java 17安装完成" -} - -# 安装Maven -install_maven() { - log_step "安装Maven..." - - if command -v mvn &> /dev/null; then - MVN_VERSION=$(mvn -version | head -n1 | cut -d' ' -f3) - log_info "Maven已安装,版本: $MVN_VERSION" - return - fi - - MAVEN_VERSION="3.9.6" - MAVEN_URL="https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz" - - cd /tmp - wget $MAVEN_URL - sudo tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C /opt/ - sudo ln -sf /opt/apache-maven-${MAVEN_VERSION} /opt/maven - - echo "export MAVEN_HOME=/opt/maven" >> ~/.bashrc - echo "export PATH=\$MAVEN_HOME/bin:\$PATH" >> ~/.bashrc - - if [ "$OS" = "macos" ]; then - echo "export MAVEN_HOME=/opt/maven" >> ~/.zshrc - echo "export PATH=\$MAVEN_HOME/bin:\$PATH" >> ~/.zshrc - fi - - log_info "Maven安装完成" -} - -# 安装Node.js和npm -install_nodejs() { - log_step "安装Node.js和npm..." - - if command -v node &> /dev/null; then - NODE_VERSION=$(node -v) - log_info "Node.js已安装,版本: $NODE_VERSION" - if command -v npm &> /dev/null; then - NPM_VERSION=$(npm -v) - log_info "npm已安装,版本: $NPM_VERSION" - return - fi - fi - - # 使用NodeSource安装最新LTS版本 - case $PKG_MANAGER in - "yum") - curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash - - sudo yum install -y nodejs - ;; - "apt") - curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - - sudo apt-get install -y nodejs - ;; - "brew") - brew install node - ;; - esac - - # 配置npm镜像源 - npm config set registry https://registry.npmmirror.com - - log_info "Node.js和npm安装完成" -} - -# 安装Docker -install_docker() { - log_step "安装Docker..." - - if command -v docker &> /dev/null; then - DOCKER_VERSION=$(docker --version | cut -d' ' -f3 | cut -d',' -f1) - log_info "Docker已安装,版本: $DOCKER_VERSION" - else - case $PKG_MANAGER in - "yum") - sudo yum install -y yum-utils - sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo - sudo yum install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - ;; - "apt") - sudo apt-get remove docker docker-engine docker.io containerd runc || true - sudo apt-get install -y ca-certificates curl gnupg lsb-release - sudo mkdir -p /etc/apt/keyrings - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg - echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update - sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - ;; - "brew") - log_info "请手动安装Docker Desktop for Mac" - log_info "下载地址: https://www.docker.com/products/docker-desktop" - return - ;; - esac - - log_info "Docker安装完成" - fi - - # 启动Docker服务 - if [ "$OS" != "macos" ]; then - sudo systemctl start docker - sudo systemctl enable docker - - # 将当前用户添加到docker组 - sudo usermod -aG docker $USER - log_warn "请重新登录以使docker组权限生效" - fi -} - -# 安装Docker Compose -install_docker_compose() { - log_step "安装Docker Compose..." - - if command -v docker-compose &> /dev/null; then - COMPOSE_VERSION=$(docker-compose --version | cut -d' ' -f3 | cut -d',' -f1) - log_info "Docker Compose已安装,版本: $COMPOSE_VERSION" - return - fi - - # 安装最新版本的Docker Compose - COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | grep 'tag_name' | cut -d'"' -f4) - sudo curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose - - log_info "Docker Compose安装完成" -} - -# 配置系统优化 -configure_system() { - log_step "配置系统优化..." - - if [ "$OS" != "macos" ]; then - # 增加文件描述符限制 - echo "* soft nofile 65536" | sudo tee -a /etc/security/limits.conf - echo "* hard nofile 65536" | sudo tee -a /etc/security/limits.conf - - # 配置内核参数 - echo "vm.max_map_count=262144" | sudo tee -a /etc/sysctl.conf - echo "net.core.somaxconn=65535" | sudo tee -a /etc/sysctl.conf - - sudo sysctl -p - fi - - log_info "系统优化配置完成" -} - -# 验证安装 -verify_installation() { - log_step "验证安装结果..." - - echo "" - echo "=== 环境验证结果 ===" - - # 验证Java - if command -v java &> /dev/null; then - JAVA_VERSION=$(java -version 2>&1 | head -n1) - log_info "✅ Java: $JAVA_VERSION" - else - log_error "❌ Java未安装" - fi - - # 验证Maven - if command -v mvn &> /dev/null; then - MVN_VERSION=$(mvn -version | head -n1) - log_info "✅ Maven: $MVN_VERSION" - else - log_error "❌ Maven未安装" - fi - - # 验证Node.js - if command -v node &> /dev/null; then - NODE_VERSION=$(node -v) - log_info "✅ Node.js: $NODE_VERSION" - else - log_error "❌ Node.js未安装" - fi - - # 验证npm - if command -v npm &> /dev/null; then - NPM_VERSION=$(npm -v) - log_info "✅ npm: $NPM_VERSION" - else - log_error "❌ npm未安装" - fi - - # 验证Docker - if command -v docker &> /dev/null; then - DOCKER_VERSION=$(docker --version) - log_info "✅ Docker: $DOCKER_VERSION" - else - log_error "❌ Docker未安装" - fi - - # 验证Docker Compose - if command -v docker-compose &> /dev/null; then - COMPOSE_VERSION=$(docker-compose --version) - log_info "✅ Docker Compose: $COMPOSE_VERSION" - else - log_error "❌ Docker Compose未安装" - fi - - echo "" - log_info "环境验证完成" -} - -# 主函数 -main() { - echo "🚀 开始安装情绪博物馆部署环境..." - echo "" - - detect_os - update_package_manager - install_java - install_maven - install_nodejs - install_docker - install_docker_compose - configure_system - verify_installation - - echo "" - log_info "🎉 环境安装完成!" - log_warn "请重新登录或执行 'source ~/.bashrc' 以使环境变量生效" - - if [ "$OS" = "macos" ]; then - log_warn "macOS用户请执行 'source ~/.zshrc' 以使环境变量生效" - fi -} - -# 处理命令行参数 -case "${1:-}" in - "java") - detect_os - install_java - ;; - "maven") - detect_os - install_maven - ;; - "node") - detect_os - install_nodejs - ;; - "docker") - detect_os - install_docker - install_docker_compose - ;; - "verify") - verify_installation - ;; - *) - main - ;; -esac diff --git a/packages/emotion-museum-1.0.0-20250713_111829/manage.sh b/packages/emotion-museum-1.0.0-20250713_111829/manage.sh deleted file mode 100755 index fa3f1a5..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829/manage.sh +++ /dev/null @@ -1,412 +0,0 @@ -#!/bin/bash - -# 情绪博物馆管理脚本 -# 提供服务管理、监控、备份等功能 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆管理脚本" - echo "" - echo "用法: $0 [命令] [选项]" - echo "" - echo "命令:" - echo " start 启动所有服务" - echo " stop 停止所有服务" - echo " restart 重启所有服务" - echo " status 查看服务状态" - echo " logs 查看服务日志" - echo " backup 备份数据" - echo " restore 恢复数据" - echo " update 更新服务" - echo " clean 清理资源" - echo " monitor 监控服务" - echo " health 健康检查" - echo "" - echo "选项:" - echo " -f, --follow 跟踪日志输出" - echo " -s, --service 指定服务名称" - echo " -h, --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 start # 启动所有服务" - echo " $0 logs -f # 跟踪所有服务日志" - echo " $0 logs -s gateway # 查看网关服务日志" - echo " $0 restart -s ai-service # 重启AI服务" - echo "" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml up -d - else - docker-compose up -d - fi - - log_info "服务启动完成" - sleep 5 - show_status -} - -# 停止服务 -stop_services() { - log_step "停止服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml down - else - docker-compose down - fi - - log_info "服务停止完成" -} - -# 重启服务 -restart_services() { - local service_name=${1:-} - - if [ -n "$service_name" ]; then - log_step "重启服务: $service_name" - docker-compose restart "$service_name" - else - log_step "重启所有服务..." - stop_services - sleep 3 - start_services - fi -} - -# 查看服务状态 -show_status() { - log_step "服务状态:" - echo "" - docker-compose ps - echo "" - - # 显示资源使用情况 - log_step "资源使用情况:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" -} - -# 查看日志 -show_logs() { - local follow_flag="" - local service_name="" - - # 解析参数 - while [[ $# -gt 0 ]]; do - case $1 in - -f|--follow) - follow_flag="-f" - shift - ;; - -s|--service) - service_name="$2" - shift 2 - ;; - *) - service_name="$1" - shift - ;; - esac - done - - if [ -n "$service_name" ]; then - log_info "查看服务日志: $service_name" - docker-compose logs $follow_flag "$service_name" - else - log_info "查看所有服务日志" - docker-compose logs $follow_flag - fi -} - -# 备份数据 -backup_data() { - local backup_dir="backups/$(date +%Y%m%d_%H%M%S)" - - log_step "开始数据备份..." - mkdir -p "$backup_dir" - - # 备份MySQL数据 - log_info "备份MySQL数据..." - docker-compose exec -T mysql mysqldump -u root -p123456 --all-databases > "$backup_dir/mysql_backup.sql" - - # 备份Redis数据 - log_info "备份Redis数据..." - docker-compose exec -T redis redis-cli BGSAVE - docker cp $(docker-compose ps -q redis):/data/dump.rdb "$backup_dir/redis_backup.rdb" - - # 备份配置文件 - log_info "备份配置文件..." - cp -r deploy "$backup_dir/" - cp docker-compose*.yml "$backup_dir/" - cp .env "$backup_dir/" 2>/dev/null || true - - # 压缩备份 - tar -czf "$backup_dir.tar.gz" -C backups "$(basename $backup_dir)" - rm -rf "$backup_dir" - - log_info "备份完成: $backup_dir.tar.gz" -} - -# 恢复数据 -restore_data() { - local backup_file="$1" - - if [ -z "$backup_file" ]; then - log_error "请指定备份文件" - echo "用法: $0 restore " - exit 1 - fi - - if [ ! -f "$backup_file" ]; then - log_error "备份文件不存在: $backup_file" - exit 1 - fi - - log_step "开始数据恢复..." - log_warn "此操作将覆盖现有数据,请确认后继续" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ ! $REPLY =~ ^[Yy]$ ]]; then - log_info "恢复操作已取消" - exit 0 - fi - - # 解压备份文件 - local restore_dir="restore_$(date +%Y%m%d_%H%M%S)" - mkdir -p "$restore_dir" - tar -xzf "$backup_file" -C "$restore_dir" - - # 恢复MySQL数据 - log_info "恢复MySQL数据..." - docker-compose exec -T mysql mysql -u root -p123456 < "$restore_dir"/*/mysql_backup.sql - - # 恢复Redis数据 - log_info "恢复Redis数据..." - docker-compose stop redis - docker cp "$restore_dir"/*/redis_backup.rdb $(docker-compose ps -q redis):/data/dump.rdb - docker-compose start redis - - # 清理临时文件 - rm -rf "$restore_dir" - - log_info "数据恢复完成" -} - -# 更新服务 -update_services() { - log_step "更新服务..." - - # 拉取最新代码 - if [ -d ".git" ]; then - log_info "拉取最新代码..." - git pull - fi - - # 重新构建镜像 - log_info "重新构建镜像..." - docker-compose build --no-cache - - # 重启服务 - log_info "重启服务..." - restart_services - - log_info "服务更新完成" -} - -# 清理资源 -clean_resources() { - log_step "清理Docker资源..." - - log_warn "此操作将清理未使用的Docker资源" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ $REPLY =~ ^[Yy]$ ]]; then - # 清理未使用的镜像 - docker image prune -f - - # 清理未使用的容器 - docker container prune -f - - # 清理未使用的网络 - docker network prune -f - - # 清理未使用的卷(谨慎使用) - # docker volume prune -f - - log_info "资源清理完成" - else - log_info "清理操作已取消" - fi -} - -# 监控服务 -monitor_services() { - log_step "服务监控面板" - echo "" - - while true; do - clear - echo "=== 情绪博物馆服务监控 ===" - echo "时间: $(date)" - echo "" - - # 显示服务状态 - echo "📊 服务状态:" - docker-compose ps - echo "" - - # 显示资源使用 - echo "💻 资源使用:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" - echo "" - - # 显示磁盘使用 - echo "💾 磁盘使用:" - df -h | grep -E "(Filesystem|/dev/)" - echo "" - - echo "按 Ctrl+C 退出监控" - sleep 5 - done -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - local all_healthy=true - - # 检查MySQL - if docker-compose exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_error "❌ MySQL服务异常" - all_healthy=false - fi - - # 检查Redis - if docker-compose exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_error "❌ Redis服务异常" - all_healthy=false - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_error "❌ Nacos服务异常" - all_healthy=false - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_error "❌ 网关服务异常" - all_healthy=false - fi - - # 检查AI服务 - if curl -s http://localhost:9002/actuator/health &> /dev/null; then - log_info "✅ AI服务正常" - else - log_error "❌ AI服务异常" - all_healthy=false - fi - - # 检查前端 - if curl -s http://localhost:80/health &> /dev/null; then - log_info "✅ 前端服务正常" - else - log_error "❌ 前端服务异常" - all_healthy=false - fi - - if $all_healthy; then - log_info "🎉 所有服务健康检查通过" - else - log_warn "⚠️ 部分服务存在问题,请检查日志" - fi -} - -# 主函数 -main() { - case "${1:-}" in - "start") - start_services - ;; - "stop") - stop_services - ;; - "restart") - shift - restart_services "$@" - ;; - "status") - show_status - ;; - "logs") - shift - show_logs "$@" - ;; - "backup") - backup_data - ;; - "restore") - restore_data "$2" - ;; - "update") - update_services - ;; - "clean") - clean_resources - ;; - "monitor") - monitor_services - ;; - "health") - health_check - ;; - "-h"|"--help"|"help") - show_help - ;; - *) - show_help - ;; - esac -} - -main "$@" diff --git a/packages/emotion-museum-1.0.0-20250713_111829_REPORT.txt b/packages/emotion-museum-1.0.0-20250713_111829_REPORT.txt deleted file mode 100644 index 02f0fe0..0000000 --- a/packages/emotion-museum-1.0.0-20250713_111829_REPORT.txt +++ /dev/null @@ -1,43 +0,0 @@ -情绪博物馆部署包报告 -================== - -构建信息: -- 包名称: emotion-museum-1.0.0-20250713_111829.tar.gz -- 构建时间: 20250713_111829 -- 构建环境: Darwin x86_64 - -包内容: -- 前端构建产物 ✓ -- 后端JAR文件 ✓ -- 数据库脚本 ✓ -- 部署配置 ✓ -- Docker配置 ✓ -- 管理脚本 ✓ -- 说明文档 ✓ - -文件信息: -- 压缩包大小: 680K -- SHA256校验: 900d585f575b1619e74296496e2fe22f2c2e71b6ad8901d7cab82634765cc10d - -部署要求: -- Docker 20.10+ -- Docker Compose 1.29+ -- 内存: 4GB+ -- 磁盘: 10GB+ - -快速部署: -1. 解压: tar -xzf emotion-museum-1.0.0-20250713_111829.tar.gz -2. 进入: cd emotion-museum-1.0.0-20250713_111829 -3. 配置: vim .env -4. 部署: ./quick-deploy.sh - -注意事项: -- 请配置正确的Coze API Token -- 生产环境请修改默认密码 -- 建议配置HTTPS证书 -- 确保防火墙开放必要端口 - -技术支持: -- 详细文档: DEPLOY.md -- 快速指南: QUICK_START.md -- 管理命令: ./manage.sh --help diff --git a/packages/emotion-museum-1.0.0-20250713_123404.sha256 b/packages/emotion-museum-1.0.0-20250713_123404.sha256 deleted file mode 100644 index 9ea7348..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404.sha256 +++ /dev/null @@ -1 +0,0 @@ -f6fa31c425fbddaea30972db6425265cdad49761236d7a58fcb0fa001baea417 emotion-museum-1.0.0-20250713_123404.tar.gz diff --git a/packages/emotion-museum-1.0.0-20250713_123404.tar.gz b/packages/emotion-museum-1.0.0-20250713_123404.tar.gz deleted file mode 100644 index ea35b58..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_123404.tar.gz and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_123404/DEPLOY.md b/packages/emotion-museum-1.0.0-20250713_123404/DEPLOY.md deleted file mode 100644 index 8aa403a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/DEPLOY.md +++ /dev/null @@ -1,313 +0,0 @@ -# 情绪博物馆容器部署指南 - -## 📋 概述 - -本文档提供了情绪博物馆项目的完整容器化部署方案,支持开发环境和生产环境的快速部署。 - -## 🏗️ 架构说明 - -### 服务组件 -- **前端应用** (Vue3 + Ant Design) - 端口: 80/3000 -- **API网关** (Spring Cloud Gateway) - 端口: 9000 -- **AI服务** (Spring Boot + Coze API) - 端口: 9002 -- **用户服务** (Spring Boot) - 端口: 9001 -- **MySQL数据库** - 端口: 3306 -- **Redis缓存** - 端口: 6379 -- **Nacos注册中心** - 端口: 8848 -- **Nginx反向代理** - 端口: 80/443 - -### 网络架构 -``` -Internet → Nginx → Frontend/Gateway → Microservices → Database -``` - -## 🚀 快速开始 - -### 1. 系统要求 -- **操作系统**: Linux/macOS/Windows -- **Docker**: 20.10+ -- **Docker Compose**: 1.29+ -- **内存**: 最少4GB,推荐8GB+ -- **磁盘**: 最少10GB可用空间 - -### 2. 一键部署 -```bash -# 克隆项目 -git clone -cd EmotionMuseum - -# 快速部署(自动安装依赖) -chmod +x quick-deploy.sh -./quick-deploy.sh - -# 或者手动部署 -chmod +x deploy.sh -./deploy.sh -``` - -### 3. 访问应用 -- **前端应用**: http://localhost -- **API文档**: http://localhost:9000/doc.html -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) - -## 📁 文件结构 - -``` -EmotionMuseum/ -├── docker-compose.yml # 开发环境配置 -├── docker-compose.prod.yml # 生产环境配置 -├── deploy.sh # 部署脚本 -├── quick-deploy.sh # 快速部署脚本 -├── manage.sh # 管理脚本 -├── .env # 环境变量 -├── deploy/ # 部署配置 -│ ├── nginx/ # Nginx配置 -│ │ ├── nginx.conf -│ │ ├── conf.d/ -│ │ └── ssl/ -│ ├── mysql/ # MySQL配置 -│ └── redis/ # Redis配置 -├── backend/ # 后端服务 -│ ├── emotion-gateway/ -│ │ └── Dockerfile -│ ├── emotion-ai/ -│ │ └── Dockerfile -│ └── emotion-user/ -│ └── Dockerfile -└── web/ # 前端应用 - ├── Dockerfile - └── nginx.conf -``` - -## ⚙️ 配置说明 - -### 环境变量配置 -编辑 `.env` 文件: -```bash -# 数据库配置 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_DATABASE=emotion_museum -MYSQL_USER=emotion -MYSQL_PASSWORD=emotion123 - -# Coze API配置 -COZE_API_TOKEN=your-coze-api-token - -# 时区设置 -TZ=Asia/Shanghai -``` - -### Nginx配置 -- **主配置**: `deploy/nginx/nginx.conf` -- **站点配置**: `deploy/nginx/conf.d/emotion-museum.conf` -- **SSL证书**: `deploy/nginx/ssl/` - -### 数据库配置 -- **MySQL配置**: `deploy/mysql/conf.d/my.cnf` -- **初始化脚本**: `backend/mysql_emotion_museum_final.sql` - -## 🛠️ 管理命令 - -### 基础操作 -```bash -# 启动所有服务 -./manage.sh start - -# 停止所有服务 -./manage.sh stop - -# 重启所有服务 -./manage.sh restart - -# 查看服务状态 -./manage.sh status -``` - -### 日志管理 -```bash -# 查看所有服务日志 -./manage.sh logs - -# 跟踪日志输出 -./manage.sh logs -f - -# 查看特定服务日志 -./manage.sh logs -s gateway -./manage.sh logs -s ai-service -``` - -### 服务管理 -```bash -# 重启特定服务 -./manage.sh restart gateway -./manage.sh restart ai-service - -# 健康检查 -./manage.sh health - -# 监控面板 -./manage.sh monitor -``` - -### 数据管理 -```bash -# 备份数据 -./manage.sh backup - -# 恢复数据 -./manage.sh restore backup_file.tar.gz - -# 更新服务 -./manage.sh update - -# 清理资源 -./manage.sh clean -``` - -## 🔧 生产环境部署 - -### 1. 使用生产配置 -```bash -# 使用生产环境配置文件 -docker-compose -f docker-compose.prod.yml up -d -``` - -### 2. SSL证书配置 -```bash -# 放置SSL证书 -cp your-domain.crt deploy/nginx/ssl/emotion-museum.crt -cp your-domain.key deploy/nginx/ssl/emotion-museum.key - -# 修改Nginx配置启用HTTPS -vim deploy/nginx/conf.d/emotion-museum.conf -``` - -### 3. 域名配置 -修改 `deploy/nginx/conf.d/emotion-museum.conf`: -```nginx -server_name your-domain.com www.your-domain.com; -``` - -### 4. 防火墙配置 -```bash -# Ubuntu/Debian -sudo ufw allow 80/tcp -sudo ufw allow 443/tcp - -# CentOS/RHEL -sudo firewall-cmd --permanent --add-port=80/tcp -sudo firewall-cmd --permanent --add-port=443/tcp -sudo firewall-cmd --reload -``` - -## 📊 监控和维护 - -### 服务监控 -```bash -# 实时监控 -./manage.sh monitor - -# 资源使用情况 -docker stats - -# 服务状态 -docker-compose ps -``` - -### 日志查看 -```bash -# 应用日志 -./manage.sh logs -f - -# 系统日志 -tail -f logs/nginx/access.log -tail -f logs/mysql/error.log -``` - -### 性能优化 -1. **数据库优化**: 调整 `deploy/mysql/conf.d/my.cnf` -2. **Redis优化**: 调整 `deploy/redis/redis.conf` -3. **Nginx优化**: 调整 `deploy/nginx/nginx.conf` -4. **JVM优化**: 修改Dockerfile中的JVM参数 - -## 🔒 安全配置 - -### 1. 数据库安全 -- 修改默认密码 -- 限制访问IP -- 启用SSL连接 - -### 2. Redis安全 -- 设置密码认证 -- 绑定特定IP -- 禁用危险命令 - -### 3. Nginx安全 -- 启用HTTPS -- 配置安全头 -- 限制请求频率 - -### 4. 应用安全 -- 配置JWT密钥 -- 启用CORS限制 -- 设置API限流 - -## 🚨 故障排除 - -### 常见问题 - -#### 1. 服务启动失败 -```bash -# 查看服务日志 -./manage.sh logs -s service-name - -# 检查端口占用 -netstat -tlnp | grep :port - -# 重启服务 -./manage.sh restart service-name -``` - -#### 2. 数据库连接失败 -```bash -# 检查MySQL状态 -docker-compose exec mysql mysqladmin ping -u root -p - -# 查看数据库日志 -./manage.sh logs -s mysql -``` - -#### 3. 前端访问异常 -```bash -# 检查Nginx配置 -nginx -t - -# 查看Nginx日志 -./manage.sh logs -s nginx -``` - -#### 4. API调用失败 -```bash -# 检查网关状态 -curl http://localhost:9000/actuator/health - -# 查看网关日志 -./manage.sh logs -s gateway -``` - -### 性能问题 -1. **内存不足**: 增加服务器内存或调整JVM参数 -2. **磁盘空间**: 清理日志文件和Docker镜像 -3. **网络延迟**: 检查服务间网络连接 - -## 📞 技术支持 - -如遇到问题,请: -1. 查看相关服务日志 -2. 检查配置文件 -3. 参考故障排除指南 -4. 联系技术支持团队 - ---- - -**部署完成后,请及时修改默认密码和配置文件中的敏感信息!** diff --git a/packages/emotion-museum-1.0.0-20250713_123404/QUICK_START.md b/packages/emotion-museum-1.0.0-20250713_123404/QUICK_START.md deleted file mode 100644 index 9489b27..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/QUICK_START.md +++ /dev/null @@ -1,283 +0,0 @@ -# 情绪博物馆测试环境快速部署指南 - -## 📦 包内容说明 - -``` -emotion-museum-1.0.0-YYYYMMDD_HHMMSS/ -├── frontend/ # 前端构建产物 -│ ├── assets/ # 静态资源 -│ ├── index.html # 主页面 -│ ├── Dockerfile # 前端容器配置 -│ ├── nginx.conf # Nginx配置 -│ └── config/ # 前端配置 -├── backend/ # 后端JAR文件 -│ ├── emotion-gateway-*.jar # 网关服务 -│ ├── emotion-ai-*.jar # AI服务 -│ ├── emotion-user-*.jar # 用户服务 -│ ├── config/ # 配置文件 -│ │ ├── application-test.yml -│ │ ├── gateway-test.yml -│ │ └── ai-test.yml -│ ├── gateway-Dockerfile # 网关容器配置 -│ ├── ai-Dockerfile # AI服务容器配置 -│ └── user-Dockerfile # 用户服务容器配置 -├── database/ # 数据库脚本 -│ ├── mysql_emotion_museum_final.sql -│ └── verify-database-script.sql -├── deploy/ # 部署配置 -│ ├── nginx/conf.d/ # Nginx配置 -│ ├── mysql/conf.d/ # MySQL配置 -│ └── redis/ # Redis配置 -├── docker-compose.yml # 默认配置 -├── docker-compose.test.yml # 测试环境配置 -├── deploy.sh # 主部署脚本 -├── install-environment.sh # 环境安装脚本 -├── init-database.sh # 数据库初始化脚本 -├── manage.sh # 管理脚本(兼容) -├── .env.test # 测试环境变量 -├── README.md # 快速开始指南 -├── VERSION.txt # 版本信息 -├── DEPLOY.md # 详细部署文档 -└── QUICK_START.md # 本文件 -``` - -## 🚀 快速部署步骤 - -### 1. 系统要求 -- **操作系统**: Linux/macOS (推荐 Ubuntu 20.04+) -- **内存**: 最少4GB,推荐8GB+ -- **磁盘**: 最少20GB可用空间 -- **网络**: 能够访问互联网 - -### 2. 部署步骤 - -#### 方式一:一键部署(推荐) -```bash -# 1. 解压部署包 -tar -xzf emotion-museum-*.tar.gz -cd emotion-museum-* - -# 2. 配置环境变量(重要) -vim .env.test -# 修改 SERVER_IP 为实际IP -# 配置 COZE_API_TOKEN - -# 3. 一键部署(包含环境安装、数据库初始化、服务部署) -chmod +x deploy.sh -./deploy.sh -``` - -#### 方式二:分步部署 -```bash -# 1. 解压部署包 -tar -xzf emotion-museum-*.tar.gz -cd emotion-museum-* - -# 2. 配置环境变量 -vim .env.test - -# 3. 分步部署 -chmod +x deploy.sh -./deploy.sh install-env # 安装环境 -./deploy.sh init-db # 初始化数据库 -./deploy.sh build # 构建镜像 -./deploy.sh start # 启动服务 -``` - -#### 方式三:跳过某些步骤 -```bash -# 如果已安装环境,跳过环境安装 -./deploy.sh --skip-env - -# 如果已初始化数据库,跳过数据库初始化 -./deploy.sh --skip-db - -# 启用调试模式 -./deploy.sh --debug -``` - -### 3. 验证部署 -```bash -# 查看服务状态 -./deploy.sh status - -# 健康检查 -./deploy.sh health - -# 查看日志 -./deploy.sh logs -``` - -### 4. 访问应用 -- **前端应用**: http://localhost (或 http://your-server-ip) -- **API网关**: http://localhost:9000 -- **Nacos控制台**: http://localhost:8848/nacos (nacos/nacos) - -## ⚙️ 配置说明 - -### 必须配置项 -编辑 `.env.test` 文件中的以下配置: - -```bash -# 服务器IP(重要:修改为实际IP) -SERVER_IP=your-server-ip - -# Coze API配置(必须) -COZE_API_TOKEN=your-actual-coze-api-token - -# 数据库密码(建议修改) -MYSQL_ROOT_PASSWORD=your-secure-password -MYSQL_PASSWORD=your-secure-password - -# JWT密钥(建议修改) -JWT_SECRET=your-production-jwt-secret-key -``` - -### 可选配置项 -```bash -# 时区设置 -TZ=Asia/Shanghai - -# 端口配置 -GATEWAY_PORT=9000 -USER_SERVICE_PORT=9001 -AI_SERVICE_PORT=9002 - -# 日志和存储路径 -LOG_PATH=/data/logs/emotion-museum -UPLOAD_PATH=/data/uploads/emotion-museum -``` - -## 🛠️ 管理命令 - -```bash -# 主要部署命令 -./deploy.sh # 完整部署 -./deploy.sh start # 启动服务 -./deploy.sh stop # 停止服务 -./deploy.sh restart # 重启服务 -./deploy.sh status # 查看状态 - -# 日志管理 -./deploy.sh logs # 查看所有日志 -./deploy.sh logs -f # 跟踪日志 -./deploy.sh logs gateway # 查看网关日志 -./deploy.sh logs ai-service # 查看AI服务日志 - -# 数据管理 -./deploy.sh backup # 备份数据 -./deploy.sh health # 健康检查 -./deploy.sh clean # 清理资源 - -# 独立脚本 -./install-environment.sh # 安装环境 -./init-database.sh # 初始化数据库 - -# 兼容命令(旧版本) -./manage.sh start # 启动服务 -./manage.sh status # 查看状态 -``` - -## 🔧 生产环境配置 - -### 1. 使用生产配置 -```bash -# 使用生产环境配置 -docker-compose -f docker-compose.prod.yml up -d -``` - -### 2. 配置HTTPS -```bash -# 1. 放置SSL证书 -cp your-domain.crt deploy/nginx/ssl/emotion-museum.crt -cp your-domain.key deploy/nginx/ssl/emotion-museum.key - -# 2. 修改Nginx配置 -vim deploy/nginx/conf.d/emotion-museum.conf -# 取消HTTPS相关配置的注释 - -# 3. 重启Nginx -docker-compose restart nginx -``` - -### 3. 配置域名 -```bash -# 修改Nginx配置中的域名 -vim deploy/nginx/conf.d/emotion-museum.conf -# 将 localhost 替换为您的域名 -``` - -## 🚨 故障排除 - -### 常见问题 - -1. **环境安装失败** - ```bash - # 检查系统要求 - ./install-environment.sh verify - - # 手动安装特定组件 - ./install-environment.sh docker - ``` - -2. **端口冲突** - ```bash - # 检查端口占用 - netstat -tlnp | grep :80 - netstat -tlnp | grep :3306 - - # 修改 .env.test 中的端口配置 - ``` - -3. **数据库初始化失败** - ```bash - # 查看MySQL容器日志 - docker logs emotion-mysql - - # 重新初始化 - ./init-database.sh clean - ./init-database.sh - ``` - -4. **服务启动失败** - ```bash - # 查看服务日志 - ./deploy.sh logs service-name - - # 查看容器状态 - docker ps -a - ``` - -5. **网络连接问题** - ```bash - # 检查Docker网络 - docker network ls - - # 健康检查 - ./deploy.sh health - ``` - -### 获取帮助 -- 查看详细文档: `cat DEPLOY.md` -- 查看快速指南: `cat README.md` -- 查看版本信息: `cat VERSION.txt` -- 查看部署命令: `./deploy.sh --help` - -## 📞 技术支持 - -如遇到问题,请按以下步骤排查: - -1. **查看详细日志**:`./deploy.sh logs --debug` -2. **检查服务状态**:`./deploy.sh status` -3. **验证配置文件**:检查 `.env.test` 配置 -4. **查看详细文档**:`DEPLOY.md` -5. **重新部署**:`./deploy.sh clean && ./deploy.sh` - -## 📝 重要提醒 - -- ⚠️ **首次部署**:请务必修改 `.env.test` 中的 `SERVER_IP` 和 `COZE_API_TOKEN` -- ⚠️ **生产环境**:请修改所有默认密码和密钥 -- ⚠️ **防火墙**:确保开放必要的端口 (80, 3306, 6379, 8848, 9000-9002) - ---- -**部署完成后,请及时修改默认密码和敏感配置!** diff --git a/packages/emotion-museum-1.0.0-20250713_123404/VERSION.txt b/packages/emotion-museum-1.0.0-20250713_123404/VERSION.txt deleted file mode 100644 index 9e656c3..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/VERSION.txt +++ /dev/null @@ -1,29 +0,0 @@ -情绪博物馆 - 版本信息 -======================== - -项目名称: emotion-museum -版本号: 1.0.0 -构建时间: 20250713_123404 -构建环境: Darwin x86_64 - -前端信息: -- Node.js: v16.20.2 -- npm: 8.19.4 - -后端信息: -- Java: java 20 2023-03-21 -- Maven: Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) - -Git信息: -- 分支: main -- 提交: ec81706 -- 时间: Mon May 26 20:04:17 2025 +0800 - -文件清单: -- 前端构建产物: frontend/ -- 后端JAR文件: backend/ -- 数据库脚本: database/ -- 部署配置: deploy/ -- Docker配置: docker-compose*.yml -- 部署脚本: *.sh -- 说明文档: *.md diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/ai-Dockerfile b/packages/emotion-museum-1.0.0-20250713_123404/backend/ai-Dockerfile deleted file mode 100644 index 03346c0..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/backend/ai-Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -# AI服务Dockerfile -FROM openjdk:17-jdk-alpine - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制Maven构建文件 -COPY pom.xml ./ -COPY emotion-common ./emotion-common -COPY emotion-ai ./emotion-ai - -# 安装Maven -RUN apk add --no-cache maven - -# 构建应用 -RUN mvn clean package -DskipTests -pl emotion-ai -am - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 复制jar文件 -RUN cp emotion-ai/target/emotion-ai-*.jar app.jar - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9002/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9002 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms512m", "-Xmx1024m", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=docker", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application-docker.yml b/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application-docker.yml deleted file mode 100644 index 640b552..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application-docker.yml +++ /dev/null @@ -1,80 +0,0 @@ -# 用户服务 Docker环境配置 -server: - port: 9001 - -spring: - application: - name: emotion-user - profiles: - active: docker - cloud: - nacos: - discovery: - server-addr: ${NACOS_SERVER_ADDR:nacos:8848} - namespace: public - group: DEFAULT_GROUP - config: - server-addr: ${NACOS_SERVER_ADDR:nacos:8848} - file-extension: yml - namespace: public - group: DEFAULT_GROUP - datasource: - url: jdbc:mysql://${MYSQL_HOST:mysql}:${MYSQL_PORT:3306}/emotion_museum?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowPublicKeyRetrieval=true - username: root - password: 123456 - driver-class-name: com.mysql.cj.jdbc.Driver - hikari: - pool-name: EmotionUserHikariCP - minimum-idle: 5 - maximum-pool-size: 20 - auto-commit: true - idle-timeout: 30000 - max-lifetime: 1800000 - connection-timeout: 30000 - data: - redis: - host: ${REDIS_HOST:redis} - port: ${REDIS_PORT:6379} - password: - database: 2 - timeout: 6000ms - lettuce: - pool: - max-active: 8 - max-wait: -1ms - max-idle: 8 - min-idle: 0 - -# MyBatis Plus配置 -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - cache-enabled: false - call-setters-on-nulls: true - jdbc-type-for-null: 'null' - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: isDeleted - logic-delete-value: 1 - logic-not-delete-value: 0 - banner: false - -# 日志配置 -logging: - level: - com.emotionmuseum: DEBUG - com.emotionmuseum.user.mapper: DEBUG - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n" - -# 管理端点 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus - endpoint: - health: - show-details: always diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application.yml b/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application.yml deleted file mode 100644 index 0c4894c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/backend/config/application.yml +++ /dev/null @@ -1,79 +0,0 @@ -server: - port: 9001 - -spring: - application: - name: emotion-user - profiles: - active: dev - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true - username: root - password: 123456 - hikari: - minimum-idle: 5 - maximum-pool-size: 20 - idle-timeout: 600000 - max-lifetime: 1800000 - connection-timeout: 30000 - data: - redis: - host: localhost - port: 6379 - database: 0 - timeout: 3000ms - lettuce: - pool: - max-active: 20 - max-idle: 10 - min-idle: 5 - max-wait: 3000ms - cloud: - nacos: - discovery: - server-addr: localhost:8848 - namespace: emotion-dev - group: DEFAULT_GROUP - enabled: false - config: - enabled: false - -mybatis-plus: - configuration: - map-underscore-to-camel-case: true - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl - global-config: - db-config: - id-type: assign_uuid - logic-delete-field: deleted - logic-delete-value: 1 - logic-not-delete-value: 0 - -# 监控配置 -management: - endpoints: - web: - exposure: - include: health,info,metrics,prometheus - endpoint: - health: - show-details: always - metrics: - export: - prometheus: - enabled: true - -# 日志配置 -logging: - level: - com.emotionmuseum: debug - com.baomidou.mybatisplus: debug - pattern: - console: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level [%logger{50}] - %msg%n" - -# JWT配置 -jwt: - secret: emotion-museum-secret-key-2025 - expiration: 86400 - refresh-expiration: 604800 diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-ai-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-ai-1.0.0.jar deleted file mode 100644 index 441b7a1..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-ai-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-gateway-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-gateway-1.0.0.jar deleted file mode 100644 index 57ad7d1..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-gateway-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-user-1.0.0.jar b/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-user-1.0.0.jar deleted file mode 100644 index 3c2fa94..0000000 Binary files a/packages/emotion-museum-1.0.0-20250713_123404/backend/emotion-user-1.0.0.jar and /dev/null differ diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/gateway-Dockerfile b/packages/emotion-museum-1.0.0-20250713_123404/backend/gateway-Dockerfile deleted file mode 100644 index 44c018a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/backend/gateway-Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -# 网关服务Dockerfile -FROM openjdk:17-jdk-alpine - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制Maven构建文件 -COPY pom.xml ./ -COPY emotion-common ./emotion-common -COPY emotion-gateway ./emotion-gateway - -# 安装Maven -RUN apk add --no-cache maven - -# 构建应用 -RUN mvn clean package -DskipTests -pl emotion-gateway -am - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 复制jar文件 -RUN cp emotion-gateway/target/emotion-gateway-*.jar app.jar - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9000/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9000 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms512m", "-Xmx1024m", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=docker", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_123404/backend/user-Dockerfile b/packages/emotion-museum-1.0.0-20250713_123404/backend/user-Dockerfile deleted file mode 100644 index dcdfd1d..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/backend/user-Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -# 用户服务Dockerfile -FROM openjdk:17-jdk-alpine - -# 设置工作目录 -WORKDIR /app - -# 安装必要的工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制Maven构建文件 -COPY pom.xml ./ -COPY emotion-common ./emotion-common -COPY emotion-user ./emotion-user - -# 安装Maven -RUN apk add --no-cache maven - -# 构建应用 -RUN mvn clean package -DskipTests -pl emotion-user -am - -# 创建运行用户 -RUN addgroup -g 1000 emotion && \ - adduser -D -s /bin/sh -u 1000 -G emotion emotion - -# 复制jar文件 -RUN cp emotion-user/target/emotion-user-*.jar app.jar - -# 设置文件权限 -RUN chown -R emotion:emotion /app - -# 切换到非root用户 -USER emotion - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ - CMD curl -f http://localhost:9001/actuator/health || exit 1 - -# 暴露端口 -EXPOSE 9001 - -# 启动命令 -ENTRYPOINT ["java", "-jar", \ - "-Xms512m", "-Xmx1024m", \ - "-Djava.security.egd=file:/dev/./urandom", \ - "-Dspring.profiles.active=docker", \ - "app.jar"] diff --git a/packages/emotion-museum-1.0.0-20250713_123404/database/mysql_emotion_museum_final.sql b/packages/emotion-museum-1.0.0-20250713_123404/database/mysql_emotion_museum_final.sql deleted file mode 100644 index a7465ba..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/database/mysql_emotion_museum_final.sql +++ /dev/null @@ -1,819 +0,0 @@ --- ============================================================================ --- 情绪博物馆数据库完整部署脚本 --- 版本: v3.0 Final (雪花算法主键版本) - 开发版本 --- 创建时间: 2025-07-13 --- 数据库类型: MySQL 8.0+ --- 说明: 包含完整表结构、索引、初始数据的一体化部署脚本 --- 主键类型: VARCHAR(36) 使用雪花算法生成,避免前端精度丢失问题 --- 关联策略: 不使用外键约束,通过代码中的ID字段关联 --- 特性: 开发阶段 - 先删除表再重新创建,确保表结构是最新的 --- 警告: 此脚本会删除现有表和数据,仅适用于开发环境! --- ============================================================================ --- 设置SQL模式和字符集 -SET - SQL_MODE = 'NO_AUTO_VALUE_ON_ZERO'; - -SET - AUTOCOMMIT = 0; - -START TRANSACTION; - -SET - time_zone = "+00:00"; - --- 创建数据库 -CREATE DATABASE IF NOT EXISTS emotion_museum DEFAULT CHARACTER -SET - utf8mb4 COLLATE utf8mb4_unicode_ci; - -USE emotion_museum; - --- ============================================================================ --- 数据库设计原则 --- ============================================================================ --- 1. 主键策略: 使用VARCHAR(36)雪花算法ID,避免前端精度丢失 --- 2. 关联策略: 不使用外键约束,通过代码中的ID字段维护关联关系 --- 3. 公共字段: 所有表继承BaseEntity的公共字段 --- 4. 索引优化: 为查询频繁的字段创建合适的索引 --- 5. 字符集: 统一使用utf8mb4支持emoji和特殊字符 --- ============================================================================ --- 删除现有表(开发阶段确保表结构最新) --- 警告: 这会删除所有数据! --- ============================================================================ -DROP TABLE IF EXISTS user_stats; - -DROP TABLE IF EXISTS guest_user; - -DROP TABLE IF EXISTS reward; - -DROP TABLE IF EXISTS achievement; - -DROP TABLE IF EXISTS comment; - -DROP TABLE IF EXISTS community_post; - -DROP TABLE IF EXISTS location_pin; - -DROP TABLE IF EXISTS topic_interaction; - -DROP TABLE IF EXISTS growth_topic; - -DROP TABLE IF EXISTS emotion_record; - -DROP TABLE IF EXISTS emotion_analysis; - -DROP TABLE IF EXISTS coze_api_call; - -DROP TABLE IF EXISTS message; - -DROP TABLE IF EXISTS conversation; - -DROP TABLE IF EXISTS user; - --- ============================================================================ --- 1. 用户表 (user) --- ============================================================================ -CREATE TABLE user ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - account VARCHAR(50) NOT NULL UNIQUE, -- 账号 - password VARCHAR(255) NOT NULL, -- 密码(加密后) - username VARCHAR(50) NOT NULL UNIQUE, -- 用户名 - email VARCHAR(100) NOT NULL UNIQUE, -- 邮箱 - phone VARCHAR(20) UNIQUE, -- 手机号 - avatar VARCHAR(500), -- 头像URL - nickname VARCHAR(50) NOT NULL, -- 昵称 - birth_date DATE, -- 生日 - location VARCHAR(100), -- 所在地 - bio TEXT, -- 个人简介 - member_level VARCHAR(20) NOT NULL DEFAULT 'free', -- 会员等级 - total_days INT NOT NULL DEFAULT 0, -- 使用天数 - -- 成长数据 - self_awareness DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 自我感知 - emotional_resilience DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 情绪韧性 - action_power DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 行动力 - empathy DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 共情力 - life_enthusiasm DECIMAL(5, 2) NOT NULL DEFAULT 50.00, -- 生活热度 - -- 状态字段 - status TINYINT NOT NULL DEFAULT 1, -- 状态: 0-禁用, 1-正常 - is_verified TINYINT NOT NULL DEFAULT 0, -- 是否已验证: 0-未验证, 1-已验证 - last_active_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表'; - --- ============================================================================ --- 2. 对话表 (conversation) --- 关联说明: user_id 关联 user.id,通过代码逻辑维护关联关系 --- ============================================================================ -CREATE TABLE conversation ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID (关联user.id) - user_type VARCHAR(20) NOT NULL DEFAULT 'registered', -- 用户类型: registered-注册用户, guest-访客用户 - title VARCHAR(200), -- 对话标题 - type VARCHAR(50) NOT NULL DEFAULT 'emotion_chat', -- 对话类型 - status VARCHAR(20) NOT NULL DEFAULT 'active', -- 状态: active-活跃, ended-结束, archived-归档 - coze_conversation_id VARCHAR(100), -- Coze对话ID - bot_id VARCHAR(50), -- 使用的Bot ID - workflow_id VARCHAR(50), -- 使用的Workflow ID - initial_message TEXT, -- 初始消息 - context TEXT, -- 上下文信息 - primary_emotion VARCHAR(50), -- 主要情绪 - emotion_intensity DECIMAL(3, 2), -- 情绪强度 - emotion_trend VARCHAR(50), -- 情绪趋势 - keywords JSON, -- 关键词 - ai_insights TEXT, -- AI洞察 - confidence DECIMAL(3, 2), -- 分析置信度 - start_time DATETIME, -- 开始时间 - end_time DATETIME, -- 结束时间 - last_active_time DATETIME DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - message_count INT NOT NULL DEFAULT 0, -- 消息数量 - total_tokens INT DEFAULT 0, -- 总Token使用量 - total_cost DECIMAL(10, 4) DEFAULT 0.0000, -- 总费用 - client_ip VARCHAR(45), -- 客户端IP地址 (支持IPv6) - user_agent TEXT, -- 用户代理信息 - summary TEXT, -- 对话摘要 - tags JSON, -- 标签 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '对话表'; - --- ============================================================================ --- 3. 消息表 (message) --- 关联说明: conversation_id 关联 conversation.id,通过代码逻辑维护关联关系 --- ============================================================================ -CREATE TABLE message ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - conversation_id VARCHAR(36) NOT NULL, -- 对话ID (关联conversation.id) - content TEXT NOT NULL, -- 消息内容 - type VARCHAR(50) NOT NULL DEFAULT 'text', -- 消息类型 - sender VARCHAR(20) NOT NULL, -- 发送者: user-用户, assistant-AI助手 - timestamp DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 消息时间戳 - coze_chat_id VARCHAR(50), -- Coze平台的聊天ID - coze_message_id VARCHAR(50), -- Coze平台的消息ID - status VARCHAR(20) DEFAULT 'sent', -- 消息状态: sending/sent/failed/processing - error_message TEXT, -- 错误信息 - emotion_score DECIMAL(3, 2), -- 情绪评分 - emotion_type VARCHAR(50), -- 情绪类型 - emotion_confidence DECIMAL(3, 2), -- 情绪分析置信度 - prompt_tokens INT DEFAULT 0, -- 输入Token数 - completion_tokens INT DEFAULT 0, -- 输出Token数 - total_tokens INT DEFAULT 0, -- 总Token数 - api_cost DECIMAL(10, 6) DEFAULT 0.000000, -- API调用费用 - is_read TINYINT NOT NULL DEFAULT 0, -- 是否已读: 0-未读, 1-已读 - parent_message_id VARCHAR(36), -- 父消息ID(用于回复链) - emotion_analysis JSON, -- 情绪分析结果 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '消息表'; - --- ============================================================================ --- 4. Coze API调用记录表 (coze_api_call) --- ============================================================================ -CREATE TABLE coze_api_call ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - conversation_id VARCHAR(36), -- 对话ID - message_id VARCHAR(36), -- 消息ID - -- Coze API 信息 - coze_chat_id VARCHAR(50), -- Coze聊天ID - coze_conversation_id VARCHAR(50), -- Coze对话ID - bot_id VARCHAR(50) NOT NULL, -- Bot ID - workflow_id VARCHAR(50), -- Workflow ID - user_id VARCHAR(36) NOT NULL, -- 用户ID - -- 请求信息 - request_type VARCHAR(20) NOT NULL, -- 请求类型: chat/stream/retrieve/messages - request_url VARCHAR(500), -- 请求URL - request_body JSON, -- 请求体 - request_headers JSON, -- 请求头 - -- 响应信息 - response_status INT, -- HTTP状态码 - response_body JSON, -- 响应体 - response_headers JSON, -- 响应头 - -- 状态和时间 - status VARCHAR(20) NOT NULL, -- 调用状态: pending/success/failed/timeout - start_time DATETIME NOT NULL, -- 开始时间 - end_time DATETIME, -- 结束时间 - duration_ms INT, -- 耗时(毫秒) - -- 使用统计 - prompt_tokens INT DEFAULT 0, -- 输入Token数 - completion_tokens INT DEFAULT 0, -- 输出Token数 - total_tokens INT DEFAULT 0, -- 总Token数 - cost DECIMAL(10, 6) DEFAULT 0.000000, -- 费用 - -- 错误信息 - error_code VARCHAR(50), -- 错误代码 - error_message TEXT, -- 错误信息 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = 'Coze API调用记录表'; - --- ============================================================================ --- 5. 情绪分析表 (emotion_analysis) --- ============================================================================ -CREATE TABLE emotion_analysis ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - message_id VARCHAR(36), -- 关联消息ID - text TEXT NOT NULL, -- 分析文本 - primary_emotion VARCHAR(50), -- 主要情绪 - intensity DECIMAL(3, 2), -- 情绪强度 - polarity VARCHAR(20), -- 情绪极性: positive-积极, negative-消极, neutral-中性 - confidence DECIMAL(3, 2), -- 置信度 - emotions JSON, -- 情绪分布详情 - keywords JSON, -- 关键词列表 - suggestion TEXT, -- 建议 - analysis_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 分析时间 - metadata JSON, -- 扩展元数据 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '情绪分析表'; - --- ============================================================================ --- 6. 情绪记录表 (emotion_record) --- ============================================================================ -CREATE TABLE emotion_record ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - record_date DATE NOT NULL, -- 记录日期 - emotion_type VARCHAR(50) NOT NULL, -- 情绪类型 - intensity DECIMAL(3, 2) NOT NULL, -- 情绪强度 - triggers TEXT, -- 触发因素 - description TEXT, -- 描述 - tags JSON, -- 标签 - weather VARCHAR(50), -- 天气 - location VARCHAR(100), -- 地点 - activity VARCHAR(100), -- 活动 - people VARCHAR(200), -- 相关人物 - notes TEXT, -- 备注 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '情绪记录表'; - --- ============================================================================ --- 7. 成长课题表 (growth_topic) --- ============================================================================ -CREATE TABLE growth_topic ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - title VARCHAR(100) NOT NULL, -- 课题标题 - category VARCHAR(50) NOT NULL, -- 分类 - difficulty VARCHAR(20) NOT NULL, -- 难度: easy-简单, medium-中等, hard-困难 - description TEXT, -- 描述 - content TEXT, -- 内容 - duration_days INT, -- 持续天数 - unlock_conditions JSON, -- 解锁条件 - is_unlocked TINYINT NOT NULL DEFAULT 1, -- 是否解锁 - progress DECIMAL(5, 2) NOT NULL DEFAULT 0.00, -- 进度百分比 - completed_time DATETIME, -- 完成时间 - rewards JSON, -- 奖励 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '成长课题表'; - --- ============================================================================ --- 8. 课题互动表 (topic_interaction) --- ============================================================================ -CREATE TABLE topic_interaction ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - topic_id VARCHAR(36) NOT NULL, -- 课题ID - type VARCHAR(50) NOT NULL, -- 互动类型 - content TEXT, -- 内容 - user_input TEXT, -- 用户输入 - ai_response TEXT, -- AI回应 - rating INT, -- 评分 - feedback TEXT, -- 反馈 - completed_time DATETIME, -- 完成时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '课题互动表'; - --- ============================================================================ --- 9. 地点标记表 (location_pin) --- ============================================================================ -CREATE TABLE location_pin ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - name VARCHAR(100) NOT NULL, -- 地点名称 - type VARCHAR(50) NOT NULL, -- 地点类型 - category VARCHAR(50), -- 地点分类 - latitude DECIMAL(10, 8) NOT NULL, -- 纬度 - longitude DECIMAL(11, 8) NOT NULL, -- 经度 - address VARCHAR(200), -- 地址 - description TEXT, -- 描述 - created_by VARCHAR(36), -- 创建者 - likes INT NOT NULL DEFAULT 0, -- 点赞数 - visits INT NOT NULL DEFAULT 0, -- 访问数 - is_bookmarked TINYINT NOT NULL DEFAULT 0, -- 是否收藏 - last_visit_time DATETIME, -- 最后访问时间 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '地点标记表'; - --- ============================================================================ --- 10. 社区帖子表 (community_post) --- ============================================================================ -CREATE TABLE community_post ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL, -- 用户ID - location_id VARCHAR(36), -- 地点ID - title VARCHAR(200), -- 标题 - content TEXT NOT NULL, -- 内容 - type VARCHAR(50) NOT NULL, -- 帖子类型 - images JSON, -- 图片列表 - tags JSON, -- 标签 - likes INT NOT NULL DEFAULT 0, -- 点赞数 - view_count INT NOT NULL DEFAULT 0, -- 浏览数 - comment_count INT NOT NULL DEFAULT 0, -- 评论数 - is_private TINYINT NOT NULL DEFAULT 0, -- 是否私密 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '社区帖子表'; - --- ============================================================================ --- 11. 评论表 (comment) --- ============================================================================ -CREATE TABLE comment ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - post_id VARCHAR(36) NOT NULL, -- 帖子ID - user_id VARCHAR(36) NOT NULL, -- 用户ID - content TEXT NOT NULL, -- 评论内容 - reply_to_id VARCHAR(36), -- 回复的评论ID - likes INT NOT NULL DEFAULT 0, -- 点赞数 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '评论表'; - --- ============================================================================ --- 12. 成就表 (achievement) --- ============================================================================ -CREATE TABLE achievement ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - title VARCHAR(100) NOT NULL, -- 成就标题 - description TEXT, -- 描述 - category VARCHAR(50) NOT NULL, -- 分类 - icon VARCHAR(200), -- 图标 - rarity VARCHAR(20) NOT NULL, -- 稀有度 - condition_type VARCHAR(50), -- 条件类型 - condition_value JSON, -- 条件值 - rewards JSON, -- 奖励 - unlocked_time DATETIME, -- 解锁时间 - progress DECIMAL(5, 2) NOT NULL DEFAULT 0.00, -- 进度 - is_hidden TINYINT NOT NULL DEFAULT 0, -- 是否隐藏 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '成就表'; - --- ============================================================================ --- 13. 奖励表 (reward) --- ============================================================================ -CREATE TABLE reward ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - topic_id VARCHAR(36), -- 课题ID - achievement_id VARCHAR(36), -- 成就ID - type VARCHAR(50) NOT NULL, -- 奖励类型 - name VARCHAR(100) NOT NULL, -- 奖励名称 - description TEXT, -- 描述 - icon VARCHAR(200), -- 图标 - rarity VARCHAR(20), -- 稀有度 - value JSON, -- 奖励值 - earned_time DATETIME, -- 获得时间 - is_new TINYINT NOT NULL DEFAULT 1, -- 是否新获得 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '奖励表'; - --- ============================================================================ --- 14. 访客用户表 (guest_user) --- ============================================================================ -CREATE TABLE guest_user ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - guest_user_id VARCHAR(50) NOT NULL UNIQUE, -- 访客用户ID (格式: guest_xxx) - ip_address VARCHAR(45) NOT NULL, -- 客户端IP地址 (支持IPv6) - user_agent TEXT, -- 用户代理信息 - nickname VARCHAR(50), -- 访客昵称 - avatar VARCHAR(500), -- 访客头像 - last_active_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 最后活跃时间 - conversation_count INT NOT NULL DEFAULT 0, -- 会话数量 - message_count INT NOT NULL DEFAULT 0, -- 消息数量 - location VARCHAR(100), -- IP地址的地理位置信息 - device_info VARCHAR(200), -- 设备信息 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '访客用户表'; - --- ============================================================================ --- 15. 用户统计表 (user_stats) --- ============================================================================ -CREATE TABLE user_stats ( - id VARCHAR(36) PRIMARY KEY, -- UUID主键 - user_id VARCHAR(36) NOT NULL UNIQUE, -- 用户ID - total_conversations INT NOT NULL DEFAULT 0, -- 总对话数 - total_messages INT NOT NULL DEFAULT 0, -- 总消息数 - total_emotions_recorded INT NOT NULL DEFAULT 0, -- 总情绪记录数 - topics_completed INT NOT NULL DEFAULT 0, -- 完成的课题数 - achievements_unlocked INT NOT NULL DEFAULT 0, -- 解锁的成就数 - total_points INT NOT NULL DEFAULT 0, -- 总积分 - consecutive_days INT NOT NULL DEFAULT 0, -- 连续使用天数 - max_consecutive_days INT NOT NULL DEFAULT 0, -- 最大连续天数 - locations_visited INT NOT NULL DEFAULT 0, -- 访问的地点数 - posts_created INT NOT NULL DEFAULT 0, -- 创建的帖子数 - comments_made INT NOT NULL DEFAULT 0, -- 评论数 - likes_received INT NOT NULL DEFAULT 0, -- 收到的点赞数 - social_interactions INT NOT NULL DEFAULT 0, -- 社交互动数 - -- 公共字段 - create_by VARCHAR(36), -- 创建人ID - create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, -- 创建时间 - update_by VARCHAR(36), -- 更新人ID - update_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- 更新时间 - is_deleted TINYINT NOT NULL DEFAULT 0, -- 是否删除: 0-未删除, 1-已删除 - remarks VARCHAR(500) -- 备注 -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户统计表'; - --- ============================================================================ --- 创建索引以提高查询性能 --- 注意: MySQL的CREATE INDEX不支持IF NOT EXISTS --- 如果索引已存在,重复执行会产生警告但不会中断脚本执行 --- ============================================================================ --- user表索引 -CREATE INDEX idx_user_account ON user (account); - -CREATE INDEX idx_user_username ON user (username); - -CREATE INDEX idx_user_email ON user (email); - -CREATE INDEX idx_user_phone ON user (phone); - -CREATE INDEX idx_user_last_active_time ON user (last_active_time); - -CREATE INDEX idx_user_create_time ON user (create_time); - -CREATE INDEX idx_user_member_level ON user (member_level); - -CREATE INDEX idx_user_status ON user (status); - -CREATE INDEX idx_user_is_verified ON user (is_verified); - -CREATE INDEX idx_user_create_by ON user (create_by); - -CREATE INDEX idx_user_update_by ON user (update_by); - -CREATE INDEX idx_user_is_deleted ON user (is_deleted); - --- conversation表索引 -CREATE INDEX idx_conversation_user_id ON conversation (user_id); - -CREATE INDEX idx_conversation_start_time ON conversation (start_time); - -CREATE INDEX idx_conversation_user_id_start_time ON conversation (user_id, start_time); - -CREATE INDEX idx_conversation_primary_emotion ON conversation (primary_emotion); - -CREATE INDEX idx_conversation_end_time ON conversation (end_time); - -CREATE INDEX idx_conversation_create_time ON conversation (create_time); - -CREATE INDEX idx_conversation_coze_conversation_id ON conversation (coze_conversation_id); - -CREATE INDEX idx_conversation_status ON conversation (status); - -CREATE INDEX idx_conversation_last_active_time ON conversation (last_active_time); - -CREATE INDEX idx_conversation_create_by ON conversation (create_by); - -CREATE INDEX idx_conversation_update_by ON conversation (update_by); - -CREATE INDEX idx_conversation_is_deleted ON conversation (is_deleted); - -CREATE INDEX idx_conversation_user_type ON conversation (user_type); - -CREATE INDEX idx_conversation_emotion_trend ON conversation (emotion_trend); - -CREATE INDEX idx_conversation_confidence ON conversation (confidence); - -CREATE INDEX idx_conversation_client_ip ON conversation (client_ip); - --- message表索引 -CREATE INDEX idx_message_conversation_id ON message (conversation_id); - -CREATE INDEX idx_message_timestamp ON message (timestamp); - -CREATE INDEX idx_message_conversation_id_timestamp ON message (conversation_id, timestamp); - -CREATE INDEX idx_message_sender ON message (sender); - -CREATE INDEX idx_message_type ON message (type); - -CREATE INDEX idx_message_is_read ON message (is_read); - -CREATE INDEX idx_message_create_time ON message (create_time); - -CREATE INDEX idx_message_coze_chat_id ON message (coze_chat_id); - -CREATE INDEX idx_message_status ON message (status); - -CREATE INDEX idx_message_parent_message_id ON message (parent_message_id); - -CREATE INDEX idx_message_create_by ON message (create_by); - -CREATE INDEX idx_message_update_by ON message (update_by); - -CREATE INDEX idx_message_is_deleted ON message (is_deleted); - --- coze_api_call表索引 -CREATE INDEX idx_coze_api_call_conversation_id ON coze_api_call (conversation_id); - -CREATE INDEX idx_coze_api_call_message_id ON coze_api_call (message_id); - -CREATE INDEX idx_coze_api_call_coze_chat_id ON coze_api_call (coze_chat_id); - -CREATE INDEX idx_coze_api_call_bot_id ON coze_api_call (bot_id); - -CREATE INDEX idx_coze_api_call_user_id ON coze_api_call (user_id); - -CREATE INDEX idx_coze_api_call_status ON coze_api_call (status); - -CREATE INDEX idx_coze_api_call_start_time ON coze_api_call (start_time); - --- emotion_analysis表索引 -CREATE INDEX idx_emotion_analysis_user_id ON emotion_analysis (user_id); - -CREATE INDEX idx_emotion_analysis_message_id ON emotion_analysis (message_id); - -CREATE INDEX idx_emotion_analysis_primary_emotion ON emotion_analysis (primary_emotion); - -CREATE INDEX idx_emotion_analysis_analysis_time ON emotion_analysis (analysis_time); - -CREATE INDEX idx_emotion_analysis_create_time ON emotion_analysis (create_time); - -CREATE INDEX idx_emotion_analysis_create_by ON emotion_analysis (create_by); - -CREATE INDEX idx_emotion_analysis_update_by ON emotion_analysis (update_by); - -CREATE INDEX idx_emotion_analysis_is_deleted ON emotion_analysis (is_deleted); - --- emotion_record表索引 -CREATE INDEX idx_emotion_record_user_id ON emotion_record (user_id); - -CREATE INDEX idx_emotion_record_date ON emotion_record (record_date); - -CREATE INDEX idx_emotion_record_emotion_type ON emotion_record (emotion_type); - -CREATE INDEX idx_emotion_record_user_id_date ON emotion_record (user_id, record_date); - -CREATE INDEX idx_emotion_record_user_id_emotion_type ON emotion_record (user_id, emotion_type); - -CREATE INDEX idx_emotion_record_intensity ON emotion_record (intensity); - -CREATE INDEX idx_emotion_record_create_time ON emotion_record (create_time); - -CREATE INDEX idx_emotion_record_create_by ON emotion_record (create_by); - -CREATE INDEX idx_emotion_record_update_by ON emotion_record (update_by); - -CREATE INDEX idx_emotion_record_is_deleted ON emotion_record (is_deleted); - --- growth_topic表索引 -CREATE INDEX idx_growth_topic_category ON growth_topic (category); - -CREATE INDEX idx_growth_topic_difficulty ON growth_topic (difficulty); - -CREATE INDEX idx_growth_topic_is_unlocked ON growth_topic (is_unlocked); - -CREATE INDEX idx_growth_topic_progress ON growth_topic (progress); - -CREATE INDEX idx_growth_topic_completed_time ON growth_topic (completed_time); - -CREATE INDEX idx_growth_topic_category_difficulty ON growth_topic (category, difficulty); - -CREATE INDEX idx_growth_topic_create_time ON growth_topic (create_time); - --- topic_interaction表索引 -CREATE INDEX idx_topic_interaction_topic_id ON topic_interaction (topic_id); - -CREATE INDEX idx_topic_interaction_type ON topic_interaction (type); - -CREATE INDEX idx_topic_interaction_completed_time ON topic_interaction (completed_time); - -CREATE INDEX idx_topic_interaction_rating ON topic_interaction (rating); - -CREATE INDEX idx_topic_interaction_topic_id_type ON topic_interaction (topic_id, type); - -CREATE INDEX idx_topic_interaction_create_time ON topic_interaction (create_time); - --- location_pin表索引 -CREATE INDEX idx_location_pin_latitude_longitude ON location_pin (latitude, longitude); - -CREATE INDEX idx_location_pin_type ON location_pin (type); - -CREATE INDEX idx_location_pin_category ON location_pin (category); - -CREATE INDEX idx_location_pin_created_by ON location_pin (created_by); - -CREATE INDEX idx_location_pin_likes ON location_pin (likes); - -CREATE INDEX idx_location_pin_visits ON location_pin (visits); - -CREATE INDEX idx_location_pin_is_bookmarked ON location_pin (is_bookmarked); - -CREATE INDEX idx_location_pin_type_category ON location_pin (type, category); - -CREATE INDEX idx_location_pin_create_time ON location_pin (create_time); - -CREATE INDEX idx_location_pin_last_visit_time ON location_pin (last_visit_time); - --- community_post表索引 -CREATE INDEX idx_community_post_user_id ON community_post (user_id); - -CREATE INDEX idx_community_post_location_id ON community_post (location_id); - -CREATE INDEX idx_community_post_create_time ON community_post (create_time); - -CREATE INDEX idx_community_post_type ON community_post (type); - -CREATE INDEX idx_community_post_likes ON community_post (likes); - -CREATE INDEX idx_community_post_view_count ON community_post (view_count); - -CREATE INDEX idx_community_post_is_private ON community_post (is_private); - -CREATE INDEX idx_community_post_user_id_create_time ON community_post (user_id, create_time); - -CREATE INDEX idx_community_post_type_create_time ON community_post (type, create_time); - --- comment表索引 -CREATE INDEX idx_comment_post_id ON comment (post_id); - -CREATE INDEX idx_comment_user_id ON comment (user_id); - -CREATE INDEX idx_comment_reply_to_id ON comment (reply_to_id); - -CREATE INDEX idx_comment_create_time ON comment (create_time); - -CREATE INDEX idx_comment_likes ON comment (likes); - -CREATE INDEX idx_comment_post_id_create_time ON comment (post_id, create_time); - --- achievement表索引 -CREATE INDEX idx_achievement_category ON achievement (category); - -CREATE INDEX idx_achievement_rarity ON achievement (rarity); - -CREATE INDEX idx_achievement_unlocked_time ON achievement (unlocked_time); - -CREATE INDEX idx_achievement_is_hidden ON achievement (is_hidden); - -CREATE INDEX idx_achievement_progress ON achievement (progress); - -CREATE INDEX idx_achievement_category_rarity ON achievement (category, rarity); - -CREATE INDEX idx_achievement_create_time ON achievement (create_time); - --- reward表索引 -CREATE INDEX idx_reward_topic_id ON reward (topic_id); - -CREATE INDEX idx_reward_achievement_id ON reward (achievement_id); - -CREATE INDEX idx_reward_type ON reward (type); - -CREATE INDEX idx_reward_earned_time ON reward (earned_time); - -CREATE INDEX idx_reward_rarity ON reward (rarity); - -CREATE INDEX idx_reward_is_new ON reward (is_new); - -CREATE INDEX idx_reward_type_earned_time ON reward (type, earned_time); - -CREATE INDEX idx_reward_create_time ON reward (create_time); - --- user_stats表索引 -CREATE INDEX idx_user_stats_user_id ON user_stats (user_id); - -CREATE INDEX idx_user_stats_total_points ON user_stats (total_points); - -CREATE INDEX idx_user_stats_consecutive_days ON user_stats (consecutive_days); - -CREATE INDEX idx_user_stats_max_consecutive_days ON user_stats (max_consecutive_days); - -CREATE INDEX idx_user_stats_social_interactions ON user_stats (social_interactions); - -CREATE INDEX idx_user_stats_update_time ON user_stats (update_time); - -CREATE INDEX idx_user_stats_create_time ON user_stats (create_time); - --- guest_user表索引 -CREATE INDEX idx_guest_user_guest_user_id ON guest_user (guest_user_id); - -CREATE INDEX idx_guest_user_ip_address ON guest_user (ip_address); - -CREATE INDEX idx_guest_user_last_active_time ON guest_user (last_active_time); - -CREATE INDEX idx_guest_user_conversation_count ON guest_user (conversation_count); - -CREATE INDEX idx_guest_user_message_count ON guest_user (message_count); - -CREATE INDEX idx_guest_user_create_time ON guest_user (create_time); - -CREATE INDEX idx_guest_user_create_by ON guest_user (create_by); - -CREATE INDEX idx_guest_user_update_by ON guest_user (update_by); - -CREATE INDEX idx_guest_user_is_deleted ON guest_user (is_deleted); - --- ============================================================================ --- 数据库统计信息 --- ============================================================================ -SELECT - COUNT(*) as total_tables -FROM - INFORMATION_SCHEMA.TABLES -WHERE - TABLE_SCHEMA = 'emotion_museum'; - --- 显示创建的表 -SELECT - TABLE_NAME as table_name, - TABLE_COMMENT as comment, - ENGINE as engine -FROM - INFORMATION_SCHEMA.TABLES -WHERE - TABLE_SCHEMA = 'emotion_museum' -ORDER BY - TABLE_NAME; - --- 提交事务 -COMMIT; - --- 完成消息 -SELECT - 'Emotion Museum Database v3.0 Final (雪花算法主键版本) - 开发版本 deployment completed successfully!' as message, - NOW () as completion_time, - 'All tables dropped and recreated with VARCHAR(36) primary keys. Development version - data will be lost on re-execution!' as description; \ No newline at end of file diff --git a/packages/emotion-museum-1.0.0-20250713_123404/database/verify-database-script.sql b/packages/emotion-museum-1.0.0-20250713_123404/database/verify-database-script.sql deleted file mode 100644 index 7cd130f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/database/verify-database-script.sql +++ /dev/null @@ -1,81 +0,0 @@ --- ============================================================================ --- 数据库脚本验证查询 --- 用于验证 mysql_emotion_museum_final.sql 执行后的表结构 --- ============================================================================ - --- 验证数据库是否存在 -SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'emotion_museum'; - --- 验证所有表是否创建成功 -SELECT TABLE_NAME, TABLE_COMMENT -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum' -ORDER BY TABLE_NAME; - --- 验证conversation表的字段结构(重点验证新增字段) -SELECT - COLUMN_NAME, - DATA_TYPE, - IS_NULLABLE, - COLUMN_DEFAULT, - COLUMN_COMMENT -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY ORDINAL_POSITION; - --- 验证conversation表的索引 -SELECT - INDEX_NAME, - COLUMN_NAME, - NON_UNIQUE -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' -ORDER BY INDEX_NAME, SEQ_IN_INDEX; - --- 验证新增字段是否存在 -SELECT - CASE - WHEN COUNT(*) = 9 THEN '✅ 所有新增字段都存在' - ELSE CONCAT('❌ 缺少字段,只找到 ', COUNT(*), ' 个,应该是 9 个') - END AS validation_result -FROM INFORMATION_SCHEMA.COLUMNS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND COLUMN_NAME IN ( - 'user_type', 'emotion_trend', 'keywords', 'ai_insights', - 'confidence', 'client_ip', 'user_agent', 'summary', 'tags' - ); - --- 验证新增索引是否存在 -SELECT - CASE - WHEN COUNT(*) = 4 THEN '✅ 所有新增索引都存在' - ELSE CONCAT('❌ 缺少索引,只找到 ', COUNT(*), ' 个,应该是 4 个') - END AS index_validation_result -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation' - AND INDEX_NAME IN ( - 'idx_conversation_user_type', - 'idx_conversation_emotion_trend', - 'idx_conversation_confidence', - 'idx_conversation_client_ip' - ); - --- 统计总表数 -SELECT - CASE - WHEN COUNT(*) = 15 THEN '✅ 所有15个表都创建成功' - ELSE CONCAT('❌ 表数量不正确,只有 ', COUNT(*), ' 个表,应该是 15 个') - END AS table_count_result -FROM INFORMATION_SCHEMA.TABLES -WHERE TABLE_SCHEMA = 'emotion_museum'; - --- 统计总索引数(conversation表) -SELECT - CONCAT('conversation表共有 ', COUNT(DISTINCT INDEX_NAME), ' 个索引') AS conversation_index_count -FROM INFORMATION_SCHEMA.STATISTICS -WHERE TABLE_SCHEMA = 'emotion_museum' - AND TABLE_NAME = 'conversation'; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/deploy.sh b/packages/emotion-museum-1.0.0-20250713_123404/deploy.sh deleted file mode 100755 index ef76173..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/deploy.sh +++ /dev/null @@ -1,257 +0,0 @@ -#!/bin/bash - -# 情绪博物馆容器部署脚本 -# 作者: EmotionMuseum Team -# 版本: 1.0.0 -# 日期: 2025-07-13 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' # No Color - -# 日志函数 -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 检查Docker和Docker Compose -check_requirements() { - log_step "检查系统要求..." - - if ! command -v docker &> /dev/null; then - log_error "Docker未安装,请先安装Docker" - exit 1 - fi - - if ! command -v docker-compose &> /dev/null; then - log_error "Docker Compose未安装,请先安装Docker Compose" - exit 1 - fi - - log_info "Docker和Docker Compose检查通过" -} - -# 创建必要的目录 -create_directories() { - log_step "创建部署目录..." - - mkdir -p deploy/{mysql/conf.d,redis,nginx/{conf.d,ssl},logs} - mkdir -p data/{mysql,redis,nacos} - - log_info "目录创建完成" -} - -# 生成配置文件 -generate_configs() { - log_step "生成配置文件..." - - # MySQL配置 - if [ ! -f "deploy/mysql/conf.d/my.cnf" ]; then - cat > deploy/mysql/conf.d/my.cnf << 'EOF' -[mysqld] -character-set-server=utf8mb4 -collation-server=utf8mb4_unicode_ci -default-time-zone='+8:00' -max_connections=1000 -max_allowed_packet=64M -innodb_buffer_pool_size=512M -innodb_log_file_size=256M -slow_query_log=1 -slow_query_log_file=/var/log/mysql/slow.log -long_query_time=2 -EOF - log_info "MySQL配置文件已生成" - fi - - # Redis配置 - if [ ! -f "deploy/redis/redis.conf" ]; then - cat > deploy/redis/redis.conf << 'EOF' -bind 0.0.0.0 -port 6379 -timeout 300 -tcp-keepalive 60 -maxmemory 256mb -maxmemory-policy allkeys-lru -save 900 1 -save 300 10 -save 60 10000 -appendonly yes -appendfsync everysec -EOF - log_info "Redis配置文件已生成" - fi -} - -# 构建镜像 -build_images() { - log_step "构建Docker镜像..." - - log_info "构建后端服务镜像..." - docker-compose build gateway ai-service user-service - - log_info "构建前端应用镜像..." - docker-compose build web - - log_info "镜像构建完成" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - # 先启动基础服务 - log_info "启动基础服务 (MySQL, Redis, Nacos)..." - docker-compose up -d mysql redis nacos - - # 等待基础服务启动 - log_info "等待基础服务启动完成..." - sleep 30 - - # 启动应用服务 - log_info "启动应用服务..." - docker-compose up -d gateway ai-service user-service - - # 等待应用服务启动 - log_info "等待应用服务启动完成..." - sleep 20 - - # 启动前端和Nginx - log_info "启动前端和Nginx..." - docker-compose up -d web nginx - - log_info "所有服务启动完成" -} - -# 检查服务状态 -check_services() { - log_step "检查服务状态..." - - echo "" - docker-compose ps - echo "" - - # 检查关键服务健康状态 - log_info "检查服务健康状态..." - - # 检查MySQL - if docker-compose exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_warn "❌ MySQL服务异常" - fi - - # 检查Redis - if docker-compose exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_warn "❌ Redis服务异常" - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_warn "❌ Nacos服务异常" - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_warn "❌ 网关服务异常" - fi -} - -# 显示访问信息 -show_access_info() { - log_step "部署完成!" - - echo "" - echo "🎉 情绪博物馆部署成功!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://localhost" - echo " API网关: http://localhost:9000" - echo " Nacos: http://localhost:8848/nacos (用户名/密码: nacos/nacos)" - echo "" - echo "🔧 管理命令:" - echo " 查看日志: docker-compose logs -f [服务名]" - echo " 停止服务: docker-compose down" - echo " 重启服务: docker-compose restart [服务名]" - echo "" - echo "📊 监控命令:" - echo " 查看状态: docker-compose ps" - echo " 查看资源: docker stats" - echo "" -} - -# 主函数 -main() { - echo "🚀 开始部署情绪博物馆..." - echo "" - - check_requirements - create_directories - generate_configs - build_images - start_services - - echo "" - log_info "等待服务完全启动..." - sleep 10 - - check_services - show_access_info -} - -# 处理命令行参数 -case "${1:-}" in - "build") - log_info "仅构建镜像..." - check_requirements - create_directories - generate_configs - build_images - ;; - "start") - log_info "启动服务..." - start_services - check_services - show_access_info - ;; - "stop") - log_info "停止服务..." - docker-compose down - ;; - "restart") - log_info "重启服务..." - docker-compose restart - check_services - ;; - "logs") - docker-compose logs -f - ;; - "status") - check_services - ;; - *) - main - ;; -esac diff --git a/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/conf.d/emotion-museum.conf b/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/conf.d/emotion-museum.conf deleted file mode 100644 index bac0a17..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/conf.d/emotion-museum.conf +++ /dev/null @@ -1,186 +0,0 @@ -# 情绪博物馆主站配置 -# -# 部署方式说明: -# 1. Docker Compose部署(推荐):使用容器服务名,如 emotion-gateway:9000, emotion-web:80 -# 2. 混合部署:Nginx在Docker中,服务在宿主机,使用 localhost:9000 或 host.docker.internal:9000 -# 3. 本地部署:Nginx在宿主机,使用 localhost:9000 或 127.0.0.1:9000 -# -# 当前配置适用于:Docker Compose部署(所有服务都在Docker网络中) - -server { - listen 80; - server_name localhost emotion-museum.com www.emotion-museum.com; - - # 日志配置 - access_log /data/logs/nginx/nginx_access.log main; - error_log /data/logs/nginx/nginx_error.log warn; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - - # API代理到网关服务 (Docker容器内部端口9000) - location /api/ { - # 限流 - limit_req zone=api burst=20 nodelay; - - # 代理到网关服务 (Docker容器) - proxy_pass http://emotion-gateway:9000; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # 超时设置 - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - - # 缓存控制 - proxy_cache_bypass $http_upgrade; - proxy_no_cache $http_upgrade; - - # WebSocket支持 - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - } - - # 前端静态文件服务 (代理到前端容器) - location / { - # 限流 - limit_req zone=web burst=50 nodelay; - - # 代理到前端容器 - proxy_pass http://emotion-web:80; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # 超时设置 - proxy_connect_timeout 10s; - proxy_send_timeout 10s; - proxy_read_timeout 10s; - } - - # 静态资源缓存优化 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - proxy_pass http://emotion-web:80; - expires 30d; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - } - - # HTML文件不缓存 - location ~* \.(html|htm)$ { - proxy_pass http://emotion-web:80; - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - } - - # 健康检查 - location /nginx-health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /404.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } -} - -# HTTPS配置 (可选) -# server { -# listen 443 ssl http2; -# server_name emotion-museum.com www.emotion-museum.com; -# -# # SSL证书配置 -# ssl_certificate /etc/nginx/ssl/emotion-museum.crt; -# ssl_certificate_key /etc/nginx/ssl/emotion-museum.key; -# -# # SSL安全配置 -# ssl_protocols TLSv1.2 TLSv1.3; -# ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384; -# ssl_prefer_server_ciphers off; -# ssl_session_cache shared:SSL:10m; -# ssl_session_timeout 10m; -# -# # HSTS -# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; -# -# # 其他配置与HTTP相同 -# include /etc/nginx/conf.d/emotion-museum-common.conf; -# } - -# HTTP重定向到HTTPS (可选) -# server { -# listen 80; -# server_name emotion-museum.com www.emotion-museum.com; -# return 301 https://$server_name$request_uri; -# } - -# ======================================== -# 备用配置:非Docker部署方式 -# ======================================== -# 如果不使用Docker Compose,而是直接在服务器上部署, -# 请注释掉上面的配置,启用下面的配置 - -# server { -# listen 80; -# server_name localhost; -# -# # 日志配置 -# access_log /var/log/nginx/access.log; -# error_log /var/log/nginx/error.log warn; -# -# # API代理到宿主机服务 -# location /api/ { -# # 选择以下其中一种配置: -# -# # 方式1:使用localhost(推荐) -# proxy_pass http://localhost:9000/; -# -# # 方式2:使用127.0.0.1 -# # proxy_pass http://127.0.0.1:9000/; -# -# # 方式3:使用服务器IP(替换为实际IP) -# # proxy_pass http://192.168.1.100:9000/; -# -# proxy_set_header Host $host; -# proxy_set_header X-Real-IP $remote_addr; -# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -# proxy_set_header X-Forwarded-Proto $scheme; -# -# proxy_connect_timeout 30s; -# proxy_send_timeout 30s; -# proxy_read_timeout 30s; -# } -# -# # 前端静态文件(直接从文件系统提供) -# location / { -# root /data/www/emotion-museum; -# index index.html index.htm; -# try_files $uri $uri/ /index.html; -# -# # 静态资源缓存 -# location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { -# root /data/www/emotion-museum; -# expires 30d; -# add_header Cache-Control "public, immutable"; -# } -# } -# -# # 健康检查 -# location /health { -# proxy_pass http://localhost:9000/actuator/health; -# } -# } diff --git a/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/nginx.conf b/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/nginx.conf deleted file mode 100644 index 74f5db5..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/deploy/nginx/nginx.conf +++ /dev/null @@ -1,86 +0,0 @@ -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; - -events { - worker_connections 1024; - use epoll; - multi_accept on; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 日志格式 - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for" ' - '$request_time $upstream_response_time'; - - access_log /var/log/nginx/access.log main; - - # 基础配置 - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - server_tokens off; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_proxied any; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 客户端配置 - client_max_body_size 50M; - client_body_buffer_size 128k; - client_header_buffer_size 32k; - large_client_header_buffers 4 32k; - - # 代理配置 - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - proxy_buffer_size 64k; - proxy_buffers 4 64k; - proxy_busy_buffers_size 128k; - proxy_temp_file_write_size 128k; - - # 上游服务器定义 - Docker容器服务 - upstream emotion-gateway { - server emotion-gateway:9000 max_fails=3 fail_timeout=30s; - keepalive 32; - } - - upstream emotion-ai { - server emotion-ai:9002 max_fails=3 fail_timeout=30s; - keepalive 32; - } - - upstream emotion-user { - server emotion-user:9001 max_fails=3 fail_timeout=30s; - keepalive 32; - } - - # 限流配置 - limit_req_zone $binary_remote_addr zone=api:10m rate=10r/s; - limit_req_zone $binary_remote_addr zone=web:10m rate=20r/s; - - # 包含站点配置 - include /etc/nginx/conf.d/*.conf; -} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.custom.yml b/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.custom.yml deleted file mode 100644 index 9169b7f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.custom.yml +++ /dev/null @@ -1,237 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: 123456 - MYSQL_DATABASE: emotion_museum - MYSQL_USER: emotion - MYSQL_PASSWORD: emotion123 - TZ: Asia/Shanghai - ports: - - "3306:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./backend/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - - /data/logs/emotion-museum/mysql:/var/log/mysql - command: --default-authentication-plugin=mysql_native_password - networks: - - emotion-network - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis - restart: unless-stopped - ports: - - "6379:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - - /data/logs/emotion-museum/redis:/var/log/redis - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - - # Nacos注册中心 - nacos: - image: nacos/nacos-server:v2.2.0 - container_name: emotion-nacos - restart: unless-stopped - environment: - MODE: standalone - SPRING_DATASOURCE_PLATFORM: mysql - MYSQL_SERVICE_HOST: mysql - MYSQL_SERVICE_DB_NAME: nacos_config - MYSQL_SERVICE_PORT: 3306 - MYSQL_SERVICE_USER: root - MYSQL_SERVICE_PASSWORD: 123456 - MYSQL_SERVICE_DB_PARAM: characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true - JVM_XMS: 512m - JVM_XMX: 512m - JVM_XMN: 256m - ports: - - "8848:8848" - - "9848:9848" - volumes: - - nacos_data:/home/nacos/data - - nacos_logs:/home/nacos/logs - - /data/logs/emotion-museum/nacos:/home/nacos/logs - depends_on: - - mysql - networks: - - emotion-network - - # 网关服务 - 使用宿主机JAR文件 - emotion-gateway: - image: openjdk:17-jdk-alpine - container_name: emotion-gateway - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-gateway.jar - " - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-gateway.jar:/app/emotion-gateway.jar:ro - - /data/logs/emotion-museum/gateway:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9000/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # AI服务 - 使用宿主机JAR文件 - emotion-ai: - image: openjdk:17-jdk-alpine - container_name: emotion-ai - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-ai.jar - " - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - COZE_API_TOKEN: ${COZE_API_TOKEN:-pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO} - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-ai.jar:/app/emotion-ai.jar:ro - - /data/logs/emotion-museum/ai:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9002/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # 用户服务 - 使用宿主机JAR文件 - emotion-user: - image: openjdk:17-jdk-alpine - container_name: emotion-user - restart: unless-stopped - working_dir: /app - command: > - sh -c " - apk add --no-cache curl tzdata && - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && - echo 'Asia/Shanghai' > /etc/timezone && - java -jar - -Xms512m -Xmx1024m - -Djava.security.egd=file:/dev/./urandom - -Dspring.profiles.active=docker - -Dlogging.file.path=/app/logs - /app/emotion-user.jar - " - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: Asia/Shanghai - volumes: - - /data/builds/emotion-user.jar:/app/emotion-user.jar:ro - - /data/logs/emotion-museum/user:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:9001/actuator/health"] - interval: 30s - timeout: 10s - retries: 3 - start_period: 60s - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx - restart: unless-stopped - ports: - - "80:80" - - "443:443" - volumes: - - ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf:ro - - ./deploy/nginx/conf.d:/etc/nginx/conf.d:ro - - ./deploy/nginx/ssl:/etc/nginx/ssl:ro - - /data/www/emotion-museum:/data/www/emotion-museum:ro - - /data/logs/emotion-museum/nginx:/var/log/nginx - depends_on: - - emotion-gateway - - emotion-ai - - emotion-user - networks: - - emotion-network - healthcheck: - test: ["CMD", "curl", "-f", "http://localhost/nginx-health"] - interval: 30s - timeout: 10s - retries: 3 - -volumes: - mysql_data: - redis_data: - nacos_data: - nacos_logs: - -networks: - emotion-network: - driver: bridge diff --git a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.prod.yml b/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.prod.yml deleted file mode 100644 index b87f6d3..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.prod.yml +++ /dev/null @@ -1,253 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql-prod - restart: always - environment: - MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE: ${MYSQL_DATABASE} - MYSQL_USER: ${MYSQL_USER} - MYSQL_PASSWORD: ${MYSQL_PASSWORD} - TZ: ${TZ:-Asia/Shanghai} - ports: - - "3306:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./backend/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - - ./logs/mysql:/var/log/mysql - command: --default-authentication-plugin=mysql_native_password - networks: - - emotion-network - deploy: - resources: - limits: - memory: 1G - reservations: - memory: 512M - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis-prod - restart: always - ports: - - "6379:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - - ./logs/redis:/var/log/redis - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - deploy: - resources: - limits: - memory: 512M - reservations: - memory: 256M - - # Nacos注册中心 - nacos: - image: nacos/nacos-server:v2.2.0 - container_name: emotion-nacos-prod - restart: always - environment: - MODE: standalone - SPRING_DATASOURCE_PLATFORM: mysql - MYSQL_SERVICE_HOST: mysql - MYSQL_SERVICE_DB_NAME: nacos_config - MYSQL_SERVICE_PORT: 3306 - MYSQL_SERVICE_USER: ${MYSQL_USER} - MYSQL_SERVICE_PASSWORD: ${MYSQL_PASSWORD} - MYSQL_SERVICE_DB_PARAM: characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true - JVM_XMS: 512m - JVM_XMX: 1024m - JVM_XMN: 256m - NACOS_AUTH_ENABLE: ${NACOS_AUTH_ENABLE:-false} - ports: - - "8848:8848" - - "9848:9848" - volumes: - - nacos_data:/home/nacos/data - - nacos_logs:/home/nacos/logs - depends_on: - - mysql - networks: - - emotion-network - deploy: - resources: - limits: - memory: 1.5G - reservations: - memory: 512M - - # 网关服务 - gateway: - build: - context: ./backend - dockerfile: ./emotion-gateway/Dockerfile - image: emotion-gateway:latest - container_name: emotion-gateway-prod - restart: always - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: ${TZ:-Asia/Shanghai} - volumes: - - ./logs/gateway:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - deploy: - resources: - limits: - memory: 1G - reservations: - memory: 512M - - # AI服务 - ai-service: - build: - context: ./backend - dockerfile: ./emotion-ai/Dockerfile - image: emotion-ai:latest - container_name: emotion-ai-prod - restart: always - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - COZE_API_TOKEN: ${COZE_API_TOKEN} - TZ: ${TZ:-Asia/Shanghai} - volumes: - - ./logs/ai:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - deploy: - resources: - limits: - memory: 1G - reservations: - memory: 512M - - # 用户服务 - user-service: - build: - context: ./backend - dockerfile: ./emotion-user/Dockerfile - image: emotion-user:latest - container_name: emotion-user-prod - restart: always - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - TZ: ${TZ:-Asia/Shanghai} - volumes: - - ./logs/user:/app/logs - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - deploy: - resources: - limits: - memory: 1G - reservations: - memory: 512M - - # 前端应用 - web: - build: - context: ./web - dockerfile: Dockerfile - args: - BUILD_ENV: production - image: emotion-web:latest - container_name: emotion-web-prod - restart: always - ports: - - "3000:80" - volumes: - - ./logs/web:/var/log/nginx - depends_on: - - gateway - networks: - - emotion-network - deploy: - resources: - limits: - memory: 256M - reservations: - memory: 128M - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx-prod - restart: always - ports: - - "80:80" - - "443:443" - volumes: - - ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf - - ./deploy/nginx/conf.d:/etc/nginx/conf.d - - ./deploy/nginx/ssl:/etc/nginx/ssl - - ./logs/nginx:/var/log/nginx - depends_on: - - web - - gateway - networks: - - emotion-network - deploy: - resources: - limits: - memory: 256M - reservations: - memory: 128M - -volumes: - mysql_data: - driver: local - redis_data: - driver: local - nacos_data: - driver: local - nacos_logs: - driver: local - -networks: - emotion-network: - driver: bridge - ipam: - config: - - subnet: 172.20.0.0/16 diff --git a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.yml b/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.yml deleted file mode 100644 index 22f16d9..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/docker-compose.yml +++ /dev/null @@ -1,178 +0,0 @@ -version: '3.8' - -services: - # MySQL数据库 - mysql: - image: mysql:8.0 - container_name: emotion-mysql - restart: unless-stopped - environment: - MYSQL_ROOT_PASSWORD: 123456 - MYSQL_DATABASE: emotion_museum - MYSQL_USER: emotion - MYSQL_PASSWORD: emotion123 - TZ: Asia/Shanghai - ports: - - "3306:3306" - volumes: - - mysql_data:/var/lib/mysql - - ./backend/mysql_emotion_museum_final.sql:/docker-entrypoint-initdb.d/init.sql - - ./deploy/mysql/conf.d:/etc/mysql/conf.d - command: --default-authentication-plugin=mysql_native_password - networks: - - emotion-network - - # Redis缓存 - redis: - image: redis:7-alpine - container_name: emotion-redis - restart: unless-stopped - ports: - - "6379:6379" - volumes: - - redis_data:/data - - ./deploy/redis/redis.conf:/usr/local/etc/redis/redis.conf - command: redis-server /usr/local/etc/redis/redis.conf - networks: - - emotion-network - - # Nacos注册中心 - nacos: - image: nacos/nacos-server:v2.2.0 - container_name: emotion-nacos - restart: unless-stopped - environment: - MODE: standalone - SPRING_DATASOURCE_PLATFORM: mysql - MYSQL_SERVICE_HOST: mysql - MYSQL_SERVICE_DB_NAME: nacos_config - MYSQL_SERVICE_PORT: 3306 - MYSQL_SERVICE_USER: root - MYSQL_SERVICE_PASSWORD: 123456 - MYSQL_SERVICE_DB_PARAM: characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true - JVM_XMS: 512m - JVM_XMX: 512m - JVM_XMN: 256m - ports: - - "8848:8848" - - "9848:9848" - volumes: - - nacos_data:/home/nacos/data - - nacos_logs:/home/nacos/logs - depends_on: - - mysql - networks: - - emotion-network - - # 网关服务 - gateway: - build: - context: ./backend - dockerfile: ./emotion-gateway/Dockerfile - container_name: emotion-gateway - restart: unless-stopped - ports: - - "9000:9000" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # AI服务 - ai-service: - build: - context: ./backend - dockerfile: ./emotion-ai/Dockerfile - container_name: emotion-ai - restart: unless-stopped - ports: - - "9002:9002" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # 用户服务 - user-service: - build: - context: ./backend - dockerfile: ./emotion-user/Dockerfile - container_name: emotion-user - restart: unless-stopped - ports: - - "9001:9001" - environment: - SPRING_PROFILES_ACTIVE: docker - NACOS_SERVER_ADDR: nacos:8848 - MYSQL_HOST: mysql - MYSQL_PORT: 3306 - REDIS_HOST: redis - REDIS_PORT: 6379 - depends_on: - - mysql - - redis - - nacos - networks: - - emotion-network - - # 前端应用 - web: - build: - context: ./web - dockerfile: Dockerfile - container_name: emotion-web - restart: unless-stopped - ports: - - "3000:80" - depends_on: - - gateway - networks: - - emotion-network - - # Nginx反向代理 - nginx: - image: nginx:alpine - container_name: emotion-nginx - restart: unless-stopped - ports: - - "80:80" - - "443:443" - volumes: - - ./deploy/nginx/nginx.conf:/etc/nginx/nginx.conf - - ./deploy/nginx/conf.d:/etc/nginx/conf.d - - ./deploy/nginx/ssl:/etc/nginx/ssl - - nginx_logs:/var/log/nginx - depends_on: - - web - - gateway - networks: - - emotion-network - -volumes: - mysql_data: - redis_data: - nacos_data: - nacos_logs: - nginx_logs: - -networks: - emotion-network: - driver: bridge diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env b/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env deleted file mode 100644 index e1d55af..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env +++ /dev/null @@ -1,10 +0,0 @@ -# 基础环境变量配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 - -# API配置 -VITE_API_BASE_URL=/api -VITE_API_TIMEOUT=30000 - -# 开发环境配置 -VITE_APP_ENV=development diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.development b/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.development deleted file mode 100644 index f0bed44..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.development +++ /dev/null @@ -1,12 +0,0 @@ -# 开发环境配置 -VITE_APP_ENV=development -VITE_APP_TITLE=情绪博物馆(开发环境) - -# 开发环境API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://localhost:9000 -VITE_API_TIMEOUT=30000 - -# 开发环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.docker b/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.docker deleted file mode 100644 index b8627e0..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.docker +++ /dev/null @@ -1,13 +0,0 @@ -# Docker环境配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 -VITE_APP_ENV=docker - -# API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://gateway:9000 -VITE_API_TIMEOUT=30000 - -# 功能开关 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.production b/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.production deleted file mode 100644 index b2dde80..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.production +++ /dev/null @@ -1,12 +0,0 @@ -# 生产环境配置 -VITE_APP_ENV=production -VITE_APP_TITLE=情绪博物馆 - -# 生产环境API配置 -VITE_API_BASE_URL=https://api.emotion-museum.com/api -VITE_API_TARGET=https://api.emotion-museum.com -VITE_API_TIMEOUT=30000 - -# 生产环境特殊配置 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.test b/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.test deleted file mode 100644 index e6a11fc..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/.env.test +++ /dev/null @@ -1,12 +0,0 @@ -# 测试环境配置 -VITE_APP_ENV=test -VITE_APP_TITLE=情绪博物馆(测试环境) - -# 测试环境API配置 -VITE_API_BASE_URL=https://test-api.emotion-museum.com/api -VITE_API_TARGET=https://test-api.emotion-museum.com -VITE_API_TIMEOUT=30000 - -# 测试环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/Dockerfile b/packages/emotion-museum-1.0.0-20250713_123404/frontend/Dockerfile deleted file mode 100644 index 90e74f2..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/Dockerfile +++ /dev/null @@ -1,55 +0,0 @@ -# 前端应用Dockerfile -# 构建阶段 -FROM node:18-alpine AS builder - -# 设置工作目录 -WORKDIR /app - -# 设置npm镜像源 -RUN npm config set registry https://registry.npmmirror.com - -# 复制package文件 -COPY package*.json ./ - -# 安装依赖 -RUN npm ci --only=production - -# 复制源代码 -COPY . . - -# 构建应用 -RUN npm run build - -# 生产阶段 -FROM nginx:alpine - -# 安装必要工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制构建产物 -COPY --from=builder /app/dist /usr/share/nginx/html - -# 复制nginx配置 -COPY nginx.conf /etc/nginx/conf.d/default.conf - -# 创建nginx用户 -RUN addgroup -g 101 -S nginx && \ - adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx - -# 设置权限 -RUN chown -R nginx:nginx /usr/share/nginx/html && \ - chown -R nginx:nginx /var/cache/nginx && \ - chown -R nginx:nginx /var/log/nginx && \ - chown -R nginx:nginx /etc/nginx/conf.d - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ - CMD curl -f http://localhost:80/ || exit 1 - -# 暴露端口 -EXPOSE 80 - -# 启动nginx -CMD ["nginx", "-g", "daemon off;"] diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/AnalysisSimple-eb0c3031.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/AnalysisSimple-eb0c3031.css deleted file mode 100644 index 20ae914..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/AnalysisSimple-eb0c3031.css +++ /dev/null @@ -1 +0,0 @@ -.analysis-simple[data-v-28c071bd]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.analysis-simple .page-header[data-v-28c071bd]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.analysis-simple .page-header h1[data-v-28c071bd]{color:#fff;margin:0}.analysis-simple .page-content[data-v-28c071bd]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.analysis-simple .page-content .welcome-message h2[data-v-28c071bd]{color:#333;margin-bottom:16px}.analysis-simple .page-content .welcome-message p[data-v-28c071bd]{color:#666;margin-bottom:32px;font-size:16px}.analysis-simple .page-content .welcome-message .test-buttons[data-v-28c071bd]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/ChatComplete-68dc21b4.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/ChatComplete-68dc21b4.css deleted file mode 100644 index 24dee0a..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/ChatComplete-68dc21b4.css +++ /dev/null @@ -1 +0,0 @@ -.emotion-analysis-simple .analysis-card[data-v-c61d1b05]{border-radius:8px;box-shadow:0 2px 8px #0000001a;margin-top:8px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head{border-bottom:1px solid #f0f0f0;padding:8px 12px;min-height:auto}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-head .ant-card-head-title{padding:0;font-size:13px}.emotion-analysis-simple .analysis-card[data-v-c61d1b05] .ant-card-body{padding:12px}.emotion-analysis-simple .card-title[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:600;color:#667eea}.emotion-analysis-simple .card-title .title-icon[data-v-c61d1b05]{font-size:14px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]{margin-bottom:8px;display:flex;align-items:center;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .primary-emotion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .emotion-polarity[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .keywords[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]:last-child,.emotion-analysis-simple .analysis-content .confidence[data-v-c61d1b05]:last-child{margin-bottom:0}.emotion-analysis-simple .analysis-content .emotion-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .keywords-label[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-label[data-v-c61d1b05]{font-size:12px;color:#666;font-weight:500;min-width:fit-content}.emotion-analysis-simple .analysis-content .emotion-tag[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .polarity-tag[data-v-c61d1b05]{font-size:11px;border-radius:4px}.emotion-analysis-simple .analysis-content .emotion-intensity[data-v-c61d1b05],.emotion-analysis-simple .analysis-content .confidence-value[data-v-c61d1b05]{font-size:11px;color:#999}.emotion-analysis-simple .analysis-content .keywords-list[data-v-c61d1b05]{display:flex;flex-wrap:wrap;gap:4px}.emotion-analysis-simple .analysis-content .keywords-list .keyword-tag[data-v-c61d1b05]{font-size:10px;border-radius:3px;background:#f5f5f5;border:1px solid #d9d9d9;color:#666}.emotion-analysis-simple .analysis-content .suggestion[data-v-c61d1b05]{flex-direction:column;align-items:flex-start}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label[data-v-c61d1b05]{display:flex;align-items:center;gap:4px;font-size:12px;color:#666;font-weight:500}.emotion-analysis-simple .analysis-content .suggestion .suggestion-label .suggestion-icon[data-v-c61d1b05]{font-size:12px;color:#667eea}.emotion-analysis-simple .analysis-content .suggestion .suggestion-content[data-v-c61d1b05]{font-size:11px;color:#333;line-height:1.4;background:#f8f9fa;padding:6px 8px;border-radius:4px;border-left:2px solid #667eea;margin-top:4px;width:100%}.chat-complete[data-v-23c54516]{display:flex;height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.sidebar[data-v-23c54516]{width:300px;background:rgba(255,255,255,.95);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-right:1px solid rgba(255,255,255,.2);display:flex;flex-direction:column;transition:all .3s ease}.sidebar.collapsed[data-v-23c54516]{width:60px}.sidebar .sidebar-header[data-v-23c54516]{padding:20px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}.sidebar .sidebar-header .logo h2[data-v-23c54516]{margin:0;font-size:18px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sidebar .sidebar-header .logo .subtitle[data-v-23c54516]{font-size:12px;color:#666}.sidebar .sidebar-header .collapse-btn[data-v-23c54516]{border:none;box-shadow:none}.sidebar .sidebar-content[data-v-23c54516]{flex:1;padding:20px;overflow-y:auto}.sidebar .sidebar-content .conversations-list .list-header[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sidebar .sidebar-content .conversations-list .list-header .list-title[data-v-23c54516]{font-weight:600;color:#333}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]{display:flex;align-items:center;padding:12px;border-radius:8px;cursor:pointer;transition:all .3s ease;margin-bottom:8px}.sidebar .sidebar-content .conversations-list .conversations .conversation-item[data-v-23c54516]:hover{background:#f5f5f5}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff}.sidebar .sidebar-content .conversations-list .conversations .conversation-item.active .conversation-time[data-v-23c54516]{color:#fffc}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info[data-v-23c54516]{flex:1;min-width:0}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-title[data-v-23c54516]{font-weight:500;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .conversation-info .conversation-time[data-v-23c54516]{font-size:12px;color:#999}.sidebar .sidebar-content .conversations-list .conversations .conversation-item .more-btn[data-v-23c54516]{opacity:0;transition:opacity .3s ease}.sidebar .sidebar-content .conversations-list .conversations .conversation-item:hover .more-btn[data-v-23c54516]{opacity:1}.sidebar .sidebar-content .conversations-list .empty-conversations[data-v-23c54516]{text-align:center;padding:40px 20px;color:#999}.sidebar .sidebar-content .conversations-list .empty-conversations .empty-icon[data-v-23c54516]{font-size:48px;margin-bottom:16px;opacity:.5}.sidebar .user-info[data-v-23c54516]{padding:20px;border-top:1px solid #f0f0f0;display:flex;align-items:center;gap:12px}.sidebar .user-info .user-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}.sidebar .user-info .user-details .user-name[data-v-23c54516]{font-weight:500;margin-bottom:2px}.sidebar .user-info .user-details .user-status[data-v-23c54516]{font-size:12px;color:#52c41a}.sidebar .user-info .user-details .user-status.guest[data-v-23c54516]{color:#faad14}.chat-main[data-v-23c54516]{flex:1;display:flex;flex-direction:column;background:rgba(255,255,255,.05)}.chat-main .chat-header[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,.2);display:flex;align-items:center;justify-content:space-between;color:#fff}.chat-main .chat-header .chat-info .chat-title[data-v-23c54516]{margin:0 0 4px;font-size:18px}.chat-main .chat-header .chat-info .chat-status[data-v-23c54516]{font-size:12px;opacity:.8}.chat-main .chat-header .chat-actions[data-v-23c54516]{display:flex;gap:8px}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]{color:#fff;border-color:#ffffff4d}.chat-main .chat-header .chat-actions .ant-btn[data-v-23c54516]:hover{background:rgba(255,255,255,.1);border-color:#ffffff80}.chat-main .messages-container[data-v-23c54516]{flex:1;overflow-y:auto;padding:20px}.chat-main .messages-container .welcome-screen[data-v-23c54516]{height:100%;display:flex;align-items:center;justify-content:center}.chat-main .messages-container .welcome-screen .welcome-content[data-v-23c54516]{text-align:center;color:#fff;max-width:500px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-icon[data-v-23c54516]{font-size:80px;margin-bottom:20px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-title[data-v-23c54516]{font-size:28px;margin-bottom:16px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-description[data-v-23c54516]{font-size:16px;line-height:1.6;margin-bottom:30px;opacity:.9}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features[data-v-23c54516]{display:flex;justify-content:center;gap:30px;margin-bottom:30px}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item[data-v-23c54516]{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;opacity:.8}.chat-main .messages-container .welcome-screen .welcome-content .welcome-features .feature-item .anticon[data-v-23c54516]{font-size:24px}.chat-main .messages-container .messages-list .message-item[data-v-23c54516]{display:flex;margin-bottom:20px}.chat-main .messages-container .messages-list .message-item.user[data-v-23c54516]{flex-direction:row-reverse}.chat-main .messages-container .messages-list .message-item.user .message-content[data-v-23c54516]{align-items:flex-end}.chat-main .messages-container .messages-list .message-item.user .message-bubble[data-v-23c54516]{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border-bottom-right-radius:4px}.chat-main .messages-container .messages-list .message-item.assistant .message-bubble[data-v-23c54516]{background:white;border:1px solid #f0f0f0;border-bottom-left-radius:4px}.chat-main .messages-container .messages-list .message-item .message-avatar[data-v-23c54516]{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;margin:0 12px;flex-shrink:0}.chat-main .messages-container .messages-list .message-item .message-content[data-v-23c54516]{flex:1;display:flex;flex-direction:column;max-width:70%}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble[data-v-23c54516]{padding:12px 16px;border-radius:12px;box-shadow:0 2px 8px #0000001a}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble.typing[data-v-23c54516]{padding:16px 20px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-text[data-v-23c54516]{line-height:1.6;word-wrap:break-word}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .message-time[data-v-23c54516]{font-size:12px;opacity:.7;margin-top:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator[data-v-23c54516]{display:flex;gap:4px;margin-bottom:8px}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]{width:8px;height:8px;border-radius:50%;background:#999;animation:typing-23c54516 1.4s infinite ease-in-out}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(1){animation-delay:-.32s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-indicator span[data-v-23c54516]:nth-child(2){animation-delay:-.16s}.chat-main .messages-container .messages-list .message-item .message-content .message-bubble .typing-text[data-v-23c54516]{font-size:14px;color:#666}.chat-main .messages-container .messages-list .message-item .message-content .emotion-analysis[data-v-23c54516]{margin-top:8px}.chat-main .input-area[data-v-23c54516]{padding:20px;background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.2)}.chat-main .input-area .input-container[data-v-23c54516]{display:flex;align-items:flex-end;gap:12px;max-width:1000px;margin:0 auto}.chat-main .input-area .input-container .message-input[data-v-23c54516]{flex:1;border-radius:12px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.9)}.chat-main .input-area .input-container .message-input[data-v-23c54516]:focus{border-color:#667eea;box-shadow:0 0 0 2px #667eea33}.chat-main .input-area .input-container .input-actions[data-v-23c54516]{display:flex;align-items:center;gap:8px}.chat-main .input-area .input-container .input-actions .ant-btn.active[data-v-23c54516]{color:#667eea;background:rgba(102,126,234,.1)}.chat-main .input-area .input-container .input-actions .send-btn[data-v-23c54516]{height:40px;padding:0 20px}.connection-status .status-item[data-v-23c54516]{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0f0f0}.connection-status .status-item[data-v-23c54516]:last-child{border-bottom:none}.connection-status .status-item .status-label[data-v-23c54516]{font-weight:500}.connection-status .status-item .user-id[data-v-23c54516]{font-family:monospace;font-size:12px;color:#666;background:#f5f5f5;padding:2px 6px;border-radius:4px}@keyframes typing-23c54516{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}@media (max-width: 768px){.sidebar[data-v-23c54516]{position:fixed;left:0;top:0;height:100vh;z-index:1000;transform:translate(-100%)}.sidebar[data-v-23c54516]:not(.collapsed){transform:translate(0)}.chat-main[data-v-23c54516]{width:100%}.welcome-features[data-v-23c54516]{flex-direction:column;gap:20px!important}} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HistorySimple-caafbb99.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HistorySimple-caafbb99.css deleted file mode 100644 index 8519128..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HistorySimple-caafbb99.css +++ /dev/null @@ -1 +0,0 @@ -.history-simple[data-v-4baa7231]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:20px}.history-simple .page-header[data-v-4baa7231]{display:flex;justify-content:space-between;align-items:center;background:rgba(255,255,255,.1);padding:20px;border-radius:12px;margin-bottom:20px}.history-simple .page-header h1[data-v-4baa7231]{color:#fff;margin:0}.history-simple .page-content[data-v-4baa7231]{background:rgba(255,255,255,.95);padding:40px;border-radius:12px;text-align:center}.history-simple .page-content .welcome-message h2[data-v-4baa7231]{color:#333;margin-bottom:16px}.history-simple .page-content .welcome-message p[data-v-4baa7231]{color:#666;margin-bottom:32px;font-size:16px}.history-simple .page-content .welcome-message .test-buttons[data-v-4baa7231]{display:flex;gap:16px;justify-content:center;flex-wrap:wrap} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/Home-c2a76248.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/Home-c2a76248.css deleted file mode 100644 index 284c78c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/Home-c2a76248.css +++ /dev/null @@ -1 +0,0 @@ -.api-test[data-v-5881151e]{margin:16px}.test-buttons[data-v-5881151e]{margin-bottom:16px}.test-results[data-v-5881151e]{max-height:600px;overflow-y:auto}.result-item[data-v-5881151e]{margin-bottom:12px}.result-details[data-v-5881151e]{margin-top:8px}.result-data pre[data-v-5881151e]{background:#f5f5f5;padding:8px;border-radius:4px;font-size:12px;max-height:200px;overflow-y:auto}.result-error code[data-v-5881151e]{background:#fff2f0;color:#ff4d4f;padding:2px 4px;border-radius:3px}.result-time[data-v-5881151e]{margin-top:8px;color:#666}.home-container[data-v-d42b9121]{min-height:100vh;background:var(--gradient-primary);position:relative;overflow-x:hidden}.header[data-v-d42b9121]{position:fixed;top:0;left:0;right:0;z-index:1000;padding:var(--spacing-md) 0}.header .header-content[data-v-d42b9121]{max-width:1200px;margin:0 auto;padding:0 var(--spacing-lg);display:flex;align-items:center;justify-content:space-between}.header .logo h1[data-v-d42b9121]{font-size:24px;margin:0}.header .logo .subtitle[data-v-d42b9121]{font-size:12px;color:#fffc;margin-left:var(--spacing-sm)}.header .nav-menu[data-v-d42b9121]{display:flex;gap:var(--spacing-lg)}.header .nav-menu .nav-item[data-v-d42b9121]{color:#ffffffe6!important;border:none!important;box-shadow:none!important;background:transparent!important;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--border-radius-small);transition:all .3s ease;display:flex;align-items:center;gap:var(--spacing-xs)}.header .nav-menu .nav-item[data-v-d42b9121]:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}.main-content[data-v-d42b9121]{padding-top:80px}.hero-section[data-v-d42b9121]{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;padding:var(--spacing-xxl) var(--spacing-lg)}.hero-section .hero-content[data-v-d42b9121]{text-align:center;max-width:600px;color:#fff}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:48px;font-weight:700;margin-bottom:var(--spacing-lg);line-height:1.2}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:18px;margin-bottom:var(--spacing-xxl);opacity:.9;line-height:1.6}.hero-section .hero-content .hero-actions[data-v-d42b9121]{display:flex;gap:var(--spacing-md);justify-content:center;flex-wrap:wrap}.hero-section .hero-content .hero-actions .start-chat-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]{height:50px;padding:0 var(--spacing-xl);font-size:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.3);color:#fff}.hero-section .hero-content .hero-actions .learn-more-btn[data-v-d42b9121]:hover{background:rgba(255,255,255,.2);border-color:#ffffff80}.hero-section .hero-decoration[data-v-d42b9121]{position:absolute;top:50%;right:10%;transform:translateY(-50%)}.hero-section .hero-decoration .floating-card[data-v-d42b9121]{position:absolute;padding:var(--spacing-md);background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);color:#fff;display:flex;align-items:center;gap:var(--spacing-sm);white-space:nowrap}.hero-section .hero-decoration .floating-card .icon[data-v-d42b9121]{font-size:20px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(1){top:-60px;right:0}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(2){top:20px;right:-40px}.hero-section .hero-decoration .floating-card[data-v-d42b9121]:nth-child(3){top:100px;right:20px}.features-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.features-section .section-header[data-v-d42b9121]{text-align:center;margin-bottom:var(--spacing-xxl);color:#fff}.features-section .section-header .section-title[data-v-d42b9121]{font-size:36px;margin-bottom:var(--spacing-md)}.features-section .section-header .section-description[data-v-d42b9121]{font-size:16px;opacity:.8}.features-section .features-grid[data-v-d42b9121]{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:var(--spacing-xl);max-width:1000px;margin:0 auto}.features-section .features-grid .feature-card[data-v-d42b9121]{text-align:center;background:rgba(255,255,255,.95)}.features-section .features-grid .feature-card .feature-icon[data-v-d42b9121]{font-size:48px;color:var(--primary-color);margin-bottom:var(--spacing-md)}.features-section .features-grid .feature-card .feature-title[data-v-d42b9121]{font-size:20px;margin-bottom:var(--spacing-md);color:var(--text-primary)}.features-section .features-grid .feature-card .feature-description[data-v-d42b9121]{color:var(--text-secondary);line-height:1.6}.stats-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{max-width:800px;margin:0 auto;padding:var(--spacing-xl);display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--spacing-xl);text-align:center}.stats-section .stats-container .stat-item .stat-number[data-v-d42b9121]{font-size:36px;font-weight:700;margin-bottom:var(--spacing-sm)}.stats-section .stats-container .stat-item .stat-label[data-v-d42b9121]{color:#fffc;font-size:14px}.api-test-section[data-v-d42b9121]{padding:var(--spacing-xxl) var(--spacing-lg);background:rgba(255,255,255,.05)}.api-test-section[data-v-d42b9121] .ant-card{background:rgba(255,255,255,.95);border:none;border-radius:var(--border-radius-large);box-shadow:var(--shadow-large)}.footer[data-v-d42b9121]{padding:var(--spacing-xl) var(--spacing-lg);background:rgba(0,0,0,.2)}.footer .footer-content[data-v-d42b9121]{text-align:center;color:#ffffffb3}@media (max-width: 768px){.header .header-content[data-v-d42b9121]{padding:0 var(--spacing-md)}.header .nav-menu[data-v-d42b9121]{gap:var(--spacing-md)}.header .nav-menu .nav-item[data-v-d42b9121]{padding:var(--spacing-xs) var(--spacing-sm);font-size:14px}.hero-section .hero-content .hero-title[data-v-d42b9121]{font-size:32px}.hero-section .hero-content .hero-description[data-v-d42b9121]{font-size:16px}.hero-section .hero-decoration[data-v-d42b9121]{display:none}.features-section .features-grid[data-v-d42b9121]{grid-template-columns:1fr;gap:var(--spacing-lg)}.stats-section .stats-container[data-v-d42b9121]{grid-template-columns:repeat(2,1fr);gap:var(--spacing-lg)}} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HomeTest-dd1db0d3.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HomeTest-dd1db0d3.css deleted file mode 100644 index f278ea2..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/HomeTest-dd1db0d3.css +++ /dev/null @@ -1 +0,0 @@ -.home-test[data-v-6c328404]{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:40px;text-align:center;color:#fff}h1[data-v-6c328404]{font-size:2.5rem;margin-bottom:20px;text-shadow:2px 2px 4px rgba(0,0,0,.3)}p[data-v-6c328404]{font-size:1.2rem;margin-bottom:30px}.test-buttons[data-v-6c328404]{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}.test-btn[data-v-6c328404]{padding:12px 24px;font-size:16px;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.3);border-radius:8px;color:#fff;cursor:pointer;transition:all .3s ease}.test-btn[data-v-6c328404]:hover{background:rgba(255,255,255,.3);border-color:#ffffff80;transform:translateY(-2px)}.info[data-v-6c328404]{background:rgba(255,255,255,.1);padding:20px;border-radius:12px;max-width:400px;margin:0 auto}.info p[data-v-6c328404]{margin:10px 0;font-size:1rem} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/index-4213a94d.css b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/index-4213a94d.css deleted file mode 100644 index 6834c96..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/css/index-4213a94d.css +++ /dev/null @@ -1 +0,0 @@ -.env-info[data-v-89545570]{font-family:Monaco,Menlo,Ubuntu Mono,monospace}.env-details code[data-v-89545570]{background:#f5f5f5;padding:2px 4px;border-radius:3px;font-size:12px}.env-actions[data-v-89545570]{text-align:center}#app{min-height:100vh;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:rgba(255,255,255,.1);border-radius:3px}::-webkit-scrollbar-thumb{background:rgba(255,255,255,.3);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.5)}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-up-enter-active,.slide-up-leave-active{transition:all .3s ease}.slide-up-enter-from{transform:translateY(20px);opacity:0}.slide-up-leave-to{transform:translateY(-20px);opacity:0}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)}@-ms-viewport{width:device-width}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]{-webkit-text-decoration:underline dotted;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}:root{--primary-color: #667eea;--primary-light: #8fa4f3;--primary-dark: #4c63d2;--secondary-color: #764ba2;--accent-color: #f093fb;--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);--gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);--gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);--text-primary: #2c3e50;--text-secondary: #7f8c8d;--text-light: #bdc3c7;--text-white: #ffffff;--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--bg-dark: #2c3e50;--bg-overlay: rgba(0, 0, 0, .5);--border-color: #e9ecef;--border-radius: 12px;--border-radius-small: 8px;--border-radius-large: 16px;--box-shadow: 0 4px 20px rgba(0, 0, 0, .1);--box-shadow-hover: 0 8px 30px rgba(0, 0, 0, .15);--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-xxl: 48px}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}.flex-between{display:flex;align-items:center;justify-content:space-between}.flex-column{display:flex;flex-direction:column}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.w-full{width:100%}.h-full{height:100%}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.gradient-text{background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:600}.glass{background:rgba(255,255,255,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2);border-radius:var(--border-radius)}.card{background:var(--bg-primary);border-radius:var(--border-radius);box-shadow:var(--box-shadow);padding:var(--spacing-lg);transition:all .3s ease}.card:hover{box-shadow:var(--box-shadow-hover);transform:translateY(-2px)}.ant-btn{border-radius:var(--border-radius-small);font-weight:500;transition:all .3s ease}.ant-btn.gradient-btn{background:var(--gradient-primary);border:none;color:#fff}.ant-btn.gradient-btn:hover{background:var(--gradient-primary);opacity:.9;transform:translateY(-1px);box-shadow:0 4px 15px #667eea66}.ant-input{border-radius:var(--border-radius-small);border:1px solid var(--border-color);transition:all .3s ease}.ant-input:focus{border-color:var(--primary-color);box-shadow:0 0 0 2px #667eea33}.message-bubble{max-width:70%;padding:var(--spacing-md);border-radius:var(--border-radius);margin-bottom:var(--spacing-md);word-wrap:break-word}.message-bubble.user{background:var(--gradient-primary);color:#fff;margin-left:auto;border-bottom-right-radius:var(--spacing-xs)}.message-bubble.assistant{background:var(--bg-primary);color:var(--text-primary);border:1px solid var(--border-color);border-bottom-left-radius:var(--spacing-xs)}@media (max-width: 768px){.message-bubble{max-width:85%}.card{padding:var(--spacing-md)}}.bounce-in{animation:bounceIn .6s ease}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(.9)}to{opacity:1;transform:scale(1)}}.fade-in-up{animation:fadeInUp .6s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.loading-dots{display:inline-block}.loading-dots:after{content:"";animation:dots 1.5s steps(5,end) infinite}@keyframes dots{0%,20%{color:#0000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}40%{color:#000;text-shadow:.25em 0 0 rgba(0,0,0,0),.5em 0 0 rgba(0,0,0,0)}60%{text-shadow:.25em 0 0 black,.5em 0 0 rgba(0,0,0,0)}80%,to{text-shadow:.25em 0 0 black,.5em 0 0 black}} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/AnalysisSimple-7a988a7b.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/AnalysisSimple-7a988a7b.js deleted file mode 100644 index 5bda6bc..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/AnalysisSimple-7a988a7b.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as d,u as p,b as m,o as v,e as f,f as t,c as o,w as n,g as l}from"./index-bf5be19f.js";const y={class:"analysis-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},c={__name:"AnalysisSimple",setup(x){const a=p(),_=()=>{a.push("/")},r=()=>{alert("情绪分析页面测试按钮工作正常!")};return(i,s)=>{const e=m("a-button");return v(),f("div",y,[t("div",k,[s[3]||(s[3]=t("h1",null,"情绪分析",-1)),o(e,{onClick:_},{default:n(()=>s[2]||(s[2]=[l("返回首页")])),_:1,__:[2]})]),t("div",b,[t("div",g,[s[7]||(s[7]=t("h2",null,"情绪分析功能",-1)),s[8]||(s[8]=t("p",null,"这里将提供强大的情绪分析功能,帮助您了解自己的情绪状态。",-1)),t("div",C,[o(e,{type:"primary",onClick:r},{default:n(()=>s[4]||(s[4]=[l("测试按钮")])),_:1,__:[4]}),o(e,{onClick:s[0]||(s[0]=u=>i.$router.push("/chat"))},{default:n(()=>s[5]||(s[5]=[l("开始对话")])),_:1,__:[5]}),o(e,{onClick:s[1]||(s[1]=u=>i.$router.push("/history"))},{default:n(()=>s[6]||(s[6]=[l("查看历史")])),_:1,__:[6]})])])])])}}},$=d(c,[["__scopeId","data-v-28c071bd"]]);export{$ as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/ChatComplete-7551ced4.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/ChatComplete-7551ced4.js deleted file mode 100644 index 3d34fd9..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/ChatComplete-7551ced4.js +++ /dev/null @@ -1 +0,0 @@ -import{c as l,D as De,P as ke,R as Ae,q as ze,a as k,j as V,m as H,s as be,v as Ie,x as Ye,y as R,_ as Oe,b as z,o as m,e as y,w as _,f as r,l as i,g as x,t as C,i as P,F as q,h as G,n as N,u as He,z as Ee,A as Le,k as Te,B,G as Ne,H as Be}from"./index-bf5be19f.js";import{A as I,c as T,H as Z,B as Re,R as U,M as oe,S as Fe}from"./chat-e1054b12.js";var Ue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};const Ve=Ue;var qe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M573 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40zm-280 0c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}},{tag:"path",attrs:{d:"M894 345a343.92 343.92 0 00-189-130v.1c-17.1-19-36.4-36.5-58-52.1-163.7-119-393.5-82.7-513 81-96.3 133-92.2 311.9 6 439l.8 132.6c0 3.2.5 6.4 1.5 9.4a31.95 31.95 0 0040.1 20.9L309 806c33.5 11.9 68.1 18.7 102.5 20.6l-.5.4c89.1 64.9 205.9 84.4 313 49l127.1 41.4c3.2 1 6.5 1.6 9.9 1.6 17.7 0 32-14.3 32-32V753c88.1-119.6 90.4-284.9 1-408zM323 735l-12-5-99 31-1-104-8-9c-84.6-103.2-90.2-251.9-11-361 96.4-132.2 281.2-161.4 413-66 132.2 96.1 161.5 280.6 66 412-80.1 109.9-223.5 150.5-348 102zm505-17l-8 10 1 104-98-33-12 5c-56 20.8-115.7 22.5-171 7l-.2-.1A367.31 367.31 0 00729 676c76.4-105.3 88.8-237.6 44.4-350.4l.6.4c23 16.5 44.1 37.1 62 62 72.6 99.6 68.5 235.2-8 330z"}},{tag:"path",attrs:{d:"M433 421c-23.1 0-41 17.9-41 40s17.9 40 41 40c21.1 0 39-17.9 39-40s-17.9-40-39-40z"}}]},name:"comment",theme:"outlined"};const Ge=qe;var Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const We=Ze;var Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Qe=Je;var Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};const Ke=Xe;var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"};const tt=et;var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};const st=nt;var at={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"};const rt=at;function le(n){for(var t=1;t{const n=k([]),t=k(null),e=k([]),s=k(!1),a=k(!1),g=V(()=>n.value.length>0),h=V(()=>{var v;return(v=t.value)==null?void 0:v.conversationId}),w=async v=>{try{const f=await T.getConversations(v);f.success&&(n.value=f.data||[])}catch(f){console.error("获取会话列表失败:",f),H.error("获取会话列表失败")}},d=async v=>{try{s.value=!0,console.log("创建会话请求参数:",v);const f=await T.createConversation(v);if(console.log("创建会话响应:",f),f.success){const p=f.data,S={conversationId:p.conversationId,userId:p.userId,title:p.title||"新对话",type:p.type||"emotion_chat",status:p.status||"active",createTime:p.createTime||new Date().toISOString(),updateTime:p.updateTime||new Date().toISOString(),messageCount:0};return n.value.unshift(S),t.value=S,e.value=[],S}throw new Error(f.message||"创建会话失败")}catch(f){throw console.error("创建会话失败:",f),H.error(f.message||"创建会话失败"),f}finally{s.value=!1}},c=async(v,f=!0)=>{if(!t.value){H.error("请先创建会话");return}try{a.value=!0;const p={id:`user_${Date.now()}`,content:v,sender:"user",timestamp:new Date,type:"text"};e.value.push(p),console.log("添加用户消息:",p);const S={userId:t.value.userId,conversationId:t.value.conversationId,message:v,needEmotionAnalysis:f,type:"text"};console.log("发送消息请求:",S);const M=await T.sendMessage(S);if(console.log("发送消息响应:",M),M.success){const E={id:M.data.messageId||`ai_${Date.now()}`,content:M.data.content,sender:"assistant",timestamp:M.data.timestamp?new Date(M.data.timestamp):new Date,type:M.data.type||"text",emotionAnalysis:M.data.emotionAnalysis};return e.value.push(E),console.log("添加AI消息:",E),t.value&&(t.value.updateTime=new Date().toISOString(),t.value.messageCount=(t.value.messageCount||0)+2),E}throw new Error(M.message||"发送消息失败")}catch(p){throw console.error("发送消息失败:",p),H.error(p.message||"发送消息失败"),e.value=e.value.filter(S=>S.id!==`user_${Date.now()}`),p}finally{a.value=!1}},O=async v=>{try{s.value=!0;const f=await T.getMessages(v);f.success&&(e.value=f.data||[])}catch(f){console.error("获取消息失败:",f),H.error("获取消息失败")}finally{s.value=!1}},A=async v=>{t.value=v,await O(v.conversationId)},j=()=>{t.value=null,e.value=[]};return{conversations:n,currentConversation:t,messages:e,loading:s,typing:a,hasConversations:g,currentConversationId:h,fetchConversations:w,createConversation:d,sendMessage:c,fetchMessages:O,switchConversation:A,clearCurrentConversation:j,deleteConversation:async v=>{var f;try{await T.deleteConversation(v),n.value=n.value.filter(p=>p.conversationId!==v),((f=t.value)==null?void 0:f.conversationId)===v&&j(),H.success("删除成功")}catch(p){console.error("删除会话失败:",p),H.error("删除会话失败")}}}});var we={exports:{}};(function(n,t){(function(e,s){n.exports=s()})(be,function(){return function(e,s,a){e=e||{};var g=s.prototype,h={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function w(c,O,A,j){return g.fromToBase(c,O,A,j)}a.en.relativeTime=h,g.fromToBase=function(c,O,A,j,Y){for(var v,f,p,S=A.$locale().relativeTime||h,M=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=M.length,L=0;L0,u<=D.r||!D.r){u<=1&&L>0&&(D=M[L-1]);var o=S[D.l];Y&&(u=Y(""+u)),f=typeof o=="string"?o.replace("%d",u):o(u,O,D.l,p);break}}if(O)return f;var $=p?S.future:S.past;return typeof $=="function"?$(f):$.replace("%s",f)},g.to=function(c,O){return w(c,O,this,!0)},g.from=function(c,O){return w(c,O,this)};var d=function(c){return c.$u?a.utc():a()};g.toNow=function(c){return this.to(d(this),c)},g.fromNow=function(c){return this.from(d(this),c)}}})})(we);var xt=we.exports;const jt=Ie(xt);var Dt={exports:{}};(function(n,t){(function(e,s){n.exports=s(Ye)})(be,function(e){function s(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var a=s(e),g={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(h,w){return w==="W"?h+"周":h+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(h,w){var d=100*h+w;return d<600?"凌晨":d<900?"早上":d<1100?"上午":d<1300?"中午":d<1800?"下午":"晚上"}};return a.default.locale(g,null,!0),g})})(Dt);R.extend(jt);R.locale("zh-cn");function _e(n,t="YYYY-MM-DD HH:mm:ss"){if(!n)return"";const e=R(),s=R(n),a=e.diff(s,"hour"),g=e.diff(s,"day");return g===0?a===0?s.fromNow():s.format("HH:mm"):g===1?`昨天 ${s.format("HH:mm")}`:g<7?s.format("dddd HH:mm"):s.year()===e.year()?s.format("MM-DD HH:mm"):s.format(t)}function kt(n){if(!n)return"";let e=n.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\n/g,"
");const s=/(https?:\/\/[^\s]+)/g;e=e.replace(s,'$1');const a=/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g;e=e.replace(a,'$1');const g=/(\d{3}-\d{4}-\d{4}|\d{11})/g;return e=e.replace(g,'$1'),Object.entries({":)":"😊",":-)":"😊",":(":"😢",":-(":"😢",":D":"😃",":-D":"😃",":P":"😛",":-P":"😛",";)":"😉",";-)":"😉",":o":"😮",":-o":"😮",":|":"😐",":-|":"😐","<3":"❤️","{const c=new RegExp(At(w),"g");e=e.replace(c,d)}),e}function At(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const zt={class:"emotion-analysis-simple"},It={class:"card-title"},Yt={class:"analysis-content"},Ht={key:0,class:"primary-emotion"},Et={key:0,class:"emotion-intensity"},Lt={key:1,class:"emotion-polarity"},Tt={key:2,class:"keywords"},Nt={class:"keywords-list"},Bt={key:3,class:"suggestion"},Rt={class:"suggestion-label"},Ft={class:"suggestion-content"},Ut={key:4,class:"confidence"},Vt={class:"confidence-value"},qt={__name:"EmotionAnalysisSimple",props:{analysis:{type:Object,required:!0,default:()=>({})}},setup(n){const t={joy:"喜悦",sadness:"悲伤",anger:"愤怒",fear:"恐惧",surprise:"惊讶",disgust:"厌恶",trust:"信任",anticipation:"期待",anxiety:"焦虑",depression:"抑郁",excitement:"兴奋",calm:"平静",stress:"压力",happiness:"快乐",worry:"担忧",relief:"放松",frustration:"沮丧",hope:"希望",love:"爱",hate:"恨"},e={positive:"积极",negative:"消极",neutral:"中性"},s=d=>t[d]||d,a=d=>e[d]||d,g=d=>({joy:"gold",happiness:"gold",excitement:"orange",love:"magenta",trust:"blue",hope:"cyan",calm:"green",relief:"green",sadness:"blue",depression:"purple",worry:"orange",anxiety:"orange",stress:"red",anger:"red",frustration:"red",hate:"red",fear:"volcano",surprise:"lime",anticipation:"geekblue",disgust:"default"})[d]||"default",h=d=>({positive:"success",negative:"error",neutral:"default"})[d]||"default",w=d=>d>=.8?"#52c41a":d>=.6?"#faad14":"#ff4d4f";return(d,c)=>{const O=z("a-tag"),A=z("a-progress"),j=z("a-card");return m(),y("div",zt,[l(j,{size:"small",class:"analysis-card"},{title:_(()=>[r("div",It,[l(i(Z),{class:"title-icon"}),c[0]||(c[0]=x(" 情绪分析 "))])]),default:_(()=>[r("div",Yt,[n.analysis.primaryEmotion?(m(),y("div",Ht,[c[1]||(c[1]=r("span",{class:"emotion-label"},"主要情绪:",-1)),l(O,{color:g(n.analysis.primaryEmotion),class:"emotion-tag"},{default:_(()=>[x(C(s(n.analysis.primaryEmotion)),1)]),_:1},8,["color"]),n.analysis.intensity?(m(),y("span",Et," ("+C(Math.round(n.analysis.intensity*100))+"%) ",1)):P("",!0)])):P("",!0),n.analysis.polarity?(m(),y("div",Lt,[c[2]||(c[2]=r("span",{class:"polarity-label"},"情绪倾向:",-1)),l(O,{color:h(n.analysis.polarity),class:"polarity-tag"},{default:_(()=>[x(C(a(n.analysis.polarity)),1)]),_:1},8,["color"])])):P("",!0),n.analysis.keywords&&n.analysis.keywords.length>0?(m(),y("div",Tt,[c[3]||(c[3]=r("span",{class:"keywords-label"},"关键词:",-1)),r("div",Nt,[(m(!0),y(q,null,G(n.analysis.keywords.slice(0,3),Y=>(m(),N(O,{key:Y,class:"keyword-tag",size:"small"},{default:_(()=>[x(C(Y),1)]),_:2},1024))),128))])])):P("",!0),n.analysis.suggestion?(m(),y("div",Bt,[r("div",Rt,[l(i(Re),{class:"suggestion-icon"}),c[4]||(c[4]=x(" 建议: "))]),r("div",Ft,C(n.analysis.suggestion),1)])):P("",!0),n.analysis.confidence?(m(),y("div",Ut,[c[5]||(c[5]=r("span",{class:"confidence-label"},"置信度:",-1)),l(A,{percent:Math.round(n.analysis.confidence*100),"stroke-color":w(n.analysis.confidence),size:"small","show-info":!1,style:{width:"80px",display:"inline-block","margin-left":"8px"}},null,8,["percent","stroke-color"]),r("span",Vt,C(Math.round(n.analysis.confidence*100))+"%",1)])):P("",!0)])]),_:1})])}}},Gt=Oe(qt,[["__scopeId","data-v-c61d1b05"]]);const Zt={class:"chat-complete"},Wt={class:"sidebar-header"},Jt={key:0,class:"logo"},Qt={key:0,class:"sidebar-content"},Xt={class:"conversations-list"},Kt={class:"list-header"},en={key:0,class:"conversations"},tn=["onClick"],nn={class:"conversation-info"},sn={class:"conversation-title"},an={class:"conversation-time"},rn={key:1,class:"empty-conversations"},on={key:1,class:"user-info"},ln={class:"user-avatar"},cn={class:"user-details"},un={class:"user-name"},dn={class:"chat-main"},fn={key:0,class:"chat-header"},mn={class:"chat-info"},vn={class:"chat-title"},pn={class:"chat-status"},gn={class:"chat-actions"},yn={key:0,class:"welcome-screen"},hn={class:"welcome-content"},_n={class:"welcome-icon"},bn={class:"welcome-features"},On={class:"feature-item"},wn={class:"feature-item"},Cn={class:"feature-item"},Mn={key:1,class:"messages-list"},Sn={class:"message-avatar"},Pn={class:"message-content"},$n={class:"message-bubble"},xn=["innerHTML"],jn={class:"message-time"},Dn={key:0,class:"emotion-analysis"},kn={key:0,class:"message-item assistant"},An={class:"message-avatar"},zn={key:1,class:"input-area"},In={class:"input-container"},Yn={class:"input-actions"},Hn={class:"connection-status"},En={class:"status-item"},Ln={class:"status-item"},Tn={class:"status-item"},Nn={class:"status-item"},Bn={class:"user-id"},Rn={__name:"ChatComplete",setup(n){He();const t=Ee(),e=$t(),s=k(!1),a=k(""),g=k(!0),h=k(null),w=k(!1),d=k({connected:!1}),c=k({healthy:!1}),O=V(()=>e.typing?"AI正在思考中...":"输入您想说的话..."),A=()=>{s.value=!s.value},j=async()=>{try{const u=`对话 ${new Date().toLocaleString()}`;await e.createConversation({userId:t.userInfo.id,title:u,type:"emotion_chat",initialMessage:"您好,我想开始一段新的对话"}),H.success("新对话创建成功")}catch(u){console.error("创建对话失败:",u)}},Y=async()=>{try{await e.fetchConversations(t.userInfo.id)}catch(u){console.error("刷新对话列表失败:",u)}},v=async u=>{try{await e.switchConversation(u),D()}catch(o){console.error("切换对话失败:",o)}},f=async u=>{try{await e.deleteConversation(u)}catch(o){console.error("删除对话失败:",o)}},p=async()=>{if(!a.value.trim())return;const u=a.value.trim();a.value="";try{await e.sendMessage(u,g.value),D()}catch(o){console.error("发送消息失败:",o)}},S=u=>{u.key==="Enter"&&!u.shiftKey&&(u.preventDefault(),p())},M=()=>{var u;return e.typing?"AI正在输入...":((u=e.currentConversation)==null?void 0:u.status)==="active"?"对话中":"已结束"},E=async()=>{if(e.currentConversation)try{await T.endConversation(e.currentConversation.conversationId),e.currentConversation.status="ended",H.success("对话已结束")}catch(u){console.error("结束对话失败:",u)}},L=async()=>{w.value=!0;try{const u=await T.healthCheck();d.value.connected=u.success,c.value.healthy=u.success&&u.data}catch{d.value.connected=!1,c.value.healthy=!1}},D=()=>{Ne(()=>{h.value&&(h.value.scrollTop=h.value.scrollHeight)})};return Le(()=>e.messages.length,()=>{D()}),Te(async()=>{console.log("ChatComplete组件挂载,用户信息:",t.userInfo),await Y(),!e.currentConversation&&e.conversations.length===0&&await j()}),(u,o)=>{const $=z("a-button"),Ce=z("a-menu-item"),Me=z("a-menu"),Se=z("a-dropdown"),Pe=z("a-textarea"),$e=z("a-tooltip"),F=z("a-tag"),xe=z("a-modal");return m(),y("div",Zt,[r("aside",{class:B(["sidebar",{collapsed:s.value}])},[r("div",Wt,[s.value?P("",!0):(m(),y("div",Jt,o[4]||(o[4]=[r("h2",{class:"gradient-text"},"情绪博物馆",-1),r("span",{class:"subtitle"},"AI心理助手",-1)]))),l($,{type:"text",class:"collapse-btn",onClick:A},{default:_(()=>[s.value?(m(),N(i(pt),{key:0})):(m(),N(i(mt),{key:1}))]),_:1})]),s.value?P("",!0):(m(),y("div",Qt,[l($,{type:"primary",class:"new-chat-btn",block:"",onClick:j,loading:i(e).loading,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-bottom":"20px"}},{default:_(()=>[l(i(_t)),o[5]||(o[5]=x(" 新建对话 "))]),_:1,__:[5]},8,["loading"]),r("div",Xt,[r("div",Kt,[o[6]||(o[6]=r("span",{class:"list-title"},"最近对话",-1)),l($,{type:"text",size:"small",onClick:Y,loading:i(e).loading},{default:_(()=>[l(i(Ct))]),_:1},8,["loading"])]),i(e).hasConversations?(m(),y("div",en,[(m(!0),y(q,null,G(i(e).conversations,b=>(m(),y("div",{class:B(["conversation-item",{active:b.conversationId===i(e).currentConversationId}]),key:b.conversationId,onClick:je=>v(b)},[r("div",nn,[r("div",sn,C(b.title),1),r("div",an,C(i(_e)(b.updateTime)),1)]),l(Se,{trigger:["click"],onClick:o[0]||(o[0]=Be(()=>{},["stop"]))},{overlay:_(()=>[l(Me,null,{default:_(()=>[l(Ce,{onClick:je=>f(b.conversationId)},{default:_(()=>[l(i(dt)),o[7]||(o[7]=x(" 删除对话 "))]),_:2,__:[7]},1032,["onClick"])]),_:2},1024)]),default:_(()=>[l($,{type:"text",size:"small",class:"more-btn"},{default:_(()=>[l(i(yt))]),_:1})]),_:2},1024)],10,tn))),128))])):(m(),y("div",rn,[l(i(ct),{class:"empty-icon"}),o[8]||(o[8]=r("p",null,"暂无对话记录",-1))]))])])),s.value?P("",!0):(m(),y("div",on,[r("div",ln,[l(i(he))]),r("div",cn,[r("div",un,C(i(t).userInfo.name),1),r("div",{class:B(["user-status",{guest:i(t).userInfo.isGuest}])},C(i(t).userInfo.isGuest?"访客模式":"在线"),3)])]))],2),r("main",dn,[i(e).currentConversation?(m(),y("header",fn,[r("div",mn,[r("h3",vn,C(i(e).currentConversation.title),1),r("span",pn,C(M()),1)]),r("div",gn,[l($,{type:"text",onClick:L},{default:_(()=>[l(i(lt)),o[9]||(o[9]=x(" 连接状态 "))]),_:1,__:[9]}),i(e).currentConversation.status==="active"?(m(),N($,{key:0,type:"text",onClick:E},{default:_(()=>[l(i(Ot)),o[10]||(o[10]=x(" 结束对话 "))]),_:1,__:[10]})):P("",!0)])])):P("",!0),r("div",{class:"messages-container",ref_key:"messagesContainer",ref:h},[i(e).currentConversation?(m(),y("div",Mn,[(m(!0),y(q,null,G(i(e).messages,b=>(m(),y("div",{class:B(["message-item",b.sender]),key:b.id},[r("div",Sn,[b.sender==="user"?(m(),N(i(he),{key:0})):(m(),N(i(U),{key:1}))]),r("div",Pn,[r("div",$n,[r("div",{class:"message-text",innerHTML:i(kt)(b.content)},null,8,xn),r("div",jn,C(i(_e)(b.timestamp)),1)]),b.emotionAnalysis?(m(),y("div",Dn,[l(Gt,{analysis:b.emotionAnalysis},null,8,["analysis"])])):P("",!0)])],2))),128)),i(e).typing?(m(),y("div",kn,[r("div",An,[l(i(U))]),o[17]||(o[17]=r("div",{class:"message-content"},[r("div",{class:"message-bubble typing"},[r("div",{class:"typing-indicator"},[r("span"),r("span"),r("span")]),r("div",{class:"typing-text"},"AI正在思考中...")])],-1))])):P("",!0)])):(m(),y("div",yn,[r("div",hn,[r("div",_n,[l(i(U))]),o[15]||(o[15]=r("h2",{class:"welcome-title"},"欢迎使用AI心理健康助手",-1)),o[16]||(o[16]=r("p",{class:"welcome-description"}," 我是您的专属AI助手,可以为您提供情绪支持、心理分析和个性化建议。 让我们开始一段温暖的对话吧! ",-1)),r("div",bn,[r("div",On,[l(i(Z)),o[11]||(o[11]=r("span",null,"情绪分析",-1))]),r("div",wn,[l(i(oe)),o[12]||(o[12]=r("span",null,"智能对话",-1))]),r("div",Cn,[l(i(Fe)),o[13]||(o[13]=r("span",null,"隐私保护",-1))])]),l($,{type:"primary",size:"large",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-top":"20px"}},{default:_(()=>[l(i(oe)),o[14]||(o[14]=x(" 开始对话 "))]),_:1,__:[14]})])]))],512),i(e).currentConversation?(m(),y("div",zn,[r("div",In,[l(Pe,{value:a.value,"onUpdate:value":o[1]||(o[1]=b=>a.value=b),placeholder:O.value,"auto-size":{minRows:1,maxRows:4},onKeydown:S,disabled:i(e).typing,class:"message-input"},null,8,["value","placeholder","disabled"]),r("div",Yn,[l($e,{title:"情绪分析"},{default:_(()=>[l($,{type:"text",class:B({active:g.value}),onClick:o[2]||(o[2]=b=>g.value=!g.value)},{default:_(()=>[l(i(Z))]),_:1},8,["class"])]),_:1}),l($,{type:"primary",class:"send-btn",onClick:p,loading:i(e).typing,disabled:!a.value.trim(),style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none"}},{default:_(()=>[l(i(St))]),_:1},8,["loading","disabled"])])])])):P("",!0)]),l(xe,{open:w.value,"onUpdate:open":o[3]||(o[3]=b=>w.value=b),title:"连接状态",footer:null,width:"400px"},{default:_(()=>[r("div",Hn,[r("div",En,[o[19]||(o[19]=r("span",{class:"status-label"},"前端状态:",-1)),l(F,{color:"success"},{default:_(()=>o[18]||(o[18]=[x("正常")])),_:1,__:[18]})]),r("div",Ln,[o[20]||(o[20]=r("span",{class:"status-label"},"后端连接:",-1)),l(F,{color:d.value.connected?"success":"error"},{default:_(()=>[x(C(d.value.connected?"已连接":"连接失败"),1)]),_:1},8,["color"])]),r("div",Tn,[o[21]||(o[21]=r("span",{class:"status-label"},"AI服务:",-1)),l(F,{color:c.value.healthy?"success":"warning"},{default:_(()=>[x(C(c.value.healthy?"正常":"检查中"),1)]),_:1},8,["color"])]),r("div",Nn,[o[22]||(o[22]=r("span",{class:"status-label"},"用户ID:",-1)),r("span",Bn,C(i(t).userInfo.id),1)])])]),_:1},8,["open"])])}}},Vn=Oe(Rn,[["__scopeId","data-v-23c54516"]]);export{Vn as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HistorySimple-e430de64.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HistorySimple-e430de64.js deleted file mode 100644 index 68a4578..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HistorySimple-e430de64.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as p,u as d,b as m,o as v,e as f,f as s,c as e,w as n,g as l}from"./index-bf5be19f.js";const y={class:"history-simple"},k={class:"page-header"},b={class:"page-content"},g={class:"welcome-message"},C={class:"test-buttons"},x={__name:"HistorySimple",setup(B){const i=d(),r=()=>{i.push("/")},_=()=>{alert("历史记录页面测试按钮工作正常!")};return(a,t)=>{const o=m("a-button");return v(),f("div",y,[s("div",k,[t[3]||(t[3]=s("h1",null,"对话历史",-1)),e(o,{onClick:r},{default:n(()=>t[2]||(t[2]=[l("返回首页")])),_:1,__:[2]})]),s("div",b,[s("div",g,[t[7]||(t[7]=s("h2",null,"对话历史记录",-1)),t[8]||(t[8]=s("p",null,"这里将显示您的所有对话历史记录。",-1)),s("div",C,[e(o,{type:"primary",onClick:_},{default:n(()=>t[4]||(t[4]=[l("测试按钮")])),_:1,__:[4]}),e(o,{onClick:t[0]||(t[0]=u=>a.$router.push("/chat"))},{default:n(()=>t[5]||(t[5]=[l("开始对话")])),_:1,__:[5]}),e(o,{onClick:t[1]||(t[1]=u=>a.$router.push("/analysis"))},{default:n(()=>t[6]||(t[6]=[l("情绪分析")])),_:1,__:[6]})])])])])}}},c=p(x,[["__scopeId","data-v-4baa7231"]]);export{c as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/Home-8e72349b.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/Home-8e72349b.js deleted file mode 100644 index 58b885f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/Home-8e72349b.js +++ /dev/null @@ -1 +0,0 @@ -import{c,C as ae,d as l,_ as X,r as ne,a as P,b as k,o as p,e as v,w as f,f as n,g,F as R,h as x,t as w,i as E,m as u,E as z,u as oe,j as ce,k as le,l as A,n as ie,p as ue}from"./index-bf5be19f.js";import{A as $,r as y,c as I,g as S,M,H as de,B as fe,S as ge,R as me}from"./chat-e1054b12.js";var pe={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-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};const ve=pe;var he={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"};const ye=he;var _e={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-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"};const be=_e;var Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};const Ce=Oe;function T(t){for(var e=1;es.success);return l("所有服务测试结果:",t),{success:e,message:e?"所有服务连接正常":"部分服务连接失败",results:t}},async testUserRegister(){l("开始测试用户注册流程...");const t={account:`test_${Date.now()}`,password:"Test123456",email:`test_${Date.now()}@example.com`,phone:`138${Date.now().toString().slice(-8)}`,nickname:"测试用户"};try{const e=await W.register(t);return l("用户注册测试成功:",e),{success:!0,message:"用户注册流程正常",data:e}}catch(e){return l("用户注册测试失败:",e),{success:!1,message:"用户注册流程失败",error:e.message}}},async testAiChat(){l("开始测试AI对话流程...");try{const t={userId:"test_user",title:"测试会话",type:"chat"},e=await I.createConversation(t);if(l("创建会话测试:",e),!e.success)throw new Error("创建会话失败");const s={userId:"test_user",conversationId:e.data.conversationId,message:"你好,这是一条测试消息"},r=await I.sendMessage(s);return l("发送消息测试:",r),{success:!0,message:"AI对话流程正常",data:{conversation:e.data,chat:r.data}}}catch(t){return l("AI对话测试失败:",t),{success:!1,message:"AI对话流程失败",error:t.message}}},async testEmotionAnalysis(){l("开始测试情绪分析...");try{const t={userId:"test_user",text:"我今天心情很好,阳光明媚,感觉充满了希望和活力。"},e=await I.analyzeEmotion(t);return l("情绪分析测试:",e),{success:!0,message:"情绪分析功能正常",data:e.data}}catch(t){return l("情绪分析测试失败:",t),{success:!1,message:"情绪分析功能失败",error:t.message}}},async testGuestChat(){l("开始测试访客聊天功能...");try{const t=await S.getGuestUserInfo();if(l("获取访客用户信息:",t),!t.success)throw new Error("获取访客用户信息失败");const e={message:"你好,我是访客用户,这是一条测试消息。",title:"访客测试会话"},s=await S.guestChat(e);if(l("访客聊天测试:",s),!s.success)throw new Error("访客聊天失败");const r=await S.getGuestConversations();return l("访客会话列表:",r),{success:!0,message:"访客聊天功能正常",data:{userInfo:t.data,chat:s.data,conversations:r.data}}}catch(t){return l("访客聊天测试失败:",t),{success:!1,message:"访客聊天功能失败",error:t.message}}},async testGuestEmotionAnalysis(){l("开始测试访客情绪分析...");try{const t={text:"我感到有些焦虑和不安,不知道该怎么办。"},e=await S.analyzeGuestEmotion(t);return l("访客情绪分析测试:",e),{success:!0,message:"访客情绪分析功能正常",data:e.data}}catch(t){return l("访客情绪分析测试失败:",t),{success:!1,message:"访客情绪分析功能失败",error:t.message}}},async testGuestHealthCheck(){l("开始测试访客服务健康检查...");try{const t=await S.guestHealthCheck();return l("访客服务健康检查:",t),{success:!0,message:"访客服务健康检查正常",data:t.data}}catch(t){return l("访客服务健康检查失败:",t),{success:!1,message:"访客服务健康检查失败",error:t.message}}}};const Le={class:"api-test"},Re={class:"test-buttons"},xe={key:0,class:"test-results"},ze={class:"result-details"},Ve={key:0,class:"result-data"},Be={key:1,class:"result-error"},De={class:"result-time"},Ge={__name:"ApiTest",setup(t){const e=ne({all:!1,user:!1,ai:!1,register:!1,chat:!1,emotion:!1,guestChat:!1,guestEmotion:!1,guestHealth:!1}),s=P([]),r=a=>{s.value.unshift({...a,timestamp:new Date().toLocaleString()})},i=a=>{s.value.splice(a,1)},H=()=>{s.value=[],u.success("已清空测试结果")},j=async()=>{e.all=!0;try{const a=await _.testAllServices();r({...a,description:`环境: ${z.APP_ENV}, API地址: ${z.API_BASE_URL}`}),a.success?u.success("所有服务测试完成"):u.warning("部分服务测试失败")}catch(a){r({success:!1,message:"测试执行失败",error:a.message}),u.error("测试执行失败")}finally{e.all=!1}},L=async()=>{e.user=!0;try{const a=await _.testUserService();r(a),a.success?u.success("用户服务测试成功"):u.error("用户服务测试失败")}catch(a){r({success:!1,message:"用户服务测试失败",error:a.message}),u.error("用户服务测试失败")}finally{e.user=!1}},b=async()=>{e.ai=!0;try{const a=await _.testAiService();r(a),a.success?u.success("AI服务测试成功"):u.error("AI服务测试失败")}catch(a){r({success:!1,message:"AI服务测试失败",error:a.message}),u.error("AI服务测试失败")}finally{e.ai=!1}},o=async()=>{e.register=!0;try{const a=await _.testUserRegister();r(a),a.success?u.success("用户注册测试成功"):u.error("用户注册测试失败")}catch(a){r({success:!1,message:"用户注册测试失败",error:a.message}),u.error("用户注册测试失败")}finally{e.register=!1}},C=async()=>{e.chat=!0;try{const a=await _.testAiChat();r(a),a.success?u.success("AI对话测试成功"):u.error("AI对话测试失败")}catch(a){r({success:!1,message:"AI对话测试失败",error:a.message}),u.error("AI对话测试失败")}finally{e.chat=!1}},m=async()=>{e.emotion=!0;try{const a=await _.testEmotionAnalysis();r(a),a.success?u.success("情绪分析测试成功"):u.error("情绪分析测试失败")}catch(a){r({success:!1,message:"情绪分析测试失败",error:a.message}),u.error("情绪分析测试失败")}finally{e.emotion=!1}},Y=async()=>{e.guestChat=!0;try{const a=await _.testGuestChat();r(a),a.success?u.success("访客聊天测试成功"):u.error("访客聊天测试失败")}catch(a){r({success:!1,message:"访客聊天测试失败",error:a.message}),u.error("访客聊天测试失败")}finally{e.guestChat=!1}},Z=async()=>{e.guestEmotion=!0;try{const a=await _.testGuestEmotionAnalysis();r(a),a.success?u.success("访客情绪分析测试成功"):u.error("访客情绪分析测试失败")}catch(a){r({success:!1,message:"访客情绪分析测试失败",error:a.message}),u.error("访客情绪分析测试失败")}finally{e.guestEmotion=!1}},K=async()=>{e.guestHealth=!0;try{const a=await _.testGuestHealthCheck();r(a),a.success?u.success("访客服务健康检查成功"):u.error("访客服务健康检查失败")}catch(a){r({success:!1,message:"访客服务健康检查失败",error:a.message}),u.error("访客服务健康检查失败")}finally{e.guestHealth=!1}};return(a,d)=>{const h=k("a-button"),ee=k("a-space"),te=k("a-divider"),se=k("a-alert"),re=k("a-card");return p(),v("div",Le,[c(re,{title:"API接口测试",size:"small"},{default:f(()=>[n("div",Re,[c(ee,{wrap:""},{default:f(()=>[c(h,{type:"primary",onClick:j,loading:e.all},{default:f(()=>d[0]||(d[0]=[g(" 测试所有服务 ")])),_:1,__:[0]},8,["loading"]),c(h,{onClick:L,loading:e.user},{default:f(()=>d[1]||(d[1]=[g(" 测试用户服务 ")])),_:1,__:[1]},8,["loading"]),c(h,{onClick:b,loading:e.ai},{default:f(()=>d[2]||(d[2]=[g(" 测试AI服务 ")])),_:1,__:[2]},8,["loading"]),c(h,{onClick:o,loading:e.register},{default:f(()=>d[3]||(d[3]=[g(" 测试用户注册 ")])),_:1,__:[3]},8,["loading"]),c(h,{onClick:C,loading:e.chat},{default:f(()=>d[4]||(d[4]=[g(" 测试AI对话 ")])),_:1,__:[4]},8,["loading"]),c(h,{onClick:m,loading:e.emotion},{default:f(()=>d[5]||(d[5]=[g(" 测试情绪分析 ")])),_:1,__:[5]},8,["loading"]),c(h,{onClick:Y,loading:e.guestChat},{default:f(()=>d[6]||(d[6]=[g(" 测试访客聊天 ")])),_:1,__:[6]},8,["loading"]),c(h,{onClick:Z,loading:e.guestEmotion},{default:f(()=>d[7]||(d[7]=[g(" 测试访客情绪分析 ")])),_:1,__:[7]},8,["loading"]),c(h,{onClick:K,loading:e.guestHealth},{default:f(()=>d[8]||(d[8]=[g(" 测试访客服务 ")])),_:1,__:[8]},8,["loading"]),c(h,{onClick:H,type:"dashed"},{default:f(()=>d[9]||(d[9]=[g(" 清空结果 ")])),_:1,__:[9]})]),_:1})]),s.value.length>0?(p(),v("div",xe,[c(te,null,{default:f(()=>d[10]||(d[10]=[g("测试结果")])),_:1,__:[10]}),(p(!0),v(R,null,x(s.value,(O,U)=>(p(),v("div",{key:U,class:"result-item"},[c(se,{type:O.success?"success":"error",message:O.message,description:O.description,"show-icon":"",closable:"",onClose:ut=>i(U)},{description:f(()=>[n("div",ze,[O.data?(p(),v("div",Ve,[d[11]||(d[11]=n("strong",null,"响应数据:",-1)),n("pre",null,w(JSON.stringify(O.data,null,2)),1)])):E("",!0),O.error?(p(),v("div",Be,[d[12]||(d[12]=n("strong",null,"错误信息:",-1)),n("code",null,w(O.error),1)])):E("",!0),n("div",De,[n("small",null,"测试时间: "+w(O.timestamp),1)])])]),_:2},1032,["type","message","description","onClose"])]))),128))])):E("",!0)]),_:1})])}}},Ne=X(Ge,[["__scopeId","data-v-5881151e"]]);const Ue={class:"home-container"},Me={class:"header glass"},Te={class:"header-content"},Fe={class:"nav-menu"},qe={class:"main-content"},Je={class:"hero-section"},Qe={class:"hero-content fade-in-up"},We={class:"hero-actions"},Xe={class:"hero-decoration"},Ye={class:"floating-card card bounce-in",style:{"animation-delay":"0.2s"}},Ze={class:"floating-card card bounce-in",style:{"animation-delay":"0.4s"}},Ke={class:"floating-card card bounce-in",style:{"animation-delay":"0.6s"}},et={class:"features-grid"},tt={class:"feature-icon"},st={class:"feature-title"},rt={class:"feature-description"},at={class:"stats-section"},nt={class:"stats-container glass"},ot={class:"stat-number gradient-text"},ct={class:"stat-label"},lt={key:0,class:"api-test-section"},it={__name:"Home",setup(t){const e=oe(),s=P(null),r=ce(()=>z.isDevelopment),i=P([{id:1,icon:me,title:"AI智能对话",description:"基于先进的自然语言处理技术,提供自然流畅的对话体验"},{id:2,icon:Ee,title:"情绪分析",description:"实时分析您的情绪状态,提供专业的心理健康评估"},{id:3,icon:Ie,title:"24/7支持",description:"全天候在线服务,随时随地为您提供情绪支持和心理疏导"},{id:4,icon:je,title:"隐私保护",description:"严格保护用户隐私,所有对话内容都经过加密处理"}]),H=P([{value:"10,000+",label:"用户信赖"},{value:"50,000+",label:"对话次数"},{value:"95%",label:"满意度"},{value:"24/7",label:"在线服务"}]),j=()=>{console.log("开始对话按钮被点击"),e.push("/chat")},L=()=>{var b;(b=s.value)==null||b.scrollIntoView({behavior:"smooth"})};return le(()=>{document.body.style.overflow="hidden",setTimeout(()=>{document.body.style.overflow="auto"},1e3)}),(b,o)=>{const C=k("a-button");return p(),v("div",Ue,[n("header",Me,[n("div",Te,[o[6]||(o[6]=n("div",{class:"logo"},[n("h1",{class:"gradient-text"},"情绪博物馆"),n("span",{class:"subtitle"},"AI心理健康助手")],-1)),n("nav",Fe,[c(C,{type:"text",class:"nav-item",onClick:o[0]||(o[0]=m=>b.$router.push("/chat"))},{default:f(()=>[c(A(M)),o[3]||(o[3]=g(" AI对话 "))]),_:1,__:[3]}),c(C,{type:"text",class:"nav-item",onClick:o[1]||(o[1]=m=>b.$router.push("/history"))},{default:f(()=>[c(A($e)),o[4]||(o[4]=g(" 历史记录 "))]),_:1,__:[4]}),c(C,{type:"text",class:"nav-item",onClick:o[2]||(o[2]=m=>b.$router.push("/analysis"))},{default:f(()=>[c(A(we)),o[5]||(o[5]=g(" 情绪分析 "))]),_:1,__:[5]})])])]),n("main",qe,[n("div",Je,[n("div",Qe,[o[9]||(o[9]=n("h2",{class:"hero-title"}," 欢迎来到情绪博物馆 ",-1)),o[10]||(o[10]=n("p",{class:"hero-description"}," 您的专属AI心理健康助手,提供24/7情绪支持、心理分析和个性化建议 ",-1)),n("div",We,[c(C,{type:"primary",size:"large",class:"start-chat-btn",onClick:j,style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",border:"none","margin-right":"16px"}},{default:f(()=>[c(A(M)),o[7]||(o[7]=g(" 开始对话 "))]),_:1,__:[7]}),c(C,{size:"large",class:"learn-more-btn",onClick:L,style:{background:"rgba(255, 255, 255, 0.1)",border:"1px solid rgba(255, 255, 255, 0.3)",color:"white"}},{default:f(()=>o[8]||(o[8]=[g(" 了解更多 ")])),_:1,__:[8]})])]),n("div",Xe,[n("div",Ye,[c(A(de),{class:"icon"}),o[11]||(o[11]=n("span",null,"情绪识别",-1))]),n("div",Ze,[c(A(fe),{class:"icon"}),o[12]||(o[12]=n("span",null,"智能建议",-1))]),n("div",Ke,[c(A(ge),{class:"icon"}),o[13]||(o[13]=n("span",null,"隐私保护",-1))])])]),n("section",{class:"features-section",ref_key:"featuresRef",ref:s},[o[14]||(o[14]=n("div",{class:"section-header"},[n("h3",{class:"section-title gradient-text"},"核心功能"),n("p",{class:"section-description"},"专业的AI技术,贴心的情绪关怀")],-1)),n("div",et,[(p(!0),v(R,null,x(i.value,m=>(p(),v("div",{class:"feature-card card",key:m.id},[n("div",tt,[(p(),ie(ue(m.icon)))]),n("h4",st,w(m.title),1),n("p",rt,w(m.description),1)]))),128))])],512),n("section",at,[n("div",nt,[(p(!0),v(R,null,x(H.value,m=>(p(),v("div",{class:"stat-item",key:m.label},[n("div",ot,w(m.value),1),n("div",ct,w(m.label),1)]))),128))])]),r.value?(p(),v("section",lt,[c(Ne)])):E("",!0)]),o[15]||(o[15]=n("footer",{class:"footer"},[n("div",{class:"footer-content"},[n("p",null,"© 2025 情绪博物馆. 用心守护每一份情绪")])],-1))])}}},gt=X(it,[["__scopeId","data-v-d42b9121"]]);export{gt as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HomeTest-a9ed2425.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HomeTest-a9ed2425.js deleted file mode 100644 index cc87679..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/HomeTest-a9ed2425.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r,u as i,a as _,k as p,o as d,e as m,f as t,t as b}from"./index-bf5be19f.js";const v={class:"home-test"},T={class:"info"},f={__name:"HomeTest",setup(g){const o=i(),e=_(""),n=()=>{e.value=new Date().toLocaleString()},l=()=>{alert("测试按钮工作正常!Vue应用运行正常!")},a=()=>{o.push("/chat")},u=()=>{o.push("/history")},c=()=>{o.push("/analysis")};return p(()=>{n(),setInterval(n,1e3),console.log("HomeTest页面加载成功")}),(k,s)=>(d(),m("div",v,[s[1]||(s[1]=t("h1",null,"情绪博物馆测试页面",-1)),s[2]||(s[2]=t("p",null,"如果您能看到这个页面,说明Vue应用正在正常工作!",-1)),t("div",{class:"test-buttons"},[t("button",{onClick:l,class:"test-btn"},"测试按钮1"),t("button",{onClick:a,class:"test-btn"},"前往聊天页面"),t("button",{onClick:u,class:"test-btn"},"前往历史页面"),t("button",{onClick:c,class:"test-btn"},"前往分析页面")]),t("div",T,[t("p",null,"当前时间: "+b(e.value),1),s[0]||(s[0]=t("p",null,"页面加载状态: 正常",-1))])]))}},h=r(f,[["__scopeId","data-v-6c328404"]]);export{h as default}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/chat-e1054b12.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/chat-e1054b12.js deleted file mode 100644 index d627afe..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/chat-e1054b12.js +++ /dev/null @@ -1,62 +0,0 @@ -import{I as Ue,J as Ut,G as kt,c as L,E as k,d as Y,m as ke}from"./index-bf5be19f.js";var Ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M632 888H392c-4.4 0-8 3.6-8 8v32c0 17.7 14.3 32 32 32h192c17.7 0 32-14.3 32-32v-32c0-4.4-3.6-8-8-8zM512 64c-181.1 0-328 146.9-328 328 0 121.4 66 227.4 164 284.1V792c0 17.7 14.3 32 32 32h264c17.7 0 32-14.3 32-32V676.1c98-56.7 164-162.7 164-284.1 0-181.1-146.9-328-328-328zm127.9 549.8L604 634.6V752H420V634.6l-35.9-20.8C305.4 568.3 256 484.5 256 392c0-141.4 114.6-256 256-256s256 114.6 256 256c0 92.5-49.4 176.3-128.1 221.8z"}}]},name:"bulb",theme:"outlined"};const Dt=Ft;var It={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M923 283.6a260.04 260.04 0 00-56.9-82.8 264.4 264.4 0 00-84-55.5A265.34 265.34 0 00679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 00-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]},name:"heart",theme:"outlined"};const $t=It;var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"};const zt=Mt;var qt={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"};const Ht=qt;var Vt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const Jt=Vt;var Fe=[],M=[],Wt="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Gt(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Xt(e,t){if(t=t||{},e===void 0)throw new Error(Wt);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=Fe.indexOf(r);o===-1&&(o=Fe.push(r)-1,M[o]={});var s;return M[o]!==void 0&&M[o][n]!==void 0?s=M[o][n]:(s=M[o][n]=Gt(),n==="prepend"?r.insertBefore(s,r.childNodes[0]):r.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function De(e){for(var t=1;t * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,$e=!1,Zt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qt;kt(function(){$e||(typeof window<"u"&&window.document&&window.document.documentElement&&Xt(t,{prepend:!0}),$e=!0)})},Yt=["icon","primaryColor","secondaryColor"];function en(e,t){if(e==null)return{};var n=tn(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}function G(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wn(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}ut("#1890ff");var D=function(t,n){var r,o=qe({},t,n.attrs),s=o.class,i=o.icon,c=o.spin,f=o.rotate,l=o.tabindex,u=o.twoToneColor,d=o.onClick,b=gn(o,dn),S=(r={anticon:!0},me(r,"anticon-".concat(i.name),!!i.name),me(r,s,s),r),p=c===""||c||i.name==="loading"?"anticon-spin":"",m=l;m===void 0&&d&&(m=-1,b.tabindex=m);var h=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,g=lt(u),w=pn(g,2),E=w[0],v=w[1];return L("span",qe({role:"img","aria-label":i.name},b,{onClick:d,class:S}),[L(Ee,{class:p,icon:i,primaryColor:E,secondaryColor:v,style:h},null)])};D.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};D.displayName="AntdIcon";D.inheritAttrs=!1;D.getTwoToneColor=fn;D.setTwoToneColor=ut;const V=D;function He(e){for(var t=1;tt=>{const n=Tn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_=e=>(e=e.toLowerCase(),t=>oe(t)===e),se=e=>t=>typeof t===e,{isArray:I}=Array,H=se("undefined");function An(e){return e!==null&&!H(e)&&e.constructor!==null&&!H(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pt=_("ArrayBuffer");function vn(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pt(e.buffer),t}const Pn=se("string"),A=se("function"),ht=se("number"),ie=e=>e!==null&&typeof e=="object",_n=e=>e===!0||e===!1,X=e=>{if(oe(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dt in e)&&!(re in e)},xn=_("Date"),jn=_("File"),Nn=_("Blob"),Bn=_("FileList"),Ln=e=>ie(e)&&A(e.pipe),Un=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=oe(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},kn=_("URLSearchParams"),[Fn,Dn,In,$n]=["ReadableStream","Request","Response","Headers"].map(_),Mn=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function J(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),I(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const B=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),yt=e=>!H(e)&&e!==B;function ye(){const{caseless:e}=yt(this)&&this||{},t={},n=(r,o)=>{const s=e&&mt(t,o)||o;X(t[s])&&X(r)?t[s]=ye(t[s],r):X(r)?t[s]=ye({},r):I(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(J(t,(o,s)=>{n&&A(o)?e[s]=ft(o,n):e[s]=o},{allOwnKeys:r}),e),qn=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Vn=(e,t,n,r)=>{let o,s,i;const c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Jn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Wn=e=>{if(!e)return null;if(I(e))return e;let t=e.length;if(!ht(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Gn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),Xn=(e,t)=>{const r=(e&&e[re]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},Kn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qn=_("HTMLFormElement"),Zn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Xe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yn=_("RegExp"),bt=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};J(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},er=e=>{bt(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},tr=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return I(e)?r(e):r(String(e).split(t)),n},nr=()=>{},rr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function or(e){return!!(e&&A(e.append)&&e[dt]==="FormData"&&e[re])}const sr=e=>{const t=new Array(10),n=(r,o)=>{if(ie(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=I(r)?[]:{};return J(r,(i,c)=>{const f=n(i,o+1);!H(f)&&(s[c]=f)}),t[o]=void 0,s}}return r};return n(e,0)},ir=_("AsyncFunction"),ar=e=>e&&(ie(e)||A(e))&&A(e.then)&&A(e.catch),gt=((e,t)=>e?setImmediate:t?((n,r)=>(B.addEventListener("message",({source:o,data:s})=>{o===B&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),B.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",A(B.postMessage)),cr=typeof queueMicrotask<"u"?queueMicrotask.bind(B):typeof process<"u"&&process.nextTick||gt,lr=e=>e!=null&&A(e[re]),a={isArray:I,isArrayBuffer:pt,isBuffer:An,isFormData:Un,isArrayBufferView:vn,isString:Pn,isNumber:ht,isBoolean:_n,isObject:ie,isPlainObject:X,isReadableStream:Fn,isRequest:Dn,isResponse:In,isHeaders:$n,isUndefined:H,isDate:xn,isFile:jn,isBlob:Nn,isRegExp:Yn,isFunction:A,isStream:Ln,isURLSearchParams:kn,isTypedArray:Gn,isFileList:Bn,forEach:J,merge:ye,extend:zn,trim:Mn,stripBOM:qn,inherits:Hn,toFlatObject:Vn,kindOf:oe,kindOfTest:_,endsWith:Jn,toArray:Wn,forEachEntry:Xn,matchAll:Kn,isHTMLForm:Qn,hasOwnProperty:Xe,hasOwnProp:Xe,reduceDescriptors:bt,freezeMethods:er,toObjectSet:tr,toCamelCase:Zn,noop:nr,toFiniteNumber:rr,findKey:mt,global:B,isContextDefined:yt,isSpecCompliantForm:or,toJSONObject:sr,isAsyncFn:ir,isThenable:ar,setImmediate:gt,asap:cr,isIterable:lr};function y(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}a.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const wt=y.prototype,Ot={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ot[e]={value:e}});Object.defineProperties(y,Ot);Object.defineProperty(wt,"isAxiosError",{value:!0});y.from=(e,t,n,r,o,s)=>{const i=Object.create(wt);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),y.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ur=null;function be(e){return a.isPlainObject(e)||a.isArray(e)}function St(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ke(e,t,n){return e?e.concat(t).map(function(o,s){return o=St(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function fr(e){return a.isArray(e)&&!e.some(be)}const dr=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ae(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!a.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(a.isBoolean(p))return p.toString();if(!f&&a.isBlob(p))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,h){let g=p;if(p&&!h&&typeof p=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&fr(p)||(a.isFileList(p)||a.endsWith(m,"[]"))&&(g=a.toArray(p)))return m=St(m),g.forEach(function(E,v){!(a.isUndefined(E)||E===null)&&t.append(i===!0?Ke([m],v,s):i===null?m:m+"[]",l(E))}),!1}return be(p)?!0:(t.append(Ke(h,m,s),l(p)),!1)}const d=[],b=Object.assign(dr,{defaultVisitor:u,convertValue:l,isVisitable:be});function S(p,m){if(!a.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),a.forEach(p,function(g,w){(!(a.isUndefined(g)||g===null)&&o.call(t,g,a.isString(w)?w.trim():w,m,b))===!0&&S(g,m?m.concat(w):[w])}),d.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _e(e,t){this._pairs=[],e&&ae(e,this,t)}const Et=_e.prototype;Et.append=function(t,n){this._pairs.push([t,n])};Et.toString=function(t){const n=t?function(r){return t.call(this,r,Qe)}:Qe;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function pr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rt(e,t,n){if(!t)return e;const r=n&&n.encode||pr;a.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=a.isURLSearchParams(t)?t.toString():new _e(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class hr{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ze=hr,Ct={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr=typeof URLSearchParams<"u"?URLSearchParams:_e,yr=typeof FormData<"u"?FormData:null,br=typeof Blob<"u"?Blob:null,gr={isBrowser:!0,classes:{URLSearchParams:mr,FormData:yr,Blob:br},protocols:["http","https","file","blob","url","data"]},xe=typeof window<"u"&&typeof document<"u",ge=typeof navigator=="object"&&navigator||void 0,wr=xe&&(!ge||["ReactNative","NativeScript","NS"].indexOf(ge.product)<0),Or=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Sr=xe&&window.location.href||"http://localhost",Er=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xe,hasStandardBrowserEnv:wr,hasStandardBrowserWebWorkerEnv:Or,navigator:ge,origin:Sr},Symbol.toStringTag,{value:"Module"})),C={...Er,...gr};function Rr(e,t){return ae(e,new C.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return C.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Cr(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tr(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&a.isArray(o)?o.length:i,f?(a.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!c):((!o[i]||!a.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&a.isArray(o[i])&&(o[i]=Tr(o[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,o)=>{t(Cr(r),o,n,0)}),n}return null}function Ar(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const je={transitional:Ct,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return o?JSON.stringify(Tt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Rr(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ae(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Ar(t)):t}],transformResponse:[function(t){const n=this.transitional||je.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:C.classes.FormData,Blob:C.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{je.headers[e]={}});const Ne=je,vr=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Pr=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&vr[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ye=Symbol("internals");function z(e){return e&&String(e).trim().toLowerCase()}function K(e){return e===!1||e==null?e:a.isArray(e)?e.map(K):String(e)}function _r(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const xr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fe(e,t,n,r,o){if(a.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function jr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Nr(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class ce{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(c,f,l){const u=z(f);if(!u)throw new Error("header name must be a non-empty string");const d=a.findKey(o,u);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||f]=K(c))}const i=(c,f)=>a.forEach(c,(l,u)=>s(l,u,f));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!xr(t))i(Pr(t),n);else if(a.isObject(t)&&a.isIterable(t)){let c={},f,l;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");c[l=u[0]]=(f=c[l])?a.isArray(f)?[...f,u[1]]:[f,u[1]]:u[1]}i(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=z(t),t){const r=a.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _r(o);if(a.isFunction(n))return n.call(this,o,r);if(a.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=z(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=z(i),i){const c=a.findKey(r,i);c&&(!n||fe(r,r[c],c,n))&&(delete r[c],o=!0)}}return a.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||fe(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return a.forEach(this,(o,s)=>{const i=a.findKey(r,s);if(i){n[i]=K(o),delete n[s];return}const c=t?jr(s):String(s).trim();c!==s&&delete n[s],n[c]=K(o),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ye]=this[Ye]={accessors:{}}).accessors,o=this.prototype;function s(i){const c=z(i);r[c]||(Nr(o,i),r[c]=!0)}return a.isArray(t)?t.forEach(s):s(t),this}}ce.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(ce.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(ce);const P=ce;function de(e,t){const n=this||Ne,r=t||n,o=P.from(r.headers);let s=r.data;return a.forEach(e,function(c){s=c.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function At(e){return!!(e&&e.__CANCEL__)}function $(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits($,y,{__CANCEL__:!0});function vt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Br(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lr(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(f){const l=Date.now(),u=r[s];i||(i=l),n[o]=f,r[o]=l;let d=s,b=0;for(;d!==o;)b+=n[d++],d=d%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i{n=u,o=null,s&&(clearTimeout(s),s=null),e.apply(null,l)};return[(...l)=>{const u=Date.now(),d=u-n;d>=r?i(l,u):(o=l,s||(s=setTimeout(()=>{s=null,i(o)},r-d)))},()=>o&&i(o)]}const ee=(e,t,n=3)=>{let r=0;const o=Lr(50,250);return Ur(s=>{const i=s.loaded,c=s.lengthComputable?s.total:void 0,f=i-r,l=o(f),u=i<=c;r=i;const d={loaded:i,total:c,progress:c?i/c:void 0,bytes:f,rate:l||void 0,estimated:l&&c&&u?(c-i)/l:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(d)},n)},et=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},tt=e=>(...t)=>a.asap(()=>e(...t)),kr=C.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,C.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(C.origin),C.navigator&&/(msie|trident)/i.test(C.navigator.userAgent)):()=>!0,Fr=C.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Dr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ir(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pt(e,t,n){let r=!Dr(t);return e&&(r||n==!1)?Ir(e,t):t}const nt=e=>e instanceof P?{...e}:e;function U(e,t){t=t||{};const n={};function r(l,u,d,b){return a.isPlainObject(l)&&a.isPlainObject(u)?a.merge.call({caseless:b},l,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function o(l,u,d,b){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l,d,b)}else return r(l,u,d,b)}function s(l,u){if(!a.isUndefined(u))return r(void 0,u)}function i(l,u){if(a.isUndefined(u)){if(!a.isUndefined(l))return r(void 0,l)}else return r(void 0,u)}function c(l,u,d){if(d in t)return r(l,u);if(d in e)return r(void 0,l)}const f={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(l,u,d)=>o(nt(l),nt(u),d,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=f[u]||o,b=d(e[u],t[u],u);a.isUndefined(b)&&d!==c||(n[u]=b)}),n}const _t=e=>{const t=U({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:c}=t;t.headers=i=P.from(i),t.url=Rt(Pt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&i.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(a.isFormData(n)){if(C.hasStandardBrowserEnv||C.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((f=i.getContentType())!==!1){const[l,...u]=f?f.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([l||"multipart/form-data",...u].join("; "))}}if(C.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&kr(t.url))){const l=o&&s&&Fr.read(s);l&&i.set(o,l)}return t},$r=typeof XMLHttpRequest<"u",Mr=$r&&function(e){return new Promise(function(n,r){const o=_t(e);let s=o.data;const i=P.from(o.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:l}=o,u,d,b,S,p;function m(){S&&S(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let h=new XMLHttpRequest;h.open(o.method.toUpperCase(),o.url,!0),h.timeout=o.timeout;function g(){if(!h)return;const E=P.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:E,config:e,request:h};vt(function(N){n(N),m()},function(N){r(N),m()},T),h=null}"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(g)},h.onabort=function(){h&&(r(new y("Request aborted",y.ECONNABORTED,e,h)),h=null)},h.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Ct;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new y(v,T.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,h)),h=null},s===void 0&&i.setContentType(null),"setRequestHeader"in h&&a.forEach(i.toJSON(),function(v,T){h.setRequestHeader(T,v)}),a.isUndefined(o.withCredentials)||(h.withCredentials=!!o.withCredentials),c&&c!=="json"&&(h.responseType=o.responseType),l&&([b,p]=ee(l,!0),h.addEventListener("progress",b)),f&&h.upload&&([d,S]=ee(f),h.upload.addEventListener("progress",d),h.upload.addEventListener("loadend",S)),(o.cancelToken||o.signal)&&(u=E=>{h&&(r(!E||E.type?new $(null,e,h):E),h.abort(),h=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=Br(o.url);if(w&&C.protocols.indexOf(w)===-1){r(new y("Unsupported protocol "+w+":",y.ERR_BAD_REQUEST,e));return}h.send(s||null)})},zr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(l){if(!o){o=!0,c();const u=l instanceof Error?l:this.reason;r.abort(u instanceof y?u:new $(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new y(`timeout ${t} of ms exceeded`,y.ETIMEDOUT))},t);const c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:f}=r;return f.unsubscribe=()=>a.asap(c),f}},qr=zr,Hr=function*(e,t){let n=e.byteLength;if(!t||n{const o=Vr(e,t);let s=0,i,c=f=>{i||(i=!0,r&&r(f))};return new ReadableStream({async pull(f){try{const{done:l,value:u}=await o.next();if(l){c(),f.close();return}let d=u.byteLength;if(n){let b=s+=d;n(b)}f.enqueue(new Uint8Array(u))}catch(l){throw c(l),l}},cancel(f){return c(f),o.return()}},{highWaterMark:2})},le=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xt=le&&typeof ReadableStream=="function",Wr=le&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),jt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gr=xt&&jt(()=>{let e=!1;const t=new Request(C.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),ot=64*1024,we=xt&&jt(()=>a.isReadableStream(new Response("").body)),te={stream:we&&(e=>e.body)};le&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!te[t]&&(te[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new y(`Response type '${t}' is not supported`,y.ERR_NOT_SUPPORT,r)})})})(new Response);const Xr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(C.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await Wr(e)).byteLength},Kr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??Xr(t)},Qr=le&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:c,onUploadProgress:f,responseType:l,headers:u,withCredentials:d="same-origin",fetchOptions:b}=_t(e);l=l?(l+"").toLowerCase():"text";let S=qr([o,s&&s.toAbortSignal()],i),p;const m=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let h;try{if(f&&Gr&&n!=="get"&&n!=="head"&&(h=await Kr(u,r))!==0){let T=new Request(t,{method:"POST",body:r,duplex:"half"}),j;if(a.isFormData(r)&&(j=T.headers.get("content-type"))&&u.setContentType(j),T.body){const[N,W]=et(h,ee(tt(f)));r=rt(T.body,ot,N,W)}}a.isString(d)||(d=d?"include":"omit");const g="credentials"in Request.prototype;p=new Request(t,{...b,signal:S,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:g?d:void 0});let w=await fetch(p,b);const E=we&&(l==="stream"||l==="response");if(we&&(c||E&&m)){const T={};["status","statusText","headers"].forEach(Le=>{T[Le]=w[Le]});const j=a.toFiniteNumber(w.headers.get("content-length")),[N,W]=c&&et(j,ee(tt(c),!0))||[];w=new Response(rt(w.body,ot,N,()=>{W&&W(),m&&m()}),T)}l=l||"text";let v=await te[a.findKey(te,l)||"text"](w,e);return!E&&m&&m(),await new Promise((T,j)=>{vt(T,j,{data:v,headers:P.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:p})})}catch(g){throw m&&m(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new y("Network Error",y.ERR_NETWORK,e,p),{cause:g.cause||g}):y.from(g,g&&g.code,e,p)}}),Oe={http:ur,xhr:Mr,fetch:Qr};a.forEach(Oe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const st=e=>`- ${e}`,Zr=e=>a.isFunction(e)||e===null||e===!1,Nt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?s.length>1?`since : -`+s.map(st).join(` -`):" "+st(s[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Oe};function pe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $(null,e)}function it(e){return pe(e),e.headers=P.from(e.headers),e.data=de.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Nt.getAdapter(e.adapter||Ne.adapter)(e).then(function(r){return pe(e),r.data=de.call(e,e.transformResponse,r),r.headers=P.from(r.headers),r},function(r){return At(r)||(pe(e),r&&r.response&&(r.response.data=de.call(e,e.transformResponse,r.response),r.response.headers=P.from(r.response.headers))),Promise.reject(r)})}const Bt="1.10.0",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const at={};ue.transitional=function(t,n,r){function o(s,i){return"[Axios v"+Bt+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,c)=>{if(t===!1)throw new y(o(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!at[i]&&(at[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,c):!0}};ue.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Yr(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const c=e[s],f=c===void 0||i(c,s,e);if(f!==!0)throw new y("option "+s+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+s,y.ERR_BAD_OPTION)}}const Q={assertOptions:Yr,validators:ue},x=Q.validators;class ne{constructor(t){this.defaults=t||{},this.interceptors={request:new Ze,response:new Ze}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=U(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Q.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),o!=null&&(a.isFunction(o)?n.paramsSerializer={serialize:o}:Q.assertOptions(o,{encode:x.function,serialize:x.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Q.assertOptions(n,{baseUrl:x.spelling("baseURL"),withXsrfToken:x.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&a.merge(s.common,s[n.method]);s&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=P.concat(i,s);const c=[];let f=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(f=f&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const l=[];this.interceptors.response.forEach(function(m){l.push(m.fulfilled,m.rejected)});let u,d=0,b;if(!f){const p=[it.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,l),b=p.length,u=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(c=>{r.subscribe(c),s=c}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,c){r.reason||(r.reason=new $(s,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Be(function(o){t=o}),cancel:t}}}const eo=Be;function to(e){return function(n){return e.apply(null,n)}}function no(e){return a.isObject(e)&&e.isAxiosError===!0}const Se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Se).forEach(([e,t])=>{Se[t]=e});const ro=Se;function Lt(e){const t=new Z(e),n=ft(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Lt(U(e,o))},n}const R=Lt(Ne);R.Axios=Z;R.CanceledError=$;R.CancelToken=eo;R.isCancel=At;R.VERSION=Bt;R.toFormData=ae;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=to;R.isAxiosError=no;R.mergeConfig=U;R.AxiosHeaders=P;R.formToJSON=e=>Tt(a.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Nt.getAdapter;R.HttpStatusCode=ro;R.default=R;const oo=R,O=oo.create({baseURL:k.API_BASE_URL,timeout:k.API_TIMEOUT,headers:{"Content-Type":"application/json"}});k.DEBUG_MODE&&(console.log("=== API配置信息 ==="),console.log("Base URL:",k.API_BASE_URL),console.log("Timeout:",k.API_TIMEOUT),console.log("Environment:",k.APP_ENV),console.log("================"));O.interceptors.request.use(e=>{var n;const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),Y("发送请求:",(n=e.method)==null?void 0:n.toUpperCase(),e.url,e.data||e.params),e},e=>(Y("请求错误:",e),Promise.reject(e)));O.interceptors.response.use(e=>{const{data:t}=e;if(Y("收到响应:",e.config.url,t),t.code===200)return{success:!0,data:t.data,message:t.message};{const n=t.message||"请求失败";return ke.error(n),{success:!1,data:null,message:n}}},e=>{Y("响应错误:",e);let t="网络错误";if(e.response){const{status:n,data:r}=e.response;switch(n){case 400:t=r.message||"请求参数错误";break;case 401:t="未授权,请重新登录";break;case 403:t="拒绝访问";break;case 404:t="请求的资源不存在";break;case 500:t="服务器内部错误";break;default:t=r.message||`请求失败 (${n})`}}else e.request?t="网络连接失败,请检查网络":t=e.message||"请求配置错误";return ke.error(t),{success:!1,data:null,message:t}});const fo={createConversation(e){return O.post("/ai/chat/conversation/create",e)},sendMessage(e){return O.post("/ai/chat/send",e)},streamChat(e){return O.post("/ai/chat/stream",e)},analyzeEmotion(e){return O.post("/ai/chat/emotion/analyze",e)},getConversations(e,t=1,n=20){return O.get(`/ai/chat/conversations/${e}`,{params:{pageNum:t,pageSize:n}})},getConversation(e){return O.get(`/ai/chat/conversation/${e}`)},getMessages(e,t=1,n=50){return O.get(`/ai/chat/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endConversation(e){return O.put(`/ai/chat/conversation/${e}/end`)},deleteConversation(e){return O.delete(`/ai/chat/conversation/${e}`)},markMessageAsRead(e){return O.put(`/ai/chat/message/${e}/read`)},markConversationAsRead(e){return O.put(`/ai/chat/conversation/${e}/read`)},healthCheck(){return O.get("/ai/chat/health")},getServiceInfo(){return O.get("/ai/chat/info")}},po={guestChat(e){return O.post("/ai/guest/chat",e)},getGuestConversations(e=1,t=20){return O.get("/ai/guest/conversations",{params:{pageNum:e,pageSize:t}})},getGuestConversationMessages(e,t=1,n=50){return O.get(`/ai/guest/conversation/${e}/messages`,{params:{pageNum:t,pageSize:n}})},endGuestConversation(e){return O.post(`/ai/guest/conversation/${e}/end`)},getGuestUserInfo(){return O.get("/ai/guest/user/info")},analyzeGuestEmotion(e){return O.post("/ai/guest/emotion/analyze",e)},guestHealthCheck(){return O.get("/ai/guest/health")}};export{V as A,io as B,ao as H,co as M,lo as R,uo as S,fo as c,po as g,O as r}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/index-bf5be19f.js b/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/index-bf5be19f.js deleted file mode 100644 index b91d16f..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/assets/js/index-bf5be19f.js +++ /dev/null @@ -1,509 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();/** -* @vue/shared v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Fm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Et={},ta=[],Do=()=>{},DM=()=>!1,If=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lm=e=>e.startsWith("onUpdate:"),Zt=Object.assign,km=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BM=Object.prototype.hasOwnProperty,Ot=(e,t)=>BM.call(e,t),lt=Array.isArray,na=e=>Tf(e)==="[object Map]",U4=e=>Tf(e)==="[object Set]",st=e=>typeof e=="function",Ht=e=>typeof e=="string",$l=e=>typeof e=="symbol",Bt=e=>e!==null&&typeof e=="object",Y4=e=>(Bt(e)||st(e))&&st(e.then)&&st(e.catch),q4=Object.prototype.toString,Tf=e=>q4.call(e),NM=e=>Tf(e).slice(8,-1),Z4=e=>Tf(e)==="[object Object]",zm=e=>Ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fs=Fm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ef=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},FM=/-(\w)/g,Co=Ef(e=>e.replace(FM,(t,n)=>n?n.toUpperCase():"")),LM=/\B([A-Z])/g,vi=Ef(e=>e.replace(LM,"-$1").toLowerCase()),Mf=Ef(e=>e.charAt(0).toUpperCase()+e.slice(1)),fg=Ef(e=>e?`on${Mf(e)}`:""),dl=(e,t)=>!Object.is(e,t),pg=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},kM=e=>{const t=parseFloat(e);return isNaN(t)?e:t},zM=e=>{const t=Ht(e)?Number(e):NaN;return isNaN(t)?e:t};let aS;const _f=()=>aS||(aS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Hm(e){if(lt(e)){const t={};for(let n=0;n{if(n){const o=n.split(jM);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function jm(e){let t="";if(Ht(e))t=e;else if(lt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),vr=e=>Ht(e)?e:e==null?"":lt(e)||Bt(e)&&(e.toString===q4||!st(e.toString))?J4(e)?vr(e.value):JSON.stringify(e,e3,2):String(e),e3=(e,t)=>J4(t)?e3(e,t.value):na(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],l)=>(n[gg(o,l)+" =>"]=r,n),{})}:U4(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:$l(t)?gg(t):Bt(t)&&!lt(t)&&!Z4(t)?String(t):t,gg=(e,t="")=>{var n;return $l(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** -* @vue/reactivity v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let wn;class t3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wn,!t&&wn&&(this.index=(wn.scopes||(wn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(wn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(gs){let t=gs;for(gs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ps;){let t=ps;for(ps=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function a3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function s3(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),Gm(o),XM(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function Uh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(c3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function c3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vs)||(e.globalVersion=Vs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Uh(e))))return;e.flags|=2;const t=e.dep,n=Dt,o=Bo;Dt=e,Bo=!0;try{a3(e);const r=e.fn(e._value);(t.version===0||dl(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Dt=n,Bo=o,s3(e),e.flags&=-3}}function Gm(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Gm(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function XM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bo=!0;const u3=[];function Er(){u3.push(Bo),Bo=!1}function Mr(){const e=u3.pop();Bo=e===void 0?!0:e}function sS(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let Vs=0,UM=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Xm{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Bo||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new UM(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,d3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=o)}return n}trigger(t){this.version++,Vs++,this.notify(t)}notify(t){Vm();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Km()}}}function d3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)d3(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $d=new WeakMap,Jl=Symbol(""),Yh=Symbol(""),Ks=Symbol("");function Pn(e,t,n){if(Bo&&Dt){let o=$d.get(e);o||$d.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new Xm),r.map=o,r.key=n),r.track()}}function $r(e,t,n,o,r,l){const i=$d.get(e);if(!i){Vs++;return}const a=s=>{s&&s.trigger()};if(Vm(),t==="clear")i.forEach(a);else{const s=lt(e),c=s&&zm(n);if(s&&n==="length"){const u=Number(o);i.forEach((d,f)=>{(f==="length"||f===Ks||!$l(f)&&f>=u)&&a(d)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(Ks)),t){case"add":s?c&&a(i.get("length")):(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"delete":s||(a(i.get(Jl)),na(e)&&a(i.get(Yh)));break;case"set":na(e)&&a(i.get(Jl));break}}Km()}function YM(e,t){const n=$d.get(e);return n&&n.get(t)}function Mi(e){const t=Qe(e);return t===e?t:(Pn(t,"iterate",Ks),yo(e)?t:t.map(mn))}function Af(e){return Pn(e=Qe(e),"iterate",Ks),e}const qM={__proto__:null,[Symbol.iterator](){return vg(this,Symbol.iterator,mn)},concat(...e){return Mi(this).concat(...e.map(t=>lt(t)?Mi(t):t))},entries(){return vg(this,"entries",e=>(e[1]=mn(e[1]),e))},every(e,t){return dr(this,"every",e,t,void 0,arguments)},filter(e,t){return dr(this,"filter",e,t,n=>n.map(mn),arguments)},find(e,t){return dr(this,"find",e,t,mn,arguments)},findIndex(e,t){return dr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return dr(this,"findLast",e,t,mn,arguments)},findLastIndex(e,t){return dr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return dr(this,"forEach",e,t,void 0,arguments)},includes(...e){return mg(this,"includes",e)},indexOf(...e){return mg(this,"indexOf",e)},join(e){return Mi(this).join(e)},lastIndexOf(...e){return mg(this,"lastIndexOf",e)},map(e,t){return dr(this,"map",e,t,void 0,arguments)},pop(){return Ua(this,"pop")},push(...e){return Ua(this,"push",e)},reduce(e,...t){return cS(this,"reduce",e,t)},reduceRight(e,...t){return cS(this,"reduceRight",e,t)},shift(){return Ua(this,"shift")},some(e,t){return dr(this,"some",e,t,void 0,arguments)},splice(...e){return Ua(this,"splice",e)},toReversed(){return Mi(this).toReversed()},toSorted(e){return Mi(this).toSorted(e)},toSpliced(...e){return Mi(this).toSpliced(...e)},unshift(...e){return Ua(this,"unshift",e)},values(){return vg(this,"values",mn)}};function vg(e,t,n){const o=Af(e),r=o[t]();return o!==e&&!yo(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.value&&(l.value=n(l.value)),l}),r}const ZM=Array.prototype;function dr(e,t,n,o,r,l){const i=Af(e),a=i!==e&&!yo(e),s=i[t];if(s!==ZM[t]){const d=s.apply(e,l);return a?mn(d):d}let c=n;i!==e&&(a?c=function(d,f){return n.call(this,mn(d),f,e)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,e)}));const u=s.call(i,c,o);return a&&r?r(u):u}function cS(e,t,n,o){const r=Af(e);let l=n;return r!==e&&(yo(e)?n.length>3&&(l=function(i,a,s){return n.call(this,i,a,s,e)}):l=function(i,a,s){return n.call(this,i,mn(a),s,e)}),r[t](l,...o)}function mg(e,t,n){const o=Qe(e);Pn(o,"iterate",Ks);const r=o[t](...n);return(r===-1||r===!1)&&qm(n[0])?(n[0]=Qe(n[0]),o[t](...n)):r}function Ua(e,t,n=[]){Er(),Vm();const o=Qe(e)[t].apply(e,n);return Km(),Mr(),o}const QM=Fm("__proto__,__v_isRef,__isVue"),f3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($l));function JM(e){$l(e)||(e=String(e));const t=Qe(this);return Pn(t,"has",e),t.hasOwnProperty(e)}class p3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return o===(r?l?c_:m3:l?v3:h3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const i=lt(t);if(!r){let s;if(i&&(s=qM[n]))return s;if(n==="hasOwnProperty")return JM}const a=Reflect.get(t,n,kt(t)?t:o);return($l(n)?f3.has(n):QM(n))||(r||Pn(t,"get",n),l)?a:kt(a)?i&&zm(n)?a:a.value:Bt(a)?r?y3(a):ut(a):a}}class g3 extends p3{constructor(t=!1){super(!1,t)}set(t,n,o,r){let l=t[n];if(!this._isShallow){const s=ml(l);if(!yo(o)&&!ml(o)&&(l=Qe(l),o=Qe(o)),!lt(t)&&kt(l)&&!kt(o))return s?!1:(l.value=o,!0)}const i=lt(t)&&zm(n)?Number(n)e,Gc=e=>Reflect.getPrototypeOf(e);function r_(e,t,n){return function(...o){const r=this.__v_raw,l=Qe(r),i=na(l),a=e==="entries"||e===Symbol.iterator&&i,s=e==="keys"&&i,c=r[e](...o),u=n?qh:t?Cd:mn;return!t&&Pn(l,"iterate",s?Yh:Jl),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Xc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function l_(e,t){const n={get(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);e||(dl(r,a)&&Pn(i,"get",r),Pn(i,"get",a));const{has:s}=Gc(i),c=t?qh:e?Cd:mn;if(s.call(i,r))return c(l.get(r));if(s.call(i,a))return c(l.get(a));l!==i&&l.get(r)},get size(){const r=this.__v_raw;return!e&&Pn(Qe(r),"iterate",Jl),Reflect.get(r,"size",r)},has(r){const l=this.__v_raw,i=Qe(l),a=Qe(r);return e||(dl(r,a)&&Pn(i,"has",r),Pn(i,"has",a)),r===a?l.has(r):l.has(r)||l.has(a)},forEach(r,l){const i=this,a=i.__v_raw,s=Qe(a),c=t?qh:e?Cd:mn;return!e&&Pn(s,"iterate",Jl),a.forEach((u,d)=>r.call(l,c(u),c(d),i))}};return Zt(n,e?{add:Xc("add"),set:Xc("set"),delete:Xc("delete"),clear:Xc("clear")}:{add(r){!t&&!yo(r)&&!ml(r)&&(r=Qe(r));const l=Qe(this);return Gc(l).has.call(l,r)||(l.add(r),$r(l,"add",r,r)),this},set(r,l){!t&&!yo(l)&&!ml(l)&&(l=Qe(l));const i=Qe(this),{has:a,get:s}=Gc(i);let c=a.call(i,r);c||(r=Qe(r),c=a.call(i,r));const u=s.call(i,r);return i.set(r,l),c?dl(l,u)&&$r(i,"set",r,l):$r(i,"add",r,l),this},delete(r){const l=Qe(this),{has:i,get:a}=Gc(l);let s=i.call(l,r);s||(r=Qe(r),s=i.call(l,r)),a&&a.call(l,r);const c=l.delete(r);return s&&$r(l,"delete",r,void 0),c},clear(){const r=Qe(this),l=r.size!==0,i=r.clear();return l&&$r(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=r_(r,e,t)}),n}function Um(e,t){const n=l_(e,t);return(o,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ot(n,r)&&r in o?n:o,r,l)}const i_={get:Um(!1,!1)},a_={get:Um(!1,!0)},s_={get:Um(!0,!1)};const h3=new WeakMap,v3=new WeakMap,m3=new WeakMap,c_=new WeakMap;function u_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function d_(e){return e.__v_skip||!Object.isExtensible(e)?0:u_(NM(e))}function ut(e){return ml(e)?e:Ym(e,!1,t_,i_,h3)}function b3(e){return Ym(e,!1,o_,a_,v3)}function y3(e){return Ym(e,!0,n_,s_,m3)}function Ym(e,t,n,o,r){if(!Bt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=d_(e);if(l===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,l===2?o:n);return r.set(e,a),a}function fl(e){return ml(e)?fl(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function yo(e){return!!(e&&e.__v_isShallow)}function qm(e){return e?!!e.__v_raw:!1}function Qe(e){const t=e&&e.__v_raw;return t?Qe(t):e}function Zm(e){return!Ot(e,"__v_skip")&&Object.isExtensible(e)&&Xh(e,"__v_skip",!0),e}const mn=e=>Bt(e)?ut(e):e,Cd=e=>Bt(e)?y3(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function le(e){return S3(e,!1)}function te(e){return S3(e,!0)}function S3(e,t){return kt(e)?e:new f_(e,t)}class f_{constructor(t,n){this.dep=new Xm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Qe(t),this._value=n?t:mn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||yo(t)||ml(t);t=o?t:Qe(t),dl(t,n)&&(this._rawValue=t,this._value=o?t:mn(t),this.dep.trigger())}}function $3(e){e.dep&&e.dep.trigger()}function $t(e){return kt(e)?e.value:e}const p_={get:(e,t,n)=>t==="__v_raw"?e:$t(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function C3(e){return fl(e)?e:new Proxy(e,p_)}function No(e){const t=lt(e)?new Array(e.length):{};for(const n in e)t[n]=x3(e,n);return t}class g_{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return YM(Qe(this._object),this._key)}}class h_{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ze(e,t,n){return kt(e)?e:st(e)?new h_(e):Bt(e)&&arguments.length>1?x3(e,t,n):le(e)}function x3(e,t,n){const o=e[t];return kt(o)?o:new g_(e,t,n)}class v_{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return i3(this,!0),!0}get value(){const t=this.dep.track();return c3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function m_(e,t,n=!1){let o,r;return st(e)?o=e:(o=e.get,r=e.set),new v_(o,r,n)}const Uc={},xd=new WeakMap;let kl;function b_(e,t=!1,n=kl){if(n){let o=xd.get(n);o||xd.set(n,o=[]),o.push(e)}}function y_(e,t,n=Et){const{immediate:o,deep:r,once:l,scheduler:i,augmentJob:a,call:s}=n,c=x=>r?x:yo(x)||r===!1||r===0?Cr(x,1):Cr(x);let u,d,f,g,v=!1,h=!1;if(kt(e)?(d=()=>e.value,v=yo(e)):fl(e)?(d=()=>c(e),v=!0):lt(e)?(h=!0,v=e.some(x=>fl(x)||yo(x)),d=()=>e.map(x=>{if(kt(x))return x.value;if(fl(x))return c(x);if(st(x))return s?s(x,2):x()})):st(e)?t?d=s?()=>s(e,2):e:d=()=>{if(f){Er();try{f()}finally{Mr()}}const x=kl;kl=u;try{return s?s(e,3,[g]):e(g)}finally{kl=x}}:d=Do,t&&r){const x=d,C=r===!0?1/0:r;d=()=>Cr(x(),C)}const b=Wm(),y=()=>{u.stop(),b&&b.active&&km(b.effects,u)};if(l&&t){const x=t;t=(...C)=>{x(...C),y()}}let S=h?new Array(e.length).fill(Uc):Uc;const $=x=>{if(!(!(u.flags&1)||!u.dirty&&!x))if(t){const C=u.run();if(r||v||(h?C.some((O,w)=>dl(O,S[w])):dl(C,S))){f&&f();const O=kl;kl=u;try{const w=[C,S===Uc?void 0:h&&S[0]===Uc?[]:S,g];S=C,s?s(t,3,w):t(...w)}finally{kl=O}}}else u.run()};return a&&a($),u=new r3(d),u.scheduler=i?()=>i($,!1):$,g=x=>b_(x,!1,u),f=u.onStop=()=>{const x=xd.get(u);if(x){if(s)s(x,4);else for(const C of x)C();xd.delete(u)}},t?o?$(!0):S=u.run():i?i($.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function Cr(e,t=1/0,n){if(t<=0||!Bt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,kt(e))Cr(e.value,t,n);else if(lt(e))for(let o=0;o{Cr(o,t,n)});else if(Z4(e)){for(const o in e)Cr(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Cr(e[o],t,n)}return e}/** -* @vue/runtime-core v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function $c(e,t,n,o){try{return o?e(...o):e()}catch(r){Rf(r,t,n)}}function Lo(e,t,n,o){if(st(e)){const r=$c(e,t,n,o);return r&&Y4(r)&&r.catch(l=>{Rf(l,t,n)}),r}if(lt(e)){const r=[];for(let l=0;l>>1,r=Fn[o],l=Gs(r);l=Gs(n)?Fn.push(e):Fn.splice($_(t),0,e),e.flags|=1,O3()}}function O3(){wd||(wd=w3.then(I3))}function C_(e){lt(e)?oa.push(...e):Jr&&e.id===-1?Jr.splice(zi+1,0,e):e.flags&1||(oa.push(e),e.flags|=1),O3()}function uS(e,t,n=Zo+1){for(;nGs(n)-Gs(o));if(oa.length=0,Jr){Jr.push(...t);return}for(Jr=t,zi=0;zie.id==null?e.flags&2?-1:1/0:e.id;function I3(e){const t=Do;try{for(Zo=0;Zo{o._d&&xS(-1);const l=Od(t);let i;try{i=e(...r)}finally{Od(l),o._d&&xS(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function $n(e,t){if(zn===null)return e;const n=zf(zn),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,hs=e=>e&&(e.disabled||e.disabled===""),dS=e=>e&&(e.defer||e.defer===""),fS=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pS=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Zh=(e,t)=>{const n=e&&e.to;return Ht(n)?t?t(n):null:n},_3={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,l,i,a,s,c){const{mc:u,pc:d,pbc:f,o:{insert:g,querySelector:v,createText:h,createComment:b}}=c,y=hs(t.props);let{shapeFlag:S,children:$,dynamicChildren:x}=t;if(e==null){const C=t.el=h(""),O=t.anchor=h("");g(C,n,o),g(O,n,o);const w=(T,_)=>{S&16&&(r&&r.isCE&&(r.ce._teleportTarget=T),u($,T,_,r,l,i,a,s))},I=()=>{const T=t.target=Zh(t.props,v),_=A3(T,t,h,g);T&&(i!=="svg"&&fS(T)?i="svg":i!=="mathml"&&pS(T)&&(i="mathml"),y||(w(T,_),Au(t,!1)))};y&&(w(n,O),Au(t,!0)),dS(t.props)?(t.el.__isMounted=!1,Bn(()=>{I(),delete t.el.__isMounted},l)):I()}else{if(dS(t.props)&&e.el.__isMounted===!1){Bn(()=>{_3.process(e,t,n,o,r,l,i,a,s,c)},l);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,O=t.target=e.target,w=t.targetAnchor=e.targetAnchor,I=hs(e.props),T=I?n:O,_=I?C:w;if(i==="svg"||fS(O)?i="svg":(i==="mathml"||pS(O))&&(i="mathml"),x?(f(e.dynamicChildren,x,T,r,l,i,a),i0(e,t,!0)):s||d(e,t,T,_,r,l,i,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Yc(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=Zh(t.props,v);E&&Yc(t,E,null,c,0)}else I&&Yc(t,O,w,c,1);Au(t,y)}},remove(e,t,n,{um:o,o:{remove:r}},l){const{shapeFlag:i,children:a,anchor:s,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(r(c),r(u)),l&&r(s),i&16){const g=l||!hs(f);for(let v=0;v{e.isMounted=!0}),Ze(()=>{e.isUnmounting=!0}),e}const go=[Function,Array],D3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:go,onEnter:go,onAfterEnter:go,onEnterCancelled:go,onBeforeLeave:go,onLeave:go,onAfterLeave:go,onLeaveCancelled:go,onBeforeAppear:go,onAppear:go,onAfterAppear:go,onAppearCancelled:go},B3=e=>{const t=e.subTree;return t.component?B3(t.component):t},w_={name:"BaseTransition",props:D3,setup(e,{slots:t}){const n=pn(),o=R3();return()=>{const r=t.default&&e0(t.default(),!0);if(!r||!r.length)return;const l=N3(r),i=Qe(e),{mode:a}=i;if(o.isLeaving)return bg(l);const s=gS(l);if(!s)return bg(l);let c=Xs(s,i,o,n,d=>c=d);s.type!==bn&&ai(s,c);let u=n.subTree&&gS(n.subTree);if(u&&u.type!==bn&&!Wl(s,u)&&B3(n).type!==bn){let d=Xs(u,i,o,n);if(ai(u,d),a==="out-in"&&s.type!==bn)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},bg(l);a==="in-out"&&s.type!==bn?d.delayLeave=(f,g,v)=>{const h=F3(o,u);h[String(u.key)]=u,f[el]=()=>{g(),f[el]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{v(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return l}}};function N3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==bn){t=n;break}}return t}const O_=w_;function F3(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Xs(e,t,n,o,r){const{appear:l,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:b,onAppear:y,onAfterAppear:S,onAppearCancelled:$}=t,x=String(e.key),C=F3(n,e),O=(T,_)=>{T&&Lo(T,o,9,_)},w=(T,_)=>{const E=_[1];O(T,_),lt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},I={mode:i,persisted:a,beforeEnter(T){let _=s;if(!n.isMounted)if(l)_=b||s;else return;T[el]&&T[el](!0);const E=C[x];E&&Wl(e,E)&&E.el[el]&&E.el[el](),O(_,[T])},enter(T){let _=c,E=u,A=d;if(!n.isMounted)if(l)_=y||c,E=S||u,A=$||d;else return;let R=!1;const z=T[qc]=M=>{R||(R=!0,M?O(A,[T]):O(E,[T]),I.delayedLeave&&I.delayedLeave(),T[qc]=void 0)};_?w(_,[T,z]):z()},leave(T,_){const E=String(e.key);if(T[qc]&&T[qc](!0),n.isUnmounting)return _();O(f,[T]);let A=!1;const R=T[el]=z=>{A||(A=!0,_(),z?O(h,[T]):O(v,[T]),T[el]=void 0,C[E]===e&&delete C[E])};C[E]=e,g?w(g,[T,R]):R()},clone(T){const _=Xs(T,t,n,o,r);return r&&r(_),_}};return I}function bg(e){if(Df(e))return e=sn(e),e.children=null,e}function gS(e){if(!Df(e))return M3(e.type)&&e.children?N3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&st(n.default))return n.default()}}function ai(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ai(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function e0(e,t=!1,n){let o=[],r=0;for(let l=0;l1)for(let l=0;lZt({name:e.name},t,{setup:e}))():e}function L3(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vs(e,t,n,o,r=!1){if(lt(e)){e.forEach((v,h)=>vs(v,t&&(lt(t)?t[h]:t),n,o,r));return}if(ms(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&vs(e,t,n,o.component.subTree);return}const l=o.shapeFlag&4?zf(o.component):o.el,i=r?null:l,{i:a,r:s}=e,c=t&&t.r,u=a.refs===Et?a.refs={}:a.refs,d=a.setupState,f=Qe(d),g=d===Et?()=>!1:v=>Ot(f,v);if(c!=null&&c!==s&&(Ht(c)?(u[c]=null,g(c)&&(d[c]=null)):kt(c)&&(c.value=null)),st(s))$c(s,a,12,[i,u]);else{const v=Ht(s),h=kt(s);if(v||h){const b=()=>{if(e.f){const y=v?g(s)?d[s]:u[s]:s.value;r?lt(y)&&km(y,l):lt(y)?y.includes(l)||y.push(l):v?(u[s]=[l],g(s)&&(d[s]=u[s])):(s.value=[l],e.k&&(u[e.k]=s.value))}else v?(u[s]=i,g(s)&&(d[s]=i)):h&&(s.value=i,e.k&&(u[e.k]=i))};i?(b.id=-1,Bn(b,n)):b()}}}_f().requestIdleCallback;_f().cancelIdleCallback;const ms=e=>!!e.type.__asyncLoader,Df=e=>e.type.__isKeepAlive;function Bf(e,t){z3(e,"a",t)}function k3(e,t){z3(e,"da",t)}function z3(e,t,n=fn){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Nf(t,o,n),n){let r=n.parent;for(;r&&r.parent;)Df(r.parent.vnode)&&P_(o,t,n,r),r=r.parent}}function P_(e,t,n,o){const r=Nf(t,e,o,!0);Rn(()=>{km(o[t],r)},n)}function Nf(e,t,n=fn,o=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...i)=>{Er();const a=Cc(n),s=Lo(t,n,e,i);return a(),Mr(),s});return o?r.unshift(l):r.push(l),l}}const Nr=e=>(t,n=fn)=>{(!Ys||e==="sp")&&Nf(e,(...o)=>t(...o),n)},Ff=Nr("bm"),je=Nr("m"),Lf=Nr("bu"),An=Nr("u"),Ze=Nr("bum"),Rn=Nr("um"),I_=Nr("sp"),T_=Nr("rtg"),E_=Nr("rtc");function M_(e,t=fn){Nf("ec",e,t)}const t0="components",__="directives";function zl(e,t){return n0(t0,e,!0,t)||e}const H3=Symbol.for("v-ndc");function C0e(e){return Ht(e)?n0(t0,e,!1)||e:e||H3}function A_(e){return n0(__,e)}function n0(e,t,n=!0,o=!1){const r=zn||fn;if(r){const l=r.type;if(e===t0){const a=CA(l,!1);if(a&&(a===t||a===Co(t)||a===Mf(Co(t))))return l}const i=hS(r[e]||l[e],t)||hS(r.appContext[e],t);return!i&&o?l:i}}function hS(e,t){return e&&(e[t]||e[Co(t)]||e[Mf(Co(t))])}function x0e(e,t,n,o){let r;const l=n&&n[o],i=lt(e);if(i||Ht(e)){const a=i&&fl(e);let s=!1,c=!1;a&&(s=!yo(e),c=ml(e),e=Af(e)),r=new Array(e.length);for(let u=0,d=e.length;ut(a,s,void 0,l&&l[s]));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,c=a.length;se?lO(e)?zf(e):Qh(e.parent):null,bs=Zt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qh(e.parent),$root:e=>Qh(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>o0(e),$forceUpdate:e=>e.f||(e.f=()=>{Qm(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>nA.bind(e)}),yg=(e,t)=>e!==Et&&!e.__isScriptSetup&&Ot(e,t),R_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:l,accessCache:i,type:a,appContext:s}=e;let c;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(yg(o,t))return i[t]=1,o[t];if(r!==Et&&Ot(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&Ot(c,t))return i[t]=3,l[t];if(n!==Et&&Ot(n,t))return i[t]=4,n[t];Jh&&(i[t]=0)}}const u=bs[t];let d,f;if(u)return t==="$attrs"&&Pn(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Et&&Ot(n,t))return i[t]=4,n[t];if(f=s.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:l}=e;return yg(r,t)?(r[t]=n,!0):o!==Et&&Ot(o,t)?(o[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:l}},i){let a;return!!n[i]||e!==Et&&Ot(e,i)||yg(t,i)||(a=l[0])&&Ot(a,i)||Ot(o,i)||Ot(bs,i)||Ot(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function D_(){return B_().attrs}function B_(){const e=pn();return e.setupContext||(e.setupContext=aO(e))}function vS(e){return lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Jh=!0;function N_(e){const t=o0(e),n=e.proxy,o=e.ctx;Jh=!1,t.beforeCreate&&mS(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:i,watch:a,provide:s,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:g,updated:v,activated:h,deactivated:b,beforeDestroy:y,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:O,renderTriggered:w,errorCaptured:I,serverPrefetch:T,expose:_,inheritAttrs:E,components:A,directives:R,filters:z}=t;if(c&&F_(c,o,null),i)for(const N in i){const F=i[N];st(F)&&(o[N]=F.bind(n))}if(r){const N=r.call(n,n);Bt(N)&&(e.data=ut(N))}if(Jh=!0,l)for(const N in l){const F=l[N],L=st(F)?F.bind(n,n):st(F.get)?F.get.bind(n,n):Do,k=!st(F)&&st(F.set)?F.set.bind(n):Do,j=P({get:L,set:k});Object.defineProperty(o,N,{enumerable:!0,configurable:!0,get:()=>j.value,set:H=>j.value=H})}if(a)for(const N in a)j3(a[N],o,n,N);if(s){const N=st(s)?s.call(n):s;Reflect.ownKeys(N).forEach(F=>{Ge(F,N[F])})}u&&mS(u,e,"c");function B(N,F){lt(F)?F.forEach(L=>N(L.bind(n))):F&&N(F.bind(n))}if(B(Ff,d),B(je,f),B(Lf,g),B(An,v),B(Bf,h),B(k3,b),B(M_,I),B(E_,O),B(T_,w),B(Ze,S),B(Rn,x),B(I_,T),lt(_))if(_.length){const N=e.exposed||(e.exposed={});_.forEach(F=>{Object.defineProperty(N,F,{get:()=>n[F],set:L=>n[F]=L})})}else e.exposed||(e.exposed={});C&&e.render===Do&&(e.render=C),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R),T&&L3(e)}function F_(e,t,n=Do){lt(e)&&(e=ev(e));for(const o in e){const r=e[o];let l;Bt(r)?"default"in r?l=He(r.from||o,r.default,!0):l=He(r.from||o):l=He(r),kt(l)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>l.value,set:i=>l.value=i}):t[o]=l}}function mS(e,t,n){Lo(lt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function j3(e,t,n,o){let r=o.includes(".")?J3(n,o):()=>n[o];if(Ht(e)){const l=t[e];st(l)&&be(r,l)}else if(st(e))be(r,e.bind(n));else if(Bt(e))if(lt(e))e.forEach(l=>j3(l,t,n,o));else{const l=st(e.handler)?e.handler.bind(n):t[e.handler];st(l)&&be(r,l,e)}}function o0(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:i}}=e.appContext,a=l.get(t);let s;return a?s=a:!r.length&&!n&&!o?s=t:(s={},r.length&&r.forEach(c=>Pd(s,c,i,!0)),Pd(s,t,i)),Bt(t)&&l.set(t,s),s}function Pd(e,t,n,o=!1){const{mixins:r,extends:l}=t;l&&Pd(e,l,n,!0),r&&r.forEach(i=>Pd(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=L_[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const L_={data:bS,props:yS,emits:yS,methods:is,computed:is,beforeCreate:Dn,created:Dn,beforeMount:Dn,mounted:Dn,beforeUpdate:Dn,updated:Dn,beforeDestroy:Dn,beforeUnmount:Dn,destroyed:Dn,unmounted:Dn,activated:Dn,deactivated:Dn,errorCaptured:Dn,serverPrefetch:Dn,components:is,directives:is,watch:z_,provide:bS,inject:k_};function bS(e,t){return t?e?function(){return Zt(st(e)?e.call(this,this):e,st(t)?t.call(this,this):t)}:t:e}function k_(e,t){return is(ev(e),ev(t))}function ev(e){if(lt(e)){const t={};for(let n=0;n1)return n&&st(t)?t.call(o&&o.proxy):t}}function W_(){return!!(fn||zn||ei)}const V3={},K3=()=>Object.create(V3),G3=e=>Object.getPrototypeOf(e)===V3;function V_(e,t,n,o=!1){const r={},l=K3();e.propsDefaults=Object.create(null),X3(e,t,r,l);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=o?r:b3(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function K_(e,t,n,o){const{props:r,attrs:l,vnode:{patchFlag:i}}=e,a=Qe(r),[s]=e.propsOptions;let c=!1;if((o||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,g]=U3(d,t,!0);Zt(i,f),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!l&&!s)return Bt(e)&&o.set(e,ta),ta;if(lt(l))for(let u=0;ue[0]==="_"||e==="$stable",l0=e=>lt(e)?e.map(tr):[tr(e)],X_=(e,t,n)=>{if(t._n)return t;const o=hn((...r)=>l0(t(...r)),n);return o._c=!1,o},Y3=(e,t,n)=>{const o=e._ctx;for(const r in e){if(r0(r))continue;const l=e[r];if(st(l))t[r]=X_(r,l,o);else if(l!=null){const i=l0(l);t[r]=()=>i}}},q3=(e,t)=>{const n=l0(t);e.slots.default=()=>n},Z3=(e,t,n)=>{for(const o in t)(n||!r0(o))&&(e[o]=t[o])},U_=(e,t,n)=>{const o=e.slots=K3();if(e.vnode.shapeFlag&32){const r=t.__;r&&Xh(o,"__",r,!0);const l=t._;l?(Z3(o,t,n),n&&Xh(o,"_",l,!0)):Y3(t,o)}else t&&q3(e,t)},Y_=(e,t,n)=>{const{vnode:o,slots:r}=e;let l=!0,i=Et;if(o.shapeFlag&32){const a=t._;a?n&&a===1?l=!1:Z3(r,t,n):(l=!t.$stable,Y3(t,r)),i=t}else t&&(q3(e,t),i={default:1});if(l)for(const a in r)!r0(a)&&i[a]==null&&delete r[a]},Bn=cA;function q_(e){return Z_(e)}function Z_(e,t){const n=_f();n.__VUE__=!0;const{insert:o,remove:r,patchProp:l,createElement:i,createText:a,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:g=Do,insertStaticContent:v}=e,h=(W,X,ne,ae=null,se=null,re=null,de=void 0,ge=null,me=!!X.dynamicChildren)=>{if(W===X)return;W&&!Wl(W,X)&&(ae=G(W),H(W,se,re,!0),W=null),X.patchFlag===-2&&(me=!1,X.dynamicChildren=null);const{type:fe,ref:ye,shapeFlag:Se}=X;switch(fe){case Cl:b(W,X,ne,ae);break;case bn:y(W,X,ne,ae);break;case Cg:W==null&&S(X,ne,ae,de);break;case We:A(W,X,ne,ae,se,re,de,ge,me);break;default:Se&1?C(W,X,ne,ae,se,re,de,ge,me):Se&6?R(W,X,ne,ae,se,re,de,ge,me):(Se&64||Se&128)&&fe.process(W,X,ne,ae,se,re,de,ge,me,K)}ye!=null&&se?vs(ye,W&&W.ref,re,X||W,!X):ye==null&&W&&W.ref!=null&&vs(W.ref,null,re,W,!0)},b=(W,X,ne,ae)=>{if(W==null)o(X.el=a(X.children),ne,ae);else{const se=X.el=W.el;X.children!==W.children&&c(se,X.children)}},y=(W,X,ne,ae)=>{W==null?o(X.el=s(X.children||""),ne,ae):X.el=W.el},S=(W,X,ne,ae)=>{[W.el,W.anchor]=v(W.children,X,ne,ae,W.el,W.anchor)},$=({el:W,anchor:X},ne,ae)=>{let se;for(;W&&W!==X;)se=f(W),o(W,ne,ae),W=se;o(X,ne,ae)},x=({el:W,anchor:X})=>{let ne;for(;W&&W!==X;)ne=f(W),r(W),W=ne;r(X)},C=(W,X,ne,ae,se,re,de,ge,me)=>{X.type==="svg"?de="svg":X.type==="math"&&(de="mathml"),W==null?O(X,ne,ae,se,re,de,ge,me):T(W,X,se,re,de,ge,me)},O=(W,X,ne,ae,se,re,de,ge)=>{let me,fe;const{props:ye,shapeFlag:Se,transition:ue,dirs:ce}=W;if(me=W.el=i(W.type,re,ye&&ye.is,ye),Se&8?u(me,W.children):Se&16&&I(W.children,me,null,ae,se,Sg(W,re),de,ge),ce&&Ml(W,null,ae,"created"),w(me,W,W.scopeId,de,ae),ye){for(const Pe in ye)Pe!=="value"&&!fs(Pe)&&l(me,Pe,null,ye[Pe],re,ae);"value"in ye&&l(me,"value",null,ye.value,re),(fe=ye.onVnodeBeforeMount)&&Xo(fe,ae,W)}ce&&Ml(W,null,ae,"beforeMount");const he=Q_(se,ue);he&&ue.beforeEnter(me),o(me,X,ne),((fe=ye&&ye.onVnodeMounted)||he||ce)&&Bn(()=>{fe&&Xo(fe,ae,W),he&&ue.enter(me),ce&&Ml(W,null,ae,"mounted")},se)},w=(W,X,ne,ae,se)=>{if(ne&&g(W,ne),ae)for(let re=0;re{for(let fe=me;fe{const ge=X.el=W.el;let{patchFlag:me,dynamicChildren:fe,dirs:ye}=X;me|=W.patchFlag&16;const Se=W.props||Et,ue=X.props||Et;let ce;if(ne&&_l(ne,!1),(ce=ue.onVnodeBeforeUpdate)&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"beforeUpdate"),ne&&_l(ne,!0),(Se.innerHTML&&ue.innerHTML==null||Se.textContent&&ue.textContent==null)&&u(ge,""),fe?_(W.dynamicChildren,fe,ge,ne,ae,Sg(X,se),re):de||F(W,X,ge,null,ne,ae,Sg(X,se),re,!1),me>0){if(me&16)E(ge,Se,ue,ne,se);else if(me&2&&Se.class!==ue.class&&l(ge,"class",null,ue.class,se),me&4&&l(ge,"style",Se.style,ue.style,se),me&8){const he=X.dynamicProps;for(let Pe=0;Pe{ce&&Xo(ce,ne,X,W),ye&&Ml(X,W,ne,"updated")},ae)},_=(W,X,ne,ae,se,re,de)=>{for(let ge=0;ge{if(X!==ne){if(X!==Et)for(const re in X)!fs(re)&&!(re in ne)&&l(W,re,X[re],null,se,ae);for(const re in ne){if(fs(re))continue;const de=ne[re],ge=X[re];de!==ge&&re!=="value"&&l(W,re,ge,de,se,ae)}"value"in ne&&l(W,"value",X.value,ne.value,se)}},A=(W,X,ne,ae,se,re,de,ge,me)=>{const fe=X.el=W?W.el:a(""),ye=X.anchor=W?W.anchor:a("");let{patchFlag:Se,dynamicChildren:ue,slotScopeIds:ce}=X;ce&&(ge=ge?ge.concat(ce):ce),W==null?(o(fe,ne,ae),o(ye,ne,ae),I(X.children||[],ne,ye,se,re,de,ge,me)):Se>0&&Se&64&&ue&&W.dynamicChildren?(_(W.dynamicChildren,ue,ne,se,re,de,ge),(X.key!=null||se&&X===se.subTree)&&i0(W,X,!0)):F(W,X,ne,ye,se,re,de,ge,me)},R=(W,X,ne,ae,se,re,de,ge,me)=>{X.slotScopeIds=ge,W==null?X.shapeFlag&512?se.ctx.activate(X,ne,ae,de,me):z(X,ne,ae,se,re,de,me):M(W,X,me)},z=(W,X,ne,ae,se,re,de)=>{const ge=W.component=bA(W,ae,se);if(Df(W)&&(ge.ctx.renderer=K),yA(ge,!1,de),ge.asyncDep){if(se&&se.registerDep(ge,B,de),!W.el){const me=ge.subTree=p(bn);y(null,me,X,ne)}}else B(ge,W,X,ne,se,re,de)},M=(W,X,ne)=>{const ae=X.component=W.component;if(aA(W,X,ne))if(ae.asyncDep&&!ae.asyncResolved){N(ae,X,ne);return}else ae.next=X,ae.update();else X.el=W.el,ae.vnode=X},B=(W,X,ne,ae,se,re,de)=>{const ge=()=>{if(W.isMounted){let{next:Se,bu:ue,u:ce,parent:he,vnode:Pe}=W;{const we=Q3(W);if(we){Se&&(Se.el=Pe.el,N(W,Se,de)),we.asyncDep.then(()=>{W.isUnmounted||ge()});return}}let Ie=Se,Ae;_l(W,!1),Se?(Se.el=Pe.el,N(W,Se,de)):Se=Pe,ue&&pg(ue),(Ae=Se.props&&Se.props.onVnodeBeforeUpdate)&&Xo(Ae,he,Se,Pe),_l(W,!0);const $e=$g(W),xe=W.subTree;W.subTree=$e,h(xe,$e,d(xe.el),G(xe),W,se,re),Se.el=$e.el,Ie===null&&sA(W,$e.el),ce&&Bn(ce,se),(Ae=Se.props&&Se.props.onVnodeUpdated)&&Bn(()=>Xo(Ae,he,Se,Pe),se)}else{let Se;const{el:ue,props:ce}=X,{bm:he,m:Pe,parent:Ie,root:Ae,type:$e}=W,xe=ms(X);if(_l(W,!1),he&&pg(he),!xe&&(Se=ce&&ce.onVnodeBeforeMount)&&Xo(Se,Ie,X),_l(W,!0),ue&&pe){const we=()=>{W.subTree=$g(W),pe(ue,W.subTree,W,se,null)};xe&&$e.__asyncHydrate?$e.__asyncHydrate(ue,W,we):we()}else{Ae.ce&&Ae.ce._def.shadowRoot!==!1&&Ae.ce._injectChildStyle($e);const we=W.subTree=$g(W);h(null,we,ne,ae,W,se,re),X.el=we.el}if(Pe&&Bn(Pe,se),!xe&&(Se=ce&&ce.onVnodeMounted)){const we=X;Bn(()=>Xo(Se,Ie,we),se)}(X.shapeFlag&256||Ie&&ms(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&W.a&&Bn(W.a,se),W.isMounted=!0,X=ne=ae=null}};W.scope.on();const me=W.effect=new r3(ge);W.scope.off();const fe=W.update=me.run.bind(me),ye=W.job=me.runIfDirty.bind(me);ye.i=W,ye.id=W.uid,me.scheduler=()=>Qm(ye),_l(W,!0),fe()},N=(W,X,ne)=>{X.component=W;const ae=W.vnode.props;W.vnode=X,W.next=null,K_(W,X.props,ae,ne),Y_(W,X.children,ne),Er(),uS(W),Mr()},F=(W,X,ne,ae,se,re,de,ge,me=!1)=>{const fe=W&&W.children,ye=W?W.shapeFlag:0,Se=X.children,{patchFlag:ue,shapeFlag:ce}=X;if(ue>0){if(ue&128){k(fe,Se,ne,ae,se,re,de,ge,me);return}else if(ue&256){L(fe,Se,ne,ae,se,re,de,ge,me);return}}ce&8?(ye&16&&ee(fe,se,re),Se!==fe&&u(ne,Se)):ye&16?ce&16?k(fe,Se,ne,ae,se,re,de,ge,me):ee(fe,se,re,!0):(ye&8&&u(ne,""),ce&16&&I(Se,ne,ae,se,re,de,ge,me))},L=(W,X,ne,ae,se,re,de,ge,me)=>{W=W||ta,X=X||ta;const fe=W.length,ye=X.length,Se=Math.min(fe,ye);let ue;for(ue=0;ueye?ee(W,se,re,!0,!1,Se):I(X,ne,ae,se,re,de,ge,me,Se)},k=(W,X,ne,ae,se,re,de,ge,me)=>{let fe=0;const ye=X.length;let Se=W.length-1,ue=ye-1;for(;fe<=Se&&fe<=ue;){const ce=W[fe],he=X[fe]=me?tl(X[fe]):tr(X[fe]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;fe++}for(;fe<=Se&&fe<=ue;){const ce=W[Se],he=X[ue]=me?tl(X[ue]):tr(X[ue]);if(Wl(ce,he))h(ce,he,ne,null,se,re,de,ge,me);else break;Se--,ue--}if(fe>Se){if(fe<=ue){const ce=ue+1,he=ceue)for(;fe<=Se;)H(W[fe],se,re,!0),fe++;else{const ce=fe,he=fe,Pe=new Map;for(fe=he;fe<=ue;fe++){const _e=X[fe]=me?tl(X[fe]):tr(X[fe]);_e.key!=null&&Pe.set(_e.key,fe)}let Ie,Ae=0;const $e=ue-he+1;let xe=!1,we=0;const Me=new Array($e);for(fe=0;fe<$e;fe++)Me[fe]=0;for(fe=ce;fe<=Se;fe++){const _e=W[fe];if(Ae>=$e){H(_e,se,re,!0);continue}let De;if(_e.key!=null)De=Pe.get(_e.key);else for(Ie=he;Ie<=ue;Ie++)if(Me[Ie-he]===0&&Wl(_e,X[Ie])){De=Ie;break}De===void 0?H(_e,se,re,!0):(Me[De-he]=fe+1,De>=we?we=De:xe=!0,h(_e,X[De],ne,null,se,re,de,ge,me),Ae++)}const Ne=xe?J_(Me):ta;for(Ie=Ne.length-1,fe=$e-1;fe>=0;fe--){const _e=he+fe,De=X[_e],Je=_e+1{const{el:re,type:de,transition:ge,children:me,shapeFlag:fe}=W;if(fe&6){j(W.component.subTree,X,ne,ae);return}if(fe&128){W.suspense.move(X,ne,ae);return}if(fe&64){de.move(W,X,ne,K);return}if(de===We){o(re,X,ne);for(let Se=0;Sege.enter(re),se);else{const{leave:Se,delayLeave:ue,afterLeave:ce}=ge,he=()=>{W.ctx.isUnmounted?r(re):o(re,X,ne)},Pe=()=>{Se(re,()=>{he(),ce&&ce()})};ue?ue(re,he,Pe):Pe()}else o(re,X,ne)},H=(W,X,ne,ae=!1,se=!1)=>{const{type:re,props:de,ref:ge,children:me,dynamicChildren:fe,shapeFlag:ye,patchFlag:Se,dirs:ue,cacheIndex:ce}=W;if(Se===-2&&(se=!1),ge!=null&&(Er(),vs(ge,null,ne,W,!0),Mr()),ce!=null&&(X.renderCache[ce]=void 0),ye&256){X.ctx.deactivate(W);return}const he=ye&1&&ue,Pe=!ms(W);let Ie;if(Pe&&(Ie=de&&de.onVnodeBeforeUnmount)&&Xo(Ie,X,W),ye&6)U(W.component,ne,ae);else{if(ye&128){W.suspense.unmount(ne,ae);return}he&&Ml(W,null,X,"beforeUnmount"),ye&64?W.type.remove(W,X,ne,K,ae):fe&&!fe.hasOnce&&(re!==We||Se>0&&Se&64)?ee(fe,X,ne,!1,!0):(re===We&&Se&384||!se&&ye&16)&&ee(me,X,ne),ae&&Y(W)}(Pe&&(Ie=de&&de.onVnodeUnmounted)||he)&&Bn(()=>{Ie&&Xo(Ie,X,W),he&&Ml(W,null,X,"unmounted")},ne)},Y=W=>{const{type:X,el:ne,anchor:ae,transition:se}=W;if(X===We){Z(ne,ae);return}if(X===Cg){x(W);return}const re=()=>{r(ne),se&&!se.persisted&&se.afterLeave&&se.afterLeave()};if(W.shapeFlag&1&&se&&!se.persisted){const{leave:de,delayLeave:ge}=se,me=()=>de(ne,re);ge?ge(W.el,re,me):me()}else re()},Z=(W,X)=>{let ne;for(;W!==X;)ne=f(W),r(W),W=ne;r(X)},U=(W,X,ne)=>{const{bum:ae,scope:se,job:re,subTree:de,um:ge,m:me,a:fe,parent:ye,slots:{__:Se}}=W;$S(me),$S(fe),ae&&pg(ae),ye&<(Se)&&Se.forEach(ue=>{ye.renderCache[ue]=void 0}),se.stop(),re&&(re.flags|=8,H(de,W,X,ne)),ge&&Bn(ge,X),Bn(()=>{W.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},ee=(W,X,ne,ae=!1,se=!1,re=0)=>{for(let de=re;de{if(W.shapeFlag&6)return G(W.component.subTree);if(W.shapeFlag&128)return W.suspense.next();const X=f(W.anchor||W.el),ne=X&&X[E3];return ne?f(ne):X};let J=!1;const Q=(W,X,ne)=>{W==null?X._vnode&&H(X._vnode,null,null,!0):h(X._vnode||null,W,X,null,null,null,ne),X._vnode=W,J||(J=!0,uS(),P3(),J=!1)},K={p:h,um:H,m:j,r:Y,mt:z,mc:I,pc:F,pbc:_,n:G,o:e};let q,pe;return t&&([q,pe]=t(K)),{render:Q,hydrate:q,createApp:j_(Q,q)}}function Sg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function _l({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Q_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function i0(e,t,n=!1){const o=e.children,r=t.children;if(lt(o)&<(r))for(let l=0;l>1,e[n[a]]0&&(t[o]=n[l-1]),n[l]=o)}}for(l=n.length,i=n[l-1];l-- >0;)n[l]=i,i=t[i];return n}function Q3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Q3(t)}function $S(e){if(e)for(let t=0;tHe(eA);function ke(e,t){return a0(e,null,t)}function be(e,t,n){return a0(e,t,n)}function a0(e,t,n=Et){const{immediate:o,deep:r,flush:l,once:i}=n,a=Zt({},n),s=t&&o||!t&&l!=="post";let c;if(Ys){if(l==="sync"){const g=tA();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=Do,g.resume=Do,g.pause=Do,g}}const u=fn;a.call=(g,v,h)=>Lo(g,u,v,h);let d=!1;l==="post"?a.scheduler=g=>{Bn(g,u&&u.suspense)}:l!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():Qm(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const f=y_(e,t,a);return Ys&&(c?c.push(f):s&&f()),f}function nA(e,t,n){const o=this.proxy,r=Ht(e)?e.includes(".")?J3(o,e):()=>o[e]:e.bind(o,o);let l;st(t)?l=t:(l=t.handler,n=t);const i=Cc(this),a=a0(r,l.bind(o),n);return i(),a}function J3(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Co(t)}Modifiers`]||e[`${vi(t)}Modifiers`];function rA(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Et;let r=n;const l=t.startsWith("update:"),i=l&&oA(o,t.slice(7));i&&(i.trim&&(r=n.map(u=>Ht(u)?u.trim():u)),i.number&&(r=n.map(kM)));let a,s=o[a=fg(t)]||o[a=fg(Co(t))];!s&&l&&(s=o[a=fg(vi(t))]),s&&Lo(s,e,6,r);const c=o[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lo(c,e,6,r)}}function eO(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(r!==void 0)return r;const l=e.emits;let i={},a=!1;if(!st(e)){const s=c=>{const u=eO(c,t,!0);u&&(a=!0,Zt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!l&&!a?(Bt(e)&&o.set(e,null),null):(lt(l)?l.forEach(s=>i[s]=null):Zt(i,l),Bt(e)&&o.set(e,i),i)}function kf(e,t){return!e||!If(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,vi(t))||Ot(e,t))}function $g(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[l],slots:i,attrs:a,emit:s,render:c,renderCache:u,props:d,data:f,setupState:g,ctx:v,inheritAttrs:h}=e,b=Od(e);let y,S;try{if(n.shapeFlag&4){const x=r||o,C=x;y=tr(c.call(C,x,u,d,g,f,v)),S=a}else{const x=t;y=tr(x.length>1?x(d,{attrs:a,slots:i,emit:s}):x(d,null)),S=t.props?a:lA(a)}}catch(x){ys.length=0,Rf(x,e,1),y=p(bn)}let $=y;if(S&&h!==!1){const x=Object.keys(S),{shapeFlag:C}=$;x.length&&C&7&&(l&&x.some(Lm)&&(S=iA(S,l)),$=sn($,S,!1,!0))}return n.dirs&&($=sn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&ai($,n.transition),y=$,Od(b),y}const lA=e=>{let t;for(const n in e)(n==="class"||n==="style"||If(n))&&((t||(t={}))[n]=e[n]);return t},iA=(e,t)=>{const n={};for(const o in e)(!Lm(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function aA(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:a,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return o?CS(o,i,c):!!i;if(s&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function cA(e,t){t&&t.pendingBranch?lt(e)?t.effects.push(...e):t.effects.push(e):C_(e)}const We=Symbol.for("v-fgt"),Cl=Symbol.for("v-txt"),bn=Symbol.for("v-cmt"),Cg=Symbol.for("v-stc"),ys=[];let lo=null;function s0(e=!1){ys.push(lo=e?null:[])}function uA(){ys.pop(),lo=ys[ys.length-1]||null}let Us=1;function xS(e,t=!1){Us+=e,e<0&&lo&&t&&(lo.hasOnce=!0)}function nO(e){return e.dynamicChildren=Us>0?lo||ta:null,uA(),Us>0&&lo&&lo.push(e),e}function oO(e,t,n,o,r,l){return nO(Gi(e,t,n,o,r,l,!0))}function dA(e,t,n,o,r){return nO(p(e,t,n,o,r,!0))}function Yt(e){return e?e.__v_isVNode===!0:!1}function Wl(e,t){return e.type===t.type&&e.key===t.key}const rO=({key:e})=>e??null,Ru=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ht(e)||kt(e)||st(e)?{i:zn,r:e,k:t,f:!!n}:e:null);function Gi(e,t=null,n=null,o=0,r=null,l=e===We?0:1,i=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rO(t),ref:t&&Ru(t),scopeId:T3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:zn};return a?(c0(s,n),l&128&&e.normalize(s)):n&&(s.shapeFlag|=Ht(n)?8:16),Us>0&&!i&&lo&&(s.patchFlag>0||l&6)&&s.patchFlag!==32&&lo.push(s),s}const p=fA;function fA(e,t=null,n=null,o=0,r=null,l=!1){if((!e||e===H3)&&(e=bn),Yt(e)){const a=sn(e,t,!0);return n&&c0(a,n),Us>0&&!l&&lo&&(a.shapeFlag&6?lo[lo.indexOf(e)]=a:lo.push(a)),a.patchFlag=-2,a}if(xA(e)&&(e=e.__vccOpts),t){t=pA(t);let{class:a,style:s}=t;a&&!Ht(a)&&(t.class=jm(a)),Bt(s)&&(qm(s)&&!lt(s)&&(s=Zt({},s)),t.style=Hm(s))}const i=Ht(e)?1:tO(e)?128:M3(e)?64:Bt(e)?4:st(e)?2:0;return Gi(e,t,n,o,r,i,l,!0)}function pA(e){return e?qm(e)||G3(e)?Zt({},e):e:null}function sn(e,t,n=!1,o=!1){const{props:r,ref:l,patchFlag:i,children:a,transition:s}=e,c=t?hA(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rO(c),ref:t&&t.ref?n&&l?lt(l)?l.concat(Ru(t)):[l,Ru(t)]:Ru(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sn(e.ssContent),ssFallback:e.ssFallback&&sn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&ai(u,s.clone(u)),u}function Lt(e=" ",t=0){return p(Cl,null,e,t)}function gA(e="",t=!1){return t?(s0(),dA(bn,null,e)):p(bn,null,e)}function tr(e){return e==null||typeof e=="boolean"?p(bn):lt(e)?p(We,null,e.slice()):Yt(e)?tl(e):p(Cl,null,String(e))}function tl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sn(e)}function c0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(lt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),c0(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!G3(t)?t._ctx=zn:r===3&&zn&&(zn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else st(t)?(t={default:t,_ctx:zn},n=32):(t=String(t),o&64?(n=16,t=[Lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function hA(...e){const t={};for(let n=0;nfn||zn;let Id,nv;{const e=_f(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),l=>{r.length>1?r.forEach(i=>i(l)):r[0](l)}};Id=t("__VUE_INSTANCE_SETTERS__",n=>fn=n),nv=t("__VUE_SSR_SETTERS__",n=>Ys=n)}const Cc=e=>{const t=fn;return Id(e),e.scope.on(),()=>{e.scope.off(),Id(t)}},wS=()=>{fn&&fn.scope.off(),Id(null)};function lO(e){return e.vnode.shapeFlag&4}let Ys=!1;function yA(e,t=!1,n=!1){t&&nv(t);const{props:o,children:r}=e.vnode,l=lO(e);V_(e,o,l,t),U_(e,r,n||t);const i=l?SA(e,t):void 0;return t&&nv(!1),i}function SA(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,R_);const{setup:o}=n;if(o){Er();const r=e.setupContext=o.length>1?aO(e):null,l=Cc(e),i=$c(o,e,0,[e.props,r]),a=Y4(i);if(Mr(),l(),(a||e.sp)&&!ms(e)&&L3(e),a){if(i.then(wS,wS),t)return i.then(s=>{OS(e,s,t)}).catch(s=>{Rf(s,e,0)});e.asyncDep=i}else OS(e,i,t)}else iO(e,t)}function OS(e,t,n){st(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Bt(t)&&(e.setupState=C3(t)),iO(e,n)}let PS;function iO(e,t,n){const o=e.type;if(!e.render){if(!t&&PS&&!o.render){const r=o.template||o0(e).template;if(r){const{isCustomElement:l,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:s}=o,c=Zt(Zt({isCustomElement:l,delimiters:a},i),s);o.render=PS(r,c)}}e.render=o.render||Do}{const r=Cc(e);Er();try{N_(e)}finally{Mr(),r()}}}const $A={get(e,t){return Pn(e,"get",""),e[t]}};function aO(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$A),slots:e.slots,emit:e.emit,expose:t}}function zf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(C3(Zm(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bs)return bs[n](e)},has(t,n){return n in t||n in bs}})):e.proxy}function CA(e,t=!0){return st(e)?e.displayName||e.name:e.name||t&&e.__name}function xA(e){return st(e)&&"__vccOpts"in e}const P=(e,t)=>m_(e,t,Ys);function _r(e,t,n){const o=arguments.length;return o===2?Bt(t)&&!lt(t)?Yt(t)?p(e,null,[t]):p(e,t):p(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Yt(n)&&(n=[n]),p(e,t,n))}const wA="3.5.17";/** -* @vue/runtime-dom v3.5.17 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let ov;const IS=typeof window<"u"&&window.trustedTypes;if(IS)try{ov=IS.createPolicy("vue",{createHTML:e=>e})}catch{}const sO=ov?e=>ov.createHTML(e):e=>e,OA="http://www.w3.org/2000/svg",PA="http://www.w3.org/1998/Math/MathML",br=typeof document<"u"?document:null,TS=br&&br.createElement("template"),IA={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?br.createElementNS(OA,e):t==="mathml"?br.createElementNS(PA,e):n?br.createElement(e,{is:n}):br.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>br.createTextNode(e),createComment:e=>br.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>br.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{TS.innerHTML=sO(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=TS.content;if(o==="svg"||o==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xr="transition",Ya="animation",ma=Symbol("_vtc"),cO={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},uO=Zt({},D3,cO),TA=e=>(e.displayName="Transition",e.props=uO,e),cn=TA((e,{slots:t})=>_r(O_,dO(e),t)),Al=(e,t=[])=>{lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},ES=e=>e?lt(e)?e.some(t=>t.length>1):e.length>1:!1;function dO(e){const t={};for(const A in e)A in cO||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:l=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=l,appearActiveClass:c=i,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=EA(r),h=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:$,onLeave:x,onLeaveCancelled:C,onBeforeAppear:O=y,onAppear:w=S,onAppearCancelled:I=$}=t,T=(A,R,z,M)=>{A._enterCancelled=M,qr(A,R?u:a),qr(A,R?c:i),z&&z()},_=(A,R)=>{A._isLeaving=!1,qr(A,d),qr(A,g),qr(A,f),R&&R()},E=A=>(R,z)=>{const M=A?w:S,B=()=>T(R,A,z);Al(M,[R,B]),MS(()=>{qr(R,A?s:l),Uo(R,A?u:a),ES(M)||_S(R,o,h,B)})};return Zt(t,{onBeforeEnter(A){Al(y,[A]),Uo(A,l),Uo(A,i)},onBeforeAppear(A){Al(O,[A]),Uo(A,s),Uo(A,c)},onEnter:E(!1),onAppear:E(!0),onLeave(A,R){A._isLeaving=!0;const z=()=>_(A,R);Uo(A,d),A._enterCancelled?(Uo(A,f),rv()):(rv(),Uo(A,f)),MS(()=>{A._isLeaving&&(qr(A,d),Uo(A,g),ES(x)||_S(A,o,b,z))}),Al(x,[A,z])},onEnterCancelled(A){T(A,!1,void 0,!0),Al($,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),Al(I,[A])},onLeaveCancelled(A){_(A),Al(C,[A])}})}function EA(e){if(e==null)return null;if(Bt(e))return[xg(e.enter),xg(e.leave)];{const t=xg(e);return[t,t]}}function xg(e){return zM(e)}function Uo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ma]||(e[ma]=new Set)).add(t)}function qr(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[ma];n&&(n.delete(t),n.size||(e[ma]=void 0))}function MS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let MA=0;function _S(e,t,n,o){const r=e._endId=++MA,l=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(l,n);const{type:i,timeout:a,propCount:s}=fO(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,f),l()},f=g=>{g.target===e&&++u>=s&&d()};setTimeout(()=>{u(n[v]||"").split(", "),r=o(`${Xr}Delay`),l=o(`${Xr}Duration`),i=AS(r,l),a=o(`${Ya}Delay`),s=o(`${Ya}Duration`),c=AS(a,s);let u=null,d=0,f=0;t===Xr?i>0&&(u=Xr,d=i,f=l.length):t===Ya?c>0&&(u=Ya,d=c,f=s.length):(d=Math.max(i,c),u=d>0?i>c?Xr:Ya:null,f=u?u===Xr?l.length:s.length:0);const g=u===Xr&&/\b(transform|all)(,|$)/.test(o(`${Xr}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:g}}function AS(e,t){for(;e.lengthRS(n)+RS(e[o])))}function RS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function rv(){return document.body.offsetHeight}function _A(e,t,n){const o=e[ma];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Td=Symbol("_vod"),pO=Symbol("_vsh"),En={beforeMount(e,{value:t},{transition:n}){e[Td]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),qa(e,!0),o.enter(e)):o.leave(e,()=>{qa(e,!1)}):qa(e,t))},beforeUnmount(e,{value:t}){qa(e,t)}};function qa(e,t){e.style.display=t?e[Td]:"none",e[pO]=!t}const AA=Symbol(""),RA=/(^|;)\s*display\s*:/;function DA(e,t,n){const o=e.style,r=Ht(n);let l=!1;if(n&&!r){if(t)if(Ht(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Du(o,a,"")}else for(const i in t)n[i]==null&&Du(o,i,"");for(const i in n)i==="display"&&(l=!0),Du(o,i,n[i])}else if(r){if(t!==n){const i=o[AA];i&&(n+=";"+i),o.cssText=n,l=RA.test(n)}}else t&&e.removeAttribute("style");Td in e&&(e[Td]=l?o.display:"",e[pO]&&(o.display="none"))}const DS=/\s*!important$/;function Du(e,t,n){if(lt(n))n.forEach(o=>Du(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=BA(e,t);DS.test(n)?e.setProperty(vi(o),n.replace(DS,""),"important"):e[o]=n}}const BS=["Webkit","Moz","ms"],wg={};function BA(e,t){const n=wg[t];if(n)return n;let o=Co(t);if(o!=="filter"&&o in e)return wg[t]=o;o=Mf(o);for(let r=0;rOg||(zA.then(()=>Og=0),Og=Date.now());function jA(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Lo(WA(o,n.value),t,5,[o])};return n.value=e,n.attached=HA(),n}function WA(e,t){if(lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const HS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,VA=(e,t,n,o,r,l)=>{const i=r==="svg";t==="class"?_A(e,o,i):t==="style"?DA(e,n,o):If(t)?Lm(t)||LA(e,t,n,o,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):KA(e,t,o,i))?(LS(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&FS(e,t,o,i,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?LS(e,Co(t),o,l,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),FS(e,t,o,i))};function KA(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&HS(t)&&st(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return HS(t)&&Ht(n)?!1:t in e}const gO=new WeakMap,hO=new WeakMap,Ed=Symbol("_moveCb"),jS=Symbol("_enterCb"),GA=e=>(delete e.props.mode,e),XA=GA({name:"TransitionGroup",props:Zt({},uO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pn(),o=R3();let r,l;return An(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!ZA(r[0].el,n.vnode.el,i)){r=[];return}r.forEach(UA),r.forEach(YA);const a=r.filter(qA);rv(),a.forEach(s=>{const c=s.el,u=c.style;Uo(c,i),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Ed]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[Ed]=null,qr(c,i))};c.addEventListener("transitionend",d)}),r=[]}),()=>{const i=Qe(e),a=dO(i);let s=i.tag||We;if(r=[],l)for(let c=0;c{a.split(/\s+/).forEach(s=>s&&o.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(o);const{hasTransform:i}=fO(o);return l.removeChild(o),i}const QA=["ctrl","shift","alt","meta"],JA={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>QA.some(n=>e[`${n}Key`]&&!t.includes(n))},WS=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(r,...l)=>{for(let i=0;i{vO().render(...e)},mO=(...e)=>{const t=vO().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=n7(o);if(!r)return;const l=t._component;!st(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,t7(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function t7(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n7(e){return Ht(e)?document.querySelector(e):e}var o7=!1;/*! - * pinia v2.3.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */let bO;const jf=e=>bO=e,yO=Symbol();function lv(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ss;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ss||(Ss={}));function r7(){const e=n3(!0),t=e.run(()=>le({}));let n=[],o=[];const r=Zm({install(l){jf(r),r._a=l,l.provide(yO,r),l.config.globalProperties.$pinia=r,o.forEach(i=>n.push(i)),o=[]},use(l){return!this._a&&!o7?o.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const SO=()=>{};function KS(e,t,n,o=SO){e.push(t);const r=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),o())};return!n&&Wm()&&o3(r),r}function _i(e,...t){e.slice().forEach(n=>{n(...t)})}const l7=e=>e(),GS=Symbol(),Pg=Symbol();function iv(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];lv(r)&&lv(o)&&e.hasOwnProperty(n)&&!kt(o)&&!fl(o)?e[n]=iv(r,o):e[n]=o}return e}const i7=Symbol();function a7(e){return!lv(e)||!e.hasOwnProperty(i7)}const{assign:Zr}=Object;function s7(e){return!!(kt(e)&&e.effect)}function c7(e,t,n,o){const{state:r,actions:l,getters:i}=t,a=n.state.value[e];let s;function c(){a||(n.state.value[e]=r?r():{});const u=No(n.state.value[e]);return Zr(u,l,Object.keys(i||{}).reduce((d,f)=>(d[f]=Zm(P(()=>{jf(n);const g=n._s.get(e);return i[f].call(g,g)})),d),{}))}return s=$O(e,c,t,n,o,!0),s}function $O(e,t,n={},o,r,l){let i;const a=Zr({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],g;const v=o.state.value[e];!l&&!v&&(o.state.value[e]={}),le({});let h;function b(I){let T;c=u=!1,typeof I=="function"?(I(o.state.value[e]),T={type:Ss.patchFunction,storeId:e,events:g}):(iv(o.state.value[e],I),T={type:Ss.patchObject,payload:I,storeId:e,events:g});const _=h=Symbol();ot().then(()=>{h===_&&(c=!0)}),u=!0,_i(d,T,o.state.value[e])}const y=l?function(){const{state:T}=n,_=T?T():{};this.$patch(E=>{Zr(E,_)})}:SO;function S(){i.stop(),d=[],f=[],o._s.delete(e)}const $=(I,T="")=>{if(GS in I)return I[Pg]=T,I;const _=function(){jf(o);const E=Array.from(arguments),A=[],R=[];function z(N){A.push(N)}function M(N){R.push(N)}_i(f,{args:E,name:_[Pg],store:C,after:z,onError:M});let B;try{B=I.apply(this&&this.$id===e?this:C,E)}catch(N){throw _i(R,N),N}return B instanceof Promise?B.then(N=>(_i(A,N),N)).catch(N=>(_i(R,N),Promise.reject(N))):(_i(A,B),B)};return _[GS]=!0,_[Pg]=T,_},x={_p:o,$id:e,$onAction:KS.bind(null,f),$patch:b,$reset:y,$subscribe(I,T={}){const _=KS(d,I,T.detached,()=>E()),E=i.run(()=>be(()=>o.state.value[e],A=>{(T.flush==="sync"?u:c)&&I({storeId:e,type:Ss.direct,events:g},A)},Zr({},s,T)));return _},$dispose:S},C=ut(x);o._s.set(e,C);const w=(o._a&&o._a.runWithContext||l7)(()=>o._e.run(()=>(i=n3()).run(()=>t({action:$}))));for(const I in w){const T=w[I];if(kt(T)&&!s7(T)||fl(T))l||(v&&a7(T)&&(kt(T)?T.value=v[I]:iv(T,v[I])),o.state.value[e][I]=T);else if(typeof T=="function"){const _=$(T,I);w[I]=_,a.actions[I]=T}}return Zr(C,w),Zr(Qe(C),w),Object.defineProperty(C,"$state",{get:()=>o.state.value[e],set:I=>{b(T=>{Zr(T,I)})}}),o._p.forEach(I=>{Zr(C,i.run(()=>I({store:C,app:o._a,pinia:o,options:a})))}),v&&l&&n.hydrate&&n.hydrate(C.$state,v),c=!0,u=!0,C}/*! #__NO_SIDE_EFFECTS__ */function u7(e,t,n){let o,r;const l=typeof t=="function";typeof e=="string"?(o=e,r=l?n:t):(r=e,o=e.id);function i(a,s){const c=W_();return a=a||(c?He(yO,null):null),a&&jf(a),a=bO,a._s.has(o)||(l?$O(o,t,r,a):c7(o,r,a)),a._s.get(o)}return i.$id=o,i}const d7="modulepreload",f7=function(e){return"/"+e},XS={},Za=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=f7(l),l in XS)return;XS[l]=!0;const i=l.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!o)for(let u=r.length-1;u>=0;u--){const d=r[u];if(d.href===l&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const c=document.createElement("link");if(c.rel=i?"stylesheet":d7,i||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),i)return new Promise((u,d)=>{c.addEventListener("load",u),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=l,window.dispatchEvent(i),!i.defaultPrevented)throw l})};/*! - * vue-router v4.5.1 - * (c) 2025 Eduardo San Martin Morote - * @license MIT - */const Hi=typeof document<"u";function CO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function p7(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&CO(e.default)}const wt=Object.assign;function Ig(e,t){const n={};for(const o in t){const r=t[o];n[o]=ko(r)?r.map(e):e(r)}return n}const $s=()=>{},ko=Array.isArray,xO=/#/g,g7=/&/g,h7=/\//g,v7=/=/g,m7=/\?/g,wO=/\+/g,b7=/%5B/g,y7=/%5D/g,OO=/%5E/g,S7=/%60/g,PO=/%7B/g,$7=/%7C/g,IO=/%7D/g,C7=/%20/g;function u0(e){return encodeURI(""+e).replace($7,"|").replace(b7,"[").replace(y7,"]")}function x7(e){return u0(e).replace(PO,"{").replace(IO,"}").replace(OO,"^")}function av(e){return u0(e).replace(wO,"%2B").replace(C7,"+").replace(xO,"%23").replace(g7,"%26").replace(S7,"`").replace(PO,"{").replace(IO,"}").replace(OO,"^")}function w7(e){return av(e).replace(v7,"%3D")}function O7(e){return u0(e).replace(xO,"%23").replace(m7,"%3F")}function P7(e){return e==null?"":O7(e).replace(h7,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const I7=/\/$/,T7=e=>e.replace(I7,"");function Tg(e,t,n="/"){let o,r={},l="",i="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(o=t.slice(0,s),l=t.slice(s+1,a>-1?a:t.length),r=e(l)),a>-1&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=A7(o??t,n),{fullPath:o+(l&&"?")+l+i,path:o,query:r,hash:qs(i)}}function E7(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function US(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function M7(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&ba(t.matched[o],n.matched[r])&&TO(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ba(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function TO(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_7(e[n],t[n]))return!1;return!0}function _7(e,t){return ko(e)?YS(e,t):ko(t)?YS(t,e):e===t}function YS(e,t){return ko(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function A7(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let l=n.length-1,i,a;for(i=0;i1&&l--;else break;return n.slice(0,l).join("/")+"/"+o.slice(i).join("/")}const Ur={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zs;(function(e){e.pop="pop",e.push="push"})(Zs||(Zs={}));var Cs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Cs||(Cs={}));function R7(e){if(!e)if(Hi){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),T7(e)}const D7=/^[^#]+#/;function B7(e,t){return e.replace(D7,"#")+t}function N7(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Wf=()=>({left:window.scrollX,top:window.scrollY});function F7(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=N7(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function qS(e,t){return(history.state?history.state.position-t:-1)+e}const sv=new Map;function L7(e,t){sv.set(e,t)}function k7(e){const t=sv.get(e);return sv.delete(e),t}let z7=()=>location.protocol+"//"+location.host;function EO(e,t){const{pathname:n,search:o,hash:r}=t,l=e.indexOf("#");if(l>-1){let a=r.includes(e.slice(l))?e.slice(l).length:1,s=r.slice(a);return s[0]!=="/"&&(s="/"+s),US(s,"")}return US(n,e)+o+r}function H7(e,t,n,o){let r=[],l=[],i=null;const a=({state:f})=>{const g=EO(e,location),v=n.value,h=t.value;let b=0;if(f){if(n.value=g,t.value=f,i&&i===v){i=null;return}b=h?f.position-h.position:0}else o(g);r.forEach(y=>{y(n.value,v,{delta:b,type:Zs.pop,direction:b?b>0?Cs.forward:Cs.back:Cs.unknown})})};function s(){i=n.value}function c(f){r.push(f);const g=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return l.push(g),g}function u(){const{history:f}=window;f.state&&f.replaceState(wt({},f.state,{scroll:Wf()}),"")}function d(){for(const f of l)f();l=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:s,listen:c,destroy:d}}function ZS(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?Wf():null}}function j7(e){const{history:t,location:n}=window,o={value:EO(e,n)},r={value:t.state};r.value||l(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(s,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:z7()+e+s;try{t[u?"replaceState":"pushState"](c,"",f),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](f)}}function i(s,c){const u=wt({},t.state,ZS(r.value.back,s,r.value.forward,!0),c,{position:r.value.position});l(s,u,!0),o.value=s}function a(s,c){const u=wt({},r.value,t.state,{forward:s,scroll:Wf()});l(u.current,u,!0);const d=wt({},ZS(o.value,s,null),{position:u.position+1},c);l(s,d,!1),o.value=s}return{location:o,state:r,push:a,replace:i}}function W7(e){e=R7(e);const t=j7(e),n=H7(e,t.state,t.location,t.replace);function o(l,i=!0){i||n.pauseListeners(),history.go(l)}const r=wt({location:"",base:e,go:o,createHref:B7.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function V7(e){return typeof e=="string"||e&&typeof e=="object"}function MO(e){return typeof e=="string"||typeof e=="symbol"}const _O=Symbol("");var QS;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(QS||(QS={}));function ya(e,t){return wt(new Error,{type:e,[_O]:!0},t)}function fr(e,t){return e instanceof Error&&_O in e&&(t==null||!!(e.type&t))}const JS="[^/]+?",K7={sensitive:!1,strict:!1,start:!0,end:!0},G7=/[.+*?^${}()[\]/\\]/g;function X7(e,t){const n=wt({},K7,t),o=[];let r=n.start?"^":"";const l=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function AO(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Y7={type:0,value:""},q7=/[a-zA-Z0-9_]/;function Z7(e){if(!e)return[[]];if(e==="/")return[[Y7]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=0,o=n;const r=[];let l;function i(){l&&r.push(l),l=[]}let a=0,s,c="",u="";function d(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:u,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{i($)}:$s}function i(d){if(MO(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function s(d){const f=nR(d,n);n.splice(f,0,d),d.record.name&&!o$(d)&&o.set(d.record.name,d)}function c(d,f){let g,v={},h,b;if("name"in d&&d.name){if(g=o.get(d.name),!g)throw ya(1,{location:d});b=g.record.name,v=wt(t$(f.params,g.keys.filter($=>!$.optional).concat(g.parent?g.parent.keys.filter($=>$.optional):[]).map($=>$.name)),d.params&&t$(d.params,g.keys.map($=>$.name))),h=g.stringify(v)}else if(d.path!=null)h=d.path,g=n.find($=>$.re.test(h)),g&&(v=g.parse(h),b=g.record.name);else{if(g=f.name?o.get(f.name):n.find($=>$.re.test(f.path)),!g)throw ya(1,{location:d,currentLocation:f});b=g.record.name,v=wt({},f.params,d.params),h=g.stringify(v)}const y=[];let S=g;for(;S;)y.unshift(S.record),S=S.parent;return{name:b,path:h,params:v,matched:y,meta:tR(y)}}e.forEach(d=>l(d));function u(){n.length=0,o.clear()}return{addRoute:l,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:r}}function t$(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function n$(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:eR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function eR(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function o$(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tR(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function r$(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function nR(e,t){let n=0,o=t.length;for(;n!==o;){const l=n+o>>1;AO(e,t[l])<0?o=l:n=l+1}const r=oR(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function oR(e){let t=e;for(;t=t.parent;)if(RO(t)&&AO(e,t)===0)return t}function RO({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function rR(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rl&&av(l)):[o&&av(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function lR(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=ko(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const iR=Symbol(""),i$=Symbol(""),Vf=Symbol(""),DO=Symbol(""),cv=Symbol("");function Qa(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function nl(e,t,n,o,r,l=i=>i()){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(ya(4,{from:n,to:t})):f instanceof Error?s(f):V7(f)?s(ya(2,{from:t,to:f})):(i&&o.enterCallbacks[r]===i&&typeof f=="function"&&i.push(f),a())},u=l(()=>e.call(o&&o.instances[r],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>s(f))})}function Eg(e,t,n,o,r=l=>l()){const l=[];for(const i of e)for(const a in i.components){let s=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(CO(s)){const u=(s.__vccOpts||s)[t];u&&l.push(nl(u,n,o,i,a,r))}else{let c=s();l.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=p7(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const g=(d.__vccOpts||d)[t];return g&&nl(g,n,o,i,a,r)()}))}}return l}function a$(e){const t=He(Vf),n=He(DO),o=P(()=>{const s=$t(e.to);return t.resolve(s)}),r=P(()=>{const{matched:s}=o.value,{length:c}=s,u=s[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(ba.bind(null,u));if(f>-1)return f;const g=s$(s[c-2]);return c>1&&s$(u)===g&&d[d.length-1].path!==g?d.findIndex(ba.bind(null,s[c-2])):f}),l=P(()=>r.value>-1&&dR(n.params,o.value.params)),i=P(()=>r.value>-1&&r.value===n.matched.length-1&&TO(n.params,o.value.params));function a(s={}){if(uR(s)){const c=t[$t(e.replace)?"replace":"push"]($t(e.to)).catch($s);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:l,isExactActive:i,navigate:a}}function aR(e){return e.length===1?e[0]:e}const sR=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:a$,setup(e,{slots:t}){const n=ut(a$(e)),{options:o}=He(Vf),r=P(()=>({[c$(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[c$(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&aR(t.default(n));return e.custom?l:_r("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}}),cR=sR;function uR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function dR(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!ko(r)||r.length!==o.length||o.some((l,i)=>l!==r[i]))return!1}return!0}function s$(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const c$=(e,t,n)=>e??t??n,fR=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=He(cv),r=P(()=>e.route||o.value),l=He(i$,0),i=P(()=>{let c=$t(l);const{matched:u}=r.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=P(()=>r.value.matched[i.value]);Ge(i$,P(()=>i.value+1)),Ge(iR,a),Ge(cv,r);const s=le();return be(()=>[s.value,a.value,e.name],([c,u,d],[f,g,v])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!ba(u,g)||!f)&&(u.enterCallbacks[d]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return u$(n.default,{Component:f,route:c});const g=d.props[u],v=g?g===!0?c.params:typeof g=="function"?g(c):g:null,b=_r(f,wt({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:s}));return u$(n.default,{Component:b,route:c})||b}}});function u$(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const pR=fR;function gR(e){const t=J7(e.routes,e),n=e.parseQuery||rR,o=e.stringifyQuery||l$,r=e.history,l=Qa(),i=Qa(),a=Qa(),s=te(Ur);let c=Ur;Hi&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ig.bind(null,G=>""+G),d=Ig.bind(null,P7),f=Ig.bind(null,qs);function g(G,J){let Q,K;return MO(G)?(Q=t.getRecordMatcher(G),K=J):K=G,t.addRoute(K,Q)}function v(G){const J=t.getRecordMatcher(G);J&&t.removeRoute(J)}function h(){return t.getRoutes().map(G=>G.record)}function b(G){return!!t.getRecordMatcher(G)}function y(G,J){if(J=wt({},J||s.value),typeof G=="string"){const X=Tg(n,G,J.path),ne=t.resolve({path:X.path},J),ae=r.createHref(X.fullPath);return wt(X,ne,{params:f(ne.params),hash:qs(X.hash),redirectedFrom:void 0,href:ae})}let Q;if(G.path!=null)Q=wt({},G,{path:Tg(n,G.path,J.path).path});else{const X=wt({},G.params);for(const ne in X)X[ne]==null&&delete X[ne];Q=wt({},G,{params:d(X)}),J.params=d(J.params)}const K=t.resolve(Q,J),q=G.hash||"";K.params=u(f(K.params));const pe=E7(o,wt({},G,{hash:x7(q),path:K.path})),W=r.createHref(pe);return wt({fullPath:pe,hash:q,query:o===l$?lR(G.query):G.query||{}},K,{redirectedFrom:void 0,href:W})}function S(G){return typeof G=="string"?Tg(n,G,s.value.path):wt({},G)}function $(G,J){if(c!==G)return ya(8,{from:J,to:G})}function x(G){return w(G)}function C(G){return x(wt(S(G),{replace:!0}))}function O(G){const J=G.matched[G.matched.length-1];if(J&&J.redirect){const{redirect:Q}=J;let K=typeof Q=="function"?Q(G):Q;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=S(K):{path:K},K.params={}),wt({query:G.query,hash:G.hash,params:K.path!=null?{}:G.params},K)}}function w(G,J){const Q=c=y(G),K=s.value,q=G.state,pe=G.force,W=G.replace===!0,X=O(Q);if(X)return w(wt(S(X),{state:typeof X=="object"?wt({},q,X.state):q,force:pe,replace:W}),J||Q);const ne=Q;ne.redirectedFrom=J;let ae;return!pe&&M7(o,K,Q)&&(ae=ya(16,{to:ne,from:K}),j(K,K,!0,!1)),(ae?Promise.resolve(ae):_(ne,K)).catch(se=>fr(se)?fr(se,2)?se:k(se):F(se,ne,K)).then(se=>{if(se){if(fr(se,2))return w(wt({replace:W},S(se.to),{state:typeof se.to=="object"?wt({},q,se.to.state):q,force:pe}),J||ne)}else se=A(ne,K,!0,W,q);return E(ne,K,se),se})}function I(G,J){const Q=$(G,J);return Q?Promise.reject(Q):Promise.resolve()}function T(G){const J=Z.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(G):G()}function _(G,J){let Q;const[K,q,pe]=hR(G,J);Q=Eg(K.reverse(),"beforeRouteLeave",G,J);for(const X of K)X.leaveGuards.forEach(ne=>{Q.push(nl(ne,G,J))});const W=I.bind(null,G,J);return Q.push(W),ee(Q).then(()=>{Q=[];for(const X of l.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).then(()=>{Q=Eg(q,"beforeRouteUpdate",G,J);for(const X of q)X.updateGuards.forEach(ne=>{Q.push(nl(ne,G,J))});return Q.push(W),ee(Q)}).then(()=>{Q=[];for(const X of pe)if(X.beforeEnter)if(ko(X.beforeEnter))for(const ne of X.beforeEnter)Q.push(nl(ne,G,J));else Q.push(nl(X.beforeEnter,G,J));return Q.push(W),ee(Q)}).then(()=>(G.matched.forEach(X=>X.enterCallbacks={}),Q=Eg(pe,"beforeRouteEnter",G,J,T),Q.push(W),ee(Q))).then(()=>{Q=[];for(const X of i.list())Q.push(nl(X,G,J));return Q.push(W),ee(Q)}).catch(X=>fr(X,8)?X:Promise.reject(X))}function E(G,J,Q){a.list().forEach(K=>T(()=>K(G,J,Q)))}function A(G,J,Q,K,q){const pe=$(G,J);if(pe)return pe;const W=J===Ur,X=Hi?history.state:{};Q&&(K||W?r.replace(G.fullPath,wt({scroll:W&&X&&X.scroll},q)):r.push(G.fullPath,q)),s.value=G,j(G,J,Q,W),k()}let R;function z(){R||(R=r.listen((G,J,Q)=>{if(!U.listening)return;const K=y(G),q=O(K);if(q){w(wt(q,{replace:!0,force:!0}),K).catch($s);return}c=K;const pe=s.value;Hi&&L7(qS(pe.fullPath,Q.delta),Wf()),_(K,pe).catch(W=>fr(W,12)?W:fr(W,2)?(w(wt(S(W.to),{force:!0}),K).then(X=>{fr(X,20)&&!Q.delta&&Q.type===Zs.pop&&r.go(-1,!1)}).catch($s),Promise.reject()):(Q.delta&&r.go(-Q.delta,!1),F(W,K,pe))).then(W=>{W=W||A(K,pe,!1),W&&(Q.delta&&!fr(W,8)?r.go(-Q.delta,!1):Q.type===Zs.pop&&fr(W,20)&&r.go(-1,!1)),E(K,pe,W)}).catch($s)}))}let M=Qa(),B=Qa(),N;function F(G,J,Q){k(G);const K=B.list();return K.length?K.forEach(q=>q(G,J,Q)):console.error(G),Promise.reject(G)}function L(){return N&&s.value!==Ur?Promise.resolve():new Promise((G,J)=>{M.add([G,J])})}function k(G){return N||(N=!G,z(),M.list().forEach(([J,Q])=>G?Q(G):J()),M.reset()),G}function j(G,J,Q,K){const{scrollBehavior:q}=e;if(!Hi||!q)return Promise.resolve();const pe=!Q&&k7(qS(G.fullPath,0))||(K||!Q)&&history.state&&history.state.scroll||null;return ot().then(()=>q(G,J,pe)).then(W=>W&&F7(W)).catch(W=>F(W,G,J))}const H=G=>r.go(G);let Y;const Z=new Set,U={currentRoute:s,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:h,resolve:y,options:e,push:x,replace:C,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:l.add,beforeResolve:i.add,afterEach:a.add,onError:B.add,isReady:L,install(G){const J=this;G.component("RouterLink",cR),G.component("RouterView",pR),G.config.globalProperties.$router=J,Object.defineProperty(G.config.globalProperties,"$route",{enumerable:!0,get:()=>$t(s)}),Hi&&!Y&&s.value===Ur&&(Y=!0,x(r.location).catch(q=>{}));const Q={};for(const q in Ur)Object.defineProperty(Q,q,{get:()=>s.value[q],enumerable:!0});G.provide(Vf,J),G.provide(DO,b3(Q)),G.provide(cv,s);const K=G.unmount;Z.add(G),G.unmount=function(){Z.delete(G),Z.size<1&&(c=Ur,R&&R(),R=null,s.value=Ur,Y=!1,N=!1),K()}}};function ee(G){return G.reduce((J,Q)=>J.then(()=>T(Q)),Promise.resolve())}return U}function hR(e,t){const n=[],o=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let i=0;iba(c,a))?o.push(a):n.push(a));const s=e.matched[i];s&&(t.matched.find(c=>ba(c,s))||r.push(s))}return[n,o,r]}function w0e(){return He(Vf)}const vR=[{path:"/",name:"Home",component:()=>Za(()=>import("./Home-8e72349b.js"),["assets/js/Home-8e72349b.js","assets/js/chat-e1054b12.js","assets/css/Home-c2a76248.css"]),meta:{title:"情绪博物馆 - 首页"}},{path:"/test",name:"Test",component:()=>Za(()=>import("./HomeTest-a9ed2425.js"),["assets/js/HomeTest-a9ed2425.js","assets/css/HomeTest-dd1db0d3.css"]),meta:{title:"情绪博物馆 - 测试页面"}},{path:"/chat",name:"Chat",component:()=>Za(()=>import("./ChatComplete-7551ced4.js"),["assets/js/ChatComplete-7551ced4.js","assets/js/chat-e1054b12.js","assets/css/ChatComplete-68dc21b4.css"]),meta:{title:"AI对话 - 情绪博物馆"}},{path:"/history",name:"History",component:()=>Za(()=>import("./HistorySimple-e430de64.js"),["assets/js/HistorySimple-e430de64.js","assets/css/HistorySimple-caafbb99.css"]),meta:{title:"对话历史 - 情绪博物馆"}},{path:"/analysis",name:"Analysis",component:()=>Za(()=>import("./AnalysisSimple-7a988a7b.js"),["assets/js/AnalysisSimple-7a988a7b.js","assets/css/AnalysisSimple-eb0c3031.css"]),meta:{title:"情绪分析 - 情绪博物馆"}}],BO=gR({history:W7(),routes:vR});BO.beforeEach((e,t,n)=>{e.meta.title&&(document.title=e.meta.title),n()});const mR=u7("user",()=>{const e=le({id:"",name:"",avatar:""}),t=le(!1);return{userInfo:e,isLoggedIn:t,initUser:()=>{const l=localStorage.getItem("emotion_museum_user");if(l)e.value=JSON.parse(l),t.value=!0;else{const i=`guest_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.value={id:i,name:"访客用户",avatar:"",isGuest:!0},t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(e.value)),console.log("创建临时用户:",i)}},setUser:l=>{e.value=l,t.value=!0,localStorage.setItem("emotion_museum_user",JSON.stringify(l))},clearUser:()=>{e.value={id:"",name:"",avatar:""},t.value=!1,localStorage.removeItem("emotion_museum_user")}}}),bR=()=>({APP_TITLE:"情绪博物馆",APP_VERSION:"1.0.0",APP_ENV:"production",API_BASE_URL:"https://api.emotion-museum.com/api",API_TARGET:"https://api.emotion-museum.com",API_TIMEOUT:parseInt("30000")||3e4,DEBUG_MODE:!1,MOCK_DATA:!1,isDevelopment:!1,isTest:!1,isProduction:!0}),Nt=bR(),xc=(...e)=>{Nt.DEBUG_MODE&&console.log("[DEBUG]",...e)},NO=()=>{console.log("=== 环境配置信息 ==="),console.log("应用标题:",Nt.APP_TITLE),console.log("应用版本:",Nt.APP_VERSION),console.log("运行环境:",Nt.APP_ENV),console.log("API地址:",Nt.API_BASE_URL),console.log("调试模式:",Nt.DEBUG_MODE),console.log("==================")};function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function yR(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(Qs(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SR(e){var t=yR(e,"string");return Qs(t)=="symbol"?t:t+""}function $R(e,t,n){return(t=SR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function D(e){for(var t=1;ttypeof e=="function",CR=Array.isArray,xR=e=>typeof e=="string",wR=e=>e!==null&&typeof e=="object",OR=/^on[^a-z]/,PR=e=>OR.test(e),d0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},IR=/-(\w)/g,mi=d0(e=>e.replace(IR,(t,n)=>n?n.toUpperCase():"")),TR=/\B([A-Z])/g,ER=d0(e=>e.replace(TR,"-$1").toLowerCase()),MR=d0(e=>e.charAt(0).toUpperCase()+e.slice(1)),_R=Object.prototype.hasOwnProperty,f$=(e,t)=>_R.call(e,t);function AR(e,t,n,o){const r=e[n];if(r!=null){const l=f$(r,"default");if(l&&o===void 0){const i=r.default;o=r.type!==Function&&uv(i)?i():i}r.type===Boolean&&(!f$(t,n)&&!l?o=!1:o===""&&(o=!0))}return o}function RR(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Vl(e){return typeof e=="number"?`${e}px`:e}function Xi(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function DR(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t==null||t()};return o.then=(r,l)=>n.then(r,l),o.promise=n,o}function ie(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!dv||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),zR?(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)},e.prototype.disconnect_=function(){!dv||!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)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,o=n===void 0?"":n,r=kR.some(function(l){return!!~o.indexOf(l)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),LO=function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new YR(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Sa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new qR(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),zO=typeof WeakMap<"u"?new WeakMap:new FO,HO=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=HR.getInstance(),o=new ZR(t,n,this);zO.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){HO.prototype[e]=function(){var t;return(t=zO.get(this))[e].apply(t,arguments)}});var QR=function(){return typeof Md.ResizeObserver<"u"?Md.ResizeObserver:HO}();const f0=QR,JR=e=>e!=null&&e!=="",fv=JR,eD=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},qe=eD,p0=e=>{const t=Object.keys(e),n={},o={},r={};for(let l=0,i=t.length;l0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(l){if(l){const i=l.split(r);if(i.length>1){const a=t?mi(i[0].trim()):i[0].trim();n[a]=i[1].trim()}}}),n)},xr=(e,t)=>e[t]!==void 0,jO=Symbol("skipFlatten"),yt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...yt(r,t)):r&&r.type===We?r.key===jO?o.push(r):o.push(...yt(r.children,t)):r&&Yt(r)?t&&!wc(r)?o.push(r):t||o.push(r):fv(r)&&o.push(r)}),o},Gf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Yt(e))return e.type===We?t==="default"?yt(e.children):[]:e.children&&e.children[t]?yt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return yt(o)}},Hn=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},WO=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],l=ER(o);(r!==void 0||l in n)&&(t[o]=r)})}else if(Yt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(l=>{o[mi(l)]=n[l]});const r=e.type.props||{};Object.keys(r).forEach(l=>{const i=AR(r,o,l,o[l]);(i!==void 0||l in o)&&(t[l]=i)})}return t},VO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const l=e[t];if(l!==void 0)return typeof l=="function"&&o?l(n):l;r=e.$slots[t],r=o&&r?r(n):r}else if(Yt(e)){const l=e.props&&e.props[t];if(l!==void 0&&e.props!==null)return typeof l=="function"&&o?l(n):l;e.type===We?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=yt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function g$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=m(m({},n),e.$attrs):n=m(m({},n),e.props),p0(n)[t?"onEvents":"events"]}function nD(e){const n=((Yt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?ie(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=m(m({},o),n),o}function KO(e,t){let o=((Yt(e)?e.props:e.$attrs)||{}).style||{};if(typeof o=="string")o=tD(o,t);else if(t&&o){const r={};return Object.keys(o).forEach(l=>r[mi(l)]=o[l]),r}return o}function oD(e){return e.length===1&&e[0].type===We}function rD(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function wc(e){return e&&(e.type===bn||e.type===We&&e.children.length===0||e.type===Cl&&e.children.trim()==="")}function lD(e){return e&&e.type===Cl}function _t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===We?t.push(..._t(n.children)):t.push(n)}),t.filter(n=>!wc(n))}function Ja(e){if(e){const t=_t(e);return t.length?t:void 0}else return e}function Kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function qt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const xo=oe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=ut({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,l=null;const i=()=>{l&&(l.disconnect(),l=null)},a=u=>{const{onResize:d}=e,f=u[0].target,{width:g,height:v}=f.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=f,y=Math.floor(g),S=Math.floor(v);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};m(o,$),d&&Promise.resolve().then(()=>{d(m(m({},$),{offsetWidth:h,offsetHeight:b}),f)})}},s=pn(),c=()=>{const{disabled:u}=e;if(u){i();return}const d=Hn(s);d!==r&&(i(),r=d),!l&&d&&(l=new f0(a),l.observe(d))};return je(()=>{c()}),An(()=>{c()}),Rn(()=>{i()}),be(()=>e.disabled,()=>{c()},{flush:"post"}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});let GO=e=>setTimeout(e,16),XO=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(GO=e=>window.requestAnimationFrame(e),XO=e=>window.cancelAnimationFrame(e));let h$=0;const g0=new Map;function UO(e){g0.delete(e)}function Ye(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;h$+=1;const n=h$;function o(r){if(r===0)UO(n),e();else{const l=GO(()=>{o(r-1)});g0.set(n,l)}}return o(t),n}Ye.cancel=e=>{const t=g0.get(e);return UO(t),XO(t)};function pv(e){let t;const n=r=>()=>{t=null,e(...r)},o=function(){if(t==null){for(var r=arguments.length,l=new Array(r),i=0;i{Ye.cancel(t),t=null},o}const Cn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function si(){return{type:[Function,Array]}}function Re(e){return{type:Object,default:e}}function Ce(e){return{type:Boolean,default:e}}function ve(e){return{type:Function,default:e}}function St(e,t){const n={validator:()=>!0,default:e};return n}function In(){return{validator:()=>!0}}function at(e){return{type:Array,default:e}}function Be(e){return{type:String,default:e}}function Le(e,t){return e?{type:e,default:t}:St(t)}let YO=!1;try{const e=Object.defineProperty({},"passive",{get(){YO=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const nn=YO;function Mt(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&nn&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Zc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function v$(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function m$(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},xs.push(n),qO.forEach(o=>{n.eventHandlers[o]=Mt(e,o,()=>{n.affixList.forEach(r=>{const{lazyUpdatePosition:l}=r.exposed;l()},(o==="touchstart"||o==="touchmove")&&nn?{passive:!0}:!1)})}))}function y$(e){const t=xs.find(n=>{const o=n.affixList.some(r=>r===e);return o&&(n.affixList=n.affixList.filter(r=>r!==e)),o});t&&t.affixList.length===0&&(xs=xs.filter(n=>n!==t),qO.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const h0="anticon",ZO=Symbol("GlobalFormContextKey"),aD=e=>{Ge(ZO,e)},sD=()=>He(ZO,{validateMessages:P(()=>{})}),cD=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:Re(),input:Re(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:Re(),pageHeader:Re(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:Re(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:Re(),pagination:Re(),theme:Re(),select:Re(),wave:Re()}),v0=Symbol("configProvider"),QO={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>h0),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},Xf=()=>He(v0,QO),uD=e=>Ge(v0,e),JO=Symbol("DisabledContextKey"),qn=()=>He(JO,le(void 0)),eP=e=>{const t=qn();return Ge(JO,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},tP={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},dD={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"},fD=dD,pD={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nP=pD,gD={lang:m({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"]},fD),timePickerLocale:m({},nP)},Js=gD,eo="${label} is not a valid ${type}",hD={locale:"en",Pagination:tP,DatePicker:Js,TimePicker:nP,Calendar:Js,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",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"},PageHeader:{back:"Back"},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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},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"}},jn=hD,bi=oe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=He("localeData",{}),r=P(()=>{const{componentName:i="global",defaultLocale:a}=e,s=a||jn[i||"global"],{antLocale:c}=o,u=i&&c?c[i]:{};return m(m({},typeof s=="function"?s():s),u||{})}),l=P(()=>{const{antLocale:i}=o,a=i&&i.locale;return i&&i.exist&&!a?jn.locale:a});return()=>{const i=e.children||n.default,{antLocale:a}=o;return i==null?void 0:i(r.value,l.value,a)}}});function Io(e,t,n){const o=He("localeData",{});return[P(()=>{const{antLocale:l}=o,i=$t(t)||jn[e||"global"],a=e&&l?l[e]:{};return m(m(m({},typeof i=="function"?i():i),a||{}),$t(n)||{})})]}function m0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const S$="%";class vD{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(S$):t)||null}update(t,n){const o=Array.isArray(t)?t.join(S$):t,r=this.cache.get(o),l=n(r);l===null?this.cache.delete(o):this.cache.set(o,l)}}const mD=vD,b0="data-token-hash",pl="data-css-hash",Ui="__cssinjs_instance__";function $a(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${pl}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[Ui]=r[Ui]||e,r[Ui]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${pl}]`)).forEach(r=>{var l;const i=r.getAttribute(pl);o[i]?r[Ui]===e&&((l=r.parentNode)===null||l===void 0||l.removeChild(r)):o[i]=!0})}return new mD(e)}const oP=Symbol("StyleContextKey"),bD=()=>{var e,t,n;const o=pn();let r;if(o&&o.appContext){const l=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;l?r=l:(r=$a(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=$a();return r},rP={cache:$a(),defaultCache:!0,hashPriority:"low"},Oc=()=>{const e=bD();return He(oP,te(m(m({},rP),{cache:e})))},lP=e=>{const t=Oc(),n=te(m(m({},rP),{cache:$a()}));return be([()=>$t(e),t],()=>{const o=m({},t.value),r=$t(e);Object.keys(r).forEach(i=>{const a=r[i];r[i]!==void 0&&(o[i]=a)});const{cache:l}=r;o.cache=o.cache||$a(),o.defaultCache=!l&&t.value.defaultCache,n.value=o},{immediate:!0}),Ge(oP,n),n},yD=()=>({autoClear:Ce(),mock:Be(),cache:Re(),defaultCache:Ce(),hashPriority:Be(),container:Le(),ssrInline:Ce(),transformers:at(),linters:at()}),SD=Tt(oe({name:"AStyleProvider",inheritAttrs:!1,props:yD(),setup(e,t){let{slots:n}=t;return lP(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function iP(e,t,n,o){const r=Oc(),l=te(""),i=te();ke(()=>{l.value=[e,...t.value].join("%")});const a=s=>{r.value.cache.update(s,c=>{const[u=0,d]=c||[];return u-1===0?(o==null||o(d,!1),null):[u-1,d]})};return be(l,(s,c)=>{c&&a(c),r.value.cache.update(s,u=>{const[d=0,f]=u||[],v=f||n();return[d+1,v]}),i.value=r.value.cache.get(l.value)[1]},{immediate:!0}),Ze(()=>{a(l.value)}),i}function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rl(e,t){return e&&e.contains?e.contains(t):!1}const $$="data-vc-order",$D="vc-util-key",gv=new Map;function aP(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:$D}function Uf(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function CD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function sP(e){return Array.from((gv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function cP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute($$,CD(o)),n!=null&&n.nonce&&(r.nonce=n==null?void 0:n.nonce),r.innerHTML=e;const l=Uf(t),{firstChild:i}=l;if(o){if(o==="queue"){const a=sP(l).filter(s=>["prepend","prependQueue"].includes(s.getAttribute($$)));if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function uP(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Uf(t);return sP(n).find(o=>o.getAttribute(aP(t))===e)}function Ad(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=uP(e,t);n&&Uf(t).removeChild(n)}function xD(e,t){const n=gv.get(e);if(!n||!rl(document,n)){const o=cP("",t),{parentNode:r}=o;gv.set(e,r),e.removeChild(o)}}function ec(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,l;const i=Uf(n);xD(i,n);const a=uP(t,n);if(a)return!((o=n.csp)===null||o===void 0)&&o.nonce&&a.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(a.nonce=(l=n.csp)===null||l===void 0?void 0:l.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=cP(e,n);return s.setAttribute(aP(n),t),s}function wD(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var l;o?o=(l=o==null?void 0:o.map)===null||l===void 0?void 0:l.get(r):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Ca.MAX_CACHE_SIZE+Ca.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((l,i)=>{const[,a]=l;return this.internalGet(i)[1]{if(l===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const i=o.get(r);i?i.map||(i.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const l=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),l}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!wD(n,t)),this.deleteByPath(this.cache,t)}}Ca.MAX_CACHE_SIZE=20;Ca.MAX_CACHE_OFFSET=5;let C$={};function OD(e,t){}function PD(e,t){}function dP(e,t,n){!t&&!C$[n]&&(e(!1,n),C$[n]=!0)}function Yf(e,t){dP(OD,e,t)}function ID(e,t){dP(PD,e,t)}function TD(){}let ED=TD;const It=ED;let x$=0;class y0{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=x$,t.length===0&&It(t.length>0),x$+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const Mg=new Ca;function S0(e){const t=Array.isArray(e)?e:[e];return Mg.has(t)||Mg.set(t,new y0(t)),Mg.get(t)}const w$=new WeakMap;function Rd(e){let t=w$.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof y0?t+=o.id:o&&typeof o=="object"?t+=Rd(o):t+=o}),w$.set(e,t)),t}function MD(e,t){return m0(`${t}_${Rd(e)}`)}const ws=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),fP="_bAmBoO_";function _D(e,t,n){var o,r;if(Mn()){ec(e,ws);const l=document.createElement("div");l.style.position="fixed",l.style.left="0",l.style.top="0",t==null||t(l),document.body.appendChild(l);const i=n?n(l):(o=getComputedStyle(l).content)===null||o===void 0?void 0:o.includes(fP);return(r=l.parentNode)===null||r===void 0||r.removeChild(l),Ad(ws),i}return!1}let _g;function AD(){return _g===void 0&&(_g=_D(`@layer ${ws} { .${ws} { content: "${fP}"!important; } }`,e=>{e.className=ws})),_g}const O$={},RD=!0,DD=!1,BD=!RD&&!DD?"css-dev-only-do-not-override":"css",Kl=new Map;function ND(e){Kl.set(e,(Kl.get(e)||0)+1)}function FD(e,t){typeof document<"u"&&document.querySelectorAll(`style[${b0}="${e}"]`).forEach(o=>{var r;o[Ui]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const LD=0;function kD(e,t){Kl.set(e,(Kl.get(e)||0)-1);const n=Array.from(Kl.keys()),o=n.filter(r=>(Kl.get(r)||0)<=0);n.length-o.length>LD&&o.forEach(r=>{FD(r,t),Kl.delete(r)})}const zD=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let l=m(m({},r),t);return o&&(l=o(l)),l};function pP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:le({});const o=Oc(),r=P(()=>m({},...t.value)),l=P(()=>Rd(r.value)),i=P(()=>Rd(n.value.override||O$));return iP("token",P(()=>[n.value.salt||"",e.value.id,l.value,i.value]),()=>{const{salt:s="",override:c=O$,formatToken:u,getComputedToken:d}=n.value,f=d?d(r.value,c,e.value):zD(r.value,c,e.value,u),g=MD(f,s);f._tokenKey=g,ND(g);const v=`${BD}-${m0(g)}`;return f._hashId=v,[f,v]},s=>{var c;kD(s[0]._tokenKey,(c=o.value)===null||c===void 0?void 0:c.cache.instanceId)})}var gP={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},hP="comm",vP="rule",mP="decl",HD="@import",jD="@namespace",WD="@keyframes",VD="@layer",bP=Math.abs,$0=String.fromCharCode;function yP(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function KD(e,t,n){return e.indexOf(t,n)}function ra(e,t){return e.charCodeAt(t)|0}function xa(e,t,n){return e.slice(t,n)}function Jo(e){return e.length}function GD(e){return e.length}function Qc(e,t){return t.push(e),e}var qf=1,wa=1,SP=0,wo=0,on=0,Ra="";function C0(e,t,n,o,r,l,i,a){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:qf,column:wa,length:i,return:"",siblings:a}}function XD(){return on}function UD(){return on=wo>0?ra(Ra,--wo):0,wa--,on===10&&(wa=1,qf--),on}function Fo(){return on=wo2||tc(on)>3?"":" "}function QD(e,t){for(;--t&&Fo()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return Zf(e,Nu()+(t<6&&al()==32&&Fo()==32))}function hv(e){for(;Fo();)switch(on){case e:return wo;case 34:case 39:e!==34&&e!==39&&hv(on);break;case 40:e===41&&hv(e);break;case 92:Fo();break}return wo}function JD(e,t){for(;Fo()&&e+on!==47+10;)if(e+on===42+42&&al()===47)break;return"/*"+Zf(t,wo-1)+"*"+$0(e===47?e:Fo())}function e9(e){for(;!tc(al());)Fo();return Zf(e,wo)}function t9(e){return qD(Fu("",null,null,null,[""],e=YD(e),0,[0],e))}function Fu(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,f=0,g=0,v=0,h=1,b=1,y=1,S=0,$="",x=r,C=l,O=o,w=$;b;)switch(v=S,S=Fo()){case 40:if(v!=108&&ra(w,d-1)==58){KD(w+=Bu(Ag(S),"&","&\f"),"&\f",bP(c?a[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=Ag(S);break;case 9:case 10:case 13:case 32:w+=ZD(v);break;case 92:w+=QD(Nu()-1,7);continue;case 47:switch(al()){case 42:case 47:Qc(n9(JD(Fo(),Nu()),t,n,s),s),(tc(v||1)==5||tc(al()||1)==5)&&Jo(w)&&xa(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:a[c++]=Jo(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+u:y==-1&&(w=Bu(w,/\f/g,"")),g>0&&(Jo(w)-d||h===0&&v===47)&&Qc(g>32?I$(w+";",o,n,d-1,s):I$(Bu(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(Qc(O=P$(w,t,n,c,u,r,a,$,x=[],C=[],d,l),l),S===123)if(u===0)Fu(w,t,O,O,x,l,d,a,C);else{switch(f){case 99:if(ra(w,3)===110)break;case 108:if(ra(w,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Fu(e,O,O,o&&Qc(P$(e,O,O,0,0,r,a,$,r,x=[],d,C),C),r,C,d,a,o?x:C):Fu(w,O,O,O,[""],C,0,a,C)}}c=u=g=0,h=y=1,$=w="",d=i;break;case 58:d=1+Jo(w),g=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&UD()==125)continue}switch(w+=$0(S),S*h){case 38:y=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(Jo(w)-1)*y,y=1;break;case 64:al()===45&&(w+=Ag(Fo())),f=al(),u=d=Jo($=w+=e9(Nu())),S++;break;case 45:v===45&&Jo(w)==2&&(h=0)}}return l}function P$(e,t,n,o,r,l,i,a,s,c,u,d){for(var f=r-1,g=r===0?l:[""],v=GD(g),h=0,b=0,y=0;h0?g[S]+" "+$:Bu($,/&\f/g,g[S])))&&(s[y++]=x);return C0(e,t,n,r===0?vP:a,s,c,u,d)}function n9(e,t,n,o){return C0(e,t,n,hP,$0(XD()),xa(e,2,-2),0,o)}function I$(e,t,n,o,r){return C0(e,t,n,mP,xa(e,0,o),xa(e,o+1,-1),o,r)}function vv(e,t){for(var n="",o=0;o ")}`:""}`)}function r9(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(r=>r).length>1}function l9(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const i9=(e,t,n)=>{const r=l9(n).match(/:not\([^)]*\)/g)||[];r.length>0&&r.some(r9)&&Yi("Concat ':not' selector not support in legacy browsers.",n)},a9=i9,s9=(e,t,n)=>{switch(e){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":Yi(`You seem to be using non-logical property '${e}' 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.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const o=t.split(" ").map(r=>r.trim());o.length===4&&o[1]!==o[3]&&Yi(`You seem to be using '${e}' property with different left ${e} and right ${e}, 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.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(l=>l.trim()).reduce((l,i)=>{if(l)return l;const a=i.split(" ").map(s=>s.trim());return a.length>=2&&a[0]!==a[1]||a.length===3&&a[1]!==a[2]||a.length===4&&a[2]!==a[3]?!0:l},!1)&&Yi(`You seem to be using non-logical value '${t}' of ${e}, 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.`,n);return}},c9=s9,u9=(e,t,n)=>{n.parentSelectors.some(o=>o.split(",").some(l=>l.split("&").length>2))&&Yi("Should not use more than one `&` in a selector.",n)},d9=u9,Os="data-ant-cssinjs-cache-path",f9="_FILE_STYLE__";function p9(e){return Object.keys(e).map(t=>{const n=e[t];return`${t}:${n}`}).join(";")}let ti,$P=!0;function g9(){var e;if(!ti&&(ti={},Mn())){const t=document.createElement("div");t.className=Os,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(r=>{const[l,i]=r.split(":");ti[l]=i});const o=document.querySelector(`style[${Os}]`);o&&($P=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function h9(e){return g9(),!!ti[e]}function v9(e){const t=ti[e];let n=null;if(t&&Mn())if($P)n=f9;else{const o=document.querySelector(`style[${pl}="${ti[e]}"]`);o?n=o.innerHTML:delete ti[e]}return[n,t]}const T$=Mn(),m9="_skip_check_",CP="_multi_value_";function mv(e){return vv(t9(e),o9).replace(/\{%%%\:[^;];}/g,";")}function b9(e){return typeof e=="object"&&e&&(m9 in e||CP in e)}function y9(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(i=>{var a;const s=i.trim().split(/\s+/);let c=s[0]||"";const u=((a=c.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return c=`${u}${r}${c.slice(u.length)}`,[c,...s.slice(1)].join(" ")}).join(",")}const E$=new Set,bv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:l,layer:i,path:a,hashPriority:s,transformers:c=[],linters:u=[]}=t;let d="",f={};function g(b){const y=b.getName(l);if(!f[y]){const[S]=bv(b.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${b.getName(l)}${S}`}}function v(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?v(S,y):S&&y.push(S)}),y}if(v(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} -`;else if(y._keyframe)g(y);else{const S=c.reduce(($,x)=>{var C;return((C=x==null?void 0:x.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!b9(C)){let O=!1,w=$.trim(),I=!1;(n||o)&&l?w.startsWith("@")?O=!0:w=y9($,l,s):n&&!l&&(w==="&"||w==="")&&(w="",I=!0);const[T,_]=bv(C,t,{root:I,injectHash:O,parentSelectors:[...r,w]});f=m(m({},f),_),d+=`${w}${T}`}else{let O=function(I,T){const _=I.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let E=T;!gP[I]&&typeof E=="number"&&E!==0&&(E=`${E}px`),I==="animationName"&&(T!=null&&T._keyframe)&&(g(T),E=T.getName(l)),d+=`${_}:${E};`};const w=(x=C==null?void 0:C.value)!==null&&x!==void 0?x:C;typeof C=="object"&&(C!=null&&C[CP])&&Array.isArray(w)?w.forEach(I=>{O($,I)}):O($,w)}})}}),!n)d=`{${d}}`;else if(i&&AD()){const b=i.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}return[d,f]};function S9(e,t){return m0(`${e.join("%")}${t}`)}function Dd(e,t){const n=Oc(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let l=T$;return iP("style",r,()=>{const{path:i,hashId:a,layer:s,nonce:c,clientOnly:u,order:d=0}=e.value,f=r.value.join("|");if(h9(f)){const[w,I]=v9(f);if(w)return[w,o.value,I,{},u,d]}const g=t(),{hashPriority:v,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=bv(g,{hashId:a,hashPriority:v,layer:s,path:i.join("-"),transformers:b,linters:y}),C=mv($),O=S9(r.value,C);if(l){const w={mark:pl,prepend:"queue",attachTo:h,priority:d},I=typeof c=="function"?c():c;I&&(w.csp={nonce:I});const T=ec(C,O,w);T[Ui]=S.instanceId,T.setAttribute(b0,o.value),Object.keys(x).forEach(_=>{E$.has(_)||(E$.add(_),ec(mv(x[_]),`_effect-${_}`,{mark:pl,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,u,d]},(i,a)=>{let[,,s]=i;(a||n.value.autoClear)&&T$&&Ad(s,{mark:pl})}),i=>i}function $9(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n="style%",o=Array.from(e.cache.keys()).filter(c=>c.startsWith(n)),r={},l={};let i="";function a(c,u,d){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const g=m(m({},f),{[b0]:u,[pl]:d}),v=Object.keys(g).map(h=>{const b=g[h];return b?`${h}="${b}"`:null}).filter(h=>h).join(" ");return t?c:``}return o.map(c=>{const u=c.slice(n.length).replace(/%/g,"|"),[d,f,g,v,h,b]=e.cache.get(c)[1];if(h)return null;const y={"data-vc-order":"prependQueue","data-vc-priority":`${b}`};let S=a(d,f,g,y);return l[u]=g,v&&Object.keys(v).forEach(x=>{r[x]||(r[x]=!0,S+=a(mv(v[x]),f,`_effect-${x}`,y))}),[b,S]}).filter(c=>c).sort((c,u)=>c[0]-u[0]).forEach(c=>{let[,u]=c;i+=u}),i+=a(`.${Os}{content:"${p9(l)}";}`,void 0,void 0,{[Os]:Os}),i}class C9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const nt=C9;function x9(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",o=0;return t.reduce((r,l)=>(l.includes("(")?(n+=l,o+=l.split("(").length-1):l.includes(")")?(n+=` ${l}`,o-=l.split(")").length-1,o===0&&(r.push(n),n="")):o>0?n+=` ${l}`:r.push(l),r),[])}function Ai(e){return e.notSplit=!0,e}const w9={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:Ai(["borderTop","borderBottom"]),borderBlockStart:Ai(["borderTop"]),borderBlockEnd:Ai(["borderBottom"]),borderInline:Ai(["borderLeft","borderRight"]),borderInlineStart:Ai(["borderLeft"]),borderInlineEnd:Ai(["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 Jc(e){return{_skip_check_:!0,value:e}}const O9={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const o=e[n],r=w9[n];if(r&&(typeof o=="number"||typeof o=="string")){const l=x9(o);r.length&&r.notSplit?r.forEach(i=>{t[i]=Jc(o)}):r.length===1?t[r[0]]=Jc(o):r.length===2?r.forEach((i,a)=>{var s;t[i]=Jc((s=l[a])!==null&&s!==void 0?s:l[0])}):r.length===4?r.forEach((i,a)=>{var s,c;t[i]=Jc((c=(s=l[a])!==null&&s!==void 0?s:l[a-2])!==null&&c!==void 0?c:l[0])}):t[n]=o}else t[n]=o}),t}},P9=O9,Rg=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function I9(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}const T9=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rootValue:t=16,precision:n=5,mediaQuery:o=!1}=e,r=(i,a)=>{if(!a)return i;const s=parseFloat(a);return s<=1?i:`${I9(s/t,n)}rem`};return{visit:i=>{const a=m({},i);return Object.entries(i).forEach(s=>{let[c,u]=s;if(typeof u=="string"&&u.includes("px")){const f=u.replace(Rg,r);a[c]=f}!gP[c]&&typeof u=="number"&&u!==0&&(a[c]=`${u}px`.replace(Rg,r));const d=c.trim();if(d.startsWith("@")&&d.includes("px")&&o){const f=c.replace(Rg,r);a[f]=a[c],delete a[c]}}),a}}},E9=T9,M9={Theme:y0,createTheme:S0,useStyleRegister:Dd,useCacheToken:pP,createCache:$a,useStyleInject:Oc,useStyleProvider:lP,Keyframes:nt,extractStyle:$9,legacyLogicalPropertiesTransformer:P9,px2remTransformer:E9,logicalPropertiesLinter:c9,legacyNotSelectorLinter:a9,parentSelectorLinter:d9,StyleProvider:SD},_9=M9,xP="4.2.6",nc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sn(e,t){A9(e)&&(e="100%");var n=R9(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function eu(e){return Math.min(1,Math.max(0,e))}function A9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function R9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function wP(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ql(e){return e.length===1?"0"+e:String(e)}function D9(e,t,n){return{r:Sn(e,255)*255,g:Sn(t,255)*255,b:Sn(n,255)*255}}function M$(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=0,a=(o+r)/2;if(o===r)i=0,l=0;else{var s=o-r;switch(i=a>.5?s/(2-o-r):s/(o+r),o){case e:l=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function B9(e,t,n){var o,r,l;if(e=Sn(e,360),t=Sn(t,100),n=Sn(n,100),t===0)r=n,l=n,o=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;o=Dg(a,i,e+1/3),r=Dg(a,i,e),l=Dg(a,i,e-1/3)}return{r:o*255,g:r*255,b:l*255}}function yv(e,t,n){e=Sn(e,255),t=Sn(t,255),n=Sn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),l=0,i=o,a=o-r,s=o===0?0:a/o;if(o===r)l=0;else{switch(o){case e:l=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var $v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ji(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,l=null,i=!1,a=!1;return typeof e=="string"&&(e=j9(e)),typeof e=="object"&&(pr(e.r)&&pr(e.g)&&pr(e.b)?(t=D9(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):pr(e.h)&&pr(e.s)&&pr(e.v)?(o=tu(e.s),r=tu(e.v),t=N9(e.h,o,r),i=!0,a="hsv"):pr(e.h)&&pr(e.s)&&pr(e.l)&&(o=tu(e.s),l=tu(e.l),t=B9(e.h,o,l),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=wP(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var z9="[-\\+]?\\d+%?",H9="[-\\+]?\\d*\\.\\d+%?",sl="(?:".concat(H9,")|(?:").concat(z9,")"),Bg="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ng="[\\s|\\(]+(".concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")[,|\\s]+(").concat(sl,")\\s*\\)?"),Ao={CSS_UNIT:new RegExp(sl),rgb:new RegExp("rgb"+Bg),rgba:new RegExp("rgba"+Ng),hsl:new RegExp("hsl"+Bg),hsla:new RegExp("hsla"+Ng),hsv:new RegExp("hsv"+Bg),hsva:new RegExp("hsva"+Ng),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 j9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if($v[e])e=$v[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ao.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ao.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ao.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Ao.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ao.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Ao.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ao.hex8.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),a:_$(n[4]),format:t?"name":"hex8"}:(n=Ao.hex6.exec(e),n?{r:oo(n[1]),g:oo(n[2]),b:oo(n[3]),format:t?"name":"hex"}:(n=Ao.hex4.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),a:_$(n[4]+n[4]),format:t?"name":"hex8"}:(n=Ao.hex3.exec(e),n?{r:oo(n[1]+n[1]),g:oo(n[2]+n[2]),b:oo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function pr(e){return!!Ao.CSS_UNIT.exec(String(e))}var gt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=k9(t)),this.originalInput=t;var r=ji(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.format,this.gradientType=n.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,l=t.r/255,i=t.g/255,a=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=wP(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=yv(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=yv(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=M$(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=M$(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),F9(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Sn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Sn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Sv(this.r,this.g,this.b,!1),n=0,o=Object.entries($v);n=0,l=!n&&r&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=eu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=eu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=eu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=eu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),l=n/100,i={r:(r.r-o.r)*l+o.r,g:(r.g-o.g)*l+o.g,b:(r.b-o.b)*l+o.b,a:(r.a-o.a)*l+o.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,l=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,l.push(new e(o));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,l=n.v,i=[],a=1/t;t--;)i.push(new e({h:o,s:r,v:l})),l=(l+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,r=[this],l=360/t,i=1;i=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-nu*t:Math.round(e.h)+nu*t:o=n?Math.round(e.h)+nu*t:Math.round(e.h)-nu*t,o<0?o+=360:o>=360&&(o-=360),o}function B$(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-A$*t:t===PP?o=e.s+A$:o=e.s+W9*t,o>1&&(o=1),n&&t===OP&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function N$(e,t,n){var o;return n?o=e.v+V9*t:o=e.v-K9*t,o>1&&(o=1),Number(o.toFixed(2))}function ci(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ji(e),r=OP;r>0;r-=1){var l=R$(o),i=ou(ji({h:D$(l,r,!0),s:B$(l,r,!0),v:N$(l,r,!0)}));n.push(i)}n.push(ou(o));for(var a=1;a<=PP;a+=1){var s=R$(o),c=ou(ji({h:D$(s,a),s:B$(s,a),v:N$(s,a)}));n.push(c)}return t.theme==="dark"?G9.map(function(u){var d=u.index,f=u.opacity,g=ou(X9(ji(t.backgroundColor||"#141414"),ji(n[d]),f*100));return g}):n}var la={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"},Ps={},Fg={};Object.keys(la).forEach(function(e){Ps[e]=ci(la[e]),Ps[e].primary=Ps[e][5],Fg[e]=ci(la[e],{theme:"dark",backgroundColor:"#141414"}),Fg[e].primary=Fg[e][5]});var U9=Ps.gold,Y9=Ps.blue;const q9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},Z9=q9;function Q9(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const IP={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"},J9=m(m({},IP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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'`,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}),Qf=J9;function eB(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:l,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=n(s),f=n(r),g=n(l),v=n(i),h=n(a),b=o(c,u);return m(m({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new gt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const tB=e=>{let t=e,n=e,o=e,r=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}},nB=tB;function oB(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return m({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},nB(o))}const gr=(e,t)=>new gt(e).setAlpha(t).toRgbString(),es=(e,t)=>new gt(e).darken(t).toHexString(),rB=e=>{const t=ci(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},lB=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:gr(o,.88),colorTextSecondary:gr(o,.65),colorTextTertiary:gr(o,.45),colorTextQuaternary:gr(o,.25),colorFill:gr(o,.15),colorFillSecondary:gr(o,.06),colorFillTertiary:gr(o,.04),colorFillQuaternary:gr(o,.02),colorBgLayout:es(n,4),colorBgContainer:es(n,0),colorBgElevated:es(n,0),colorBgSpotlight:gr(o,.85),colorBorder:es(n,15),colorBorderSecondary:es(n,6)}};function iB(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,l=e*Math.pow(2.71828,r/5),i=o>1?Math.floor(l):Math.ceil(l);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const aB=e=>{const t=iB(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}},sB=aB;function cB(e){const t=Object.keys(IP).map(n=>{const o=ci(e[n]);return new Array(10).fill(1).reduce((r,l,i)=>(r[`${n}-${i+1}`]=o[i],r),{})}).reduce((n,o)=>(n=m(m({},n),o),n),{});return m(m(m(m(m(m(m({},e),t),eB(e,{generateColorPalettes:rB,generateNeutralColorPalettes:lB})),sB(e.fontSize)),Q9(e)),Z9(e)),oB(e))}function Lg(e){return e>=0&&e<=255}function ru(e,t){const{r:n,g:o,b:r,a:l}=new gt(e).toRgb();if(l<1)return e;const{r:i,g:a,b:s}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-i*(1-c))/c),d=Math.round((o-a*(1-c))/c),f=Math.round((r-s*(1-c))/c);if(Lg(u)&&Lg(d)&&Lg(f))return new gt({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new gt({r:n,g:o,b:r,a:1}).toRgbString()}var uB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[g]});const r=m(m({},n),o),l=480,i=576,a=768,s=992,c=1200,u=1600,d=2e3;return m(m(m({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:ru(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:ru(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:ru(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:ru(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` - 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) - `,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:l,screenXSMin:l,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` - 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new gt("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)"}),o)}const Jf=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),x0=(e,t,n,o,r)=>{const l=e/2,i=0,a=l,s=n*1/Math.sqrt(2),c=l-n*(1-1/Math.sqrt(2)),u=l-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*l-u,g=d,v=2*l-s,h=c,b=2*l-i,y=a,S=l*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*l-$}px 100%, ${$}px 100%)`,`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${s} ${c} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Bd(e,t){return nc.reduce((n,o)=>{const r=e[`${o}-1`],l=e[`${o}-3`],i=e[`${o}-6`],a=e[`${o}-7`];return m(m({},n),t(o,{lightColor:r,lightBorderColor:l,darkColor:i,textColor:a}))},{})}const Gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Xe=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),yi=()=>({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"}}),zo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),fB=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),pB=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Ar=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rr=e=>({"&:focus-visible":m({},Ar(e))});function Ve(e,t,n){return o=>{const r=P(()=>o==null?void 0:o.value),[l,i,a]=Fr(),{getPrefixCls:s,iconPrefixCls:c}=Xf(),u=P(()=>s()),d=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:["Shared",u.value]}));Dd(d,()=>[{"&":fB(i.value)}]);const f=P(()=>({theme:l.value,token:i.value,hashId:a.value,path:[e,r.value,c.value]}));return[Dd(f,()=>{const{token:g,flush:v}=hB(i.value),h=typeof n=="function"?n(g):n,b=m(m({},h),i.value[e]),y=`.${r.value}`,S=Fe(g,{componentCls:y,prefixCls:r.value,iconCls:`.${c.value}`,antCls:`.${u.value}`},b),$=t(S,{hashId:a.value,prefixCls:r.value,rootPrefixCls:u.value,iconPrefixCls:c.value,overrideComponentToken:i.value[e]});return v(e,b),[pB(i.value,r.value),$]}),a]}}const TP=typeof CSSINJS_STATISTIC<"u";let Cv=!0;function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(i=>{Object.defineProperty(o,i,{configurable:!0,enumerable:!0,get:()=>r[i]})})}),Cv=!0,o}function gB(){}function hB(e){let t,n=e,o=gB;return TP&&(t=new Set,n=new Proxy(e,{get(r,l){return Cv&&t.add(l),r[l]}}),o=(r,l)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const vB=S0(cB),EP={token:Qf,hashed:!0},MP=Symbol("DesignTokenContext"),xv=te(),mB=e=>{Ge(MP,e),be(e,()=>{xv.value=$t(e),$3(xv)},{immediate:!0,deep:!0})},bB=oe({props:{value:Re()},setup(e,t){let{slots:n}=t;return mB(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Fr(){const e=He(MP,P(()=>xv.value||EP)),t=P(()=>`${xP}-${e.value.hashed||""}`),n=P(()=>e.value.theme||vB),o=pP(n,P(()=>[Qf,e.value.token]),P(()=>({salt:t.value,override:m({override:e.value.token},e.value.components),formatToken:dB})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const _P=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>new gt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(24 31.67)"},[p("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p("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"},null),p("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)"},null),p("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"},null),p("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"},null)]),p("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"},null),p("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});_P.PRESENTED_IMAGE_DEFAULT=!0;const AP=_P,RP=oe({compatConfig:{MODE:3},setup(){const[,e]=Fr(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:l}=e.value;return{borderColor:new gt(n).onBackground(l).toHexString(),shadowColor:new gt(o).onBackground(l).toHexString(),contentColor:new gt(r).onBackground(l).toHexString()}});return()=>p("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[p("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"},null),p("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:t.value.contentColor},null)])])])}});RP.PRESENTED_IMAGE_SIMPLE=!0;const yB=RP,SB=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:l,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:l,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$B=Ve("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=Fe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[SB(o)]});var CB=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:Re(),image:St(),description:St()}),w0=oe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:xB(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:l}=Te("empty",e),[i,a]=$B(l);return()=>{var s,c;const u=l.value,d=m(m({},e),o),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||_r(AP),description:g=((c=n.description)===null||c===void 0?void 0:c.call(n))||void 0,imageStyle:v,class:h=""}=d,b=CB(d,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return i(p(bi,{componentName:"Empty",children:$=>{const x=typeof g<"u"?g:$.description,C=typeof x=="string"?x:"empty";let O=null;return typeof y=="string"?O=p("img",{alt:C,src:y},null):O=y,p("div",D({class:ie(u,h,a.value,{[`${u}-normal`]:S,[`${u}-rtl`]:r.value==="rtl"})},b),[p("div",{class:`${u}-image`,style:v},[O]),x&&p("p",{class:`${u}-description`},[x]),n.default&&p("div",{class:`${u}-footer`},[_t(n.default())])])}},null))}}});w0.PRESENTED_IMAGE_DEFAULT=()=>_r(AP);w0.PRESENTED_IMAGE_SIMPLE=()=>_r(yB);const ll=Tt(w0),O0=e=>{const{prefixCls:t}=Te("empty",e);return(o=>{switch(o){case"Table":case"List":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return p(ll,null,null)}})(e.componentName)};function wB(e){return p(O0,{componentName:e},null)}const DP=Symbol("SizeContextKey"),BP=()=>He(DP,le(void 0)),NP=e=>{const t=BP();return Ge(DP,P(()=>e.value||t.value)),e},Te=(e,t)=>{const n=BP(),o=qn(),r=He(v0,m(m({},QO),{renderEmpty:w=>_r(O0,{componentName:w})})),l=P(()=>r.getPrefixCls(e,t.prefixCls)),i=P(()=>{var w,I;return(w=t.direction)!==null&&w!==void 0?w:(I=r.direction)===null||I===void 0?void 0:I.value}),a=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),c=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),u=r.renderEmpty,d=r.space,f=r.pageHeader,g=r.form,v=P(()=>{var w,I;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(I=r.getTargetContainer)===null||I===void 0?void 0:I.value}),h=P(()=>{var w,I,T;return(I=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&I!==void 0?I:(T=r.getPopupContainer)===null||T===void 0?void 0:T.value}),b=P(()=>{var w,I;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,I,T;return(w=t.autocomplete)!==null&&w!==void 0?w:(T=(I=r.input)===null||I===void 0?void 0:I.value)===null||T===void 0?void 0:T.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,I;return(w=t.wave)!==null&&w!==void 0?w:(I=r.wave)===null||I===void 0?void 0:I.value});return{configProvider:r,prefixCls:l,direction:i,size:S,getTargetContainer:v,getPopupContainer:h,space:d,pageHeader:f,form:g,autoInsertSpaceInButton:c,renderEmpty:u,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:a,disabled:x,select:r.select,wave:O}};function et(e,t){const n=m({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},PB=Ve("Affix",e=>{const t=Fe(e,{zIndexPopup:e.zIndexBase+10});return[OB(t)]});function IB(){return typeof window<"u"?window:null}var qi;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(qi||(qi={}));const TB=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:IB},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),EB=oe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:TB(),setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=te(),a=te(),s=ut({affixStyle:void 0,placeholderStyle:void 0,status:qi.None,lastAffix:!1,prevTarget:null,timeout:null}),c=pn(),u=P(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=P(()=>e.offsetBottom),f=()=>{const{status:$,lastAffix:x}=s,{target:C}=e;if($!==qi.Prepare||!a.value||!i.value||!C)return;const O=C();if(!O)return;const w={status:qi.None},I=Zc(i.value);if(I.top===0&&I.left===0&&I.width===0&&I.height===0)return;const T=Zc(O),_=v$(I,T,u.value),E=m$(I,T,d.value);if(!(I.top===0&&I.left===0&&I.width===0&&I.height===0)){if(_!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",top:_,width:A,height:R},w.placeholderStyle={width:A,height:R}}else if(E!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",bottom:E,width:A,height:R},w.placeholderStyle={width:A,height:R}}w.lastAffix=!!w.affixStyle,x!==w.lastAffix&&o("change",w.lastAffix),m(s,w)}},g=()=>{m(s,{status:qi.Prepare,affixStyle:void 0,placeholderStyle:void 0})},v=pv(()=>{g()}),h=pv(()=>{const{target:$}=e,{affixStyle:x}=s;if($&&x){const C=$();if(C&&i.value){const O=Zc(C),w=Zc(i.value),I=v$(w,O,u.value),T=m$(w,O,d.value);if(I!==void 0&&x.top===I||T!==void 0&&x.bottom===T)return}}g()});r({updatePosition:v,lazyUpdatePosition:h}),be(()=>e.target,$=>{const x=($==null?void 0:$())||null;s.prevTarget!==x&&(y$(c),x&&(b$(x,c),v()),s.prevTarget=x)}),be(()=>[e.offsetTop,e.offsetBottom],v),je(()=>{const{target:$}=e;$&&(s.timeout=setTimeout(()=>{b$($(),c),v()}))}),An(()=>{f()}),Rn(()=>{clearTimeout(s.timeout),y$(c),v.cancel(),h.cancel()});const{prefixCls:b}=Te("affix",e),[y,S]=PB(b);return()=>{var $;const{affixStyle:x,placeholderStyle:C,status:O}=s,w=ie({[b.value]:x,[S.value]:!0}),I=et(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return y(p(xo,{onResize:v},{default:()=>[p("div",D(D(D({},I),l),{},{ref:i,"data-measure-status":O}),[x&&p("div",{style:C,"aria-hidden":"true"},null),p("div",{class:w,ref:a,style:x},[($=n.default)===null||$===void 0?void 0:$.call(n)])])]}))}}}),FP=Tt(EB);function F$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function L$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function kg(e,t){if(e.clientHeightt||l>e&&i=t&&a>=n?l-e-o:i>t&&an?i-t+r:0}var k$=function(e,t){var n=window,o=t.scrollMode,r=t.block,l=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s=typeof i=="function"?i:function(X){return X!==i};if(!F$(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],g=e;F$(g)&&s(g);){if((g=(u=(c=g).parentElement)==null?c.getRootNode().host||null:u)===d){f.push(g);break}g!=null&&g===document.body&&kg(g)&&!kg(document.documentElement)||g!=null&&kg(g,a)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,I=S.left,T=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,_=l==="center"?I+x/2:l==="end"?O:I,E=[],A=0;A=0&&I>=0&&w<=h&&O<=v&&C>=N&&w<=L&&I>=k&&O<=F)return E;var j=getComputedStyle(R),H=parseInt(j.borderLeftWidth,10),Y=parseInt(j.borderTopWidth,10),Z=parseInt(j.borderRightWidth,10),U=parseInt(j.borderBottomWidth,10),ee=0,G=0,J="offsetWidth"in R?R.offsetWidth-R.clientWidth-H-Z:0,Q="offsetHeight"in R?R.offsetHeight-R.clientHeight-Y-U:0,K="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,q="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(d===R)ee=r==="start"?T:r==="end"?T-h:r==="nearest"?lu(y,y+h,h,Y,U,y+T,y+T+$,$):T-h/2,G=l==="start"?_:l==="center"?_-v/2:l==="end"?_-v:lu(b,b+v,v,H,Z,b+_,b+_+x,x),ee=Math.max(0,ee+y),G=Math.max(0,G+b);else{ee=r==="start"?T-N-Y:r==="end"?T-L+U+Q:r==="nearest"?lu(N,L,M,Y,U+Q,T,T+$,$):T-(N+M/2)+Q/2,G=l==="start"?_-k-H:l==="center"?_-(k+B/2)+J/2:l==="end"?_-F+Z+J:lu(k,F,B,H,Z+J,_,_+x,x);var pe=R.scrollLeft,W=R.scrollTop;T+=W-(ee=Math.max(0,Math.min(W+ee/q,R.scrollHeight-M/q+Q))),_+=pe-(G=Math.max(0,Math.min(pe+G/K,R.scrollWidth-B/K+J)))}E.push({el:R,top:ee,left:G})}return E};function LP(e){return e===Object(e)&&Object.keys(e).length!==0}function MB(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,l=o.top,i=o.left;r.scroll&&n?r.scroll({top:l,left:i,behavior:t}):(r.scrollTop=l,r.scrollLeft=i)})}function _B(e){return e===!1?{block:"end",inline:"nearest"}:LP(e)?e:{block:"start",inline:"nearest"}}function kP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(LP(t)&&typeof t.behavior=="function")return t.behavior(n?k$(e,t):[]);if(n){var o=_B(t);return MB(k$(e,o),o.behavior)}}function AB(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function wv(e){return e!=null&&e===e.window}function P0(e,t){var n,o;if(typeof window>"u")return 0;const r=t?"scrollTop":"scrollLeft";let l=0;return wv(e)?l=e[t?"scrollY":"scrollX"]:e instanceof Document?l=e.documentElement[r]:(e instanceof HTMLElement||e)&&(l=e[r]),e&&!wv(e)&&typeof l!="number"&&(l=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),l}function I0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,l=n(),i=P0(l,!0),a=Date.now(),s=()=>{const u=Date.now()-a,d=AB(u>r?r:u,i,e,r);wv(l)?l.scrollTo(window.scrollX,d):l instanceof Document?l.documentElement.scrollTop=d:l.scrollTop=d,u{Ge(zP,e)},DB=()=>He(zP,{registerLink:iu,unregisterLink:iu,scrollTo:iu,activeLink:P(()=>""),handleClick:iu,direction:P(()=>"vertical")}),BB=RB,NB=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:l,lineType:i,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:m(m({},Xe(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":m(m({},Gt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${i} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:l,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},FB=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},LB=Ve("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,l=Fe(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[NB(l),FB(l)]}),kB=()=>({prefixCls:String,href:String,title:St(),target:String,customTitleProps:Re()}),T0=oe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:qe(kB(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:l,scrollTo:i,unregisterLink:a,registerLink:s,activeLink:c}=DB(),{prefixCls:u}=Te("anchor",e),d=f=>{const{href:g}=e;l(f,{title:r,href:g}),i(g)};return be(()=>e.href,(f,g)=>{ot(()=>{a(g),s(f)})}),je(()=>{s(e.href)}),Ze(()=>{a(e.href)}),()=>{var f;const{href:g,target:v,title:h=n.title,customTitleProps:b={}}=e,y=u.value;r=typeof h=="function"?h(b):h;const S=c.value===g,$=ie(`${y}-link`,{[`${y}-link-active`]:S},o.class),x=ie(`${y}-link-title`,{[`${y}-link-title-active`]:S});return p("div",D(D({},o),{},{class:$}),[p("a",{class:x,href:g,title:typeof r=="string"?r:"",target:v,onClick:d},[n.customTitle?n.customTitle(b):r]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function z$(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function H$(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var VP=Object.prototype,KP=VP.toString,zB=VP.hasOwnProperty,GP=/^\s*function (\w+)/;function j$(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(GP);return o?o[1]:""}return""}var ui=function(e){var t,n;return H$(e)!==!1&&typeof(t=e.constructor)=="function"&&H$(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},HB=function(e){return e},Ln=HB,oc=function(e,t){return zB.call(e,t)},jB=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Oa=Array.isArray||function(e){return KP.call(e)==="[object Array]"},Pa=function(e){return KP.call(e)==="[object Function]"},Nd=function(e){return ui(e)&&oc(e,"_vueTypes_name")},XP=function(e){return ui(e)&&(oc(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return oc(e,t)}))};function E0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Si(e,t,n){var o;n===void 0&&(n=!1);var r=!0,l="";o=ui(e)?e:{type:e};var i=Nd(o)?o._vueTypes_name+" - ":"";if(XP(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Oa(o.type)?(r=o.type.some(function(d){return Si(d,t,!0)===!0}),l=o.type.map(function(d){return j$(d)}).join(" or ")):r=(l=j$(o))==="Array"?Oa(t):l==="Object"?ui(t):l==="String"||l==="Number"||l==="Boolean"||l==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(GP);return f?f[1]:""}(t)===l:t instanceof o.type}if(!r){var a=i+'value "'+t+'" should be of type "'+l+'"';return n===!1?(Ln(a),!1):a}if(oc(o,"validator")&&Pa(o.validator)){var s=Ln,c=[];if(Ln=function(d){c.push(d)},r=o.validator(t),Ln=s,!r){var u=(c.length>1?"* ":"")+c.join(` -* `);return c.length=0,n===!1?(Ln(u),r):u}}return r}function ao(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?Pa(r)||Si(this,r,!0)===!0?(this.default=Oa(r)?function(){return[].concat(r)}:ui(r)?function(){return Object.assign({},r)}:r,this):(Ln(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return Pa(o)&&(n.validator=E0(o,n)),n}function ar(e,t){var n=ao(e,t);return Object.defineProperty(n,"validate",{value:function(o){return Pa(this.validator)&&Ln(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: -`+JSON.stringify(this)),this.validator=E0(o,this),this}})}function W$(e,t,n){var o,r,l=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(d){r[d]=Object.getOwnPropertyDescriptor(o,d)}),Object.defineProperties({},r));if(l._vueTypes_name=e,!ui(n))return l;var i,a,s=n.validator,c=WP(n,["validator"]);if(Pa(s)){var u=l.validator;u&&(u=(a=(i=u).__original)!==null&&a!==void 0?a:i),l.validator=E0(u?function(d){return u.call(this,d)&&s.call(this,d)}:s,l)}return Object.assign(l,c)}function ep(e){return e.replace(/^(?!\s*$)/gm," ")}var WB=function(){return ar("any",{})},VB=function(){return ar("function",{type:Function})},KB=function(){return ar("boolean",{type:Boolean})},GB=function(){return ar("string",{type:String})},XB=function(){return ar("number",{type:Number})},UB=function(){return ar("array",{type:Array})},YB=function(){return ar("object",{type:Object})},qB=function(){return ao("integer",{type:Number,validator:function(e){return jB(e)}})},ZB=function(){return ao("symbol",{validator:function(e){return typeof e=="symbol"}})};function QB(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return ao(e.name||"<>",{validator:function(n){var o=e(n);return o||Ln(this._vueTypes_name+" - "+t),o}})}function JB(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var l=r.constructor;o.indexOf(l)===-1&&o.push(l)}return o},[]);return ao("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||Ln(t),r}})}function eN(e){if(!Oa(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(s){return i.indexOf(s)===-1})){var a=n.filter(function(s){return i.indexOf(s)===-1});return Ln(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every(function(s){if(t.indexOf(s)===-1)return l._vueTypes_isLoose===!0||(Ln('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=Si(e[s],r[s],!0);return typeof c=="string"&&Ln('shape - "'+s+`" property validation error: - `+ep(c)),c===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var Yo=function(){function e(){}return e.extend=function(t){var n=this;if(Oa(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,l=r!==void 0&&r,i=t.getter,a=i!==void 0&&i,s=WP(t,["name","validate","getter"]);if(oc(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,u=s.type;return Nd(u)?(delete s.type,Object.defineProperty(this,o,a?{get:function(){return W$(o,u,s)}}:{value:function(){var d,f=W$(o,u,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(c=a?{get:function(){var d=Object.assign({},s);return l?ar(o,d):ao(o,d)},enumerable:!0}:{value:function(){var d,f,g=Object.assign({},s);return d=l?ar(o,g):ao(o,g),g.validator&&(d.validator=(f=g.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,c))},HP(e,null,[{key:"any",get:function(){return WB()}},{key:"func",get:function(){return VB().def(this.defaults.func)}},{key:"bool",get:function(){return KB().def(this.defaults.bool)}},{key:"string",get:function(){return GB().def(this.defaults.string)}},{key:"number",get:function(){return XB().def(this.defaults.number)}},{key:"array",get:function(){return UB().def(this.defaults.array)}},{key:"object",get:function(){return YB().def(this.defaults.object)}},{key:"integer",get:function(){return qB().def(this.defaults.integer)}},{key:"symbol",get:function(){return ZB()}}]),e}();function UP(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function o(){return n.apply(this,arguments)||this}return jP(o,n),HP(o,null,[{key:"sensibleDefaults",get:function(){return Lu({},this.defaults)},set:function(r){this.defaults=r!==!1?Lu({},r!==!0?r:e):{}}}]),o}(Yo)).defaults=Lu({},e),t}Yo.defaults={},Yo.custom=QB,Yo.oneOf=JB,Yo.instanceOf=nN,Yo.oneOfType=eN,Yo.arrayOf=tN,Yo.objectOf=oN,Yo.shape=rN,Yo.utils={validate:function(e,t){return Si(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?ar(e,t):ao(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return jP(t,e),t})(UP());const YP=UP({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});YP.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function qP(e){return e.default=void 0,e}const V=YP,xt=(e,t,n)=>{Yf(e,`[ant-design-vue: ${t}] ${n}`)};function lN(){return window}function V$(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const K$=/#([\S ]+)$/,iN=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:at(),direction:V.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Gl=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:iN(),setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{prefixCls:i,getTargetContainer:a,direction:s}=Te("anchor",e),c=P(()=>{var w;return(w=e.direction)!==null&&w!==void 0?w:"vertical"}),u=le(null),d=le(),f=ut({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=le(null),v=P(()=>{const{getContainer:w}=e;return w||(a==null?void 0:a.value)||lN}),h=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const T=[],_=v.value();return f.links.forEach(E=>{const A=K$.exec(E.toString());if(!A)return;const R=document.getElementById(A[1]);if(R){const z=V$(R,_);zR.top>A.top?R:A).link:""},b=w=>{const{getCurrentAnchor:I}=e;g.value!==w&&(g.value=typeof I=="function"?I(w):w,n("change",w))},y=w=>{const{offsetTop:I,targetOffset:T}=e;b(w);const _=K$.exec(w);if(!_)return;const E=document.getElementById(_[1]);if(!E)return;const A=v.value(),R=P0(A,!0),z=V$(E,A);let M=R+z;M-=T!==void 0?T:I||0,f.animating=!0,I0(M,{callback:()=>{f.animating=!1},getContainer:v.value})};l({scrollTo:y});const S=()=>{if(f.animating)return;const{offsetTop:w,bounds:I,targetOffset:T}=e,_=h(T!==void 0?T:w||0,I);b(_)},$=()=>{const w=d.value.querySelector(`.${i.value}-link-title-active`);if(w&&u.value){const I=c.value==="horizontal";u.value.style.top=I?"":`${w.offsetTop+w.clientHeight/2}px`,u.value.style.height=I?"":`${w.clientHeight}px`,u.value.style.left=I?`${w.offsetLeft}px`:"",u.value.style.width=I?`${w.clientWidth}px`:"",I&&kP(w,{scrollMode:"if-needed",block:"nearest"})}};BB({registerLink:w=>{f.links.includes(w)||f.links.push(w)},unregisterLink:w=>{const I=f.links.indexOf(w);I!==-1&&f.links.splice(I,1)},activeLink:g,scrollTo:y,handleClick:(w,I)=>{n("click",w,I)},direction:c}),je(()=>{ot(()=>{const w=v.value();f.scrollContainer=w,f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S()})}),Ze(()=>{f.scrollEvent&&f.scrollEvent.remove()}),An(()=>{if(f.scrollEvent){const w=v.value();f.scrollContainer!==w&&(f.scrollContainer=w,f.scrollEvent.remove(),f.scrollEvent=Mt(f.scrollContainer,"scroll",S),S())}$()});const x=w=>Array.isArray(w)?w.map(I=>{const{children:T,key:_,href:E,target:A,class:R,style:z,title:M}=I;return p(T0,{key:_,href:E,target:A,class:R,style:z,title:M,customTitleProps:I},{default:()=>[c.value==="vertical"?x(T):null],customTitle:r.customTitle})}):null,[C,O]=LB(i);return()=>{var w;const{offsetTop:I,affix:T,showInkInFixed:_}=e,E=i.value,A=ie(`${E}-ink`,{[`${E}-ink-visible`]:g.value}),R=ie(O.value,e.wrapperClass,`${E}-wrapper`,{[`${E}-wrapper-horizontal`]:c.value==="horizontal",[`${E}-rtl`]:s.value==="rtl"}),z=ie(E,{[`${E}-fixed`]:!T&&!_}),M=m({maxHeight:I?`calc(100vh - ${I}px)`:"100vh"},e.wrapperStyle),B=p("div",{class:R,style:M,ref:d},[p("div",{class:z},[p("span",{class:A,ref:u},null),Array.isArray(e.items)?x(e.items):(w=r.default)===null||w===void 0?void 0:w.call(r)])]);return C(T?p(FP,D(D({},o),{},{offsetTop:I,target:v.value}),{default:()=>[B]}):B)}}});Gl.Link=T0;Gl.install=function(e){return e.component(Gl.name,Gl),e.component(Gl.Link.name,Gl.Link),e};function G$(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function ZP(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function aN(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:l,options:i}=ZP(t,!1);function a(s,c){s.forEach(u=>{const d=u[r];if(c||!(i in u)){const f=u[l];o.push({key:G$(u,o.length),groupOption:c,data:u,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=u.label),o.push({key:G$(u,o.length),group:!0,data:u,label:f}),a(u[i],!0)}})}return a(e,!1),o}function Ov(e){const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function sN(e,t){if(!t||!t.length)return null;let n=!1;function o(l,i){let[a,...s]=i;if(!a)return[l];const c=l.split(a);return n=n||c.length>1,c.reduce((u,d)=>[...u,...o(d,s)],[]).filter(u=>u)}const r=o(e,t);return n?r:null}function cN(){return""}function uN(e){return e?e.ownerDocument:window.document}function QP(){}const JP=()=>({action:V.oneOfType([V.string,V.arrayOf(V.string)]).def([]),showAction:V.any.def([]),hideAction:V.any.def([]),getPopupClassNameFromAlign:V.any.def(cN),onPopupVisibleChange:Function,afterPopupVisibleChange:V.func.def(QP),popup:V.any,arrow:V.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:V.string.def("rc-trigger-popup"),popupClassName:V.string.def(""),popupPlacement:String,builtinPlacements:V.object,popupTransitionName:String,popupAnimation:V.any,mouseEnterDelay:V.number.def(0),mouseLeaveDelay:V.number.def(.1),zIndex:Number,focusDelay:V.number.def(0),blurDelay:V.number.def(.15),getPopupContainer:Function,getDocument:V.func.def(uN),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:V.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),M0={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},dN=m(m({},M0),{mobile:{type:Object}}),fN=m(m({},M0),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function _0(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function eI(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:l,maskTransitionName:i}=e;if(!r)return null;let a={};return(i||l)&&(a=_0({prefixCls:t,transitionName:i,animation:l})),p(cn,D({appear:!0},a),{default:()=>[$n(p("div",{style:{zIndex:o},class:`${t}-mask`},null),[[A_("if"),n]])]})}eI.displayName="Mask";const pN=oe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:dN,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=le();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var l;const{zIndex:i,visible:a,prefixCls:s,mobile:{popupClassName:c,popupStyle:u,popupMotion:d={},popupRender:f}={}}=e,g=m({zIndex:i},u);let v=yt((l=o.default)===null||l===void 0?void 0:l.call(o));v.length>1&&(v=p("div",{class:`${s}-content`},[v])),f&&(v=f(v));const h=ie(s,c);return p(cn,D({ref:r},d),{default:()=>[a?p("div",{class:h,style:g},[v]):null]})}}});var gN=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const X$=["measure","align",null,"motion"],hN=(e,t)=>{const n=te(null),o=te(),r=te(!1);function l(s){r.value||(n.value=s)}function i(){Ye.cancel(o.value)}function a(s){i(),o.value=Ye(()=>{let c=n.value;switch(n.value){case"align":c="motion";break;case"motion":c="stable";break}l(c),s==null||s()})}return be(e,()=>{l("measure")},{immediate:!0,flush:"post"}),je(()=>{be(n,()=>{switch(n.value){case"measure":t();break}n.value&&(o.value=Ye(()=>gN(void 0,void 0,void 0,function*(){const s=X$.indexOf(n.value),c=X$[s+1];c&&s!==-1&&l(c)})))},{immediate:!0,flush:"post"})}),Ze(()=>{r.value=!0,i()}),[n,a]},vN=e=>{const t=te({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:l,height:i}=t.value;e.value.indexOf("height")!==-1&&i?r.height=`${i}px`:e.value.indexOf("minHeight")!==-1&&i&&(r.minHeight=`${i}px`),e.value.indexOf("width")!==-1&&l?r.width=`${l}px`:e.value.indexOf("minWidth")!==-1&&l&&(r.minWidth=`${l}px`)}return r}),n]};function U$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function Y$(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function kN(e,t,n,o){var r=ct.clone(e),l={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+l.width>n.right&&(l.width-=r.left+l.width-n.right),o.adjustX&&r.left+l.width>n.right&&(r.left=Math.max(n.right-l.width,n.left)),o.adjustY&&r.top=n.top&&r.top+l.height>n.bottom&&(l.height-=r.top+l.height-n.bottom),o.adjustY&&r.top+l.height>n.bottom&&(r.top=Math.max(n.bottom-l.height,n.top)),ct.mix(r,l)}function B0(e){var t,n,o;if(!ct.isWindow(e)&&e.nodeType!==9)t=ct.offset(e),n=ct.outerWidth(e),o=ct.outerHeight(e);else{var r=ct.getWindow(e);t={left:ct.getWindowScrollLeft(r),top:ct.getWindowScrollTop(r)},n=ct.viewportWidth(r),o=ct.viewportHeight(r)}return t.width=n,t.height=o,t}function oC(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,l=e.height,i=e.left,a=e.top;return n==="c"?a+=l/2:n==="b"&&(a+=l),o==="c"?i+=r/2:o==="r"&&(i+=r),{left:i,top:a}}function su(e,t,n,o,r){var l=oC(t,n[1]),i=oC(e,n[0]),a=[i.left-l.left,i.top-l.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function rC(e,t,n){return e.leftn.right}function lC(e,t,n){return e.topn.bottom}function zN(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function N0(e,t,n){var o=n.target||t,r=B0(o),l=!jN(o,n.overflow&&n.overflow.alwaysByViewport);return sI(e,r,n,l)}N0.__getOffsetParent=Ev;N0.__getVisibleRectForElement=D0;function WN(e,t,n){var o,r,l=ct.getDocument(e),i=l.defaultView||l.parentWindow,a=ct.getWindowScrollLeft(i),s=ct.getWindowScrollTop(i),c=ct.viewportWidth(i),u=ct.viewportHeight(i);"pageX"in t?o=t.pageX:o=a+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},f=o>=0&&o<=a+c&&r>=0&&r<=s+u,g=[n.points[0],"cc"];return sI(e,d,Y$(Y$({},n),{},{points:g}),f)}function dt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=_t(e)[0]),!r)return null;const l=sn(r,t,o);return l.props=n?m(m({},l.props),t):l.props,It(typeof l.props.class!="object"),l}function VN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>dt(o,t,n))}function Is(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>Is(r,t,n,o));{if(!Yt(e))return e;const r=dt(e,t,n,o);return Array.isArray(r.children)&&(r.children=Is(r.children)),r}}function KN(e,t,n){bl(sn(e,m({},t)),n)}const cI=e=>(e||[]).some(t=>Yt(t)?!(t.type===bn||t.type===We&&!cI(t.children)):!0)?e:null;function np(e,t,n,o){var r;const l=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return cI(l)?l:o==null?void 0:o()}const op=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function GN(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function XN(e,t){e!==document.activeElement&&rl(t,e)&&typeof e.focus=="function"&&e.focus()}function sC(e,t){let n=null,o=null;function r(i){let[{target:a}]=i;if(!document.documentElement.contains(a))return;const{width:s,height:c}=a.getBoundingClientRect(),u=Math.floor(s),d=Math.floor(c);(n!==u||o!==d)&&Promise.resolve().then(()=>{t({width:u,height:d})}),n=u,o=d}const l=new f0(r);return e&&l.observe(e),()=>{l.disconnect()}}const UN=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function l(i){if(!n||i===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,l()},t.value)}return[l,()=>{n=!1,r()}]};function YN(){this.__data__=[],this.size=0}function F0(e,t){return e===t||e!==e&&t!==t}function rp(e,t){for(var n=e.length;n--;)if(F0(e[n][0],t))return n;return-1}var qN=Array.prototype,ZN=qN.splice;function QN(e){var t=this.__data__,n=rp(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():ZN.call(t,n,1),--this.size,!0}function JN(e){var t=this.__data__,n=rp(t,e);return n<0?void 0:t[n][1]}function eF(e){return rp(this.__data__,e)>-1}function tF(e,t){var n=this.__data__,o=rp(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Lr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var c=l.get(e),u=l.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,g=n&aL?new Ia:void 0;for(l.set(e,t),l.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=zL}var HL="[object Arguments]",jL="[object Array]",WL="[object Boolean]",VL="[object Date]",KL="[object Error]",GL="[object Function]",XL="[object Map]",UL="[object Number]",YL="[object Object]",qL="[object RegExp]",ZL="[object Set]",QL="[object String]",JL="[object WeakMap]",ek="[object ArrayBuffer]",tk="[object DataView]",nk="[object Float32Array]",ok="[object Float64Array]",rk="[object Int8Array]",lk="[object Int16Array]",ik="[object Int32Array]",ak="[object Uint8Array]",sk="[object Uint8ClampedArray]",ck="[object Uint16Array]",uk="[object Uint32Array]",Ft={};Ft[nk]=Ft[ok]=Ft[rk]=Ft[lk]=Ft[ik]=Ft[ak]=Ft[sk]=Ft[ck]=Ft[uk]=!0;Ft[HL]=Ft[jL]=Ft[ek]=Ft[WL]=Ft[tk]=Ft[VL]=Ft[KL]=Ft[GL]=Ft[XL]=Ft[UL]=Ft[YL]=Ft[qL]=Ft[ZL]=Ft[QL]=Ft[JL]=!1;function dk(e){return jo(e)&&j0(e.length)&&!!Ft[xl(e)]}function ap(e){return function(t){return e(t)}}var bI=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ts=bI&&typeof module=="object"&&module&&!module.nodeType&&module,fk=Ts&&Ts.exports===bI,Gg=fk&&uI.process,pk=function(){try{var e=Ts&&Ts.require&&Ts.require("util").types;return e||Gg&&Gg.binding&&Gg.binding("util")}catch{}}();const Ta=pk;var vC=Ta&&Ta.isTypedArray,gk=vC?ap(vC):dk;const W0=gk;var hk=Object.prototype,vk=hk.hasOwnProperty;function yI(e,t){var n=so(e),o=!n&&ip(e),r=!n&&!o&&ac(e),l=!n&&!o&&!r&&W0(e),i=n||o||r||l,a=i?EL(e.length,String):[],s=a.length;for(var c in e)(t||vk.call(e,c))&&!(i&&(c=="length"||r&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||H0(c,s)))&&a.push(c);return a}var mk=Object.prototype;function sp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mk;return e===n}function SI(e,t){return function(n){return e(t(n))}}var bk=SI(Object.keys,Object);const yk=bk;var Sk=Object.prototype,$k=Sk.hasOwnProperty;function $I(e){if(!sp(e))return yk(e);var t=[];for(var n in Object(e))$k.call(e,n)&&n!="constructor"&&t.push(n);return t}function Da(e){return e!=null&&j0(e.length)&&!fI(e)}function Ba(e){return Da(e)?yI(e):$I(e)}function Mv(e){return gI(e,Ba,z0)}var Ck=1,xk=Object.prototype,wk=xk.hasOwnProperty;function Ok(e,t,n,o,r,l){var i=n&Ck,a=Mv(e),s=a.length,c=Mv(t),u=c.length;if(s!=u&&!i)return!1;for(var d=s;d--;){var f=a[d];if(!(i?f in t:wk.call(t,f)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var h=!0;l.set(e,t),l.set(t,e);for(var b=i;++d{const{disabled:f,target:g,align:v,onAlign:h}=e;if(!f&&g&&l.value){const b=l.value;let y;const S=OC(g),$=PC(g);r.value.element=S,r.value.point=$,r.value.align=v;const{activeElement:x}=document;return S&&op(S)?y=N0(b,S,v):$&&(y=WN(b,$,v)),XN(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=le({cancel:()=>{}}),c=le({cancel:()=>{}}),u=()=>{const f=e.target,g=OC(f),v=PC(f);l.value!==c.value.element&&(c.value.cancel(),c.value.element=l.value,c.value.cancel=sC(l.value,i)),(r.value.element!==g||!GN(r.value.point,v)||!V0(r.value.align,e.align))&&(i(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=sC(g,i)))};je(()=>{ot(()=>{u()})}),An(()=>{ot(()=>{u()})}),be(()=>e.disabled,f=>{f?a():i()},{immediate:!0,flush:"post"});const d=le(null);return be(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=Mt(window,"resize",i)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Rn(()=>{s.value.cancel(),c.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>i(!0)}),()=>{const f=o==null?void 0:o.default();return f?dt(f[0],{ref:l},!0,!0):null}}});Cn("bottomLeft","bottomRight","topLeft","topRight");const K0=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Po=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},up=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},_n=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Hk=oe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:M0,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=te(),i=te(),a=te(),[s,c]=vN(ze(e,"stretch")),u=()=>{e.stretch&&c(e.getRootDomNode())},d=te(!1);let f;be(()=>e.visible,O=>{clearTimeout(f),O?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,v]=hN(d,u),h=te(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=l.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var I;const T=e.getClassNameFromAlign(w),_=a.value;a.value!==T&&(a.value=T),g.value==="align"&&(_!==T?Promise.resolve().then(()=>{y()}):v(()=>{var E;(E=h.value)===null||E===void 0||E.call(h)}),(I=e.onAlign)===null||I===void 0||I.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:_0(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const I=O[w];O[w]=T=>{v(),g.value="stable",I==null||I(T)}}),O}),x=()=>new Promise(O=>{h.value=O});be([$,g],()=>{!$.value&&g.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>i.value.$el||i.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:I,prefixCls:T,destroyPopupOnHide:_,onMouseenter:E,onMouseleave:A,onTouchstart:R=()=>{},onMousedown:z}=e,M=g.value,B=[m(m({},s.value),{zIndex:w,opacity:M==="motion"||M==="stable"||!d.value?null:0,pointerEvents:!d.value&&M!=="stable"?"none":null}),o.style];let N=yt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));N.length>1&&(N=p("div",{class:`${T}-content`},[N]));const F=ie(T,o.class,a.value,!e.arrow&&`${T}-arrow-hidden`),k=d.value||!e.visible?Po($.value.name,$.value):{};return p(cn,D(D({ref:i},k),{},{onBeforeEnter:x}),{default:()=>!_||e.visible?$n(p(zk,{target:b(),key:"popup",ref:l,monitorWindowResize:!0,disabled:C.value,align:I,onAlign:S},{default:()=>p("div",{class:F,onMouseenter:E,onMouseleave:A,onMousedown:WS(z,["capture"]),[nn?"onTouchstartPassive":"onTouchstart"]:WS(R,["capture"]),style:B},[N])}),[[En,d.value]]):null})}}}),jk=oe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:fN,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1),i=te(!1),a=te(),s=te();return be([()=>e.visible,()=>e.mobile],()=>{l.value=e.visible,e.visible&&e.mobile&&(i.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var c;(c=a.value)===null||c===void 0||c.forceAlign()},getElement:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.getElement()}}),()=>{const c=m(m(m({},e),n),{visible:l.value}),u=i.value?p(pN,D(D({},c),{},{mobile:e.mobile,ref:a}),{default:o.default}):p(Hk,D(D({},c),{},{ref:a}),{default:o.default});return p("div",{ref:s},[p(eI,c,null),u])}}});function Wk(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function IC(e,t,n){const o=e[t]||{};return m(m({},o),n)}function Vk(e,t,n,o){const{points:r}=n,l=Object.keys(e);for(let i=0;i0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(WO(this),m(m({},this.$data),n));if(o===null)return;n=m(m({},n),o||{})}m(this.$data,n),this._.isMounted&&this.$forceUpdate(),ot(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Ge(CI,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:l}=e||{};let i=!1;return(n||o||r)&&(i=!0),!n&&l&&(i=!1),i})})},Kk=()=>{G0({},{inTriggerContext:!1});const e=He(CI,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},xI=oe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:V.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:l}=Kk();function i(){l.value&&(r=e.getContainer())}Ff(()=>{o=!1,i()}),je(()=>{r||i()});const a=be(l,()=>{l.value&&!r&&(r=e.getContainer()),r&&a()});return An(()=>{ot(()=>{var s;l.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return l.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?p(Jm,{to:r},n):null:null}}});let Xg;function zd(e){if(typeof document>"u")return 0;if(e||Xg===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let l=t.offsetWidth;r===l&&(l=n.clientWidth),document.body.removeChild(n),Xg=r-l}return Xg}function TC(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?zd():n}function Gk(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:TC(t),height:TC(n)}}const Xk=`vc-util-locker-${Date.now()}`;let EC=0;function Uk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function Yk(e){const t=P(()=>!!e&&!!e.value);EC+=1;const n=`${Xk}_${EC}`;ke(o=>{if(Mn()){if(t.value){const r=zd(),l=Uk();ec(` -html body { - overflow-y: hidden; - ${l?`width: calc(100% - ${r}px);`:""} -}`,n)}else Ad(n);o(()=>{Ad(n)})}},{flush:"post"})}let Dl=0;const ku=Mn(),MC=e=>{if(!ku)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ic=oe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:V.any,visible:{type:Boolean,default:void 0},autoLock:Ce(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=te(),r=te(),l=te(),i=te(1),a=Mn()&&document.createElement("div"),s=()=>{var g,v;o.value===a&&((v=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||v===void 0||v.removeChild(o.value)),o.value=null};let c=null;const u=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(c=MC(e.getContainer),c?(c.appendChild(o.value),!0):!1):!0},d=()=>ku?(o.value||(o.value=a,u(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return An(()=>{f(),u()}),Yk(P(()=>e.autoLock&&e.visible&&Mn()&&(o.value===document.body||o.value===a))),je(()=>{let g=!1;be([()=>e.visible,()=>e.getContainer],(v,h)=>{let[b,y]=v,[S,$]=h;ku&&(c=MC(e.getContainer),c===document.body&&(b&&!S?Dl+=1:g&&(Dl-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),ot(()=>{u()||(l.value=Ye(()=>{i.value+=1}))})}),Ze(()=>{const{visible:g}=e;ku&&c===document.body&&(Dl=g&&Dl?Dl-1:Dl),s(),Ye.cancel(l.value)}),()=>{const{forceRender:g,visible:v}=e;let h=null;const b={getOpenCount:()=>Dl,getContainer:d};return i.value&&(g||v||r.value)&&(h=p(xI,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),qk=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],wi=oe({compatConfig:{MODE:3},name:"Trigger",mixins:[xi],inheritAttrs:!1,props:JP(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:l,builtinPlacements:i}=e;return r&&i?IC(i,r,l):l}),n=te(null),o=r=>{n.value=r};return{vcTriggerContext:He("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:te(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,qk.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Ge("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),G0(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ye.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Mt(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Mt(n,"touchstart",this.onDocumentClick,nn?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Mt(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Mt(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&rl((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){rl(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!rl(n,t)||this.isContextMenuOnly())&&!rl(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const l=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Hn(this.triggerRef);return Hn(r(l))}try{const l=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Hn(this.triggerRef);if(l)return l}catch{}return Hn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:l,alignPoint:i,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(Vk(r,l,e,i)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?IC(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[nn?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:l,popupClassName:i,popupAnimation:a,popupTransitionName:s,popupStyle:c,mask:u,maskAnimation:d,maskTransitionName:f,zIndex:g,stretch:v,alignPoint:h,mobile:b,arrow:y,forceRender:S}=this.$props,{sPopupVisible:$,point:x}=this.$data,C=m(m({prefixCls:r,arrow:y,destroyPopupOnHide:l,visible:$,point:h?x:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:u,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:f,class:i,style:c,onAlign:o.onPopupAlign||QP},e),{ref:this.setPopupRef,mobile:b,forceRender:S});return p(jk,C,{default:this.$slots.popup||(()=>VO(this,"popup"))})},attachParent(e){Ye.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=Ye(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(xr(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=g$(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=_t(Gf(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=g$(r);const l={key:"trigger"};this.isContextmenuToShow()?l.onContextmenu=this.onContextmenu:l.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(l.onClick=this.onClick,l.onMousedown=this.onMousedown,l[nn?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(l.onClick=this.createTwoChains("onClick"),l.onMousedown=this.createTwoChains("onMousedown"),l[nn?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(l.onMouseenter=this.onMouseenter,n&&(l.onMousemove=this.onMouseMove)):l.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?l.onMouseleave=this.onMouseleave:l.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(l.onFocus=this.onFocus,l.onBlur=this.onBlur):(l.onFocus=this.createTwoChains("onFocus"),l.onBlur=c=>{c&&(!c.relatedTarget||!rl(c.target,c.relatedTarget))&&this.createTwoChains("onBlur")(c)});const i=ie(r&&r.props&&r.props.class,e.class);i&&(l.class=i);const a=dt(r,m(m({},l),{ref:"triggerRef"}),!0,!0),s=p(Ic,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p(We,null,[a,s])}});var Zk=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},Jk=oe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:V.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:V.oneOfType([Number,Boolean]).def(!0),popupElement:V.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=P(()=>{const{dropdownMatchSelectWidth:a}=e;return Qk(a)}),i=le();return r({getPopupElement:()=>i.value}),()=>{const a=m(m({},e),o),{empty:s=!1}=a,c=Zk(a,["empty"]),{visible:u,dropdownAlign:d,prefixCls:f,popupElement:g,dropdownClassName:v,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:I,onPopupVisibleChange:T,onPopupMouseEnter:_,onPopupFocusin:E,onPopupFocusout:A}=c,R=`${f}-dropdown`;let z=g;x&&(z=x({menuNode:g,props:e}));const M=C?`${R}-${C}`:O,B=m({minWidth:`${$}px`},h);return typeof S=="number"?B.width=`${S}px`:S&&(B.width=`${$}px`),p(wi,D(D({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:l.value,prefixCls:R,popupTransitionName:M,popupAlign:d,popupVisible:u,getPopupContainer:w,popupClassName:ie(v,{[`${R}-empty`]:s}),popupStyle:B,getTriggerDOMNode:I,onPopupVisibleChange:T}),{default:n.default,popup:()=>p("div",{ref:i,onMouseenter:_,onFocusin:E,onFocusout:A},[z])})}}}),ez=Jk,rt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=rt.F1&&n<=rt.F12)return!1;switch(n){case rt.ALT:case rt.CAPS_LOCK:case rt.CONTEXT_MENU:case rt.CTRL:case rt.DOWN:case rt.END:case rt.ESC:case rt.HOME:case rt.INSERT:case rt.LEFT:case rt.MAC_FF_META:case rt.META:case rt.NUMLOCK:case rt.NUM_CENTER:case rt.PAGE_DOWN:case rt.PAGE_UP:case rt.PAUSE:case rt.PRINT_SCREEN:case rt.RIGHT:case rt.SHIFT:case rt.UP:case rt.WIN_KEY:case rt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=rt.ZERO&&t<=rt.NINE||t>=rt.NUM_ZERO&&t<=rt.NUM_MULTIPLY||t>=rt.A&&t<=rt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case rt.SPACE:case rt.QUESTION_MARK:case rt.NUM_PLUS:case rt.NUM_MINUS:case rt.NUM_PERIOD:case rt.NUM_DIVISION:case rt.SEMICOLON:case rt.DASH:case rt.EQUALS:case rt.COMMA:case rt.PERIOD:case rt.SLASH:case rt.APOSTROPHE:case rt.SINGLE_QUOTE:case rt.OPEN_SQUARE_BRACKET:case rt.BACKSLASH:case rt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Oe=rt,dp=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:l,customizeIconProps:i,onMousedown:a,onClick:s}=e;let c;return typeof l=="function"?c=l(i):c=Yt(l)?sn(l):l,p("span",{class:r,onMousedown:u=>{u.preventDefault(),a&&a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[c!==void 0?c:p("span",{class:r.split(/\s+/).map(u=>`${u}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};dp.inheritAttrs=!1;dp.displayName="TransBtn";dp.props={class:String,customizeIcon:V.any,customizeIconProps:V.any,onMousedown:Function,onClick:Function};const Hd=dp;var tz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(s,c,u)=>{var d;(d=o.value)===null||d===void 0||d.setSelectionRange(s,c,u)},select:()=>{var s;(s=o.value)===null||s===void 0||s.select()},getSelectionStart:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionStart},getSelectionEnd:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionEnd},getScrollTop:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.scrollTop}}),()=>{const{tag:s,value:c}=e,u=tz(e,["tag","value"]);return p(s,D(D({},u),{},{ref:o,value:c}),null)}}}),oz=nz;function rz(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function jd(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function lz(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function iz(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o>"u"||o===null||(t+=`${n}: ${e[n]};`),t},"")}var az=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,a],()=>{a.value||(i.value=e.value)},{immediate:!0});const s=w=>{n("change",w)},c=w=>{a.value=!0,w.target.composing=!0,n("compositionstart",w)},u=w=>{a.value=!1,w.target.composing=!1,n("compositionend",w);const I=document.createEvent("HTMLEvents");I.initEvent("input",!0,!0),w.target.dispatchEvent(I),s(w)},d=w=>{if(a.value&&e.lazy){i.value=w.target.value;return}n("input",w)},f=w=>{n("blur",w)},g=w=>{n("focus",w)},v=()=>{l.value&&l.value.focus()},h=()=>{l.value&&l.value.blur()},b=w=>{n("keydown",w)},y=w=>{n("keyup",w)},S=(w,I,T)=>{var _;(_=l.value)===null||_===void 0||_.setSelectionRange(w,I,T)},$=()=>{var w;(w=l.value)===null||w===void 0||w.select()};r({focus:v,blur:h,input:P(()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.input}),setSelectionRange:S,select:$,getSelectionStart:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=l.value)===null||w===void 0?void 0:w.getScrollTop()}});const x=w=>{n("mousedown",w)},C=w=>{n("paste",w)},O=P(()=>e.style&&typeof e.style!="string"?iz(e.style):e.style);return()=>{const w=az(e,["style","lazy"]);return p(oz,D(D(D({},w),o),{},{style:O.value,onInput:d,onChange:s,onBlur:f,onFocus:g,ref:l,value:i.value,onCompositionstart:c,onCompositionend:u,onKeyup:y,onKeydown:b,onPaste:C,onMousedown:x}),null)}}}),Na=sz,cz={inputRef:V.any,prefixCls:String,id:String,inputElement:V.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),attrs:V.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},uz=oe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:cz,setup(e){let t=null;const n=He("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:l,inputElement:i,disabled:a,tabindex:s,autofocus:c,autocomplete:u,editable:d,activeDescendantId:f,value:g,onKeydown:v,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:I}=e;let T=i||p(Na,null,null);const _=T.props||{},{onKeydown:E,onInput:A,onFocus:R,onBlur:z,onMousedown:M,onCompositionstart:B,onCompositionend:N,style:F}=_;return T=dt(T,m(m(m(m(m({type:"search"},_),{id:l,ref:w,disabled:a,tabindex:s,lazy:!1,autocomplete:u||"off",autofocus:c,class:ie(`${r}-selection-search-input`,(o=T==null?void 0:T.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${l}_list`,"aria-autocomplete":"list","aria-controls":`${l}_list`,"aria-activedescendant":f}),I),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:m(m({},F),{opacity:d?null:0}),onKeydown:L=>{v(L),E&&E(L)},onMousedown:L=>{h(L),M&&M(L)},onInput:L=>{b(L),A&&A(L)},onCompositionstart(L){S(L),B&&B(L)},onCompositionend(L){$(L),N&&N(L)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var L=arguments.length,k=new Array(L),j=0;j{z&&z(k[0]),C&&C(k[0]),n==null||n.blur(k[0])},100)}}),T.type==="textarea"?{}:{type:"search"}),!0,!0),T}}}),wI=uz,dz=`accept acceptcharset accesskey action allowfullscreen allowtransparency -alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge -charset checked classid classname colspan cols content contenteditable contextmenu -controls coords crossorigin data datetime default defer dir disabled download draggable -enctype form formaction formenctype formmethod formnovalidate formtarget frameborder -headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity -is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media -mediagroup method min minlength multiple muted name novalidate nonce open -optimum pattern placeholder poster preload radiogroup readonly rel required -reversed role rowspan rows sandbox scope scoped scrolling seamless selected -shape size sizes span spellcheck src srcdoc srclang srcset start step style -summary tabindex target title type usemap value width wmode wrap`,fz=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown - onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick - onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown - onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel - onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough - onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata - onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,_C=`${dz} ${fz}`.split(/[\s\n]+/),pz="aria-",gz="data-";function AC(e,t){return e.indexOf(t)===0}function wl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=m({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||AC(r,pz))||n.data&&AC(r,gz)||n.attr&&(_C.includes(r)||_C.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const OI=Symbol("OverflowContextProviderKey"),Dv=oe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(OI,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),hz=()=>He(OI,P(()=>null));var vz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),l=le();o({itemNodeRef:l});function i(a){e.registerSize(e.itemKey,a)}return Rn(()=>{i(null)}),()=>{var a;const{prefixCls:s,invalidate:c,item:u,renderItem:d,responsive:f,registerSize:g,itemKey:v,display:h,order:b,component:y="div"}=e,S=vz(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(a=n.default)===null||a===void 0?void 0:a.call(n),x=d&&u!==Ri?d(u):$;let C;c||(C={opacity:r.value?0:1,height:r.value?0:Ri,overflowY:r.value?"hidden":Ri,order:f?b:Ri,pointerEvents:r.value?"none":Ri,position:r.value?"absolute":Ri});const O={};return r.value&&(O["aria-hidden"]=!0),p(xo,{disabled:!f,onResize:w=>{let{offsetWidth:I}=w;i(I)}},{default:()=>p(y,D(D(D({class:ie(!c&&s),style:C},O),S),{},{ref:l}),{default:()=>[x]})})}}});var Ug=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;if(!r.value){const{component:d="div"}=e,f=Ug(e,["component"]);return p(d,D(D({},f),o),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}const i=r.value,{className:a}=i,s=Ug(i,["className"]),{class:c}=o,u=Ug(o,["class"]);return p(Dv,{value:null},{default:()=>[p(zu,D(D(D({class:ie(a,c)},s),u),e),n)]})}}});var bz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:V.any,component:String,itemComponent:V.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),fp=oe({name:"Overflow",inheritAttrs:!1,props:Sz(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const l=P(()=>e.ssr==="full"),i=te(null),a=P(()=>i.value||0),s=te(new Map),c=te(0),u=te(0),d=te(0),f=te(null),g=te(null),v=P(()=>g.value===null&&l.value?Number.MAX_SAFE_INTEGER:g.value||0),h=te(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(c.value,u.value)),S=P(()=>!!(e.data.length&&e.maxCount===PI)),$=P(()=>e.maxCount===II),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let M=e.data;return S.value?i.value===null&&l.value?M=e.data:M=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&(M=e.data.slice(0,e.maxCount)),M}),O=P(()=>S.value?e.data.slice(v.value+1):e.data.slice(C.value.length)),w=(M,B)=>{var N;return typeof e.itemKey=="function"?e.itemKey(M):(N=e.itemKey&&(M==null?void 0:M[e.itemKey]))!==null&&N!==void 0?N:B},I=P(()=>e.renderItem||(M=>M)),T=(M,B)=>{g.value=M,B||(h.value=M{i.value=B.clientWidth},E=(M,B)=>{const N=new Map(s.value);B===null?N.delete(M):N.set(M,B),s.value=N},A=(M,B)=>{c.value=u.value,u.value=B},R=(M,B)=>{d.value=B},z=M=>s.value.get(w(C.value[M],M));return be([a,s,u,d,()=>e.itemKey,C],()=>{if(a.value&&y.value&&C.value){let M=d.value;const B=C.value.length,N=B-1;if(!B){T(0),f.value=null;return}for(let F=0;Fa.value){T(F-1),f.value=M-L-d.value+u.value;break}}e.suffix&&z(0)+d.value>a.value&&(f.value=null)}}),()=>{const M=h.value&&!!O.value.length,{itemComponent:B,renderRawItem:N,renderRawRest:F,renderRest:L,prefixCls:k="rc-overflow",suffix:j,component:H="div",id:Y,onMousedown:Z}=e,{class:U,style:ee}=n,G=bz(n,["class","style"]);let J={};f.value!==null&&S.value&&(J={position:"absolute",left:`${f.value}px`,top:0});const Q={prefixCls:b.value,responsive:S.value,component:B,invalidate:$.value},K=N?(X,ne)=>{const ae=w(X,ne);return p(Dv,{key:ae,value:m(m({},Q),{order:ne,item:X,itemKey:ae,registerSize:E,display:ne<=v.value})},{default:()=>[N(X,ne)]})}:(X,ne)=>{const ae=w(X,ne);return p(zu,D(D({},Q),{},{order:ne,key:ae,item:X,renderItem:I.value,itemKey:ae,registerSize:E,display:ne<=v.value}),null)};let q=()=>null;const pe={order:M?v.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:A,display:M};if(F)F&&(q=()=>p(Dv,{value:m(m({},Q),pe)},{default:()=>[F(O.value)]}));else{const X=L||yz;q=()=>p(zu,D(D({},Q),pe),{default:()=>typeof X=="function"?X(O.value):X})}const W=()=>{var X;return p(H,D({id:Y,class:ie(!$.value&&k,U),style:ee,onMousedown:Z,role:e.role},G),{default:()=>[C.value.map(K),x.value?q():null,j&&p(zu,D(D({},Q),{},{order:v.value,class:`${b.value}-suffix`,registerSize:R,display:!0,style:J}),{default:()=>j}),(X=r.default)===null||X===void 0?void 0:X.call(r)]})};return p(xo,{disabled:!S.value,onResize:_},{default:W})}}});fp.Item=mz;fp.RESPONSIVE=PI;fp.INVALIDATE=II;const sa=fp,TI=Symbol("TreeSelectLegacyContextPropsKey");function $z(e){return Ge(TI,e)}function pp(){return He(TI,{})}const Cz={id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),compositionStatus:Boolean,removeIcon:V.any,choiceTransitionName:String,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},RC=e=>{e.preventDefault(),e.stopPropagation()},xz=oe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Cz,setup(e){const t=te(),n=te(0),o=te(!1),r=pp(),l=P(()=>`${e.prefixCls}-selection`),i=P(()=>e.open||e.mode==="tags"?e.searchValue:""),a=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),s=le("");ke(()=>{s.value=i.value}),je(()=>{be(s,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function c(v,h,b,y,S){return p("span",{class:ie(`${l.value}-item`,{[`${l.value}-item-disabled`]:b}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[p("span",{class:`${l.value}-item-content`},[h]),y&&p(Hd,{class:`${l.value}-item-remove`,onMousedown:RC,onClick:S,customizeIcon:e.removeIcon},{default:()=>[Lt("×")]})])}function u(v,h,b,y,S,$){var x;const C=w=>{RC(w),e.onToggleOpen(!open)};let O=$;return r.keyEntities&&(O=((x=r.keyEntities[v])===null||x===void 0?void 0:x.node)||{}),p("span",{key:v,onMousedown:C},[e.tagRender({label:h,value:v,disabled:b,closable:y,onClose:S,option:O})])}function d(v){const{disabled:h,label:b,value:y,option:S}=v,$=!e.disabled&&!h;let x=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const O=String(x);O.length>e.maxTagTextLength&&(x=`${O.slice(0,e.maxTagTextLength)}...`)}const C=O=>{var w;O&&O.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,v)};return typeof e.tagRender=="function"?u(y,x,h,$,C,S):c(b,x,h,$,C)}function f(v){const{maxTagPlaceholder:h=y=>`+ ${y.length} ...`}=e,b=typeof h=="function"?h(v):h;return c(b,b,!1)}const g=v=>{const h=v.target.composing;s.value=v.target.value,h||e.onInputChange(v)};return()=>{const{id:v,prefixCls:h,values:b,open:y,inputRef:S,placeholder:$,disabled:x,autofocus:C,autocomplete:O,activeDescendantId:w,tabindex:I,compositionStatus:T,onInputPaste:_,onInputKeyDown:E,onInputMouseDown:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=p("div",{class:`${l.value}-search`,style:{width:n.value+"px"},key:"input"},[p(wI,{inputRef:S,open:y,prefixCls:h,id:v,inputElement:null,disabled:x,autofocus:C,autocomplete:O,editable:a.value,activeDescendantId:w,value:s.value,onKeydown:E,onMousedown:A,onChange:g,onPaste:_,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),p("span",{ref:t,class:`${l.value}-search-mirror`,"aria-hidden":!0},[s.value,Lt(" ")])]),B=p(sa,{prefixCls:`${l.value}-overflow`,data:b,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return p(We,null,[B,!b.length&&!i.value&&!T&&p("span",{class:`${l.value}-placeholder`},[$])])}}}),wz=xz,Oz={inputElement:V.any,id:String,prefixCls:String,values:V.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:V.any,placeholder:V.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},X0=oe({name:"SingleSelector",setup(e){const t=te(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),l=pp();be([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value||e.compositionStatus),a=P(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=i.value?{visibility:"hidden"}:void 0;return p("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])},c=u=>{u.target.composing||(t.value=!0,e.onInputChange(u))};return()=>{var u,d,f,g;const{inputElement:v,prefixCls:h,id:b,values:y,inputRef:S,disabled:$,autofocus:x,autocomplete:C,activeDescendantId:O,open:w,tabindex:I,optionLabelRender:T,onInputKeyDown:_,onInputMouseDown:E,onInputPaste:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=y[0];let B=null;if(M&&l.customSlots){const N=(u=M.key)!==null&&u!==void 0?u:M.value,F=((d=l.keyEntities[N])===null||d===void 0?void 0:d.node)||{};B=l.customSlots[(f=F.slots)===null||f===void 0?void 0:f.title]||l.customSlots.title||M.label,typeof B=="function"&&(B=B(F))}else B=T&&M?T(M.option):M==null?void 0:M.label;return p(We,null,[p("span",{class:`${h}-selection-search`},[p(wI,{inputRef:S,prefixCls:h,id:b,open:w,inputElement:v,disabled:$,autofocus:x,autocomplete:C,editable:o.value,activeDescendantId:O,value:r.value,onKeydown:_,onMousedown:E,onChange:c,onPaste:A,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:wl(e,!0)},null)]),!n.value&&M&&!i.value&&p("span",{class:`${h}-selection-item`,title:a.value},[p(We,{key:(g=M.key)!==null&&g!==void 0?g:M.value},[B])]),s()])}}});X0.props=Oz;X0.inheritAttrs=!1;const Pz=X0;function Iz(e){return![Oe.ESC,Oe.SHIFT,Oe.BACKSPACE,Oe.TAB,Oe.WIN_KEY,Oe.ALT,Oe.META,Oe.WIN_KEY_RIGHT,Oe.CTRL,Oe.SEMICOLON,Oe.EQUALS,Oe.CAPS_LOCK,Oe.CONTEXT_MENU,Oe.F1,Oe.F2,Oe.F3,Oe.F4,Oe.F5,Oe.F6,Oe.F7,Oe.F8,Oe.F9,Oe.F10,Oe.F11,Oe.F12].includes(e)}function EI(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Ze(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function sc(){const e=t=>{e.current=t};return e}const Tz=oe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:V.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:V.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:V.oneOfType([V.number,V.string]),disabled:{type:Boolean,default:void 0},placeholder:V.any,removeIcon:V.any,maxTagCount:V.oneOfType([V.number,V.string]),maxTagTextLength:Number,maxTagPlaceholder:V.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=sc(),r=le(!1),[l,i]=EI(0),a=y=>{const{which:S}=y;(S===Oe.UP||S===Oe.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===Oe.ENTER&&e.mode==="tags"&&!r.value&&!e.open&&e.onSearchSubmit(y.target.value),Iz(S)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let c=null;const u=y=>{e.onSearch(y,!0,r.value)!==!1&&e.onToggleOpen(!0)},d=()=>{r.value=!0},f=y=>{r.value=!1,e.mode!=="combobox"&&u(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&c&&/[\r\n]/.test(c)){const $=c.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,c)}c=null,u(S)},v=y=>{const{clipboardData:S}=y;c=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=l();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:g,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:f},C=$==="multiple"||$==="tags"?p(wz,D(D({},e),x),null):p(Pz,D(D({},e),x),null);return p("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}}),Ez=Tz;function Mz(e,t,n){function o(r){var l,i,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const c=[(l=e[0])===null||l===void 0?void 0:l.value,(a=(i=e[1])===null||i===void 0?void 0:i.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&c.every(u=>u&&!u.contains(s)&&u!==s)&&n(!1)}je(()=>{window.addEventListener("mousedown",o)}),Ze(()=>{window.removeEventListener("mousedown",o)})}function _z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=te(!1);let n;const o=()=>{clearTimeout(n)};return je(()=>{o()}),[t,(l,i)=>{o(),n=setTimeout(()=>{t.value=l,i&&i()},e)},o]}const MI=Symbol("BaseSelectContextKey");function Az(e){return Ge(MI,e)}function Tc(){return He(MI,{})}const U0=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substring(0,4))};function Wd(e){if(!kt(e))return ut(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ut(t)}var Rz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:V.any,emptyOptions:Boolean}),gp=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:V.any,placeholder:V.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:V.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:V.any,clearIcon:V.any,removeIcon:V.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Nz=()=>m(m({},Bz()),gp());function _I(e){return e==="tags"||e==="multiple"}const Y0=oe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:qe(Nz(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=P(()=>_I(e.mode)),i=P(()=>e.showSearch!==void 0?e.showSearch:l.value||e.mode==="combobox"),a=te(!1);je(()=>{a.value=U0()});const s=pp(),c=te(null),u=sc(),d=te(null),f=te(null),g=te(null),v=le(!1),[h,b,y]=_z();o({focus:()=>{var K;(K=f.value)===null||K===void 0||K.focus()},blur:()=>{var K;(K=f.value)===null||K===void 0||K.blur()},scrollTo:K=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(K)}});const x=P(()=>{var K;if(e.mode!=="combobox")return e.searchValue;const q=(K=e.displayValues[0])===null||K===void 0?void 0:K.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=te(C),w=te(C),I=K=>{O.value=e.open!==void 0?e.open:K,w.value=O.value};be(()=>e.open,()=>{I(e.open)});const T=P(()=>!e.notFoundContent&&e.emptyOptions);ke(()=>{w.value=O.value,(e.disabled||T.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const _=P(()=>T.value?!1:w.value),E=K=>{const q=K!==void 0?K:!w.value;w.value!==q&&!e.disabled&&(I(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q),!q&&H.value&&(H.value=!1,b(!1,()=>{k.value=!1,v.value=!1})))},A=P(()=>(e.tokenSeparators||[]).some(K=>[` -`,`\r -`].includes(K))),R=(K,q,pe)=>{var W,X;let ne=!0,ae=K;(W=e.onActiveValueChange)===null||W===void 0||W.call(e,null);const se=pe?null:sN(K,e.tokenSeparators);return e.mode!=="combobox"&&se&&(ae="",(X=e.onSearchSplit)===null||X===void 0||X.call(e,se),E(!1),ne=!1),e.onSearch&&x.value!==ae&&e.onSearch(ae,{source:q?"typing":"effect"}),ne},z=K=>{var q;!K||!K.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,K,{source:"submit"})};be(w,()=>{!w.value&&!l.value&&e.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),be(()=>e.disabled,()=>{O.value&&e.disabled&&I(!1),e.disabled&&!v.value&&b(!1)},{immediate:!0});const[M,B]=EI(),N=function(K){var q;const pe=M(),{which:W}=K;if(W===Oe.ENTER&&(e.mode!=="combobox"&&K.preventDefault(),w.value||E(!0)),B(!!x.value),W===Oe.BACKSPACE&&!pe&&l.value&&!x.value&&e.displayValues.length){const se=[...e.displayValues];let re=null;for(let de=se.length-1;de>=0;de-=1){const ge=se[de];if(!ge.disabled){se.splice(de,1),re=ge;break}}re&&e.onDisplayValuesChange(se,{type:"remove",values:[re]})}for(var X=arguments.length,ne=new Array(X>1?X-1:0),ae=1;ae1?q-1:0),W=1;W{const q=e.displayValues.filter(pe=>pe!==K);e.onDisplayValuesChange(q,{type:"remove",values:[K]})},k=te(!1),j=function(){b(!0),e.disabled||(e.onFocus&&!k.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&E(!0)),k.value=!0},H=le(!1),Y=function(){if(H.value||(v.value=!0,b(!1,()=>{k.value=!1,v.value=!1,E(!1)}),e.disabled))return;const K=x.value;K&&(e.mode==="tags"?e.onSearch(K,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},Z=()=>{H.value=!0},U=()=>{H.value=!1};Ge("VCSelectContainerEvent",{focus:j,blur:Y});const ee=[];je(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)}),Ze(()=>{ee.forEach(K=>clearTimeout(K)),ee.splice(0,ee.length)});const G=function(K){var q,pe;const{target:W}=K,X=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(X&&X.contains(W)){const re=setTimeout(()=>{var de;const ge=ee.indexOf(re);ge!==-1&&ee.splice(ge,1),y(),!a.value&&!X.contains(document.activeElement)&&((de=f.value)===null||de===void 0||de.focus())});ee.push(re)}for(var ne=arguments.length,ae=new Array(ne>1?ne-1:0),se=1;se{};return je(()=>{be(_,()=>{var K;if(_.value){const q=Math.ceil((K=c.value)===null||K===void 0?void 0:K.offsetWidth);J.value!==q&&!Number.isNaN(q)&&(J.value=q)}},{immediate:!0,flush:"post"})}),Mz([c,d],_,E),Az(Wd(m(m({},No(e)),{open:w,triggerOpen:_,showSearch:i,multiple:l,toggleOpen:E}))),()=>{const K=m(m({},e),n),{prefixCls:q,id:pe,open:W,defaultOpen:X,mode:ne,showSearch:ae,searchValue:se,onSearch:re,allowClear:de,clearIcon:ge,showArrow:me,inputIcon:fe,disabled:ye,loading:Se,getInputElement:ue,getPopupContainer:ce,placement:he,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,showAction:Ne,direction:_e,tokenSeparators:De,tagRender:Je,optionLabelRender:ft,onPopupScroll:it,onDropdownVisibleChange:pt,onFocus:ht,onBlur:Ut,onKeyup:Jt,onKeydown:rn,onMousedown:jt,onClear:xn,omitDomProps:Wn,getRawInputElement:uo,displayValues:To,onDisplayValuesChange:Vn,emptyOptions:El,activeDescendantId:Ee,activeValue:Ue,OptionList:Ke}=K,Ct=Rz(K,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),en=ne==="combobox"&&ue&&ue()||null,Wt=typeof uo=="function"&&uo(),Kn=m({},Ct);let gn;Wt&&(gn=Mo=>{E(Mo)}),Dz.forEach(Mo=>{delete Kn[Mo]}),Wn==null||Wn.forEach(Mo=>{delete Kn[Mo]});const Go=me!==void 0?me:Se||!l.value&&ne!=="combobox";let Jn;Go&&(Jn=p(Hd,{class:ie(`${q}-arrow`,{[`${q}-arrow-loading`]:Se}),customizeIcon:fe,customizeIconProps:{loading:Se,searchValue:x.value,open:w.value,focused:h.value,showSearch:i.value}},null));let fo;const At=()=>{xn==null||xn(),Vn([],{type:"clear",values:To}),R("",!1,!1)};!ye&&de&&(To.length||x.value)&&(fo=p(Hd,{class:`${q}-clear`,onMousedown:At,customizeIcon:ge},{default:()=>[Lt("×")]}));const Eo=p(Ke,{ref:g},m(m({},s.customSlots),{option:r.option})),po=ie(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:l.value,[`${q}-single`]:!l.value,[`${q}-allow-clear`]:de,[`${q}-show-arrow`]:Go,[`${q}-disabled`]:ye,[`${q}-loading`]:Se,[`${q}-open`]:w.value,[`${q}-customize-input`]:en,[`${q}-show-search`]:i.value}),Wr=p(ez,{ref:d,disabled:ye,prefixCls:q,visible:_.value,popupElement:Eo,containerWidth:J.value,animation:Pe,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:$e,direction:_e,dropdownMatchSelectWidth:xe,dropdownRender:we,dropdownAlign:Me,placement:he,getPopupContainer:ce,empty:El,getTriggerDOMNode:()=>u.current,onPopupVisibleChange:gn,onPopupMouseEnter:Q,onPopupFocusin:Z,onPopupFocusout:U},{default:()=>Wt?Kt(Wt)&&dt(Wt,{ref:u},!1,!0):p(Ez,D(D({},e),{},{domRef:u,prefixCls:q,inputElement:en,ref:f,id:pe,showSearch:i.value,mode:ne,activeDescendantId:Ee,tagRender:Je,optionLabelRender:ft,values:To,open:w.value,onToggleOpen:E,activeValue:Ue,searchValue:x.value,onSearch:R,onSearchSubmit:z,onRemove:L,tokenWithEnter:A.value}),null)});let Vr;return Wt?Vr=Wr:Vr=p("div",D(D({},Kn),{},{class:po,ref:c,onMousedown:G,onKeydown:N,onKeyup:F}),[h.value&&!w.value&&p("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${To.map(Mo=>{let{label:Ei,value:_o}=Mo;return["number","string"].includes(typeof Ei)?Ei:_o}).join(", ")}`]),Wr,Jn,fo]),Vr}}}),hp=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:l}=e,{slots:i}=t;var a;let s={},c={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},c=m(m({},c),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),p("div",{style:s},[p(xo,{onResize:u=>{let{offsetHeight:d}=u;d&&l&&l()}},{default:()=>[p("div",{style:c,class:ie({[`${r}-holder-inner`]:r})},[(a=i.default)===null||a===void 0?void 0:a.call(i)])]})])};hp.displayName="Filter";hp.inheritAttrs=!1;hp.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Fz=hp,AI=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const l=yt((r=o.default)===null||r===void 0?void 0:r.call(o));return l&&l.length?sn(l[0],{ref:n}):l};AI.props={setRef:{type:Function,default:()=>{}}};const Lz=AI,kz=20;function DC(e){return"touches"in e?e.touches[0].pageY:e.pageY}const zz=oe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:sc(),thumbRef:sc(),visibleTimeout:null,state:ut({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,nn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,nn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Ye.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;m(this.state,{dragging:!0,pageY:DC(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(Ye.cancel(this.moveRaf),t){const l=DC(e)-n,i=o+l,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),c=s?i/s:0,u=Math.ceil(c*a);this.moveRaf=Ye(()=>{r(u)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,kz),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",l=this.showScroll(),i=l&&t;return p("div",{ref:this.scrollbarRef,class:ie(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:l}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p("div",{ref:this.thumbRef,class:ie(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function Hz(e,t,n,o){const r=new Map,l=new Map,i=le(Symbol("update"));be(e,()=>{i.value=Symbol("update")});let a;function s(){Ye.cancel(a)}function c(){s(),a=Ye(()=>{r.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;l.get(f)!==g&&(i.value=Symbol("update"),l.set(f,d.offsetHeight))}})})}function u(d,f){const g=t(d),v=r.get(g);f?(r.set(g,f.$el||f),c()):r.delete(g),!v!=!f&&(f?n==null||n(d):o==null||o(d))}return Rn(()=>{s()}),[u,c,l,i]}function jz(e,t,n,o,r,l,i,a){let s;return c=>{if(c==null){a();return}Ye.cancel(s);const u=t.value,d=o.itemHeight;if(typeof c=="number")i(c);else if(c&&typeof c=="object"){let f;const{align:g}=c;"index"in c?{index:f}=c:f=u.findIndex(b=>r(b)===c.key);const{offset:v=0}=c,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,I=0;const T=Math.min(u.length,f);for(let A=0;A<=T;A+=1){const R=r(u[A]);w=O;const z=n.get(R);I=w+(z===void 0?d:z),O=I,A===f&&z===void 0&&($=!0)}const _=e.value.scrollTop;let E=null;switch(C){case"top":E=w-v;break;case"bottom":E=I-S+v;break;default:{const A=_+S;w<_?x="top":I>A&&(x="bottom")}}E!==null&&E!==_&&i(E)}s=Ye(()=>{$&&l(),h(b-1,x)},2)};h(5)}}}const Wz=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Vz=Wz,RI=(e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(l){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=l<0&&e.value||l>0&&t.value;return i&&a?(clearTimeout(o),n=!1):(!a||n)&&r(),!n&&a}};function Kz(e,t,n,o){let r=0,l=null,i=null,a=!1;const s=RI(t,n);function c(d){if(!e.value)return;Ye.cancel(l);const{deltaY:f}=d;r+=f,i=f,!s(f)&&(Vz||d.preventDefault(),l=Ye(()=>{o(r*(a?10:1)),r=0}))}function u(d){e.value&&(a=d.detail===i)}return[c,u]}const Gz=14/15;function Xz(e,t,n){let o=!1,r=0,l=null,i=null;const a=()=>{l&&(l.removeEventListener("touchmove",s),l.removeEventListener("touchend",c))},s=f=>{if(o){const g=Math.ceil(f.touches[0].pageY);let v=r-g;r=g,n(v)&&f.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=Gz,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},c=()=>{o=!1,a()},u=f=>{a(),f.touches.length===1&&!o&&(o=!0,r=Math.ceil(f.touches[0].pageY),l=f.target,l.addEventListener("touchmove",s,{passive:!1}),l.addEventListener("touchend",c))},d=()=>{};je(()=>{document.addEventListener("touchmove",d,{passive:!1}),be(e,f=>{t.value.removeEventListener("touchstart",u),a(),clearInterval(i),f&&t.value.addEventListener("touchstart",u,{passive:!1})},{immediate:!0})}),Ze(()=>{document.removeEventListener("touchmove",d)})}var Uz=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const c=t+s,u=r(a,c,{}),d=i(a);return p(Lz,{key:d,setRef:f=>o(a,f)},{default:()=>[u]})})}const Qz=oe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:V.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:L,itemHeight:k,virtual:j}=e;return!!(j!==!1&&L&&k)}),r=P(()=>{const{height:L,itemHeight:k,data:j}=e;return o.value&&j&&k*j.length>L}),l=ut({scrollTop:0,scrollMoving:!1}),i=P(()=>e.data||Yz),a=te([]);be(i,()=>{a.value=Qe(i.value).slice()},{immediate:!0});const s=te(L=>{});be(()=>e.itemKey,L=>{typeof L=="function"?s.value=L:s.value=k=>k==null?void 0:k[L]},{immediate:!0});const c=te(),u=te(),d=te(),f=L=>s.value(L),g={getKey:f};function v(L){let k;typeof L=="function"?k=L(l.scrollTop):k=L;const j=O(k);c.value&&(c.value.scrollTop=j),l.scrollTop=j}const[h,b,y,S]=Hz(a,f,null,null),$=ut({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=te(0);je(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),An(()=>{ot(()=>{var L;x.value=((L=u.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),be([o,a],()=>{o.value||m($,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),be([o,a,x,r],()=>{o.value&&!r.value&&m($,{scrollHeight:x.value,start:0,end:a.value.length-1,offset:void 0}),c.value&&(l.scrollTop=c.value.scrollTop)},{immediate:!0}),be([r,o,()=>l.scrollTop,a,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let L=0,k,j,H;const Y=a.value.length,Z=a.value,U=l.scrollTop,{itemHeight:ee,height:G}=e,J=U+G;for(let Q=0;Q=U&&(k=Q,j=L),H===void 0&&W>J&&(H=Q),L=W}k===void 0&&(k=0,j=0,H=Math.ceil(G/ee)),H===void 0&&(H=Y-1),H=Math.min(H+1,Y),m($,{scrollHeight:L,start:k,end:H,offset:j})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(L){let k=L;return Number.isNaN(C.value)||(k=Math.min(k,C.value)),k=Math.max(k,0),k}const w=P(()=>l.scrollTop<=0),I=P(()=>l.scrollTop>=C.value),T=RI(w,I);function _(L){v(L)}function E(L){var k;const{scrollTop:j}=L.currentTarget;j!==l.scrollTop&&v(j),(k=e.onScroll)===null||k===void 0||k.call(e,L)}const[A,R]=Kz(o,w,I,L=>{v(k=>k+L)});Xz(o,c,(L,k)=>T(L,k)?!1:(A({preventDefault(){},deltaY:L}),!0));function z(L){o.value&&L.preventDefault()}const M=()=>{c.value&&(c.value.removeEventListener("wheel",A,nn?{passive:!1}:!1),c.value.removeEventListener("DOMMouseScroll",R),c.value.removeEventListener("MozMousePixelScroll",z))};ke(()=>{ot(()=>{c.value&&(M(),c.value.addEventListener("wheel",A,nn?{passive:!1}:!1),c.value.addEventListener("DOMMouseScroll",R),c.value.addEventListener("MozMousePixelScroll",z))})}),Ze(()=>{M()});const B=jz(c,a,y,e,f,b,v,()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()});n({scrollTo:B});const N=P(()=>{let L=null;return e.height&&(L=m({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},qz),o.value&&(L.overflowY="hidden",l.scrollMoving&&(L.pointerEvents="none"))),L});return be([()=>$.start,()=>$.end,a],()=>{if(e.onVisibleChange){const L=a.value.slice($.start,$.end+1);e.onVisibleChange(L,a.value)}},{flush:"post"}),{state:l,mergedData:a,componentStyle:N,onFallbackScroll:E,onScrollBar:_,componentRef:c,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:u,delayHideScrollBar:()=>{var L;(L=d.value)===null||L===void 0||L.delayHidden()}}},render(){const e=m(m({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:l,itemKey:i,virtual:a,component:s="div",onScroll:c,children:u=this.$slots.default,style:d,class:f}=e,g=Uz(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=ie(t,f),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:I,sharedConfig:T,setInstance:_,mergedData:E,delayHideScrollBar:A}=this;return p("div",D({style:m(m({},d),{position:"relative"}),class:v},g),[p(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:A},{default:()=>[p(Fz,{prefixCls:t,height:b,offset:y,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>Zz(E,S,$,_,u,T)})]}),w&&p(zz,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:E.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),DI=Qz;function q0(e,t,n){const o=le(e());return be(t,(r,l)=>{n?n(r,l)&&(o.value=e()):o.value=e()}),o}function Jz(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const BI=Symbol("SelectContextKey");function eH(e){return Ge(BI,e)}function tH(){return He(BI,{})}var nH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),a=q0(()=>l.flattenOptions,[()=>r.open,()=>l.flattenOptions],C=>C[0]),s=sc(),c=C=>{C.preventDefault()},u=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=a.value.length;for(let I=0;I1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=C;const w={source:O?"keyboard":"mouse"},I=a.value[C];if(!I){l.onActiveValue(null,-1,w);return}l.onActiveValue(I.value,C,w)};be([()=>a.value.length,()=>r.searchValue],()=>{g(l.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=C=>l.rawValues.has(C)&&r.mode!=="combobox";be([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&l.rawValues.size===1){const C=Array.from(l.rawValues)[0],O=Qe(a.value).findIndex(w=>{let{data:I}=w;return I[l.fieldNames.value]===C});O!==-1&&(g(O),ot(()=>{u(O)}))}r.open&&ot(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&l.onSelect(C,{selected:!l.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=a.value[C];if(!O)return null;const w=O.data||{},{value:I}=w,{group:T}=O,_=wl(w,!0),E=b(O);return O?p("div",D(D({"aria-label":typeof E=="string"&&!T?E:null},_),{},{key:C,role:T?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":v(I)}),[I]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case Oe.N:case Oe.P:case Oe.UP:case Oe.DOWN:{let I=0;if(O===Oe.UP?I=-1:O===Oe.DOWN?I=1:Jz()&&w&&(O===Oe.N?I=1:O===Oe.P&&(I=-1)),I!==0){const T=d(f.activeIndex+I,I);u(T),g(T,!0)}break}case Oe.ENTER:{const I=a.value[f.activeIndex];I&&!I.data.disabled?h(I.value):h(void 0),r.open&&C.preventDefault();break}case Oe.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{u(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:I,fieldNames:T,virtual:_,listHeight:E,listItemHeight:A}=l,R=o.option,{activeIndex:z}=f,M=Object.keys(T).map(B=>T[B]);return a.value.length===0?p("div",{role:"listbox",id:`${C}_list`,class:`${i.value}-empty`,onMousedown:c},[O]):p(We,null,[p("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(z-1),y(z),y(z+1)]),p(DI,{itemKey:"key",ref:s,data:a.value,height:E,itemHeight:A,fullHeight:!1,onMousedown:c,onScroll:w,virtual:_},{default:(B,N)=>{var F;const{group:L,groupOption:k,data:j,value:H}=B,{key:Y}=j,Z=typeof B.label=="function"?B.label():B.label;if(L){const ge=(F=j.title)!==null&&F!==void 0?F:BC(Z)&&Z;return p("div",{class:ie(i.value,`${i.value}-group`),title:ge},[R?R(j):Z!==void 0?Z:Y])}const{disabled:U,title:ee,children:G,style:J,class:Q,className:K}=j,q=nH(j,["disabled","title","children","style","class","className"]),pe=et(q,M),W=v(H),X=`${i.value}-option`,ne=ie(i.value,X,Q,K,{[`${X}-grouped`]:k,[`${X}-active`]:z===N&&!U,[`${X}-disabled`]:U,[`${X}-selected`]:W}),ae=b(B),se=!I||typeof I=="function"||W,re=typeof ae=="number"?ae:ae||H;let de=BC(re)?re.toString():void 0;return ee!==void 0&&(de=ee),p("div",D(D({},pe),{},{"aria-selected":W,class:ne,title:de,onMousemove:ge=>{q.onMousemove&&q.onMousemove(ge),!(z===N||U)&&g(N)},onClick:ge=>{U||h(H),q.onClick&&q.onClick(ge)},style:J}),[p("div",{class:`${X}-content`},[R?R(j):re]),Kt(I)||W,se&&p(Hd,{class:`${i.value}-option-state`,customizeIcon:I,customizeIconProps:{isSelected:W}},{default:()=>[W?"✓":null]})])}})])}}}),rH=oH;var lH=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return yt(e).map((o,r)=>{var l;if(!Kt(o)||!o.type)return null;const{type:{isSelectOptGroup:i},key:a,children:s,props:c}=o;if(t||!i)return iH(o);const u=s&&s.default?s.default():void 0,d=(c==null?void 0:c.label)||((l=s.label)===null||l===void 0?void 0:l.call(s))||a;return m(m({key:`__RC_SELECT_GRP__${a===null?r:String(a)}__`},c),{label:d,options:NI(u||[])})}).filter(o=>o)}function aH(e,t,n){const o=te(),r=te(),l=te(),i=te([]);return be([e,t],()=>{e.value?i.value=Qe(e.value).slice():i.value=NI(t.value)},{immediate:!0,deep:!0}),ke(()=>{const a=i.value,s=new Map,c=new Map,u=n.value;function d(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:le("");const t=`rc_select_${cH()}`;return e.value||t}function FI(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Yg(e,t){return FI(e).join("").toUpperCase().includes(t)}const uH=(e,t,n,o,r)=>P(()=>{const l=n.value,i=r==null?void 0:r.value,a=o==null?void 0:o.value;if(!l||a===!1)return e.value;const{options:s,label:c,value:u}=t.value,d=[],f=typeof a=="function",g=l.toUpperCase(),v=f?a:(b,y)=>i?Yg(y[i],g):y[s]?Yg(y[c!=="children"?c:"label"],g):Yg(y[u],g),h=f?b=>Ov(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(v(l,h(b)))d.push(b);else{const S=b[s].filter($=>v(l,h($)));S.length&&d.push(m(m({},b),{[s]:S}))}return}v(l,h(b))&&d.push(b)}),d}),dH=(e,t)=>{const n=te({values:new Map,options:new Map});return[P(()=>{const{values:l,options:i}=n.value,a=e.value.map(u=>{var d;return u.label===void 0?m(m({},u),{label:(d=l.get(u.value))===null||d===void 0?void 0:d.label}):u}),s=new Map,c=new Map;return a.forEach(u=>{s.set(u.value,u),c.set(u.value,t.value.get(u.value)||i.get(u.value))}),n.value.values=s,n.value.options=c,a}),l=>t.value.get(l)||n.value.options.get(l)]};function Pt(e,t){const{defaultValue:n,value:o=le()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=$t(o)),n!==void 0&&(r=typeof n=="function"?n():n);const l=le(r),i=le(r);ke(()=>{let s=o.value!==void 0?o.value:l.value;t.postState&&(s=t.postState(s)),i.value=s});function a(s){const c=i.value;l.value=s,Qe(i.value)!==s&&t.onChange&&t.onChange(s,c)}return be(o,()=>{l.value=o.value}),[i,a]}function vt(e){const t=typeof e=="function"?e():e,n=le(t);function o(r){n.value=r}return[n,o]}const fH=["inputValue"];function LI(){return m(m({},gp()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:V.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:V.any,defaultValue:V.any,onChange:Function,children:Array})}function pH(e){return!e||typeof e!="object"}const gH=oe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:qe(LI(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>_I(e.mode)),a=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),c=P(()=>ZP(e.fieldNames,a.value)),[u,d]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Q=>Q||""}),f=aH(ze(e,"options"),ze(e,"children"),c),{valueOptions:g,labelOptions:v,options:h}=f,b=Q=>FI(Q).map(q=>{var pe,W;let X,ne,ae,se;pH(q)?X=q:(ae=q.key,ne=q.label,X=(pe=q.value)!==null&&pe!==void 0?pe:ae);const re=g.value.get(X);return re&&(ne===void 0&&(ne=re==null?void 0:re[e.optionLabelProp||c.value.label]),ae===void 0&&(ae=(W=re==null?void 0:re.key)!==null&&W!==void 0?W:X),se=re==null?void 0:re.disabled),{label:ne,value:X,key:ae,disabled:se,option:re}}),[y,S]=Pt(e.defaultValue,{value:ze(e,"value")}),$=P(()=>{var Q;const K=b(y.value);return e.mode==="combobox"&&!(!((Q=K[0])===null||Q===void 0)&&Q.value)?[]:K}),[x,C]=dH($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Q=x.value[0];if(Q.value===null&&(Q.label===null||Q.label===void 0))return[]}return x.value.map(Q=>{var K;return m(m({},Q),{label:(K=typeof Q.label=="function"?Q.label():Q.label)!==null&&K!==void 0?K:Q.value})})}),w=P(()=>new Set(x.value.map(Q=>Q.value)));ke(()=>{var Q;if(e.mode==="combobox"){const K=(Q=x.value[0])===null||Q===void 0?void 0:Q.value;K!=null&&d(String(K))}},{flush:"post"});const I=(Q,K)=>{const q=K??Q;return{[c.value.value]:Q,[c.value.label]:q}},T=te();ke(()=>{if(e.mode!=="tags"){T.value=h.value;return}const Q=h.value.slice(),K=q=>g.value.has(q);[...x.value].sort((q,pe)=>q.value{const pe=q.value;K(pe)||Q.push(I(pe,q.label))}),T.value=Q});const _=uH(T,c,u,s,ze(e,"optionFilterProp")),E=P(()=>e.mode!=="tags"||!u.value||_.value.some(Q=>Q[e.optionFilterProp||"value"]===u.value)?_.value:[I(u.value),..._.value]),A=P(()=>e.filterSort?[...E.value].sort((Q,K)=>e.filterSort(Q,K)):E.value),R=P(()=>aN(A.value,{fieldNames:c.value,childrenAsData:a.value})),z=Q=>{const K=b(Q);if(S(K),e.onChange&&(K.length!==x.value.length||K.some((q,pe)=>{var W;return((W=x.value[pe])===null||W===void 0?void 0:W.value)!==(q==null?void 0:q.value)}))){const q=e.labelInValue?K.map(W=>m(m({},W),{originLabel:W.label,label:typeof W.label=="function"?W.label():W.label})):K.map(W=>W.value),pe=K.map(W=>Ov(C(W.value)));e.onChange(i.value?q:q[0],i.value?pe:pe[0])}},[M,B]=vt(null),[N,F]=vt(0),L=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),k=function(Q,K){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};F(K),e.backfill&&e.mode==="combobox"&&Q!==null&&q==="keyboard"&&B(String(Q))},j=(Q,K)=>{const q=()=>{var pe;const W=C(Q),X=W==null?void 0:W[c.value.label];return[e.labelInValue?{label:typeof X=="function"?X():X,originLabel:X,value:Q,key:(pe=W==null?void 0:W.key)!==null&&pe!==void 0?pe:Q}:Q,Ov(W)]};if(K&&e.onSelect){const[pe,W]=q();e.onSelect(pe,W)}else if(!K&&e.onDeselect){const[pe,W]=q();e.onDeselect(pe,W)}},H=(Q,K)=>{let q;const pe=i.value?K.selected:!0;pe?q=i.value?[...x.value,Q]:[Q]:q=x.value.filter(W=>W.value!==Q),z(q),j(Q,pe),e.mode==="combobox"?B(""):(!i.value||e.autoClearSearchValue)&&(d(""),B(""))},Y=(Q,K)=>{z(Q),(K.type==="remove"||K.type==="clear")&&K.values.forEach(q=>{j(q.value,!1)})},Z=(Q,K)=>{var q;if(d(Q),B(null),K.source==="submit"){const pe=(Q||"").trim();if(pe){const W=Array.from(new Set([...w.value,pe]));z(W),j(pe,!0),d("")}return}K.source!=="blur"&&(e.mode==="combobox"&&z(Q),(q=e.onSearch)===null||q===void 0||q.call(e,Q))},U=Q=>{let K=Q;e.mode!=="tags"&&(K=Q.map(pe=>{const W=v.value.get(pe);return W==null?void 0:W.value}).filter(pe=>pe!==void 0));const q=Array.from(new Set([...w.value,...K]));z(q),q.forEach(pe=>{j(pe,!0)})},ee=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);eH(Wd(m(m({},f),{flattenOptions:R,onActiveValue:k,defaultActiveFirstOption:L,onSelect:H,menuItemSelectedIcon:ze(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:c,virtual:ee,listHeight:ze(e,"listHeight"),listItemHeight:ze(e,"listItemHeight"),childrenAsData:a})));const G=le();n({focus(){var Q;(Q=G.value)===null||Q===void 0||Q.focus()},blur(){var Q;(Q=G.value)===null||Q===void 0||Q.blur()},scrollTo(Q){var K;(K=G.value)===null||K===void 0||K.scrollTo(Q)}});const J=P(()=>et(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>p(Y0,D(D(D({},J.value),o),{},{id:l,prefixCls:e.prefixCls,ref:G,omitDomProps:fH,mode:e.mode,displayValues:O.value,onDisplayValuesChange:Y,searchValue:u.value,onSearch:Z,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:rH,emptyOptions:!R.value.length,activeValue:M.value,activeDescendantId:`${l}_list_${N.value}`}),r)}}),Q0=()=>null;Q0.isSelectOption=!0;Q0.displayName="ASelectOption";const hH=Q0,J0=()=>null;J0.isSelectOptGroup=!0;J0.displayName="ASelectOptGroup";const vH=J0;var mH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const bH=mH;var yH=Symbol("iconContext"),kI=function(){return He(yH,{prefixCls:le("anticon"),rootClassName:le(""),csp:le()})};function eb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function SH(e,t){return e&&e.contains?e.contains(t):!1}var FC="data-vc-order",$H="vc-icon-key",Bv=new Map;function zI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$H}function tb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function CH(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function HI(e){return Array.from((Bv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!eb())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(FC,CH(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var l=tb(t),i=l.firstChild;if(o){if(o==="queue"){var a=HI(l).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(FC))});if(a.length)return l.insertBefore(r,a[a.length-1].nextSibling),r}l.insertBefore(r,i)}else l.appendChild(r);return r}function xH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=tb(t);return HI(n).find(function(o){return o.getAttribute(zI(t))===e})}function wH(e,t){var n=Bv.get(e);if(!n||!SH(document,n)){var o=jI("",t),r=o.parentNode;Bv.set(e,r),e.removeChild(o)}}function OH(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=tb(n);wH(o,n);var r=xH(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var l=jI(e,n);return l.setAttribute(zI(n),t),l}function LC(e){for(var t=1;t * { - 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); - } -} -`;function KI(e){return e&&e.getRootNode&&e.getRootNode()}function TH(e){return eb()?KI(e)instanceof ShadowRoot:!1}function EH(e){return TH(e)?KI(e):null}var MH=function(){var t=kI(),n=t.prefixCls,o=t.csp,r=pn(),l=IH;n&&(l=l.replace(/anticon/g,n.value)),ot(function(){if(eb()){var i=r.vnode.el,a=EH(i);OH(l,"@ant-design-vue-icons",{prepend:!0,csp:o.value,attachTo:a})}})},_H=["icon","primaryColor","secondaryColor"];function AH(e,t){if(e==null)return{};var n=RH(e,t),o,r;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function RH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}function Hu(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function ZH(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,l;for(l=0;l=0)&&(n[r]=e[r]);return n}GI(Y9.primary);var La=function(t,n){var o,r=jC({},t,n.attrs),l=r.class,i=r.icon,a=r.spin,s=r.rotate,c=r.tabindex,u=r.twoToneColor,d=r.onClick,f=qH(r,VH),g=kI(),v=g.prefixCls,h=g.rootClassName,b=(o={},ss(o,h.value,!!h.value),ss(o,v.value,!0),ss(o,"".concat(v.value,"-").concat(i.name),!!i.name),ss(o,"".concat(v.value,"-spin"),!!a||i.name==="loading"),o),y=c;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=VI(u),x=KH($,2),C=x[0],O=x[1];return p("span",jC({role:"img","aria-label":i.name},f,{onClick:d,class:[b,l],tabindex:y}),[p(nb,{icon:i,primaryColor:C,secondaryColor:O,style:S},null),p(WH,null,null)])};La.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};La.displayName="AntdIcon";La.inheritAttrs=!1;La.getTwoToneColor=jH;La.setTwoToneColor=GI;const tt=La;function WC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:l,feedbackIcon:i,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),c=e.clearIcon||t.clearIcon&&t.clearIcon(),u=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=c??p(Qn,null,null),g=y=>p(We,null,[a!==!1&&y,l&&i]);let v=null;if(s!==void 0)v=g(s);else if(n)v=g(p(co,{spin:!0},null));else{const y=`${r}-suffix`;v=S=>{let{open:$,showSearch:x}=S;return g($&&x?p(mp,{class:y},null):p(Ec,{class:y},null))}}let h=null;u!==void 0?h=u:o?h=p(vp,null,null):h=null;let b=null;return d!==void 0?b=d:b=p(Zn,null,null),{clearIcon:f,suffixIcon:v,itemIcon:h,removeIcon:b}}function ub(e){const t=Symbol("contextKey");return{useProvide:(r,l)=>{const i=ut({});return Ge(t,i),ke(()=>{m(i,r,l||{})}),i},useInject:()=>He(t,e)||{}}}const Vd=Symbol("ContextProps"),Kd=Symbol("InternalContextProps"),gj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=le(new Map),o=(l,i)=>{n.value.set(l,i),n.value=new Map(n.value)},r=l=>{n.value.delete(l),n.value=new Map(n.value)};pn(),be([t,n],()=>{}),Ge(Vd,e),Ge(Kd,{addFormItemField:o,removeFormItemField:r})},Fv={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Lv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qt=()=>{const e=He(Kd,Lv),t=Symbol("FormItemFieldKey"),n=pn();return e.addFormItemField(t,n.type),Ze(()=>{e.removeFormItemField(t)}),Ge(Kd,Lv),Ge(Vd,Fv),He(Vd,Fv)},Gd=oe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Ge(Kd,Lv),Ge(Vd,Fv),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),un=ub({}),Xd=oe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return un.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return ie({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ko=(e,t)=>t||e,hj=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vj=hj,mj=e=>{const{componentCls:t}=e;return{[t]:{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"}},[`${t}-item`]:{"&:empty":{display:"none"}}}}},XI=Ve("Space",e=>[mj(e),vj(e)]);var bj="[object Symbol]";function bp(e){return typeof e=="symbol"||jo(e)&&xl(e)==bj}function yp(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=Nj)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zj(e){return function(){return e}}var Hj=function(){try{var e=Ci(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Ud=Hj;var jj=Ud?function(e,t){return Ud(e,"toString",{configurable:!0,enumerable:!1,value:zj(t),writable:!0})}:db;const Wj=jj;var Vj=kj(Wj);const YI=Vj;function Kj(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}function QI(e,t,n){t=="__proto__"&&Ud?Ud(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Yj=Object.prototype,qj=Yj.hasOwnProperty;function fb(e,t,n){var o=e[t];(!(qj.call(e,t)&&F0(o,n))||n===void 0&&!(t in e))&&QI(e,t,n)}function Mc(e,t,n,o){var r=!n;n||(n={});for(var l=-1,i=t.length;++l0&&n(a)?t>1?eT(a,t-1,n,o,r):k0(r,a):o||(r[r.length]=a)}return r}function hW(e){var t=e==null?0:e.length;return t?eT(e,1):[]}function tT(e){return YI(JI(e,void 0,hW),e+"")}var vW=SI(Object.getPrototypeOf,Object);const vb=vW;var mW="[object Object]",bW=Function.prototype,yW=Object.prototype,nT=bW.toString,SW=yW.hasOwnProperty,$W=nT.call(Object);function mb(e){if(!jo(e)||xl(e)!=mW)return!1;var t=vb(e);if(t===null)return!0;var n=SW.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nT.call(n)==$W}function CW(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(r);++o=t||w<0||d&&I>=l}function y(){var O=qg();if(b(O))return S(O);a=setTimeout(y,h(O))}function S(O){return a=void 0,f&&o?g(O):(o=r=void 0,i)}function $(){a!==void 0&&clearTimeout(a),c=0,o=s=r=a=void 0}function x(){return a===void 0?i:S(qg())}function C(){var O=qg(),w=b(O);if(o=arguments,r=this,s=O,w){if(a===void 0)return v(s);if(d)return clearTimeout(a),a=setTimeout(y,t),g(s)}return a===void 0&&(a=setTimeout(y,t)),i}return C.cancel=$,C.flush=x,C}function hK(e){return jo(e)&&Da(e)}function fT(e,t,n){for(var o=-1,r=e==null?0:e.length;++o-1?r[l?t[i]:i]:void 0}}var bK=Math.max;function yK(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:Mj(n);return r<0&&(r=bK(o+r,0)),qI(e,yb(t),r)}var SK=mK(yK);const $K=SK;function CK(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&u.length>=120)?new Ia(i&&u):void 0}u=e[0];var d=-1,f=a[0];e:for(;++d1),l}),Mc(e,lT(e),n),o&&(n=Ms(n,FK|LK|kK,NK));for(var r=t.length;r--;)BK(n,t[r]);return n});const HK=zK;function jK(e,t,n,o){if(!Ho(e))return e;t=ka(t,e);for(var r=-1,l=t.length,i=l-1,a=e;a!=null&&++r=ZK){var c=t?null:qK(e);if(c)return L0(c);i=!1,r=Ld,s=new Ia}else s=t?[]:a;e:for(;++o({compactSize:String,compactDirection:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),isFirstItem:Ce(),isLastItem:Ce()}),$p=ub(null),Ol=(e,t)=>{const n=$p.useInject(),o=P(()=>{if(!n||pT(n))return"";const{compactDirection:r,isFirstItem:l,isLastItem:i}=n,a=r==="vertical"?"-vertical-":"-";return ie({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:l,[`${e.value}-compact${a}last-item`]:i,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n==null?void 0:n.compactSize),compactDirection:P(()=>n==null?void 0:n.compactDirection),compactItemClassnames:o}},cc=oe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return $p.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),eG=()=>({prefixCls:String,size:{type:String},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),tG=oe({name:"CompactItem",props:JK(),setup(e,t){let{slots:n}=t;return $p.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),nG=oe({name:"ASpaceCompact",inheritAttrs:!1,props:eG(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("space-compact",e),i=$p.useInject(),[a,s]=XI(r),c=P(()=>ie(r.value,s.value,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var u;const d=yt(((u=o.default)===null||u===void 0?void 0:u.call(o))||[]);return d.length===0?null:a(p("div",D(D({},n),{},{class:[c.value,n.class]}),[d.map((f,g)=>{var v;const h=f&&f.key||`${r.value}-item-${g}`,b=!i||pT(i);return p(tG,{key:h,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||(i==null?void 0:i.isFirstItem)),isLastItem:g===d.length-1&&(b||(i==null?void 0:i.isLastItem))},{default:()=>[f]})})]))}}}),Yd=nG,oG=e=>({animationDuration:e,animationFillMode:"both"}),rG=e=>({animationDuration:e,animationFillMode:"both"}),_c=function(e,t,n,o){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${l}${e}-enter, - ${l}${e}-appear - `]:m(m({},oG(o)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:m(m({},rG(o)),{animationPlayState:"paused"}),[` - ${l}${e}-enter${e}-enter-active, - ${l}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},lG=new nt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),iG=new nt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$b=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[_c(o,lG,iG,e.motionDurationMid,t),{[` - ${r}${o}-enter, - ${r}${o}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},aG=new nt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sG=new nt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cG=new nt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uG=new nt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dG=new nt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fG=new nt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pG=new nt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),gG=new nt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hG={"move-up":{inKeyframes:pG,outKeyframes:gG},"move-down":{inKeyframes:aG,outKeyframes:sG},"move-left":{inKeyframes:cG,outKeyframes:uG},"move-right":{inKeyframes:dG,outKeyframes:fG}},Ma=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=hG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Cp=new nt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),xp=new nt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wp=new nt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Op=new nt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vG=new nt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mG=new nt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bG=new nt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),yG=new nt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),SG={"slide-up":{inKeyframes:Cp,outKeyframes:xp},"slide-down":{inKeyframes:wp,outKeyframes:Op},"slide-left":{inKeyframes:vG,outKeyframes:mG},"slide-right":{inKeyframes:bG,outKeyframes:yG}},sr=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=SG[t];return[_c(o,r,l,e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Cb=new nt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$G=new nt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),cx=new nt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),ux=new nt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),CG=new nt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xG=new nt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),wG=new nt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),OG=new nt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),PG=new nt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),IG=new nt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TG=new nt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),EG=new nt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),MG={zoom:{inKeyframes:Cb,outKeyframes:$G},"zoom-big":{inKeyframes:cx,outKeyframes:ux},"zoom-big-fast":{inKeyframes:cx,outKeyframes:ux},"zoom-left":{inKeyframes:wG,outKeyframes:OG},"zoom-right":{inKeyframes:PG,outKeyframes:IG},"zoom-up":{inKeyframes:CG,outKeyframes:xG},"zoom-down":{inKeyframes:TG,outKeyframes:EG}},Ha=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:l}=MG[t];return[_c(o,r,l,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${o}-enter, - ${o}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_G=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Ac=_G,dx=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},AG=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`;return[{[`${n}-dropdown`]:m(m({},Xe(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:Cp},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:wp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:xp},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Op},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${o}-empty`]:m(m({},dx(e)),{color:e.colorTextDisabled}),[`${o}`]:m(m({},dx(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":m({flex:"auto"},Gt),"&-state":{flex:"none"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${o}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},RG=AG,Di=2;function hT(e){let{controlHeightSM:t,controlHeight:n,lineWidth:o}=e;const r=(n-t)/2-o,l=Math.ceil(r/2);return[r,l]}function Qg(e,t){const{componentCls:n,iconCls:o}=e,r=`${n}-selection-overflow`,l=e.controlHeightSM,[i]=hT(e),a=t?`${n}-${t}`:"";return{[`${n}-multiple${a}`]:{fontSize:e.fontSize,[r]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Di}px ${Di*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Di}px 0`,lineHeight:`${l}px`,content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:l,marginTop:Di,marginBottom:Di,lineHeight:`${l-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Di*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":m(m({},yi()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${o}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${r}-item + ${r}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:l,fontFamily:e.fontFamily,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function DG(e){const{componentCls:t}=e,n=Fe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,o]=hT(e);return[Qg(e),Qg(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:o}}},Qg(Fe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function Jg(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,l=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,[`${n}-selector`]:m(m({},Xe(e)),{display:"flex",borderRadius:r,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:o,insetInlineEnd:o,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${l}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${l}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:l},"&:after":{lineHeight:`${l}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${o}px`,"&:after":{display:"none"}}}}}}}function BG(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[Jg(e),Jg(Fe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.fontSize*1.5}}}},Jg(Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function NG(e,t,n){const{focusElCls:o,focus:r,borderElCls:l}=n,i=l?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":m(m({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function FG(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function ja(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:m(m({},NG(e,o,t)),FG(n,o,t))}}const LG=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},eh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:l,antCls:i}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${i}-pagination-size-changer)`]:m(m({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${l}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},kG=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},zG=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:m(m({},LG(e)),kG(e)),[`${t}-selection-item`]:m({flex:1,fontWeight:"normal"},Gt),[`${t}-selection-placeholder`]:m(m({},Gt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:m(m({},yi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},HG=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},zG(e),BG(e),DG(e),RG(e),{[`${t}-rtl`]:{direction:"rtl"}},eh(t,Fe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),eh(`${t}-status-error`,Fe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),eh(`${t}-status-warning`,Fe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),ja(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xb=Ve("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[HG(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Pp=()=>m(m({},et(LI(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Le([Array,Object,String,Number]),defaultValue:Le([Array,Object,String,Number]),notFoundContent:V.any,suffixIcon:V.any,itemIcon:V.any,size:Be(),mode:Be(),bordered:Ce(!0),transitionName:String,choiceTransitionName:Be(""),popupClassName:String,dropdownClassName:String,placement:Be(),status:Be(),"onUpdate:value":ve()}),fx="SECRET_COMBOBOX_MODE_DO_NOT_USE",er=oe({compatConfig:{MODE:3},name:"ASelect",Option:hH,OptGroup:vH,inheritAttrs:!1,props:qe(Pp(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:fx,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:l}=t;const i=le(),a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),u=()=>{var H;(H=i.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=i.value)===null||H===void 0||H.blur()},f=H=>{var Y;(Y=i.value)===null||Y===void 0||Y.scrollTo(H)},g=P(()=>{const{mode:H}=e;if(H!=="combobox")return H===fx?"combobox":H}),{prefixCls:v,direction:h,configProvider:b,renderEmpty:y,size:S,getPrefixCls:$,getPopupContainer:x,disabled:C,select:O}=Te("select",e),{compactSize:w,compactItemClassnames:I}=Ol(v,h),T=P(()=>w.value||S.value),_=qn(),E=P(()=>{var H;return(H=C.value)!==null&&H!==void 0?H:_.value}),[A,R]=xb(v),z=P(()=>$()),M=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),B=P(()=>_n(z.value,K0(M.value),e.transitionName)),N=P(()=>ie({[`${v.value}-lg`]:T.value==="large",[`${v.value}-sm`]:T.value==="small",[`${v.value}-rtl`]:h.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Tn(v.value,c.value,s.hasFeedback),I.value,R.value)),F=function(){for(var H=arguments.length,Y=new Array(H),Z=0;Z{o("blur",H),a.onFieldBlur()};l({blur:d,focus:u,scrollTo:f});const k=P(()=>g.value==="multiple"||g.value==="tags"),j=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(k.value||g.value==="combobox"));return()=>{var H,Y,Z,U;const{notFoundContent:ee,listHeight:G=256,listItemHeight:J=24,popupClassName:Q,dropdownClassName:K,virtual:q,dropdownMatchSelectWidth:pe,id:W=a.id.value,placeholder:X=(H=r.placeholder)===null||H===void 0?void 0:H.call(r),showArrow:ne}=e,{hasFeedback:ae,feedbackIcon:se}=s;let re;ee!==void 0?re=ee:r.notFoundContent?re=r.notFoundContent():g.value==="combobox"?re=null:re=(y==null?void 0:y("Select"))||p(O0,{componentName:"Select"},null);const{suffixIcon:de,itemIcon:ge,removeIcon:me,clearIcon:fe}=cb(m(m({},e),{multiple:k.value,prefixCls:v.value,hasFeedback:ae,feedbackIcon:se,showArrow:j.value}),r),ye=et(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Se=ie(Q||K,{[`${v.value}-dropdown-${h.value}`]:h.value==="rtl"},R.value);return A(p(gH,D(D(D({ref:i,virtual:q,dropdownMatchSelectWidth:pe},ye),n),{},{showSearch:(Y=e.showSearch)!==null&&Y!==void 0?Y:(Z=O==null?void 0:O.value)===null||Z===void 0?void 0:Z.showSearch,placeholder:X,listHeight:G,listItemHeight:J,mode:g.value,prefixCls:v.value,direction:h.value,inputIcon:de,menuItemSelectedIcon:ge,removeIcon:me,clearIcon:fe,notFoundContent:re,class:[N.value,n.class],getPopupContainer:x==null?void 0:x.value,dropdownClassName:Se,onChange:F,onBlur:L,id:W,dropdownRender:ye.dropdownRender||r.dropdownRender,transitionName:B.value,children:(U=r.default)===null||U===void 0?void 0:U.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ae||ne,disabled:E.value}),{option:r.option}))}}});er.install=function(e){return e.component(er.name,er),e.component(er.Option.displayName,er.Option),e.component(er.OptGroup.displayName,er.OptGroup),e};const jG=er.Option,WG=er.OptGroup,Dr=er,wb=()=>null;wb.isSelectOption=!0;wb.displayName="AAutoCompleteOption";const ca=wb,Ob=()=>null;Ob.isSelectOptGroup=!0;Ob.displayName="AAutoCompleteOptGroup";const Wu=Ob;function VG(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const KG=()=>m(m({},et(Pp(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),GG=ca,XG=Wu,th=oe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:KG(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;It(),It(),It(!e.dropdownClassName);const l=le(),i=()=>{var u;const d=yt((u=n.default)===null||u===void 0?void 0:u.call(n));return d.length?d[0]:void 0};r({focus:()=>{var u;(u=l.value)===null||u===void 0||u.focus()},blur:()=>{var u;(u=l.value)===null||u===void 0||u.blur()}});const{prefixCls:c}=Te("select",e);return()=>{var u,d,f;const{size:g,dataSource:v,notFoundContent:h=(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${c.value}-lg`]:g==="large",[`${c.value}-sm`]:g==="small",[`${c.value}-show-search`]:!0,[`${c.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];x.length&&VG(x[0])?b=x:b=v?v.map(C=>{if(Kt(C))return C;switch(typeof C){case"string":return p(ca,{key:C,value:C},{default:()=>[C]});case"object":return p(ca,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=et(m(m(m({},e),o),{mode:Dr.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:l}),["dataSource","loading"]);return p(Dr,$,D({default:()=>[b]},et(n,["default","dataSource","options"])))}}}),UG=m(th,{Option:ca,OptGroup:Wu,install(e){return e.component(th.name,th),e.component(ca.displayName,ca),e.component(Wu.displayName,Wu),e}});var YG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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:"check-circle",theme:"outlined"};const qG=YG;function px(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),vX=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:l,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,alertIconSizeLG:u,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:h}=e;return{[t]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:l,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, - padding-top ${n} ${c}, padding-bottom ${n} ${c}, - margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},mX=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:l,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:g}=e;return{[t]:{"&-success":fu(r,o,n,e,t),"&-info":fu(g,f,d,e,t),"&-warning":fu(a,i,l,e,t),"&-error":m(m({},fu(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},bX=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:l,colorIcon:i,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:l,lineHeight:`${l}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}},yX=e=>[vX(e),mX(e),bX(e)],SX=Ve("Alert",e=>{const{fontSizeHeading3:t}=e,n=Fe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[yX(n)]}),$X={success:zr,info:Wa,error:Qn,warning:Hr},CX={success:vT,info:bT,error:yT,warning:mT},xX=Cn("success","info","warning","error"),wX=()=>({type:V.oneOf(xX),closable:{type:Boolean,default:void 0},closeText:V.any,message:V.any,description:V.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:V.any,closeIcon:V.any,onClose:Function}),OX=oe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:wX(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("alert",e),[s,c]=SX(i),u=te(!1),d=te(!1),f=te(),g=y=>{y.preventDefault();const S=f.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,u.value=!0,o("close",y)},v=()=>{var y;u.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});l({animationEnd:v});const b=te({});return()=>{var y,S,$,x,C,O,w,I,T,_;const{banner:E,closeIcon:A=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:R,showIcon:z}=e;const M=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),B=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),N=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),F=(I=e.icon)!==null&&I!==void 0?I:(T=n.icon)===null||T===void 0?void 0:T.call(n),L=(_=n.action)===null||_===void 0?void 0:_.call(n);z=E&&z===void 0?!0:z;const k=(B?CX:$X)[h.value]||null;M&&(R=!0);const j=i.value,H=ie(j,{[`${j}-${h.value}`]:!0,[`${j}-closing`]:u.value,[`${j}-with-description`]:!!B,[`${j}-no-icon`]:!z,[`${j}-banner`]:!!E,[`${j}-closable`]:R,[`${j}-rtl`]:a.value==="rtl",[c.value]:!0}),Y=R?p("button",{type:"button",onClick:g,class:`${j}-close-icon`,tabindex:0},[M?p("span",{class:`${j}-close-text`},[M]):A===void 0?p(Zn,null,null):A]):null,Z=F&&(Kt(F)?dt(F,{class:`${j}-icon`}):p("span",{class:`${j}-icon`},[F]))||p(k,{class:`${j}-icon`},null),U=Po(`${j}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:ee=>{ee.style.maxHeight=`${ee.offsetHeight}px`},onLeave:ee=>{ee.style.maxHeight="0px"}});return s(d.value?null:p(cn,U,{default:()=>[$n(p("div",D(D({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,H],"data-show":!u.value,ref:f}),[z?Z:null,p("div",{class:`${j}-content`},[N?p("div",{class:`${j}-message`},[N]):null,B?p("div",{class:`${j}-description`},[B]):null]),L?p("div",{class:`${j}-action`},[L]):null,Y]),[[En,!u.value]])]}))}}}),PX=Tt(OX),Or=["xxxl","xxl","xl","lg","md","sm","xs"],IX=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function Rb(){const[,e]=Fr();return P(()=>{const t=IX(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(l){return r=l,n.forEach(i=>i(r)),n.size>=1},subscribe(l){return n.size||this.register(),o+=1,n.set(o,l),l(r),o},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(t).forEach(l=>{const i=t[l],a=this.matchHandlers[i];a==null||a.mql.removeListener(a==null?void 0:a.listener)}),n.clear()},register(){Object.keys(t).forEach(l=>{const i=t[l],a=c=>{let{matches:u}=c;this.dispatch(m(m({},r),{[l]:u}))},s=window.matchMedia(i);s.addListener(a),this.matchHandlers[i]={mql:s,listener:a},a(s)})},responsiveMap:t}})}function Va(){const e=te({});let t=null;const n=Rb();return je(()=>{t=n.value.subscribe(o=>{e.value=o})}),Rn(()=>{n.value.unsubscribe(t)}),e}function ro(e){const t=te();return ke(()=>{t.value=e()},{flush:"sync"}),t}const TX=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:l,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:c,textFontSizeLG:u,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:l,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(i,c,f)),{"&-lg":m({},y(a,u,g)),"&-sm":m({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},EX=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},ST=Ve("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Fe(e,{avatarBg:n,avatarColor:t});return[TX(o),EX(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:l,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((l+i)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:c,groupOverlapping:-s,groupBorderColor:u}}),$T=Symbol("AvatarContextKey"),MX=()=>He($T,{}),_X=e=>Ge($T,e),AX=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:V.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),RX=oe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:AX(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=te(!0),l=te(!1),i=te(1),a=te(null),s=te(null),{prefixCls:c}=Te("avatar",e),[u,d]=ST(c),f=MX(),g=P(()=>e.size==="default"?f.size:e.size),v=Va(),h=ro(()=>{if(typeof e.size!="object")return;const $=Or.find(C=>v.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!a.value||!s.value)return;const $=a.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;($==null?void 0:$())!==!1&&(r.value=!1)};return be(()=>e.src,()=>{ot(()=>{r.value=!0,i.value=1})}),be(()=>e.gap,()=>{ot(()=>{y()})}),je(()=>{ot(()=>{y(),l.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:I,draggable:T,crossOrigin:_}=e,E=($=f.shape)!==null&&$!==void 0?$:C,A=qt(n,e,"icon"),R=c.value,z={[`${o.class}`]:!!o.class,[R]:!0,[`${R}-lg`]:g.value==="large",[`${R}-sm`]:g.value==="small",[`${R}-${E}`]:!0,[`${R}-image`]:O&&r.value,[`${R}-icon`]:A,[d.value]:!0},M=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:A?`${g.value/2}px`:"18px"}:{},B=(x=n.default)===null||x===void 0?void 0:x.call(n);let N;if(O&&r.value)N=p("img",{draggable:T,src:O,srcset:I,onError:S,alt:w,crossorigin:_},null);else if(A)N=A;else if(l.value||i.value!==1){const F=`scale(${i.value}) translateX(-50%)`,L={msTransform:F,WebkitTransform:F,transform:F},k=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};N=p(xo,{onResize:y},{default:()=>[p("span",{class:`${R}-string`,ref:a,style:m(m({},k),L)},[B])]})}else N=p("span",{class:`${R}-string`,ref:a,style:{opacity:0}},[B]);return u(p("span",D(D({},o),{},{ref:s,class:z,style:[M,b(!!A),o.style]}),[N]))}}}),ni=RX,ho={adjustX:1,adjustY:1},vo=[0,0],CT={left:{points:["cr","cl"],overflow:ho,offset:[-4,0],targetOffset:vo},right:{points:["cl","cr"],overflow:ho,offset:[4,0],targetOffset:vo},top:{points:["bc","tc"],overflow:ho,offset:[0,-4],targetOffset:vo},bottom:{points:["tc","bc"],overflow:ho,offset:[0,4],targetOffset:vo},topLeft:{points:["bl","tl"],overflow:ho,offset:[0,-4],targetOffset:vo},leftTop:{points:["tr","tl"],overflow:ho,offset:[-4,0],targetOffset:vo},topRight:{points:["br","tr"],overflow:ho,offset:[0,-4],targetOffset:vo},rightTop:{points:["tl","tr"],overflow:ho,offset:[4,0],targetOffset:vo},bottomRight:{points:["tr","br"],overflow:ho,offset:[0,4],targetOffset:vo},rightBottom:{points:["bl","br"],overflow:ho,offset:[4,0],targetOffset:vo},bottomLeft:{points:["tl","bl"],overflow:ho,offset:[0,4],targetOffset:vo},leftBottom:{points:["br","bl"],overflow:ho,offset:[-4,0],targetOffset:vo}},DX={prefixCls:String,id:String,overlayInnerStyle:V.any},BX=oe({compatConfig:{MODE:3},name:"TooltipContent",props:DX,setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var NX=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:V.string.def("rc-tooltip"),mouseEnterDelay:V.number.def(.1),mouseLeaveDelay:V.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:V.object.def(()=>({})),arrowContent:V.any.def(null),tipId:String,builtinPlacements:V.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=te(),i=()=>{const{prefixCls:u,tipId:d,overlayInnerStyle:f}=e;return[e.arrow?p("div",{class:`${u}-arrow`,key:"arrow"},[qt(n,e,"arrowContent")]):null,p(BX,{key:"content",prefixCls:u,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>l.value.getPopupDomNode(),triggerDOM:l,forcePopupAlign:()=>{var u;return(u=l.value)===null||u===void 0?void 0:u.forcePopupAlign()}});const s=te(!1),c=te(!1);return ke(()=>{const{destroyTooltipOnHide:u}=e;if(typeof u=="boolean")s.value=u;else if(u&&typeof u=="object"){const{keepParent:d}=u;s.value=d===!0,c.value=d===!1}}),()=>{const{overlayClassName:u,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:g,overlayStyle:v,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=NX(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),I=m({},w);e.visible!==void 0&&(I.popupVisible=e.visible);const T=m(m(m({popupClassName:u,prefixCls:h,action:d,builtinPlacements:CT,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:c.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:f},I),o),{onPopupVisibleChange:e.onVisibleChange||Sx,onPopupAlign:e.onPopupAlign||Sx,ref:l,arrow:!!e.arrow,popup:i()});return p(wi,T,{default:n.default})}}}),Db=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:Re(),overlayInnerStyle:Re(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:Re(),builtinPlacements:Re(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),LX={adjustX:1,adjustY:1},$x={adjustX:0,adjustY:0},kX=[0,0];function Cx(e){return typeof e=="boolean"?e?LX:$x:m(m({},$x),e)}function Bb(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:l}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(i).forEach(a=>{i[a]=l?m(m({},i[a]),{overflow:Cx(r),targetOffset:kX}):m(m({},CT[a]),{overflow:Cx(r)}),i[a].ignoreShake=!0}),i}function qd(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),HX=["success","processing","error","default","warning"];function Ip(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...zX,...nc].includes(e):nc.includes(e)}function jX(e){return HX.includes(e)}function WX(e,t){const n=Ip(t),o=ie({[`${e}-${t}`]:t&&n}),r={},l={};return t&&!n&&(r.background=t,l["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:l}}function pu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Nb=8;function xT(e){const t=Nb,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:l}=e,i=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-i,s=l?t-i:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:s}}function Fb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:l,borderRadiusOuter:i,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:c,contentRadius:u=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=xT({sizePopupArrow:o,contentRadius:u,borderRadiusOuter:i,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[m(m({position:"absolute",zIndex:1,display:"block"},x0(o,l,i,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[pu(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingBottom:v},[pu(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingTop:v},[pu(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingRight:{_skip_check_:!0,value:v}},[pu(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(h=>h+=":not(&-arrow-hidden)"),c)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const VX=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:l,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:c,paddingXS:u,tooltipRadiusOuter:d}=e;return[{[t]:m(m(m(m({},Xe(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${c/2}px ${u}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:l,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(l,Nb)}},[`${t}-content`]:{position:"relative"}}),Bd(e,(f,g)=>{let{darkColor:v}=g;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Fb(Fe(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:l,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},KX=(e,t)=>Ve("Tooltip",o=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:r,colorTextLightSolid:l,colorBgDefault:i,borderRadiusOuter:a}=o,s=Fe(o,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:r,tooltipBg:i,tooltipRadiusOuter:a>4?4:a});return[VX(s),Ha(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:l}=o;return{zIndexPopup:r+70,colorBgDefault:l}})(e),GX=(e,t)=>{const n={},o=m({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},wT=()=>m(m({},Db()),{title:V.any}),OT=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),XX=oe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:qe(wT(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;const{prefixCls:i,getPopupContainer:a,direction:s,rootPrefixCls:c}=Te("tooltip",e),u=P(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible}),d=le(qd([e.open,e.visible])),f=le();let g;be(u,_=>{Ye.cancel(g),g=Ye(()=>{d.value=!!_})});const v=()=>{var _;const E=(_=e.title)!==null&&_!==void 0?_:n.title;return!E&&E!==0},h=_=>{const E=v();u.value===void 0&&(d.value=E?!1:_),E||(o("update:visible",_),o("visibleChange",_),o("update:open",_),o("openChange",_))};l({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var _;return(_=f.value)===null||_===void 0?void 0:_.forcePopupAlign()}});const y=P(()=>{var _;const{builtinPlacements:E,autoAdjustOverflow:A,arrow:R,arrowPointAtCenter:z}=e;let M=z;return typeof R=="object"&&(M=(_=R.pointAtCenter)!==null&&_!==void 0?_:z),E||Bb({arrowPointAtCenter:M,autoAdjustOverflow:A})}),S=_=>_||_==="",$=_=>{const E=_.type;if(typeof E=="object"&&_.props&&((E.__ANT_BUTTON===!0||E==="button")&&S(_.props.disabled)||E.__ANT_SWITCH===!0&&(S(_.props.disabled)||S(_.props.loading))||E.__ANT_RADIO===!0&&S(_.props.disabled))){const{picked:A,omitted:R}=GX(KO(_),["position","left","right","top","bottom","float","display","zIndex"]),z=m(m({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:_.props&&_.props.block?"100%":void 0}),M=m(m({},R),{pointerEvents:"none"}),B=dt(_,{style:M},!0);return p("span",{style:z,class:`${i.value}-disabled-compatible-wrapper`},[B])}return _},x=()=>{var _,E;return(_=e.title)!==null&&_!==void 0?_:(E=n.title)===null||E===void 0?void 0:E.call(n)},C=(_,E)=>{const A=y.value,R=Object.keys(A).find(z=>{var M,B;return A[z].points[0]===((M=E.points)===null||M===void 0?void 0:M[0])&&A[z].points[1]===((B=E.points)===null||B===void 0?void 0:B[1])});if(R){const z=_.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${z.height-E.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-E.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${z.width-E.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-E.offset[0]}px`),_.style.transformOrigin=`${M.left} ${M.top}`}},O=P(()=>WX(i.value,e.color)),w=P(()=>r["data-popover-inject"]),[I,T]=KX(i,P(()=>!w.value));return()=>{var _,E;const{openClassName:A,overlayClassName:R,overlayStyle:z,overlayInnerStyle:M}=e;let B=(E=_t((_=n.default)===null||_===void 0?void 0:_.call(n)))!==null&&E!==void 0?E:null;B=B.length===1?B[0]:B;let N=d.value;if(u.value===void 0&&v()&&(N=!1),!B)return null;const F=$(Kt(B)&&!oD(B)?B:p("span",null,[B])),L=ie({[A||`${i.value}-open`]:!0,[F.props&&F.props.class]:F.props&&F.props.class}),k=ie(R,{[`${i.value}-rtl`]:s.value==="rtl"},O.value.className,T.value),j=m(m({},O.value.overlayStyle),M),H=O.value.arrowStyle,Y=m(m(m({},r),e),{prefixCls:i.value,arrow:!!e.arrow,getPopupContainer:a==null?void 0:a.value,builtinPlacements:y.value,visible:N,ref:f,overlayClassName:k,overlayStyle:m(m({},H),z),overlayInnerStyle:j,onVisibleChange:h,onPopupAlign:C,transitionName:_n(c.value,"zoom-big-fast",e.transitionName)});return I(p(FX,Y,{default:()=>[d.value?dt(F,{class:L}):F],arrowContent:()=>p("span",{class:`${i.value}-arrow-content`},null),overlay:x}))}}}),Yn=Tt(XX),UX=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:l,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:u,marginXS:d,colorBgElevated:f}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:l},[`${t}-inner-content`]:{color:o}})},Fb(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},YX=e=>{const{componentCls:t}=e;return{[t]:nc.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},qX=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:l,controlHeight:i,fontSize:a,lineHeight:s,padding:c}=e,u=i-Math.round(a*s),d=u/2,f=u/2-n,g=c;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${f}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${l}px ${g}px`}}}},ZX=Ve("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=Fe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[UX(r),YX(r),o&&qX(r),Ha(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),QX=()=>m(m({},Db()),{content:St(),title:St()}),JX=oe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:qe(QX(),m(m({},OT()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le();It(e.visible===void 0),n({getPopupDomNode:()=>{var f,g;return(g=(f=l.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||g===void 0?void 0:g.call(f)}});const{prefixCls:i,configProvider:a}=Te("popover",e),[s,c]=ZX(i),u=P(()=>a.getPrefixCls()),d=()=>{var f,g;const{title:v=_t((f=o.title)===null||f===void 0?void 0:f.call(o)),content:h=_t((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!b&&!y?null:p(We,null,[b&&p("div",{class:`${i.value}-title`},[v]),p("div",{class:`${i.value}-inner-content`},[h])])};return()=>{const f=ie(e.overlayClassName,c.value);return s(p(Yn,D(D(D({},et(e,["title","content"])),r),{},{prefixCls:i.value,ref:l,overlayClassName:f,transitionName:_n(u.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Lb=Tt(JX),eU=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),tU=oe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:eU(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("avatar",e),i=P(()=>`${r.value}-group`),[a,s]=ST(r);return ke(()=>{const c={size:e.size,shape:e.shape};_X(c)}),()=>{const{maxPopoverPlacement:c="top",maxCount:u,maxStyle:d,maxPopoverTrigger:f="hover",shape:g}=e,v={[i.value]:!0,[`${i.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=qt(n,e),b=yt(h).map((S,$)=>dt(S,{key:`avatar-key-${$}`})),y=b.length;if(u&&u[p(ni,{style:d,shape:g},{default:()=>[`+${y-u}`]})]})),a(p("div",D(D({},o),{},{class:v,style:o.style}),[S]))}return a(p("div",D(D({},o),{},{class:v,style:o.style}),[b]))}}}),Zd=tU;ni.Group=Zd;ni.install=function(e){return e.component(ni.name,ni),e.component(Zd.name,Zd),e};function xx(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,l;return r&&(l={position:"absolute",top:`${r}00%`,left:0}),p("p",{style:l,class:ie(`${t}-only-unit`,{current:o})},[n])}function nU(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const oU=oe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=ut({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},l=le();return be(t,()=>{clearTimeout(l.value),l.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),Rn(()=>{clearTimeout(l.value)}),()=>{let i,a={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))i=[xx(m(m({},e),{current:!0}))],a={transition:"none"};else{i=[];const c=s+10,u=[];for(let g=s;g<=c;g+=1)u.push(g);const d=u.findIndex(g=>g%10===o.prevValue);i=u.map((g,v)=>{const h=g%10;return xx(m(m({},e),{value:h,offset:v-d,current:v===d}))});const f=o.prevCountr()},[i])}}});var rU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var l;const i=m(m({},e),n),{prefixCls:a,count:s,title:c,show:u,component:d="sup",class:f,style:g}=i,v=rU(i,["prefixCls","count","title","show","component","class","style"]),h=m(m({},v),{style:g,"data-show":e.show,class:ie(r.value,f),title:c});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>p(oU,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=m(m({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=_t((l=o.default)===null||l===void 0?void 0:l.call(o));return y&&y.length?dt(y,{class:ie(`${r.value}-custom-component`)},!1):p(d,h,{default:()=>[b]})}}}),aU=new nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),sU=new nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),cU=new nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),uU=new nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dU=new nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fU=new nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pU=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:l,badgeHeightSm:i,motionDurationSlow:a,badgeStatusSize:s,marginXS:c,badgeRibbonOffset:u}=e,d=`${o}-scroll-number`,f=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,v=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Bd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${f}-color-${b}`]:{background:S,color:S}}});return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:fU,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:aU,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:c,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:sU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:cU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:uU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dU,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${f}`]:m(m(m(m({},Xe(e)),{position:"absolute",top:c,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:u,height:u,color:"currentcolor",border:`${u/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-u,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-u,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},PT=Ve("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:l,colorBorderBg:i}=e,a=Math.round(t*n),s=r,c="auto",u=a-2*s,d=e.colorBgContainer,f="normal",g=o,v=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=Fe(e,{badgeFontHeight:a,badgeShadowSize:s,badgeZIndex:c,badgeHeight:u,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:g,badgeColor:v,badgeColorHover:h,badgeShadowColor:i,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[pU(x)]});var gU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:V.any,placement:{type:String,default:"end"}}),Qd=oe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:hU(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:l}=Te("ribbon",e),[i,a]=PT(r),s=P(()=>Ip(e.color,!1)),c=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var u,d;const{class:f,style:g}=n,v=gU(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),i(p("div",D({class:`${r.value}-wrapper ${a.value}`},v),[(u=o.default)===null||u===void 0?void 0:u.call(o),p("div",{class:[c.value,f,a.value],style:m(m({},h),g)},[p("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),p("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),vU=e=>!isNaN(parseFloat(e))&&isFinite(e),Jd=vU,mU=()=>({count:V.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:V.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),_s=oe({compatConfig:{MODE:3},name:"ABadge",Ribbon:Qd,inheritAttrs:!1,props:mU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("badge",e),[i,a]=PT(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),c=P(()=>s.value==="0"||s.value===0),u=P(()=>e.count===null||c.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&u.value),f=P(()=>e.dot&&!c.value),g=P(()=>f.value?"":s.value),v=P(()=>(g.value===null||g.value===void 0||g.value===""||c.value&&!e.showZero)&&!f.value),h=le(e.count),b=le(g.value),y=le(f.value);be([()=>e.count,g,f],()=>{v.value||(h.value=e.count,b.value=g.value,y.value=f.value)},{immediate:!0});const S=P(()=>Ip(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:I,title:T,color:_}=e,E=o.style,A=qt(n,e,"text"),R=r.value,z=h.value;let M=yt((O=n.default)===null||O===void 0?void 0:O.call(n));M=M.length?M:null;const B=!!(!v.value||n.count),N=(()=>{if(!I)return m({},E);const Z={marginTop:Jd(I[1])?`${I[1]}px`:I[1]};return l.value==="rtl"?Z.left=`${parseInt(I[0],10)}px`:Z.right=`${-parseInt(I[0],10)}px`,m(m({},Z),E)})(),F=T??(typeof z=="string"||typeof z=="number"?z:void 0),L=B||!A?null:p("span",{class:`${R}-status-text`},[A]),k=typeof z=="object"||z===void 0&&n.count?dt(z??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:N},!1):null,j=ie(R,{[`${R}-status`]:d.value,[`${R}-not-a-wrapper`]:!M,[`${R}-rtl`]:l.value==="rtl"},o.class,a.value);if(!M&&d.value){const Z=N.color;return i(p("span",D(D({},o),{},{class:j,style:N}),[p("span",{class:$.value,style:x.value},null),p("span",{style:{color:Z},class:`${R}-status-text`},[A])]))}const H=Po(M?`${R}-zoom`:"",{appear:!1});let Y=m(m({},N),e.numberStyle);return _&&!S.value&&(Y=Y||{},Y.background=_),i(p("span",D(D({},o),{},{class:j}),[M,p(cn,H,{default:()=>[$n(p(iU,{prefixCls:e.scrollNumberPrefixCls,show:B,class:C.value,count:b.value,title:F,style:Y,key:"scrollNumber"},{default:()=>[k]}),[[En,B]])]}),L]))}}});_s.install=function(e){return e.component(_s.name,_s),e.component(Qd.name,Qd),e};const Bi={adjustX:1,adjustY:1},Ni=[0,0],bU={topLeft:{points:["bl","tl"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topCenter:{points:["bc","tc"],overflow:Bi,offset:[0,-4],targetOffset:Ni},topRight:{points:["br","tr"],overflow:Bi,offset:[0,-4],targetOffset:Ni},bottomLeft:{points:["tl","bl"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomCenter:{points:["tc","bc"],overflow:Bi,offset:[0,4],targetOffset:Ni},bottomRight:{points:["tr","br"],overflow:Bi,offset:[0,4],targetOffset:Ni}},yU=bU;var SU=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(l.value=g)});const i=le();r({triggerRef:i});const a=g=>{e.visible===void 0&&(l.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(l.value=g),o("visibleChange",g)},c=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:a};return p(We,{key:jO},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),dt(v,h,!1)])},u=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return l.value&&v?dt(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,I=SU(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(wi,D(D({},I),{},{prefixCls:g,ref:i,popupClassName:ie(w,{[`${g}-show-arrow`]:v}),popupStyle:b,builtinPlacements:yU,action:y,showAction:h,hideAction:f.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:l.value,stretch:u.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:c,default:d})}}}),$U=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},CU=Ve("Wave",e=>[$U(e)]);function xU(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function nh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&xU(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function wU(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return nh(t)?t:nh(n)?n:nh(o)?o:null}function oh(e){return Number.isNaN(e)?0:e}const OU=oe({props:{target:Re(),className:String},setup(e){const t=te(null),[n,o]=vt(null),[r,l]=vt([]),[i,a]=vt(0),[s,c]=vt(0),[u,d]=vt(0),[f,g]=vt(0),[v,h]=vt(!1);function b(){const{target:w}=e,I=getComputedStyle(w);o(wU(w));const T=I.position==="static",{borderLeftWidth:_,borderTopWidth:E}=I;a(T?w.offsetLeft:oh(-parseFloat(_))),c(T?w.offsetTop:oh(-parseFloat(E))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:R,borderBottomLeftRadius:z,borderBottomRightRadius:M}=I;l([A,R,M,z].map(B=>oh(parseFloat(B))))}let y,S,$;const x=()=>{clearTimeout($),Ye.cancel(S),y==null||y.disconnect()},C=()=>{var w;const I=(w=t.value)===null||w===void 0?void 0:w.parentElement;I&&(bl(null,I),I.parentElement&&I.parentElement.removeChild(I))};je(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=Ye(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Ze(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!v.value)return null;const w={left:`${i.value}px`,top:`${s.value}px`,width:`${u.value}px`,height:`${f.value}px`,borderRadius:r.value.map(I=>`${I}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p(cn,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function PU(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),bl(p(OU,{target:e,className:t},null),n),()=>{bl(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function IU(e,t){const n=pn();let o;function r(){var l;const i=Hn(n);o==null||o(),!(!((l=t==null?void 0:t.value)===null||l===void 0)&&l.disabled||!i)&&(o=PU(i,e.value))}return Ze(()=>{o==null||o()}),r}const kb=oe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=pn(),{prefixCls:r,wave:l}=Te("wave",e),[,i]=CU(r),a=IU(P(()=>ie(r.value,i.value)),l);let s;const c=()=>{Hn(o).removeEventListener("click",s,!0)};return je(()=>{be(()=>e.disabled,()=>{c(),ot(()=>{const u=Hn(o);u==null||u.removeEventListener("click",s,!0),!(!u||u.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!op(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||a()},u.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Ze(()=>{c()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function ef(e){return e==="danger"?{danger:!0}:{type:e}}const TU=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:V.any,href:String,target:String,title:String,onClick:si(),onMousedown:si()}),TT=TU,wx=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Ox=e=>{ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Px=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},EU=oe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return p("span",{class:`${n}-loading-icon`},[p(co,null,null)]);const r=!!o;return p(cn,{name:`${n}-loading-icon-motion`,onBeforeEnter:wx,onEnter:Ox,onAfterEnter:Px,onBeforeLeave:Ox,onLeave:l=>{setTimeout(()=>{wx(l)})},onAfterLeave:Px},{default:()=>[r?p("span",{class:`${n}-loading-icon`},[p(co,null,null)]):null]})}}}),Ix=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MU=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,colorErrorHover:l}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Ix(`${t}-primary`,r),Ix(`${t}-danger`,l)]}},_U=MU;function AU(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function RU(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function DU(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:m(m({},AU(e,t)),RU(e.componentCls,t))}}const BU=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":m({},Rr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Br=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),NU=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),FU=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),zv=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),tf=(e,t,n,o,r,l,i)=>({[`&${e}-background-ghost`]:m(m({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Br(m({backgroundColor:"transparent"},l),m({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),zb=e=>({"&:disabled":m({},zv(e))}),ET=e=>m({},zb(e)),nf=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),MT=e=>m(m(m(m(m({},ET(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Br({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:m(m(m({color:e.colorError,borderColor:e.colorError},Br({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),zb(e))}),LU=e=>m(m(m(m(m({},ET(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Br({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),tf(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:m(m(m({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Br({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),tf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zb(e))}),kU=e=>m(m({},MT(e)),{borderStyle:"dashed"}),zU=e=>m(m(m({color:e.colorLink},Br({color:e.colorLinkHover},{color:e.colorLinkActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},Br({color:e.colorErrorHover},{color:e.colorErrorActive})),nf(e))}),HU=e=>m(m(m({},Br({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),nf(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},nf(e)),Br({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),jU=e=>m(m({},zv(e)),{[`&${e.componentCls}:hover`]:m({},zv(e))}),WU=e=>{const{componentCls:t}=e;return{[`${t}-default`]:MT(e),[`${t}-primary`]:LU(e),[`${t}-dashed`]:kU(e),[`${t}-link`]:zU(e),[`${t}-text`]:HU(e),[`${t}-disabled`]:jU(e)}},Hb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:l,lineHeight:i,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:c}=e,u=Math.max(0,(r-l*i)/2-a),d=c-a,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:l,height:r,padding:`${u}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:NU(e)},{[`${n}${n}-round${t}`]:FU(e)}]},VU=e=>Hb(e),KU=e=>{const t=Fe(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Hb(t,`${e.componentCls}-sm`)},GU=e=>{const t=Fe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Hb(t,`${e.componentCls}-lg`)},XU=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},UU=Ve("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=Fe(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[BU(o),KU(o),VU(o),GU(o),XU(o),WU(o),_U(o),ja(e,{focus:!1}),DU(e)]}),YU=()=>({prefixCls:String,size:{type:String}}),_T=ub(),of=oe({compatConfig:{MODE:3},name:"AButtonGroup",props:YU(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("btn-group",e),[,,l]=Fr();_T.useProvide(ut({size:P(()=>e.size)}));const i=P(()=>{const{size:a}=e;let s="";switch(a){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:xt(!a,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[l.value]:!0}});return()=>{var a;return p("div",{class:i.value},[yt((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),Tx=/^[\u4e00-\u9fa5]{2}$/,Ex=Tx.test.bind(Tx);function gu(e){return e==="text"||e==="link"}const zt=oe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:qe(TT(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,autoInsertSpaceInButton:a,direction:s,size:c}=Te("btn",e),[u,d]=UU(i),f=_T.useInject(),g=qn(),v=P(()=>{var M;return(M=e.disabled)!==null&&M!==void 0?M:g.value}),h=te(null),b=te(void 0);let y=!1;const S=te(!1),$=te(!1),x=P(()=>a.value!==!1),{compactSize:C,compactItemClassnames:O}=Ol(i,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);be(w,M=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=M},w.value):S.value=M},{immediate:!0});const I=P(()=>{const{type:M,shape:B="default",ghost:N,block:F,danger:L}=e,k=i.value,j={large:"lg",small:"sm",middle:void 0},H=C.value||(f==null?void 0:f.size)||c.value,Y=H&&j[H]||"";return[O.value,{[d.value]:!0,[`${k}`]:!0,[`${k}-${B}`]:B!=="default"&&B,[`${k}-${M}`]:M,[`${k}-${Y}`]:Y,[`${k}-loading`]:S.value,[`${k}-background-ghost`]:N&&!gu(M),[`${k}-two-chinese-chars`]:$.value&&x.value,[`${k}-block`]:F,[`${k}-dangerous`]:!!L,[`${k}-rtl`]:s.value==="rtl"}]}),T=()=>{const M=h.value;if(!M||a.value===!1)return;const B=M.textContent;y&&Ex(B)?$.value||($.value=!0):$.value&&($.value=!1)},_=M=>{if(S.value||v.value){M.preventDefault();return}r("click",M)},E=M=>{r("mousedown",M)},A=(M,B)=>{const N=B?" ":"";if(M.type===Cl){let F=M.children.trim();return Ex(F)&&(F=F.split("").join(N)),p("span",null,[F])}return M};return ke(()=>{xt(!(e.ghost&&gu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(T),An(T),Ze(()=>{b.value&&clearTimeout(b.value)}),l({focus:()=>{var M;(M=h.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=h.value)===null||M===void 0||M.blur()}}),()=>{var M,B;const{icon:N=(M=n.icon)===null||M===void 0?void 0:M.call(n)}=e,F=yt((B=n.default)===null||B===void 0?void 0:B.call(n));y=F.length===1&&!N&&!gu(e.type);const{type:L,htmlType:k,href:j,title:H,target:Y}=e,Z=S.value?"loading":N,U=m(m({},o),{title:H,disabled:v.value,class:[I.value,o.class,{[`${i.value}-icon-only`]:F.length===0&&!!Z}],onClick:_,onMousedown:E});v.value||delete U.disabled;const ee=N&&!S.value?N:p(EU,{existIcon:!!N,prefixCls:i.value,loading:!!S.value},null),G=F.map(Q=>A(Q,y&&x.value));if(j!==void 0)return u(p("a",D(D({},U),{},{href:j,target:Y,ref:h}),[ee,G]));let J=p("button",D(D({},U),{},{ref:h,type:k}),[ee,G]);if(!gu(L)){const Q=function(){return J}();J=p(kb,{ref:"wave",disabled:!!S.value},{default:()=>[Q]})}return u(J)}}});zt.Group=of;zt.install=function(e){return e.component(zt.name,zt),e.component(of.name,of),e};const AT=()=>({arrow:Le([Boolean,Object]),trigger:{type:[Array,String]},menu:Re(),overlay:V.any,visible:Ce(),open:Ce(),disabled:Ce(),danger:Ce(),autofocus:Ce(),align:Re(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:Re(),forceRender:Ce(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Ce(),destroyPopupOnHide:Ce(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),rh=TT(),qU=()=>m(m({},AT()),{type:rh.type,size:String,htmlType:rh.htmlType,href:String,disabled:Ce(),prefixCls:String,icon:V.any,title:String,loading:rh.loading,onClick:si()});var ZU={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"};const QU=ZU;function Mx(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},tY=eY,nY=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,l=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${l}`]:{[`&${l}-danger:not(${l}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},oY=nY,rY=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:l,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:c,dropdownPaddingVertical:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:m(m({},Xe(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` - &-show-arrow${t}-placement-topLeft, - &-show-arrow${t}-placement-top, - &-show-arrow${t}-placement-topRight - `]:{paddingBottom:r},[` - &-show-arrow${t}-placement-bottomLeft, - &-show-arrow${t}-placement-bottom, - &-show-arrow${t}-placement-bottomRight - `]:{paddingTop:r},[`${t}-arrow`]:m({position:"absolute",zIndex:1,display:"block"},x0(i,e.borderRadiusXS,e.borderRadiusOuter,b,y)),[` - &-placement-top > ${t}-arrow, - &-placement-topLeft > ${t}-arrow, - &-placement-topRight > ${t}-arrow - `]:{bottom:r,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[` - &-placement-bottom > ${t}-arrow, - &-placement-bottomLeft > ${t}-arrow, - &-placement-bottomRight > ${t}-arrow - `]:{top:r,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:l}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:l}},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom, - &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight, - &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Cp},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top, - &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight, - &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wp},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, - &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:xp},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Op}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:m(m({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Rr(e)),{[`${n}-item-group-title`]:{padding:`${u}px ${h}px`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:m(m({clear:"both",margin:0,padding:`${u}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Rr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down"),Ha(e,"zoom-big")]]},RT=Ve("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:l,fontSize:i,lineHeight:a,paddingXXS:s,componentCls:c,borderRadiusOuter:u,borderRadiusLG:d}=e,f=(l-i*a)/2,{dropdownArrowOffset:g}=xT({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:u}),v=Fe(e,{menuCls:`${c}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[rY(v),tY(v),oY(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var lY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",f),r("visibleChange",f),r("update:open",f),r("openChange",f)},{prefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),c=P(()=>`${i.value}-button`),[u,d]=RT(i);return()=>{var f,g;const v=m(m({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:O,align:w,open:I,visible:T,onVisibleChange:_,placement:E=a.value==="rtl"?"bottomLeft":"bottomRight",href:A,title:R,icon:z=((g=n.icon)===null||g===void 0?void 0:g.call(n))||p(Wb,null,null),mouseEnterDelay:M,mouseLeaveDelay:B,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L,onClick:k,"onUpdate:open":j}=v,H=lY(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Y={align:w,disabled:b,trigger:b?[]:O,placement:E,getPopupContainer:s==null?void 0:s.value,onOpenChange:l,mouseEnterDelay:M,mouseLeaveDelay:B,open:I??T,overlayClassName:N,overlayStyle:F,destroyPopupOnHide:L},Z=p(zt,{danger:y,type:h,disabled:b,loading:S,onClick:k,htmlType:$,href:A,title:R},{default:n.default}),U=p(zt,{danger:y,type:h,icon:z},null);return u(p(iY,D(D({},H),{},{class:ie(c.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:Z}):Z,p(rr,Y,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var aY={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"};const sY=aY;function _x(e){for(var t=1;tHe(DT,void 0),Kb=e=>{var t,n,o;const{prefixCls:r,mode:l,selectable:i,validator:a,onClick:s,expandIcon:c}=BT()||{};Ge(DT,{prefixCls:P(()=>{var u,d;return(d=(u=e.prefixCls)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:r==null?void 0:r.value}),mode:P(()=>{var u,d;return(d=(u=e.mode)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:l==null?void 0:l.value}),selectable:P(()=>{var u,d;return(d=(u=e.selectable)===null||u===void 0?void 0:u.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),validator:(t=e.validator)!==null&&t!==void 0?t:a,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:c==null?void 0:c.value})},NT=oe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:qe(AT(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,rootPrefixCls:i,direction:a,getPopupContainer:s}=Te("dropdown",e),[c,u]=RT(l),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});Kb({prefixCls:P(()=>`${l.value}-menu`),expandIcon:P(()=>p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{It()}});const f=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};xt(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,I=typeof w<"u"&&Kt(w)?w:p("span",{class:`${l.value}-menu-submenu-arrow`},[p(Wo,{class:`${l.value}-menu-submenu-arrow-icon`},null)]);return Kt(x)?dt(x,{mode:"vertical",selectable:O,expandIcon:()=>I}):x},g=P(()=>{const b=e.placement;if(!b)return a.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return xt(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),v=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=dt(O,m({class:ie((y=O==null?void 0:O.props)===null||y===void 0?void 0:y.class,{[`${l.value}-rtl`]:a.value==="rtl"},`${l.value}-trigger`)},x?{disabled:x}:{})),I=ie(C,u.value,{[`${l.value}-rtl`]:a.value==="rtl"}),T=x?[]:$;let _;T&&T.includes("contextmenu")&&(_=!0);const E=Bb({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),A=et(m(m(m({},e),o),{visible:v.value,builtinPlacements:E,overlayClassName:I,arrow:!!S,alignPoint:_,prefixCls:l.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:T,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return c(p(IT,A,{default:()=>[w],overlay:f}))}}});NT.Button=uc;const rr=NT;var uY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:V.any,dropdownProps:Re(),overlay:V.any,onClick:si()}),dc=oe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:dY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l}=Te("breadcrumb",e),i=(s,c)=>{const u=qt(n,e,"overlay");return u?p(rr,D(D({},e.dropdownProps),{},{overlay:u,placement:"bottom"}),{default:()=>[p("span",{class:`${c}-overlay-link`},[s,p(Ec,null,null)])]}):s},a=s=>{r("click",s)};return()=>{var s;const c=(s=qt(n,e,"separator"))!==null&&s!==void 0?s:"/",u=qt(n,e),{class:d,style:f}=o,g=uY(o,["class","style"]);let v;return e.href!==void 0?v=p("a",D({class:`${l.value}-link`,onClick:a},g),[u]):v=p("span",D({class:`${l.value}-link`,onClick:a},g),[u]),v=i(v,l.value),u!=null?p("li",{class:d,style:f},[v,c&&p("span",{class:`${l.value}-separator`},[c])]):null}}});function fY(e,t,n,o){let r=n?n.call(o,e,t):void 0;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Ge(FT,e)},jr=()=>He(FT),kT=Symbol("ForceRenderKey"),pY=e=>{Ge(kT,e)},zT=()=>He(kT,!1),HT=Symbol("menuFirstLevelContextKey"),jT=e=>{Ge(HT,e)},gY=()=>He(HT,!0),rf=oe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=jr(),r=m({},o);return e.mode!==void 0&&(r.mode=ze(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=ze(e,"overflowDisabled")),LT(r),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),hY=LT,WT=Symbol("siderCollapsed"),VT=Symbol("siderHookProvider"),hu="$$__vc-menu-more__key",KT=Symbol("KeyPathContext"),Gb=()=>He(KT,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),vY=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Gb(),l=P(()=>[...o.value,e]),i=P(()=>[...r.value,t]);return Ge(KT,{parentEventKeys:l,parentKeys:i,parentInfo:n}),i},GT=Symbol("measure"),Ax=oe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Ge(GT,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Xb=()=>He(GT,!1),mY=vY;function XT(e){const{mode:t,rtl:n,inlineIndent:o}=jr();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let bY=0;const yY=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:V.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:Re()}),lr=oe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:yY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=pn(),i=Xb(),a=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;xt(typeof l.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++bY}_$$_${a}`,{parentEventKeys:c,parentKeys:u}=Gb(),{prefixCls:d,activeKeys:f,disabled:g,changeActiveKeys:v,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=jr(),O=gY(),w=te(!1),I=P(()=>[...u.value,a]);x(s,{eventKey:s,key:a,parentEventKeys:c,parentKeys:u,isLeaf:!0}),Ze(()=>{C(s)}),be(f,()=>{w.value=!!f.value.find(j=>j===a)},{immediate:!0});const _=P(()=>g.value||e.disabled),E=P(()=>$.value.includes(a)),A=P(()=>{const j=`${d.value}-item`;return{[`${j}`]:!0,[`${j}-danger`]:e.danger,[`${j}-active`]:w.value,[`${j}-selected`]:E.value,[`${j}-disabled`]:_.value}}),R=j=>({key:a,eventKey:s,keyPath:I.value,eventKeyPath:[...c.value,s],domEvent:j,item:m(m({},e),r)}),z=j=>{if(_.value)return;const H=R(j);o("click",j),S(H)},M=j=>{_.value||(v(I.value),o("mouseenter",j))},B=j=>{_.value||(v([]),o("mouseleave",j))},N=j=>{if(o("keydown",j),j.which===Oe.ENTER){const H=R(j);o("click",j),S(H)}},F=j=>{v(I.value),o("focus",j)},L=(j,H)=>{const Y=p("span",{class:`${d.value}-title-content`},[H]);return(!j||Kt(H)&&H.type==="span")&&H&&b.value&&O&&typeof H=="string"?p("div",{class:`${d.value}-inline-collapsed-noicon`},[H.charAt(0)]):Y},k=XT(P(()=>I.value.length));return()=>{var j,H,Y,Z,U;if(i)return null;const ee=(j=e.title)!==null&&j!==void 0?j:(H=n.title)===null||H===void 0?void 0:H.call(n),G=yt((Y=n.default)===null||Y===void 0?void 0:Y.call(n)),J=G.length;let Q=ee;typeof ee>"u"?Q=O&&J?G:"":ee===!1&&(Q="");const K={title:Q};!y.value&&!b.value&&(K.title=null,K.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=E.value);const pe=(Z=e.icon)!==null&&Z!==void 0?Z:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return p(Yn,D(D({},K),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[p(sa.Item,D(D(D({component:"li"},r),{},{id:e.id,style:m(m({},r.style||{}),k.value),class:[A.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(pe?J+1:J)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},q),{},{onMouseenter:M,onMouseleave:B,onClick:z,onKeydown:N,onFocus:F,title:typeof ee=="string"?ee:void 0}),{default:()=>[dt(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${d.value}-item-icon`},!1),L(pe,G)]})]})}}}),cl={adjustX:1,adjustY:1},SY={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},$Y={topLeft:{points:["bl","tl"],overflow:cl,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:cl,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:cl,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:cl,offset:[4,0]}},CY={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Rx=oe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=te(!1),{getPopupContainer:l,rtl:i,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:c,triggerSubMenuAction:u,forceSubMenuRender:d,motion:f,defaultMotions:g,rootClassName:v}=jr(),h=zT(),b=P(()=>i.value?m(m({},$Y),c.value):m(m({},SY),c.value)),y=P(()=>CY[e.mode]),S=te();be(()=>e.visible,C=>{Ye.cancel(S.value),S.value=Ye(()=>{r.value=C})},{immediate:!0}),Ze(()=>{Ye.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=f.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),I=typeof w=="function"?w():w;return I?Po(I.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:I,disabled:T}=e;return p(wi,{prefixCls:C,popupClassName:ie(`${C}-popup`,{[`${C}-rtl`]:i.value},O,v.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:l.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:I&&{offset:I},action:T?[]:[u.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),UT=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:l,mode:i}=jr();return p("ul",D(D({},o),{},{class:ie(l.value,`${l.value}-sub`,`${l.value}-${i.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};UT.displayName="SubMenuList";const YT=UT,xY=oe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:l,defaultMotions:i}=jr(),a=P(()=>l.value===o.value),s=le(!a.value),c=P(()=>a.value?e.open:!1);be(l,()=>{a.value&&(s.value=!1)},{flush:"post"});const u=P(()=>{var d,f;const g=r.value||((d=i.value)===null||d===void 0?void 0:d[o.value])||((f=i.value)===null||f===void 0?void 0:f.other),v=typeof g=="function"?g():g;return m(m({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:p(rf,{mode:o.value},{default:()=>[p(cn,u.value,{default:()=>[$n(p(YT,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[En,c.value]])]})]})}}});let Dx=0;const wY=()=>({icon:V.any,title:V.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:Re()}),fi=oe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:wY(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var l,i;jT(!1);const a=Xb(),s=pn(),c=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;xt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(c)}"\` not support Symbol type`);const u=fv(c)?c:`sub_menu_${++Dx}_$$_not_set_key`,d=(l=e.eventKey)!==null&&l!==void 0?l:fv(c)?`sub_menu_${++Dx}_$$_${c}`:u,{parentEventKeys:f,parentInfo:g,parentKeys:v}=Gb(),h=P(()=>[...v.value,u]),b=te([]),y={eventKey:d,key:u,parentEventKeys:f,childrenEventKeys:b,parentKeys:v};(i=g.childrenEventKeys)===null||i===void 0||i.value.push(d),Ze(()=>{var de;g.childrenEventKeys&&(g.childrenEventKeys.value=(de=g.childrenEventKeys)===null||de===void 0?void 0:de.value.filter(ge=>ge!=d))}),mY(d,u,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:I,overflowDisabled:T,onOpenChange:_,registerMenuInfo:E,unRegisterMenuInfo:A,selectedSubMenuKeys:R,expandIcon:z,theme:M}=jr(),B=c!=null,N=!a&&(zT()||!B);pY(N),(a&&B||!a&&!B||N)&&(E(d,y),Ze(()=>{A(d)}));const F=P(()=>`${S.value}-submenu`),L=P(()=>x.value||e.disabled),k=te(),j=te(),H=P(()=>I.value.includes(u)),Y=P(()=>!T.value&&H.value),Z=P(()=>R.value.includes(u)),U=te(!1);be($,()=>{U.value=!!$.value.find(de=>de===u)},{immediate:!0});const ee=de=>{L.value||(r("titleClick",de,u),O.value==="inline"&&_(u,!H.value))},G=de=>{L.value||(C(h.value),r("mouseenter",de))},J=de=>{L.value||(C([]),r("mouseleave",de))},Q=XT(P(()=>h.value.length)),K=de=>{O.value!=="inline"&&_(u,de)},q=()=>{C(h.value)},pe=d&&`${d}-popup`,W=P(()=>ie(S.value,`${S.value}-${e.theme||M.value}`,e.popupClassName)),X=(de,ge)=>{if(!ge)return w.value&&!v.value.length&&de&&typeof de=="string"?p("div",{class:`${S.value}-inline-collapsed-noicon`},[de.charAt(0)]):p("span",{class:`${S.value}-title-content`},[de]);const me=Kt(de)&&de.type==="span";return p(We,null,[dt(typeof ge=="function"?ge(e.originItemValue):ge,{class:`${S.value}-item-icon`},!1),me?de:p("span",{class:`${S.value}-title-content`},[de])])},ne=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ae=P(()=>O.value==="horizontal"?"vertical":O.value),se=P(()=>ne.value==="horizontal"?"vertical":ne.value),re=()=>{var de,ge;const me=F.value,fe=(de=e.icon)!==null&&de!==void 0?de:(ge=n.icon)===null||ge===void 0?void 0:ge.call(n,e),ye=e.expandIcon||n.expandIcon||z.value,Se=X(qt(n,e,"title"),fe);return p("div",{style:Q.value,class:`${me}-title`,tabindex:L.value?null:-1,ref:k,title:typeof Se=="string"?Se:null,"data-menu-id":u,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":pe,"aria-disabled":L.value,onClick:ee,onFocus:q},[Se,O.value!=="horizontal"&&ye?ye(m(m({},e),{isOpen:Y.value})):p("i",{class:`${me}-arrow`},null)])};return()=>{var de;if(a)return B?(de=n.default)===null||de===void 0?void 0:de.call(n):null;const ge=F.value;let me=()=>null;if(!T.value&&O.value!=="inline"){const fe=O.value==="horizontal"?[0,8]:[10,0];me=()=>p(Rx,{mode:ne.value,prefixCls:ge,visible:!e.internalPopupClose&&Y.value,popupClassName:W.value,popupOffset:e.popupOffset||fe,disabled:L.value,onVisibleChange:K},{default:()=>[re()],popup:()=>p(rf,{mode:se.value},{default:()=>[p(YT,{id:pe,ref:j},{default:n.default})]})})}else me=()=>p(Rx,null,{default:re});return p(rf,{mode:ae.value},{default:()=>[p(sa.Item,D(D({component:"li"},o),{},{role:"none",class:ie(ge,`${ge}-${O.value}`,o.class,{[`${ge}-open`]:Y.value,[`${ge}-active`]:U.value,[`${ge}-selected`]:Z.value,[`${ge}-disabled`]:L.value}),onMouseenter:G,onMouseleave:J,"data-submenu-id":u}),{default:()=>p(We,null,[me(),!T.value&&p(xY,{id:pe,open:Y.value,keyPath:h.value},{default:n.default})])})]})}}});function qT(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function lf(e,t){e.classList?e.classList.add(t):qT(e,t)||(e.className=`${e.className} ${t}`)}function af(e,t){if(e.classList)e.classList.remove(t);else if(qT(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const OY=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",lf(n,e)},onEnter:n=>{ot(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(af(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{lf(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(af(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},Rc=OY,PY=()=>({title:V.any,originItemValue:Re()}),fc=oe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:PY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=jr(),l=P(()=>`${r.value}-item-group`),i=Xb();return()=>{var a,s;return i?(a=n.default)===null||a===void 0?void 0:a.call(n):p("li",D(D({},o),{},{onClick:c=>c.stopPropagation(),class:l.value}),[p("div",{title:typeof e.title=="string"?e.title:void 0,class:`${l.value}-title`},[qt(n,e,"title")]),p("ul",{class:`${l.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),IY=()=>({prefixCls:String,dashed:Boolean}),pc=oe({compatConfig:{MODE:3},name:"AMenuDivider",props:IY(),setup(e){const{prefixCls:t}=jr(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>p("li",{class:n.value},null)}});var TY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const l=o,{label:i,children:a,key:s,type:c}=l,u=TY(l,["label","children","key","type"]),d=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:d,key:d,parentEventKeys:le(f),parentKeys:le(f),childrenEventKeys:le(g),isLeaf:!1};if(a||c==="group"){if(c==="group"){const b=Hv(a,t,n);return p(fc,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[b]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const h=Hv(a,t,{childrenEventKeys:g,parentKeys:[].concat(f,d)});return p(fi,D(D({key:d},u),{},{title:i,originItemValue:o}),{default:()=>[h]})}return c==="divider"?p(pc,D({key:d},u),null):(v.isLeaf=!0,t.set(d,v),p(lr,D(D({key:d},u),{},{originItemValue:o}),{default:()=>[i]}))}return null}).filter(o=>o)}function EY(e){const t=te([]),n=te(!1),o=te(new Map);return be(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Hv(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const MY=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:l,lineType:i,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${l}px ${i} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},_Y=MY,AY=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},RY=AY,Bx=e=>m({},Ar(e)),DY=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:l,colorItemBg:i,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:c,colorActiveBarWidth:u,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:I,colorDangerItemBgSelected:T,colorItemBgHover:_,menuSubMenuBg:E,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:R}=e;return{[`${n}-${t}`]:{color:o,background:i,[`&${n}-root:focus-visible`]:m({},Bx(e)),[`${n}-item-group-title`]:{color:l},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:m({},Bx(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:m(m({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${c}px solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:c,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:R,"&::after":{borderBottomWidth:c,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&u?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${u}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},Nx=DY,Fx=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:l,marginXS:i,marginXXS:a}=e,s=r+l+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:s}}},BY=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:l,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:c,fontSizeSM:u,fontSizeLG:d,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:v}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":m({[`&${t}-root`]:{boxShadow:"none"}},Fx(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:m(m({},Fx(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:l,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${u}px)`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:m(m({},Gt),{paddingInline:g})}}]},NY=BY,Lx=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:l,motionEaseOut:i,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${l}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${i}`,`margin ${o} ${l}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${l}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:m({},yi()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kx=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:l,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:l,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:l*.6,height:l*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},FY=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:l,motionEaseInOut:i,lineHeight:a,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:h,menuArrowOffset:b,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:m(m({},zo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:m(m(m(m(m(m(m({},Xe(e)),zo()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${c}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${i}`,`background ${r} ${i}`,`padding ${l} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${i}`,`padding ${r} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lx(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${c}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:m(m(m({borderRadius:g},Lx(e)),kx(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${i}`}})}}),kx(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},LY=(e,t)=>Ve("Menu",(o,r)=>{let{overrideComponentToken:l}=r;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:i,colorPrimary:a,colorError:s,colorErrorHover:c,colorTextLightSolid:u}=o,{controlHeightLG:d,fontSize:f}=o,g=f/7*5,v=Fe(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),h=new gt(u).setAlpha(.65).toRgbString(),b=Fe(v,{colorItemText:h,colorItemTextHover:u,colorGroupTitle:h,colorItemTextSelected:u,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new gt(u).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:c,colorDangerItemTextSelected:u,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:u,colorItemBgSelectedHorizontal:a},m({},l));return[FY(v),_Y(v),NY(v),Nx(v,"light"),Nx(b,"dark"),RY(v),Ac(v),sr(v,"slide-up"),sr(v,"slide-down"),Ha(v,"zoom-big")]},o=>{const{colorPrimary:r,colorError:l,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:c,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:u,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:i,colorDangerItemText:l,colorDangerItemTextHover:l,colorDangerItemTextSelected:l,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e),kY=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),zx=[],Vt=oe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:kY(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:l,getPrefixCls:i}=Te("menu",e),a=BT(),s=P(()=>{var G;return i("menu",e.prefixCls||((G=a==null?void 0:a.prefixCls)===null||G===void 0?void 0:G.value))}),[c,u]=LY(s,P(()=>!a)),d=te(new Map),f=He(WT,le(void 0)),g=P(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=EY(e),h=te(!1);je(()=>{h.value=!0}),ke(()=>{xt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),xt(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=le([]),y=le([]),S=le({});be(d,()=>{const G={};for(const J of d.value.values())G[J.key]=J;S.value=G},{flush:"post"}),ke(()=>{if(e.activeKey!==void 0){let G=[];const J=e.activeKey?S.value[e.activeKey]:void 0;J&&e.activeKey!==void 0?G=Zg([].concat($t(J.parentKeys),e.activeKey)):G=[],Wi(b.value,G)||(b.value=G)}}),be(()=>e.selectedKeys,G=>{G&&(y.value=G.slice())},{immediate:!0,deep:!0});const $=le([]);be([S,y],()=>{let G=[];y.value.forEach(J=>{const Q=S.value[J];Q&&(G=G.concat($t(Q.parentKeys)))}),G=Zg(G),Wi($.value,G)||($.value=G)},{immediate:!0});const x=G=>{if(e.selectable){const{key:J}=G,Q=y.value.includes(J);let K;e.multiple?Q?K=y.value.filter(pe=>pe!==J):K=[...y.value,J]:K=[J];const q=m(m({},G),{selectedKeys:K});Wi(K,y.value)||(e.selectedKeys===void 0&&(y.value=K),o("update:selectedKeys",K),Q&&e.multiple?o("deselect",q):o("select",q))}_.value!=="inline"&&!e.multiple&&C.value.length&&R(zx)},C=le([]);be(()=>e.openKeys,function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;Wi(C.value,G)||(C.value=G.slice())},{immediate:!0,deep:!0});let O;const w=G=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=G),o("update:activeKey",G[G.length-1])})},I=P(()=>!!e.disabled),T=P(()=>l.value==="rtl"),_=le("vertical"),E=te(!1);ke(()=>{var G;(e.mode==="inline"||e.mode==="vertical")&&g.value?(_.value="vertical",E.value=g.value):(_.value=e.mode,E.value=!1),!((G=a==null?void 0:a.mode)===null||G===void 0)&&G.value&&(_.value=a.mode.value)});const A=P(()=>_.value==="inline"),R=G=>{C.value=G,o("update:openKeys",G),o("openChange",G)},z=le(C.value),M=te(!1);be(C,()=>{A.value&&(z.value=C.value)},{immediate:!0}),be(A,()=>{if(!M.value){M.value=!0;return}A.value?C.value=z.value:R(zx)},{immediate:!0});const B=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${_.value}`]:!0,[`${s.value}-inline-collapsed`]:E.value,[`${s.value}-rtl`]:T.value,[`${s.value}-${e.theme}`]:!0})),N=P(()=>i()),F=P(()=>({horizontal:{name:`${N.value}-slide-up`},inline:Rc(`${N.value}-motion-collapse`),other:{name:`${N.value}-zoom-big`}}));jT(!0);const L=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const J=[],Q=d.value;return G.forEach(K=>{const{key:q,childrenEventKeys:pe}=Q.get(K);J.push(q,...L($t(pe)))}),J},k=G=>{var J;o("click",G),x(G),(J=a==null?void 0:a.onClick)===null||J===void 0||J.call(a)},j=(G,J)=>{var Q;const K=((Q=S.value[G])===null||Q===void 0?void 0:Q.childrenEventKeys)||[];let q=C.value.filter(pe=>pe!==G);if(J)q.push(G);else if(_.value!=="inline"){const pe=L($t(K));q=Zg(q.filter(W=>!pe.includes(W)))}Wi(C,q)||R(q)},H=(G,J)=>{d.value.set(G,J),d.value=new Map(d.value)},Y=G=>{d.value.delete(G),d.value=new Map(d.value)},Z=le(0),U=P(()=>{var G;return e.expandIcon||n.expandIcon||!((G=a==null?void 0:a.expandIcon)===null||G===void 0)&&G.value?J=>{let Q=e.expandIcon||n.expandIcon;return Q=typeof Q=="function"?Q(J):Q,dt(Q,{class:`${s.value}-submenu-expand-icon`},!1)}:null});hY({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:I,rtl:T,mode:_,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:E,theme:P(()=>e.theme),siderCollapsed:f,defaultMotions:P(()=>h.value?F.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:te(void 0),onOpenChange:j,onItemClick:k,registerMenuInfo:H,unRegisterMenuInfo:Y,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:u});const ee=()=>{var G;return v.value||yt((G=n.default)===null||G===void 0?void 0:G.call(n))};return()=>{var G;const J=ee(),Q=Z.value>=J.length-1||_.value!=="horizontal"||e.disabledOverflow,K=pe=>_.value!=="horizontal"||e.disabledOverflow?pe:pe.map((W,X)=>p(rf,{key:W.key,overflowDisabled:X>Z.value},{default:()=>W})),q=((G=n.overflowedIndicator)===null||G===void 0?void 0:G.call(n))||p(Wb,null,null);return c(p(sa,D(D({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:lr,class:[B.value,r.class,u.value],role:"menu",id:e.id,data:K(J),renderRawItem:pe=>pe,renderRawRest:pe=>{const W=pe.length,X=W?J.slice(-W):null;return p(We,null,[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X}),p(Ax,null,{default:()=>[p(fi,{eventKey:hu,key:hu,title:q,disabled:Q,internalPopupClose:W===0},{default:()=>X})]})])},maxCount:_.value!=="horizontal"||e.disabledOverflow?sa.INVALIDATE:sa.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:pe=>{Z.value=pe}}),{default:()=>[p(Jm,{to:"body"},{default:()=>[p("div",{style:{display:"none"},"aria-hidden":!0},[p(Ax,null,{default:()=>[K(ee())]})])]})]}))}}});Vt.install=function(e){return e.component(Vt.name,Vt),e.component(lr.name,lr),e.component(fi.name,fi),e.component(pc.name,pc),e.component(fc.name,fc),e};Vt.Item=lr;Vt.Divider=pc;Vt.SubMenu=fi;Vt.ItemGroup=fc;const zY=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:m({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Rr(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` - > ${n} + span, - > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},HY=Ve("Breadcrumb",e=>{const t=Fe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[zY(t)]}),jY=()=>({prefixCls:String,routes:{type:Array},params:V.any,separator:V.any,itemRender:{type:Function}});function WY(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,l)=>t[l]||r)}function Hx(e){const{route:t,params:n,routes:o,paths:r}=e,l=o.indexOf(t)===o.length-1,i=WY(t,n);return l?p("span",null,[i]):p("a",{href:`#/${r.join("/")}`},[i])}const oi=oe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:jY(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("breadcrumb",e),[i,a]=HY(r),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(g=>{d=d.replace(`:${g}`,f[g])}),d),c=(d,f,g)=>{const v=[...d],h=s(f||"",g);return h&&v.push(h),v},u=d=>{let{routes:f=[],params:g={},separator:v,itemRender:h=Hx}=d;const b=[];return f.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=p(Vt,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:f,paths:c($,O.path,g)})}))},null));const C={separator:v};return x&&(C.overlay=x),p(dc,D(D({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:f,paths:$})]})})};return()=>{var d;let f;const{routes:g,params:v={}}=e,h=yt(qt(n,e)),b=(d=qt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||Hx;g&&g.length>0?f=u({routes:g,params:v,separator:b,itemRender:y}):h.length&&(f=h.map(($,x)=>(It(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),sn($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:l.value==="rtl",[`${o.class}`]:!!o.class,[a.value]:!0};return i(p("nav",D(D({},o),{},{class:S}),[p("ol",null,[f])]))}}});var VY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),sf=oe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:KY(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("breadcrumb",e);return()=>{var l;const{separator:i,class:a}=o,s=VY(o,["separator","class"]),c=yt((l=n.default)===null||l===void 0?void 0:l.call(n));return p("span",D({class:[`${r.value}-separator`,a]},s),[c.length>0?c:"/"])}}});oi.Item=dc;oi.Separator=sf;oi.install=function(e){return e.component(oi.name,oi),e.component(dc.name,dc),e.component(sf.name,sf),e};var Pl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ZT={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n=1e3,o=6e4,r=36e5,l="millisecond",i="second",a="minute",s="hour",c="day",u="week",d="month",f="quarter",g="year",v="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,S={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(z){var M=["th","st","nd","rd"],B=z%100;return"["+z+(M[(B-20)%10]||M[B]||M[0])+"]"}},$=function(z,M,B){var N=String(z);return!N||N.length>=M?z:""+Array(M+1-N.length).join(B)+z},x={s:$,z:function(z){var M=-z.utcOffset(),B=Math.abs(M),N=Math.floor(B/60),F=B%60;return(M<=0?"+":"-")+$(N,2,"0")+":"+$(F,2,"0")},m:function z(M,B){if(M.date()1)return z(k[0])}else{var j=M.name;O[j]=M,F=j}return!N&&F&&(C=F),F||!N&&C},_=function(z,M){if(I(z))return z.clone();var B=typeof M=="object"?M:{};return B.date=z,B.args=arguments,new A(B)},E=x;E.l=T,E.i=I,E.w=function(z,M){return _(z,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=function(){function z(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[w]=!0}var M=z.prototype;return M.parse=function(B){this.$d=function(N){var F=N.date,L=N.utc;if(F===null)return new Date(NaN);if(E.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var k=F.match(b);if(k){var j=k[2]-1||0,H=(k[7]||"0").substring(0,3);return L?new Date(Date.UTC(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)):new Date(k[1],j,k[3]||1,k[4]||0,k[5]||0,k[6]||0,H)}}return new Date(F)}(B),this.init()},M.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(B,N){var F=_(B);return this.startOf(N)<=F&&F<=this.endOf(N)},M.isAfter=function(B,N){return _(B)25){var u=i(this).startOf(o).add(1,o).date(c),d=i(this).endOf(n);if(u.isBefore(d))return 1}var f=i(this).startOf(o).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?i(this).startOf("week").week():Math.ceil(g)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(e6);var ZY=e6.exports;const QY=Il(ZY);var t6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),l=this.week(),i=this.year();return l===1&&r===11?i+1:r===0&&l>=52?i-1:i}}})})(t6);var JY=t6.exports;const eq=Il(JY);var n6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n="month",o="quarter";return function(r,l){var i=l.prototype;i.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var a=i.add;i.add=function(c,u){return c=Number(c),this.$utils().p(u)===o?this.add(3*c,n):a.bind(this)(c,u)};var s=i.startOf;i.startOf=function(c,u){var d=this.$utils(),f=!!d.u(u)||u;if(d.p(c)===o){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(c,u)}}})})(n6);var tq=n6.exports;const nq=Il(tq);var o6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){return function(n,o){var r=o.prototype,l=r.format;r.format=function(i){var a=this,s=this.$locale();if(!this.isValid())return l.bind(this)(i);var c=this.$utils(),u=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return c.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}});return l.bind(this)(u)}}})})(o6);var oq=o6.exports;const rq=Il(oq);var r6={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Pl,function(){var n={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,l=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(y){this[b]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),$=60*S[1]+(+S[2]||0);return $===0?0:S[0]==="+"?-$:$}(b)}],f=function(b){var y=s[b];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(b,y){var S,$=s.meridiem;if($){for(var x=1;x<=24;x+=1)if(b.indexOf($(x,0,y))>-1){S=x>12;break}}else S=b===(y?"pm":"PM");return S},v={A:[a,function(b){this.afternoon=g(b,!1)}],a:[a,function(b){this.afternoon=g(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[l,u("day")],Do:[a,function(b){var y=s.ordinal,S=b.match(/\d+/);if(this.day=S[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===b&&(this.day=$)}],w:[i,u("week")],ww:[l,u("week")],M:[i,u("month")],MM:[l,u("month")],MMM:[a,function(b){var y=f("months"),S=(f("monthsShort")||y.map(function($){return $.slice(0,3)})).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[a,function(b){var y=f("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function h(b){var y,S;y=b,S=s&&s.formats;for(var $=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(_,E,A){var R=A&&A.toUpperCase();return E||S[A]||n[A]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(z,M,B){return M||B.slice(1)})})).match(o),x=$.length,C=0;C-1)return new Date((F==="X"?1e3:1)*N);var j=h(F)(N),H=j.year,Y=j.month,Z=j.day,U=j.hours,ee=j.minutes,G=j.seconds,J=j.milliseconds,Q=j.zone,K=j.week,q=new Date,pe=Z||(H||Y?1:q.getDate()),W=H||q.getFullYear(),X=0;H&&!Y||(X=Y>0?Y-1:q.getMonth());var ne,ae=U||0,se=ee||0,re=G||0,de=J||0;return Q?new Date(Date.UTC(W,X,pe,ae,se,re,de+60*Q.offset*1e3)):L?new Date(Date.UTC(W,X,pe,ae,se,re,de)):(ne=new Date(W,X,pe,ae,se,re,de),K&&(ne=k(ne).week(K).toDate()),ne)}catch{return new Date("")}}(O,T,w,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),A&&O!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var z=T.length,M=1;M<=z;M+=1){I[1]=T[M-1];var B=S.apply(this,I);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}M===z&&(this.$d=new Date(""))}else x.call(this,C)}}})})(r6);var lq=r6.exports;const iq=Il(lq);ln.extend(iq);ln.extend(rq);ln.extend(UY);ln.extend(qY);ln.extend(QY);ln.extend(eq);ln.extend(nq);ln.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(l){const i=(l||"").replace("Wo","wo");return o.bind(this)(i)}});const aq={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Bl=e=>aq[e]||e.split("_")[0],jx=()=>{ID(!1,"Not match any format. Please help to fire a issue about this.")},sq=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function Wx(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let l=0;lt)return i;r+=n.length}}const Vx=(e,t)=>{if(!e)return null;if(ln.isDayjs(e))return e;const n=t.matchAll(sq);let o=ln(e,t);if(n===null)return o;for(const r of n){const l=r[0],i=r.index;if(l==="Q"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(l.toLowerCase()==="wo"){const a=e.slice(i-1,i),s=Wx(e,i,a).match(/\d+/)[0];o=o.week(parseInt(s))}l.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(i,i+l.length)))),l.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(i,i+l.length+1))))}return o},cq={getNow:()=>ln(),getFixedDate:e=>ln(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>ln().locale(Bl(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Bl(e)).weekday(0),getWeek:(e,t)=>t.locale(Bl(e)).week(),getShortWeekDays:e=>ln().locale(Bl(e)).localeData().weekdaysMin(),getShortMonths:e=>ln().locale(Bl(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Bl(e)).format(n),parse:(e,t,n)=>{const o=Bl(e);for(let r=0;rArray.isArray(e)?e.map(n=>Vx(n,t)):Vx(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>ln.isDayjs(n)?n.format(t):n):ln.isDayjs(e)?e.format(t):e},Ub=cq;function Xt(e){const t=D_();return m(m({},e),t)}const l6=Symbol("PanelContextProps"),Yb=e=>{Ge(l6,e)},cr=()=>He(l6,{}),vu={visibility:"hidden"};function Tl(e,t){let{slots:n}=t;var o;const r=Xt(e),{prefixCls:l,prevIcon:i="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:c="»",onSuperPrev:u,onSuperNext:d,onPrev:f,onNext:g}=r,{hideNextBtn:v,hidePrevBtn:h}=cr();return p("div",{class:l},[u&&p("button",{type:"button",onClick:u,tabindex:-1,class:`${l}-super-prev-btn`,style:h.value?vu:{}},[s]),f&&p("button",{type:"button",onClick:f,tabindex:-1,class:`${l}-prev-btn`,style:h.value?vu:{}},[i]),p("div",{class:`${l}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&p("button",{type:"button",onClick:g,tabindex:-1,class:`${l}-next-btn`,style:v.value?vu:{}},[a]),d&&p("button",{type:"button",onClick:d,tabindex:-1,class:`${l}-super-next-btn`,style:v.value?vu:{}},[c])])}Tl.displayName="Header";Tl.inheritAttrs=!1;function qb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:l,onNextDecades:i}=t,{hideHeader:a}=cr();if(a)return null;const s=`${n}-header`,c=o.getYear(r),u=Math.floor(c/Pr)*Pr,d=u+Pr-1;return p(Tl,D(D({},t),{},{prefixCls:s,onSuperPrev:l,onSuperNext:i}),{default:()=>[u,Lt("-"),d]})}qb.displayName="DecadeHeader";qb.inheritAttrs=!1;function i6(e,t,n,o,r){let l=e.setHour(t,n);return l=e.setMinute(l,o),l=e.setSecond(l,r),l}function Vu(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function uq(e,t,n,o,r,l){const i=Math.floor(e/o)*o;if(i{z.stopPropagation(),A||o(E)},onMouseenter:()=>{!A&&y&&y(E)},onMouseleave:()=>{!A&&S&&S(E)}},[f?f(E):p("div",{class:`${x}-inner`},[d(E)])]))}C.push(p("tr",{key:O,class:s&&s(I)},[w]))}return p("div",{class:`${t}-body`},[p("table",{class:`${t}-content`},[b&&p("thead",null,[p("tr",null,[b])]),p("tbody",null,[C])])])}Oi.displayName="PanelBody";Oi.inheritAttrs=!1;const jv=3,Kx=4;function Zb(e){const t=Xt(e),n=Ro-1,{prefixCls:o,viewDate:r,generateConfig:l}=t,i=`${o}-cell`,a=l.getYear(r),s=Math.floor(a/Ro)*Ro,c=Math.floor(a/Pr)*Pr,u=c+Pr-1,d=l.setYear(r,c-Math.ceil((jv*Kx*Ro-Pr)/2)),f=g=>{const v=l.getYear(g),h=v+n;return{[`${i}-in-view`]:c<=v&&h<=u,[`${i}-selected`]:v===s}};return p(Oi,D(D({},t),{},{rowNum:Kx,colNum:jv,baseDate:d,getCellText:g=>{const v=l.getYear(g);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(g,v)=>l.addYear(g,v*Ro)}),null)}Zb.displayName="DecadeBody";Zb.inheritAttrs=!1;const mu=new Map;function fq(e,t){let n;function o(){op(e)?t():n=Ye(()=>{o()})}return o(),()=>{Ye.cancel(n)}}function Wv(e,t,n){if(mu.get(e)&&Ye.cancel(mu.get(e)),n<=0){mu.set(e,Ye(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;mu.set(e,Ye(()=>{e.scrollTop+=r,e.scrollTop!==t&&Wv(e,t,n-10)}))}function Ka(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:l,onEnter:i}=t;const{which:a,ctrlKey:s,metaKey:c}=e;switch(a){case Oe.LEFT:if(s||c){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Oe.RIGHT:if(s||c){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Oe.UP:if(r)return r(-1),!0;break;case Oe.DOWN:if(r)return r(1),!0;break;case Oe.PAGE_UP:if(l)return l(-1),!0;break;case Oe.PAGE_DOWN:if(l)return l(1),!0;break;case Oe.ENTER:if(i)return i(),!0;break}return!1}function a6(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function s6(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let os=null;const bu=new Set;function pq(e){return!os&&typeof window<"u"&&window.addEventListener&&(os=t=>{[...bu].forEach(n=>{n(t)})},window.addEventListener("mousedown",os)),bu.add(e),()=>{bu.delete(e),bu.size===0&&(window.removeEventListener("mousedown",os),os=null)}}function gq(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const hq=e=>e==="month"||e==="date"?"year":e,vq=e=>e==="date"?"month":e,mq=e=>e==="month"||e==="date"?"quarter":e,bq=e=>e==="date"?"week":e,yq={year:hq,month:vq,quarter:mq,week:bq,time:null,date:null};function c6(e,t){return e.some(n=>n&&n.contains(t))}const Ro=10,Pr=Ro*10;function Qb(e){const t=Xt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:l,operationRef:i,onSelect:a,onPanelChange:s}=t,c=`${n}-decade-panel`;i.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{a(r.addYear(l,g*Ro),"key")},onCtrlLeftRight:g=>{a(r.addYear(l,g*Pr),"key")},onUpDown:g=>{a(r.addYear(l,g*Ro*jv),"key")},onEnter:()=>{s("year",l)}})};const u=f=>{const g=r.addYear(l,f*Pr);o(g),s(null,g)},d=f=>{a(f,"mouse"),s("year",f)};return p("div",{class:c},[p(qb,D(D({},t),{},{prefixCls:n,onPrevDecades:()=>{u(-1)},onNextDecades:()=>{u(1)}}),null),p(Zb,D(D({},t),{},{prefixCls:n,onSelect:d}),null)])}Qb.displayName="DecadePanel";Qb.inheritAttrs=!1;const Ku=7;function Pi(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function Sq(e,t,n){const o=Pi(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),l=Math.floor(e.getYear(n)/10);return r===l}function Tp(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function Vv(e,t){return Math.floor(e.getMonth(t)/3)+1}function u6(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&Vv(e,t)===Vv(e,n)}function Jb(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:Tp(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Ir(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function $q(e,t,n){const o=Pi(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function d6(e,t,n,o){const r=Pi(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function ua(e,t,n){return Ir(e,t,n)&&$q(e,t,n)}function yu(e,t,n,o){return!t||!n||!o?!1:!Ir(e,t,o)&&!Ir(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function Cq(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),l=t.getWeekDay(r);let i=t.addDate(r,o-l);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function As(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function yn(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function f6(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function Kv(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const l=(i,a,s)=>{let c=a;for(;c<=s;){let u;switch(i){case"date":{if(u=r.setDate(t,c),!o(u))return!1;break}case"month":{if(u=r.setMonth(t,c),!Kv({cellDate:u,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(u=r.setYear(t,c),!Kv({cellDate:u,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}c+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const a=r.getDate(r.getEndDate(t));return l("date",1,a)}case"quarter":{const i=Math.floor(r.getMonth(t)/3)*3,a=i+2;return l("month",i,a)}case"year":return l("month",0,11);case"decade":{const i=r.getYear(t),a=Math.floor(i/Ro)*Ro,s=a+Ro-1;return l("year",a,s)}}}function ey(e){const t=Xt(e),{hideHeader:n}=cr();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:l,value:i,format:a}=t,s=`${o}-header`;return p(Tl,{prefixCls:s},{default:()=>[i?yn(i,{locale:l,format:a,generateConfig:r}):" "]})}ey.displayName="TimeHeader";ey.inheritAttrs=!1;const Su=oe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=cr(),n=te(null),o=le(new Map),r=le();return be(()=>e.value,()=>{const l=o.value.get(e.value);l&&t.value!==!1&&Wv(n.value,l.offsetTop,120)}),Ze(()=>{var l;(l=r.value)===null||l===void 0||l.call(r)}),be(t,()=>{var l;(l=r.value)===null||l===void 0||l.call(r),ot(()=>{if(t.value){const i=o.value.get(e.value);i&&(r.value=fq(i,()=>{Wv(n.value,i.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:l,units:i,onSelect:a,value:s,active:c,hideDisabledOptions:u}=e,d=`${l}-cell`;return p("ul",{class:ie(`${l}-column`,{[`${l}-column-active`]:c}),ref:n,style:{position:"relative"}},[i.map(f=>u&&f.disabled?null:p("li",{key:f.value,ref:g=>{o.value.set(f.value,g)},class:ie(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||a(f.value)}},[p("div",{class:`${d}-inner`},[f.label])]))])}}});function p6(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function mt(e,t){return e?e[t]:null}function bo(e,t,n){const o=[mt(e,0),mt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function lh(e,t,n,o){const r=[];for(let l=e;l<=t;l+=n)r.push({label:p6(l,2),value:l,disabled:(o||[]).includes(l)});return r}const wq=oe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),l=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),i=le(e.generateConfig.getNow()),a=le(),s=le(),c=le();Lf(()=>{i.value=e.generateConfig.getNow()}),ke(()=>{if(e.disabledTime){const b=e.disabledTime(i);[a.value,s.value,c.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[a.value,s.value,c.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const u=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=i6(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return lh(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,a.value&&a.value())}),f=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":p6(y,2);return m(m({},b),{label:S,value:y})}):d.value),v=P(()=>{var b;return lh(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return lh(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,c.value&&c.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:I}=e,T=[],_=`${b}-content`,E=`${b}-time-panel`;y.value={onUpDown:z=>{const M=T[S];if(M){const B=M.units.findIndex(F=>F.value===M.value),N=M.units.length;for(let F=1;F{I(u(n.value,z,r.value,l.value),"mouse")}),A(x,p(Su,{key:"minute"},null),r.value,v.value,z=>{I(u(n.value,o.value,z,l.value),"mouse")}),A(C,p(Su,{key:"second"},null),l.value,h.value,z=>{I(u(n.value,o.value,r.value,z),"mouse")});let R=-1;return typeof n.value=="boolean"&&(R=n.value?1:0),A(O===!0,p(Su,{key:"12hours"},null),R,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],z=>{I(u(!!z,o.value,r.value,l.value),"mouse")}),p("div",{class:_},[T.map(z=>{let{node:M}=z;return M})])}}}),Oq=wq,Pq=e=>e.filter(t=>t!==!1).length;function Ep(e){const t=Xt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:l,operationRef:i,showHour:a,showMinute:s,showSecond:c,use12Hours:u=!1,onSelect:d,value:f}=t,g=`${r}-time-panel`,v=le(),h=le(-1),b=Pq([a,s,c,u]);return i.value={onKeydown:y=>Ka(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:v.value&&v.value.onUpDown(S)},onEnter:()=>{d(f||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ey,D(D({},t),{},{format:o,prefixCls:r}),null),p(Oq,D(D({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:v}),null)])}Ep.displayName="TimePanel";Ep.inheritAttrs=!1;function Mp(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:l,isSameCell:i,offsetCell:a,today:s,value:c}=e;function u(d){const f=a(d,-1),g=a(d,1),v=mt(o,0),h=mt(o,1),b=mt(r,0),y=mt(r,1),S=yu(n,b,y,d);function $(T){return i(v,T)}function x(T){return i(h,T)}const C=i(b,d),O=i(y,d),w=(S||O)&&(!l(f)||x(f)),I=(S||C)&&(!l(g)||$(g));return{[`${t}-in-view`]:l(d),[`${t}-in-range`]:yu(n,v,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!v,[`${t}-range-start-near-hover`]:$(d)&&(i(f,b)||yu(n,b,y,f)),[`${t}-range-end-near-hover`]:x(d)&&(i(g,y)||yu(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:I,[`${t}-range-hover-edge-start-near-range`]:w&&i(f,h),[`${t}-range-hover-edge-end-near-range`]:I&&i(g,v),[`${t}-today`]:i(s,d),[`${t}-selected`]:i(c,d)}}return u}const v6=Symbol("RangeContextProps"),Iq=e=>{Ge(v6,e)},Dc=()=>He(v6,{rangedValue:le(),hoverRangedValue:le(),inRange:le(),panelPosition:le()}),Tq=oe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:le(e.value.rangedValue),hoverRangedValue:le(e.value.hoverRangedValue),inRange:le(e.value.inRange),panelPosition:le(e.value.panelPosition)};return Iq(o),be(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function _p(e){const t=Xt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:l,rowCount:i,viewDate:a,value:s,dateRender:c}=t,{rangedValue:u,hoverRangedValue:d}=Dc(),f=Cq(l.locale,o,a),g=`${n}-cell`,v=o.locale.getWeekFirstDay(l.locale),h=o.getNow(),b=[],y=l.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(l.locale):[]);r&&b.push(p("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xIr(o,x,C),isInView:x=>Jb(o,x,a),offsetCell:(x,C)=>o.addDate(x,C)}),$=c?x=>c({current:x,today:h}):void 0;return p(Oi,D(D({},t),{},{rowNum:i,colNum:Ku,baseDate:f,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>yn(x,{locale:l,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}_p.displayName="DateBody";_p.inheritAttrs=!1;_p.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function ty(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextMonth:i,onPrevMonth:a,onNextYear:s,onPrevYear:c,onYearClick:u,onMonthClick:d}=t,{hideHeader:f}=cr();if(f.value)return null;const g=`${n}-header`,v=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(l),b=p("button",{type:"button",key:"year",onClick:u,tabindex:-1,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})]),y=p("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?yn(l,{locale:r,format:r.monthFormat,generateConfig:o}):v[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return p(Tl,D(D({},t),{},{prefixCls:g,onSuperPrev:c,onPrev:a,onNext:i,onSuperNext:s}),{default:()=>[S]})}ty.displayName="DateHeader";ty.inheritAttrs=!1;const Eq=6;function Bc(e){const t=Xt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:l,operationRef:i,generateConfig:a,value:s,viewDate:c,onViewDateChange:u,onPanelChange:d,onSelect:f}=t,g=`${n}-${o}-panel`;i.value={onKeydown:b=>Ka(b,m({onLeftRight:y=>{f(a.addDate(s||c,y),"key")},onCtrlLeftRight:y=>{f(a.addYear(s||c,y),"key")},onUpDown:y=>{f(a.addDate(s||c,y*Ku),"key")},onPageUpDown:y=>{f(a.addMonth(s||c,y),"key")}},r))};const v=b=>{const y=a.addYear(c,b);u(y),d(null,y)},h=b=>{const y=a.addMonth(c,b);u(y),d(null,y)};return p("div",{class:ie(g,{[`${g}-active`]:l})},[p(ty,D(D({},t),{},{prefixCls:n,value:s,viewDate:c,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",c)},onYearClick:()=>{d("year",c)}}),null),p(_p,D(D({},t),{},{onSelect:b=>f(b,"mouse"),prefixCls:n,value:s,viewDate:c,rowCount:Eq}),null)])}Bc.displayName="DatePanel";Bc.inheritAttrs=!1;const Gx=xq("date","time");function ny(e){const t=Xt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:l,defaultValue:i,disabledTime:a,showTime:s,onSelect:c}=t,u=`${n}-datetime-panel`,d=le(null),f=le({}),g=le({}),v=typeof s=="object"?m({},s):{};function h($){const x=Gx.indexOf(d.value)+$;return Gx[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===Oe.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?f:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!l&&v.defaultValue?(C=r.setHour(C,r.getHour(v.defaultValue)),C=r.setMinute(C,r.getMinute(v.defaultValue)),C=r.setSecond(C,r.getSecond(v.defaultValue))):x==="time"&&!l&&i&&(C=r.setYear(C,r.getYear(i)),C=r.setMonth(C,r.getMonth(i)),C=r.setDate(C,r.getDate(i))),c&&c(C,"mouse")},S=a?a(l||null):{};return p("div",{class:ie(u,{[`${u}-active`]:d.value})},[p(Bc,D(D({},t),{},{operationRef:f,active:d.value==="date",onSelect:$=>{y(Vu(r,$,!l&&typeof s=="object"?s.defaultValue:null),"date")}}),null),p(Ep,D(D(D(D({},t),{},{format:void 0},v),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}ny.displayName="DatetimePanel";ny.inheritAttrs=!1;function oy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,value:l}=t,i=`${n}-cell`,a=u=>p("td",{key:"week",class:ie(i,`${i}-week`)},[o.locale.getWeek(r.locale,u)]),s=`${n}-week-panel-row`,c=u=>ie(s,{[`${s}-selected`]:d6(o,r.locale,l,u)});return p(Bc,D(D({},t),{},{panelName:"week",prefixColumn:a,rowClassName:c,keyboardConfig:{onLeftRight:null}}),null)}oy.displayName="WeekPanel";oy.inheritAttrs=!1;function ry(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ry.displayName="MonthHeader";ry.inheritAttrs=!1;const m6=3,Mq=4;function ly(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:c}=Dc(),u=`${n}-cell`,d=Mp({cellPrefixCls:u,value:r,generateConfig:i,rangedValue:s.value,hoverRangedValue:c.value,isSameCell:(h,b)=>Jb(i,h,b),isInView:()=>!0,offsetCell:(h,b)=>i.addMonth(h,b)}),f=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),g=i.setMonth(l,0),v=a?h=>a({current:h,locale:o}):void 0;return p(Oi,D(D({},t),{},{rowNum:Mq,colNum:m6,baseDate:g,getCellNode:v,getCellText:h=>o.monthFormat?yn(h,{locale:o,format:o.monthFormat,generateConfig:i}):f[i.getMonth(h)],getCellClassName:d,getCellDate:i.addMonth,titleCell:h=>yn(h,{locale:o,format:"YYYY-MM",generateConfig:i})}),null)}ly.displayName="MonthBody";ly.inheritAttrs=!1;function iy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-month-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addMonth(i||a,g*m6),"key")},onEnter:()=>{s("date",i||a)}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ry,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(ly,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse"),s("date",f)}}),null)])}iy.displayName="MonthPanel";iy.inheritAttrs=!1;function ay(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:l,onNextYear:i,onPrevYear:a,onYearClick:s}=t,{hideHeader:c}=cr();if(c.value)return null;const u=`${n}-header`;return p(Tl,D(D({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[yn(l,{locale:r,format:r.yearFormat,generateConfig:o})])]})}ay.displayName="QuarterHeader";ay.inheritAttrs=!1;const _q=4,Aq=1;function sy(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=Mp({cellPrefixCls:c,value:r,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(f,g)=>u6(i,f,g),isInView:()=>!0,offsetCell:(f,g)=>i.addMonth(f,g*3)}),d=i.setDate(i.setMonth(l,0),1);return p(Oi,D(D({},t),{},{rowNum:Aq,colNum:_q,baseDate:d,getCellText:f=>yn(f,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:u,getCellDate:(f,g)=>i.addMonth(f,g*3),titleCell:f=>yn(f,{locale:o,format:"YYYY-[Q]Q",generateConfig:i})}),null)}sy.displayName="QuarterBody";sy.inheritAttrs=!1;function cy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,onPanelChange:s,onSelect:c}=t,u=`${n}-quarter-panel`;o.value={onKeydown:f=>Ka(f,{onLeftRight:g=>{c(l.addMonth(i||a,g*3),"key")},onCtrlLeftRight:g=>{c(l.addYear(i||a,g),"key")},onUpDown:g=>{c(l.addYear(i||a,g),"key")}})};const d=f=>{const g=l.addYear(a,f);r(g),s(null,g)};return p("div",{class:u},[p(ay,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(sy,D(D({},t),{},{prefixCls:n,onSelect:f=>{c(f,"mouse")}}),null)])}cy.displayName="QuarterPanel";cy.inheritAttrs=!1;function uy(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:l,onNextDecade:i,onDecadeClick:a}=t,{hideHeader:s}=cr();if(s.value)return null;const c=`${n}-header`,u=o.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1;return p(Tl,D(D({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[p("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Lt("-"),f])]})}uy.displayName="YearHeader";uy.inheritAttrs=!1;const Gv=3,Xx=4;function dy(e){const t=Xt(e),{prefixCls:n,value:o,viewDate:r,locale:l,generateConfig:i}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),c=`${n}-cell`,u=i.getYear(r),d=Math.floor(u/ul)*ul,f=d+ul-1,g=i.setYear(r,d-Math.ceil((Gv*Xx-ul)/2)),v=b=>{const y=i.getYear(b);return d<=y&&y<=f},h=Mp({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(b,y)=>Tp(i,b,y),isInView:v,offsetCell:(b,y)=>i.addYear(b,y)});return p(Oi,D(D({},t),{},{rowNum:Xx,colNum:Gv,baseDate:g,getCellText:i.getYear,getCellClassName:h,getCellDate:i.addYear,titleCell:b=>yn(b,{locale:l,format:"YYYY",generateConfig:i})}),null)}dy.displayName="YearBody";dy.inheritAttrs=!1;const ul=10;function fy(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:l,value:i,viewDate:a,sourceMode:s,onSelect:c,onPanelChange:u}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>Ka(g,{onLeftRight:v=>{c(l.addYear(i||a,v),"key")},onCtrlLeftRight:v=>{c(l.addYear(i||a,v*ul),"key")},onUpDown:v=>{c(l.addYear(i||a,v*Gv),"key")},onEnter:()=>{u(s==="date"?"date":"month",i||a)}})};const f=g=>{const v=l.addYear(a,g*10);r(v),u(null,v)};return p("div",{class:d},[p(uy,D(D({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{u("decade",a)}}),null),p(dy,D(D({},t),{},{prefixCls:n,onSelect:g=>{u(s==="date"?"date":"month",g),c(g,"mouse")}}),null)])}fy.displayName="YearPanel";fy.inheritAttrs=!1;function b6(e,t,n){return n?p("div",{class:`${e}-footer-extra`},[n(t)]):null}function y6(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:l,okDisabled:i,showNow:a,locale:s}=e,c,u;if(o){const d=n.button||"button";r&&a!==!1&&(c=p("li",{class:`${t}-now`},[p("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),u=o&&p("li",{class:`${t}-ok`},[p(d,{disabled:i,onClick:f=>{f.stopPropagation(),l&&l()}},{default:()=>[s.ok]})])}return!c&&!u?null:p("ul",{class:`${t}-ranges`},[c,u])}function Rq(){return oe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),l=P(()=>60%e.minuteStep===0),i=P(()=>60%e.secondStep===0),a=cr(),{operationRef:s,onSelect:c,hideRanges:u,defaultOpenValue:d}=a,{inRange:f,panelPosition:g,rangedValue:v,hoverRangedValue:h}=Dc(),b=le({}),[y,S]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:N=>!N&&(d!=null&&d.value)&&e.picker==="time"?d.value:N}),[$,x]=Pt(null,{value:ze(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:N=>{const{generateConfig:F,showTime:L,defaultValue:k}=e,j=F.getNow();return N?!y.value&&e.showTime?typeof L=="object"?Vu(F,Array.isArray(N)?N[0]:N,L.defaultValue||j):k?Vu(F,Array.isArray(N)?N[0]:N,k):Vu(F,Array.isArray(N)?N[0]:N,j):N:j}}),C=N=>{x(N),e.onPickerValueChange&&e.onPickerValueChange(N)},O=N=>{const F=yq[e.picker];return F?F(N):N},[w,I]=Pt(()=>e.picker==="time"?"time":O("date"),{value:ze(e,"mode")});be(()=>e.picker,()=>{I(e.picker)});const T=le(w.value),_=N=>{T.value=N},E=(N,F)=>{const{onPanelChange:L,generateConfig:k}=e,j=O(N||w.value);_(w.value),I(j),L&&(w.value!==j||ua(k,$.value,$.value))&&L(F,j)},A=function(N,F){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:k,generateConfig:j,onSelect:H,onChange:Y,disabledDate:Z}=e;(w.value===k||L)&&(S(N),H&&H(N),c&&c(N,F),Y&&!ua(j,N,y.value)&&!(Z!=null&&Z(N))&&Y(N))},R=N=>b.value&&b.value.onKeydown?([Oe.LEFT,Oe.RIGHT,Oe.UP,Oe.DOWN,Oe.PAGE_UP,Oe.PAGE_DOWN,Oe.ENTER].includes(N.which)&&N.preventDefault(),b.value.onKeydown(N)):!1,z=N=>{b.value&&b.value.onBlur&&b.value.onBlur(N)},M=()=>{const{generateConfig:N,hourStep:F,minuteStep:L,secondStep:k}=e,j=N.getNow(),H=uq(N.getHour(j),N.getMinute(j),N.getSecond(j),r.value?F:1,l.value?L:1,i.value?k:1),Y=i6(N,j,H[0],H[1],H[2]);A(Y,"submit")},B=P(()=>{const{prefixCls:N,direction:F}=e;return ie(`${N}-panel`,{[`${N}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${N}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${N}-panel-rtl`]:F==="rtl"})});return Yb(m(m({},a),{mode:w,hideHeader:P(()=>{var N;return e.hideHeader!==void 0?e.hideHeader:(N=a.hideHeader)===null||N===void 0?void 0:N.value}),hidePrevBtn:P(()=>f.value&&g.value==="right"),hideNextBtn:P(()=>f.value&&g.value==="left")})),be(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:N="ant-picker",locale:F,generateConfig:L,disabledDate:k,picker:j="date",tabindex:H=0,showNow:Y,showTime:Z,showToday:U,renderExtraFooter:ee,onMousedown:G,onOk:J,components:Q}=e;s&&g.value!=="right"&&(s.value={onKeydown:R,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let K;const q=m(m(m({},n),e),{operationRef:b,prefixCls:N,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:T.value,onPanelChange:E,disabledDate:k});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":K=p(Qb,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"year":K=p(fy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"month":K=p(iy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"quarter":K=p(cy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"week":K=p(oy,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;case"time":delete q.showTime,K=p(Ep,D(D(D({},q),typeof Z=="object"?Z:null),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null);break;default:Z?K=p(ny,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null):K=p(Bc,D(D({},q),{},{onSelect:(ne,ae)=>{C(ne),A(ne,ae)}}),null)}let pe,W;u!=null&&u.value||(pe=b6(N,w.value,ee),W=y6({prefixCls:N,components:Q,needConfirmButton:o.value,okDisabled:!y.value||k&&k(y.value),locale:F,showNow:Y,onNow:o.value&&M,onOk:()=>{y.value&&(A(y.value,"submit",!0),J&&J(y.value))}}));let X;if(U&&w.value==="date"&&j==="date"&&!Z){const ne=L.getNow(),ae=`${N}-today-btn`,se=k&&k(ne);X=p("a",{class:ie(ae,se&&`${ae}-disabled`),"aria-disabled":se,onClick:()=>{se||A(ne,"mouse",!0)}},[F.today])}return p("div",{tabindex:H,class:ie(B.value,n.class),style:n.style,onKeydown:R,onBlur:z,onMousedown:G},[K,pe||W||X?p("div",{class:`${N}-footer`},[pe,W,X]):null])}}})}const Dq=Rq(),py=e=>p(Dq,e),Bq={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function S6(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:l,dropdownClassName:i,dropdownAlign:a,transitionName:s,getPopupContainer:c,range:u,popupPlacement:d,direction:f}=Xt(e),g=`${o}-dropdown`;return p(wi,{showAction:[],hideAction:[],popupPlacement:(()=>d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft")(),builtinPlacements:Bq,prefixCls:g,popupTransitionName:s,popupAlign:a,popupVisible:l,popupClassName:ie(i,{[`${g}-range`]:u,[`${g}-rtl`]:f==="rtl"}),popupStyle:r,getPopupContainer:c},{default:n.default,popup:n.popupElement})}const $6=oe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?p("div",{class:`${e.prefixCls}-presets`},[p("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return p("li",{key:n,onClick:l=>{l.stopPropagation(),e.onClick(r)},onMouseenter:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,r)},onMouseleave:()=>{var l;(l=e.onHover)===null||l===void 0||l.call(e,null)}},[o])})])]):null}});function Xv(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:l,onKeydown:i,blurToCancel:a,onSubmit:s,onCancel:c,onFocus:u,onBlur:d}=e;const f=te(!1),g=te(!1),v=te(!1),h=te(!1),b=te(!1),y=P(()=>({onMousedown:()=>{f.value=!0,r(!0)},onKeydown:$=>{if(i($,()=>{b.value=!0}),!b.value){switch($.which){case Oe.ENTER:{t.value?s()!==!1&&(f.value=!0):r(!0),$.preventDefault();return}case Oe.TAB:{f.value&&t.value&&!$.shiftKey?(f.value=!1,$.preventDefault()):!f.value&&t.value&&!l($)&&$.shiftKey&&(f.value=!0,$.preventDefault());return}case Oe.ESC:{f.value=!0,c();return}}!t.value&&![Oe.SHIFT].includes($.which)?r(!0):f.value||l($)}},onFocus:$=>{f.value=!0,g.value=!0,u&&u($)},onBlur:$=>{if(v.value||!o(document.activeElement)){v.value=!1;return}a.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&c()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));be(t,()=>{h.value=!1}),be(n,()=>{h.value=!0});const S=te();return je(()=>{S.value=pq($=>{const x=gq($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(v.value=!0,Ye(()=>{v.value=!1}))}})}),Ze(()=>{S.value&&S.value()}),[y,{focused:g,typing:f}]}function Uv(e){let{valueTexts:t,onTextChange:n}=e;const o=le("");function r(i){o.value=i,n(i)}function l(){o.value=t.value[0]}return be(()=>[...t.value],function(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.join("||")!==a.join("||")&&t.value.every(s=>s!==o.value)&&l()},{immediate:!0}),[o,r,l]}function cf(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=q0(()=>{if(!e.value)return[[""],""];let s="";const c=[];for(let u=0;uc[0]!==s[0]||!Wi(c[1],s[1])),i=P(()=>l.value[0]),a=P(()=>l.value[1]);return[i,a]}function Yv(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const l=le(null);let i;function a(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ye.cancel(i),f){l.value=d;return}i=Ye(()=>{l.value=d})}const[,s]=cf(l,{formatList:n,generateConfig:o,locale:r});function c(d){a(d)}function u(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;a(null,d)}return be(e,()=>{u(!0)}),Ze(()=>{Ye.cancel(i)}),[s,c,u]}function C6(e,t){return P(()=>e!=null&&e.value?e.value:t!=null&&t.value?(Yf(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],l=typeof r=="function"?r():r;return{label:o,value:l}})):[])}function Nq(){return oe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=le(null),l=P(()=>e.presets),i=C6(l),a=P(()=>{var k;return(k=e.picker)!==null&&k!==void 0?k:"date"}),s=P(()=>a.value==="date"&&!!e.showTime||a.value==="time"),c=P(()=>g6(a6(e.format,a.value,e.showTime,e.use12Hours))),u=le(null),d=le(null),f=le(null),[g,v]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue}),h=le(g.value),b=k=>{h.value=k},y=le(null),[S,$]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:k=>e.disabled?!1:k,onChange:k=>{e.onOpenChange&&e.onOpenChange(k),!k&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=cf(h,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),[O,w,I]=Uv({valueTexts:x,onTextChange:k=>{const j=f6(k,{locale:e.locale,formatList:c.value,generateConfig:e.generateConfig});j&&(!e.disabledDate||!e.disabledDate(j))&&b(j)}}),T=k=>{const{onChange:j,generateConfig:H,locale:Y}=e;b(k),v(k),j&&!ua(H,g.value,k)&&j(k,k?yn(k,{generateConfig:H,locale:Y,format:c.value[0]}):"")},_=k=>{e.disabled&&k||$(k)},E=k=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(k):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),_(!0))},[R,{focused:z,typing:M}]=Xv({blurToCancel:s,open:S,value:O,triggerOpen:_,forwardKeydown:E,isClickOutside:k=>!c6([u.value,d.value,f.value],k),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(T(h.value),_(!1),I(),!0),onCancel:()=>{_(!1),b(g.value),I()},onKeydown:(k,j)=>{var H;(H=e.onKeydown)===null||H===void 0||H.call(e,k,j)},onFocus:k=>{var j;(j=e.onFocus)===null||j===void 0||j.call(e,k)},onBlur:k=>{var j;(j=e.onBlur)===null||j===void 0||j.call(e,k)}});be([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&I())}),be(a,()=>{S.value||I()}),be(g,()=>{b(g.value)});const[B,N,F]=Yv(O,{formatList:c,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),L=(k,j)=>{(j==="submit"||j!=="key"&&!s.value)&&(T(k),_(!1))};return Yb({operationRef:y,hideHeader:P(()=>a.value==="time"),onSelect:L,open:S,defaultOpenValue:ze(e,"defaultOpenValue"),onDateMouseenter:N,onDateMouseleave:F}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:k="rc-picker",id:j,tabindex:H,dropdownClassName:Y,dropdownAlign:Z,popupStyle:U,transitionName:ee,generateConfig:G,locale:J,inputReadOnly:Q,allowClear:K,autofocus:q,picker:pe="date",defaultOpenValue:W,suffixIcon:X,clearIcon:ne,disabled:ae,placeholder:se,getPopupContainer:re,panelRender:de,onMousedown:ge,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se,onSelect:ue,direction:ce,autocomplete:he="off"}=e,Pe=m(m(m({},e),n),{class:ie({[`${k}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Ie=p("div",{class:`${k}-panel-layout`},[p($6,{prefixCls:k,presets:i.value,onClick:_e=>{T(_e),_(!1)}},null),p(py,D(D({},Pe),{},{generateConfig:G,value:h.value,locale:J,tabindex:-1,onSelect:_e=>{ue==null||ue(_e),b(_e)},direction:ce,onPanelChange:(_e,De)=>{const{onPanelChange:Je}=e;F(!0),Je==null||Je(_e,De)}}),null)]);de&&(Ie=de(Ie));const Ae=p("div",{class:`${k}-panel-container`,ref:u,onMousedown:_e=>{_e.preventDefault()}},[Ie]);let $e;X&&($e=p("span",{class:`${k}-suffix`},[X]));let xe;K&&g.value&&!ae&&(xe=p("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),T(null),_(!1)},class:`${k}-clear`,role:"button"},[ne||p("span",{class:`${k}-clear-btn`},null)]));const we=m(m(m(m({id:j,tabindex:H,disabled:ae,readonly:Q||typeof c.value[0]=="function"||!M.value,value:B.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:se,ref:r,title:O.value},R.value),{size:s6(pe,c.value[0],G)}),h6(e)),{autocomplete:he}),Me=e.inputRender?e.inputRender(we):p("input",we,null),Ne=ce==="rtl"?"bottomRight":"bottomLeft";return p("div",{ref:f,class:ie(k,n.class,{[`${k}-disabled`]:ae,[`${k}-focused`]:z.value,[`${k}-rtl`]:ce==="rtl"}),style:n.style,onMousedown:ge,onMouseup:A,onMouseenter:me,onMouseleave:fe,onContextmenu:ye,onClick:Se},[p("div",{class:ie(`${k}-input`,{[`${k}-input-placeholder`]:!!B.value}),ref:d},[Me,$e,xe]),p(S6,{visible:S.value,popupStyle:U,prefixCls:k,dropdownClassName:Y,dropdownAlign:Z,getPopupContainer:re,transitionName:ee,popupPlacement:Ne,direction:ce},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const Fq=Nq();function Lq(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:l,disabled:i,generateConfig:a}=e;const s=P(()=>mt(r.value,0)),c=P(()=>mt(r.value,1));function u(h){return a.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=a.value.getYear(h),y=a.value.getMonth(h);return b*100+y}function f(h){const b=a.value.getYear(h),y=Vv(a.value,h);return b*10+y}return[h=>{var b;if(l&&(!((b=l==null?void 0:l.value)===null||b===void 0)&&b.call(l,h)))return!0;if(i[1]&&c)return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value);if(t.value[1]&&c.value)switch(n.value){case"quarter":return f(h)>f(c.value);case"month":return d(h)>d(c.value);case"week":return u(h)>u(c.value);default:return!Ir(a.value,h,c.value)&&a.value.isAfter(h,c.value)}return!1},h=>{var b;if(!((b=l.value)===null||b===void 0)&&b.call(l,h))return!0;if(i[0]&&s)return!Ir(a.value,h,c.value)&&a.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(h)Sq(o,i,a));case"quarter":case"month":return l((i,a)=>Tp(o,i,a));default:return l((i,a)=>Jb(o,i,a))}}function zq(e,t,n,o){const r=mt(e,0),l=mt(e,1);if(t===0)return r;if(r&&l)switch(kq(r,l,n,o)){case"same":return r;case"closing":return r;default:return As(l,n,o,-1)}return r}function Hq(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const l=le([mt(o,0),mt(o,1)]),i=le(null),a=P(()=>mt(t.value,0)),s=P(()=>mt(t.value,1)),c=g=>l.value[g]?l.value[g]:mt(i.value,g)||zq(t.value,g,n.value,r.value)||a.value||s.value||r.value.getNow(),u=le(null),d=le(null);ke(()=>{u.value=c(0),d.value=c(1)});function f(g,v){if(g){let h=bo(i.value,g,v);l.value=bo(l.value,null,v)||[null,null];const b=(v+1)%2;mt(t.value,b)||(h=bo(h,g,b)),i.value=h}else(a.value||s.value)&&(i.value=null)}return[u,d,f]}function x6(e){return Wm()?(o3(e),!0):!1}function jq(e){return typeof e=="function"?e():$t(e)}function gy(e){var t;const n=jq(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Wq(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;pn()?je(e):t?e():ot(e)}function w6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=te(),o=()=>n.value=!!e();return o(),Wq(o,t),n}var ih;const O6=typeof window<"u";O6&&(!((ih=window==null?void 0:window.navigator)===null||ih===void 0)&&ih.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const P6=O6?window:void 0;var Vq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Vq(n,["window"]);let l;const i=w6(()=>o&&"ResizeObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new ResizeObserver(t),l.observe(u,r))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}function rs(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=te(t.width),l=te(t.height);return Kq(e,i=>{let[a]=i;const s=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;s?(r.value=s.reduce((c,u)=>{let{inlineSize:d}=u;return c+d},0),l.value=s.reduce((c,u)=>{let{blockSize:d}=u;return c+d},0)):(r.value=a.contentRect.width,l.value=a.contentRect.height)},n),be(()=>gy(e),i=>{r.value=i?t.width:0,l.value=i?t.height:0}),{width:r,height:l}}function Ux(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function Yx(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function Gq(){return oe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),l=P(()=>e.presets),i=P(()=>e.ranges),a=C6(l,i),s=le({}),c=le(null),u=le(null),d=le(null),f=le(null),g=le(null),v=le(null),h=le(null),b=le(null),y=P(()=>g6(a6(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Pt(0,{value:ze(e,"activePickerIndex")}),x=le(null),C=P(()=>{const{disabled:Ee}=e;return Array.isArray(Ee)?Ee:[Ee||!1,Ee||!1]}),[O,w]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:Ee=>e.picker==="time"&&!e.order?Ee:Ux(Ee,e.generateConfig)}),[I,T,_]=Hq({values:O,picker:ze(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ze(e,"generateConfig")}),[E,A]=Pt(O.value,{postState:Ee=>{let Ue=Ee;if(C.value[0]&&C.value[1])return Ue;for(let Ke=0;Ke<2;Ke+=1)C.value[Ke]&&!mt(Ue,Ke)&&!mt(e.allowEmpty,Ke)&&(Ue=bo(Ue,e.generateConfig.getNow(),Ke));return Ue}}),[R,z]=Pt([e.picker,e.picker],{value:ze(e,"mode")});be(()=>e.picker,()=>{z([e.picker,e.picker])});const M=(Ee,Ue)=>{var Ke;z(Ee),(Ke=e.onPanelChange)===null||Ke===void 0||Ke.call(e,Ue,Ee)},[B,N]=Lq({picker:ze(e,"picker"),selectedValue:E,locale:ze(e,"locale"),disabled:C,disabledDate:ze(e,"disabledDate"),generateConfig:ze(e,"generateConfig")},s),[F,L]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:Ee=>C.value[S.value]?!1:Ee,onChange:Ee=>{var Ue;(Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,Ee),!Ee&&x.value&&x.value.onClose&&x.value.onClose()}}),k=P(()=>F.value&&S.value===0),j=P(()=>F.value&&S.value===1),H=le(0),Y=le(0),Z=le(0),{width:U}=rs(c);be([F,U],()=>{!F.value&&c.value&&(Z.value=U.value)});const{width:ee}=rs(u),{width:G}=rs(b),{width:J}=rs(d),{width:Q}=rs(g);be([S,F,ee,G,J,Q,()=>e.direction],()=>{Y.value=0,S.value?d.value&&g.value&&(Y.value=J.value+Q.value,ee.value&&G.value&&Y.value>ee.value-G.value-(e.direction==="rtl"||b.value.offsetLeft>Y.value?0:b.value.offsetLeft)&&(H.value=Y.value)):S.value===0&&(H.value=0)},{immediate:!0});const K=le();function q(Ee,Ue){if(Ee)clearTimeout(K.value),s.value[Ue]=!0,$(Ue),L(Ee),F.value||_(null,Ue);else if(S.value===Ue){L(Ee);const Ke=s.value;K.value=setTimeout(()=>{Ke===s.value&&(s.value={})})}}function pe(Ee){q(!0,Ee),setTimeout(()=>{const Ue=[v,h][Ee];Ue.value&&Ue.value.focus()},0)}function W(Ee,Ue){let Ke=Ee,Ct=mt(Ke,0),en=mt(Ke,1);const{generateConfig:Wt,locale:Kn,picker:gn,order:Go,onCalendarChange:Jn,allowEmpty:fo,onChange:At,showTime:Eo}=e;Ct&&en&&Wt.isAfter(Ct,en)&&(gn==="week"&&!d6(Wt,Kn.locale,Ct,en)||gn==="quarter"&&!u6(Wt,Ct,en)||gn!=="week"&&gn!=="quarter"&&gn!=="time"&&!(Eo?ua(Wt,Ct,en):Ir(Wt,Ct,en))?(Ue===0?(Ke=[Ct,null],en=null):(Ct=null,Ke=[null,en]),s.value={[Ue]:!0}):(gn!=="time"||Go!==!1)&&(Ke=Ux(Ke,Wt))),A(Ke);const po=Ke&&Ke[0]?yn(Ke[0],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"",Wr=Ke&&Ke[1]?yn(Ke[1],{generateConfig:Wt,locale:Kn,format:y.value[0]}):"";Jn&&Jn(Ke,[po,Wr],{range:Ue===0?"start":"end"});const Vr=Yx(Ct,0,C.value,fo),Mo=Yx(en,1,C.value,fo);(Ke===null||Vr&&Mo)&&(w(Ke),At&&(!ua(Wt,mt(O.value,0),Ct)||!ua(Wt,mt(O.value,1),en))&&At(Ke,[po,Wr]));let _o=null;Ue===0&&!C.value[1]?_o=1:Ue===1&&!C.value[0]&&(_o=0),_o!==null&&_o!==S.value&&(!s.value[_o]||!mt(Ke,_o))&&mt(Ke,Ue)?pe(_o):q(!1,Ue)}const X=Ee=>F&&x.value&&x.value.onKeydown?x.value.onKeydown(Ee):!1,ne={formatList:y,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")},[ae,se]=cf(P(()=>mt(E.value,0)),ne),[re,de]=cf(P(()=>mt(E.value,1)),ne),ge=(Ee,Ue)=>{const Ke=f6(Ee,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Ke&&!(Ue===0?B:N)(Ke)&&(A(bo(E.value,Ke,Ue)),_(Ke,Ue))},[me,fe,ye]=Uv({valueTexts:ae,onTextChange:Ee=>ge(Ee,0)}),[Se,ue,ce]=Uv({valueTexts:re,onTextChange:Ee=>ge(Ee,1)}),[he,Pe]=vt(null),[Ie,Ae]=vt(null),[$e,xe,we]=Yv(me,ne),[Me,Ne,_e]=Yv(Se,ne),De=Ee=>{Ae(bo(E.value,Ee,S.value)),S.value===0?xe(Ee):Ne(Ee)},Je=()=>{Ae(bo(E.value,null,S.value)),S.value===0?we():_e()},ft=(Ee,Ue)=>({forwardKeydown:X,onBlur:Ke=>{var Ct;(Ct=e.onBlur)===null||Ct===void 0||Ct.call(e,Ke)},isClickOutside:Ke=>!c6([u.value,d.value,f.value,c.value],Ke),onFocus:Ke=>{var Ct;$(Ee),(Ct=e.onFocus)===null||Ct===void 0||Ct.call(e,Ke)},triggerOpen:Ke=>{q(Ke,Ee)},onSubmit:()=>{if(!E.value||e.disabledDate&&e.disabledDate(E.value[Ee]))return!1;W(E.value,Ee),Ue()},onCancel:()=>{q(!1,Ee),A(O.value),Ue()}}),[it,{focused:pt,typing:ht}]=Xv(m(m({},ft(0,ye)),{blurToCancel:r,open:k,value:me,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),[Ut,{focused:Jt,typing:rn}]=Xv(m(m({},ft(1,ce)),{blurToCancel:r,open:j,value:Se,onKeydown:(Ee,Ue)=>{var Ke;(Ke=e.onKeydown)===null||Ke===void 0||Ke.call(e,Ee,Ue)}})),jt=Ee=>{var Ue;(Ue=e.onClick)===null||Ue===void 0||Ue.call(e,Ee),!F.value&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&(C.value[0]?C.value[1]||pe(1):pe(0))},xn=Ee=>{var Ue;(Ue=e.onMousedown)===null||Ue===void 0||Ue.call(e,Ee),F.value&&(pt.value||Jt.value)&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&Ee.preventDefault()},Wn=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[0]?yn(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),uo=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[1]?yn(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});be([F,ae,re],()=>{F.value||(A(O.value),!ae.value.length||ae.value[0]===""?fe(""):se.value!==me.value&&ye(),!re.value.length||re.value[0]===""?ue(""):de.value!==Se.value&&ce())}),be([Wn,uo],()=>{A(O.value)}),o({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),h.value&&h.value.blur()}});const To=P(()=>F.value&&Ie.value&&Ie.value[0]&&Ie.value[1]&&e.generateConfig.isAfter(Ie.value[1],Ie.value[0])?Ie.value:null);function Vn(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ke,showTime:Ct,dateRender:en,direction:Wt,disabledTime:Kn,prefixCls:gn,locale:Go}=e;let Jn=Ct;if(Ct&&typeof Ct=="object"&&Ct.defaultValue){const At=Ct.defaultValue;Jn=m(m({},Ct),{defaultValue:mt(At,S.value)||void 0})}let fo=null;return en&&(fo=At=>{let{current:Eo,today:po}=At;return en({current:Eo,today:po,info:{range:S.value?"end":"start"}})}),p(Tq,{value:{inRange:!0,panelPosition:Ee,rangedValue:he.value||E.value,hoverRangedValue:To.value}},{default:()=>[p(py,D(D(D({},e),Ue),{},{dateRender:fo,showTime:Jn,mode:R.value[S.value],generateConfig:Ke,style:void 0,direction:Wt,disabledDate:S.value===0?B:N,disabledTime:At=>Kn?Kn(At,S.value===0?"start":"end"):!1,class:ie({[`${gn}-panel-focused`]:S.value===0?!ht.value:!rn.value}),value:mt(E.value,S.value),locale:Go,tabIndex:-1,onPanelChange:(At,Eo)=>{S.value===0&&we(!0),S.value===1&&_e(!0),M(bo(R.value,Eo,S.value),bo(E.value,At,S.value));let po=At;Ee==="right"&&R.value[S.value]===Eo&&(po=As(po,Eo,Ke,-1)),_(po,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?mt(E.value,1):mt(E.value,0)}),null)]})}const El=(Ee,Ue)=>{const Ke=bo(E.value,Ee,S.value);Ue==="submit"||Ue!=="key"&&!r.value?(W(Ke,S.value),S.value===0?we():_e()):A(Ke)};return Yb({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:De,onDateMouseleave:Je,hideRanges:P(()=>!0),onSelect:El,open:F}),()=>{const{prefixCls:Ee="rc-picker",id:Ue,popupStyle:Ke,dropdownClassName:Ct,transitionName:en,dropdownAlign:Wt,getPopupContainer:Kn,generateConfig:gn,locale:Go,placeholder:Jn,autofocus:fo,picker:At="date",showTime:Eo,separator:po="~",disabledDate:Wr,panelRender:Vr,allowClear:Mo,suffixIcon:Ei,clearIcon:_o,inputReadOnly:ig,renderExtraFooter:wM,onMouseenter:OM,onMouseleave:PM,onMouseup:IM,onOk:J1,components:TM,direction:Xa,autocomplete:eS="off"}=e,EM=Xa==="rtl"?{right:`${Y.value}px`}:{left:`${Y.value}px`};function MM(){let Gn;const Kr=b6(Ee,R.value[S.value],wM),rS=y6({prefixCls:Ee,components:TM,needConfirmButton:r.value,okDisabled:!mt(E.value,S.value)||Wr&&Wr(E.value[S.value]),locale:Go,onOk:()=>{mt(E.value,S.value)&&(W(E.value,S.value),J1&&J1(E.value))}});if(At!=="time"&&!Eo){const Gr=S.value===0?I.value:T.value,RM=As(Gr,At,gn),ug=R.value[S.value]===At,lS=Vn(ug?"left":!1,{pickerValue:Gr,onPickerValueChange:dg=>{_(dg,S.value)}}),iS=Vn("right",{pickerValue:RM,onPickerValueChange:dg=>{_(As(dg,At,gn,-1),S.value)}});Xa==="rtl"?Gn=p(We,null,[iS,ug&&lS]):Gn=p(We,null,[lS,ug&&iS])}else Gn=Vn();let cg=p("div",{class:`${Ee}-panel-layout`},[p($6,{prefixCls:Ee,presets:a.value,onClick:Gr=>{W(Gr,null),q(!1,S.value)},onHover:Gr=>{Pe(Gr)}},null),p("div",null,[p("div",{class:`${Ee}-panels`},[Gn]),(Kr||rS)&&p("div",{class:`${Ee}-footer`},[Kr,rS])])]);return Vr&&(cg=Vr(cg)),p("div",{class:`${Ee}-panel-container`,style:{marginLeft:`${H.value}px`},ref:u,onMousedown:Gr=>{Gr.preventDefault()}},[cg])}const _M=p("div",{class:ie(`${Ee}-range-wrapper`,`${Ee}-${At}-range-wrapper`),style:{minWidth:`${Z.value}px`}},[p("div",{ref:b,class:`${Ee}-range-arrow`,style:EM},null),MM()]);let tS;Ei&&(tS=p("span",{class:`${Ee}-suffix`},[Ei]));let nS;Mo&&(mt(O.value,0)&&!C.value[0]||mt(O.value,1)&&!C.value[1])&&(nS=p("span",{onMousedown:Gn=>{Gn.preventDefault(),Gn.stopPropagation()},onMouseup:Gn=>{Gn.preventDefault(),Gn.stopPropagation();let Kr=O.value;C.value[0]||(Kr=bo(Kr,null,0)),C.value[1]||(Kr=bo(Kr,null,1)),W(Kr,null),q(!1,S.value)},class:`${Ee}-clear`},[_o||p("span",{class:`${Ee}-clear-btn`},null)]));const oS={size:s6(At,y.value[0],gn)};let ag=0,sg=0;d.value&&f.value&&g.value&&(S.value===0?sg=d.value.offsetWidth:(ag=Y.value,sg=f.value.offsetWidth));const AM=Xa==="rtl"?{right:`${ag}px`}:{left:`${ag}px`};return p("div",D({ref:c,class:ie(Ee,`${Ee}-range`,n.class,{[`${Ee}-disabled`]:C.value[0]&&C.value[1],[`${Ee}-focused`]:S.value===0?pt.value:Jt.value,[`${Ee}-rtl`]:Xa==="rtl"}),style:n.style,onClick:jt,onMouseenter:OM,onMouseleave:PM,onMousedown:xn,onMouseup:IM},h6(e)),[p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===0,[`${Ee}-input-placeholder`]:!!$e.value}),ref:d},[p("input",D(D(D({id:Ue,disabled:C.value[0],readonly:ig||typeof y.value[0]=="function"||!ht.value,value:$e.value||me.value,onInput:Gn=>{fe(Gn.target.value)},autofocus:fo,placeholder:mt(Jn,0)||"",ref:v},it.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-range-separator`,ref:g},[po]),p("div",{class:ie(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===1,[`${Ee}-input-placeholder`]:!!Me.value}),ref:f},[p("input",D(D(D({disabled:C.value[1],readonly:ig||typeof y.value[0]=="function"||!rn.value,value:Me.value||Se.value,onInput:Gn=>{ue(Gn.target.value)},placeholder:mt(Jn,1)||"",ref:h},Ut.value),oS),{},{autocomplete:eS}),null)]),p("div",{class:`${Ee}-active-bar`,style:m(m({},AM),{width:`${sg}px`,position:"absolute"})},null),tS,nS,p(S6,{visible:F.value,popupStyle:Ke,prefixCls:Ee,dropdownClassName:Ct,dropdownAlign:Wt,getPopupContainer:Kn,transitionName:en,range:!0,direction:Xa},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>_M})])}}})}const Xq=Gq(),Uq=Xq;var Yq=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{l.value=e.checked}),r({focus(){var u;(u=i.value)===null||u===void 0||u.focus()},blur(){var u;(u=i.value)===null||u===void 0||u.blur()}});const a=le(),s=u=>{if(e.disabled)return;e.checked===void 0&&(l.value=u.target.checked),u.shiftKey=a.value;const d={target:m(m({},e),{checked:u.target.checked}),stopPropagation(){u.stopPropagation()},preventDefault(){u.preventDefault()},nativeEvent:u};e.checked!==void 0&&(i.value.checked=!!e.checked),o("change",d),a.value=!1},c=u=>{o("click",u),a.value=u.shiftKey};return()=>{const{prefixCls:u,name:d,id:f,type:g,disabled:v,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=Yq(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_}=n,E=m(m({},x),n),A=Object.keys(E).reduce((M,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(M[B]=E[B]),M),{}),R=ie(u,C,{[`${u}-checked`]:l.value,[`${u}-disabled`]:v}),z=m(m({name:d,id:f,type:g,readonly:h,disabled:v,tabindex:b,class:`${u}-input`,checked:!!l.value,autofocus:y,value:S},A),{onChange:s,onClick:c,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_,required:$});return p("span",{class:R},[p("input",D({ref:i},z),null),p("span",{class:`${u}-inner`},null)])}}}),T6=Symbol("radioGroupContextKey"),Zq=e=>{Ge(T6,e)},Qq=()=>He(T6,void 0),E6=Symbol("radioOptionTypeContextKey"),Jq=e=>{Ge(E6,e)},eZ=()=>He(E6,void 0),tZ=new nt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),nZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:m(m({},Xe(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},oZ=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:l,motionDurationMid:i,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:c,colorBorder:u,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:m(m({},Xe(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:tZ,animationDuration:l,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:m(m({},Xe(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:m({},Ar(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${l} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?c:o,"&::after":{transform:`scale(${f/r})`,opacity:1,transition:`all ${l} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},rZ=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:l,colorBorder:i,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:c,fontSize:u,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:I,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:E}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${l} ${i}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:i,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${l} ${i}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:v,paddingInline:h-r,paddingBlock:0,lineHeight:`${v-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":m({},Ar(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:I,backgroundColor:T,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:T,borderColor:i}},[`&-disabled${o}-button-wrapper-checked`]:{color:_,backgroundColor:E,borderColor:i,boxShadow:"none"}}}},M6=Ve("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:l,fontSizeLG:i,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:c,colorText:u,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,b=`0 0 0 ${g}px ${a}`,y=b,S=i,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=u,I=s,T=c,_=t-n,R=Fe(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:v,radioButtonBg:l,radioButtonCheckedBg:l,radioButtonColor:w,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:f});return[nZ(R),oZ(R),rZ(R)]});var lZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,autofocus:Ce(),onChange:ve(),onFocus:ve(),onBlur:ve(),onClick:ve(),"onUpdate:checked":ve(),"onUpdate:value":ve()}),Nn=oe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:_6(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:l}=t;const i=Qt(),a=un.useInject(),s=eZ(),c=Qq(),u=qn(),d=P(()=>{var I;return(I=h.value)!==null&&I!==void 0?I:u.value}),f=le(),{prefixCls:g,direction:v,disabled:h}=Te("radio",e),b=P(()=>(c==null?void 0:c.optionType.value)==="button"||s==="button"?`${g.value}-button`:g.value),y=qn(),[S,$]=M6(g);o({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const O=I=>{const T=I.target.checked;n("update:checked",T),n("update:value",T),n("change",I),i.onFieldChange()},w=I=>{n("change",I),c&&c.onChange&&c.onChange(I)};return()=>{var I;const T=c,{prefixCls:_,id:E=i.id.value}=e,A=lZ(e,["prefixCls","id"]),R=m(m({prefixCls:b.value,id:E},et(A,["onUpdate:checked","onUpdate:value"])),{disabled:(I=h.value)!==null&&I!==void 0?I:y.value});T?(R.name=T.name.value,R.onChange=w,R.checked=e.value===T.value.value,R.disabled=d.value||T.disabled.value):R.onChange=O;const z=ie({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-rtl`]:v.value==="rtl",[`${b.value}-wrapper-in-form-item`]:a.isFormItemInput},l.class,$.value);return S(p("label",D(D({},l),{},{class:z}),[p(I6,D(D({},R),{},{type:"radio",ref:f}),null),r.default&&p("span",null,[r.default()])]))}}}),iZ=()=>({prefixCls:String,value:V.any,size:Be(),options:at(),disabled:Ce(),name:String,buttonStyle:Be("outline"),id:String,optionType:Be("default"),onChange:ve(),"onUpdate:value":ve()}),hy=oe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:iZ(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=Qt(),{prefixCls:i,direction:a,size:s}=Te("radio",e),[c,u]=M6(i),d=le(e.value),f=le(!1);return be(()=>e.value,v=>{d.value=v,f.value=!1}),Zq({onChange:v=>{const h=d.value,{value:b}=v.target;"value"in e||(d.value=b),!f.value&&b!==h&&(f.value=!0,o("update:value",b),o("change",v),l.onFieldChange()),ot(()=>{f.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var v;const{options:h,buttonStyle:b,id:y=l.id.value}=e,S=`${i.value}-group`,$=ie(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:a.value==="rtl"},r.class,u.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return p(Nn,{key:C,prefixCls:i.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:I}=C;return p(Nn,{key:`radio-group-value-options-${O}`,prefixCls:i.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[I]})}):x=(v=n.default)===null||v===void 0?void 0:v.call(n),c(p("div",D(D({},r),{},{class:$,id:y}),[x]))}}}),uf=oe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:_6(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("radio",e);return Jq("button"),()=>{var l;return p(Nn,D(D(D({},o),e),{},{prefixCls:r.value}),{default:()=>[(l=n.default)===null||l===void 0?void 0:l.call(n)]})}}});Nn.Group=hy;Nn.Button=uf;Nn.install=function(e){return e.component(Nn.name,Nn),e.component(Nn.Group.name,Nn.Group),e.component(Nn.Button.name,Nn.Button),e};const aZ=10,sZ=20;function A6(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:l,value:i,onChange:a,divRef:s}=e,c=o.getYear(i||o.getNow());let u=c-aZ,d=u+sZ;n&&(u=o.getYear(n[0]),d=o.getYear(n[1])+1);const f=r&&r.year==="年"?"年":"",g=[];for(let v=u;v{let h=o.setYear(i,v);if(n){const[b,y]=n,S=o.getYear(h),$=o.getMonth(h);S===o.getYear(y)&&$>o.getMonth(y)&&(h=o.setMonth(h,o.getMonth(y))),S===o.getYear(b)&&$s.value},null)}A6.inheritAttrs=!1;function R6(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:l,locale:i,onChange:a,divRef:s}=e,c=l.getMonth(r||l.getNow());let u=0,d=11;if(o){const[v,h]=o,b=l.getYear(r);l.getYear(h)===b&&(d=l.getMonth(h)),l.getYear(v)===b&&(u=l.getMonth(v))}const f=i.shortMonths||l.locale.getShortMonths(i.locale),g=[];for(let v=u;v<=d;v+=1)g.push({label:f[v],value:v});return p(Dr,{size:n?void 0:"small",class:`${t}-month-select`,value:c,options:g,onChange:v=>{a(l.setMonth(r,v))},getPopupContainer:()=>s.value},null)}R6.inheritAttrs=!1;function D6(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:l}=e;return p(hy,{onChange:i=>{let{target:{value:a}}=i;l(a)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[p(uf,{value:"month"},{default:()=>[n.month]}),p(uf,{value:"year"},{default:()=>[n.year]})]})}D6.inheritAttrs=!1;const cZ=oe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=le(null),r=un.useInject();return un.useProvide(r,{isFormItemInput:!1}),()=>{const l=m(m({},e),n),{prefixCls:i,fullscreen:a,mode:s,onChange:c,onModeChange:u}=l,d=m(m({},l),{fullscreen:a,divRef:o});return p("div",{class:`${i}-header`,ref:o},[p(A6,D(D({},d),{},{onChange:f=>{c(f,"year")}}),null),s==="month"&&p(R6,D(D({},d),{},{onChange:f=>{c(f,"month")}}),null),p(D6,D(D({},d),{},{onModeChange:u}),null)])}}}),vy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ga=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),yl=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),my=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":m({},Ga(Fe(e,{inputBorderHoverColor:e.colorBorder})))}),B6=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:l}=e;return{padding:`${t}px ${l}px`,fontSize:n,lineHeight:o,borderRadius:r}},by=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Nc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:l,colorWarningOutline:i,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:l}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":m({},yl(Fe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix`]:{color:r}}}},Ii=e=>m(m({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},vy(e.colorTextPlaceholder)),{"&:hover":m({},Ga(e)),"&:focus, &-focused":m({},yl(e)),"&-disabled, &[disabled]":m({},my(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":m({},B6(e)),"&-sm":m({},by(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),N6=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:m({},B6(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:m({},by(e)),[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:m(m({display:"block"},zo()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:e.fontSizeSM,height:e.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:e.fontSizeLG,height:e.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${e.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${e.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${e.controlHeightSM}px`}}}},uZ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o}=e,r=16,l=(n-o*2-r)/2;return{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}}})}},dZ=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},fZ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:l,colorIconHover:i,iconCls:a}=e;return{[`${t}-affix-wrapper`]:m(m(m(m(m({},Ii(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:o},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),dZ(e)),{[`${a}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:i}}}),Nc(e,`${t}-affix-wrapper`))}},pZ=e=>{const{componentCls:t,colorError:n,colorSuccess:o,borderRadiusLG:r,borderRadiusSM:l}=e;return{[`${t}-group`]:m(m(m({},Xe(e)),N6(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r}},"&-sm":{[`${t}-group-addon`]:{borderRadius:l}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:o,borderColor:o}}}})}},gZ=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${o}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${o}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${o}-button`]:{height:e.controlHeightLG},[`&-small ${o}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function Ti(e){return Fe(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const hZ=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:o}=e,r=`${t}-textarea`;return{[r]:{position:"relative",[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:o}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},yy=Ve("Input",e=>{const t=Ti(e);return[uZ(t),hZ(t),fZ(t),pZ(t),gZ(t),ja(t)]}),ah=(e,t,n,o)=>{const{lineHeight:r}=e,l=Math.floor(n*r)+2,i=Math.max((t-l)/2,0),a=Math.max(t-l-i,0);return{padding:`${i}px ${o}px ${a}px`}},vZ=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerPanelCellHeight:r,motionDurationSlow:l,borderRadiusSM:i,motionDurationMid:a,controlItemBgHover:s,lineWidth:c,lineType:u,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:g,controlHeightSM:v,pickerDateHoverRangeBorderColor:h,pickerCellBorderGap:b,pickerBasicCellHoverWithRangeColor:y,pickerPanelCellWidth:S,colorTextDisabled:$,colorBgContainerDisabled:x}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'},[o]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:`${r}px`,borderRadius:i,transition:`background ${a}, border ${a}`},[`&:hover:not(${n}-in-view), - &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[o]:{background:s}},[`&-in-view${n}-today ${o}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${c}px ${u} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${o}, - &-in-view${n}-range-start ${o}, - &-in-view${n}-range-end ${o}`]:{color:g,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single), - &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end), - &-in-view${n}-range-hover-start${n}-range-start-single, - &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover, - &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover, - &-in-view${n}-range-hover-end${n}-range-end-single, - &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${c}px dashed ${h}`,borderBottom:`${c}px dashed ${h}`,transform:"translateY(-50%)",transition:`all ${l}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:b},[`&-in-view${n}-in-range${n}-range-hover::before, - &-in-view${n}-range-start${n}-range-hover::before, - &-in-view${n}-range-end${n}-range-hover::before, - &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before, - &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-start::before, - ${t}-panel - > :not(${t}-date-panel) - &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:y},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${o}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after, - tr > &-in-view${n}-range-hover-end:first-child::after, - &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after, - &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after, - &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(S-r)/2,borderInlineStart:`${c}px dashed ${h}`,borderStartStartRadius:c,borderEndStartRadius:c},[`tr > &-in-view${n}-range-hover:last-child::after, - tr > &-in-view${n}-range-hover-start:last-child::after, - &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, - &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, - &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${c}px dashed ${h}`,borderStartEndRadius:c,borderEndEndRadius:c},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},F6=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:l,paddingSM:i,paddingXS:a,paddingXXS:s,colorBgContainer:c,lineWidth:u,lineType:d,borderRadiusLG:f,colorPrimary:g,colorTextHeading:v,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:I,colorText:T,fontSize:_,pickerBasicCellHoverWithRangeColor:E,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:R,pickerQuarterPanelContentHeight:z,colorLink:M,colorLinkActive:B,colorLinkHover:N,pickerDateHoverRangeBorderColor:F,borderRadiusSM:L,colorTextLightSolid:k,borderRadius:j,controlItemBgHover:H,pickerTimePanelColumnHeight:Y,pickerTimePanelColumnWidth:Z,pickerTimePanelCellHeight:U,controlItemBgActive:ee,marginXXS:G}=e,J=l*7+i*2+4,Q=(J-a*2)/3-o-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:c,border:`${u}px ${d} ${h}`,borderRadius:f,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${a}px`,color:v,borderBottom:`${u}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:T,verticalAlign:"middle"}},"&-cell":m({padding:`${w}px 0`,color:I,cursor:"pointer","&-in-view":{color:T}},vZ(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, - &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:E,transition:`all ${A}`,content:'""'}},[`&-date-panel - ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start - ${n}::after`]:{insetInlineEnd:-(l-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(l-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:R*4},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:z}},[`&-panel ${t}-footer`]:{borderTop:`${u}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*u}px`,textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:`${S-2*u}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${u}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:M,"&:hover":{color:N},"&:active":{color:B},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:L,borderBottomStartRadius:L,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:L,borderBottomEndRadius:L}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Q,borderInlineEnd:`${u}px dashed ${F}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:j,borderEndEndRadius:j,[`${t}-panel-rtl &`]:{insetInlineStart:Q,borderInlineStart:`${u}px dashed ${F}`,borderStartStartRadius:j,borderEndStartRadius:j,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n}, - &-selected ${n}, - ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${$}`,"&:first-child":{borderStartStartRadius:L,borderEndStartRadius:L},"&:last-child":{borderStartEndRadius:L,borderEndEndRadius:L}},"&:hover td":{background:H},"&-selected td,\n &-selected:hover td":{background:g,[`&${t}-cell-week`]:{color:new gt(k).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:k},[n]:{color:k}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${i}px`},[`${t}-content`]:{width:l*7,th:{width:l}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${u}px ${d} ${h}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Y},"&-column":{flex:"1 0 auto",width:Z,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:Y-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${u}px ${d} ${h}`},"&-active":{background:new gt(ee).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:G,[`${t}-time-panel-cell-inner`]:{display:"block",width:Z-2*G,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Z-U)/2,color:T,lineHeight:`${U}px`,borderRadius:L,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ee}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Y-U+s*2}}}},mZ=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:l,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:l},"&-focused, &:focus":m({},yl(Fe(e,{inputBorderActiveColor:l,inputBorderHoverColor:l,controlOutline:i}))),[`${t}-active-bar`]:{background:l}}}}},bZ=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:l,inputPaddingHorizontal:i,colorBgContainer:a,lineWidth:s,lineType:c,colorBorder:u,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:g,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:I,colorPrimary:T,motionDurationSlow:_,zIndexPopup:E,paddingXXS:A,paddingSM:R,pickerTextHeight:z,controlItemBgActive:M,colorPrimaryBorder:B,sizePopupArrow:N,borderRadiusXS:F,borderRadiusOuter:L,colorBgElevated:k,borderRadiusLG:j,boxShadowSecondary:H,borderRadiusSM:Y,colorSplit:Z,controlItemBgHover:U,presetsWidth:ee,presetsMaxWidth:G}=e;return[{[t]:m(m(m({},Xe(e)),ah(e,r,l,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${c} ${u}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":m({},Ga(e)),"&-focused":m({},yl(e)),[`&${t}-disabled`]:{background:g,borderColor:u,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":m(m({},Ii(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":m(m({},ah(e,b,y,i)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":m({},ah(e,S,l,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:v,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:i,background:T,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":m(m(m({},Xe(e)),F6(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:wp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Cp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Op},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:xp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-ranges`]:{marginBottom:0,padding:`${A}px ${R}px`,overflow:"hidden",lineHeight:`${z-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:M,borderColor:B,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:m({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${_} ease-out`},x0(N,F,L,k,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:k,borderRadius:j,boxShadow:H,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:G,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${c} ${Z}`,li:m(m({},Gt),{borderRadius:Y,paddingInline:x,paddingBlock:(S-Math.round(l*I))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:u}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},sr(e,"slide-up"),sr(e,"slide-down"),Ma(e,"move-up"),Ma(e,"move-down")]},L6=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:l,paddingXXS:i}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new gt(l).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new gt(l).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},k6=Ve("DatePicker",e=>{const t=Fe(Ti(e),L6(e));return[bZ(t),mZ(t),ja(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),yZ=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:l}=e;return{[t]:m(m(m({},F6(e)),Xe(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:l}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},SZ=Ve("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Fe(Ti(e),L6(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[yZ(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function $Z(e){function t(l,i){return l&&i&&e.getYear(l)===e.getYear(i)}function n(l,i){return t(l,i)&&e.getMonth(l)===e.getMonth(i)}function o(l,i){return n(l,i)&&e.getDate(l)===e.getDate(i)}const r=oe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(l,i){let{emit:a,slots:s,attrs:c}=i;const u=l,{prefixCls:d,direction:f}=Te("picker",u),[g,v]=SZ(d),h=P(()=>`${d.value}-calendar`),b=M=>u.valueFormat?e.toString(M,u.valueFormat):M,y=P(()=>u.value?u.valueFormat?e.toDate(u.value,u.valueFormat):u.value:u.value===""?void 0:u.value),S=P(()=>u.defaultValue?u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue:u.defaultValue===""?void 0:u.defaultValue),[$,x]=Pt(()=>y.value||e.getNow(),{defaultValue:S.value,value:y}),[C,O]=Pt("month",{value:ze(u,"mode")}),w=P(()=>C.value==="year"?"month":"date"),I=P(()=>M=>{var B;return(u.validRange?e.isAfter(u.validRange[0],M)||e.isAfter(M,u.validRange[1]):!1)||!!(!((B=u.disabledDate)===null||B===void 0)&&B.call(u,M))}),T=(M,B)=>{a("panelChange",b(M),B)},_=M=>{if(x(M),!o(M,$.value)){(w.value==="date"&&!n(M,$.value)||w.value==="month"&&!t(M,$.value))&&T(M,C.value);const B=b(M);a("update:value",B),a("change",B)}},E=M=>{O(M),T($.value,M)},A=(M,B)=>{_(M),a("select",b(M),{source:B})},R=P(()=>{const{locale:M}=u,B=m(m({},Js),M);return B.lang=m(m({},B.lang),(M||{}).lang),B}),[z]=Io("Calendar",R);return()=>{const M=e.getNow(),{dateFullCellRender:B=s==null?void 0:s.dateFullCellRender,dateCellRender:N=s==null?void 0:s.dateCellRender,monthFullCellRender:F=s==null?void 0:s.monthFullCellRender,monthCellRender:L=s==null?void 0:s.monthCellRender,headerRender:k=s==null?void 0:s.headerRender,fullscreen:j=!0,validRange:H}=u,Y=U=>{let{current:ee}=U;return B?B({current:ee}):p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(M,ee)})},[p("div",{class:`${h.value}-date-value`},[String(e.getDate(ee)).padStart(2,"0")]),p("div",{class:`${h.value}-date-content`},[N&&N({current:ee})])])},Z=(U,ee)=>{let{current:G}=U;if(F)return F({current:G});const J=ee.shortMonths||e.locale.getShortMonths(ee.locale);return p("div",{class:ie(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(M,G)})},[p("div",{class:`${h.value}-date-value`},[J[e.getMonth(G)]]),p("div",{class:`${h.value}-date-content`},[L&&L({current:G})])])};return g(p("div",D(D({},c),{},{class:ie(h.value,{[`${h.value}-full`]:j,[`${h.value}-mini`]:!j,[`${h.value}-rtl`]:f.value==="rtl"},c.class,v.value)}),[k?k({value:$.value,type:C.value,onChange:U=>{A(U,"customize")},onTypeChange:E}):p(cZ,{prefixCls:h.value,value:$.value,generateConfig:e,mode:C.value,fullscreen:j,locale:z.value.lang,validRange:H,onChange:A,onModeChange:E},null),p(py,{value:$.value,prefixCls:d.value,locale:z.value.lang,generateConfig:e,dateRender:Y,monthCellRender:U=>Z(U,z.value.lang),onSelect:U=>{A(U,w.value)},mode:w.value,picker:w.value,disabledDate:I.value,hideHeader:!0},null)]))}}});return r.install=function(l){return l.component(r.name,r),l},r}const CZ=$Z(Ub),xZ=Tt(CZ);function wZ(e){const t=te(),n=te(!1);function o(){for(var r=arguments.length,l=new Array(r),i=0;i{e(...l)}))}return Ze(()=>{n.value=!0,Ye.cancel(t.value)}),o}function OZ(e){const t=te([]),n=te(typeof e=="function"?e():e),o=wZ(()=>{let l=n.value;t.value.forEach(i=>{l=i(l)}),t.value=[],n.value=l});function r(l){t.value.push(l),o()}return[n,r]}const PZ=oe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=le();function l(s){var c;!((c=e.tab)===null||c===void 0)&&c.disabled||e.onClick(s)}n({domRef:r});function i(s){var c;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(c=e.tab)===null||c===void 0?void 0:c.key,event:s})}const a=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:c,id:u,active:d,tab:{key:f,tab:g,disabled:v,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${c}-tab`,C=p("div",{key:f,ref:r,class:ie(x,{[`${x}-with-remove`]:a.value,[`${x}-active`]:d,[`${x}-disabled`]:v}),style:o.style,onClick:l},[p("div",{role:"tab","aria-selected":d,id:u&&`${u}-tab-${f}`,class:`${x}-btn`,"aria-controls":u&&`${u}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:O=>{O.stopPropagation(),l(O)},onKeydown:O=>{[Oe.SPACE,Oe.ENTER].includes(O.which)&&(O.preventDefault(),l(O))},onFocus:$},[typeof g=="function"?g():g]),a.value&&p("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),i(O)}},[(h==null?void 0:h())||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),qx={width:0,height:0,left:0,top:0};function IZ(e,t){const n=le(new Map);return ke(()=>{var o,r;const l=new Map,i=e.value,a=t.value.get((o=i[0])===null||o===void 0?void 0:o.key)||qx,s=a.left+a.width;for(let c=0;c{const{prefixCls:l,editable:i,locale:a}=e;return!i||i.showAdd===!1?null:p("button",{ref:r,type:"button",class:`${l}-nav-add`,style:o.style,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:s=>{i.onEdit("add",{event:s})}},[i.addIcon?i.addIcon():"+"])}}}),TZ={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:V.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ve()},EZ=oe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:TZ,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,l]=vt(!1),[i,a]=vt(null),s=g=>{const v=e.tabs.filter(y=>!y.disabled);let h=v.findIndex(y=>y.key===i.value)||0;const b=v.length;for(let y=0;y{const{which:v}=g;if(!r.value){[Oe.DOWN,Oe.SPACE,Oe.ENTER].includes(v)&&(l(!0),g.preventDefault());return}switch(v){case Oe.UP:s(-1),g.preventDefault();break;case Oe.DOWN:s(1),g.preventDefault();break;case Oe.ESC:l(!1);break;case Oe.SPACE:case Oe.ENTER:i.value!==null&&e.onTabClick(i.value,g);break}},u=P(()=>`${e.id}-more-popup`),d=P(()=>i.value!==null?`${u.value}-${i.value}`:null),f=(g,v)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:v,event:g})};return je(()=>{be(i,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),be(r,()=>{r.value||a(null)}),Kb({}),()=>{var g;const{prefixCls:v,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||p(Wb,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:I,popupClassName:T}=e;if(!b.length)return null;const _=`${v}-dropdown`,E=y==null?void 0:y.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:O};b.length||(A.visibility="hidden",A.order=1);const R=ie({[`${_}-rtl`]:w,[`${T}`]:!0}),z=S?null:p(IT,{prefixCls:_,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:l,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(Vt,{onClick:M=>{let{key:B,domEvent:N}=M;I(B,N),l(!1)},id:u.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[i.value],"aria-label":E!==void 0?E:"expanded dropdown"},{default:()=>[b.map(M=>{var B,N;const F=C&&M.closable!==!1&&!M.disabled;return p(lr,{key:M.key,id:`${u.value}-${M.key}`,role:"option","aria-controls":h&&`${h}-panel-${M.key}`,disabled:M.disabled},{default:()=>[p("span",null,[typeof M.tab=="function"?M.tab():M.tab]),F&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${_}-menu-item-remove`,onClick:L=>{L.stopPropagation(),f(L,M.key)}},[((B=M.closeIcon)===null||B===void 0?void 0:B.call(M))||((N=C.removeIcon)===null||N===void 0?void 0:N.call(C))||"×"])]})})]}),default:()=>p("button",{type:"button",class:`${v}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":u.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:c},[$])});return p("div",{class:ie(`${v}-nav-operations`,n.class),style:n.style},[z,p(z6,{prefixCls:v,locale:y,editable:C},null)])}}}),H6=Symbol("tabsContextKey"),MZ=e=>{Ge(H6,e)},j6=()=>He(H6,{tabs:le([]),prefixCls:le()}),_Z=.1,Zx=.01,Gu=20,Qx=Math.pow(.995,Gu);function AZ(e,t){const[n,o]=vt(),[r,l]=vt(0),[i,a]=vt(0),[s,c]=vt(),u=le();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(u.value)}function f(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],I=O-n.value.x,T=w-n.value.y;t(I,T),o({x:O,y:w});const _=Date.now();a(_-r.value),l(_),c({x:I,y:T})}function g(){if(!n.value)return;const C=s.value;if(o(null),c(null),C){const O=C.x/i.value,w=C.y/i.value,I=Math.abs(O),T=Math.abs(w);if(Math.max(I,T)<_Z)return;let _=O,E=w;u.value=setInterval(()=>{if(Math.abs(_)_?(I=O,v.value="x"):(I=w,v.value="y"),t(-I,-I)&&C.preventDefault()}const b=le({onTouchStart:d,onTouchMove:f,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}je(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Ze(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function Jx(e,t){const n=le(e);function o(r){const l=typeof r=="function"?r(n.value):r;l!==n.value&&t(l,n.value),n.value=l}return[n,o]}const RZ=()=>{const e=le(new Map),t=n=>o=>{e.value.set(n,o)};return Lf(()=>{e.value=new Map}),[t,e]},Sy=RZ,ew={width:0,height:0,left:0,top:0,right:0},DZ=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:Re(),editable:Re(),moreIcon:V.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:Re(),popupClassName:String,getPopupContainer:ve(),onTabClick:{type:Function},onTabScroll:{type:Function}}),BZ=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:l}=e,{width:i,height:a,x:s,y:c}=e.getBoundingClientRect();return Math.abs(i-n)<1?[i,a,s-t.x,c-t.y]:[n,o,l,r]},tw=oe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:DZ(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:l}=j6(),i=te(),a=te(),s=te(),c=te(),[u,d]=Sy(),f=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,v]=Jx(0,(re,de)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"left":"right"})}),[h,b]=Jx(0,(re,de)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:re>de?"top":"bottom"})}),[y,S]=vt(0),[$,x]=vt(0),[C,O]=vt(null),[w,I]=vt(null),[T,_]=vt(0),[E,A]=vt(0),[R,z]=OZ(new Map),M=IZ(r,R),B=P(()=>`${l.value}-nav-operations-hidden`),N=te(0),F=te(0);ke(()=>{f.value?e.rtl?(N.value=0,F.value=Math.max(0,y.value-C.value)):(N.value=Math.min(0,C.value-y.value),F.value=0):(N.value=Math.min(0,w.value-$.value),F.value=0)});const L=re=>reF.value?F.value:re,k=te(),[j,H]=vt(),Y=()=>{H(Date.now())},Z=()=>{clearTimeout(k.value)},U=(re,de)=>{re(ge=>L(ge+de))};AZ(i,(re,de)=>{if(f.value){if(C.value>=y.value)return!1;U(v,re)}else{if(w.value>=$.value)return!1;U(b,de)}return Z(),Y(),!0}),be(j,()=>{Z(),j.value&&(k.value=setTimeout(()=>{H(0)},100))});const ee=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const de=M.value.get(re)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let ge=g.value;e.rtl?de.rightg.value+C.value&&(ge=de.right+de.width-C.value):de.left<-g.value?ge=-de.left:de.left+de.width>-g.value+C.value&&(ge=-(de.left+de.width-C.value)),b(0),v(L(ge))}else{let ge=h.value;de.top<-h.value?ge=-de.top:de.top+de.height>-h.value+w.value&&(ge=-(de.top+de.height-w.value)),v(0),b(L(ge))}},G=te(0),J=te(0);ke(()=>{let re,de,ge,me,fe,ye;const Se=M.value;["top","bottom"].includes(e.tabPosition)?(re="width",me=C.value,fe=y.value,ye=T.value,de=e.rtl?"right":"left",ge=Math.abs(g.value)):(re="height",me=w.value,fe=y.value,ye=E.value,de="top",ge=-h.value);let ue=me;fe+ye>me&&fege+ue){Pe=Ae-1;break}}let Ie=0;for(let Ae=he-1;Ae>=0;Ae-=1)if((Se.get(ce[Ae].key)||ew)[de]{z(()=>{var re;const de=new Map,ge=(re=a.value)===null||re===void 0?void 0:re.getBoundingClientRect();return r.value.forEach(me=>{let{key:fe}=me;const ye=d.value.get(fe),Se=(ye==null?void 0:ye.$el)||ye;if(Se){const[ue,ce,he,Pe]=BZ(Se,ge);de.set(fe,{width:ue,height:ce,left:he,top:Pe})}}),de})};be(()=>r.value.map(re=>re.key).join("%%"),()=>{Q()},{flush:"post"});const K=()=>{var re,de,ge,me,fe;const ye=((re=i.value)===null||re===void 0?void 0:re.offsetWidth)||0,Se=((de=i.value)===null||de===void 0?void 0:de.offsetHeight)||0,ue=((ge=c.value)===null||ge===void 0?void 0:ge.$el)||{},ce=ue.offsetWidth||0,he=ue.offsetHeight||0;O(ye),I(Se),_(ce),A(he);const Pe=(((me=a.value)===null||me===void 0?void 0:me.offsetWidth)||0)-ce,Ie=(((fe=a.value)===null||fe===void 0?void 0:fe.offsetHeight)||0)-he;S(Pe),x(Ie),Q()},q=P(()=>[...r.value.slice(0,G.value),...r.value.slice(J.value+1)]),[pe,W]=vt(),X=P(()=>M.value.get(e.activeKey)),ne=te(),ae=()=>{Ye.cancel(ne.value)};be([X,f,()=>e.rtl],()=>{const re={};X.value&&(f.value?(e.rtl?re.right=Vl(X.value.right):re.left=Vl(X.value.left),re.width=Vl(X.value.width)):(re.top=Vl(X.value.top),re.height=Vl(X.value.height))),ae(),ne.value=Ye(()=>{W(re)})}),be([()=>e.activeKey,X,M,f],()=>{ee()},{flush:"post"}),be([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{K()},{flush:"post"});const se=re=>{let{position:de,prefixCls:ge,extra:me}=re;if(!me)return null;const fe=me==null?void 0:me({position:de});return fe?p("div",{class:`${ge}-extra-content`},[fe]):null};return Ze(()=>{Z(),ae()}),()=>{const{id:re,animated:de,activeKey:ge,rtl:me,editable:fe,locale:ye,tabPosition:Se,tabBarGutter:ue,onTabClick:ce}=e,{class:he,style:Pe}=n,Ie=l.value,Ae=!!q.value.length,$e=`${Ie}-nav-wrap`;let xe,we,Me,Ne;f.value?me?(we=g.value>0,xe=g.value+C.value{const{key:it}=Je;return p(PZ,{id:re,prefixCls:Ie,key:it,tab:Je,style:ft===0?void 0:_e,closable:Je.closable,editable:fe,active:it===ge,removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:u(it),onClick:pt=>{ce(it,pt)},onFocus:()=>{ee(it),Y(),i.value&&(me||(i.value.scrollLeft=0),i.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:ie(`${Ie}-nav`,he),style:Pe,onKeydown:()=>{Y()}},[p(se,{position:"left",prefixCls:Ie,extra:o.leftExtra},null),p(xo,{onResize:K},{default:()=>[p("div",{class:ie($e,{[`${$e}-ping-left`]:xe,[`${$e}-ping-right`]:we,[`${$e}-ping-top`]:Me,[`${$e}-ping-bottom`]:Ne}),ref:i},[p(xo,{onResize:K},{default:()=>[p("div",{ref:a,class:`${Ie}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:j.value?"none":void 0}},[De,p(z6,{ref:c,prefixCls:Ie,locale:ye,editable:fe,style:m(m({},De.length===0?void 0:_e),{visibility:Ae?"hidden":null})},null),p("div",{class:ie(`${Ie}-ink-bar`,{[`${Ie}-ink-bar-animated`]:de.inkBar}),style:pe.value},null)])]})])]}),p(EZ,D(D({},e),{},{removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:s,prefixCls:Ie,tabs:q.value,class:!Ae&&B.value}),gT(o,["moreIcon"])),p(se,{position:"right",prefixCls:Ie,extra:o.rightExtra},null),p(se,{position:"right",prefixCls:Ie,extra:o.tabBarExtraContent},null)])}}}),NZ=oe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=j6();return()=>{const{id:o,activeKey:r,animated:l,tabPosition:i,rtl:a,destroyInactiveTabPane:s}=e,c=l.tabPane,u=n.value,d=t.value.findIndex(f=>f.key===r);return p("div",{class:`${u}-content-holder`},[p("div",{class:[`${u}-content`,`${u}-content-${i}`,{[`${u}-content-animated`]:c}],style:d&&c?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>dt(f.node,{key:f.key,prefixCls:u,tabKey:f.key,id:o,animated:c,active:f.key===r,destroyInactiveTabPane:s}))])])}}});var FZ={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"};const LZ=FZ;function nw(e){for(var t=1;t{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}`}}}}},[sr(e,"slide-up"),sr(e,"slide-down")]]},jZ=HZ,WZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VZ=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:m(m({},Xe(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:`${o}px 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":m(m({},Gt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},KZ=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},GZ=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},XZ=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:l}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":m({"&:focus:not(:focus-visible), &:active":{color:n}},Rr(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:o},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${l}px`}}}},UZ=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{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:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},YZ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:l,tabsActiveColor:i,colorSplit:a}=e;return{[t]:m(m(m(m({},Xe(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,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:m({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:i}},Rr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),XZ(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},qZ=Ve("Tabs",e=>{const t=e.controlHeightLG,n=Fe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[GZ(n),UZ(n),KZ(n),VZ(n),WZ(n),YZ(n),jZ(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let ow=0;const W6=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ve(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Be(),animated:Le([Boolean,Object]),renderTabBar:ve(),tabBarGutter:{type:Number},tabBarStyle:Re(),tabPosition:Be(),destroyInactiveTabPane:Ce(),hideAdd:Boolean,type:Be(),size:Be(),centered:Boolean,onEdit:ve(),onChange:ve(),onTabClick:ve(),onTabScroll:ve(),"onUpdate:activeKey":ve(),locale:Re(),onPrevClick:ve(),onNextClick:ve(),tabBarExtraContent:V.any});function ZZ(e){return e.map(t=>{if(Kt(t)){const n=m({},t.props||{});for(const[f,g]of Object.entries(n))delete n[f],n[mi(f)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:l=o.tab,disabled:i,forceRender:a,closable:s,animated:c,active:u,destroyInactiveTabPane:d}=n;return m(m({key:r},n),{node:t,closeIcon:o.closeIcon,tab:l,disabled:i===""||i,forceRender:a===""||a,closable:s===""||s,animated:c===""||c,active:u===""||u,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const QZ=oe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:m(m({},qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:at()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;xt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),xt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),xt(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:l,size:i,rootPrefixCls:a,getPopupContainer:s}=Te("tabs",e),[c,u]=qZ(r),d=P(()=>l.value==="rtl"),f=P(()=>{const{animated:w,tabPosition:I}=e;return w===!1||["left","right"].includes(I)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:m({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,v]=vt(!1);je(()=>{v(U0())});const[h,b]=Pt(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=vt(()=>e.tabs.findIndex(w=>w.key===h.value));ke(()=>{var w;let I=e.tabs.findIndex(T=>T.key===h.value);I===-1&&(I=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[I])===null||w===void 0?void 0:w.key)),S(I)});const[$,x]=Pt(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);je(()=>{e.id||(x(`rc-tabs-${ow}`),ow+=1)});const O=(w,I)=>{var T,_;(T=e.onTabClick)===null||T===void 0||T.call(e,w,I);const E=w!==h.value;b(w),E&&((_=e.onChange)===null||_===void 0||_.call(e,w))};return MZ({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:I,tabBarGutter:T,tabBarStyle:_,locale:E,destroyInactiveTabPane:A,renderTabBar:R=o.renderTabBar,onTabScroll:z,hideAdd:M,centered:B}=e,N={id:$.value,activeKey:h.value,animated:f.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let F;I==="editable-card"&&(F={onEdit:(H,Y)=>{let{key:Z,event:U}=Y;var ee;(ee=e.onEdit)===null||ee===void 0||ee.call(e,H==="add"?U:Z,H)},removeIcon:()=>p(Zn,null,null),addIcon:o.addIcon?o.addIcon:()=>p(zZ,null,null),showAdd:M!==!0});let L;const k=m(m({},N),{moreTransitionName:`${a.value}-slide-up`,editable:F,locale:E,tabBarGutter:T,onTabClick:O,onTabScroll:z,style:_,getPopupContainer:s.value,popupClassName:ie(e.popupClassName,u.value)});R?L=R(m(m({},k),{DefaultTabBar:tw})):L=p(tw,k,gT(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const j=r.value;return c(p("div",D(D({},n),{},{id:w,class:ie(j,`${j}-${C.value}`,{[u.value]:!0,[`${j}-${i.value}`]:i.value,[`${j}-card`]:["card","editable-card"].includes(I),[`${j}-editable-card`]:I==="editable-card",[`${j}-centered`]:B,[`${j}-mobile`]:g.value,[`${j}-editable`]:I==="editable-card",[`${j}-rtl`]:d.value},n.class)}),[L,p(NZ,D(D({destroyInactiveTabPane:A},N),{},{animated:f.value}),null)]))}}}),ri=oe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:qe(W6(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=i=>{r("update:activeKey",i),r("change",i)};return()=>{var i;const a=ZZ(yt((i=o.default)===null||i===void 0?void 0:i.call(o)));return p(QZ,D(D(D({},et(e,["onUpdate:activeKey"])),n),{},{onChange:l,tabs:a}),o)}}}),JZ=()=>({tab:V.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),df=oe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:JZ(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.forceRender);be([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const l=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:a,forceRender:s,id:c,active:u,tabKey:d}=e;return p("div",{id:c&&`${c}-panel-${d}`,role:"tabpanel",tabindex:u?0:-1,"aria-labelledby":c&&`${c}-tab-${d}`,"aria-hidden":!u,style:[l.value,n.style],class:[`${a}-tabpane`,u&&`${a}-tabpane-active`,n.class]},[(u||r.value||s)&&((i=o.default)===null||i===void 0?void 0:i.call(o))])}}});ri.TabPane=df;ri.install=function(e){return e.component(ri.name,ri),e.component(df.name,df),e};const eQ=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:l}=e;return m(m({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},zo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":m(m({display:"inline-block",flex:1},Gt),{[` - > ${n}-typography, - > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:l,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},tQ=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${r}px 0 0 0 ${n}, - 0 ${r}px 0 0 ${n}, - ${r}px ${r}px 0 0 ${n}, - ${r}px 0 0 0 ${n} inset, - 0 ${r}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},nQ=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:l}=e;return m(m({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${l}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},zo()),{"& > li":{margin:o,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${l}`}}})},oQ=e=>m(m({margin:`-${e.marginXXS}px 0`,display:"flex"},zo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":m({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Gt),"&-description":{color:e.colorTextDescription}}),rQ=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:o}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:o,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},lQ=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},iQ=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadow:l,cardPaddingBase:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:l},[`${t}-head`]:eQ(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:m({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},zo()),[`${t}-grid`]:tQ(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:nQ(e),[`${t}-meta`]:oQ(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:rQ(e),[`${t}-loading`]:lQ(e),[`${t}-rtl`]:{direction:"rtl"}}},aQ=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:o,paddingTop:0,display:"flex",alignItems:"center"}}}}},sQ=Ve("Card",e=>{const t=Fe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[iQ(t),aQ(t)]}),cQ=()=>({prefixCls:String,width:{type:[Number,String]}}),uQ=oe({compatConfig:{MODE:3},name:"SkeletonTitle",props:cQ(),setup(e){return()=>{const{prefixCls:t,width:n}=e,o=typeof n=="number"?`${n}px`:n;return p("h3",{class:t,style:{width:o}},null)}}}),Ap=uQ,dQ=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),fQ=oe({compatConfig:{MODE:3},name:"SkeletonParagraph",props:dQ(),setup(e){const t=n=>{const{width:o,rows:r=2}=e;if(Array.isArray(o))return o[n];if(r-1===n)return o};return()=>{const{prefixCls:n,rows:o}=e,r=[...Array(o)].map((l,i)=>{const a=t(i);return p("li",{key:i,style:{width:typeof a=="number"?`${a}px`:a}},null)});return p("ul",{class:n},[r])}}}),pQ=fQ,Rp=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),V6=e=>{const{prefixCls:t,size:n,shape:o}=e,r=ie({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),l=ie({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),i=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return p("span",{class:ie(t,r,l),style:i},null)};V6.displayName="SkeletonElement";const Dp=V6,gQ=new nt("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Bp=e=>({height:e,lineHeight:`${e}px`}),da=e=>m({width:e},Bp(e)),hQ=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:gQ,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),sh=e=>m({width:e*5,minWidth:e*5},Bp(e)),vQ=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l}=e;return{[`${t}`]:m({display:"inline-block",verticalAlign:"top",background:n},da(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:m({},da(r)),[`${t}${t}-sm`]:m({},da(l))}},mQ=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return{[`${o}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},sh(t)),[`${o}-lg`]:m({},sh(r)),[`${o}-sm`]:m({},sh(l))}},rw=e=>m({width:e},Bp(e)),bQ=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:o,borderRadiusSM:r}=e;return{[`${t}`]:m(m({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:o,borderRadius:r},rw(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:m(m({},rw(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ch=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},uh=e=>m({width:e*2,minWidth:e*2},Bp(e)),yQ=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:l,color:i}=e;return m(m(m(m(m({[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:o*2,minWidth:o*2},uh(o))},ch(e,o,n)),{[`${n}-lg`]:m({},uh(r))}),ch(e,r,`${n}-lg`)),{[`${n}-sm`]:m({},uh(l))}),ch(e,l,`${n}-sm`))},SQ=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:l,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:c,controlHeightSM:u,color:d,padding:f,marginSM:g,borderRadius:v,skeletonTitleHeight:h,skeletonBlockRadius:b,skeletonParagraphLineHeight:y,controlHeightXS:S,skeletonParagraphMarginTop:$}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:m({display:"inline-block",verticalAlign:"top",background:d},da(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:m({},da(c)),[`${n}-sm`]:m({},da(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${o}`]:{width:"100%",height:h,background:d,borderRadius:b,[`+ ${r}`]:{marginBlockStart:u}},[`${r}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:b,"+ li":{marginBlockStart:S}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${o}`]:{marginBlockStart:g,[`+ ${r}`]:{marginBlockStart:$}}},[`${t}${t}-element`]:m(m(m(m({display:"inline-block",width:"auto"},yQ(e)),vQ(e)),mQ(e)),bQ(e)),[`${t}${t}-block`]:{width:"100%",[`${l}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${o}, - ${r} > li, - ${n}, - ${l}, - ${i}, - ${a} - `]:m({},hQ(e))}}},Fc=Ve("Skeleton",e=>{const{componentCls:t}=e,n=Fe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[SQ(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),$Q=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function dh(e){return e&&typeof e=="object"?e:{}}function CQ(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xQ(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function wQ(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const OQ=oe({compatConfig:{MODE:3},name:"ASkeleton",props:qe($Q(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("skeleton",e),[l,i]=Fc(o);return()=>{var a;const{loading:s,avatar:c,title:u,paragraph:d,active:f,round:g}=e,v=o.value;if(s||e.loading===void 0){const h=!!c||c==="",b=!!u||u==="",y=!!d||d==="";let S;if(h){const C=m(m({prefixCls:`${v}-avatar`},CQ(b,y)),dh(c));S=p("div",{class:`${v}-header`},[p(Dp,C,null)])}let $;if(b||y){let C;if(b){const w=m(m({prefixCls:`${v}-title`},xQ(h,y)),dh(u));C=p(Ap,w,null)}let O;if(y){const w=m(m({prefixCls:`${v}-paragraph`},wQ(h,b)),dh(d));O=p(pQ,w,null)}$=p("div",{class:`${v}-content`},[C,O])}const x=ie(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:f,[`${v}-rtl`]:r.value==="rtl",[`${v}-round`]:g,[i.value]:!0});return l(p("div",{class:x},[S,$]))}return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),On=OQ,PQ=()=>m(m({},Rp()),{size:String,block:Boolean}),IQ=oe({compatConfig:{MODE:3},name:"ASkeletonButton",props:qe(PQ(),{size:"default"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),Cy=IQ,TQ=oe({compatConfig:{MODE:3},name:"ASkeletonInput",props:m(m({},et(Rp(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),xy=TQ,EQ="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",MQ=oe({compatConfig:{MODE:3},name:"ASkeletonImage",props:et(Rp(),["size","shape","active"]),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,o.value));return()=>n(p("div",{class:r.value},[p("div",{class:`${t.value}-image`},[p("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[p("path",{d:EQ,class:`${t.value}-image-path`},null)])])]))}}),wy=MQ,_Q=()=>m(m({},Rp()),{shape:String}),AQ=oe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:qe(_Q(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>ie(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(p("div",{class:r.value},[p(Dp,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),Oy=AQ;On.Button=Cy;On.Avatar=Oy;On.Input=xy;On.Image=wy;On.Title=Ap;On.install=function(e){return e.component(On.name,On),e.component(On.Button.name,Cy),e.component(On.Avatar.name,Oy),e.component(On.Input.name,xy),e.component(On.Image.name,wy),e.component(On.Title.name,Ap),e};const{TabPane:RQ}=ri,DQ=()=>({prefixCls:String,title:V.any,extra:V.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:V.any,tabList:{type:Array},tabBarExtraContent:V.any,activeTabKey:String,defaultActiveTabKey:String,cover:V.any,onTabChange:{type:Function}}),BQ=oe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:DQ(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,size:i}=Te("card",e),[a,s]=sQ(r),c=f=>f.map((v,h)=>Yt(v)&&!wc(v)||!Yt(v)?p("li",{style:{width:`${100/f.length}%`},key:`action-${h}`},[p("span",null,[v])]):null),u=f=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return f.forEach(v=>{v&&mb(v.type)&&v.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var f,g,v,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:I,activeTabKey:T,defaultActiveTabKey:_,tabBarExtraContent:E=Ja((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:A=Ja((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:R=Ja((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:z=Ja((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:M=Ja((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,B=yt((y=n.default)===null||y===void 0?void 0:y.call(n)),N=r.value,F={[`${N}`]:!0,[s.value]:!0,[`${N}-loading`]:x,[`${N}-bordered`]:C,[`${N}-hoverable`]:!!I,[`${N}-contain-grid`]:d(B),[`${N}-contain-tabs`]:w&&w.length,[`${N}-${i.value}`]:i.value,[`${N}-type-${O}`]:!!O,[`${N}-rtl`]:l.value==="rtl"},L=p(On,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[B]}),k=T!==void 0,j={size:"large",[k?"activeKey":"defaultActiveKey"]:k?T:_,onChange:u,class:`${N}-head-tabs`};let H;const Y=w&&w.length?p(ri,j,{default:()=>[w.map(G=>{const{tab:J,slots:Q}=G,K=Q==null?void 0:Q.tab;xt(!Q,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=J!==void 0?J:n[K]?n[K](G):null;return q=np(n,"customTab",G,()=>[q]),p(RQ,{tab:q,key:G.key,disabled:G.disabled},null)})],rightExtra:E?()=>E:null}):null;(A||R||Y)&&(H=p("div",{class:`${N}-head`,style:S},[p("div",{class:`${N}-head-wrapper`},[A&&p("div",{class:`${N}-head-title`},[A]),R&&p("div",{class:`${N}-extra`},[R])]),Y]));const Z=M?p("div",{class:`${N}-cover`},[M]):null,U=p("div",{class:`${N}-body`,style:$},[x?L:B]),ee=z&&z.length?p("ul",{class:`${N}-actions`},[c(z)]):null;return a(p("div",D(D({ref:"cardContainerRef"},o),{},{class:[F,o.class]}),[H,Z,B&&B.length?U:null,ee]))}}}),fa=BQ,NQ=()=>({prefixCls:String,title:In(),description:In(),avatar:In()}),ff=oe({compatConfig:{MODE:3},name:"ACardMeta",props:NQ(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e);return()=>{const r={[`${o.value}-meta`]:!0},l=qt(n,e,"avatar"),i=qt(n,e,"title"),a=qt(n,e,"description"),s=l?p("div",{class:`${o.value}-meta-avatar`},[l]):null,c=i?p("div",{class:`${o.value}-meta-title`},[i]):null,u=a?p("div",{class:`${o.value}-meta-description`},[a]):null,d=c||u?p("div",{class:`${o.value}-meta-detail`},[c,u]):null;return p("div",{class:r},[s,d])}}}),FQ=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),pf=oe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:FQ(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var l;return p("div",{class:r.value},[(l=n.default)===null||l===void 0?void 0:l.call(n)])}}});fa.Meta=ff;fa.Grid=pf;fa.install=function(e){return e.component(fa.name,fa),e.component(ff.name,ff),e.component(pf.name,pf),e};const LQ=()=>({prefixCls:String,activeKey:Le([Array,Number,String]),defaultActiveKey:Le([Array,Number,String]),accordion:Ce(),destroyInactivePanel:Ce(),bordered:Ce(),expandIcon:ve(),openAnimation:V.object,expandIconPosition:Be(),collapsible:Be(),ghost:Ce(),onChange:ve(),"onUpdate:activeKey":ve()}),K6=()=>({openAnimation:V.object,prefixCls:String,header:V.any,headerClass:String,showArrow:Ce(),isActive:Ce(),destroyInactivePanel:Ce(),disabled:Ce(),accordion:Ce(),forceRender:Ce(),expandIcon:ve(),extra:V.any,panelKey:Le(),collapsible:Be(),role:String,onItemClick:ve()}),kQ=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:l,collapseHeaderPadding:i,collapsePanelBorderRadius:a,lineWidth:s,lineType:c,colorBorder:u,colorText:d,colorTextHeading:f,colorTextDisabled:g,fontSize:v,lineHeight:h,marginSM:b,paddingSM:y,motionDurationSlow:S,fontSizeIcon:$}=e,x=`${s}px ${c} ${u}`;return{[t]:m(m({},Xe(e)),{backgroundColor:l,border:x,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[` - &, - & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:h,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*h,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:m(m({},yi()),{fontSize:$,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:y}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},zQ=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HQ=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[` - > ${t}-item:last-child, - > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},jQ=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},WQ=Ve("Collapse",e=>{const t=Fe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[kQ(t),HQ(t),jQ(t),zQ(t),Ac(t)]});function lw(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Rs=oe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:qe(LQ(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=le(lw(qd([e.activeKey,e.defaultActiveKey])));be(()=>e.activeKey,()=>{l.value=lw(e.activeKey)},{deep:!0});const{prefixCls:i,direction:a,rootPrefixCls:s}=Te("collapse",e),[c,u]=WQ(i),d=P(()=>{const{expandIconPosition:y}=e;return y!==void 0?y:a.value==="rtl"?"end":"start"}),f=y=>{const{expandIcon:S=o.expandIcon}=e,$=S?S(y):p(Wo,{rotate:y.isActive?90:void 0},null);return p("div",{class:[`${i.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&v(y.panelKey)},[Kt(Array.isArray(S)?$[0]:$)?dt($,{class:`${i.value}-arrow`},!1):$])},g=y=>{e.activeKey===void 0&&(l.value=y);const S=e.accordion?y[0]:y;r("update:activeKey",S),r("change",S)},v=y=>{let S=l.value;if(e.accordion)S=S[0]===y?[]:[y];else{S=[...S];const $=S.indexOf(y);$>-1?S.splice($,1):S.push(y)}g(S)},h=(y,S)=>{var $,x,C;if(wc(y))return;const O=l.value,{accordion:w,destroyInactivePanel:I,collapsible:T,openAnimation:_}=e,E=_||Rc(`${s.value}-motion-collapse`),A=String(($=y.key)!==null&&$!==void 0?$:S),{header:R=(C=(x=y.children)===null||x===void 0?void 0:x.header)===null||C===void 0?void 0:C.call(x),headerClass:z,collapsible:M,disabled:B}=y.props||{};let N=!1;w?N=O[0]===A:N=O.indexOf(A)>-1;let F=M??T;(B||B==="")&&(F="disabled");const L={key:A,panelKey:A,header:R,headerClass:z,isActive:N,prefixCls:i.value,destroyInactivePanel:I,openAnimation:E,accordion:w,onItemClick:F==="disabled"?null:v,expandIcon:f,collapsible:F};return dt(y,L)},b=()=>{var y;return yt((y=o.default)===null||y===void 0?void 0:y.call(o)).map(h)};return()=>{const{accordion:y,bordered:S,ghost:$}=e,x=ie(i.value,{[`${i.value}-borderless`]:!S,[`${i.value}-icon-position-${d.value}`]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-ghost`]:!!$,[n.class]:!!n.class},u.value);return c(p("div",D(D({class:x},RR(n)),{},{style:n.style,role:y?"tablist":null}),[b()]))}}}),VQ=oe({compatConfig:{MODE:3},name:"PanelContent",props:K6(),setup(e,t){let{slots:n}=t;const o=te(!1);return ke(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var r;if(!o.value)return null;const{prefixCls:l,isActive:i,role:a}=e;return p("div",{class:ie(`${l}-content`,{[`${l}-content-active`]:i,[`${l}-content-inactive`]:!i}),role:a},[p("div",{class:`${l}-content-box`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}}),gf=oe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:qe(K6(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;xt(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:l}=Te("collapse",e),i=()=>{o("itemClick",e.panelKey)},a=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&i()};return()=>{var s,c;const{header:u=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:g,destroyInactivePanel:v,accordion:h,forceRender:b,openAnimation:y,expandIcon:S=n.expandIcon,extra:$=(c=n.extra)===null||c===void 0?void 0:c.call(n),collapsible:x}=e,C=x==="disabled",O=l.value,w=ie(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:x==="header",[`${O}-icon-collapsible-only`]:x==="icon"}),I=ie({[`${O}-item`]:!0,[`${O}-item-active`]:f,[`${O}-item-disabled`]:C,[`${O}-no-arrow`]:!g,[`${r.class}`]:!!r.class});let T=p("i",{class:"arrow"},null);g&&typeof S=="function"&&(T=S(e));const _=$n(p(VQ,{prefixCls:O,isActive:f,forceRender:b,role:h?"tabpanel":null},{default:n.default}),[[En,f]]),E=m({appear:!1,css:!1},y);return p("div",D(D({},r),{},{class:I}),[p("div",{class:w,onClick:()=>!["header","icon"].includes(x)&&i(),role:h?"tab":"button",tabindex:C?-1:0,"aria-expanded":f,onKeypress:a},[g&&T,p("span",{onClick:()=>x==="header"&&i(),class:`${O}-header-text`},[u]),$&&p("div",{class:`${O}-extra`},[$])]),p(cn,E,{default:()=>[!v||f?_:null]})])}}});Rs.Panel=gf;Rs.install=function(e){return e.component(Rs.name,Rs),e.component(gf.name,gf),e};const KQ=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},GQ=function(e){return/[height|width]$/.test(e)},iw=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let l=e[o];o=KQ(o),GQ(o)&&typeof l=="number"&&(l=l+"px"),l===!0?t+=o:l===!1?t+="not "+o:t+="("+o+": "+l+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},hf=e=>{const t=[],n=X6(e),o=U6(e);for(let r=n;re.currentSlide-qQ(e),U6=e=>e.currentSlide+ZQ(e),qQ=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,ZQ=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,Zv=e=>e&&e.offsetWidth||0,Py=e=>e&&e.offsetHeight||0,Y6=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,l=Math.atan2(r,o);return n=Math.round(l*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Np=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},ph=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},QQ=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(Zv(n)),r=e.trackRef,l=Math.ceil(Zv(r));let i;if(e.vertical)i=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),i=Math.ceil((o-g)/e.slidesToShow)}const a=n&&Py(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let c=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(c=t-1-e.initialSlide);let u=e.lazyLoadedList||[];const d=hf(m(m({},e),{currentSlide:c,lazyLoadedList:u}));u=u.concat(d);const f={slideCount:t,slideWidth:i,listWidth:o,trackWidth:l,currentSlide:c,slideHeight:a,listHeight:s,lazyLoadedList:u};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},JQ=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:l,slideCount:i,lazyLoad:a,currentSlide:s,centerMode:c,slidesToScroll:u,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let v=l,h,b,y,S={},$={};const x=r?l:qv(l,0,i-1);if(o){if(!r&&(l<0||l>=i))return{};l<0?v=l+i:l>=i&&(v=l-i),a&&g.indexOf(v)<0&&(g=g.concat(v)),S={animating:!0,currentSlide:v,lazyLoadedList:g,targetSlide:v},$={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+i,r?i%u!==0&&(h=i-i%u):h=0):!Np(e)&&v>s?v=h=s:c&&v>=i?(v=r?i:i-1,h=r?0:i-1):v>=i&&(h=v-i,r?i%u!==0&&(h=0):h=i-d),!r&&v+d>=i&&(h=i-d),b=hc(m(m({},e),{slideIndex:v})),y=hc(m(m({},e),{slideIndex:h})),r||(b===y&&(v=h),b=y),a&&(g=g.concat(hf(m(m({},e),{currentSlide:v})))),f?(S={animating:!0,currentSlide:h,trackStyle:q6(m(m({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:gc(m(m({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},eJ=(e,t)=>{let n,o,r;const{slidesToScroll:l,slidesToShow:i,slideCount:a,currentSlide:s,targetSlide:c,lazyLoad:u,infinite:d}=e,g=a%l!==0?0:(a-s)%l;if(t.message==="previous")o=g===0?l:i-g,r=s-o,u&&!d&&(n=s-o,r=n===-1?a-1:n),d||(r=c-l);else if(t.message==="next")o=g===0?l:g,r=s+o,u&&!d&&(r=(s+l)%a+g),d||(r=c+l);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const v=aJ(m(m({},e),{targetSlide:r}));r>t.currentSlide&&v==="left"?r=r-a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",nJ=(e,t,n)=>(e.target.tagName==="IMG"&&pa(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),oJ=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:l,verticalSwiping:i,rtl:a,currentSlide:s,edgeFriction:c,edgeDragged:u,onEdge:d,swiped:f,swiping:g,slideCount:v,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return pa(e);r&&l&&i&&pa(e);let C,O={};const w=hc(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!i&&!g&&I>10)return{scrolling:!0};i&&(y.swipeLength=I);let T=(a?-1:1)*(y.curX>y.startX?1:-1);i&&(T=y.curY>y.startY?1:-1);const _=Math.ceil(v/h),E=Y6(t.touchObject,i);let A=y.swipeLength;return b||(s===0&&(E==="right"||E==="down")||s+1>=_&&(E==="left"||E==="up")||!Np(t)&&(E==="left"||E==="up"))&&(A=y.swipeLength*c,u===!1&&d&&(d(E),O.edgeDragged=!0)),!f&&S&&(S(E),O.swiped=!0),r?C=w+A*($/x)*T:a?C=w-A*T:C=w+A*T,i&&(C=w+A*T),O=m(m({},O),{touchObject:y,swipeLeft:C,trackStyle:gc(m(m({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,pa(e)),O},rJ=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:l,touchThreshold:i,verticalSwiping:a,listHeight:s,swipeToSlide:c,scrolling:u,onSwipe:d,targetSlide:f,currentSlide:g,infinite:v}=t;if(!n)return o&&pa(e),{};const h=a?s/i:l/i,b=Y6(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!r.swipeLength)return y;if(r.swipeLength>h){pa(e),d&&d(b);let S,$;const x=v?g:f;switch(b){case"left":case"up":$=x+sw(t),S=c?aw(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-sw(t),S=c?aw(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=hc(t);y.trackStyle=q6(m(m({},t),{left:S}))}return y},lJ=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=lJ(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(a=>{if(e.vertical){if(a.offsetTop+Py(a)/2>e.swipeLeft*-1)return n=a,!1}else if(a.offsetLeft-t+Zv(a)/2>e.swipeLeft*-1)return n=a,!1;return!0}),!n)return 0;const l=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-l)||1}else return e.slidesToScroll},Iy=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),gc=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=iJ(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=m(m({},r),{WebkitTransform:l,transform:i,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},q6=e=>{Iy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=gc(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},hc=e=>{if(e.unslick)return 0;Iy(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:l,slidesToShow:i,slidesToScroll:a,slideWidth:s,listWidth:c,variableWidth:u,slideHeight:d,fade:f,vertical:g}=e;let v=0,h,b,y=0;if(f||e.slideCount===1)return 0;let S=0;if(o?(S=-Tr(e),l%a!==0&&t+a>l&&(S=-(t>l?i-(t-l):l%a)),r&&(S+=parseInt(i/2))):(l%a!==0&&t+a>l&&(S=i-l%a),r&&(S=parseInt(i/2))),v=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+v,u===!0){let $;const x=n;if($=t+Tr(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+Tr(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(c-b.offsetWidth)/2}}return h},Tr=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),Xu=e=>e.unslick||!e.infinite?0:e.slideCount,iJ=e=>e.slideCount===1?1:Tr(e)+e.slideCount+Xu(e),aJ=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+sJ(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),o&&t%2===0&&(l+=1),l}return o?0:t-1},cJ=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let l=(t-1)/2+1;return parseInt(r)>0&&(l+=1),!o&&t%2===0&&(l+=1),l}return o?t-1:0},cw=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),gh=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const l=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?i=e.targetSlide-e.slideCount:i=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":l,"slick-current":r===i}},uJ=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},hh=(e,t)=>e.key+"-"+t,dJ=function(e,t){let n;const o=[],r=[],l=[],i=t.length,a=X6(e),s=U6(e);return t.forEach((c,u)=>{let d;const f={message:"children",index:u,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(u)>=0?d=c:d=p("div");const g=uJ(m(m({},e),{index:u})),v=d.props.class||"";let h=gh(m(m({},e),{index:u}));if(o.push(Is(d,{key:"original"+hh(d,u),tabindex:"-1","data-index":u,"aria-hidden":!h["slick-active"],class:ie(h,v),style:m(m({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const b=i-u;b<=Tr(e)&&i!==e.slidesToShow&&(n=-b,n>=a&&(d=c),h=gh(m(m({},e),{index:n})),r.push(Is(d,{key:"precloned"+hh(d,n),class:ie(h,v),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:m(m({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),i!==e.slidesToShow&&(n=i+u,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?r.concat(o,l).reverse():r.concat(o,l)},Z6=(e,t)=>{let{attrs:n,slots:o}=t;const r=dJ(n,yt(o==null?void 0:o.default())),{onMouseenter:l,onMouseover:i,onMouseleave:a}=n,s={onMouseenter:l,onMouseover:i,onMouseleave:a},c=m({class:"slick-track",style:n.trackStyle},s);return p("div",c,[r])};Z6.inheritAttrs=!1;const fJ=Z6,pJ=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},Q6=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i,currentSlide:a,appendDots:s,customPaging:c,clickHandler:u,dotsClass:d,onMouseenter:f,onMouseover:g,onMouseleave:v}=n,h=pJ({slideCount:o,slidesToScroll:r,slidesToShow:l,infinite:i}),b={onMouseenter:f,onMouseover:g,onMouseleave:v};let y=[];for(let S=0;S=O&&a<=x:a===O}),I={message:"dots",index:S,slidesToScroll:r,currentSlide:a};y=y.concat(p("li",{key:S,class:w},[dt(c({i:S}),{onClick:T})]))}return dt(s({dots:y}),m({class:d},b))};Q6.inheritAttrs=!1;const gJ=Q6;function J6(){}function e8(e,t,n){n&&n.preventDefault(),t(e,n)}const t8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:l,slideCount:i,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let c=function(g){e8({message:"previous"},o,g)};!r&&(l===0||i<=a)&&(s["slick-disabled"]=!0,c=J6);const u={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:c},d={currentSlide:l,slideCount:i};let f;return n.prevArrow?f=dt(n.prevArrow(m(m({},u),d)),{key:"0",class:s,style:{display:"block"},onClick:c},!1):f=p("button",D({key:"0",type:"button"},u),[" ",Lt("Previous")]),f};t8.inheritAttrs=!1;const n8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:l}=n,i={"slick-arrow":!0,"slick-next":!0};let a=function(d){e8({message:"next"},o,d)};Np(n)||(i["slick-disabled"]=!0,a=J6);const s={key:"1","data-role":"none",class:ie(i),style:{display:"block"},onClick:a},c={currentSlide:r,slideCount:l};let u;return n.nextArrow?u=dt(n.nextArrow(m(m({},s),c)),{key:"1",class:ie(i),style:{display:"block"},onClick:a},!1):u=p("button",D({key:"1",type:"button"},s),[" ",Lt("Next")]),u};n8.inheritAttrs=!1;var hJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=m({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=m({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new f0(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=hf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=Py(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Sb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=m(m({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=QQ(e);e=m(m(m({},e),o),{slideIndex:o.currentSlide});const r=hc(e);e=m(m({},e),{left:r});const l=gc(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=l),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,c=0;const u=[],d=Tr(m(m(m({},this.$props),this.$data),{slideCount:e.length})),f=Xu(m(m(m({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var h,b;const y=((b=(h=v.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;u.push(y),s+=y});for(let v=0;v{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const l=o.onclick;o.onclick=()=>{l(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=m(m({},this.$props),this.$data);for(let n=this.currentSlide;n=-Tr(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,beforeChange:o,speed:r,afterChange:l}=this.$props,{state:i,nextState:a}=JQ(m(m(m({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!i)return;o&&o(this.currentSlide,i.currentSlide);const s=i.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&s.length>0&&this.__emit("lazyLoad",s),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),l&&l(this.currentSlide),delete this.animationEndCallback),this.setState(i,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=a,u=hJ(a,["animating"]);this.setState(u,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),l&&l(i.currentSlide),delete this.animationEndCallback})},r))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=m(m({},this.$props),this.$data),o=eJ(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=tJ(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=nJ(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=oJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=rJ(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Np(m(m({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return p("button",null,[t+1])},appendDots(e){let{dots:t}=e;return p("ul",{style:{display:"block"}},[t])}},render(){const e=ie("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=m(m({},this.$props),this.$data);let n=ph(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=m(m({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:to,onMouseover:o?this.onTrackOver:to});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=ph(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=m(m({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:to,onMouseleave:$?this.onDotsLeave:to}),r=p(gJ,b,null)}let l,i;const a=ph(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:c}=this.$slots;s&&(a.prevArrow=s),c&&(a.nextArrow=c),this.arrows&&(l=p(t8,a,null),i=p(n8,a,null));let u=null;this.vertical&&(u={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=m(m({},u),d),g=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:g?this.swipeStart:to,onMousemove:this.dragging&&g?this.swipeMove:to,onMouseup:g?this.swipeEnd:to,onMouseleave:this.dragging&&g?this.swipeEnd:to,[nn?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:to,[nn?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:to,onTouchend:g?this.touchEnd:to,onTouchcancel:this.dragging&&g?this.swipeEnd:to,onKeydown:this.accessibility?this.keyHandler:to},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},h={class:e}),p("div",h,[this.unslick?"":l,p("div",v,[p(fJ,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":r])}},mJ=oe({name:"Slider",mixins:[xi],inheritAttrs:!1,props:m({},G6),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=fh({minWidth:0,maxWidth:n}):r=fh({minWidth:e[o-1]+1,maxWidth:n}),cw()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=fh({minWidth:e.slice(-1)[0]});cw()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:l}=r;l&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(a=>a.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":m(m({},this.$props),n[0].settings)):t=m({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=Gf(this)||[];o=o.filter(a=>typeof a=="string"?!!a.trim():!!a),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let l=null;for(let a=0;a=o.length));d+=1)u.push(dt(o[d],{key:100*a+10*c+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(p("div",{key:10*a+c},[u]))}t.variableWidth?r.push(p("div",{key:a,style:{width:l}},[s])):r.push(p("div",{key:a},[s]))}if(t==="unslick"){const a="regular slider "+(this.className||"");return p("div",{class:a},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const i=m(m(m({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return p(vJ,D(D({},i),{},{__propsSymbol__:[]}),this.$slots)}}),bJ=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:l}=e,i=-o*1.25,a=l;return{[t]:m(m({},Xe(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},yJ=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:m(m({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":m(m({},r),{button:r})})}}}},SJ=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},$J=Ve("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=Fe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[bJ(o),yJ(o),SJ(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var CJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:Be(),dots:Ce(!0),vertical:Ce(),autoplay:Ce(),easing:String,beforeChange:ve(),afterChange:ve(),prefixCls:String,accessibility:Ce(),nextArrow:V.any,prevArrow:V.any,pauseOnHover:Ce(),adaptiveHeight:Ce(),arrows:Ce(!1),autoplaySpeed:Number,centerMode:Ce(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Ce(!1),fade:Ce(),focusOnSelect:Ce(),infinite:Ce(),initialSlide:Number,lazyLoad:Be(),rtl:Ce(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Ce(),swipeToSlide:Ce(),swipeEvent:ve(),touchMove:Ce(),touchThreshold:Number,variableWidth:Ce(),useCSS:Ce(),slickGoTo:Number,responsive:Array,dotPosition:Be(),verticalSwiping:Ce(!1)}),wJ=oe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:xJ(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();r({goTo:function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=l.value)===null||b===void 0||b.slickGoTo(v,h)},autoplay:v=>{var h,b;(b=(h=l.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(v)},prev:()=>{var v;(v=l.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=l.value)===null||v===void 0||v.slickNext()},innerSlider:P(()=>{var v;return(v=l.value)===null||v===void 0?void 0:v.innerSlider})}),ke(()=>{It(e.vertical===void 0)});const{prefixCls:a,direction:s}=Te("carousel",e),[c,u]=$J(a),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const v="slick-dots";return ie({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=CJ(o,["class","style"]),C=y==="fade"?!0:e.fade,O=ie(a.value,{[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-vertical`]:f.value,[`${S}`]:!!S},u.value);return c(p("div",{class:O,style:$},[p(mJ,D(D(D({ref:l},e),x),{},{dots:!!v,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:f.value}),n)]))}}}),OJ=Tt(wJ),Ty="__RC_CASCADER_SPLIT__",o8="SHOW_PARENT",r8="SHOW_CHILD";function gl(e){return e.join(Ty)}function Zi(e){return e.map(gl)}function PJ(e){return e.split(Ty)}function IJ(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function cs(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function TJ(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const l8=Symbol("TreeContextKey"),EJ=oe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Ge(l8,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Ey=()=>He(l8,P(()=>({}))),i8=Symbol("KeysStateKey"),MJ=e=>{Ge(i8,e)},a8=()=>He(i8,{expandedKeys:te([]),selectedKeys:te([]),loadedKeys:te([]),loadingKeys:te([]),checkedKeys:te([]),halfCheckedKeys:te([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:te([])}),_J=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const l=`${t}-indent-unit`,i=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:V.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:V.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:V.any,switcherIcon:V.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var DJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+ue+"` ")}`;const l=te(!1),i=Ey(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:c,loadingKeysSet:u,checkedKeysSet:d,halfCheckedKeysSet:f}=a8(),{dragOverNodeKey:g,dropPosition:v,keyEntities:h}=i.value,b=P(()=>Uu(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:c.value,loadingKeysSet:u.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:g,dropPosition:v,keyEntities:h})),y=ro(()=>b.value.expanded),S=ro(()=>b.value.selected),$=ro(()=>b.value.checked),x=ro(()=>b.value.loaded),C=ro(()=>b.value.loading),O=ro(()=>b.value.halfChecked),w=ro(()=>b.value.dragOver),I=ro(()=>b.value.dragOverGapTop),T=ro(()=>b.value.dragOverGapBottom),_=ro(()=>b.value.pos),E=te(),A=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{children:he}=ce[ue]||{};return!!(he||[]).length}),R=P(()=>{const{isLeaf:ue}=e,{loadData:ce}=i.value,he=A.value;return ue===!1?!1:ue||!ce&&!he||ce&&x.value&&!he}),z=P(()=>R.value?null:y.value?uw:dw),M=P(()=>{const{disabled:ue}=e,{disabled:ce}=i.value;return!!(ce||ue)}),B=P(()=>{const{checkable:ue}=e,{checkable:ce}=i.value;return!ce||ue===!1?!1:ce}),N=P(()=>{const{selectable:ue}=e,{selectable:ce}=i.value;return typeof ue=="boolean"?ue:ce}),F=P(()=>{const{data:ue,active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae}=e;return m(m({active:ce,checkable:he,disableCheckbox:Pe,disabled:Ie,selectable:Ae},ue),{dataRef:ue,data:ue,isLeaf:R.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),L=pn(),k=P(()=>{const{eventKey:ue}=e,{keyEntities:ce}=i.value,{parent:he}=ce[ue]||{};return m(m({},Yu(m({},e,b.value))),{parent:he})}),j=ut({eventData:k,eventKey:P(()=>e.eventKey),selectHandle:E,pos:_,key:L.vnode.key});r(j);const H=ue=>{const{onNodeDoubleClick:ce}=i.value;ce(ue,k.value)},Y=ue=>{if(M.value)return;const{onNodeSelect:ce}=i.value;ue.preventDefault(),ce(ue,k.value)},Z=ue=>{if(M.value)return;const{disableCheckbox:ce}=e,{onNodeCheck:he}=i.value;if(!B.value||ce)return;ue.preventDefault();const Pe=!$.value;he(ue,k.value,Pe)},U=ue=>{const{onNodeClick:ce}=i.value;ce(ue,k.value),N.value?Y(ue):Z(ue)},ee=ue=>{const{onNodeMouseEnter:ce}=i.value;ce(ue,k.value)},G=ue=>{const{onNodeMouseLeave:ce}=i.value;ce(ue,k.value)},J=ue=>{const{onNodeContextMenu:ce}=i.value;ce(ue,k.value)},Q=ue=>{const{onNodeDragStart:ce}=i.value;ue.stopPropagation(),l.value=!0,ce(ue,j);try{ue.dataTransfer.setData("text/plain","")}catch{}},K=ue=>{const{onNodeDragEnter:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},q=ue=>{const{onNodeDragOver:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),ce(ue,j)},pe=ue=>{const{onNodeDragLeave:ce}=i.value;ue.stopPropagation(),ce(ue,j)},W=ue=>{const{onNodeDragEnd:ce}=i.value;ue.stopPropagation(),l.value=!1,ce(ue,j)},X=ue=>{const{onNodeDrop:ce}=i.value;ue.preventDefault(),ue.stopPropagation(),l.value=!1,ce(ue,j)},ne=ue=>{const{onNodeExpand:ce}=i.value;C.value||ce(ue,k.value)},ae=()=>{const{data:ue}=e,{draggable:ce}=i.value;return!!(ce&&(!ce.nodeDraggable||ce.nodeDraggable(ue)))},se=()=>{const{draggable:ue,prefixCls:ce}=i.value;return ue&&(ue!=null&&ue.icon)?p("span",{class:`${ce}-draggable-icon`},[ue.icon]):null},re=()=>{var ue,ce,he;const{switcherIcon:Pe=o.switcherIcon||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.switcherIcon])}=e,{switcherIcon:Ie}=i.value,Ae=Pe||Ie;return typeof Ae=="function"?Ae(F.value):Ae},de=()=>{const{loadData:ue,onNodeLoad:ce}=i.value;C.value||ue&&y.value&&!R.value&&!A.value&&!x.value&&ce(k.value)};je(()=>{de()}),An(()=>{de()});const ge=()=>{const{prefixCls:ue}=i.value,ce=re();if(R.value)return ce!==!1?p("span",{class:ie(`${ue}-switcher`,`${ue}-switcher-noop`)},[ce]):null;const he=ie(`${ue}-switcher`,`${ue}-switcher_${y.value?uw:dw}`);return ce!==!1?p("span",{onClick:ne,class:he},[ce]):null},me=()=>{var ue,ce;const{disableCheckbox:he}=e,{prefixCls:Pe}=i.value,Ie=M.value;return B.value?p("span",{class:ie(`${Pe}-checkbox`,$.value&&`${Pe}-checkbox-checked`,!$.value&&O.value&&`${Pe}-checkbox-indeterminate`,(Ie||he)&&`${Pe}-checkbox-disabled`),onClick:Z},[(ce=(ue=i.value).customCheckable)===null||ce===void 0?void 0:ce.call(ue)]):null},fe=()=>{const{prefixCls:ue}=i.value;return p("span",{class:ie(`${ue}-iconEle`,`${ue}-icon__${z.value||"docu"}`,C.value&&`${ue}-icon_loading`)},null)},ye=()=>{const{disabled:ue,eventKey:ce}=e,{draggable:he,dropLevelOffset:Pe,dropPosition:Ie,prefixCls:Ae,indent:$e,dropIndicatorRender:xe,dragOverNodeKey:we,direction:Me}=i.value;return!ue&&he!==!1&&we===ce?xe({dropPosition:Ie,dropLevelOffset:Pe,indent:$e,prefixCls:Ae,direction:Me}):null},Se=()=>{var ue,ce,he,Pe,Ie,Ae;const{icon:$e=o.icon,data:xe}=e,we=o.title||((ue=i.value.slots)===null||ue===void 0?void 0:ue[(he=(ce=e.data)===null||ce===void 0?void 0:ce.slots)===null||he===void 0?void 0:he.title])||((Pe=i.value.slots)===null||Pe===void 0?void 0:Pe.title)||e.title,{prefixCls:Me,showIcon:Ne,icon:_e,loadData:De}=i.value,Je=M.value,ft=`${Me}-node-content-wrapper`;let it;if(Ne){const Ut=$e||((Ie=i.value.slots)===null||Ie===void 0?void 0:Ie[(Ae=xe==null?void 0:xe.slots)===null||Ae===void 0?void 0:Ae.icon])||_e;it=Ut?p("span",{class:ie(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ut=="function"?Ut(F.value):Ut]):fe()}else De&&C.value&&(it=fe());let pt;typeof we=="function"?pt=we(F.value):pt=we,pt=pt===void 0?BJ:pt;const ht=p("span",{class:`${Me}-title`},[pt]);return p("span",{ref:E,title:typeof we=="string"?we:"",class:ie(`${ft}`,`${ft}-${z.value||"normal"}`,!Je&&(S.value||l.value)&&`${Me}-node-selected`),onMouseenter:ee,onMouseleave:G,onContextmenu:J,onClick:U,onDblclick:H},[it,ht,ye()])};return()=>{const ue=m(m({},e),n),{eventKey:ce,isLeaf:he,isStart:Pe,isEnd:Ie,domRef:Ae,active:$e,data:xe,onMousemove:we,selectable:Me}=ue,Ne=DJ(ue,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:De,keyEntities:Je,dropContainerKey:ft,dropTargetKey:it,draggingNodeKey:pt}=i.value,ht=M.value,Ut=wl(Ne,{aria:!0,data:!0}),{level:Jt}=Je[ce]||{},rn=Ie[Ie.length-1],jt=ae(),xn=!ht&&jt,Wn=pt===ce,uo=Me!==void 0?{"aria-selected":!!Me}:void 0;return p("div",D(D({ref:Ae,class:ie(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:ht,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!he,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:$e,[`${_e}-treenode-leaf-last`]:rn,[`${_e}-treenode-draggable`]:xn,dragging:Wn,"drop-target":it===ce,"drop-container":ft===ce,"drag-over":!ht&&w.value,"drag-over-gap-top":!ht&&I.value,"drag-over-gap-bottom":!ht&&T.value,"filter-node":De&&De(k.value)}),style:n.style,draggable:xn,"aria-grabbed":Wn,onDragstart:xn?Q:void 0,onDragenter:jt?K:void 0,onDragover:jt?q:void 0,onDragleave:jt?pe:void 0,onDrop:jt?X:void 0,onDragend:jt?W:void 0,onMousemove:we},uo),Ut),[p(AJ,{prefixCls:_e,level:Jt,isStart:Pe,isEnd:Ie},null),se(),ge(),me(),Se()])}}});globalThis&&globalThis.__rest;function qo(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function mr(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function My(e){return e.split("-")}function u8(e,t){return`${e}-${t}`}function NJ(e){return e&&e.type&&e.type.isTreeNode}function FJ(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:a,children:s}=i;n.push(a),r(s)})}return r(o.children),n}function LJ(e){if(e.parent){const t=My(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function kJ(e){const t=My(e.pos);return Number(t[t.length-1])===0}function fw(e,t,n,o,r,l,i,a,s,c){var u;const{clientX:d,clientY:f}=e,{top:g,height:v}=e.target.getBoundingClientRect(),b=((c==="rtl"?-1:1)*(((r==null?void 0:r.x)||0)-d)-12)/o;let y=a[n.eventKey];if(fR.key===y.key),E=_<=0?0:_-1,A=i[E].key;y=a[A]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let _=0;_-1.5?l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:0})?C=0:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:l({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((u=y.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:T}}function pw(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function vh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Jv(e,t){const n=new Set;function o(r){if(n.has(r))return;const l=t[r];if(!l)return;n.add(r);const{parent:i,node:a}=l;a.disabled||i&&o(i.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var zJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(r=>{var l,i,a,s;if(!NJ(r))return null;const c=r.children||{},u=r.key,d={};for(const[_,E]of Object.entries(r.props))d[mi(_)]=E;const{isLeaf:f,checkable:g,selectable:v,disabled:h,disableCheckbox:b}=d,y={isLeaf:f||f===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=m(m({},d),y),{title:$=(l=c.title)===null||l===void 0?void 0:l.call(c,S),icon:x=(i=c.icon)===null||i===void 0?void 0:i.call(c,S),switcherIcon:C=(a=c.switcherIcon)===null||a===void 0?void 0:a.call(c,S)}=d,O=zJ(d,["title","icon","switcherIcon"]),w=(s=c.default)===null||s===void 0?void 0:s.call(c),I=m(m(m({},O),{title:$,icon:x,switcherIcon:C,key:u,isLeaf:f}),y),T=t(w);return T.length&&(I.children=T),I})}return t(e)}function HJ(e,t,n){const{_title:o,key:r,children:l}=Fp(n),i=new Set(t===!0?[]:t),a=[];function s(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return c.map((d,f)=>{const g=u8(u?u.pos:"0",f),v=Lc(d[r],g);let h;for(let y=0;yf[l]:typeof l=="function"&&(u=f=>l(f)):u=(f,g)=>Lc(f[a],g);function d(f,g,v,h){const b=f?f[c]:e,y=f?u8(v.pos,g):"0",S=f?[...h,f]:[];if(f){const $=u(f,y),x={node:f,index:g,pos:y,key:$,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:f,pos:y,level:v?v.level+1:-1},S)})}d(null)}function kc(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:l,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;const s=r||a,c={},u={};let d={posEntities:c,keyEntities:u};return t&&(d=t(d)||d),jJ(e,f=>{const{node:g,index:v,pos:h,key:b,parentPos:y,level:S,nodes:$}=f,x={node:g,nodes:$,index:v,key:b,pos:h,level:S},C=Lc(b,h);c[h]=x,u[C]=x,x.parent=c[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:l,fieldNames:i}),o&&o(d),d}function Uu(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:l,checkedKeysSet:i,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:c,keyEntities:u}=t;const d=u[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:l.has(e),checked:i.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&c===0,dragOverGapTop:s===e&&c===-1,dragOverGapBottom:s===e&&c===1}}function Yu(e){const{data:t,expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g}=e,v=m(m({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:l,loading:i,halfChecked:a,dragOver:s,dragOverGapTop:c,dragOverGapBottom:u,pos:d,active:f,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const WJ=(e,t)=>P(()=>kc(e.value,{fieldNames:t.value,initWrapper:o=>m(m({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const l=o.nodes.map(i=>i[t.value.value]).join(Ty);r.pathKeyEntities[l]=o,o.key=l}}).pathKeyEntities);function VJ(e){const t=te(!1),n=le({});return ke(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=m(m({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ds="__rc_cascader_search_mark__",KJ=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},GJ=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},XJ=(e,t,n,o,r,l)=>P(()=>{const{filter:i=KJ,render:a=GJ,limit:s=50,sort:c}=r.value,u=[];if(!e.value)return[];function d(f,g){f.forEach(v=>{if(!c&&s>0&&u.length>=s)return;const h=[...g,v],b=v[n.value.children];(!b||b.length===0||l.value)&&i(e.value,h,{label:n.value.label})&&u.push(m(m({},v),{[n.value.label]:a({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ds]:h})),b&&d(v[n.value.children],h)})}return d(t.value,[]),c&&u.sort((f,g)=>c(f[Ds],g[Ds],e.value,n.value)),s>0?u.slice(0,s):u});function gw(e,t,n){const o=new Set(e);return e.filter(r=>{const l=t[r],i=l?l.parent:null,a=l?l.children:null;return n===r8?!(a&&a.some(s=>s.key&&o.has(s.key))):!(i&&!i.node.disabled&&o.has(i.key))})}function vc(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let l=t;const i=[];for(let a=0;a{const f=d[n.value];return o?String(f)===String(s):f===s}),u=c!==-1?l==null?void 0:l[c]:null;i.push({value:(r=u==null?void 0:u[n.value])!==null&&r!==void 0?r:s,index:c,option:u}),l=u==null?void 0:u[n.children]}return i}const UJ=(e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(l=>{vc(l,e.value,t.value).every(a=>a.option)?r.push(l):o.push(l)}),[r,o]});function d8(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function YJ(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function qJ(e,t,n,o){const r=new Set(e),l=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(c=>{const{key:u,node:d,children:f=[]}=c;r.has(u)&&!o(d)&&f.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const i=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach(c=>{const{parent:u,node:d}=c;if(o(d)||!c.parent||i.has(c.parent.key))return;if(o(c.parent.node)){i.add(u.key);return}let f=!0,g=!1;(u.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:h}=v;const b=r.has(h);f&&!b&&(f=!1),!g&&(b||l.has(h))&&(g=!0)}),f&&r.add(u.key),g&&l.add(u.key),i.add(u.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(d8(l,r))}}function ZJ(e,t,n,o,r){const l=new Set(e);let i=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(u=>{const{key:d,node:f,children:g=[]}=u;!l.has(d)&&!i.has(d)&&!r(f)&&g.filter(v=>!r(v.node)).forEach(v=>{l.delete(v.key)})});i=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(u=>{const{parent:d,node:f}=u;if(r(f)||!u.parent||a.has(u.parent.key))return;if(r(u.parent.node)){a.add(d.key);return}let g=!0,v=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=l.has(b);g&&!y&&(g=!1),!v&&(y||i.has(b))&&(v=!0)}),g||l.delete(d.key),v&&i.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(l),halfCheckedKeys:Array.from(d8(i,l))}}function So(e,t,n,o,r,l){let i;l?i=l:i=YJ;const a=new Set(e.filter(c=>!!n[c]));let s;return t===!0?s=qJ(a,r,o,i):s=ZJ(a,t.halfCheckedKeys,r,o,i),s}const QJ=(e,t,n,o,r)=>P(()=>{const l=r.value||(i=>{let{labels:a}=i;const s=o.value?a.slice(-1):a,c=" / ";return s.every(u=>["string","number"].includes(typeof u))?s.join(c):s.reduce((u,d,f)=>{const g=Kt(d)?dt(d,{key:f}):d;return f===0?[g]:[...u,c,g]},[])});return e.value.map(i=>{const a=vc(i,t.value,n.value),s=l({labels:a.map(u=>{let{option:d,value:f}=u;var g;return(g=d==null?void 0:d[n.value.label])!==null&&g!==void 0?g:f}),selectedOptions:a.map(u=>{let{option:d}=u;return d})}),c=gl(i);return{label:s,value:c,key:c,valueCells:i}})}),f8=Symbol("CascaderContextKey"),JJ=e=>{Ge(f8,e)},Lp=()=>He(f8),eee=()=>{const e=Tc(),{values:t}=Lp(),[n,o]=vt([]);return be(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]},tee=(e,t,n,o,r,l)=>{const i=Tc(),a=P(()=>i.direction==="rtl"),[s,c,u]=[le([]),le(),le([])];ke(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},f=h=>{const b=u.value.length;let y=c.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else i.toggleOpen(!1)},v=()=>{var h;const y=(((h=u.value[c.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case Oe.UP:case Oe.DOWN:{let y=0;b===Oe.UP?y=-1:b===Oe.DOWN&&(y=1),y!==0&&f(y);break}case Oe.LEFT:{a.value?v():g();break}case Oe.RIGHT:{a.value?g():v();break}case Oe.BACKSPACE:{i.searchValue||g();break}case Oe.ENTER:{if(s.value.length){const y=u.value[c.value],S=(y==null?void 0:y[Ds])||[];S.length?l(S.map($=>$[n.value.value]),S[S.length-1]):l(s.value,y)}break}case Oe.ESC:i.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})};function kp(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:l}=e;const{customSlots:i,checkable:a}=Lp(),s=a.value!==!1?i.value.checkable:a.value,c=typeof s=="function"?s():typeof s=="boolean"?null:s;return p("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:l},[c])}kp.props=["prefixCls","checked","halfChecked","disabled","onClick"];kp.displayName="Checkbox";kp.inheritAttrs=!1;const p8="__cascader_fix_label__";function zp(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:l,onToggleOpen:i,onSelect:a,onActive:s,checkedSet:c,halfCheckedSet:u,loadingKeys:d,isSelectable:f}=e;var g,v,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:I,loadingIcon:T,dropdownMenuColumnStyle:_,customSlots:E}=Lp(),A=(g=I.value)!==null&&g!==void 0?g:(h=(v=E.value).expandIcon)===null||h===void 0?void 0:h.call(v),R=(b=T.value)!==null&&b!==void 0?b:(S=(y=E.value).loadingIcon)===null||S===void 0?void 0:S.call(y),z=w.value==="hover";return p("ul",{class:$,role:"menu"},[o.map(M=>{var B;const{disabled:N}=M,F=M[Ds],L=(B=M[p8])!==null&&B!==void 0?B:M[C.value.label],k=M[C.value.value],j=cs(M,C.value),H=F?F.map(K=>K[C.value.value]):[...l,k],Y=gl(H),Z=d.includes(Y),U=c.has(Y),ee=u.has(Y),G=()=>{!N&&(!z||!j)&&s(H)},J=()=>{f(M)&&a(H,j)};let Q;return typeof M.title=="string"?Q=M.title:typeof L=="string"&&(Q=L),p("li",{key:Y,class:[x,{[`${x}-expand`]:!j,[`${x}-active`]:r===k,[`${x}-disabled`]:N,[`${x}-loading`]:Z}],style:_.value,role:"menuitemcheckbox",title:Q,"aria-checked":U,"data-path-key":Y,onClick:()=>{G(),(!n||j)&&J()},onDblclick:()=>{O.value&&i(!1)},onMouseenter:()=>{z&&G()},onMousedown:K=>{K.preventDefault()}},[n&&p(kp,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:ee,disabled:N,onClick:K=>{K.stopPropagation(),J()}},null),p("div",{class:`${x}-content`},[L]),!Z&&A&&!j&&p("div",{class:`${x}-expand-icon`},[dt(A)]),Z&&R&&p("div",{class:`${x}-loading-icon`},[dt(R)])])})])}zp.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];zp.displayName="Column";zp.inheritAttrs=!1;const nee=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Tc(),l=le(),i=P(()=>r.direction==="rtl"),{options:a,values:s,halfValues:c,fieldNames:u,changeOnSelect:d,onSelect:f,searchOptions:g,dropdownPrefixCls:v,loadData:h,expandTrigger:b,customSlots:y}=Lp(),S=P(()=>v.value||r.prefixCls),$=te([]),x=B=>{if(!h.value||r.searchValue)return;const F=vc(B,a.value,u.value).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];if(L&&!cs(L,u.value)){const k=gl(B);$.value=[...$.value,k],h.value(F)}};ke(()=>{$.value.length&&$.value.forEach(B=>{const N=PJ(B),F=vc(N,a.value,u.value,!0).map(k=>{let{option:j}=k;return j}),L=F[F.length-1];(!L||L[u.value.children]||cs(L,u.value))&&($.value=$.value.filter(k=>k!==B))})});const C=P(()=>new Set(Zi(s.value))),O=P(()=>new Set(Zi(c.value))),[w,I]=eee(),T=B=>{I(B),x(B)},_=B=>{const{disabled:N}=B,F=cs(B,u.value);return!N&&(F||d.value||r.multiple)},E=function(B,N){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(B),!r.multiple&&(N||d.value&&(b.value==="hover"||F))&&r.toggleOpen(!1)},A=P(()=>r.searchValue?g.value:a.value),R=P(()=>{const B=[{options:A.value}];let N=A.value;for(let F=0;FH[u.value.value]===L),j=k==null?void 0:k[u.value.children];if(!(j!=null&&j.length))break;N=j,B.push({options:j})}return B});tee(t,A,u,w,T,(B,N)=>{_(N)&&E(B,cs(N,u.value),!0)});const M=B=>{B.preventDefault()};return je(()=>{be(w,B=>{var N;for(let F=0;F{var B,N,F,L,k;const{notFoundContent:j=((B=o.notFoundContent)===null||B===void 0?void 0:B.call(o))||((F=(N=y.value).notFoundContent)===null||F===void 0?void 0:F.call(N)),multiple:H,toggleOpen:Y}=r,Z=!(!((k=(L=R.value[0])===null||L===void 0?void 0:L.options)===null||k===void 0)&&k.length),U=[{[u.value.value]:"__EMPTY__",[p8]:j,disabled:!0}],ee=m(m({},n),{multiple:!Z&&H,onSelect:E,onActive:T,onToggleOpen:Y,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:_}),J=(Z?[{options:U}]:R.value).map((Q,K)=>{const q=w.value.slice(0,K),pe=w.value[K];return p(zp,D(D({key:K},ee),{},{prefixCls:S.value,options:Q.options,prevValuePath:q,activeValue:pe}),null)});return p("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:Z,[`${S.value}-rtl`]:i.value}],onMousedown:M,ref:l},[J])}}});function Hp(e){const t=le(0),n=te();return ke(()=>{const o=new Map;let r=0;const l=e.value||{};for(const i in l)if(Object.prototype.hasOwnProperty.call(l,i)){const a=l[i],{level:s}=a;let c=o.get(s);c||(c=new Set,o.set(s,c)),c.add(a),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function oee(){return m(m({},et(gp(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:Re(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:o8},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:V.any,loadingIcon:V.any})}function g8(){return m(m({},oee()),{onChange:Function,customSlots:Object})}function ree(e){return Array.isArray(e)&&Array.isArray(e[0])}function hw(e){return e?ree(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const lee=oe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:qe(g8(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const l=Z0(ze(e,"id")),i=P(()=>!!e.checkable),[a,s]=Pt(e.defaultValue,{value:P(()=>e.value),postState:hw}),c=P(()=>IJ(e.fieldNames)),u=P(()=>e.options||[]),d=WJ(u,c),f=K=>{const q=d.value;return K.map(pe=>{const{nodes:W}=q[pe];return W.map(X=>X[c.value.value])})},[g,v]=Pt("",{value:P(()=>e.searchValue),postState:K=>K||""}),h=(K,q)=>{v(K),q.source!=="blur"&&e.onSearch&&e.onSearch(K)},{showSearch:b,searchConfig:y}=VJ(ze(e,"showSearch")),S=XJ(g,u,c,P(()=>e.dropdownPrefixCls||e.prefixCls),y,ze(e,"changeOnSelect")),$=UJ(u,c,a),[x,C,O]=[le([]),le([]),le([])],{maxLevel:w,levelEntities:I}=Hp(d);ke(()=>{const[K,q]=$.value;if(!i.value||!a.value.length){[x.value,C.value,O.value]=[K,[],q];return}const pe=Zi(K),W=d.value,{checkedKeys:X,halfCheckedKeys:ne}=So(pe,!0,W,w.value,I.value);[x.value,C.value,O.value]=[f(X),f(ne),q]});const T=P(()=>{const K=Zi(x.value),q=gw(K,d.value,e.showCheckedStrategy);return[...O.value,...f(q)]}),_=QJ(T,u,c,i,ze(e,"displayRender")),E=K=>{if(s(K),e.onChange){const q=hw(K),pe=q.map(ne=>vc(ne,u.value,c.value).map(ae=>ae.option)),W=i.value?q:q[0],X=i.value?pe:pe[0];e.onChange(W,X)}},A=K=>{if(v(""),!i.value)E(K);else{const q=gl(K),pe=Zi(x.value),W=Zi(C.value),X=pe.includes(q),ne=O.value.some(re=>gl(re)===q);let ae=x.value,se=O.value;if(ne&&!X)se=O.value.filter(re=>gl(re)!==q);else{const re=X?pe.filter(me=>me!==q):[...pe,q];let de;X?{checkedKeys:de}=So(re,{checked:!1,halfCheckedKeys:W},d.value,w.value,I.value):{checkedKeys:de}=So(re,!0,d.value,w.value,I.value);const ge=gw(de,d.value,e.showCheckedStrategy);ae=f(ge)}E([...se,...ae])}},R=(K,q)=>{if(q.type==="clear"){E([]);return}const{valueCells:pe}=q.values[0];A(pe)},z=P(()=>e.open!==void 0?e.open:e.popupVisible),M=P(()=>e.dropdownStyle||e.popupStyle||{}),B=P(()=>e.placement||e.popupPlacement),N=K=>{var q,pe;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,K),(pe=e.onPopupVisibleChange)===null||pe===void 0||pe.call(e,K)},{changeOnSelect:F,checkable:L,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee,dropdownClassName:G}=No(e);JJ({options:u,fieldNames:c,values:x,halfValues:C,changeOnSelect:F,onSelect:A,checkable:L,searchOptions:S,dropdownPrefixCls:k,loadData:j,expandTrigger:H,expandIcon:Y,loadingIcon:Z,dropdownMenuColumnStyle:U,customSlots:ee});const J=le();o({focus(){var K;(K=J.value)===null||K===void 0||K.focus()},blur(){var K;(K=J.value)===null||K===void 0||K.blur()},scrollTo(K){var q;(q=J.value)===null||q===void 0||q.scrollTo(K)}});const Q=P(()=>et(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const K=!(g.value?S.value:u.value).length,{dropdownMatchSelectWidth:q=!1}=e,pe=g.value&&y.value.matchInputWidth||K?{}:{minWidth:"auto"};return p(Y0,D(D(D({},Q.value),n),{},{ref:J,id:l,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:m(m({},M.value),pe),displayValues:_.value,onDisplayValuesChange:R,mode:i.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:nee,emptyOptions:K,open:z.value,dropdownClassName:G.value,placement:B.value,onDropdownVisibleChange:N,getRawInputElement:()=>{var W;return(W=r.default)===null||W===void 0?void 0:W.call(r)}}),r)}}});var iee={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"};const aee=iee;function vw(e){for(var t=1;tMn()&&window.document.documentElement,v8=e=>{if(Mn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},cee=(e,t)=>{if(!v8(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function Ay(e,t){return!Array.isArray(e)&&t!==void 0?cee(e,t):v8(e)}let $u;const uee=()=>{if(!h8())return!1;if($u!==void 0)return $u;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),$u=e.scrollHeight===1,document.body.removeChild(e),$u},m8=()=>{const e=te(!1);return je(()=>{e.value=uee()}),e},b8=Symbol("rowContextKey"),dee=e=>{Ge(b8,e)},fee=()=>He(b8,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),pee=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},gee=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},hee=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let l=o;l>=0;l--)l===0?(r[`${n}${t}-${l}`]={display:"none"},r[`${n}-push-${l}`]={insetInlineStart:"auto"},r[`${n}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${l}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${l}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${l}`]={marginInlineEnd:0},r[`${n}${t}-order-${l}`]={order:0}):(r[`${n}${t}-${l}`]={display:"block",flex:`0 0 ${l/o*100}%`,maxWidth:`${l/o*100}%`},r[`${n}${t}-push-${l}`]={insetInlineStart:`${l/o*100}%`},r[`${n}${t}-pull-${l}`]={insetInlineEnd:`${l/o*100}%`},r[`${n}${t}-offset-${l}`]={marginInlineStart:`${l/o*100}%`},r[`${n}${t}-order-${l}`]={order:l});return r},tm=(e,t)=>hee(e,t),vee=(e,t,n)=>({[`@media (min-width: ${t}px)`]:m({},tm(e,n))}),mee=Ve("Grid",e=>[pee(e)]),bee=Ve("Grid",e=>{const t=Fe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[gee(t),tm(t,""),tm(t,"-xs"),Object.keys(n).map(o=>vee(t,n[o],o)).reduce((o,r)=>m(m({},o),r),{})]}),yee=()=>({align:Le([String,Object]),justify:Le([String,Object]),prefixCls:String,gutter:Le([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),See=oe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:yee(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("row",e),[i,a]=mee(r);let s;const c=Rb(),u=le({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=le({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x{s=c.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(u.value=$)})}),Ze(()=>{c.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let I=0;Ie.wrap)});const y=P(()=>ie(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${v.value}`]:v.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return i(p("div",D(D({},o),{},{class:y.value,style:m(m({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}}),Ry=See;function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qu(e,t,n){return Cee()?qu=Reflect.construct.bind():qu=function(r,l,i){var a=[null];a.push.apply(a,l);var s=Function.bind.apply(r,a),c=new s;return i&&mc(c,i.prototype),c},qu.apply(null,arguments)}function xee(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function om(e){var t=typeof Map=="function"?new Map:void 0;return om=function(o){if(o===null||!xee(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return qu(o,arguments,nm(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mc(r,o)},om(e)}var wee=/%[sdj%]/g,Oee=function(){};typeof process<"u"&&process.env;function rm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function io(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=l)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return i}return e}function Pee(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function dn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Pee(t)&&typeof e=="string"&&!e)}function Iee(e,t,n){var o=[],r=0,l=e.length;function i(a){o.push.apply(o,a||[]),r++,r===l&&n(o)}e.forEach(function(a){t(a,i)})}function mw(e,t,n){var o=0,r=e.length;function l(i){if(i&&i.length){n(i);return}var a=o;o=o+1,a()\[\]\\.,;:\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},us={integer:function(t){return us.number(t)&&parseInt(t,10)===t},float:function(t){return us.number(t)&&!us.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!us.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($w.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Ree())},hex:function(t){return typeof t=="string"&&!!t.match($w.hex)}},Dee=function(t,n,o,r,l){if(t.required&&n===void 0){y8(t,n,o,r,l);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;i.indexOf(a)>-1?us[a](n)||r.push(io(l.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(io(l.messages.types[a],t.fullField,t.type))},Bee=function(t,n,o,r,l){var i=typeof t.len=="number",a=typeof t.min=="number",s=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,d=null,f=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(f?d="number":g?d="string":v&&(d="array"),!d)return!1;v&&(u=n.length),g&&(u=n.replace(c,"_").length),i?u!==t.len&&r.push(io(l.messages[d].len,t.fullField,t.len)):a&&!s&&ut.max?r.push(io(l.messages[d].max,t.fullField,t.max)):a&&s&&(ut.max)&&r.push(io(l.messages[d].range,t.fullField,t.min,t.max))},Fi="enum",Nee=function(t,n,o,r,l){t[Fi]=Array.isArray(t[Fi])?t[Fi]:[],t[Fi].indexOf(n)===-1&&r.push(io(l.messages[Fi],t.fullField,t[Fi].join(", ")))},Fee=function(t,n,o,r,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||r.push(io(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},bt={required:y8,whitespace:Aee,type:Dee,range:Bee,enum:Nee,pattern:Fee},Lee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l,"string"),dn(n,"string")||(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l),bt.pattern(t,n,r,i,l),t.whitespace===!0&&bt.whitespace(t,n,r,i,l))}o(i)},kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},zee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Hee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},jee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),dn(n)||bt.type(t,n,r,i,l)}o(i)},Wee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Vee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Kee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();bt.required(t,n,r,i,l,"array"),n!=null&&(bt.type(t,n,r,i,l),bt.range(t,n,r,i,l))}o(i)},Gee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt.type(t,n,r,i,l)}o(i)},Xee="enum",Uee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l),n!==void 0&&bt[Xee](t,n,r,i,l)}o(i)},Yee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"string")&&!t.required)return o();bt.required(t,n,r,i,l),dn(n,"string")||bt.pattern(t,n,r,i,l)}o(i)},qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n,"date")&&!t.required)return o();if(bt.required(t,n,r,i,l),!dn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),bt.type(t,s,r,i,l),s&&bt.range(t,s.getTime(),r,i,l)}}o(i)},Zee=function(t,n,o,r,l){var i=[],a=Array.isArray(n)?"array":typeof n;bt.required(t,n,r,i,l,a),o(i)},mh=function(t,n,o,r,l){var i=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(dn(n,i)&&!t.required)return o();bt.required(t,n,r,a,l,i),dn(n,i)||bt.type(t,n,r,a,l)}o(a)},Qee=function(t,n,o,r,l){var i=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(dn(n)&&!t.required)return o();bt.required(t,n,r,i,l)}o(i)},Bs={string:Lee,method:kee,number:zee,boolean:Hee,regexp:jee,integer:Wee,float:Vee,array:Kee,object:Gee,enum:Uee,pattern:Yee,date:qee,url:mh,hex:mh,email:mh,required:Zee,any:Qee};function lm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var im=lm(),zc=function(){function e(n){this.rules=null,this._messages=im,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var i=o[l];r.rules[l]=Array.isArray(i)?i:[i]})},t.messages=function(o){return o&&(this._messages=Sw(lm(),o)),this._messages},t.validate=function(o,r,l){var i=this;r===void 0&&(r={}),l===void 0&&(l=function(){});var a=o,s=r,c=l;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!S8(e,t.slice(0,-1))?e:$8(e,t,n,o)}function am(e){return hl(e)}function ete(e,t){return S8(e,t)}function tte(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Jee(e,t,n,o)}function nte(e,t){return e&&e.some(n=>rte(n,t))}function Cw(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function C8(e,t){const n=Array.isArray(e)?[...e]:m({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],l=t[o],i=Cw(r)&&Cw(l);n[o]=i?C8(r,l||{}):l}),n}function ote(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oC8(r,l),e)}function xw(e,t){let n={};return t.forEach(o=>{const r=ete(e,o);n=tte(n,o,r)}),n}function rte(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const no="'${name}' is not a valid ${type}",jp={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:no,method:no,array:no,object:no,number:no,date:no,boolean:no,integer:no,float:no,regexp:no,email:no,url:no,hex:no},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}"}};var Wp=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})};const lte=zc;function ite(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function sm(e,t,n,o,r){return Wp(this,void 0,void 0,function*(){const l=m({},n);delete l.ruleIndex,delete l.trigger;let i=null;l&&l.type==="array"&&l.defaultField&&(i=l.defaultField,delete l.defaultField);const a=new lte({[e]:[l]}),s=ote({},jp,o.validateMessages);a.messages(s);let c=[];try{yield Promise.resolve(a.validate({[e]:t},m({},o)))}catch(f){f.errors?c=f.errors.map((g,v)=>{let{message:h}=g;return Kt(h)?sn(h,{key:`error_${v}`}):h}):(console.error(f),c=[s.default()])}if(!c.length&&i)return(yield Promise.all(t.map((g,v)=>sm(`${e}.${v}`,g,i,o,r)))).reduce((g,v)=>[...g,...v],[]);const u=m(m(m({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return c.map(f=>typeof f=="string"?ite(f,u):f)})}function x8(e,t,n,o,r,l){const i=e.join("."),a=n.map((c,u)=>{const d=c.validator,f=m(m({},c),{ruleIndex:u});return d&&(f.validator=(g,v,h)=>{let b=!1;const S=d(g,v,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),f}).sort((c,u)=>{let{warningOnly:d,ruleIndex:f}=c,{warningOnly:g,ruleIndex:v}=u;return!!d==!!g?f-v:d?1:-1});let s;if(r===!0)s=new Promise((c,u)=>Wp(this,void 0,void 0,function*(){for(let d=0;dsm(i,t,u,o,l).then(d=>({errors:d,rule:u})));s=(r?ste(c):ate(c)).then(u=>Promise.reject(u))}return s.catch(c=>c),s}function ate(e){return Wp(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function ste(e){return Wp(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const w8=Symbol("formContextKey"),O8=e=>{Ge(w8,e)},Dy=()=>He(w8,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>jp)}),P8=Symbol("formItemPrefixContextKey"),cte=e=>{Ge(P8,e)},ute=()=>He(P8,{prefixCls:P(()=>"")});function dte(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const fte=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),pte=["xs","sm","md","lg","xl","xxl"],Vp=oe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:fte(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:l,wrap:i}=fee(),{prefixCls:a,direction:s}=Te("col",e),[c,u]=bee(a),d=P(()=>{const{span:g,order:v,offset:h,push:b,pull:y}=e,S=a.value;let $={};return pte.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=m(m({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),ie(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${v}`]:v,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,u.value)}),f=P(()=>{const{flex:g}=e,v=r.value,h={};if(v&&v[0]>0){const b=`${v[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(v&&v[1]>0&&!l.value){const b=`${v[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=dte(g),i.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return c(p("div",D(D({},o),{},{class:d.value,style:[f.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var gte={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"};const hte=gte;function ww(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var l,i,a,s,c;const{prefixCls:u,htmlFor:d,labelCol:f,labelAlign:g,colon:v,required:h,requiredMark:b}=m(m({},e),r),[y]=Io("Form"),S=(l=e.label)!==null&&l!==void 0?l:(i=n.label)===null||i===void 0?void 0:i.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=Dy(),I=f||(C==null?void 0:C.value)||{},T=g||(x==null?void 0:x.value),_=`${u}-item-label`,E=ie(_,T==="left"&&`${_}-left`,I.class,{[`${_}-wrap`]:!!O.value});let A=S;const R=v===!0||(w==null?void 0:w.value)!==!1&&v!==!1;if(R&&!$.value&&typeof S=="string"&&S.trim()!==""&&(A=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const B=p("span",{class:`${u}-item-tooltip`},[p(Yn,{title:e.tooltip},{default:()=>[p(mte,null,null)]})]);A=p(We,null,[A,n.tooltip?(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${u}-item-tooltip`}):B])}b==="optional"&&!h&&(A=p(We,null,[A,p("span",{class:`${u}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((c=jn.Form)===null||c===void 0?void 0:c.optional)])]));const M=ie({[`${u}-item-required`]:h,[`${u}-item-required-mark-optional`]:b==="optional",[`${u}-item-no-colon`]:!R});return p(Vp,D(D({},I),{},{class:E}),{default:()=>[p("label",{for:d,class:M,title:typeof S=="string"?S:"",onClick:B=>o("click",B)},[A])]})};Ny.displayName="FormItemLabel";Ny.inheritAttrs=!1;const bte=Ny,yte=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},Ste=yte,$te=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ow=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},Cte=e=>{const{componentCls:t}=e;return{[e.componentCls]:m(m(m({},Xe(e)),$te(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":m({},Ow(e,e.controlHeightSM)),"&-large":m({},Ow(e,e.controlHeightLG))})}},xte=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:m(m({},Xe(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},wte=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},Ote=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, - > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Vi=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Pte=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Vi(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, - ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Ite=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, - .${o}-col-24${n}-label, - .${o}-col-xl-24${n}-label`]:Vi(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Pte(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Vi(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Vi(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Vi(e)}}}},Fy=Ve("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=Fe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[Cte(o),xte(o),Ste(o),wte(o),Ote(o),Ite(o),Ac(o),Cb]}),Tte=oe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=ute(),l=P(()=>`${o.value}-item-explain`),i=P(()=>!!(e.errors&&e.errors.length)),a=le(r.value),[,s]=Fy(o);return be([i,r],()=>{i.value&&(a.value=r.value)}),()=>{var c,u;const d=Rc(`${o.value}-show-help-item`),f=up(`${o.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,l.value,n.class,`${o.value}-show-help`],p(cn,D(D({},Po(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[$n(p(Hf,D(D({},f),{},{tag:"div"}),{default:()=>[(u=e.errors)===null||u===void 0?void 0:u.map((g,v)=>p("div",{key:v,class:a.value?`${l.value}-${a.value}`:""},[g]))]}),[[En,!!(!((c=e.errors)===null||c===void 0)&&c.length)]])]})}}}),Ete=oe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=Dy(),{wrapperCol:r}=o,l=m({},o);return delete l.labelCol,delete l.wrapperCol,O8(l),cte({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var i,a,s;const{prefixCls:c,wrapperCol:u,marginBottom:d,onErrorVisibleChanged:f,help:g=(i=n.help)===null||i===void 0?void 0:i.call(n),errors:v=_t((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${c}-item`,y=u||(r==null?void 0:r.value)||{},S=ie(`${b}-control`,y.class);return p(Vp,D(D({},y),{},{class:S}),{default:()=>{var $;return p(We,null,[p("div",{class:`${b}-control-input`},[p("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||v.length?p("div",{style:{display:"flex",flexWrap:"nowrap"}},[p(Tte,{errors:v,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&p("div",{style:{width:0,height:`${d}px`}},null)]):null,h?p("div",{class:`${b}-extra`},[h]):null])}})}}}),Mte=Ete;function _te(e){const t=te(e.value.slice());let n=null;return ke(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Cn("success","warning","error","validating","");const Ate={success:zr,warning:Hr,error:Qn,validating:co};function bh(e,t,n){let o=e;const r=t;let l=0;try{for(let i=r.length;l({htmlFor:String,prefixCls:String,label:V.any,help:V.any,extra:V.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:V.oneOf(Cn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let Dte=0;const Bte="form_item",I8=oe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Rte(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const l=`form-item-${++Dte}`,{prefixCls:i}=Te("form",e),[a,s]=Fy(i),c=te(),u=Dy(),d=P(()=>e.name||e.prop),f=te([]),g=te(!1),v=te(),h=P(()=>{const U=d.value;return am(U)}),b=P(()=>{if(h.value.length){const U=u.name.value,ee=h.value.join("_");return U?`${U}_${ee}`:`${Bte}_${ee}`}else return}),y=()=>{const U=u.model.value;if(!(!U||!d.value))return bh(U,h.value,!0).v},S=P(()=>y()),$=te(ju(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:u.validateTrigger.value;return U=U===void 0?"change":U,hl(U)}),C=P(()=>{let U=u.rules.value;const ee=e.rules,G=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],J=bh(U,h.value);U=U?J.o[J.k]||J.v:[];const Q=[].concat(ee||U||[]);return $K(Q,K=>K.required)?Q:Q.concat(G)}),O=P(()=>{const U=C.value;let ee=!1;return U&&U.length&&U.every(G=>G.required?(ee=!0,!1):!0),ee||e.required}),w=te();ke(()=>{w.value=e.validateStatus});const I=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=m(m({},U),e.messageVariables)),U}),T=U=>{if(h.value.length===0)return;const{validateFirst:ee=!1}=e,{triggerName:G}=U||{};let J=C.value;if(G&&(J=J.filter(K=>{const{trigger:q}=K;return!q&&!x.value.length?!0:hl(q||x.value).includes(G)})),!J.length)return Promise.resolve();const Q=x8(h.value,S.value,J,m({validateMessages:u.validateMessages.value},U),ee,I.value);return w.value="validating",f.value=[],Q.catch(K=>K).then(function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=K.filter(pe=>pe&&pe.errors.length);w.value=q.length?"error":"success",f.value=q.map(pe=>pe.errors),u.onValidate(d.value,!f.value.length,f.value.length?Qe(f.value[0]):null)}}),Q},_=()=>{T({triggerName:"blur"})},E=()=>{if(g.value){g.value=!1;return}T({triggerName:"change"})},A=()=>{w.value=e.validateStatus,g.value=!1,f.value=[]},R=()=>{var U;w.value=e.validateStatus,g.value=!0,f.value=[];const ee=u.model.value||{},G=S.value,J=bh(ee,h.value,!0);Array.isArray(G)?J.o[J.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):J.o[J.k]=$.value,ot(()=>{g.value=!1})},z=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),M=()=>{const U=z.value;if(!U||!v.value)return;const ee=v.value.$el.querySelector(`[id="${U}"]`);ee&&ee.focus&&ee.focus()};r({onFieldBlur:_,onFieldChange:E,clearValidate:A,resetField:R}),gj({id:b,onFieldBlur:()=>{e.autoLink&&_()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:A},P(()=>!!(e.autoLink&&u.model.value&&d.value)));let B=!1;be(d,U=>{U?B||(B=!0,u.addField(l,{fieldValue:S,fieldId:b,fieldName:d,resetField:R,clearValidate:A,namePath:h,validateRules:T,rules:C})):(B=!1,u.removeField(l))},{immediate:!0}),Ze(()=>{u.removeField(l)});const N=_te(f),F=P(()=>e.validateStatus!==void 0?e.validateStatus:N.value.length?"error":w.value),L=P(()=>({[`${i.value}-item`]:!0,[s.value]:!0,[`${i.value}-item-has-feedback`]:F.value&&e.hasFeedback,[`${i.value}-item-has-success`]:F.value==="success",[`${i.value}-item-has-warning`]:F.value==="warning",[`${i.value}-item-has-error`]:F.value==="error",[`${i.value}-item-is-validating`]:F.value==="validating",[`${i.value}-item-hidden`]:e.hidden})),k=ut({});un.useProvide(k),ke(()=>{let U;if(e.hasFeedback){const ee=F.value&&Ate[F.value];U=ee?p("span",{class:ie(`${i.value}-item-feedback-icon`,`${i.value}-item-feedback-icon-${F.value}`)},[p(ee,null,null)]):null}m(k,{status:F.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const j=te(null),H=te(!1),Y=()=>{if(c.value){const U=getComputedStyle(c.value);j.value=parseInt(U.marginBottom,10)}};je(()=>{be(H,()=>{H.value&&Y()},{flush:"post",immediate:!0})});const Z=U=>{U||(j.value=null)};return()=>{var U,ee;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const G=(ee=e.help)!==null&&ee!==void 0?ee:n.help?_t(n.help()):null,J=!!(G!=null&&Array.isArray(G)&&G.length||N.value.length);return H.value=J,a(p("div",{class:[L.value,J?`${i.value}-item-with-help`:"",o.class],ref:c},[p(Ry,D(D({},o),{},{class:`${i.value}-item-row`,key:"row"}),{default:()=>{var Q,K;return p(We,null,[p(bte,D(D({},e),{},{htmlFor:z.value,required:O.value,requiredMark:u.requiredMark.value,prefixCls:i.value,onClick:M,label:e.label}),{label:n.label,tooltip:n.tooltip}),p(Mte,D(D({},e),{},{errors:G!=null?hl(G):N.value,marginBottom:j.value,prefixCls:i.value,status:F.value,ref:v,help:G,extra:(Q=e.extra)!==null&&Q!==void 0?Q:(K=n.extra)===null||K===void 0?void 0:K.call(n),onErrorVisibleChanged:Z}),{default:n.default})])}}),!!j.value&&p("div",{class:`${i.value}-margin-offset`,style:{marginBottom:`-${j.value}px`}},null)]))}}});function T8(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,l)=>{e.forEach((i,a)=>{i.catch(s=>(t=!0,s)).then(s=>{n-=1,o[a]=s,!(n>0)&&(t&&l(o),r(o))})})}):Promise.resolve([])}function Pw(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function Iw(e){return e==null?[]:Array.isArray(e)?e:[e]}function yh(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let l=0;for(let i=r.length;l1&&arguments[1]!==void 0?arguments[1]:le({}),n=arguments.length>2?arguments[2]:void 0;const o=ju($t(e)),r=ut({}),l=te([]),i=$=>{m($t(e),m(m({},ju(o)),$)),ot(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:Pw($t(t)[x])}})})},a=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=Iw(C.trigger||"change");return IK(O,x).length}):$};let s=null;const c=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let _=0;_<$.length;_++){const E=$[_],A=yh($t(e),E,C);if(!A.isValid)continue;w[E]=A.v;const R=a($t(t)[E],Iw(x&&x.trigger));R.length&&O.push(u(E,A.v,R,x||{}).then(()=>({name:E,errors:[],warnings:[]})).catch(z=>{const M=[],B=[];return z.forEach(N=>{let{rule:{warningOnly:F},errors:L}=N;F?B.push(...L):M.push(...L)}),M.length?Promise.reject({name:E,errors:M,warnings:B}):{name:E,errors:M,warnings:B}}))}const I=T8(O);s=I;const T=I.then(()=>s===I?Promise.resolve(w):Promise.reject([])).catch(_=>{const E=_.filter(A=>A&&A.errors.length);return E.length?Promise.reject({values:w,errorFields:E,outOfDate:s!==I}):Promise.resolve(w)});return T.catch(_=>_),T},u=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=x8([$],x,C,m({validateMessages:jp},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(I=>I).then(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var T;if(r[$].validateStatus==="validating"){const _=I.filter(E=>E&&E.errors.length);r[$].validateStatus=_.length?"error":"success",r[$].help=_.length?_.map(E=>E.errors):null,(T=n==null?void 0:n.onValidate)===null||T===void 0||T.call(n,$,!_.length,_.length?Qe(r[$].help[0]):null)}}),w):w.catch(I=>I)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=l.value);const w=c(C,x||{},O);return w.catch(I=>I),w},f=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=l.value,x.forEach(C=>{r[C]&&m(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];l.value.forEach(C=>{const O=yh($,C,!1),w=yh(v,C,!1);(h&&(n==null?void 0:n.immediate)&&O.isValid||!V0(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,v=ju(Qe($))},y=n==null?void 0:n.debounce;let S=!0;return be(t,()=>{l.value=t?Object.keys($t(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),be(l,()=>{const $={};l.value.forEach(x=>{$[x]=m({},r[x],{autoLink:!1,required:Pw($t(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];m(r,$)},{immediate:!0}),be(e,y&&y.wait?Sb(b,y.wait,HK(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:i,validate:d,validateField:u,mergeValidateInfo:g,clearValidate:f}}const Fte=()=>({layout:V.oneOf(Cn("horizontal","inline","vertical")),labelCol:Re(),wrapperCol:Re(),colon:Ce(),labelAlign:Be(),labelWrap:Ce(),prefixCls:String,requiredMark:Le([String,Boolean]),hideRequiredMark:Ce(),model:V.object,rules:Re(),validateMessages:Re(),validateOnRuleChange:Ce(),scrollToFirstError:St(),onSubmit:ve(),name:String,validateTrigger:Le([String,Array]),size:Be(),disabled:Ce(),onValuesChange:ve(),onFieldsChange:ve(),onFinish:ve(),onFinishFailed:ve(),onValidate:ve()});function Lte(e,t){return V0(hl(e),hl(t))}const kte=oe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:qe(Fte(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:I8,useForm:Nte,setup(e,t){let{emit:n,slots:o,expose:r,attrs:l}=t;const{prefixCls:i,direction:a,form:s,size:c,disabled:u}=Te("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),f=P(()=>{var N;return d.value!==void 0?d.value:s&&((N=s.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});NP(c),eP(u);const g=P(()=>{var N,F;return(N=e.colon)!==null&&N!==void 0?N:(F=s.value)===null||F===void 0?void 0:F.colon}),{validateMessages:v}=sD(),h=P(()=>m(m(m({},jp),v.value),e.validateMessages)),[b,y]=Fy(i),S=P(()=>ie(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:f.value===!1,[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-${c.value}`]:c.value},y.value)),$=le(),x={},C=(N,F)=>{x[N]=F},O=N=>{delete x[N]},w=N=>{const F=!!N,L=F?hl(N).map(am):[];return F?Object.values(x).filter(k=>L.findIndex(j=>Lte(j,k.fieldName.value))>-1):Object.values(x)},I=N=>{if(!e.model){It();return}w(N).forEach(F=>{F.resetField()})},T=N=>{w(N).forEach(F=>{F.clearValidate()})},_=N=>{const{scrollToFirstError:F}=e;if(n("finishFailed",N),F&&N.errorFields.length){let L={};typeof F=="object"&&(L=F),A(N.errorFields[0].name,L)}},E=function(){return M(...arguments)},A=function(N){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=w(N?[N]:void 0);if(L.length){const k=L[0].fieldId.value,j=k?document.getElementById(k):null;j&&kP(j,m({scrollMode:"if-needed",block:"nearest"},F))}},R=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const F=[];return Object.values(x).forEach(L=>{let{namePath:k}=L;F.push(k.value)}),xw(e.model,F)}else return xw(e.model,N)},z=(N,F)=>{if(It(),!e.model)return It(),Promise.reject("Form `model` is required for validateFields to work.");const L=!!N,k=L?hl(N).map(am):[],j=[];Object.values(x).forEach(Z=>{var U;if(L||k.push(Z.namePath.value),!(!((U=Z.rules)===null||U===void 0)&&U.value.length))return;const ee=Z.namePath.value;if(!L||nte(k,ee)){const G=Z.validateRules(m({validateMessages:h.value},F));j.push(G.then(()=>({name:ee,errors:[],warnings:[]})).catch(J=>{const Q=[],K=[];return J.forEach(q=>{let{rule:{warningOnly:pe},errors:W}=q;pe?K.push(...W):Q.push(...W)}),Q.length?Promise.reject({name:ee,errors:Q,warnings:K}):{name:ee,errors:Q,warnings:K}}))}});const H=T8(j);$.value=H;const Y=H.then(()=>$.value===H?Promise.resolve(R(k)):Promise.reject([])).catch(Z=>{const U=Z.filter(ee=>ee&&ee.errors.length);return Promise.reject({values:R(k),errorFields:U,outOfDate:$.value!==H})});return Y.catch(Z=>Z),Y},M=function(){return z(...arguments)},B=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),e.model&&z().then(L=>{n("finish",L)}).catch(L=>{_(L)})};return r({resetFields:I,clearValidate:T,validateFields:z,getFieldsValue:R,validate:E,scrollToField:A}),O8({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:f,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(N,F,L)=>{n("validate",N,F,L)},validateMessages:h}),be(()=>e.rules,()=>{e.validateOnRuleChange&&z()}),()=>{var N;return b(p("form",D(D({},l),{},{onSubmit:B,class:[S.value,l.class]}),[(N=o.default)===null||N===void 0?void 0:N.call(o)]))}}}),il=kte;il.useInjectFormItemContext=Qt;il.ItemRest=Gd;il.install=function(e){return e.component(il.name,il),e.component(il.Item.name,il.Item),e.component(Gd.name,Gd),e};const zte=new nt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Hte=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:m(m({},Xe(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:m(m({},Xe(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:m(m({},Xe(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:m({},Ar(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` - ${n}:not(${n}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:zte,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` - ${n}-checked:not(${n}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Kp(e,t){const n=Fe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Hte(n)]}const E8=Ve("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[Kp(n,e)]}),jte=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,l=` - &${r}-expand ${r}-expand-icon, - ${r}-loading-icon - `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[Kp(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":m(m({},Gt),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[l]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[l]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},ja(e)]},Wte=Ve("Cascader",e=>[jte(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Vte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[a]:[...i,t,a],[]),r=[];let l=0;return o.forEach((i,a)=>{const s=l+i.length;let c=e.slice(l,s);l=s,a%2===1&&(c=p("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[c])),r.push(c)}),r}const Gte=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const l=[],i=t.toLowerCase();return n.forEach((a,s)=>{s!==0&&l.push(" / ");let c=a[r.label];const u=typeof c;(u==="string"||u==="number")&&(c=Kte(String(c),i,o)),l.push(c)}),l};function Xte(){return m(m({},et(g8(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:V.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Ute=oe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:qe(Xte(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:l}=t;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,rootPrefixCls:u,getPrefixCls:d,direction:f,getPopupContainer:g,renderEmpty:v,size:h,disabled:b}=Te("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=Ol(y,f),x=P(()=>S.value||h.value),C=qn(),O=P(()=>{var F;return(F=b.value)!==null&&F!==void 0?F:C.value}),[w,I]=xb(y),[T]=Wte(c),_=P(()=>f.value==="rtl"),E=P(()=>{if(!e.showSearch)return e.showSearch;let F={render:Gte};return typeof e.showSearch=="object"&&(F=m(m({},F),e.showSearch)),F}),A=P(()=>ie(e.popupClassName||e.dropdownClassName,`${c.value}-dropdown`,{[`${c.value}-dropdown-rtl`]:_.value},I.value)),R=le();o({focus(){var F;(F=R.value)===null||F===void 0||F.focus()},blur(){var F;(F=R.value)===null||F===void 0||F.blur()}});const z=function(){for(var F=arguments.length,L=new Array(F),k=0;ke.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),N=P(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var F,L;const{notFoundContent:k=(F=r.notFoundContent)===null||F===void 0?void 0:F.call(r),expandIcon:j=(L=r.expandIcon)===null||L===void 0?void 0:L.call(r),multiple:H,bordered:Y,allowClear:Z,choiceTransitionName:U,transitionName:ee,id:G=i.id.value}=e,J=Vte(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Q=k||v("Cascader");let K=j;j||(K=_.value?p(Sl,null,null):p(Wo,null,null));const q=p("span",{class:`${y.value}-menu-item-loading-icon`},[p(co,{spin:!0},null)]),{suffixIcon:pe,removeIcon:W,clearIcon:X}=cb(m(m({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:H,prefixCls:y.value,showArrow:B.value}),r);return T(w(p(lee,D(D(D({},J),n),{},{id:G,prefixCls:y.value,class:[c.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:_.value,[`${y.value}-borderless`]:!Y,[`${y.value}-in-form-item`]:a.isFormItemInput},Tn(y.value,s.value,a.hasFeedback),$.value,n.class,I.value],disabled:O.value,direction:f.value,placement:N.value,notFoundContent:Q,allowClear:Z,showSearch:E.value,expandIcon:K,inputIcon:pe,removeIcon:W,clearIcon:X,loadingIcon:q,checkable:!!H,dropdownClassName:A.value,dropdownPrefixCls:c.value,choiceTransitionName:_n(u.value,"",U),transitionName:_n(u.value,K0(N.value),ee),getPopupContainer:g==null?void 0:g.value,customSlots:m(m({},r),{checkable:()=>p("span",{class:`${c.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:z,onBlur:M,ref:R}),r)))}}}),Yte=Tt(m(Ute,{SHOW_CHILD:r8,SHOW_PARENT:o8})),qte=()=>({name:String,prefixCls:String,options:at([]),disabled:Boolean,id:String}),Zte=()=>m(m({},qte()),{defaultValue:at(),value:at(),onChange:ve(),"onUpdate:value":ve()}),Qte=()=>({prefixCls:String,defaultChecked:Ce(),checked:Ce(),disabled:Ce(),isGroup:Ce(),value:V.any,name:String,id:String,indeterminate:Ce(),type:Be("checkbox"),autofocus:Ce(),onChange:ve(),"onUpdate:checked":ve(),onClick:ve(),skipGroup:Ce(!1)}),Jte=()=>m(m({},Qte()),{indeterminate:Ce(!1)}),M8=Symbol("CheckboxGroupContext");var Tw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(v==null?void 0:v.disabled.value)||u.value);ke(()=>{!e.skipGroup&&v&&v.registerValue(h,e.value)}),Ze(()=>{v&&v.cancelValue(h)}),je(()=>{It(!!(e.checked!==void 0||v||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),i.onFieldChange()},S=le();return l({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=yt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:I,id:T=i.id.value}=e,_=Tw(e,["indeterminate","skipGroup","id"]),{onMouseenter:E,onMouseleave:A,onInput:R,class:z,style:M}=o,B=Tw(o,["onMouseenter","onMouseleave","onInput","class","style"]),N=m(m(m(m({},_),{id:T,prefixCls:s.value}),B),{disabled:b.value});v&&!I?(N.onChange=function(){for(var j=arguments.length,H=new Array(j),Y=0;Y`${a.value}-group`),[u,d]=E8(c),f=le((e.value===void 0?e.defaultValue:e.value)||[]);be(()=>e.value,()=>{f.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),v=le(Symbol()),h=le(new Map),b=x=>{h.value.delete(x),v.value=Symbol()},y=(x,C)=>{h.value.set(x,C),v.value=Symbol()},S=le(new Map);return be(v,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Ge(M8,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=f.value.indexOf(x.value),O=[...f.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(f.value=O);const w=O.filter(I=>S.value.has(I)).sort((I,T)=>{const _=g.value.findIndex(A=>A.value===I),E=g.value.findIndex(A=>A.value===T);return _-E});r("update:value",w),r("change",w),i.onFieldChange()},mergedValue:f,name:P(()=>e.name),disabled:P(()=>e.disabled)}),l({mergedValue:f}),()=>{var x;const{id:C=i.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var I;return p($o,{prefixCls:a.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:f.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${c.value}-item`},{default:()=>[n.label!==void 0?(I=n.label)===null||I===void 0?void 0:I.call(n,w):w.label]})})),u(p("div",D(D({},o),{},{class:[c.value,{[`${c.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});$o.Group=vf;$o.install=function(e){return e.component($o.name,$o),e.component(vf.name,vf),e};const ene={useBreakpoint:Va},tne=Tt(Vp),nne=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:l,commentFontSizeSm:i,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:c,commentActionHoverColor:u,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:g}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:l,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:l,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},"&-name":{color:a,fontSize:l,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:g,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:c,"> span":{marginRight:"10px",color:c,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:u}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},one=Ve("Comment",e=>{const t=Fe(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[nne(t)]}),rne=()=>({actions:Array,author:V.any,avatar:V.any,content:V.any,prefixCls:String,datetime:V.any}),lne=oe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:rne(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("comment",e),[i,a]=one(r),s=(u,d)=>p("div",{class:`${u}-nested`},[d]),c=u=>!u||!u.length?null:u.map((f,g)=>p("li",{key:`action-${g}`},[f]));return()=>{var u,d,f,g,v,h,b,y,S,$,x;const C=r.value,O=(u=e.actions)!==null&&u!==void 0?u:(d=n.actions)===null||d===void 0?void 0:d.call(n),w=(f=e.author)!==null&&f!==void 0?f:(g=n.author)===null||g===void 0?void 0:g.call(n),I=(v=e.avatar)!==null&&v!==void 0?v:(h=n.avatar)===null||h===void 0?void 0:h.call(n),T=(b=e.content)!==null&&b!==void 0?b:(y=n.content)===null||y===void 0?void 0:y.call(n),_=(S=e.datetime)!==null&&S!==void 0?S:($=n.datetime)===null||$===void 0?void 0:$.call(n),E=p("div",{class:`${C}-avatar`},[typeof I=="string"?p("img",{src:I,alt:"comment-avatar"},null):I]),A=O?p("ul",{class:`${C}-actions`},[c(Array.isArray(O)?O:[O])]):null,R=p("div",{class:`${C}-content-author`},[w&&p("span",{class:`${C}-content-author-name`},[w]),_&&p("span",{class:`${C}-content-author-time`},[_])]),z=p("div",{class:`${C}-content`},[R,p("div",{class:`${C}-content-detail`},[T]),A]),M=p("div",{class:`${C}-inner`},[E,z]),B=yt((x=n.default)===null||x===void 0?void 0:x.call(n));return i(p("div",D(D({},o),{},{class:[C,{[`${C}-rtl`]:l.value==="rtl"},o.class,a.value]}),[M,B&&B.length?s(C,B):null]))}}}),ine=Tt(lne);let Zu=m({},jn.Modal);function ane(e){e?Zu=m(m({},Zu),e):Zu=m({},jn.Modal)}function sne(){return Zu}const cm="internalMark",Qu=oe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;It(e.ANT_MARK__===cm);const o=ut({antLocale:m(m({},e.locale),{exist:!0}),ANT_MARK__:cm});return Ge("localeData",o),be(()=>e.locale,r=>{ane(r&&r.Modal),o.antLocale=m(m({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});Qu.install=function(e){return e.component(Qu.name,Qu),e};const _8=Tt(Qu),A8=oe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,l=!1;const i=P(()=>e.duration===void 0?4.5:e.duration),a=()=>{i.value&&!l&&(r=setTimeout(()=>{c()},i.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},c=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:g}=e;f&&f(g)},u=()=>{s(),a()};return je(()=>{a()}),Rn(()=>{l=!0,s()}),be([i,()=>e.updateMark,()=>e.visible],(d,f)=>{let[g,v,h]=d,[b,y,S]=f;(g!==b||v!==y||h!==S&&S)&&u()},{flush:"post"}),()=>{var d,f;const{prefixCls:g,closable:v,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(w[I]=n[I]),w),{}),O=p("div",D({class:ie(x,S,{[`${x}-closable`]:v}),style:$,onMouseenter:s,onMouseleave:a,onClick:b},C),[p("div",{class:`${x}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),v?p("a",{tabindex:0,onClick:c,class:`${x}-close`},[h||p("span",{class:`${x}-close-x`},null)]):null]);return y?p(Jm,{to:y},{default:()=>O}):O}}});var cne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:u,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${u}-${d}`),up(f)}),s=(u,d)=>{const f=u.key||Mw(),g=m(m({},u),{key:f}),{maxCount:v}=e,h=i.value.map(y=>y.notice.key).indexOf(f),b=i.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(v&&i.value.length>=v&&(g.key=b[0].notice.key,g.updateMark=Mw(),g.userPassKey=f,b.shift()),b.push({notice:g,holderCallback:d})),i.value=b},c=u=>{i.value=Qe(i.value).filter(d=>{let{notice:{key:f,userPassKey:g}}=d;return(g||f)!==u})};return o({add:s,remove:c,notices:i}),()=>{var u;const{prefixCls:d,closeIcon:f=(u=r.closeIcon)===null||u===void 0?void 0:u.call(r,{prefixCls:d})}=e,g=i.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===i.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:I=>{var T;c(I),(T=y.onClose)===null||T===void 0||T.call(y)},onClick:y.onClick});return S?p("div",{key:x,class:`${d}-hook-holder`,ref:I=>{typeof x>"u"||(I?(l.set(x,I),S(I,w)):l.delete(x))}},null):p(A8,D(D({},w),{},{class:ie(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[p(Hf,D({tag:"div"},a.value),{default:()=>[g]})])}}});um.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:l,appContext:i,prefixCls:a,rootPrefixCls:s,transitionName:c,hasTransitionName:u,useStyle:d}=o,f=cne(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");l?l().appendChild(g):document.body.appendChild(g);const h=p(oe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=te(),x=P(()=>vn.getPrefixCls(r,a)),[,C]=d(x);return je(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){bl(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=vn,w=O.getRootPrefixCls(s,x.value),I=u?c:`${x.value}-${c}`;return p(zy,D(D({},O),{},{prefixCls:w}),{default:()=>[p(um,D(D({ref:$},S),{},{prefixCls:x.value,transitionName:I,hashId:C.value}),null)]})}}}),f);h.appContext=i||h.appContext,bl(h,g)};const R8=um;let _w=0;const dne=Date.now();function Aw(){const e=_w;return _w+=1,`rcNotification_${dne}_${e}`}const fne=oe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,l=P(()=>e.notices),i=P(()=>{let u=e.transitionName;if(!u&&e.animation)switch(typeof e.animation){case"string":u=e.animation;break;case"function":u=e.animation().name;break;case"object":u=e.animation.name;break;default:u=`${e.prefixCls}-fade`;break}return up(u)}),a=u=>e.remove(u),s=le({});be(l,()=>{const u={};Object.keys(s.value).forEach(d=>{u[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(u[f]=u[f]||[],u[f].push(d))}),s.value=u});const c=P(()=>Object.keys(s.value));return()=>{var u;const{prefixCls:d,closeIcon:f=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o,{prefixCls:d})}=e,g=c.value.map(v=>{var h,b;const y=s.value[v],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,v),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,v),x=y.map((w,I)=>{let{notice:T,holderCallback:_}=w;const E=I===l.value.length-1?T.updateMark:void 0,{key:A,userPassKey:R}=T,{content:z}=T,M=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},T),T.props),{key:A,noticeKey:R||A,updateMark:E,onClose:B=>{var N;a(B),(N=T.onClose)===null||N===void 0||N.call(T)},onClick:T.onClick});return _?p("div",{key:A,class:`${d}-hook-holder`,ref:B=>{typeof A>"u"||(B?(r.set(A,B),_(B,M)):r.delete(A))}},null):p(A8,D(D({},M),{},{class:ie(M.class,e.hashId)}),{default:()=>[typeof z=="function"?z({prefixCls:d}):z]})}),C={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,v),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return p("div",{key:v,class:C,style:n.style||$||{top:"65px",left:"50%"}},[p(Hf,D(D({tag:"div"},i.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return p(xI,{getContainer:e.getContainer},{default:()=>[g]})}}}),pne=fne;var gne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let Rw=0;function vne(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(l=>{const i=r[l];i!==void 0&&(e[l]=i)})}),e}function D8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=hne,motion:n,prefixCls:o,maxCount:r,getClassName:l,getStyles:i,onAllRemoved:a}=e,s=gne(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),c=te([]),u=te(),d=(y,S)=>{const $=y.key||Aw(),x=m(m({},y),{key:$}),C=c.value.map(w=>w.notice.key).indexOf($),O=c.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&c.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=Aw(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),c.value=O},f=y=>{c.value=c.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{c.value=[]},v=()=>p(pne,{ref:u,prefixCls:o,maxCount:r,notices:c.value,remove:f,getClassName:l,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),h=te([]),b={open:y=>{const S=vne(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${Rw}`,Rw+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return be(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":f(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,v]}const mne=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:l,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:f,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:m(m({},Xe(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:g,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:c},[`${t}-notice-content`]:{display:"inline-block",padding:b,background:r,borderRadius:v,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:l},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[` - ${t}-info ${n}, - ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},B8=Ve("Message",e=>{const t=Fe(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[mne(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),bne={info:p(Wa,null,null),success:p(zr,null,null),error:p(Qn,null,null),warning:p(Hr,null,null),loading:p(co,null,null)},yne=oe({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:ie(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||bne[e.type],p("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var Sne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rl("message",e.prefixCls)),[,s]=B8(a),c=()=>{var h;const b=(h=e.top)!==null&&h!==void 0?h:$ne;return{left:"50%",transform:"translateX(-50%)",top:typeof b=="number"?`${b}px`:b}},u=()=>ie(s.value,e.rtl?`${a.value}-rtl`:""),d=()=>{var h;return _0({prefixCls:a.value,animation:(h=e.animation)!==null&&h!==void 0?h:"move-up",transitionName:e.transitionName})},f=p("span",{class:`${a.value}-close-x`},[p(Zn,{class:`${a.value}-close-icon`},null)]),[g,v]=D8({getStyles:c,prefixCls:a.value,getClassName:u,motion:d,closable:!1,closeIcon:f,duration:(o=e.duration)!==null&&o!==void 0?o:Cne,getContainer:(r=e.staticGetContainer)!==null&&r!==void 0?r:i.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(m(m({},g),{prefixCls:a,hashId:s})),v}});let Dw=0;function wne(e){const t=te(null),n=Symbol("messageHolderKey"),o=s=>{var c;(c=t.value)===null||c===void 0||c.close(s)},r=s=>{if(!t.value){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,hashId:d}=t.value,f=`${u}-notice`,{content:g,icon:v,type:h,key:b,class:y,onClose:S}=s,$=Sne(s,["content","icon","type","key","class","onClose"]);let x=b;return x==null&&(Dw+=1,x=`antd-message-${Dw}`),DR(C=>(c(m(m({},$),{key:x,content:()=>p(yne,{prefixCls:u,type:h,icon:typeof v=="function"?v():v},{default:()=>[typeof g=="function"?g():g]}),placement:"top",class:ie(h&&`${f}-${h}`,d,y),onClose:()=>{S==null||S(),C()}})),()=>{o(x)}))},i={open:r,destroy:s=>{var c;s!==void 0?o(s):(c=t.value)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const c=(u,d,f)=>{let g;u&&typeof u=="object"&&"content"in u?g=u:g={content:u};let v,h;typeof d=="function"?h=d:(v=d,h=f);const b=m(m({onClose:h,duration:v},g),{type:s});return r(b)};i[s]=c}),[i,()=>p(xne,D(D({key:n},e),{},{ref:t}),null)]}function N8(e){return wne(e)}let F8=3,L8,kn,One=1,k8="",z8="move-up",H8=!1,j8=()=>document.body,W8,V8=!1;function Pne(){return One++}function Ine(e){e.top!==void 0&&(L8=e.top,kn=null),e.duration!==void 0&&(F8=e.duration),e.prefixCls!==void 0&&(k8=e.prefixCls),e.getContainer!==void 0&&(j8=e.getContainer,kn=null),e.transitionName!==void 0&&(z8=e.transitionName,kn=null,H8=!0),e.maxCount!==void 0&&(W8=e.maxCount,kn=null),e.rtl!==void 0&&(V8=e.rtl)}function Tne(e,t){if(kn){t(kn);return}R8.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||k8,rootPrefixCls:e.rootPrefixCls,transitionName:z8,hasTransitionName:H8,style:{top:L8},getContainer:j8||e.getPopupContainer,maxCount:W8,name:"message",useStyle:B8},n=>{if(kn){t(kn);return}kn=n,t(n)})}const K8={info:Wa,success:zr,error:Qn,warning:Hr,loading:co},Ene=Object.keys(K8);function Mne(e){const t=e.duration!==void 0?e.duration:F8,n=e.key||Pne(),o=new Promise(l=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),l(!0));Tne(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:c}=s;const u=K8[e.type],d=u?p(u,null,null):"",f=ie(`${c}-custom-content`,{[`${c}-${e.type}`]:e.type,[`${c}-rtl`]:V8===!0});return p("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,p("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),r=()=>{kn&&kn.removeNotice(n)};return r.then=(l,i)=>o.then(l,i),r.promise=o,r}function _ne(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const bc={open:Mne,config:Ine,destroy(e){if(kn)if(e){const{removeNotice:t}=kn;t(e)}else{const{destroy:t}=kn;t(),kn=null}}};function Ane(e,t){e[t]=(n,o,r)=>_ne(n)?e.open(m(m({},n),{type:t})):(typeof o=="function"&&(r=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:r}))}Ene.forEach(e=>Ane(bc,e));bc.warn=bc.warning;bc.useMessage=N8;const ga=bc,Rne=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,r=new nt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new nt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new nt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:r}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},Dne=Rne,Bne=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:r,notificationMarginBottom:l,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:g,notificationMarginEdge:v,motionDurationMid:h,motionEaseInOut:b,fontSize:y,lineHeight:S,width:$,notificationIconSize:x}=e,C=`${n}-notice`,O=new nt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:$},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new nt("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:m(m(m(m({},Xe(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:b,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:b,animationFillMode:"both",animationDuration:h,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:O,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),Dne(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[C]:{position:"relative",width:$,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:l,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:S,wordWrap:"break-word",background:f,borderRadius:i,boxShadow:o,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${C}-message`]:{marginBottom:e.marginXS,color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:y},[`&${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+x,fontSize:r},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.marginSM+x,fontSize:y},[`${C}-icon`]:{position:"absolute",fontSize:x,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${C}-pure-panel`]:{margin:0}}]},G8=Ve("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=Fe(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Bne(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function Nne(e,t){return t||p("span",{class:`${e}-close-x`},[p(Zn,{class:`${e}-close-icon`},null)])}p(Wa,null,null),p(zr,null,null),p(Qn,null,null),p(Hr,null,null),p(co,null,null);const Fne={success:zr,info:Wa,error:Qn,warning:Hr};function Lne(e){let{prefixCls:t,icon:n,type:o,message:r,description:l,btn:i}=e,a=null;if(n)a=p("span",{class:`${t}-icon`},[Xi(n)]);else if(o){const s=Fne[o];a=p(s,{class:`${t}-icon ${t}-icon-${o}`},null)}return p("div",{class:ie({[`${t}-with-icon`]:a}),role:"alert"},[a,p("div",{class:`${t}-message`},[r]),p("div",{class:`${t}-description`},[l]),i&&p("div",{class:`${t}-btn`},[i])])}function X8(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function kne(e){return{name:`${e}-fade`}}var zne=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.prefixCls||o("notification")),i=f=>{var g,v;return X8(f,(g=e.top)!==null&&g!==void 0?g:Bw,(v=e.bottom)!==null&&v!==void 0?v:Bw)},[,a]=G8(l),s=()=>ie(a.value,{[`${l.value}-rtl`]:e.rtl}),c=()=>kne(l.value),[u,d]=D8({prefixCls:l.value,getStyles:i,getClassName:s,motion:c,closable:!0,closeIcon:Nne(l.value),duration:Hne,getContainer:()=>{var f,g;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((g=r.value)===null||g===void 0?void 0:g.call(r))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return n(m(m({},u),{prefixCls:l.value,hashId:a})),d}});function Wne(e){const t=te(null),n=Symbol("notificationHolderKey"),o=a=>{if(!t.value)return;const{open:s,prefixCls:c,hashId:u}=t.value,d=`${c}-notice`,{message:f,description:g,icon:v,type:h,btn:b,class:y}=a,S=zne(a,["message","description","icon","type","btn","class"]);return s(m(m({placement:"topRight"},S),{content:()=>p(Lne,{prefixCls:d,icon:typeof v=="function"?v():v,type:h,message:typeof f=="function"?f():f,description:typeof g=="function"?g():g,btn:typeof b=="function"?b():b},null),class:ie(h&&`${d}-${h}`,u,y)}))},l={open:o,destroy:a=>{var s,c;a!==void 0?(s=t.value)===null||s===void 0||s.close(a):(c=t.value)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(a=>{l[a]=s=>o(m(m({},s),{type:a}))}),[l,()=>p(jne,D(D({key:n},e),{},{ref:t}),null)]}function U8(e){return Wne(e)}globalThis&&globalThis.__awaiter;const Xl={};let Y8=4.5,q8="24px",Z8="24px",dm="",Q8="topRight",J8=()=>document.body,eE=null,fm=!1,tE;function Vne(e){const{duration:t,placement:n,bottom:o,top:r,getContainer:l,closeIcon:i,prefixCls:a}=e;a!==void 0&&(dm=a),t!==void 0&&(Y8=t),n!==void 0&&(Q8=n),o!==void 0&&(Z8=typeof o=="number"?`${o}px`:o),r!==void 0&&(q8=typeof r=="number"?`${r}px`:r),l!==void 0&&(J8=l),i!==void 0&&(eE=i),e.rtl!==void 0&&(fm=e.rtl),e.maxCount!==void 0&&(tE=e.maxCount)}function Kne(e,t){let{prefixCls:n,placement:o=Q8,getContainer:r=J8,top:l,bottom:i,closeIcon:a=eE,appContext:s}=e;const{getPrefixCls:c}=roe(),u=c("notification",n||dm),d=`${u}-${o}-${fm}`,f=Xl[d];if(f){Promise.resolve(f).then(v=>{t(v)});return}const g=ie(`${u}-${o}`,{[`${u}-rtl`]:fm===!0});R8.newInstance({name:"notification",prefixCls:n||dm,useStyle:G8,class:g,style:X8(o,l??q8,i??Z8),appContext:s,getContainer:r,closeIcon:v=>{let{prefixCls:h}=v;return p("span",{class:`${h}-close-x`},[Xi(a,{},p(Zn,{class:`${h}-close-icon`},null))])},maxCount:tE,hasTransitionName:!0},v=>{Xl[d]=v,t(v)})}const Gne={success:vT,info:bT,error:yT,warning:mT};function Xne(e){const{icon:t,type:n,description:o,message:r,btn:l}=e,i=e.duration===void 0?Y8:e.duration;Kne(e,a=>{a.notice({content:s=>{let{prefixCls:c}=s;const u=`${c}-notice`;let d=null;if(t)d=()=>p("span",{class:`${u}-icon`},[Xi(t)]);else if(n){const f=Gne[n];d=()=>p(f,{class:`${u}-icon ${u}-icon-${n}`},null)}return p("div",{class:d?`${u}-with-icon`:""},[d&&d(),p("div",{class:`${u}-message`},[!o&&d?p("span",{class:`${u}-message-single-line-auto-margin`},null):null,Xi(r)]),p("div",{class:`${u}-description`},[Xi(o)]),l?p("span",{class:`${u}-btn`},[Xi(l)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const _a={open:Xne,close(e){Object.keys(Xl).forEach(t=>Promise.resolve(Xl[t]).then(n=>{n.removeNotice(e)}))},config:Vne,destroy(){Object.keys(Xl).forEach(e=>{Promise.resolve(Xl[e]).then(t=>{t.destroy()}),delete Xl[e]})}},Une=["success","info","warning","error"];Une.forEach(e=>{_a[e]=t=>_a.open(m(m({},t),{type:e}))});_a.warn=_a.warning;_a.useNotification=U8;const Ly=_a,Yne=`-ant-${Date.now()}-${Math.random()}`;function qne(e,t){const n={},o=(i,a)=>{let s=i.clone();return s=(a==null?void 0:a(s))||s,s.toRgbString()},r=(i,a)=>{const s=new gt(i),c=ci(s.toRgbString());n[`${a}-color`]=o(s),n[`${a}-color-disabled`]=c[1],n[`${a}-color-hover`]=c[4],n[`${a}-color-active`]=c[6],n[`${a}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=c[0],n[`${a}-color-deprecated-border`]=c[2]};if(t.primaryColor){r(t.primaryColor,"primary");const i=new gt(t.primaryColor),a=ci(i.toRgbString());a.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=o(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=o(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=o(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=o(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=o(i,c=>c.setAlpha(c.getAlpha()*.12));const s=new gt(a[0]);n["primary-color-active-deprecated-f-30"]=o(s,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(s,c=>c.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` -`)} - } - `.trim()}function Zne(e,t){const n=qne(e,t);Mn()?ec(n,`${Yne}-dynamic-theme`):It()}const Qne=e=>{const[t,n]=Fr();return Dd(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:m(m({},yi()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},Jne=Qne;function eoe(e,t){const n=P(()=>(e==null?void 0:e.value)||{}),o=P(()=>n.value.inherit===!1||!(t!=null&&t.value)?EP:t.value);return P(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const l=m({},o.value.components);return Object.keys(e.value.components||{}).forEach(i=>{l[i]=m(m({},l[i]),e.value.components[i])}),m(m(m({},o.value),n.value),{token:m(m({},o.value.token),n.value.token),components:l})})}var toe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{m(vn,ky),vn.prefixCls=ha(),vn.iconPrefixCls=nE(),vn.getPrefixCls=(e,t)=>t||(e?`${vn.prefixCls}-${e}`:vn.prefixCls),vn.getRootPrefixCls=()=>vn.prefixCls?vn.prefixCls:ha()});let Sh;const ooe=e=>{Sh&&Sh(),Sh=ke(()=>{m(ky,ut(e)),m(vn,ut(e))}),e.theme&&Zne(ha(),e.theme)},roe=()=>({getPrefixCls:(e,t)=>t||(e?`${ha()}-${e}`:ha()),getIconPrefixCls:nE,getRootPrefixCls:()=>vn.prefixCls?vn.prefixCls:ha()}),Ns=oe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:cD(),setup(e,t){let{slots:n}=t;const o=Xf(),r=(M,B)=>{const{prefixCls:N="ant"}=e;if(B)return B;const F=N||o.getPrefixCls("");return M?`${F}-${M}`:F},l=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||h0),i=P(()=>l.value!==o.iconPrefixCls.value),a=P(()=>{var M;return e.csp||((M=o.csp)===null||M===void 0?void 0:M.value)}),s=Jne(l),c=eoe(P(()=>e.theme),P(()=>{var M;return(M=o.theme)===null||M===void 0?void 0:M.value})),u=M=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||wB)(M),d=P(()=>{var M,B;return(M=e.autoInsertSpaceInButton)!==null&&M!==void 0?M:(B=o.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),f=P(()=>{var M;return e.locale||((M=o.locale)===null||M===void 0?void 0:M.value)});be(f,()=>{ky.locale=f.value},{immediate:!0});const g=P(()=>{var M;return e.direction||((M=o.direction)===null||M===void 0?void 0:M.value)}),v=P(()=>{var M,B;return(M=e.space)!==null&&M!==void 0?M:(B=o.space)===null||B===void 0?void 0:B.value}),h=P(()=>{var M,B;return(M=e.virtual)!==null&&M!==void 0?M:(B=o.virtual)===null||B===void 0?void 0:B.value}),b=P(()=>{var M,B;return(M=e.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(B=o.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=P(()=>{var M;return e.getTargetContainer!==void 0?e.getTargetContainer:(M=o.getTargetContainer)===null||M===void 0?void 0:M.value}),S=P(()=>{var M;return e.getPopupContainer!==void 0?e.getPopupContainer:(M=o.getPopupContainer)===null||M===void 0?void 0:M.value}),$=P(()=>{var M;return e.pageHeader!==void 0?e.pageHeader:(M=o.pageHeader)===null||M===void 0?void 0:M.value}),x=P(()=>{var M;return e.input!==void 0?e.input:(M=o.input)===null||M===void 0?void 0:M.value}),C=P(()=>{var M;return e.pagination!==void 0?e.pagination:(M=o.pagination)===null||M===void 0?void 0:M.value}),O=P(()=>{var M;return e.form!==void 0?e.form:(M=o.form)===null||M===void 0?void 0:M.value}),w=P(()=>{var M;return e.select!==void 0?e.select:(M=o.select)===null||M===void 0?void 0:M.value}),I=P(()=>e.componentSize),T=P(()=>e.componentDisabled),_=P(()=>{var M,B;return(M=e.wave)!==null&&M!==void 0?M:(B=o.wave)===null||B===void 0?void 0:B.value}),E={csp:a,autoInsertSpaceInButton:d,locale:f,direction:g,space:v,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:l,theme:P(()=>{var M,B;return(M=c.value)!==null&&M!==void 0?M:(B=o.theme)===null||B===void 0?void 0:B.value}),renderEmpty:u,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:I,componentDisabled:T,transformCellText:P(()=>e.transformCellText),wave:_},A=P(()=>{const M=c.value||{},{algorithm:B,token:N}=M,F=toe(M,["algorithm","token"]),L=B&&(!Array.isArray(B)||B.length>0)?S0(B):void 0;return m(m({},F),{theme:L,token:m(m({},Qf),N)})}),R=P(()=>{var M,B;let N={};return f.value&&(N=((M=f.value.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||((B=jn.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(N=m(m({},N),e.form.validateMessages)),N});uD(E),aD({validateMessages:R}),NP(I),eP(T);const z=M=>{var B,N;let F=i.value?s((B=n.default)===null||B===void 0?void 0:B.call(n)):(N=n.default)===null||N===void 0?void 0:N.call(n);if(e.theme){const L=function(){return F}();F=p(bB,{value:A.value},{default:()=>[L]})}return p(_8,{locale:f.value||M,ANT_MARK__:cm},{default:()=>[F]})};return ke(()=>{g.value&&(ga.config({rtl:g.value==="rtl"}),Ly.config({rtl:g.value==="rtl"}))}),()=>p(bi,{children:(M,B,N)=>z(N)},null)}});Ns.config=ooe;Ns.install=function(e){e.component(Ns.name,Ns)};const zy=Ns,loe=(e,t)=>{let{attrs:n,slots:o}=t;return p(zt,D(D({size:"small",type:"primary"},e),n),o)},ioe=loe,xu=(e,t,n)=>{const o=MR(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},aoe=e=>Bd(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:l,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:l,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),soe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,l=o-n,i=t-n;return{[r]:m(m({},Xe(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-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(${r}-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}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},oE=Ve("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,l=Math.round(t*n),i=e.fontSizeSM,a=l-o*2,s=e.colorFillAlter,c=e.colorText,u=Fe(e,{tagFontSize:i,tagLineHeight:a,tagDefaultBg:s,tagDefaultColor:c,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[soe(u),aoe(u),xu(u,"success","Success"),xu(u,"processing","Info"),xu(u,"error","Error"),xu(u,"warning","Warning")]}),coe=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),uoe=oe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:coe(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l}=Te("tag",e),[i,a]=oE(l),s=u=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",u)},c=P(()=>ie(l.value,a.value,{[`${l.value}-checkable`]:!0,[`${l.value}-checkable-checked`]:e.checked}));return()=>{var u;return i(p("span",D(D({},r),{},{class:[c.value,r.class],onClick:s}),[(u=n.default)===null||u===void 0?void 0:u.call(n)]))}}}),mf=uoe,doe=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:V.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:si(),"onUpdate:visible":Function,icon:V.any,bordered:{type:Boolean,default:!0}}),Fs=oe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:doe(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:l,direction:i}=Te("tag",e),[a,s]=oE(l),c=te(!0);ke(()=>{e.visible!==void 0&&(c.value=e.visible)});const u=v=>{v.stopPropagation(),o("update:visible",!1),o("close",v),!v.defaultPrevented&&e.visible===void 0&&(c.value=!1)},d=P(()=>Ip(e.color)||jX(e.color)),f=P(()=>ie(l.value,s.value,{[`${l.value}-${e.color}`]:d.value,[`${l.value}-has-color`]:e.color&&!d.value,[`${l.value}-hidden`]:!c.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-borderless`]:!e.bordered})),g=v=>{o("click",v)};return()=>{var v,h,b;const{icon:y=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?p("span",{class:`${l.value}-close-icon`,onClick:u},[$]):p(Zn,{class:`${l.value}-close-icon`,onClick:u},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,I=(b=n.default)===null||b===void 0?void 0:b.call(n),T=w?p(We,null,[w,p("span",null,[I])]):I,_=e.onClick!==void 0,E=p("span",D(D({},r),{},{onClick:g,class:[f.value,r.class],style:[O,r.style]}),[T,C()]);return a(_?p(kb,null,{default:()=>[E]}):E)}}});Fs.CheckableTag=mf;Fs.install=function(e){return e.component(Fs.name,Fs),e.component(mf.name,mf),e};const rE=Fs;function foe(e,t){let{slots:n,attrs:o}=t;return p(rE,D(D({color:"blue"},e),o),n)}var poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const goe=poe;function Nw(e){for(var t=1;tE.value||I.value),[z,M]=k6(C),B=le();h({focus:()=>{var J;(J=B.value)===null||J===void 0||J.focus()},blur:()=>{var J;(J=B.value)===null||J===void 0||J.blur()}});const N=J=>S.valueFormat?e.toString(J,S.valueFormat):J,F=(J,Q)=>{const K=N(J);y("update:value",K),y("change",K,Q),$.onFieldChange()},L=J=>{y("update:open",J),y("openChange",J)},k=J=>{y("focus",J)},j=J=>{y("blur",J),$.onFieldBlur()},H=(J,Q)=>{const K=N(J);y("panelChange",K,Q)},Y=J=>{const Q=N(J);y("ok",Q)},[Z]=Io("DatePicker",Js),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),ee=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),G=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var J,Q,K,q,pe,W;const X=m(m({},Z.value),S.locale),ne=m(m({},S),b),{bordered:ae=!0,placeholder:se,suffixIcon:re=(J=v.suffixIcon)===null||J===void 0?void 0:J.call(v),showToday:de=!0,transitionName:ge,allowClear:me=!0,dateRender:fe=v.dateRender,renderExtraFooter:ye=v.renderExtraFooter,monthCellRender:Se=v.monthCellRender||S.monthCellContentRender||v.monthCellContentRender,clearIcon:ue=(Q=v.clearIcon)===null||Q===void 0?void 0:Q.call(v),id:ce=$.id.value}=ne,he=$oe(ne,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),Pe=ne.showTime===""?!0:ne.showTime,{format:Ie}=ne;let Ae={};c&&(Ae.picker=c);const $e=c||ne.picker||"date";Ae=m(m(m({},Ae),Pe?yf(m({format:Ie,picker:$e},typeof Pe=="object"?Pe:{})):{}),$e==="time"?yf(m(m({format:Ie},he),{picker:$e})):{});const xe=C.value,we=p(We,null,[re||p(c==="time"?iE:lE,null,null),x.hasFeedback&&x.feedbackIcon]);return z(p(Fq,D(D(D({monthCellRender:Se,dateRender:fe,renderExtraFooter:ye,ref:B,placeholder:yoe(X,$e,se),suffixIcon:we,dropdownAlign:aE(O.value,S.placement),clearIcon:ue||p(Qn,null,null),allowClear:me,transitionName:ge||`${T.value}-slide-up`},he),Ae),{},{id:ce,picker:$e,value:U.value,defaultValue:ee.value,defaultPickerValue:G.value,showToday:de,locale:X.lang,class:ie({[`${xe}-${R.value}`]:R.value,[`${xe}-borderless`]:!ae},Tn(xe,Ko(x.status,S.status),x.hasFeedback),b.class,M.value,A.value),disabled:_.value,prefixCls:xe,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((K=v.prevIcon)===null||K===void 0?void 0:K.call(v))||p("span",{class:`${xe}-prev-icon`},null),nextIcon:((q=v.nextIcon)===null||q===void 0?void 0:q.call(v))||p("span",{class:`${xe}-next-icon`},null),superPrevIcon:((pe=v.superPrevIcon)===null||pe===void 0?void 0:pe.call(v))||p("span",{class:`${xe}-super-prev-icon`},null),superNextIcon:((W=v.superNextIcon)===null||W===void 0?void 0:W.call(v))||p("span",{class:`${xe}-super-next-icon`},null),components:uE,direction:O.value,dropdownClassName:ie(M.value,S.popupClassName,S.dropdownClassName),onChange:F,onOpenChange:L,onFocus:k,onBlur:j,onPanelChange:H,onOk:Y}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),l=n("month","AMonthPicker"),i=n("year","AYearPicker"),a=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:l,YearPicker:i,TimePicker:a,QuarterPicker:s}}var xoe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const woe=xoe;function Lw(e){for(var t=1;tS.value||h.value),[C,O]=k6(f),w=le();l({focus:()=>{var k;(k=w.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=w.value)===null||k===void 0||k.blur()}});const I=k=>c.valueFormat?e.toString(k,c.valueFormat):k,T=(k,j)=>{const H=I(k);s("update:value",H),s("change",H,j),u.onFieldChange()},_=k=>{s("update:open",k),s("openChange",k)},E=k=>{s("focus",k)},A=k=>{s("blur",k),u.onFieldBlur()},R=(k,j)=>{const H=I(k);s("panelChange",H,j)},z=k=>{const j=I(k);s("ok",j)},M=(k,j,H)=>{const Y=I(k);s("calendarChange",Y,j,H)},[B]=Io("DatePicker",Js),N=P(()=>c.value&&c.valueFormat?e.toDate(c.value,c.valueFormat):c.value),F=P(()=>c.defaultValue&&c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue),L=P(()=>c.defaultPickerValue&&c.valueFormat?e.toDate(c.defaultPickerValue,c.valueFormat):c.defaultPickerValue);return()=>{var k,j,H,Y,Z,U,ee;const G=m(m({},B.value),c.locale),J=m(m({},c),a),{prefixCls:Q,bordered:K=!0,placeholder:q,suffixIcon:pe=(k=i.suffixIcon)===null||k===void 0?void 0:k.call(i),picker:W="date",transitionName:X,allowClear:ne=!0,dateRender:ae=i.dateRender,renderExtraFooter:se=i.renderExtraFooter,separator:re=(j=i.separator)===null||j===void 0?void 0:j.call(i),clearIcon:de=(H=i.clearIcon)===null||H===void 0?void 0:H.call(i),id:ge=u.id.value}=J,me=Ioe(J,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete me["onUpdate:value"],delete me["onUpdate:open"];const{format:fe,showTime:ye}=J;let Se={};Se=m(m(m({},Se),ye?yf(m({format:fe,picker:W},ye)):{}),W==="time"?yf(m(m({format:fe},et(me,["disabledTime"])),{picker:W})):{});const ue=f.value,ce=p(We,null,[pe||p(W==="time"?iE:lE,null,null),d.hasFeedback&&d.feedbackIcon]);return C(p(Uq,D(D(D({dateRender:ae,renderExtraFooter:se,separator:re||p("span",{"aria-label":"to",class:`${ue}-separator`},[p(Poe,null,null)]),ref:w,dropdownAlign:aE(g.value,c.placement),placeholder:Soe(G,W,q),suffixIcon:ce,clearIcon:de||p(Qn,null,null),allowClear:ne,transitionName:X||`${b.value}-slide-up`},me),Se),{},{disabled:y.value,id:ge,value:N.value,defaultValue:F.value,defaultPickerValue:L.value,picker:W,class:ie({[`${ue}-${x.value}`]:x.value,[`${ue}-borderless`]:!K},Tn(ue,Ko(d.status,c.status),d.hasFeedback),a.class,O.value,$.value),locale:G.lang,prefixCls:ue,getPopupContainer:a.getCalendarContainer||v.value,generateConfig:e,prevIcon:((Y=i.prevIcon)===null||Y===void 0?void 0:Y.call(i))||p("span",{class:`${ue}-prev-icon`},null),nextIcon:((Z=i.nextIcon)===null||Z===void 0?void 0:Z.call(i))||p("span",{class:`${ue}-next-icon`},null),superPrevIcon:((U=i.superPrevIcon)===null||U===void 0?void 0:U.call(i))||p("span",{class:`${ue}-super-prev-icon`},null),superNextIcon:((ee=i.superNextIcon)===null||ee===void 0?void 0:ee.call(i))||p("span",{class:`${ue}-super-next-icon`},null),components:uE,direction:g.value,dropdownClassName:ie(O.value,c.popupClassName,c.dropdownClassName),onChange:T,onOpenChange:_,onFocus:E,onBlur:A,onPanelChange:R,onOk:z,onCalendarChange:M}),null))}}})}const uE={button:ioe,rangeItem:foe};function Eoe(e){return e?Array.isArray(e)?e:[e]:[]}function yf(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:l,use12Hours:i}=e,a=Eoe(t)[0],s=m({},e);return a&&typeof a=="string"&&(!a.includes("s")&&l===void 0&&(s.showSecond=!1),!a.includes("m")&&r===void 0&&(s.showMinute=!1),!a.includes("H")&&!a.includes("h")&&o===void 0&&(s.showHour=!1),(a.includes("a")||a.includes("A"))&&i===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof a=="function"&&delete s.format,{showTime:s})}function dE(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a}=Coe(e,t),s=Toe(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:l,TimePicker:i,QuarterPicker:a,RangePicker:s}}const{DatePicker:$h,WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,TimePicker:_oe,QuarterPicker:td,RangePicker:nd}=dE(Ub),Aoe=m($h,{WeekPicker:Ju,MonthPicker:ed,YearPicker:Moe,RangePicker:nd,TimePicker:_oe,QuarterPicker:td,install:e=>(e.component($h.name,$h),e.component(nd.name,nd),e.component(ed.name,ed),e.component(Ju.name,Ju),e.component(td.name,td),e)});function wu(e){return e!=null}const Roe=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:l,bordered:i,label:a,content:s,colon:c}=e,u=n;return i?p(u,{class:[{[`${t}-item-label`]:wu(a),[`${t}-item-content`]:wu(s)}],colSpan:o},{default:()=>[wu(a)&&p("span",{style:r},[a]),wu(s)&&p("span",{style:l},[s])]}):p(u,{class:[`${t}-item`],colSpan:o},{default:()=>[p("div",{class:`${t}-item-container`},[(a||a===0)&&p("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!c}],style:r},[a]),(s||s===0)&&p("span",{class:`${t}-item-content`,style:l},[s])])]})},Ch=Roe,Doe=e=>{const t=(c,u,d)=>{let{colon:f,prefixCls:g,bordered:v}=u,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return c.map((C,O)=>{var w,I;const T=C.props||{},{prefixCls:_=g,span:E=1,labelStyle:A=T["label-style"],contentStyle:R=T["content-style"],label:z=(I=(w=C.children)===null||w===void 0?void 0:w.label)===null||I===void 0?void 0:I.call(w)}=T,M=Gf(C),B=nD(C),N=KO(C),{key:F}=C;return typeof h=="string"?p(Ch,{key:`${b}-${String(F)||O}`,class:B,style:N,labelStyle:m(m({},$),A),contentStyle:m(m({},x),R),span:E,colon:f,component:h,itemPrefixCls:_,bordered:v,label:y?z:null,content:S?M:null},null):[p(Ch,{key:`label-${String(F)||O}`,class:B,style:m(m(m({},$),N),A),span:1,colon:f,component:h[0],itemPrefixCls:_,bordered:v,label:z},null),p(Ch,{key:`content-${String(F)||O}`,class:B,style:m(m(m({},x),N),R),span:E*2-1,component:h[1],itemPrefixCls:_,bordered:v,content:M},null)]})},{prefixCls:n,vertical:o,row:r,index:l,bordered:i}=e,{labelStyle:a,contentStyle:s}=He(gE,{labelStyle:le({}),contentStyle:le({})});return o?p(We,null,[p("tr",{key:`label-${l}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),p("tr",{key:`content-${l}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):p("tr",{key:l,class:`${n}-row`},[t(r,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},Boe=Doe,Noe=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:l}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:l,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},Foe=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:l,descriptionsTitleMarginBottom:i}=e;return{[t]:m(m(m({},Xe(e)),Noe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:m(m({},Gt),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${l}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},Loe=Ve("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,l=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,c=e.marginXXS/2,u=Fe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:r,descriptionsDefaultPadding:l,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:c});return[Foe(u)]});V.any;const koe=()=>({prefixCls:String,label:V.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),fE=oe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:koe(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),pE={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function zoe(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=dt(e,{span:t}),It()),o}function Hoe(e,t){const n=yt(e),o=[];let r=[],l=t;return n.forEach((i,a)=>{var s;const c=(s=i.props)===null||s===void 0?void 0:s.span,u=c||1;if(a===n.length-1){r.push(kw(i,l,c)),o.push(r);return}u({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:V.any,extra:V.any,column:{type:[Number,Object],default:()=>pE},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),gE=Symbol("descriptionsContext"),Ki=oe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:joe(),slots:Object,Item:fE,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("descriptions",e);let i;const a=le({}),[s,c]=Loe(r),u=Rb();Ff(()=>{i=u.value.subscribe(f=>{typeof e.column=="object"&&(a.value=f)})}),Ze(()=>{u.value.unsubscribe(i)}),Ge(gE,{labelStyle:ze(e,"labelStyle"),contentStyle:ze(e,"contentStyle")});const d=P(()=>zoe(e.column,a.value));return()=>{var f,g,v;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(v=n.default)===null||v===void 0?void 0:v.call(n),O=Hoe(C,d.value);return s(p("div",D(D({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:l.value==="rtl"},o.class,c.value]}),[($||x)&&p("div",{class:`${r.value}-header`},[$&&p("div",{class:`${r.value}-title`},[$]),x&&p("div",{class:`${r.value}-extra`},[x])]),p("div",{class:`${r.value}-view`},[p("table",null,[p("tbody",null,[O.map((w,I)=>p(Boe,{key:I,index:I,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});Ki.install=function(e){return e.component(Ki.name,Ki),e.component(Ki.Item.name,Ki.Item),e};const Woe=Ki,Voe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:m(m({},Xe(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Koe=Ve("Divider",e=>{const t=Fe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Voe(t)]},{sizePaddingEdgeHorizontal:0}),Goe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),Xoe=oe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:Goe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("divider",e),[i,a]=Koe(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),c=P(()=>e.orientation==="right"&&e.orientationMargin!=null),u=P(()=>{const{type:g,dashed:v,plain:h}=e,b=r.value;return{[b]:!0,[a.value]:!!a.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!v,[`${b}-plain`]:!!h,[`${b}-rtl`]:l.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:c.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return m(m({},s.value&&{marginLeft:g}),c.value&&{marginRight:g})}),f=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const v=yt((g=n.default)===null||g===void 0?void 0:g.call(n));return i(p("div",D(D({},o),{},{class:[u.value,v.length?`${r.value}-with-text ${r.value}-with-text${f.value}`:"",o.class],role:"separator"}),[v.length?p("span",{class:`${r.value}-inner-text`,style:d.value},[v]):null]))}}}),Uoe=Tt(Xoe);rr.Button=uc;rr.install=function(e){return e.component(rr.name,rr),e.component(uc.name,uc),e};const hE=()=>({prefixCls:String,width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:Re(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:at(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ve(),maskMotion:Re()}),Yoe=()=>m(m({},hE()),{forceRender:{type:Boolean,default:void 0},getContainer:V.oneOfType([V.string,V.func,V.object,V.looseBool])}),qoe=()=>m(m({},hE()),{getContainer:Function,getOpenCount:Function,scrollLocker:V.any,inline:Boolean});function Zoe(e){return Array.isArray(e)?e:[e]}const Qoe={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(Qoe).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Joe=!(typeof window<"u"&&window.document&&window.document.createElement);var ere=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{ot(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$==null?void 0:$();v(e),S&&(O&&(O.parentNode,document.body),ot(()=>{C&&u()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),be(()=>e.level,()=>{v(e)},{flush:"post"}),be(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S==null?void 0:S();O&&(O.parentNode,document.body),y?(C&&u(),x&&($==null||$.lock())):$==null||$.unLock()},{flush:"post"}),Rn(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),be(()=>e.placement,y=>{y&&(s.value=null)});const u=()=>{var y,S;(S=(y=l.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},f=y=>{y.keyCode===Oe.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},v=y=>{let{level:S,getContainer:$}=y;if(Joe)return;const x=$==null?void 0:$(),C=x?x.parentNode:null;c=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&c.push(w)}):S&&Zoe(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{c.push(w)})})},h=y=>{n("handleClick",y)},b=te(!1);return be(l,()=>{ot(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:I,levelMove:T,ease:_,duration:E,getContainer:A,onChange:R,afterVisibleChange:z,showMask:M,maskClosable:B,maskStyle:N,keyboard:F,getOpenCount:L,scrollLocker:k,contentWrapperStyle:j,style:H,class:Y,rootClassName:Z,rootStyle:U,maskMotion:ee,motion:G,inline:J}=e,Q=ere(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),K=C&&b.value,q=ie(O,{[`${O}-${w}`]:!0,[`${O}-open`]:K,[`${O}-inline`]:J,"no-mask":!M,[Z]:!0}),pe=typeof G=="function"?G(w):G;return p("div",D(D({},et(Q,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:l,onKeydown:K&&F?f:void 0}),[p(cn,ee,{default:()=>[M&&$n(p("div",{class:`${O}-mask`,onClick:B?d:void 0,style:N,ref:i},null),[[En,K]])]}),p(cn,D(D({},pe),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[$n(p("div",{class:`${O}-content-wrapper`,style:[j],ref:r},[p("div",{class:[`${O}-content`,Y],style:H,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?p("div",{onClick:h,ref:a},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[En,K]])]})])}}}),zw=tre;var Hw=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=le(null),l=a=>{n("handleClick",a)},i=a=>{n("close",a)};return()=>{const{getContainer:a,wrapperClassName:s,rootClassName:c,rootStyle:u,forceRender:d}=e,f=Hw(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!a)return p(zw,D(D({},f),{},{rootClassName:c,rootStyle:u,open:e.open,onClose:i,onHandleClick:l,inline:!0}),o);const v=!!o.handler||d;return(v||e.open||r.value)&&(g=p(Ic,{autoLock:!0,visible:e.open,forceRender:v,getContainer:a,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=Hw(h,["visible","afterClose"]);return p(zw,D(D(D({ref:r},f),S),{},{rootClassName:c,rootStyle:u,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:i,onHandleClick:l}),o)}})),g}}}),ore=nre,rre=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},lre=rre,ire=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:l,motionDurationMid:i,padding:a,paddingLG:s,fontSizeLG:c,lineHeightLG:u,lineWidth:d,lineType:f,colorSplit:g,marginSM:v,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${l}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:c,lineHeight:u,borderBottom:`${d}px ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:h,fontWeight:S,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${f} ${g}`},"&-rtl":{direction:"rtl"}}}},are=Ve("Drawer",e=>{const t=Fe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[ire(t),lre(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var sre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:V.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:Re(),rootClassName:String,rootStyle:Re(),size:{type:String},drawerStyle:Re(),headerStyle:Re(),bodyStyle:Re(),contentWrapperStyle:{type:Object,default:void 0},title:V.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:V.oneOfType([V.string,V.number]),height:V.oneOfType([V.string,V.number]),zIndex:Number,prefixCls:String,push:V.oneOfType([V.looseBool,{type:Object}]),placement:V.oneOf(cre),keyboard:{type:Boolean,default:void 0},extra:V.any,footer:V.any,footerStyle:Re(),level:V.any,levelMove:{type:[Number,Array,Function]},handle:V.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),dre=oe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:qe(ure(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:jw}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const l=te(!1),i=te(!1),a=te(null),s=te(!1),c=te(!1),u=P(()=>{var L;return(L=e.open)!==null&&L!==void 0?L:e.visible});be(u,()=>{u.value?s.value=!0:c.value=!1},{immediate:!0}),be([u,s],()=>{u.value&&s.value&&(c.value=!0)},{immediate:!0});const d=He("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:g,direction:v}=Te("drawer",e),[h,b]=are(f),y=P(()=>e.getContainer===void 0&&(g!=null&&g.value)?()=>g.value(document.body):e.getContainer);xt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Ge("parentDrawerOpts",{setPush:()=>{l.value=!0},setPull:()=>{l.value=!1,ot(()=>{x()})}}),je(()=>{u.value&&d&&d.setPush()}),Rn(()=>{d&&d.setPull()}),be(c,()=>{d&&(c.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var L,k;(k=(L=a.value)===null||L===void 0?void 0:L.domFocus)===null||k===void 0||k.call(L)},C=L=>{n("update:visible",!1),n("update:open",!1),n("close",L)},O=L=>{var k;L||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(s.value=!1)),(k=e.afterVisibleChange)===null||k===void 0||k.call(e,L),n("afterVisibleChange",L),n("afterOpenChange",L)},w=P(()=>{const{push:L,placement:k}=e;let j;return typeof L=="boolean"?j=L?jw.distance:0:j=L.distance,j=parseFloat(String(j||0)),k==="left"||k==="right"?`translateX(${k==="left"?j:-j}px)`:k==="top"||k==="bottom"?`translateY(${k==="top"?j:-j}px)`:null}),I=P(()=>{var L;return(L=e.width)!==null&&L!==void 0?L:e.size==="large"?736:378}),T=P(()=>{var L;return(L=e.height)!==null&&L!==void 0?L:e.size==="large"?736:378}),_=P(()=>{const{mask:L,placement:k}=e;if(!c.value&&!L)return{};const j={};return k==="left"||k==="right"?j.width=Jd(I.value)?`${I.value}px`:I.value:j.height=Jd(T.value)?`${T.value}px`:T.value,j}),E=P(()=>{const{zIndex:L,contentWrapperStyle:k}=e,j=_.value;return[{zIndex:L,transform:l.value?w.value:void 0},m({},k),j]}),A=L=>{const{closable:k,headerStyle:j}=e,H=qt(o,e,"extra"),Y=qt(o,e,"title");return!Y&&!k?null:p("div",{class:ie(`${L}-header`,{[`${L}-header-close-only`]:k&&!Y&&!H}),style:j},[p("div",{class:`${L}-header-title`},[R(L),Y&&p("div",{class:`${L}-title`},[Y])]),H&&p("div",{class:`${L}-extra`},[H])])},R=L=>{var k;const{closable:j}=e,H=o.closeIcon?(k=o.closeIcon)===null||k===void 0?void 0:k.call(o):e.closeIcon;return j&&p("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${L}-close`},[H===void 0?p(Zn,null,null):H])},z=L=>{var k;if(i.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:j,drawerStyle:H}=e;return p("div",{class:`${L}-wrapper-body`,style:H},[A(L),p("div",{key:"body",class:`${L}-body`,style:j},[(k=o.default)===null||k===void 0?void 0:k.call(o)]),M(L)])},M=L=>{const k=qt(o,e,"footer");if(!k)return null;const j=`${L}-footer`;return p("div",{class:j,style:e.footerStyle},[k])},B=P(()=>ie({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,b.value)),N=P(()=>Po(_n(f.value,"mask-motion"))),F=L=>Po(_n(f.value,`panel-motion-${L}`));return()=>{const{width:L,height:k,placement:j,mask:H,forceRender:Y}=e,Z=sre(e,["width","height","placement","mask","forceRender"]),U=m(m(m({},r),et(Z,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:f.value,open:c.value,showMask:H,placement:j,ref:a});return h(p(cc,null,{default:()=>[p(ore,D(D({},U),{},{maskMotion:N.value,motion:F,width:I.value,height:T.value,getContainer:y.value,rootClassName:B.value,rootStyle:e.rootStyle,contentWrapperStyle:E.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>z(f.value)})]}))}}}),fre=Tt(dre);var pre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const gre=pre;function Ww(e){for(var t=1;t({prefixCls:String,description:V.any,type:Be("default"),shape:Be("circle"),tooltip:V.any,href:String,target:String,badge:Re(),onClick:ve()}),vre=()=>({prefixCls:Be()}),mre=()=>m(m({},Ky()),{trigger:Be(),open:Ce(),onOpenChange:ve(),"onUpdate:open":ve()}),bre=()=>m(m({},Ky()),{prefixCls:String,duration:Number,target:ve(),visibilityHeight:Number,onClick:ve()}),yre=oe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:vre(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var r;const{prefixCls:l}=e,i=_t((r=o.description)===null||r===void 0?void 0:r.call(o));return p("div",D(D({},n),{},{class:[n.class,`${l}-content`]}),[o.icon||i.length?p(We,null,[o.icon&&p("div",{class:`${l}-icon`},[o.icon()]),i.length?p("div",{class:`${l}-description`},[i]):null]):p("div",{class:`${l}-icon`},[p(vE,null,null)])])}}}),Sre=yre,mE=Symbol("floatButtonGroupContext"),$re=e=>(Ge(mE,e),e),bE=()=>He(mE,{shape:le()}),Cre=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),Vw=Cre,xre=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,l=`${t}-group`,i=new nt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new nt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:m({},_c(`${l}-wrap`,i,a,o,!0))},{[`${l}-wrap`]:{[` - &${l}-wrap-enter, - &${l}-wrap-appear - `]:{opacity:0,animationTimingFunction:r},[`&${l}-wrap-leave`]:{animationTimingFunction:r}}}]},wre=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:l,borderRadiusSM:i,badgeOffset:a,floatButtonBodyPadding:s}=e,c=`${n}-group`;return{[c]:m(m({},Xe(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${c}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${c}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${c}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${c}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${c}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${c}-circle-shadow`]:{boxShadow:"none"},[`${c}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:i}}}}},Ore=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:l,borderRadiusLG:i,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:c}=e;return{[n]:m(m({},Xe(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:i,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:i}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Gy=Ve("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:l,fontSize:i,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:c,borderRadiusLG:u}=e,d=Fe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:a*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-c*2,floatButtonBodyPadding:c,badgeOffset:c*1.5,dotOffsetInCircle:Vw(o/2),dotOffsetInSquare:Vw(u)});return[wre(d),Ore(d),$b(e),xre(d)]});var Pre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:g="default",shape:v="circle",description:h=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:b,badge:y={}}=e,S=Pre(e,["prefixCls","type","shape","description","tooltip","badge"]),$=ie(r.value,`${r.value}-${g}`,`${r.value}-${u.value}`,{[`${r.value}-rtl`]:l.value==="rtl"},n.class,a.value),x=p(Yn,{placement:"left"},{title:o.tooltip||b?()=>o.tooltip&&o.tooltip()||b:void 0,default:()=>p(_s,y,{default:()=>[p("div",{class:`${r.value}-body`},[p(Sre,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return i(e.href?p("a",D(D(D({ref:c},n),S),{},{class:$}),[x]):p("button",D(D(D({ref:c},n),S),{},{class:$,type:"button"}),[x]))}}}),vl=Ire,Tre=oe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:qe(mre(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a,s]=Gy(l),[c,u]=Pt(!1,{value:P(()=>e.open)}),d=le(null),f=le(null);$re({shape:P(()=>e.shape)});const g={onMouseenter(){var y;u(!0),r("update:open",!0),(y=e.onOpenChange)===null||y===void 0||y.call(e,!0)},onMouseleave(){var y;u(!1),r("update:open",!1),(y=e.onOpenChange)===null||y===void 0||y.call(e,!1)}},v=P(()=>e.trigger==="hover"?g:{}),h=()=>{var y;const S=!c.value;r("update:open",S),(y=e.onOpenChange)===null||y===void 0||y.call(e,S),u(S)},b=y=>{var S,$,x;if(!((S=d.value)===null||S===void 0)&&S.contains(y.target)){!(($=Hn(f.value))===null||$===void 0)&&$.contains(y.target)&&h();return}u(!1),r("update:open",!1),(x=e.onOpenChange)===null||x===void 0||x.call(e,!1)};return be(P(()=>e.trigger),y=>{Mn()&&(document.removeEventListener("click",b),y==="click"&&document.addEventListener("click",b))},{immediate:!0}),Ze(()=>{document.removeEventListener("click",b)}),()=>{var y;const{shape:S="circle",type:$="default",tooltip:x,description:C,trigger:O}=e,w=`${l.value}-group`,I=ie(w,s.value,n.class,{[`${w}-rtl`]:i.value==="rtl",[`${w}-${S}`]:S,[`${w}-${S}-shadow`]:!O}),T=ie(s.value,`${w}-wrap`),_=Po(`${w}-wrap`);return a(p("div",D(D({ref:d},n),{},{class:I},v.value),[O&&["click","hover"].includes(O)?p(We,null,[p(cn,_,{default:()=>[$n(p("div",{class:T},[o.default&&o.default()]),[[En,c.value]])]}),p(vl,{ref:f,type:$,shape:S,tooltip:x,description:C},{icon:()=>{var E,A;return c.value?((E=o.closeIcon)===null||E===void 0?void 0:E.call(o))||p(Zn,null,null):((A=o.icon)===null||A===void 0?void 0:A.call(o))||p(vE,null,null)},tooltip:o.tooltip,description:o.description})]):(y=o.default)===null||y===void 0?void 0:y.call(o)]))}}}),Sf=Tre;var Ere={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const Mre=Ere;function Kw(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te(Xy,e),[a]=Gy(l),s=le(),c=ut({visible:e.visibilityHeight===0,scrollEvent:null}),u=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=b=>{const{target:y=u,duration:S}=e;I0(0,{getContainer:y,duration:S}),r("click",b)},f=pv(b=>{const{visibilityHeight:y}=e,S=P0(b.target,!0);c.visible=S>=y}),g=()=>{const{target:b}=e,S=(b||u)();f({target:S}),S==null||S.addEventListener("scroll",f)},v=()=>{const{target:b}=e,S=(b||u)();f.cancel(),S==null||S.removeEventListener("scroll",f)};be(()=>e.target,()=>{v(),ot(()=>{g()})}),je(()=>{ot(()=>{g()})}),Bf(()=>{ot(()=>{g()})}),k3(()=>{v()}),Ze(()=>{v()});const h=bE();return()=>{const{description:b,type:y,shape:S,tooltip:$,badge:x}=e,C=m(m({},o),{shape:(h==null?void 0:h.shape.value)||S,onClick:d,class:{[`${l.value}`]:!0,[`${o.class}`]:o.class,[`${l.value}-rtl`]:i.value==="rtl"},description:b,type:y,tooltip:$,badge:x}),O=Po("fade");return a(p(cn,O,{default:()=>[$n(p(vl,D(D({},C),{},{ref:s}),{icon:()=>{var w;return((w=n.icon)===null||w===void 0?void 0:w.call(n))||p(Are,null,null)}}),[[En,c.visible]])]}))}}}),$f=Rre;vl.Group=Sf;vl.BackTop=$f;vl.install=function(e){return e.component(vl.name,vl),e.component(Sf.name,Sf),e.component($f.name,$f),e};const Ls=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function Yy(e){return Ls(e.prefix)||Ls(e.suffix)||Ls(e.allowClear)}function od(e){return Ls(e.addonBefore)||Ls(e.addonAfter)}function pm(e){return typeof e>"u"||e===null?"":String(e)}function ks(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const l=e.cloneNode(!0);r.target=l,r.currentTarget=l,l.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function yE(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const Dre=()=>({addonBefore:V.any,addonAfter:V.any,prefix:V.any,suffix:V.any,clearIcon:V.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),SE=()=>m(m({},Dre()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:V.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),$E=()=>m(m({},SE()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Be("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Bre=oe({name:"BaseInput",inheritAttrs:!1,props:SE(),setup(e,t){let{slots:n,attrs:o}=t;const r=le(),l=a=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(a.target)){const{triggerFocus:c}=e;c==null||c()}},i=()=>{var a;const{allowClear:s,value:c,disabled:u,readonly:d,handleReset:f,suffix:g=n.suffix,prefixCls:v}=e;if(!s)return null;const h=!u&&!d&&c,b=`${v}-clear-icon`,y=((a=n.clearIcon)===null||a===void 0?void 0:a.call(n))||"*";return p("span",{onClick:f,onMousedown:S=>S.preventDefault(),class:ie({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var a,s;const{focused:c,value:u,disabled:d,allowClear:f,readonly:g,hidden:v,prefixCls:h,prefix:b=(a=n.prefix)===null||a===void 0?void 0:a.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let I=dt(x,{value:u,hidden:v});if(Yy({prefix:b,suffix:y,allowClear:f})){const T=`${h}-affix-wrapper`,_=ie(T,{[`${T}-disabled`]:d,[`${T}-focused`]:c,[`${T}-readonly`]:g,[`${T}-input-with-clear-btn`]:y&&f&&u},!od({addonAfter:S,addonBefore:$})&&o.class,C),E=(y||f)&&p("span",{class:`${h}-suffix`},[i(),y]);I=p("span",{class:_,style:o.style,hidden:!od({addonAfter:S,addonBefore:$})&&v,onMousedown:l,ref:r},[b&&p("span",{class:`${h}-prefix`},[b]),dt(x,{style:null,value:u,hidden:null}),E])}if(od({addonAfter:S,addonBefore:$})){const T=`${h}-group`,_=`${T}-addon`,E=ie(`${h}-wrapper`,T,O),A=ie(`${h}-group-wrapper`,o.class,w);return p("span",{class:A,style:o.style,hidden:v},[p("span",{class:E},[$&&p("span",{class:_},[$]),dt(I,{style:null,hidden:null}),S&&p("span",{class:_},[S])])])}return I}}});var Nre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{i.value=e.value}),be(()=>e.disabled,()=>{e.disabled&&(a.value=!1)});const u=w=>{s.value&&yE(s.value.input,w)},d=()=>{var w;(w=s.value.input)===null||w===void 0||w.blur()},f=(w,I,T)=>{var _;(_=s.value.input)===null||_===void 0||_.setSelectionRange(w,I,T)},g=()=>{var w;(w=s.value.input)===null||w===void 0||w.select()};r({focus:u,blur:d,input:P(()=>{var w;return(w=s.value.input)===null||w===void 0?void 0:w.input}),stateValue:i,setSelectionRange:f,select:g});const v=w=>{l("change",w)},h=(w,I)=>{i.value!==w&&(e.value===void 0?i.value=w:ot(()=>{var T;s.value.input.value!==i.value&&((T=c.value)===null||T===void 0||T.$forceUpdate())}),ot(()=>{I&&I()}))},b=w=>{const{value:I}=w.target;if(i.value===I)return;const T=w.target.value;ks(s.value.input,w,v),h(T)},y=w=>{w.keyCode===13&&l("pressEnter",w),l("keydown",w)},S=w=>{a.value=!0,l("focus",w)},$=w=>{a.value=!1,l("blur",w)},x=w=>{ks(s.value.input,w,v),h("",()=>{u()})},C=()=>{var w,I;const{addonBefore:T=n.addonBefore,addonAfter:_=n.addonAfter,disabled:E,valueModifiers:A={},htmlSize:R,autocomplete:z,prefixCls:M,inputClassName:B,prefix:N=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:F=(I=n.suffix)===null||I===void 0?void 0:I.call(n),allowClear:L,type:k="text"}=e,j=et(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=m(m(m({},j),o),{autocomplete:z,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:ie(M,{[`${M}-disabled`]:E},B,!od({addonAfter:_,addonBefore:T})&&!Yy({prefix:N,suffix:F,allowClear:L})&&o.class),ref:s,key:"ant-input",size:R,type:k,lazy:e.lazy});return A.lazy&&delete H.onInput,H.autofocus||delete H.autofocus,p(Na,et(H,["size"]),null)},O=()=>{var w;const{maxlength:I,suffix:T=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:_,prefixCls:E}=e,A=Number(I)>0;if(T||_){const R=[...pm(i.value)].length,z=typeof _=="object"?_.formatter({count:R,maxlength:I}):`${R}${A?` / ${I}`:""}`;return p(We,null,[!!_&&p("span",{class:ie(`${E}-show-count-suffix`,{[`${E}-show-count-has-suffix`]:!!T})},[z]),T])}return null};return je(()=>{}),()=>{const{prefixCls:w,disabled:I}=e,T=Nre(e,["prefixCls","disabled"]);return p(Bre,D(D(D({},T),o),{},{ref:c,prefixCls:w,inputElement:C(),handleReset:x,value:pm(i.value),focused:a.value,triggerFocus:u,suffix:O(),disabled:I}),n)}}}),CE=()=>et($E(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),qy=CE,xE=()=>m(m({},et(CE(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:si(),onCompositionend:si(),valueModifiers:Object});var Lre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKo(s.status,e.status)),{direction:u,prefixCls:d,size:f,autocomplete:g}=Te("input",e),{compactSize:v,compactItemClassnames:h}=Ol(d,u),b=P(()=>v.value||f.value),[y,S]=yy(d),$=qn();r({focus:R=>{var z;(z=i.value)===null||z===void 0||z.focus(R)},blur:()=>{var R;(R=i.value)===null||R===void 0||R.blur()},input:i,setSelectionRange:(R,z,M)=>{var B;(B=i.value)===null||B===void 0||B.setSelectionRange(R,z,M)},select:()=>{var R;(R=i.value)===null||R===void 0||R.select()}});const I=le([]),T=()=>{I.value.push(setTimeout(()=>{var R,z,M,B;!((R=i.value)===null||R===void 0)&&R.input&&((z=i.value)===null||z===void 0?void 0:z.input.getAttribute("type"))==="password"&&(!((M=i.value)===null||M===void 0)&&M.input.hasAttribute("value"))&&((B=i.value)===null||B===void 0||B.input.removeAttribute("value"))}))};je(()=>{T()}),Lf(()=>{I.value.forEach(R=>clearTimeout(R))}),Ze(()=>{I.value.forEach(R=>clearTimeout(R))});const _=R=>{T(),l("blur",R),a.onFieldBlur()},E=R=>{T(),l("focus",R)},A=R=>{l("update:value",R.target.value),l("change",R),l("input",R),a.onFieldChange()};return()=>{var R,z,M,B,N,F;const{hasFeedback:L,feedbackIcon:k}=s,{allowClear:j,bordered:H=!0,prefix:Y=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:Z=(z=n.suffix)===null||z===void 0?void 0:z.call(n),addonAfter:U=(M=n.addonAfter)===null||M===void 0?void 0:M.call(n),addonBefore:ee=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:G=(N=a.id)===null||N===void 0?void 0:N.value}=e,J=Lre(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Q=(L||Z)&&p(We,null,[Z,L&&k]),K=d.value,q=Yy({prefix:Y,suffix:Z})||!!L,pe=n.clearIcon||(()=>p(Qn,null,null));return y(p(Fre,D(D(D({},o),et(J,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:G,disabled:(F=e.disabled)!==null&&F!==void 0?F:$.value,ref:i,prefixCls:K,autocomplete:g.value,onBlur:_,onFocus:E,prefix:Y,suffix:Q,allowClear:j,addonAfter:U&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[U]})]}),addonBefore:ee&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[ee]})]}),class:[o.class,h.value],inputClassName:ie({[`${K}-sm`]:b.value==="small",[`${K}-lg`]:b.value==="large",[`${K}-rtl`]:u.value==="rtl",[`${K}-borderless`]:!H},!q&&Tn(K,c.value),S.value),affixWrapperClassName:ie({[`${K}-affix-wrapper-sm`]:b.value==="small",[`${K}-affix-wrapper-lg`]:b.value==="large",[`${K}-affix-wrapper-rtl`]:u.value==="rtl",[`${K}-affix-wrapper-borderless`]:!H},Tn(`${K}-affix-wrapper`,c.value,L),S.value),wrapperClassName:ie({[`${K}-group-rtl`]:u.value==="rtl"},S.value),groupClassName:ie({[`${K}-group-wrapper-sm`]:b.value==="small",[`${K}-group-wrapper-lg`]:b.value==="large",[`${K}-group-wrapper-rtl`]:u.value==="rtl"},Tn(`${K}-group-wrapper`,c.value,L),S.value)}),m(m({},n),{clearIcon:pe})))}}}),wE=oe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l,getPrefixCls:i}=Te("input-group",e),a=un.useInject();un.useProvide(a,{isFormItemInput:!1});const s=P(()=>i("input")),[c,u]=yy(s),d=P(()=>{const f=r.value;return{[`${f}`]:!0,[u.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:l.value==="rtl"}});return()=>{var f;return c(p("span",D(D({},o),{},{class:ie(d.value,o.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var kre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=i.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=i.value)===null||C===void 0||C.blur()}});const u=C=>{l("update:value",C.target.value),C&&C.target&&C.type==="click"&&l("search",C.target.value,C),l("change",C)},d=C=>{var O;document.activeElement===((O=i.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},f=C=>{var O,w;l("search",(w=(O=i.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{a.value||e.loading||f(C)},v=C=>{a.value=!0,l("compositionstart",C)},h=C=>{a.value=!1,l("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Te("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,I;const{disabled:T,loading:_,addonAfter:E=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:A=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,R=kre(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:z=(I=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&I!==void 0?I:!1}=e;z=z||z==="";const M=typeof z=="boolean"?p(mp,null,null):null,B=`${b.value}-button`,N=Array.isArray(z)?z[0]:z;let F;const L=N.type&&mb(N.type)&&N.type.__ANT_BUTTON;if(L||N.tagName==="button")F=dt(N,m({onMousedown:d,onClick:f,key:"enterButton"},L?{class:B,size:$.value}:{}),!1);else{const j=M&&!z;F=p(zt,{class:B,type:z?"primary":void 0,size:$.value,disabled:T,key:"enterButton",onMousedown:d,onClick:f,loading:_,icon:j?M:null},{default:()=>[j?null:M||z]})}E&&(F=[F,E]);const k=ie(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!z},o.class);return p(tn,D(D(D({ref:i},et(R,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:F,suffix:A,onChange:u,class:k,disabled:T}),n)}}}),Gw=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function zre(e){return Gw(e.addonBefore)||Gw(e.addonAfter)}const Hre=["text","input"],jre=oe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:V.oneOf(Cn("text","input")),value:St(),defaultValue:St(),allowClear:{type:Boolean,default:void 0},element:St(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:St(),prefix:St(),addonBefore:St(),addonAfter:St(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=un.useInject(),l=a=>{const{value:s,disabled:c,readonly:u,handleReset:d,suffix:f=n.suffix}=e,g=!c&&!u&&s,v=`${a}-clear-icon`;return p(Qn,{onClick:d,onMousedown:h=>h.preventDefault(),class:ie({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},i=(a,s)=>{const{value:c,allowClear:u,direction:d,bordered:f,hidden:g,status:v,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!u)return dt(s,{value:c,disabled:e.disabled});const x=ie(`${a}-affix-wrapper`,`${a}-affix-wrapper-textarea-with-clear-btn`,Tn(`${a}-affix-wrapper`,Ko(S,v),$),{[`${a}-affix-wrapper-rtl`]:d==="rtl",[`${a}-affix-wrapper-borderless`]:!f,[`${o.class}`]:!zre({addonAfter:h,addonBefore:b})&&o.class},y);return p("span",{class:x,style:o.style,hidden:g},[dt(s,{style:null,value:c,disabled:e.disabled}),l(a)])};return()=>{var a;const{prefixCls:s,inputType:c,element:u=(a=n.element)===null||a===void 0?void 0:a.call(n)}=e;return c===Hre[0]?i(s,u):null}}}),Wre=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,Vre=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xh={};let mo;function Kre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&xh[n])return xh[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),l=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:Vre.map(c=>`${c}:${o.getPropertyValue(c)}`).join(";"),paddingSize:l,borderSize:i,boxSizing:r};return t&&n&&(xh[n]=s),s}function Gre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;mo||(mo=document.createElement("textarea"),mo.setAttribute("tab-index","-1"),mo.setAttribute("aria-hidden","true"),document.body.appendChild(mo)),e.getAttribute("wrap")?mo.setAttribute("wrap",e.getAttribute("wrap")):mo.removeAttribute("wrap");const{paddingSize:r,borderSize:l,boxSizing:i,sizingStyle:a}=Kre(e,t);mo.setAttribute("style",`${a};${Wre}`),mo.value=e.value||e.placeholder||"";let s,c,u,d=mo.scrollHeight;if(i==="border-box"?d+=l:i==="content-box"&&(d-=r),n!==null||o!==null){mo.value=" ";const g=mo.scrollHeight-r;n!==null&&(s=g*n,i==="border-box"&&(s=s+r+l),d=Math.max(s,d)),o!==null&&(c=g*o,i==="border-box"&&(c=c+r+l),u=d>c?"":"hidden",d=Math.min(c,d))}const f={height:`${d}px`,overflowY:u,resize:"none"};return s&&(f.minHeight=`${s}px`),c&&(f.maxHeight=`${c}px`),f}const wh=0,Oh=1,Ph=2,Xre=oe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,l,i;const a=le(),s=le({}),c=le(Ph);Ze(()=>{Ye.cancel(l),Ye.cancel(i)});const u=()=>{try{if(a.value&&document.activeElement===a.value.input){const O=a.value.getSelectionStart(),w=a.value.getSelectionEnd(),I=a.value.getScrollTop();a.value.setSelectionRange(O,w),a.value.setScrollTop(I)}}catch{}},d=le(),f=le();ke(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,f.value=O.maxRows):(d.value=void 0,f.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),v=()=>{c.value=wh};be([()=>e.value,d,f,g],()=>{g.value&&v()},{immediate:!0});const h=le();be([c,a],()=>{if(a.value)if(c.value===wh)c.value=Oh;else if(c.value===Oh){const O=Gre(a.value.input,!1,d.value,f.value);c.value=Ph,h.value=O}else u()},{immediate:!0,flush:"post"});const b=pn(),y=le(),S=()=>{Ye.cancel(y.value)},$=O=>{c.value===Ph&&(o("resize",O),g.value&&(S(),y.value=Ye(()=>{v()})))};Ze(()=>{S()}),r({resizeTextarea:()=>{v()},textArea:P(()=>{var O;return(O=a.value)===null||O===void 0?void 0:O.input}),instance:b}),It(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,I=et(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=ie(O,n.class,{[`${O}-disabled`]:w}),_=g.value?h.value:null,E=[n.style,s.value,_],A=m(m(m({},I),n),{style:E,class:T});return(c.value===wh||c.value===Oh)&&E.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p(xo,{onResize:$,disabled:!g.value},{default:()=>[p(Na,D(D({},A),{},{ref:a,tag:"textarea"}),null)]})};return()=>C()}}),Ure=Xre;function PE(e,t){return[...e||""].slice(0,t).join("")}function Xw(e,t,n,o){let r=n;return e?r=PE(n,o):[...t||""].lengtho&&(r=t),r}const Zy=oe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:xE(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;var l;const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),c=te((l=e.value)!==null&&l!==void 0?l:e.defaultValue),u=te(),d=te(""),{prefixCls:f,size:g,direction:v}=Te("input",e),[h,b]=yy(f),y=qn(),S=P(()=>e.showCount===""||e.showCount||!1),$=P(()=>Number(e.maxlength)>0),x=te(!1),C=te(),O=te(0),w=L=>{x.value=!0,C.value=d.value,O.value=L.currentTarget.selectionStart,r("compositionstart",L)},I=L=>{var k;x.value=!1;let j=L.currentTarget.value;if($.value){const H=O.value>=e.maxlength+1||O.value===((k=C.value)===null||k===void 0?void 0:k.length);j=Xw(H,C.value,j,e.maxlength)}j!==d.value&&(A(j),ks(L.currentTarget,L,M,j)),r("compositionend",L)},T=pn();be(()=>e.value,()=>{var L;"value"in T.vnode.props,c.value=(L=e.value)!==null&&L!==void 0?L:""});const _=L=>{var k;yE((k=u.value)===null||k===void 0?void 0:k.textArea,L)},E=()=>{var L,k;(k=(L=u.value)===null||L===void 0?void 0:L.textArea)===null||k===void 0||k.blur()},A=(L,k)=>{c.value!==L&&(e.value===void 0?c.value=L:ot(()=>{var j,H,Y;u.value.textArea.value!==d.value&&((Y=(j=u.value)===null||j===void 0?void 0:(H=j.instance).update)===null||Y===void 0||Y.call(H))}),ot(()=>{k&&k()}))},R=L=>{L.keyCode===13&&r("pressEnter",L),r("keydown",L)},z=L=>{const{onBlur:k}=e;k==null||k(L),i.onFieldBlur()},M=L=>{r("update:value",L.target.value),r("change",L),r("input",L),i.onFieldChange()},B=L=>{ks(u.value.textArea,L,M),A("",()=>{_()})},N=L=>{let k=L.target.value;if(c.value!==k){if($.value){const j=L.target,H=j.selectionStart>=e.maxlength+1||j.selectionStart===k.length||!j.selectionStart;k=Xw(H,d.value,k,e.maxlength)}ks(L.currentTarget,L,M,k),A(k)}},F=()=>{var L,k;const{class:j}=n,{bordered:H=!0}=e,Y=m(m(m({},et(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!H,[`${j}`]:j&&!S.value,[`${f.value}-sm`]:g.value==="small",[`${f.value}-lg`]:g.value==="large"},Tn(f.value,s.value),b.value],disabled:y.value,showCount:null,prefixCls:f.value,onInput:N,onChange:N,onBlur:z,onKeydown:R,onCompositionstart:w,onCompositionend:I});return!((L=e.valueModifiers)===null||L===void 0)&&L.lazy&&delete Y.onInput,p(Ure,D(D({},Y),{},{id:(k=Y==null?void 0:Y.id)!==null&&k!==void 0?k:i.id.value,ref:u,maxlength:e.maxlength,lazy:e.lazy}),null)};return o({focus:_,blur:E,resizableTextArea:u}),ke(()=>{let L=pm(c.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(L=PE(L,e.maxlength)),d.value=L}),()=>{var L;const{maxlength:k,bordered:j=!0,hidden:H}=e,{style:Y,class:Z}=n,U=m(m(m({},e),n),{prefixCls:f.value,inputType:"text",handleReset:B,direction:v.value,bordered:j,style:S.value?void 0:Y,hashId:b.value,disabled:(L=e.disabled)!==null&&L!==void 0?L:y.value});let ee=p(jre,D(D({},U),{},{value:d.value,status:e.status}),{element:F});if(S.value||a.hasFeedback){const G=[...d.value].length;let J="";typeof S.value=="object"?J=S.value.formatter({value:d.value,count:G,maxlength:k}):J=`${G}${$.value?` / ${k}`:""}`,ee=p("div",{hidden:H,class:ie(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:v.value==="rtl",[`${f.value}-textarea-show-count`]:S.value,[`${f.value}-textarea-in-form-item`]:a.isFormItemInput},`${f.value}-textarea-show-count`,Z,b.value),style:Y,"data-count":typeof J!="object"?J:void 0},[ee,a.hasFeedback&&p("span",{class:`${f.value}-textarea-suffix`},[a.feedbackIcon])])}return h(ee)}}});var Yre={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const qre=Yre;function Uw(e){for(var t=1;tp(e?Jy:tle,null,null),IE=oe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:m(m({},qy()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:l}=t;const i=te(!1),a=()=>{const{disabled:b}=e;b||(i.value=!i.value,l("update:visible",i.value))};ke(()=>{e.visible!==void 0&&(i.value=!!e.visible)});const s=te();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||rle}=e,$=ole[y]||"",x=S(i.value),C={[$]:a,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return dt(Kt(x)?x:p("span",null,[x]),C)},{prefixCls:f,getPrefixCls:g}=Te("input-password",e),v=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=nle(e,["size","visibilityToggle"]),$=y&&d(f.value),x=ie(f.value,o.class,{[`${f.value}-${b}`]:!!b}),C=m(m(m({},et(S,["suffix","iconRender","action"])),o),{type:i.value?"text":"password",class:x,prefixCls:v.value,suffix:$});return b&&(C.size=b),p(tn,D({ref:s},C),n)};return()=>h()}});tn.Group=wE;tn.Search=OE;tn.TextArea=Zy;tn.Password=IE;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Group.name,tn.Group),e.component(tn.Search.name,tn.Search),e.component(tn.TextArea.name,tn.TextArea),e.component(tn.Password.name,tn.Password),e};function Gp(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:V.shape({x:Number,y:Number}).loose,title:V.any,footer:V.any,transitionName:String,maskTransitionName:String,animation:V.any,maskAnimation:V.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:V.any,maskProps:V.any,wrapProps:V.any,getContainer:V.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:V.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function qw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let Zw=-1;function lle(){return Zw+=1,Zw}function Qw(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function ile(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Qw(r),n.top+=Qw(r,!0),n}const ale={width:0,height:0,overflow:"hidden",outline:"none"},sle={outline:"none"},cle=oe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:m(m({},Gp()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const l=le(),i=le(),a=le();n({focus:()=>{var f;(f=l.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:g}=document;f&&g===i.value?l.value.focus({preventScroll:!0}):!f&&g===l.value&&i.value.focus({preventScroll:!0})}});const s=le(),c=P(()=>{const{width:f,height:g}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),g!==void 0&&(v.height=typeof g=="number"?`${g}px`:g),s.value&&(v.transformOrigin=s.value),v}),u=()=>{ot(()=>{if(a.value){const f=ile(a.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,g,v,h;const{prefixCls:b,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClose:O,bodyStyle:w,bodyProps:I,onMousedown:T,onMouseup:_,visible:E,modalRender:A=o.modalRender,destroyOnClose:R,motionName:z}=e;let M;y&&(M=p("div",{class:`${b}-footer`},[y]));let B;S&&(B=p("div",{class:`${b}-header`},[p("div",{class:`${b}-title`,id:$},[S])]));let N;x&&(N=p("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||p("span",{class:`${b}-close-x`},null)]));const F=p("div",{class:`${b}-content`},[N,B,p("div",D({class:`${b}-body`,style:w},I),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),M]),L=Po(z);return p(cn,D(D({},L),{},{onBeforeEnter:u,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!R?$n(p("div",D(D({},r),{},{ref:a,key:"dialog-element",role:"document",style:[c.value,r.style],class:[b,r.class],onMousedown:T,onMouseup:_}),[p("div",{tabindex:0,ref:l,style:sle},[A?A({originVNode:F}):F]),p("div",{tabindex:0,ref:i,style:ale},null)]),[[En,E]]):null]})}}}),ule=oe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:l}=e,i=Po(l);return p(cn,i,{default:()=>[$n(p("div",D({class:`${n}-mask`},r),null),[[En,o]])]})}}}),Jw=oe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:qe(m(m({},Gp()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=te(),l=te(),i=te(),a=te(e.visible),s=te(`vcDialogTitle${lle()}`),c=y=>{var S,$;if(y)rl(l.value,document.activeElement)||(r.value=document.activeElement,(S=i.value)===null||S===void 0||S.focus());else{const x=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},u=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=te(!1),f=te(),g=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:l.value===y.target&&u(y)},b=y=>{if(e.keyboard&&y.keyCode===Oe.ESC){y.stopPropagation(),u(y);return}e.visible&&y.keyCode===Oe.TAB&&i.value.changeActive(!y.shiftKey)};return be(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),Ze(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ke(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),a.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:I,wrapStyle:T,closable:_,maskProps:E,maskStyle:A,transitionName:R,animation:z,wrapProps:M,title:B=o.title}=e,{style:N,class:F}=n;return p("div",D({class:[`${y}-root`,I]},wl(e,{data:!0})),[p(ule,{prefixCls:y,visible:S&&$,motionName:qw(y,x,C),style:m({zIndex:O},A),maskProps:E},null),p("div",D({tabIndex:-1,onKeydown:b,class:ie(`${y}-wrap`,w),ref:l,onClick:h,role:"dialog","aria-labelledby":B?s.value:null,style:m(m({zIndex:O},T),{display:a.value?null:"none"})},M),[p(cle,D(D({},et(e,["scrollLocker"])),{},{style:N,class:F,onMousedown:g,onMouseup:v,ref:i,closable:_,ariaId:s.value,prefixCls:y,visible:$,onClose:u,onVisibleChanged:c,motionName:qw(y,R,z)}),o)])])}}}),dle=Gp(),fle=oe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:qe(dle,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=le(e.visible);return G0({},{inTriggerContext:!1}),be(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:l,getContainer:i,forceRender:a,destroyOnClose:s=!1,afterClose:c}=e;let u=m(m(m({},e),n),{ref:"_component",key:"dialog"});return i===!1?p(Jw,D(D({},u),{},{getOpenCount:()=>2}),o):!a&&s&&!r.value?null:p(Ic,{autoLock:!0,visible:l,forceRender:a,getContainer:i},{default:d=>(u=m(m(m({},u),d),{afterClose:()=>{c==null||c(),r.value=!1}}),p(Jw,u,o))})}}}),TE=fle;function ple(e){const t=le(null),n=ut(m({},e)),o=le([]),r=l=>{t.value===null&&(o.value=[],t.value=Ye(()=>{let i;o.value.forEach(a=>{i=m(m({},i),a)}),m(n,i),t.value=null})),o.value.push(l)};return je(()=>{t.value&&Ye.cancel(t.value)}),[n,r]}function e2(e,t,n,o){const r=t+n,l=(n-o)/2;if(n>o){if(t>0)return{[e]:l};if(t<0&&ro)return{[e]:t<0?l:-l};return{}}function gle(e,t,n,o){const{width:r,height:l}=rz();let i=null;return e<=r&&t<=l?i={x:0,y:0}:(e>r||t>l)&&(i=m(m({},e2("x",n,e,r)),e2("y",o,t,l))),i}var hle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Ge(t2,e)},inject:()=>He(t2,{isPreviewGroup:te(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:le(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},vle=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),mle=oe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:vle(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?AE(e.preview,C):C}),r=ut(new Map),l=le(),i=P(()=>o.value.visible),a=P(()=>o.value.getContainer),s=(C,O)=>{var w,I;(I=(w=o.value).onVisibleChange)===null||I===void 0||I.call(w,C,O)},[c,u]=Pt(!!i.value,{value:i,onChange:s}),d=le(null),f=P(()=>i.value!==void 0),g=P(()=>Array.from(r.keys())),v=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{l.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),I},x=C=>{C==null||C.stopPropagation(),u(!1),S(null)};return be(v,C=>{y(C)},{immediate:!0,flush:"post"}),ke(()=>{c.value&&f.value&&y(v.value)},{flush:"post"}),t1.provide({isPreviewGroup:te(!0),previewUrls:h,setPreviewUrls:b,current:l,setCurrent:y,setShowPreview:u,setMousePosition:S,registerImage:$}),()=>{const C=hle(o.value,[]);return p(We,null,[n.default&&n.default(),p(ME,D(D({},C),{},{"ria-hidden":!c.value,visible:c.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(l.value),icons:e.icons,getContainer:a.value}),null)])}}}),EE=mle,Nl={x:0,y:0},ble=m(m({},Gp()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),yle=oe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:ble,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:l,zoomIn:i,zoomOut:a,close:s,left:c,right:u,flipX:d,flipY:f}=ut(e.icons),g=te(1),v=te(0),h=ut({x:1,y:1}),[b,y]=ple(Nl),S=()=>n("close"),$=te(),x=ut({originX:0,originY:0,deltaX:0,deltaY:0}),C=te(!1),O=t1.inject(),{previewUrls:w,current:I,isPreviewGroup:T,setCurrent:_}=O,E=P(()=>w.value.size),A=P(()=>Array.from(w.value.keys())),R=P(()=>A.value.indexOf(I.value)),z=P(()=>T.value?w.value.get(I.value):e.src),M=P(()=>T.value&&E.value>1),B=te({wheelDirection:0}),N=()=>{g.value=1,v.value=0,h.x=1,h.y=1,y(Nl),n("afterClose")},F=se=>{se?g.value+=.5:g.value++,y(Nl)},L=se=>{g.value>1&&(se?g.value-=.5:g.value--),y(Nl)},k=()=>{v.value+=90},j=()=>{v.value-=90},H=()=>{h.x=-h.x},Y=()=>{h.y=-h.y},Z=se=>{se.preventDefault(),se.stopPropagation(),R.value>0&&_(A.value[R.value-1])},U=se=>{se.preventDefault(),se.stopPropagation(),R.valueF(),type:"zoomIn"},{icon:a,onClick:()=>L(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:l,onClick:k,type:"rotateRight"},{icon:r,onClick:j,type:"rotateLeft"},{icon:d,onClick:H,type:"flipX"},{icon:f,onClick:Y,type:"flipY"}],K=()=>{if(e.visible&&C.value){const se=$.value.offsetWidth*g.value,re=$.value.offsetHeight*g.value,{left:de,top:ge}=jd($.value),me=v.value%180!==0;C.value=!1;const fe=gle(me?re:se,me?se:re,de,ge);fe&&y(m({},fe))}},q=se=>{se.button===0&&(se.preventDefault(),se.stopPropagation(),x.deltaX=se.pageX-b.x,x.deltaY=se.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},pe=se=>{e.visible&&C.value&&y({x:se.pageX-x.deltaX,y:se.pageY-x.deltaY})},W=se=>{if(!e.visible)return;se.preventDefault();const re=se.deltaY;B.value={wheelDirection:re}},X=se=>{!e.visible||!M.value||(se.preventDefault(),se.keyCode===Oe.LEFT?R.value>0&&_(A.value[R.value-1]):se.keyCode===Oe.RIGHT&&R.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==Nl.x||b.y!==Nl.y)&&y(Nl))};let ae=()=>{};return je(()=>{be([()=>e.visible,C],()=>{ae();let se,re;const de=Mt(window,"mouseup",K,!1),ge=Mt(window,"mousemove",pe,!1),me=Mt(window,"wheel",W,{passive:!1}),fe=Mt(window,"keydown",X,!1);try{window.top!==window.self&&(se=Mt(window.top,"mouseup",K,!1),re=Mt(window.top,"mousemove",pe,!1))}catch{}ae=()=>{de.remove(),ge.remove(),me.remove(),fe.remove(),se&&se.remove(),re&&re.remove()}},{flush:"post",immediate:!0}),be([B],()=>{const{wheelDirection:se}=B.value;se>0?L(!0):se<0&&F(!0)})}),Rn(()=>{ae()}),()=>{const{visible:se,prefixCls:re,rootClassName:de}=e;return p(TE,D(D({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:re,onClose:S,afterClose:N,visible:se,wrapClassName:ee,rootClassName:de,getContainer:e.getContainer}),{default:()=>[p("div",{class:[`${e.prefixCls}-operations-wrapper`,de]},[p("ul",{class:`${e.prefixCls}-operations`},[Q.map(ge=>{let{icon:me,onClick:fe,type:ye,disabled:Se}=ge;return p("li",{class:ie(G,{[`${e.prefixCls}-operations-operation-disabled`]:Se&&(Se==null?void 0:Se.value)}),onClick:fe,key:ye},[sn(me,{class:J})])})])]),p("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[p("img",{onMousedown:q,onDblclick:ne,ref:$,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${v.value}deg)`}},null)]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:Z},[c]),M.value&&p("div",{class:ie(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:R.value>=E.value-1}),onClick:U},[u])]})}}}),ME=yle;var Sle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:V.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),AE=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let $le=0;const RE=oe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:_E(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.prefixCls),i=P(()=>`${l.value}-preview`),a=P(()=>{const F={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?AE(e.preview,F):F}),s=P(()=>{var F;return(F=a.value.src)!==null&&F!==void 0?F:e.src}),c=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),u=P(()=>a.value.visible),d=P(()=>a.value.getContainer),f=P(()=>u.value!==void 0),g=(F,L)=>{var k,j;(j=(k=a.value).onVisibleChange)===null||j===void 0||j.call(k,F,L)},[v,h]=Pt(!!u.value,{value:u,onChange:g}),b=le(c.value?"loading":"normal");be(()=>e.src,()=>{b.value=c.value?"loading":"normal"});const y=le(null),S=P(()=>b.value==="error"),$=t1.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:I}=$,T=le($le++),_=P(()=>e.preview&&!S.value),E=()=>{b.value="normal"},A=F=>{b.value="error",r("error",F)},R=F=>{if(!f.value){const{left:L,top:k}=jd(F.target);x.value?(C(T.value),w({x:L,y:k})):y.value={x:L,y:k}}x.value?O(!0):h(!0),r("click",F)},z=()=>{h(!1),f.value||(y.value=null)},M=le(null);be(()=>M,()=>{b.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&E()});let B=()=>{};je(()=>{be([s,_],()=>{if(B(),!x.value)return()=>{};B=I(T.value,s.value,_.value),_.value||B()},{flush:"post",immediate:!0})}),Rn(()=>{B()});const N=F=>DK(F)?F+"px":F;return()=>{const{prefixCls:F,wrapperClassName:L,fallback:k,src:j,placeholder:H,wrapperStyle:Y,rootClassName:Z,width:U,height:ee,crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,class:W,style:X}=m(m({},e),n),ne=a.value,{icons:ae,maskClassName:se}=ne,re=Sle(ne,["icons","maskClassName"]),de=ie(F,L,Z,{[`${F}-error`]:S.value}),ge=S.value&&k?k:s.value,me={crossorigin:G,decoding:J,alt:Q,sizes:K,srcset:q,usemap:pe,width:U,height:ee,class:ie(`${F}-img`,{[`${F}-img-placeholder`]:H===!0},W),style:m({height:N(ee)},X)};return p(We,null,[p("div",{class:de,onClick:_.value?R:fe=>{r("click",fe)},style:m({width:N(U),height:N(ee)},Y)},[p("img",D(D(D({},me),S.value&&k?{src:k}:{onLoad:E,onError:A,src:j}),{},{ref:M}),null),b.value==="loading"&&p("div",{"aria-hidden":"true",class:`${F}-placeholder`},[H||o.placeholder&&o.placeholder()]),o.previewMask&&_.value&&p("div",{class:[`${F}-mask`,se]},[o.previewMask()])]),!x.value&&_.value&&p(ME,D(D({},re),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:i.value,onClose:z,mousePosition:y.value,src:ge,alt:Q,getContainer:d.value,icons:ae,rootClassName:Z}),null)])}}});RE.PreviewGroup=EE;const Cle=RE;var xle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const wle=xle;function n2(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:m(m({},s2("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:m(m({},s2("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$b(e)}]},jle=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:m(m({},Xe(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:m({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Rr(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Wle=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:m({},zo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Vle=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Kle=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},Gle=Ve("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=Fe(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[jle(r),Wle(r),Vle(r),DE(r),e.wireframe&&Kle(r),Ha(r,"zoom")]}),gm=e=>({position:e||"absolute",inset:0}),Xle=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:l}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new gt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${l}-mask-info`]:m(m({},Gt),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Ule=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:l}=e,i=new gt(n).setAlpha(.1),a=i.clone().setAlpha(.2);return{[`${t}-operations`]:m(m({},Xe(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${l}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Yle=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:l,motionDurationSlow:i}=e,a=new gt(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:l+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},qle=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:m(m({},gm()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":m(m({},gm()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Ule(e),Yle(e)]}]},Zle=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:m({},Xle(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:m({},gm())}}},Qle=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ha(e,"zoom"),"&":$b(e,!0)}},BE=Ve("Image",e=>{const t=`${e.componentCls}-preview`,n=Fe(e,{previewCls:t,modalMaskBg:new gt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Zle(n),qle(n),DE(Fe(n,{componentCls:t})),Qle(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new gt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new gt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),NE={rotateLeft:p(Ple,null,null),rotateRight:p(Mle,null,null),zoomIn:p(Dle,null,null),zoomOut:p(Lle,null,null),close:p(Zn,null,null),left:p(Sl,null,null),right:p(Wo,null,null),flipX:p(a2,null,null),flipY:p(a2,{rotate:90},null)},Jle=()=>({previewPrefixCls:String,preview:St()}),eie=oe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Jle(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:l}=Te("image",e),i=P(()=>`${r.value}-preview`),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({},d),{rootClassName:s.value,transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>a(p(EE,D(D({},m(m({},n),e)),{},{preview:c.value,icons:NE,previewPrefixCls:i.value}),o))}}),FE=eie,Ul=oe({name:"AImage",inheritAttrs:!1,props:_E(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:l,configProvider:i}=Te("image",e),[a,s]=BE(r),c=P(()=>{const{preview:u}=e;if(u===!1)return u;const d=typeof u=="object"?u:{};return m(m({icons:NE},d),{transitionName:_n(l.value,"zoom",d.transitionName),maskTransitionName:_n(l.value,"fade",d.maskTransitionName)})});return()=>{var u,d;const f=((d=(u=i.locale)===null||u===void 0?void 0:u.value)===null||d===void 0?void 0:d.Image)||jn.Image,g=()=>p("div",{class:`${r.value}-mask-info`},[p(Jy,null,null),f==null?void 0:f.preview]),{previewMask:v=n.previewMask||g}=e;return a(p(Cle,D(D({},m(m(m({},o),e),{prefixCls:r.value})),{},{preview:c.value,rootClassName:ie(e.rootClassName,s.value)}),m(m({},n),{previewMask:typeof v=="function"?v:null})))}}});Ul.PreviewGroup=FE;Ul.install=function(e){return e.component(Ul.name,Ul),e.component(Ul.PreviewGroup.name,Ul.PreviewGroup),e};const tie=Ul;var nie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const oie=nie;function c2(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(hm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new Yl(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":c1(this.number):this.origin}}class Qi{constructor(t){if(this.origin="",LE(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(s1(n)&&(n=Number(n)),n=typeof n=="string"?n:c1(n),u1(n)){const o=zs(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const l=r[1]||"0";this.decimal=BigInt(l),this.decimalLen=l.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new Qi(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new Qi(t);const n=new Qi(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),l=n.alignDecimal(o),i=(r+l).toString(),{negativeStr:a,trimStr:s}=zs(i),c=`${a}${s.padStart(o+1,"0")}`;return new Qi(`${c.slice(0,-o)}.${c.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":zs(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Qo(e){return hm()?new Qi(e):new Yl(e)}function vm(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:l,decimalStr:i}=zs(e),a=`${t}${i}`,s=`${r}${l}`;if(n>=0){const c=Number(i[n]);if(c>=5&&!o){const u=Qo(e).add(`${r}0.${"0".repeat(n)}${10-c}`);return vm(u.toString(),t,n,o)}return n===0?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return a===".0"?s:`${s}${a}`}const iie=200,aie=600,sie=oe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ve()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=le(),l=(a,s)=>{a.preventDefault(),o("step",s);function c(){o("step",s),r.value=setTimeout(c,iie)}r.value=setTimeout(c,aie)},i=()=>{clearTimeout(r.value)};return Ze(()=>{i()}),()=>{if(U0())return null;const{prefixCls:a,upDisabled:s,downDisabled:c}=e,u=`${a}-handler`,d=ie(u,`${u}-up`,{[`${u}-up-disabled`]:s}),f=ie(u,`${u}-down`,{[`${u}-down-disabled`]:c}),g={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:v,downNode:h}=n;return p("div",{class:`${u}-wrap`},[p("span",D(D({},g),{},{onMousedown:b=>{l(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(v==null?void 0:v())||p("span",{unselectable:"on",class:`${a}-handler-up-inner`},null)]),p("span",D(D({},g),{},{onMousedown:b=>{l(b,!1)},"aria-label":"Decrease Value","aria-disabled":c,class:f}),[(h==null?void 0:h())||p("span",{unselectable:"on",class:`${a}-handler-down-inner`},null)])])}}});function cie(e,t){const n=le(null);function o(){try{const{selectionStart:l,selectionEnd:i,value:a}=e.value,s=a.substring(0,l),c=a.substring(i);n.value={start:l,end:i,value:a,beforeTxt:s,afterTxt:c}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:l}=e.value,{beforeTxt:i,afterTxt:a,start:s}=n.value;let c=l.length;if(l.endsWith(a))c=l.length-n.value.afterTxt.length;else if(l.startsWith(i))c=i.length;else{const u=i[s-1],d=l.indexOf(u,s-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}catch(l){`${l.message}`}}return[o,r]}const uie=()=>{const e=te(0),t=()=>{Ye.cancel(e.value)};return Ze(()=>{t()}),n=>{t(),e.value=Ye(()=>{n()})}};var die=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),d2=e=>{const t=Qo(e);return t.isInvalidate()?null:t},kE=()=>({stringMode:Ce(),defaultValue:Le([String,Number]),value:Le([String,Number]),prefixCls:Be(),min:Le([String,Number]),max:Le([String,Number]),step:Le([String,Number],1),tabindex:Number,controls:Ce(!0),readonly:Ce(),disabled:Ce(),autofocus:Ce(),keyboard:Ce(!0),parser:ve(),formatter:ve(),precision:Number,decimalSeparator:String,onInput:ve(),onChange:ve(),onPressEnter:ve(),onStep:ve(),onBlur:ve(),onFocus:ve()}),fie=oe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:m(m({},kE()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const i=te(),a=te(!1),s=te(!1),c=te(!1),u=te(Qo(e.value));function d(H){e.value===void 0&&(u.value=H)}const f=(H,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(yc(H),yc(e.step))},g=H=>{const Y=String(H);if(e.parser)return e.parser(Y);let Z=Y;return e.decimalSeparator&&(Z=Z.replace(e.decimalSeparator,".")),Z.replace(/[^\w.-]+/g,"")},v=te(""),h=(H,Y)=>{if(e.formatter)return e.formatter(H,{userTyping:Y,input:String(v.value)});let Z=typeof H=="number"?c1(H):H;if(!Y){const U=f(Z,Y);if(u1(Z)&&(e.decimalSeparator||U>=0)){const ee=e.decimalSeparator||".";Z=vm(Z,ee,U)}}return Z},b=(()=>{const H=e.value;return u.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:h(u.value.toString(),!1)})();v.value=b;function y(H,Y){v.value=h(H.isInvalidate()?H.toString(!1):H.toString(!Y),Y)}const S=P(()=>d2(e.max)),$=P(()=>d2(e.min)),x=P(()=>!S.value||!u.value||u.value.isInvalidate()?!1:S.value.lessEquals(u.value)),C=P(()=>!$.value||!u.value||u.value.isInvalidate()?!1:u.value.lessEquals($.value)),[O,w]=cie(i,a),I=H=>S.value&&!H.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(H)?$.value:null,T=H=>!I(H),_=(H,Y)=>{var Z;let U=H,ee=T(U)||U.isEmpty();if(!U.isEmpty()&&!Y&&(U=I(U)||U,ee=!0),!e.readonly&&!e.disabled&&ee){const G=U.toString(),J=f(G,Y);return J>=0&&(U=Qo(vm(G,".",J))),U.equals(u.value)||(d(U),(Z=e.onChange)===null||Z===void 0||Z.call(e,U.isEmpty()?null:u2(e.stringMode,U)),e.value===void 0&&y(U,Y)),U}return u.value},E=uie(),A=H=>{var Y;if(O(),v.value=H,!c.value){const Z=g(H),U=Qo(Z);U.isNaN()||_(U,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,H),E(()=>{let Z=H;e.parser||(Z=H.replace(/。/g,".")),Z!==H&&A(Z)})},R=()=>{c.value=!0},z=()=>{c.value=!1,A(i.value.value)},M=H=>{A(H.target.value)},B=H=>{var Y,Z;if(H&&x.value||!H&&C.value)return;s.value=!1;let U=Qo(e.step);H||(U=U.negate());const ee=(u.value||Qo(0)).add(U.toString()),G=_(ee,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,u2(e.stringMode,G),{offset:e.step,type:H?"up":"down"}),(Z=i.value)===null||Z===void 0||Z.focus()},N=H=>{const Y=Qo(g(v.value));let Z=Y;Y.isNaN()?Z=u.value:Z=_(Y,H),e.value!==void 0?y(u.value,!1):Z.isNaN()||y(Z,!1)},F=()=>{s.value=!0},L=H=>{var Y;const{which:Z}=H;s.value=!0,Z===Oe.ENTER&&(c.value||(s.value=!1),N(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,H)),e.keyboard!==!1&&!c.value&&[Oe.UP,Oe.DOWN].includes(Z)&&(B(Oe.UP===Z),H.preventDefault())},k=()=>{s.value=!1},j=H=>{N(!1),a.value=!1,s.value=!1,r("blur",H)};return be(()=>e.precision,()=>{u.value.isInvalidate()||y(u.value,!1)},{flush:"post"}),be(()=>e.value,()=>{const H=Qo(e.value);u.value=H;const Y=Qo(g(v.value));(!H.equals(Y)||!s.value||e.formatter)&&y(H,s.value)},{flush:"post"}),be(v,()=>{e.formatter&&w()},{flush:"post"}),be(()=>e.disabled,H=>{H&&(a.value=!1)}),l({focus:()=>{var H;(H=i.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=i.value)===null||H===void 0||H.blur()}}),()=>{const H=m(m({},n),e),{prefixCls:Y="rc-input-number",min:Z,max:U,step:ee=1,defaultValue:G,value:J,disabled:Q,readonly:K,keyboard:q,controls:pe=!0,autofocus:W,stringMode:X,parser:ne,formatter:ae,precision:se,decimalSeparator:re,onChange:de,onInput:ge,onPressEnter:me,onStep:fe,lazy:ye,class:Se,style:ue}=H,ce=die(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:he,downHandler:Pe}=o,Ie=`${Y}-input`,Ae={};return ye?Ae.onChange=M:Ae.onInput=M,p("div",{class:ie(Y,Se,{[`${Y}-focused`]:a.value,[`${Y}-disabled`]:Q,[`${Y}-readonly`]:K,[`${Y}-not-a-number`]:u.value.isNaN(),[`${Y}-out-of-range`]:!u.value.isInvalidate()&&!T(u.value)}),style:ue,onKeydown:L,onKeyup:k},[pe&&p(sie,{prefixCls:Y,upDisabled:x.value,downDisabled:C.value,onStep:B},{upNode:he,downNode:Pe}),p("div",{class:`${Ie}-wrap`},[p("input",D(D(D({autofocus:W,autocomplete:"off",role:"spinbutton","aria-valuemin":Z,"aria-valuemax":U,"aria-valuenow":u.value.isInvalidate()?null:u.value.toString(),step:ee},ce),{},{ref:i,class:Ie,value:v.value,disabled:Q,readonly:K,onFocus:$e=>{a.value=!0,r("focus",$e)}},Ae),{},{onBlur:j,onCompositionstart:R,onCompositionend:z,onBeforeinput:F}),null)])])}}});function Ih(e){return e!=null}const pie=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:l,fontSizeLG:i,controlHeightLG:a,controlHeightSM:s,colorError:c,inputPaddingHorizontalSM:u,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:m(m(m(m({},Xe(e)),Ii(e)),Nc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:l,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:$,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${u}px`}},"&:hover":m({},Ga(e)),"&-focused":m({},yl(e)),"&-disabled":m(m({},my(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:c}},"&-group":m(m(m({},Xe(e)),N6(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":m(m({width:"100%",height:v-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:l,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},vy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:l,borderEndEndRadius:l,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:g}},"&-up-inner, &-down-inner":m(m({},yi()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:l},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${o} ${r}`,borderEndEndRadius:l},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},gie=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:l,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:m(m(m({},Ii(e)),Nc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:l},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},Ga(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},hie=Ve("InputNumber",e=>{const t=Ti(e);return[pie(t),gie(t),ja(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var vie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},f2),{size:Be(),bordered:Ce(!0),placeholder:String,name:String,id:String,type:String,addonBefore:V.any,addonAfter:V.any,prefix:V.any,"onUpdate:value":f2.onChange,valueModifiers:Object,status:Be()}),Th=oe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:mie(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:l}=t;var i;const a=Qt(),s=un.useInject(),c=P(()=>Ko(s.status,e.status)),{prefixCls:u,size:d,direction:f,disabled:g}=Te("input-number",e),{compactSize:v,compactItemClassnames:h}=Ol(u,f),b=qn(),y=P(()=>{var R;return(R=g.value)!==null&&R!==void 0?R:b.value}),[S,$]=hie(u),x=P(()=>v.value||d.value),C=te((i=e.value)!==null&&i!==void 0?i:e.defaultValue),O=te(!1);be(()=>e.value,()=>{C.value=e.value});const w=te(null),I=()=>{var R;(R=w.value)===null||R===void 0||R.focus()};o({focus:I,blur:()=>{var R;(R=w.value)===null||R===void 0||R.blur()}});const _=R=>{e.value===void 0&&(C.value=R),n("update:value",R),n("change",R),a.onFieldChange()},E=R=>{O.value=!1,n("blur",R),a.onFieldBlur()},A=R=>{O.value=!0,n("focus",R)};return()=>{var R,z,M,B;const{hasFeedback:N,isFormItemInput:F,feedbackIcon:L}=s,k=(R=e.id)!==null&&R!==void 0?R:a.id.value,j=m(m(m({},r),e),{id:k,disabled:y.value}),{class:H,bordered:Y,readonly:Z,style:U,addonBefore:ee=(z=l.addonBefore)===null||z===void 0?void 0:z.call(l),addonAfter:G=(M=l.addonAfter)===null||M===void 0?void 0:M.call(l),prefix:J=(B=l.prefix)===null||B===void 0?void 0:B.call(l),valueModifiers:Q={}}=j,K=vie(j,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),q=u.value,pe=ie({[`${q}-lg`]:x.value==="large",[`${q}-sm`]:x.value==="small",[`${q}-rtl`]:f.value==="rtl",[`${q}-readonly`]:Z,[`${q}-borderless`]:!Y,[`${q}-in-form-item`]:F},Tn(q,c.value),H,h.value,$.value);let W=p(fie,D(D({},et(K,["size","defaultValue"])),{},{ref:w,lazy:!!Q.lazy,value:C.value,class:pe,prefixCls:q,readonly:Z,onChange:_,onBlur:E,onFocus:A}),{upHandler:l.upIcon?()=>p("span",{class:`${q}-handler-up-inner`},[l.upIcon()]):()=>p(lie,{class:`${q}-handler-up-inner`},null),downHandler:l.downIcon?()=>p("span",{class:`${q}-handler-down-inner`},[l.downIcon()]):()=>p(Ec,{class:`${q}-handler-down-inner`},null)});const X=Ih(ee)||Ih(G),ne=Ih(J);if(ne||N){const ae=ie(`${q}-affix-wrapper`,Tn(`${q}-affix-wrapper`,c.value,N),{[`${q}-affix-wrapper-focused`]:O.value,[`${q}-affix-wrapper-disabled`]:y.value,[`${q}-affix-wrapper-sm`]:x.value==="small",[`${q}-affix-wrapper-lg`]:x.value==="large",[`${q}-affix-wrapper-rtl`]:f.value==="rtl",[`${q}-affix-wrapper-readonly`]:Z,[`${q}-affix-wrapper-borderless`]:!Y,[`${H}`]:!X&&H},$.value);W=p("div",{class:ae,style:U,onClick:I},[ne&&p("span",{class:`${q}-prefix`},[J]),W,N&&p("span",{class:`${q}-suffix`},[L])])}if(X){const ae=`${q}-group`,se=`${ae}-addon`,re=ee?p("div",{class:se},[ee]):null,de=G?p("div",{class:se},[G]):null,ge=ie(`${q}-wrapper`,ae,{[`${ae}-rtl`]:f.value==="rtl"},$.value),me=ie(`${q}-group-wrapper`,{[`${q}-group-wrapper-sm`]:x.value==="small",[`${q}-group-wrapper-lg`]:x.value==="large",[`${q}-group-wrapper-rtl`]:f.value==="rtl"},Tn(`${u}-group-wrapper`,c.value,N),H,$.value);W=p("div",{class:me,style:U},[p("div",{class:ge},[re&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[re]})]}),W,de&&p(cc,null,{default:()=>[p(Xd,null,{default:()=>[de]})]})])])}return S(dt(W,{style:U}))}}}),bie=m(Th,{install:e=>(e.component(Th.name,Th),e)}),yie=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},Sie=yie,$ie=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:l,colorBgBody:i,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:c,layoutHeaderColor:u,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:m(m({display:"flex",flex:"auto",flexDirection:"column",color:o,minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:c,color:u,lineHeight:`${s}px`,background:l,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:l,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:r,lineHeight:`${f}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:l,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},Sie(e)),{"&-rtl":{direction:"rtl"}})}},Cie=Ve("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:l}=e,i=r*1.25,a=Fe(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:r+l*2,layoutZeroTriggerSize:r});return[$ie(a)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),d1=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function Xp(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>oe({compatConfig:{MODE:3},name:o,props:d1(),setup(i,a){let{slots:s}=a;const{prefixCls:c}=Te(t,i);return()=>{const u=m(m({},i),{prefixCls:c.value,tagName:n});return p(r,u,s)}}})}const f1=oe({compatConfig:{MODE:3},props:d1(),setup(e,t){let{slots:n}=t;return()=>p(e.tagName,{class:e.prefixCls},n)}}),xie=oe({compatConfig:{MODE:3},inheritAttrs:!1,props:d1(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("",e),[i,a]=Cie(r),s=le([]);Ge(VT,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const u=P(()=>{const{prefixCls:d,hasSider:f}=e;return{[a.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:l.value==="rtl"}});return()=>{const{tagName:d}=e;return i(p(d,m(m({},o),{class:[u.value,o.class]}),n))}}}),wie=Xp({suffixCls:"layout",tagName:"section",name:"ALayout"})(xie),rd=Xp({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(f1),ld=Xp({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(f1),id=Xp({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(f1),Eh=wie;var Oie={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"};const Pie=Oie;function p2(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:V.any,width:V.oneOfType([V.number,V.string]),collapsedWidth:V.oneOfType([V.number,V.string]),breakpoint:V.oneOf(Cn("xs","sm","md","lg","xl","xxl","xxxl")),theme:V.oneOf(Cn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),Mie=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),ad=oe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:qe(Eie(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:l}=Te("layout-sider",e),i=He(VT,void 0),a=te(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=te(!1);be(()=>e.collapsed,()=>{a.value=!!e.collapsed}),Ge(WT,a);const c=(h,b)=>{e.collapsed===void 0&&(a.value=h),n("update:collapsed",h),n("collapse",h,b)},u=te(h=>{s.value=h.matches,n("breakpoint",h.matches),a.value!==h.matches&&c(h.matches,"responsive")});let d;function f(h){return u.value(h)}const g=Mie("ant-sider-");i&&i.addSider(g),je(()=>{be(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in g2){d=h(`(max-width: ${g2[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Ze(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}i&&i.removeSider(g)});const v=()=>{c(!a.value,"clickTrigger")};return()=>{var h,b;const y=l.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:I}=e,T=a.value?S:$,_=Jd(T)?`${T}px`:String(T),E=parseFloat(String(S||0))===0?p("span",{onClick:v,class:ie(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||p(Tie,null,null)]):null,A={expanded:p(x?Wo:Sl,null,null),collapsed:p(x?Sl:Wo,null,null)},R=a.value?"collapsed":"expanded",z=A[R],M=O!==null?E||p("div",{class:`${y}-trigger`,onClick:v,style:{width:_}},[O||z]):null,B=[o.style,{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}],N=ie(y,`${y}-${I}`,{[`${y}-collapsed`]:!!a.value,[`${y}-has-trigger`]:w&&O!==null&&!E,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(_)===0},o.class);return p("aside",D(D({},o),{},{class:N,style:B}),[p("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&E?M:null])}}}),_ie=rd,Aie=ld,Rie=ad,Die=id,Bie=m(Eh,{Header:rd,Footer:ld,Content:id,Sider:ad,install:e=>(e.component(Eh.name,Eh),e.component(rd.name,rd),e.component(ld.name,ld),e.component(ad.name,ad),e.component(id.name,id),e)});function Nie(e,t,n){var o=n||{},r=o.noTrailing,l=r===void 0?!1:r,i=o.noLeading,a=i===void 0?!1:i,s=o.debounceMode,c=s===void 0?void 0:s,u,d=!1,f=0;function g(){u&&clearTimeout(u)}function v(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?a?(f=Date.now(),l||(u=setTimeout(c?O:C,e))):C():l!==!0&&(u=setTimeout(c?O:C,c===void 0?e-x:e))}return h.cancel=v,h}function Fie(e,t,n){var o=n||{},r=o.atBegin,l=r===void 0?!1:r;return Nie(e,t,{debounceMode:l!==!1})}const Lie=new nt("antSpinMove",{to:{opacity:1}}),kie=new nt("antRotate",{to:{transform:"rotate(405deg)"}}),zie=e=>({[`${e.componentCls}`]:m(m({},Xe(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Lie,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:kie,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Hie=Ve("Spin",e=>{const t=Fe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[zie(t)]},{contentHeight:400});var jie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:V.any,delay:Number,indicator:V.any});let sd=null;function Vie(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Kie(e){const t=e.indicator;sd=typeof t=="function"?t:()=>p(t,null,null)}const ir=oe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:qe(Wie(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:l,direction:i}=Te("spin",e),[a,s]=Hie(r),c=te(e.spinning&&!Vie(e.spinning,e.delay));let u;return be([()=>e.spinning,()=>e.delay],()=>{u==null||u.cancel(),u=Fie(e.delay,()=>{c.value=e.spinning}),u==null||u()},{immediate:!0,flush:"post"}),Ze(()=>{u==null||u.cancel()}),()=>{var d,f;const{class:g}=n,v=jie(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(f=o.default)===null||f===void 0?void 0:f.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:l.value==="small",[`${r.value}-lg`]:l.value==="large",[`${r.value}-spinning`]:c.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:i.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=qt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),Yt(O)?sn(O,{class:C}):sd&&Yt(sd())?sn(sd(),{class:C}):p("span",{class:`${C} ${x}-dot-spin`},[p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null)]))}const $=p("div",D(D({},v),{},{class:y,"aria-live":"polite","aria-busy":c.value}),[S(r.value),h?p("div",{class:`${r.value}-text`},[h]):null]);if(b&&_t(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:c.value};return a(p("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[c.value&&p("div",{key:"loading"},[$]),p("div",{class:x,key:"container"},[b])]))}return a($)}}});ir.setDefaultIndicator=Kie;ir.install=function(e){return e.component(ir.name,ir),e};var Gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Xie=Gie;function h2(e){for(var t=1;t{const r=m(m(m({},e),{size:"small"}),n);return p(Dr,r,o)}}}),Jie=oe({name:"MiddleSelect",inheritAttrs:!1,props:Pp(),Option:Dr.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=m(m(m({},e),{size:"middle"}),n);return p(Dr,r,o)}}}),Fl=oe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:V.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},l=i=>{n("keypress",i,r,e.page)};return()=>{const{showTitle:i,page:a,itemRender:s}=e,{class:c,style:u}=o,d=`${e.rootPrefixCls}-item`,f=ie(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},c);return p("li",{onClick:r,onKeypress:l,title:i?String(a):null,tabindex:"0",class:f,style:u},[s({page:a,type:"page",originalElement:p("a",{rel:"nofollow"},[a])})])}}}),jl={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},eae=oe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:V.any,current:Number,pageSizeOptions:V.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:V.object,rootPrefixCls:String,selectPrefixCls:String,goButton:V.any},setup(e){const t=le(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:c}=s.target;t.value!==c&&(t.value=c)},l=s=>{const{goButton:c,quickGo:u,rootPrefixCls:d}=e;if(!(c||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else u(n.value),t.value=""},i=s=>{t.value!==""&&(s.keyCode===jl.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},a=P(()=>{const{pageSize:s,pageSizeOptions:c}=e;return c.some(u=>u.toString()===s.toString())?c:c.concat([s.toString()]).sort((u,d)=>{const f=isNaN(Number(u))?0:Number(u),g=isNaN(Number(d))?0:Number(d);return f-g})});return()=>{const{rootPrefixCls:s,locale:c,changeSize:u,quickGo:d,goButton:f,selectComponentClass:g,selectPrefixCls:v,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!u&&!d)return null;if(u&&g){const C=e.buildOptionText||o,O=a.value.map((w,I)=>p(g.Option,{key:I,value:w},{default:()=>[C({value:w})]}));S=p(g,{disabled:b,prefixCls:v,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||a.value[0]).toString(),onChange:w=>u(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(f&&(x=typeof f=="boolean"?p("button",{type:"button",onClick:i,onKeyup:i,disabled:b,class:`${y}-quick-jumper-button`},[c.jump_to_confirm]):p("span",{onClick:i,onKeyup:i},[f])),$=p("div",{class:`${y}-quick-jumper`},[c.jump_to,p(Na,{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:i,onBlur:l},null),c.page,x])),p("li",{class:`${y}`},[S,$])}}}),tae={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var nae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const lae=oe({compatConfig:{MODE:3},name:"Pagination",mixins:[xi],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:V.string.def("rc-pagination"),selectPrefixCls:V.string.def("rc-select"),current:Number,defaultCurrent:V.number.def(1),total:V.number.def(0),pageSize:Number,defaultPageSize:V.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:V.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:V.oneOfType([V.looseBool,V.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:V.arrayOf(V.oneOfType([V.number,V.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:V.object.def(tae),itemRender:V.func.def(rae),prevIcon:V.any,nextIcon:V.any,jumpPrevIcon:V.any,jumpNextIcon:V.any,totalBoundaryShowSizeChanger:V.number.def(50)},data(){const e=this.$props;let t=qd([this.current,this.defaultCurrent]);const n=qd([this.pageSize,this.defaultPageSize]);return t=Math.min(t,hr(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=hr(e,this.$data,this.$props);n=n>o?o:n,xr(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=hr(this.pageSize,this.$data,this.$props);if(xr(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(hr(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return VO(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=hr(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return oae(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===jl.ARROW_UP||e.keyCode===jl.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===jl.ENTER?this.handleChange(t):e.keyCode===jl.ARROW_UP?this.handleChange(t-1):e.keyCode===jl.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=hr(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(xr(this,"pageSize")||this.setState({statePageSize:e}),xr(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=hr(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),xr(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,B=y+1=z*2&&y!==1+2&&(w[0]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.unshift(I)),O-y>=z*2&&y!==O-2&&(w[w.length-1]=p(Fl,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ee,page:ee,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:u},null),w.push(T)),U!==1&&w.unshift(_),ee!==O&&w.push(E)}let L=null;s&&(L=p("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const k=!N||!O,j=!F||!O,H=this.buildOptionText||this.$slots.buildOptionText;return p("ul",D(D({unselectable:"on",ref:"paginationNode"},C),{},{class:ie({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[L,p("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:k?null:0,onKeypress:this.runIfEnterPrev,class:ie(`${e}-prev`,{[`${e}-disabled`]:k}),"aria-disabled":k},[this.renderPrev(M)]),w,p("li",{title:a?r.next_page:null,onClick:this.next,tabindex:j?null:0,onKeypress:this.runIfEnterNext,class:ie(`${e}-next`,{[`${e}-disabled`]:j}),"aria-disabled":j},[this.renderNext(B)]),p(eae,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:H||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R},null)])}}),iae=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},aae=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:m(m({},by(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},sae=e=>{const{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},cae=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":m({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Ar(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:m({},Ar(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:m(m({},Ii(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},uae=e=>{const{componentCls:t}=e;return{[`${t}-item`]:m(m({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Rr(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},dae=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m({},Xe(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),uae(e)),cae(e)),sae(e)),aae(e)),iae(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},fae=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},pae=Ve("Pagination",e=>{const t=Fe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Ti(e));return[dae(t),e.wireframe&&fae(t)]});var gae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:Ce(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Ce(),showSizeChanger:Ce(),pageSizeOptions:at(),buildOptionText:ve(),showQuickJumper:Le([Boolean,Object]),showTotal:ve(),size:Be(),simple:Ce(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:ve(),role:String,responsive:Boolean,showLessItems:Ce(),onChange:ve(),onShowSizeChange:ve(),"onUpdate:current":ve(),"onUpdate:pageSize":ve()}),vae=oe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:hae(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:l,direction:i,size:a}=Te("pagination",e),[s,c]=pae(r),u=P(()=>l.getPrefixCls("select",e.selectPrefixCls)),d=Va(),[f]=Io("Pagination",tP,ze(e,"locale")),g=v=>{const h=p("span",{class:`${v}-item-ellipsis`},[Lt("•••")]),b=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Wo,null,null):p(Sl,null,null)]),y=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?p(Sl,null,null):p(Wo,null,null)]),S=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(b2,{class:`${v}-item-link-icon`},null):p(v2,{class:`${v}-item-link-icon`},null),h])]),$=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[i.value==="rtl"?p(v2,{class:`${v}-item-link-icon`},null):p(b2,{class:`${v}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var v;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=gae(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=a.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!a.value&&S),C=m(m(m(m(m({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:u.value,selectComponentClass:y||(x?Qie:Jie),locale:f.value,buildOptionText:b}),o),{class:ie({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:i.value==="rtl"},o.class,c.value),itemRender:h});return s(p(lae,C,null))}}}),Up=Tt(vae),mae=()=>({avatar:V.any,description:V.any,prefixCls:String,title:V.any}),zE=oe({compatConfig:{MODE:3},name:"AListItemMeta",props:mae(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("list",e);return()=>{var r,l,i,a,s,c;const u=`${o.value}-item-meta`,d=(r=e.title)!==null&&r!==void 0?r:(l=n.title)===null||l===void 0?void 0:l.call(n),f=(i=e.description)!==null&&i!==void 0?i:(a=n.description)===null||a===void 0?void 0:a.call(n),g=(s=e.avatar)!==null&&s!==void 0?s:(c=n.avatar)===null||c===void 0?void 0:c.call(n),v=p("div",{class:`${o.value}-item-meta-content`},[d&&p("h4",{class:`${o.value}-item-meta-title`},[d]),f&&p("div",{class:`${o.value}-item-meta-description`},[f])]);return p("div",{class:u},[g&&p("div",{class:`${o.value}-item-meta-avatar`},[g]),(d||f)&&v])}}}),HE=Symbol("ListContextKey");var bae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,extra:V.any,actions:V.array,grid:Object,colStyle:{type:Object,default:void 0}}),jE=oe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:zE,props:yae(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:l}=He(HE,{grid:le(),itemLayout:le()}),{prefixCls:i}=Te("list",e),a=()=>{var c;const u=((c=n.default)===null||c===void 0?void 0:c.call(n))||[];let d;return u.forEach(f=>{lD(f)&&!wc(f)&&(d=!0)}),d&&u.length>1},s=()=>{var c,u;const d=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n);return r.value==="vertical"?!!d:!a()};return()=>{var c,u,d,f,g;const{class:v}=o,h=bae(o,["class"]),b=i.value,y=(c=e.extra)!==null&&c!==void 0?c:(u=n.extra)===null||u===void 0?void 0:u.call(n),S=(d=n.default)===null||d===void 0?void 0:d.call(n);let $=(f=e.actions)!==null&&f!==void 0?f:yt((g=n.actions)===null||g===void 0?void 0:g.call(n));$=$&&!Array.isArray($)?[$]:$;const x=$&&$.length>0&&p("ul",{class:`${b}-item-action`,key:"actions"},[$.map((w,I)=>p("li",{key:`${b}-item-action-${I}`},[w,I!==$.length-1&&p("em",{class:`${b}-item-action-split`},null)]))]),C=l.value?"div":"li",O=p(C,D(D({},h),{},{class:ie(`${b}-item`,{[`${b}-item-no-flex`]:!s()},v)}),{default:()=>[r.value==="vertical"&&y?[p("div",{class:`${b}-item-main`,key:"content"},[S,x]),p("div",{class:`${b}-item-extra`,key:"extra"},[y])]:[S,x,dt(y,{key:"extra"})]]});return l.value?p(Vp,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),Sae=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:l,listItemPaddingSM:i,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${l}px ${o}px`}}}},$ae=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:l,margin:i}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:l}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},Cae=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:l,marginLG:i,padding:a,listItemPadding:s,colorPrimary:c,listItemPaddingSM:u,listItemPaddingLG:d,paddingXS:f,margin:g,colorText:v,colorTextDescription:h,motionDurationSlow:b,lineWidth:y}=e;return{[`${t}`]:m(m({},Xe(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:l},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${b}`,"&:hover":{color:c}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:l,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},xae=Ve("List",e=>{const t=Fe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Cae(t),Sae(t),$ae(t)]},{contentWidth:220}),wae=()=>({bordered:Ce(),dataSource:at(),extra:In(),grid:Re(),itemLayout:String,loading:Le([Boolean,Object]),loadMore:In(),pagination:Le([Boolean,Object]),prefixCls:String,rowKey:Le([String,Number,Function]),renderItem:ve(),size:String,split:Ce(),header:In(),footer:In(),locale:Re()}),Qr=oe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:jE,props:qe(wae(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,l;Ge(HE,{grid:ze(e,"grid"),itemLayout:ze(e,"itemLayout")});const i={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:c}=Te("list",e),[u,d]=xae(a),f=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),g=le((r=f.value.defaultCurrent)!==null&&r!==void 0?r:1),v=le((l=f.value.defaultPageSize)!==null&&l!==void 0?l:10);be(f,()=>{"current"in f.value&&(g.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const h=[],b=R=>(z,M)=>{g.value=z,v.value=M,f.value[R]&&f.value[R](z,M)},y=b("onChange"),S=b("onShowSizeChange"),$=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>$.value&&$.value.spinning),C=P(()=>{let R="";switch(e.size){case"large":R="lg";break;case"small":R="sm";break}return R}),O=P(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${C.value}`]:C.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:x.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:s.value==="rtl"})),w=P(()=>{const R=m(m(m({},i),{total:e.dataSource.length,current:g.value,pageSize:v.value}),e.pagination||{}),z=Math.ceil(R.total/R.pageSize);return R.current>z&&(R.current=z),R}),I=P(()=>{let R=[...e.dataSource];return e.pagination&&e.dataSource.length>(w.value.current-1)*w.value.pageSize&&(R=[...e.dataSource].splice((w.value.current-1)*w.value.pageSize,w.value.pageSize)),R}),T=Va(),_=ro(()=>{for(let R=0;R{if(!e.grid)return;const R=_.value&&e.grid[_.value]?e.grid[_.value]:e.grid.column;if(R)return{width:`${100/R}%`,maxWidth:`${100/R}%`}}),A=(R,z)=>{var M;const B=(M=e.renderItem)!==null&&M!==void 0?M:n.renderItem;if(!B)return null;let N;const F=typeof e.rowKey;return F==="function"?N=e.rowKey(R):F==="string"||F==="number"?N=R[e.rowKey]:N=R.key,N||(N=`list-item-${z}`),h[z]=N,B({item:R,index:z})};return()=>{var R,z,M,B,N,F,L,k;const j=(R=e.loadMore)!==null&&R!==void 0?R:(z=n.loadMore)===null||z===void 0?void 0:z.call(n),H=(M=e.footer)!==null&&M!==void 0?M:(B=n.footer)===null||B===void 0?void 0:B.call(n),Y=(N=e.header)!==null&&N!==void 0?N:(F=n.header)===null||F===void 0?void 0:F.call(n),Z=yt((L=n.default)===null||L===void 0?void 0:L.call(n)),U=!!(j||e.pagination||H),ee=ie(m(m({},O.value),{[`${a.value}-something-after-last-item`]:U}),o.class,d.value),G=e.pagination?p("div",{class:`${a.value}-pagination`},[p(Up,D(D({},w.value),{},{onChange:y,onShowSizeChange:S}),null)]):null;let J=x.value&&p("div",{style:{minHeight:"53px"}},null);if(I.value.length>0){h.length=0;const K=I.value.map((pe,W)=>A(pe,W)),q=K.map((pe,W)=>p("div",{key:h[W],style:E.value},[pe]));J=e.grid?p(Ry,{gutter:e.grid.gutter},{default:()=>[q]}):p("ul",{class:`${a.value}-items`},[K])}else!Z.length&&!x.value&&(J=p("div",{class:`${a.value}-empty-text`},[((k=e.locale)===null||k===void 0?void 0:k.emptyText)||c("List")]));const Q=w.value.position||"bottom";return u(p("div",D(D({},o),{},{class:ee}),[(Q==="top"||Q==="both")&&G,Y&&p("div",{class:`${a.value}-header`},[Y]),p(ir,$.value,{default:()=>[J,Z]}),H&&p("div",{class:`${a.value}-footer`},[H]),j||(Q==="bottom"||Q==="both")&&G]))}}});Qr.install=function(e){return e.component(Qr.name,Qr),e.component(Qr.Item.name,Qr.Item),e.component(Qr.Item.Meta.name,Qr.Item.Meta),e};const Oae=Qr;function Pae(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Iae(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,r)=>{const l=e.lastIndexOf(r);return l>o.location?{location:l,prefix:r}:o},{location:-1,prefix:""})}function y2(e){return(e||"").toLowerCase()}function Tae(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const l=t.length;for(let i=0;i[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:l,onFocus:i=Dae,loading:a}=He(WE,{activeIndex:te(),loading:te(!1)});let s;const c=u=>{clearTimeout(s),s=setTimeout(()=>{i(u)})};return Ze(()=>{clearTimeout(s)}),()=>{var u;const{prefixCls:d,options:f}=e,g=f[o.value]||{};return p(Vt,{prefixCls:`${d}-menu`,activeKey:g.value,onSelect:v=>{let{key:h}=v;const b=f.find(y=>{let{value:S}=y;return S===h});l(b)},onMousedown:c},{default:()=>[!a.value&&f.map((v,h)=>{var b,y;const{value:S,disabled:$,label:x=v.value,class:C,style:O}=v;return p(lr,{key:S,disabled:$,onMouseenter:()=>{r(h)},class:C,style:O},{default:()=>[(y=(b=n.option)===null||b===void 0?void 0:b.call(n,v))!==null&&y!==void 0?y:typeof x=="function"?x(v):x]})}),!a.value&&f.length===0?p(lr,{key:"notFoundContent",disabled:!0},{default:()=>[(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n)]}):null,a.value&&p(lr,{key:"loading",disabled:!0},{default:()=>[p(ir,{size:"small"},null)]})]})}}}),Nae={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},Fae=oe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:i}=e;return p(Bae,{prefixCls:o(),options:i},{notFoundContent:n.notFoundContent,option:n.option})},l=P(()=>{const{placement:i,direction:a}=e;let s="topRight";return a==="rtl"?s=i==="top"?"topLeft":"bottomLeft":s=i==="top"?"topRight":"bottomRight",s});return()=>{const{visible:i,transitionName:a,getPopupContainer:s}=e;return p(wi,{prefixCls:o(),popupVisible:i,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:l.value,popupTransitionName:a,builtinPlacements:Nae,getPopupContainer:s},{default:n.default})}}}),Lae=Cn("top","bottom"),VE={autofocus:{type:Boolean,default:void 0},prefix:V.oneOfType([V.string,V.arrayOf(V.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:V.oneOf(Lae),character:V.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:at(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},KE=m(m({},VE),{dropdownClassName:String}),GE={prefix:"@",split:" ",rows:1,validateSearch:_ae,filterOption:()=>Aae};qe(KE,GE);var S2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{c.value=e.value});const u=E=>{n("change",E)},d=E=>{let{target:{value:A}}=E;u(A)},f=(E,A,R)=>{m(c,{measuring:!0,measureText:E,measurePrefix:A,measureLocation:R,activeIndex:0})},g=E=>{m(c,{measuring:!1,measureLocation:0,measureText:null}),E==null||E()},v=E=>{const{which:A}=E;if(c.measuring){if(A===Oe.UP||A===Oe.DOWN){const R=I.value.length,z=A===Oe.UP?-1:1,M=(c.activeIndex+z+R)%R;c.activeIndex=M,E.preventDefault()}else if(A===Oe.ESC)g();else if(A===Oe.ENTER){if(E.preventDefault(),!I.value.length){g();return}const R=I.value[c.activeIndex];C(R)}}},h=E=>{const{key:A,which:R}=E,{measureText:z,measuring:M}=c,{prefix:B,validateSearch:N}=e,F=E.target;if(F.composing)return;const L=Pae(F),{location:k,prefix:j}=Iae(L,B);if([Oe.ESC,Oe.UP,Oe.DOWN,Oe.ENTER].indexOf(R)===-1)if(k!==-1){const H=L.slice(k+j.length),Y=N(H,e),Z=!!w(H).length;Y?(A===j||A==="Shift"||M||H!==z&&Z)&&f(H,j,k):M&&g(),Y&&n("search",H,j)}else M&&g()},b=E=>{c.measuring||n("pressenter",E)},y=E=>{$(E)},S=E=>{x(E)},$=E=>{clearTimeout(s.value);const{isFocus:A}=c;!A&&E&&n("focus",E),c.isFocus=!0},x=E=>{s.value=setTimeout(()=>{c.isFocus=!1,g(),n("blur",E)},100)},C=E=>{const{split:A}=e,{value:R=""}=E,{text:z,selectionLocation:M}=Eae(c.value,{measureLocation:c.measureLocation,targetText:R,prefix:c.measurePrefix,selectionStart:a.value.getSelectionStart(),split:A});u(z),g(()=>{Mae(a.value.input,M)}),n("select",E,c.measurePrefix)},O=E=>{c.activeIndex=E},w=E=>{const A=E||c.measureText||"",{filterOption:R}=e;return e.options.filter(M=>R?R(A,M):!0)},I=P(()=>w());return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Ge(WE,{activeIndex:ze(c,"activeIndex"),setActiveIndex:O,selectOption:C,onFocus:$,onBlur:x,loading:ze(e,"loading")}),An(()=>{ot(()=>{c.measuring&&(i.value.scrollTop=a.value.getScrollTop())})}),()=>{const{measureLocation:E,measurePrefix:A,measuring:R}=c,{prefixCls:z,placement:M,transitionName:B,getPopupContainer:N,direction:F}=e,L=S2(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:k,style:j}=o,H=S2(o,["class","style"]),Y=et(L,["value","prefix","split","validateSearch","filterOption","options","loading"]),Z=m(m(m({},Y),H),{onChange:$2,onSelect:$2,value:c.value,onInput:d,onBlur:S,onKeydown:v,onKeyup:h,onFocus:y,onPressenter:b});return p("div",{class:ie(z,k),style:j},[p(Na,D(D({},Z),{},{ref:a,tag:"textarea"}),null),R&&p("div",{ref:i,class:`${z}-measure`},[c.value.slice(0,E),p(Fae,{prefixCls:z,transitionName:B,dropdownClassName:e.dropdownClassName,placement:M,options:R?I.value:[],visible:!0,direction:F,getPopupContainer:N},{default:()=>[p("span",null,[A])],notFoundContent:l.notFoundContent,option:l.option}),c.value.slice(E+A.length)])])}}}),zae={value:String,disabled:Boolean,payload:Re()},XE=m(m({},zae),{label:St([])}),UE={name:"Option",props:XE,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};m({compatConfig:{MODE:3}},UE);const Hae=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:l,motionDurationSlow:i,lineHeight:a,controlHeight:s,inputPaddingHorizontal:c,inputPaddingVertical:u,fontSize:d,colorBgElevated:f,borderRadiusLG:g,boxShadowSecondary:v}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:m(m(m(m(m({},Xe(e)),Ii(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Nc(e,t)),{"&-disabled":{"> textarea":m({},my(e))},"&-focused":m({},yl(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:c,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:l,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${u}px ${c}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":m({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},vy(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":m(m({},Xe(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:g,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":m(m({},Gt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:l,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:g,borderEndEndRadius:g},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:l,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},jae=Ve("Mentions",e=>{const t=Ti(e);return[Hae(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var C2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=null;return r.some(a=>l.slice(0,a.length)===a?(i=a,!0):!1),i!==null?{prefix:i,value:l.slice(i.length)}:null}).filter(l=>!!l&&!!l.value)},Kae=()=>m(m({},VE),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:V.any,defaultValue:String,id:String,status:String}),Mh=oe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:Kae(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:l}=t;var i,a;const{prefixCls:s,renderEmpty:c,direction:u}=Te("mentions",e),[d,f]=jae(s),g=te(!1),v=te(null),h=te((a=(i=e.value)!==null&&i!==void 0?i:e.defaultValue)!==null&&a!==void 0?a:""),b=Qt(),y=un.useInject(),S=P(()=>Ko(y.status,e.status));Kb({prefixCls:P(()=>`${s.value}-menu`),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:A=>{It()}}),be(()=>e.value,A=>{h.value=A});const $=A=>{g.value=!0,o("focus",A)},x=A=>{g.value=!1,o("blur",A),b.onFieldBlur()},C=function(){for(var A=arguments.length,R=new Array(A),z=0;z{e.value===void 0&&(h.value=A),o("update:value",A),o("change",A),b.onFieldChange()},w=()=>{const A=e.notFoundContent;return A!==void 0?A:n.notFoundContent?n.notFoundContent():c("Select")},I=()=>{var A;return yt(((A=n.default)===null||A===void 0?void 0:A.call(n))||[]).map(R=>{var z,M;return m(m({},WO(R)),{label:(M=(z=R.children)===null||z===void 0?void 0:z.default)===null||M===void 0?void 0:M.call(z)})})};l({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const E=P(()=>e.loading?Wae:e.filterOption);return()=>{const{disabled:A,getPopupContainer:R,rows:z=1,id:M=b.id.value}=e,B=C2(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:N,feedbackIcon:F}=y,{class:L}=r,k=C2(r,["class"]),j=et(B,["defaultValue","onUpdate:value","prefixCls"]),H=ie({[`${s.value}-disabled`]:A,[`${s.value}-focused`]:g.value,[`${s.value}-rtl`]:u.value==="rtl"},Tn(s.value,S.value),!N&&L,f.value),Y=m(m(m(m({prefixCls:s.value},j),{disabled:A,direction:u.value,filterOption:E.value,getPopupContainer:R,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:p(ir,{size:"small"},null)}]:e.options||I(),class:H}),k),{rows:z,onChange:O,onSelect:C,onFocus:$,onBlur:x,ref:v,value:h.value,id:M}),Z=p(kae,D(D({},Y),{},{dropdownClassName:f.value}),{notFoundContent:w,option:n.option});return d(N?p("div",{class:ie(`${s.value}-affix-wrapper`,Tn(`${s.value}-affix-wrapper`,S.value,N),L,f.value)},[Z,p("span",{class:`${s.value}-suffix`},[F])]):Z)}}}),cd=oe(m(m({compatConfig:{MODE:3}},UE),{name:"AMentionsOption",props:XE})),Gae=m(Mh,{Option:cd,getMentions:Vae,install:e=>(e.component(Mh.name,Mh),e.component(cd.name,cd),e)});var Xae=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{mm={x:e.pageX,y:e.pageY},setTimeout(()=>mm=null,100)};h8()&&Mt(document.documentElement,"click",Uae,!0);const Yae=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:V.any,closable:{type:Boolean,default:void 0},closeIcon:V.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:V.any,okText:V.any,okType:String,cancelText:V.any,icon:V.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:Re(),cancelButtonProps:Re(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:Re(),maskStyle:Re(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:Re()}),an=oe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:qe(Yae(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[l]=Io("Modal"),{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c}=Te("modal",e),[u,d]=Gle(i);It(e.visible===void 0);const f=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},v=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return p(We,null,[p(zt,D({onClick:f},e.cancelButtonProps),{default:()=>[$||l.value.cancelText]}),p(zt,D(D({},ef(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||l.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:I=!0}=e,T=Xae(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),_=ie(x,{[`${i.value}-centered`]:!!C,[`${i.value}-wrap-rtl`]:s.value==="rtl"});return u(p(TE,D(D(D({},T),r),{},{rootClassName:d.value,class:ie(d.value,r.class),getContainer:O||(c==null?void 0:c.value),prefixCls:i.value,wrapClassName:_,visible:$??S,onClose:f,focusTriggerAfterClose:I,transitionName:_n(a.value,"zoom",e.transitionName),maskTransitionName:_n(a.value,"fade",e.maskTransitionName),mousePosition:(b=T.mousePosition)!==null&&b!==void 0?b:mm}),m(m({},o),{footer:o.footer||v,closeIcon:()=>p("span",{class:`${i.value}-close-x`},[w||p(Zn,{class:`${i.value}-close-icon`},null)])})))}}}),qae=()=>{const e=te(!1);return Ze(()=>{e.value=!0}),e},YE=qae,Zae={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:Re(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function x2(e){return!!(e&&e.then)}const bm=oe({compatConfig:{MODE:3},name:"ActionButton",props:Zae,setup(e,t){let{slots:n}=t;const o=te(!1),r=te(),l=te(!1);let i;const a=YE();je(()=>{e.autofocus&&(i=setTimeout(()=>{var d,f;return(f=(d=Hn(r.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Ze(()=>{clearTimeout(i)});const s=function(){for(var d,f=arguments.length,g=new Array(f),v=0;v{x2(d)&&(l.value=!0,d.then(function(){a.value||(l.value=!1),s(...arguments),o.value=!1},f=>(a.value||(l.value=!1),o.value=!1,Promise.reject(f))))},u=d=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){s();return}let g;if(e.emitEvent){if(g=f(d),e.quitOnNullishReturnValue&&!x2(g)){o.value=!1,s(d);return}}else if(f.length)g=f(e.close),o.value=!1;else if(g=f(),!g){s();return}c(g)};return()=>{const{type:d,prefixCls:f,buttonProps:g}=e;return p(zt,D(D(D({},ef(d)),{},{onClick:u,loading:l.value,prefixCls:f},g),{},{ref:r}),n)}}});function Li(e){return typeof e=="function"?e():e}const qE=oe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Io("Modal");return()=>{const{icon:r,onCancel:l,onOk:i,close:a,okText:s,closable:c=!1,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:I,content:T,direction:_,closeIcon:E,modalRender:A,focusTriggerAfterClose:R,rootPrefixCls:z,bodyStyle:M,wrapClassName:B,footer:N}=e;let F=r;if(!r&&r!==null)switch(O){case"info":F=p(Wa,null,null);break;case"success":F=p(zr,null,null);break;case"error":F=p(Qn,null,null);break;default:F=p(Hr,null,null)}const L=e.okType||"primary",k=e.prefixCls||"ant-modal",j=`${k}-confirm`,H=n.style||{},Y=S??O==="confirm",Z=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${k}-confirm`,ee=ie(U,`${U}-${e.type}`,{[`${U}-rtl`]:_==="rtl"},n.class),G=o.value,J=Y&&p(bm,{actionFn:l,close:a,autofocus:Z==="cancel",buttonProps:y,prefixCls:`${z}-btn`},{default:()=>[Li(e.cancelText)||G.cancelText]});return p(an,{prefixCls:k,class:ee,wrapClassName:ie({[`${U}-centered`]:!!g},B),onCancel:Q=>a==null?void 0:a({triggerCancel:!0},Q),open:w,title:"",footer:"",transitionName:_n(z,"zoom",e.transitionName),maskTransitionName:_n(z,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:H,bodyStyle:M,width:$,zIndex:u,afterClose:d,keyboard:f,centered:g,getContainer:v,closable:c,closeIcon:E,modalRender:A,focusTriggerAfterClose:R},{default:()=>[p("div",{class:`${j}-body-wrapper`},[p("div",{class:`${j}-body`},[Li(F),I===void 0?null:p("span",{class:`${j}-title`},[Li(I)]),p("div",{class:`${j}-content`},[Li(T)])]),N!==void 0?Li(N):p("div",{class:`${j}-btns`},[J,p(bm,{type:L,actionFn:i,close:a,autofocus:Z==="ok",buttonProps:b,prefixCls:`${z}-btn`},{default:()=>[Li(s)||(Y?G.okText:G.justOkText)]})])])]})}}}),Qae=[],Ql=Qae,Jae=e=>{const t=document.createDocumentFragment();let n=m(m({},et(e,["parentContext","appContext"])),{close:l,open:!0}),o=null;function r(){o&&(bl(null,t),o=null);for(var c=arguments.length,u=new Array(c),d=0;dg&&g.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...u.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,u)}}),n.visible&&delete n.visible,i(n)}function i(c){typeof c=="function"?n=c(n):n=m(m({},n),c),o&&KN(o,n,t)}const a=c=>{const u=vn,d=u.prefixCls,f=c.prefixCls||`${d}-modal`,g=u.iconPrefixCls,v=sne();return p(zy,D(D({},u),{},{prefixCls:d}),{default:()=>[p(qE,D(D({},c),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:g,locale:v,cancelText:c.cancelText||v.cancelText}),null)]})};function s(c){const u=p(a,m({},c));return u.appContext=e.parentContext||e.appContext||u.appContext,bl(u,t),u}return o=s(n),Ql.push(l),{destroy:l,update:i}},Hc=Jae;function ZE(e){return m(m({},e),{type:"warning"})}function QE(e){return m(m({},e),{type:"info"})}function JE(e){return m(m({},e),{type:"success"})}function e5(e){return m(m({},e),{type:"error"})}function t5(e){return m(m({},e),{type:"confirm"})}const ese=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),tse=oe({name:"HookModal",inheritAttrs:!1,props:qe(ese(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),l=P(()=>e.config),{direction:i,getPrefixCls:a}=Xf(),s=a("modal"),c=a(),u=()=>{var v,h;e==null||e.afterClose(),(h=(v=l.value).afterClose)===null||h===void 0||h.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(o=l.value.okCancel)!==null&&o!==void 0?o:l.value.type==="confirm",[g]=Io("Modal",jn.Modal);return()=>p(qE,D(D({prefixCls:s,rootPrefixCls:c},l.value),{},{close:d,open:r.value,afterClose:u,okText:l.value.okText||(f?g==null?void 0:g.value.okText:g==null?void 0:g.value.justOkText),direction:l.value.direction||i.value,cancelText:l.value.cancelText||(g==null?void 0:g.value.cancelText)}),null)}});let w2=0;const nse=oe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=te([]);return n({addModal:l=>(o.value.push(l),o.value=o.value.slice(),()=>{o.value=o.value.filter(i=>i!==l)})}),()=>o.value.map(l=>l())}});function n5(){const e=te(null),t=te([]);be(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=l=>function(a){var s;w2+=1;const c=te(!0),u=te(null),d=te($t(a)),f=te({});be(()=>a,$=>{b(m(m({},kt($)?$.value:$),f.value))});const g=function(){c.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let v;const h=()=>p(tse,{key:`modal-${w2}`,config:l(d.value),ref:u,open:c.value,destroyAction:g,afterClose:()=>{v==null||v()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(h),v&&Ql.push(v);const b=$=>{d.value=m(m({},d.value),$)};return{destroy:()=>{u.value?g():t.value=[...t.value,g]},update:$=>{f.value=$,u.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(QE),success:n(JE),error:n(e5),warning:n(ZE),confirm:n(t5)})),r=Symbol("modalHolderKey");return[o.value,()=>p(nse,{key:r,ref:e},null)]}function o5(e){return Hc(ZE(e))}an.useModal=n5;an.info=function(t){return Hc(QE(t))};an.success=function(t){return Hc(JE(t))};an.error=function(t){return Hc(e5(t))};an.warning=o5;an.warn=o5;an.confirm=function(t){return Hc(t5(t))};an.destroyAll=function(){for(;Ql.length;){const t=Ql.pop();t&&t()}};an.install=function(e){return e.component(an.name,an),e};const r5=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:l="",prefixCls:i}=e;let a;if(typeof n=="function")a=n({value:t});else{const s=String(t),c=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c)a=s;else{const u=c[1];let d=c[2]||"0",f=c[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l),typeof o=="number"&&(f=f.padEnd(o,"0").slice(0,o>0?o:0)),f&&(f=`${r}${f}`),a=[p("span",{key:"int",class:`${i}-content-value-int`},[u,d]),f&&p("span",{key:"decimal",class:`${i}-content-value-decimal`},[f])]}}return p("span",{class:`${i}-content-value`},[a])};r5.displayName="StatisticNumber";const ose=r5,rse=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:l,colorTextHeading:i,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:m(m({},Xe(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:l},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:i,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},lse=Ve("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=Fe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[rse(r)]}),l5=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Le([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:ve(),formatter:St(),precision:Number,prefix:In(),suffix:In(),title:In(),loading:Ce()}),wr=oe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:qe(l5(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("statistic",e),[i,a]=lse(r);return()=>{var s,c,u,d,f,g,v;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(c=n.title)===null||c===void 0?void 0:c.call(n),x=(u=e.prefix)!==null&&u!==void 0?u:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(f=e.suffix)!==null&&f!==void 0?f:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let w=p(ose,D({"data-for-update":Date.now()},m(m({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),i(p("div",D(D({},o),{},{class:[S,{[`${S}-rtl`]:l.value==="rtl"},o.class,a.value]}),[$&&p("div",{class:`${S}-title`},[$]),p(On,{paragraph:!1,loading:e.loading},{default:()=>[p("div",{style:b,class:`${S}-content`},[x&&p("span",{class:`${S}-content-prefix`},[x]),w,C&&p("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),ise=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ase(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),l=t.replace(o,"[]"),i=ise.reduce((s,c)=>{let[u,d]=c;if(s.includes(u)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${u}+`,"g"),g=>{const v=g.length;return f.toString().padStart(v,"0")})}return s},l);let a=0;return i.replace(o,()=>{const s=r[a];return a+=1,s})}function sse(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),l=Math.max(o-r,0);return ase(l,n)}const cse=1e3/30;function _h(e){return new Date(e).getTime()}const use=()=>m(m({},l5()),{value:Le([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),dse=oe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:qe(use(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=le(),l=le(),i=()=>{const{value:d}=e;_h(d)>=Date.now()?a():s()},a=()=>{if(r.value)return;const d=_h(e.value);r.value=setInterval(()=>{l.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),i()},cse)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,_h(d){let{value:f,config:g}=d;const{format:v}=e;return sse(f,m(m({},g),{format:v}))},u=d=>d;return je(()=>{i()}),An(()=>{i()}),Ze(()=>{s()}),()=>{const d=e.value;return p(wr,D({ref:l},m(m({},et(e,["onFinish","onChange"])),{value:d,valueRender:u,formatter:c})),o)}}});wr.Countdown=dse;wr.install=function(e){return e.component(wr.name,wr),e.component(wr.Countdown.name,wr.Countdown),e};const fse=wr.Countdown;var pse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const gse=pse;function O2(e){for(var t=1;t{const{keyCode:g}=f;g===Oe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:g}=f;g===Oe.ENTER&&o("click",f)},c=f=>{o("click",f)},u=()=>{i.value&&i.value.focus()},d=()=>{i.value&&i.value.blur()};return je(()=>{e.autofocus&&u()}),l({focus:u,blur:d}),()=>{var f;const{noStyle:g,disabled:v}=e,h=$se(e,["noStyle","disabled"]);let b={};return g||(b=m({},Cse)),v&&(b.pointerEvents="none"),p("div",D(D(D({role:"button",tabindex:0,ref:i},h),r),{},{onClick:c,onKeydown:a,onKeyup:s,style:m(m({},b),r.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Cf=xse,wse={small:8,middle:16,large:24},Ose=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:V.oneOf(Cn("horizontal","vertical")).def("horizontal"),align:V.oneOf(Cn("start","end","center","baseline")),wrap:Ce()});function Pse(e){return typeof e=="string"?wse[e]:e||0}const Hs=oe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:Ose(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:l,direction:i}=Te("space",e),[a,s]=XI(r),c=m8(),u=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=l==null?void 0:l.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=le(),f=le();be(u,()=>{[d.value,f.value]=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(y=>Pse(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=P(()=>ie(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>i.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return c.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${f.value}px`),m(m({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=_t(C),w=O.length;if(w===0)return null;const I=(S=n.split)===null||S===void 0?void 0:S.call(n),T=`${r.value}-item`,_=d.value,E=w-1;return p("div",D(D({},o),{},{class:[v.value,o.class],style:[b.value,o.style]}),[O.map((A,R)=>{let z=C.indexOf(A);z===-1&&(z=`$$space-${R}`);let M={};return c.value||(x==="vertical"?R{const{componentCls:t,antCls:n}=e;return{[t]:m(m({},Xe(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":m(m({},Jf(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":m({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Gt),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":m({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Gt),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Tse=Ve("PageHeader",e=>{const t=Fe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Ise(t)]}),Ese=()=>({backIcon:In(),prefixCls:String,title:In(),subTitle:In(),breadcrumb:V.object,tags:In(),footer:In(),extra:In(),avatar:Re(),ghost:{type:Boolean,default:void 0},onBack:Function}),Mse=oe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Ese(),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,pageHeader:a}=Te("page-header",e),[s,c]=Tse(l),u=te(!1),d=YE(),f=x=>{let{width:C}=x;d.value||(u.value=C<768)},g=P(()=>{var x,C,O;return(O=(x=e.ghost)!==null&&x!==void 0?x:(C=a==null?void 0:a.value)===null||C===void 0?void 0:C.ghost)!==null&&O!==void 0?O:!0}),v=()=>{var x,C,O;return(O=(x=e.backIcon)!==null&&x!==void 0?x:(C=o.backIcon)===null||C===void 0?void 0:C.call(o))!==null&&O!==void 0?O:i.value==="rtl"?p(Sse,null,null):p(vse,null,null)},h=x=>!x||!e.onBack?null:p(bi,{componentName:"PageHeader",children:C=>{let{back:O}=C;return p("div",{class:`${l.value}-back`},[p(Cf,{onClick:w=>{n("back",w)},class:`${l.value}-back-button`,"aria-label":O},{default:()=>[x]})])}},null),b=()=>{var x;return e.breadcrumb?p(oi,e.breadcrumb,null):(x=o.breadcrumb)===null||x===void 0?void 0:x.call(o)},y=()=>{var x,C,O,w,I,T,_,E,A;const{avatar:R}=e,z=(x=e.title)!==null&&x!==void 0?x:(C=o.title)===null||C===void 0?void 0:C.call(o),M=(O=e.subTitle)!==null&&O!==void 0?O:(w=o.subTitle)===null||w===void 0?void 0:w.call(o),B=(I=e.tags)!==null&&I!==void 0?I:(T=o.tags)===null||T===void 0?void 0:T.call(o),N=(_=e.extra)!==null&&_!==void 0?_:(E=o.extra)===null||E===void 0?void 0:E.call(o),F=`${l.value}-heading`,L=z||M||B||N;if(!L)return null;const k=v(),j=h(k);return p("div",{class:F},[(j||R||L)&&p("div",{class:`${F}-left`},[j,R?p(ni,R,null):(A=o.avatar)===null||A===void 0?void 0:A.call(o),z&&p("span",{class:`${F}-title`,title:typeof z=="string"?z:void 0},[z]),M&&p("span",{class:`${F}-sub-title`,title:typeof M=="string"?M:void 0},[M]),B&&p("span",{class:`${F}-tags`},[B])]),N&&p("span",{class:`${F}-extra`},[p(i5,null,{default:()=>[N]})])])},S=()=>{var x,C;const O=(x=e.footer)!==null&&x!==void 0?x:_t((C=o.footer)===null||C===void 0?void 0:C.call(o));return rD(O)?null:p("div",{class:`${l.value}-footer`},[O])},$=x=>p("div",{class:`${l.value}-content`},[x]);return()=>{var x,C;const O=((x=e.breadcrumb)===null||x===void 0?void 0:x.routes)||o.breadcrumb,w=e.footer||o.footer,I=yt((C=o.default)===null||C===void 0?void 0:C.call(o)),T=ie(l.value,{"has-breadcrumb":O,"has-footer":w,[`${l.value}-ghost`]:g.value,[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-compact`]:u.value},r.class,c.value);return s(p(xo,{onResize:f},{default:()=>[p("div",D(D({},r),{},{class:T}),[b(),y(),I.length?$(I):null,S()])]}))}}}),_se=Tt(Mse),Ase=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:l,marginXS:i,fontSize:a,fontWeightStrong:s,lineHeight:c}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:i,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:l,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*c)-a)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+i,marginBottom:i,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},Rse=Ve("Popconfirm",e=>Ase(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var Dse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Db()),{prefixCls:String,content:St(),title:St(),description:St(),okType:Be("primary"),disabled:{type:Boolean,default:!1},okText:St(),cancelText:St(),icon:St(),okButtonProps:Re(),cancelButtonProps:Re(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Nse=oe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:qe(Bse(),m(m({},OT()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:l}=t;const i=le();It(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=i.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[a,s]=Pt(!1,{value:ze(e,"open")}),c=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},u=O=>{c(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},f=O=>{var w;c(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===Oe.ESC&&a&&c(!1,O)},v=O=>{const{disabled:w}=e;w||c(O)},{prefixCls:h,getPrefixCls:b}=Te("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=Rse(h),[x]=Io("Popconfirm",jn.Popconfirm),C=()=>{var O,w,I,T,_;const{okButtonProps:E,cancelButtonProps:A,title:R=(O=n.title)===null||O===void 0?void 0:O.call(n),description:z=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:M=(I=n.cancel)===null||I===void 0?void 0:I.call(n),okText:B=(T=n.okText)===null||T===void 0?void 0:T.call(n),okType:N,icon:F=((_=n.icon)===null||_===void 0?void 0:_.call(n))||p(Hr,null,null),showCancel:L=!0}=e,{cancelButton:k,okButton:j}=n,H=m({onClick:f,size:"small"},A),Y=m(m(m({onClick:d},ef(N)),{size:"small"}),E);return p("div",{class:`${h.value}-inner-content`},[p("div",{class:`${h.value}-message`},[F&&p("span",{class:`${h.value}-message-icon`},[F]),p("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!z}]},[R])]),z&&p("div",{class:`${h.value}-description`},[z]),p("div",{class:`${h.value}-buttons`},[L?k?k(H):p(zt,H,{default:()=>[M||x.value.cancelText]}):null,j?j(Y):p(bm,{buttonProps:m(m({size:"small"},ef(N)),E),actionFn:d,close:u,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[B||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:I,trigger:T="click"}=e,_=Dse(e,["placement","overlayClassName","trigger"]),E=et(_,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),A=ie(h.value,I);return $(p(Lb,D(D(D({},E),l),{},{trigger:T,placement:w,onOpenChange:v,open:a.value,overlayClassName:A,transitionName:_n(y.value,"zoom-big",e.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[VN(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:R=>{g(R)}},!1)],content:C}))}}}),Fse=Tt(Nse),Lse=["normal","exception","active","success"],Yp=()=>({prefixCls:String,type:Be(),percent:Number,format:ve(),status:Be(),showInfo:Ce(),strokeWidth:Number,strokeLinecap:Be(),strokeColor:St(),trailColor:String,width:Number,success:Re(),gapDegree:Number,gapPosition:Be(),size:Le([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Be()});function li(e){return!e||e<0?0:e>100?100:e}function xf(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(xt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function kse(e){let{percent:t,success:n,successPercent:o}=e;const r=li(xf({success:n,successPercent:o}));return[r,li(li(t)-r)]}function zse(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||la.green,n||null]}const qp=(e,t,n)=>{var o,r,l,i;let a=-1,s=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,s=u??8):typeof e=="number"?[a,s]=[e,e]:[a=14,s=8]=e,a*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=c||(e==="small"?6:8):typeof e=="number"?[a,s]=[e,e]:[a=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,s]=[e,e]:(a=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(i=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&i!==void 0?i:120));return{width:a,height:s}};var Hse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Yp()),{strokeColor:St(),direction:Be()}),Wse=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},Vse=(e,t)=>{const{from:n=la.blue,to:o=la.blue,direction:r=t==="rtl"?"to left":"to right"}=e,l=Hse(e,["from","to","direction"]);if(Object.keys(l).length!==0){const i=Wse(l);return{backgroundImage:`linear-gradient(${r}, ${i})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},Kse=oe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:jse(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Vse(g,v):{backgroundColor:g}}),l=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),a=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>qp(a.value,"line",{strokeWidth:e.strokeWidth})),c=P(()=>{const{percent:g}=e;return m({width:`${li(g)}%`,height:`${s.value.height}px`,borderRadius:l.value},r.value)}),u=P(()=>xf(e)),d=P(()=>{const{success:g}=e;return{width:`${li(u.value)}%`,height:`${s.value.height}px`,borderRadius:l.value,backgroundColor:g==null?void 0:g.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return p(We,null,[p("div",D(D({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,f]}),[p("div",{class:`${e.prefixCls}-inner`,style:i.value},[p("div",{class:`${e.prefixCls}-bg`,style:c.value},null),u.value!==void 0?p("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),Gse={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Xse=e=>{const t=le(null);return An(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const l=(r==null?void 0:r.$el)||r;if(!l)return;o=!0;const i=l.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Use={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Yse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,l=arguments.length>5?arguments[5]:void 0;const i=50-o/2;let a=0,s=-i,c=0,u=-2*i;switch(l){case"left":a=-i,s=0,c=2*i,u=0;break;case"right":a=i,s=0,c=-2*i,u=0;break;case"bottom":s=i,u=2*i;break}const d=`M 50,50 m ${a},${s} - a ${i},${i} 0 1 1 ${c},${-u} - a ${i},${i} 0 1 1 ${-c},${u}`,f=Math.PI*2*i,g={stroke:n,strokeDasharray:`${t/100*(f-r)}px ${f}px`,strokeDashoffset:`-${r/2+e/100*(f-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const qse=oe({compatConfig:{MODE:3},name:"VCCircle",props:qe(Use,Gse),setup(e){I2+=1;const t=le(I2),n=P(()=>E2(e.percent)),o=P(()=>E2(e.strokeColor)),[r,l]=Sy();Xse(l);const i=()=>{const{prefixCls:a,strokeWidth:s,strokeLinecap:c,gapDegree:u,gapPosition:d}=e;let f=0;return n.value.map((g,v)=>{const h=o.value[v]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${a}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=M2(f,g,h,s,u,d);f+=g;const $={key:v,d:y,stroke:b,"stroke-linecap":c,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${a}-circle-path`,style:S};return p("path",D({ref:r(v)},$),null)})};return()=>{const{prefixCls:a,strokeWidth:s,trailWidth:c,gapDegree:u,gapPosition:d,trailColor:f,strokeLinecap:g,strokeColor:v}=e,h=Yse(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=M2(0,100,f,s,u,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:f,"stroke-linecap":g,"stroke-width":c||s,"fill-opacity":"0",class:`${a}-circle-trail`,style:y};return p("svg",D({class:`${a}-circle`,viewBox:"0 0 100 100"},h),[S&&p("defs",null,[p("linearGradient",{id:`${a}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>T2(x)-T2(C)).map((x,C)=>p("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),p("path",$,null),i().reverse()])}}}),Zse=()=>m(m({},Yp()),{strokeColor:St()}),Qse=3,Jse=e=>Qse/e*100,ece=oe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:qe(Zse(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),l=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),i=P(()=>qp(l.value,"circle")),a=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),c=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(Jse(i.value.width),6)}),u=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>kse(e)),f=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>zse({success:e.success,strokeColor:e.strokeColor})),v=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var h;const b=p(qse,{percent:d.value,strokeWidth:c.value,trailWidth:c.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:u.value},null);return p("div",D(D({},o),{},{class:[v.value,o.class],style:[o.style,s.value]}),[i.value.width<=20?p(Yn,null,{default:()=>[p("span",null,[b])],title:n.default}):p(We,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),tce=()=>m(m({},Yp()),{steps:Number,strokeColor:Le(),trailColor:String}),nce=oe({compatConfig:{MODE:3},name:"Steps",props:tce(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[e.size==="small"?2:14,e.strokeWidth||8]}),l=P(()=>qp(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=P(()=>{const{steps:a,strokeColor:s,trailColor:c,prefixCls:u}=e,d=[];for(let f=0;f{var a;return p("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),oce=new nt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),rce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Xe(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:oce,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},lce=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},ice=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},ace=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},sce=Ve("Progress",e=>{const t=e.marginXXS/2,n=Fe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[rce(n),lce(n),ice(n),ace(n)]});var cce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),c=P(()=>{const{percent:v=0}=e,h=xf(e);return parseInt(h!==void 0?h.toString():v.toString(),10)}),u=P(()=>{const{status:v}=e;return!Lse.includes(v)&&c.value>=100?"success":v||"normal"}),d=P(()=>{const{type:v,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:v==="circle"&&qp(b,"circle").width<=20,[`${y}-${v==="dashboard"&&"circle"||v}`]:!0,[`${y}-status-${u.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:l.value==="rtl",[a.value]:!0}}),f=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:h,type:b,percent:y,title:S}=e,$=xf(e);if(!v)return null;let x;const C=h||(n==null?void 0:n.format)||(w=>`${w}%`),O=b==="line";return h||n!=null&&n.format||u.value!=="exception"&&u.value!=="success"?x=C(li(y),li($)):u.value==="exception"?x=p(O?Qn:Zn,null,null):u.value==="success"&&(x=p(O?zr:vp,null,null)),p("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:v,steps:h,title:b}=e,{class:y}=o,S=cce(o,["class"]),$=g();let x;return v==="line"?x=h?p(nce,D(D({},e),{},{strokeColor:f.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):p(Kse,D(D({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:l.value}),{default:()=>[$]}):(v==="circle"||v==="dashboard")&&(x=p(ece,D(D({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:u.value}),{default:()=>[$]})),i(p("div",D(D({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),b1=Tt(uce);function dce(e){let t=e.scrollX;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function fce(e){let t,n;const o=e.ownerDocument,{body:r}=o,l=o&&o.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=l.clientLeft||r.clientLeft||0,n-=l.clientTop||r.clientTop||0,{left:t,top:n}}function pce(e){const t=fce(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=dce(o),t.left}var gce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const hce=gce;function _2(e){for(var t=1;t{const{index:s}=e;n("hover",a,s)},r=a=>{const{index:s}=e;n("click",a,s)},l=a=>{const{index:s}=e;a.keyCode===13&&n("click",a,s)},i=P(()=>{const{prefixCls:a,index:s,value:c,allowHalf:u,focused:d}=e,f=s+1;let g=a;return c===0&&s===0&&d?g+=` ${a}-focused`:u&&c+.5>=f&&c{const{disabled:a,prefixCls:s,characterRender:c,character:u,index:d,count:f,value:g}=e,v=typeof u=="function"?u({disabled:a,prefixCls:s,index:d,count:f,value:g}):u;let h=p("li",{class:i.value},[p("div",{onClick:a?null:r,onKeydown:a?null:l,onMousemove:a?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:a?-1:0},[p("div",{class:`${s}-first`},[v]),p("div",{class:`${s}-second`},[v])])]);return c&&(h=c(h,e)),h}}}),Sce=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},$ce=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Cce=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Sce(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),$ce(e))}},xce=Ve("Rate",e=>{const{colorFillContent:t}=e,n=Fe(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Cce(n)]}),wce=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:V.any,autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),Oce=oe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:qe(wce(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:l}=t;const{prefixCls:i,direction:a}=Te("rate",e),[s,c]=xce(i),u=Qt(),d=le(),[f,g]=Sy(),v=ut({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});be(()=>e.value,()=>{v.value=e.value});const h=E=>Hn(g.value.get(E)),b=(E,A)=>{const R=a.value==="rtl";let z=E+1;if(e.allowHalf){const M=h(E),B=pce(M),N=M.clientWidth;(R&&A-B>N/2||!R&&A-B{e.value===void 0&&(v.value=E),r("update:value",E),r("change",E),u.onFieldChange()},S=(E,A)=>{const R=b(A,E.pageX);R!==v.cleanedValue&&(v.hoverValue=R,v.cleanedValue=null),r("hoverChange",R)},$=()=>{v.hoverValue=void 0,v.cleanedValue=null,r("hoverChange",void 0)},x=(E,A)=>{const{allowClear:R}=e,z=b(A,E.pageX);let M=!1;R&&(M=z===v.value),$(),y(M?0:z),v.cleanedValue=M?z:null},C=E=>{v.focused=!0,r("focus",E)},O=E=>{v.focused=!1,r("blur",E),u.onFieldBlur()},w=E=>{const{keyCode:A}=E,{count:R,allowHalf:z}=e,M=a.value==="rtl";A===Oe.RIGHT&&v.value0&&!M||A===Oe.RIGHT&&v.value>0&&M?(z?v.value-=.5:v.value-=1,y(v.value),E.preventDefault()):A===Oe.LEFT&&v.value{e.disabled||d.value.focus()};l({focus:I,blur:()=>{e.disabled||d.value.blur()}}),je(()=>{const{autofocus:E,disabled:A}=e;E&&!A&&I()});const _=(E,A)=>{let{index:R}=A;const{tooltips:z}=e;return z?p(Yn,{title:z[R]},{default:()=>[E]}):E};return()=>{const{count:E,allowHalf:A,disabled:R,tabindex:z,id:M=u.id.value}=e,{class:B,style:N}=o,F=[],L=R?`${i.value}-disabled`:"",k=e.character||n.character||(()=>p(mce,null,null));for(let H=0;Hp("svg",{width:"252",height:"294"},[p("defs",null,[p("path",{d:"M0 .387h251.772v251.772H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .012)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),p("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),p("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),p("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),p("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),p("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),p("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),p("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),p("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),p("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),p("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),p("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),p("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),p("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),p("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),p("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),p("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),p("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),p("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),p("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),p("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),p("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),p("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),p("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),p("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),p("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),p("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),p("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),p("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),p("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),p("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),p("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),p("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),p("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),p("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),p("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),p("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Ace=_ce,Rce=()=>p("svg",{width:"254",height:"294"},[p("defs",null,[p("path",{d:"M0 .335h253.49v253.49H0z"},null),p("path",{d:"M0 293.665h253.49V.401H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .067)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),p("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),p("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),p("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),p("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),p("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),p("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),p("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),p("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),p("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),p("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),p("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),p("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),p("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),p("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),p("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),p("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),p("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),p("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),p("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),p("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),p("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),p("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),p("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),p("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),p("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),p("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),p("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),p("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),p("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),p("mask",{fill:"#fff"},null),p("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),p("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),p("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),p("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Dce=Rce,Bce=()=>p("svg",{width:"251",height:"294"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),p("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),p("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),p("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),p("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),p("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),p("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),p("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),p("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),p("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),p("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),p("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),p("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),p("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),p("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),p("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),p("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),p("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),p("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),p("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),p("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),p("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),p("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),p("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),p("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),p("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),p("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),p("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),p("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),p("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),p("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),p("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),p("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),p("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),p("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),p("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Nce=Bce,Fce=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:l,paddingXS:i,paddingLG:a,marginXS:s,lineHeight:c}=e;return{[t]:{padding:`${a*2}px ${l}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},Lce=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},kce=e=>[Fce(e),Lce(e)],zce=e=>kce(e),Hce=Ve("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,l=e.colorInfo,i=e.colorError,a=e.colorSuccess,s=e.colorWarning,c=Fe(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:l,resultErrorIconColor:i,resultSuccessIconColor:a,resultWarningIconColor:s});return[zce(c)]},{imageWidth:250,imageHeight:295}),jce={success:zr,error:Qn,info:Hr,warning:Mce},jc={404:Ace,500:Dce,403:Nce},Wce=Object.keys(jc),Vce=()=>({prefixCls:String,icon:V.any,status:{type:[Number,String],default:"info"},title:V.any,subTitle:V.any,extra:V.any}),Kce=(e,t)=>{let{status:n,icon:o}=t;if(Wce.includes(`${n}`)){const i=jc[n];return p("div",{class:`${e}-icon ${e}-image`},[p(i,null,null)])}const r=jce[n],l=o||p(r,null,null);return p("div",{class:`${e}-icon`},[l])},Gce=(e,t)=>t&&p("div",{class:`${e}-extra`},[t]),ii=oe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:Vce(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("result",e),[i,a]=Hce(r),s=P(()=>ie(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:l.value==="rtl"}));return()=>{var c,u,d,f,g,v,h,b;const y=(c=e.title)!==null&&c!==void 0?c:(u=n.title)===null||u===void 0?void 0:u.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(v=n.icon)===null||v===void 0?void 0:v.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return i(p("div",D(D({},o),{},{class:[s.value,o.class]}),[Kce(C,{status:e.status,icon:$}),p("div",{class:`${C}-title`},[y]),S&&p("div",{class:`${C}-subtitle`},[S]),Gce(C,x),n.default&&p("div",{class:`${C}-content`},[n.default()])]))}}});ii.PRESENTED_IMAGE_403=jc[403];ii.PRESENTED_IMAGE_404=jc[404];ii.PRESENTED_IMAGE_500=jc[500];ii.install=function(e){return e.component(ii.name,ii),e};const Xce=ii,Uce=Tt(Ry),a5=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:l,class:i}=n;let{length:a,offset:s,reverse:c}=n;a<0&&(c=!c,a=Math.abs(a),s=100-s);const u=r?{[c?"top":"bottom"]:`${s}%`,[c?"bottom":"top"]:"auto",height:`${a}%`}:{[c?"right":"left"]:`${s}%`,[c?"left":"right"]:"auto",width:`${a}%`},d=m(m({},l),u);return o?p("div",{class:i,style:d},null):null};a5.inheritAttrs=!1;const s5=a5,Yce=(e,t,n,o,r,l)=>{It();const i=Object.keys(t).map(parseFloat).sort((a,s)=>a-s);if(n&&o)for(let a=r;a<=l;a+=o)i.indexOf(a)===-1&&i.push(a);return i},c5=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:l,marks:i,dots:a,step:s,included:c,lowerBound:u,upperBound:d,max:f,min:g,dotStyle:v,activeDotStyle:h}=n,b=f-g,y=Yce(r,i,a,s,g,f).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!c&&S===d||c&&S<=d&&S>=u;let C=r?m(m({},v),{[l?"top":"bottom"]:$}):m(m({},v),{[l?"right":"left"]:$});x&&(C=m(m({},C),h));const O=ie({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:l});return p("span",{class:O,style:C,key:S},null)});return p("div",{class:`${o}-step`},[y])};c5.inheritAttrs=!1;const qce=c5,u5=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:l,reverse:i,marks:a,included:s,upperBound:c,lowerBound:u,max:d,min:f,onClickLabel:g}=n,v=Object.keys(a),h=o.mark,b=d-f,y=v.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof a[S]=="function"?a[S]():a[S],x=typeof $=="object"&&!Kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===c||s&&S<=c&&S>=u,w=ie({[`${r}-text`]:!0,[`${r}-text-active`]:O}),I={marginBottom:"-50%",[i?"top":"bottom"]:`${(S-f)/b*100}%`},T={transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:`${(S-f)/b*100}%`},_=l?I:T,E=x?m(m({},_),$.style):_,A={[nn?"onTouchstartPassive":"onTouchstart"]:R=>g(R,S)};return p("span",D({class:w,style:E,key:S,onMousedown:R=>g(R,S)},A),[C])});return p("div",{class:r},[y])};u5.inheritAttrs=!1;const Zce=u5,d5=oe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const l=te(!1),i=te(),a=()=>{document.activeElement===i.value&&(l.value=!0)},s=b=>{l.value=!1,o("blur",b)},c=()=>{l.value=!1},u=()=>{var b;(b=i.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=i.value)===null||b===void 0||b.blur()},f=()=>{l.value=!0,u()},g=b=>{b.preventDefault(),u(),o("mousedown",b)};r({focus:u,blur:d,clickFocus:f,ref:i});let v=null;je(()=>{v=Mt(document,"mouseup",a)}),Ze(()=>{v==null||v.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:I,onMouseenter:T,onMouseleave:_}=e,E=ie(n.class,{[`${b}-handle-click-focused`]:l.value}),A={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},R=[n.style,h.value];let z=C||0;(y||C===null)&&(z=null);let M;I&&(M=I(x));const B=m(m(m(m({},n),{role:"slider",tabindex:z}),A),{class:E,onBlur:s,onKeydown:c,onMousedown:g,onMouseenter:T,onMouseleave:_,ref:i,style:R});return p("div",D(D({},B),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":M}),null)}}});function Ah(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function f5(e,t){let{min:n,max:o}=t;return eo}function R2(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function D2(e,t){let{marks:n,step:o,min:r,max:l}=t;const i=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,p5(o)),c=Math.floor((l*s-r*s)/(o*s)),u=Math.min((e-r)/o,c),d=Math.round(u)*o+r;i.push(d)}const a=i.map(s=>Math.abs(e-s));return i[a.indexOf(Math.min(...a))]}function p5(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function B2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function N2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function F2(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function $1(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function g5(e,t){const{step:n}=t,o=isFinite(D2(e,t))?D2(e,t):0;return n===null?o:parseFloat(o.toFixed(p5(n)))}function Aa(e){e.stopPropagation(),e.preventDefault()}function Qce(e,t,n){const o={increase:(i,a)=>i+a,decrease:(i,a)=>i-a},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),l=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[l]?n.marks[l]:t}function h5(e,t,n){const o="increase",r="decrease";let l=o;switch(e.keyCode){case Oe.UP:l=t&&n?r:o;break;case Oe.RIGHT:l=!t&&n?r:o;break;case Oe.DOWN:l=t&&n?o:r;break;case Oe.LEFT:l=!t&&n?o:r;break;case Oe.END:return(i,a)=>a.max;case Oe.HOME:return(i,a)=>a.min;case Oe.PAGE_UP:return(i,a)=>i+a.step*2;case Oe.PAGE_DOWN:return(i,a)=>i-a.step*2;default:return}return(i,a)=>Qce(l,i,a)}var Jce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:l,style:i}=n,a=Jce(n,["index","directives","className","style"]);if(delete a.dragging,a.value===null)return null;const s=m(m({},a),{class:l,style:i,key:o});return p(d5,s,null)},onDown(n,o){let r=o;const{draggableTrack:l,vertical:i}=this.$props,{bounds:a}=this.$data,s=l&&this.positionGetValue?this.positionGetValue(r)||[]:[],c=Ah(n,this.handlesRefs);if(this.dragTrack=l&&a.length>=2&&!c&&!s.map((u,d)=>{const f=d?!0:u>=a[d];return d===s.length-1?u<=a[d]:f}).some(u=>!u),this.dragTrack)this.dragOffset=r,this.startBounds=[...a];else{if(!c)this.dragOffset=0;else{const u=F2(i,n.target);this.dragOffset=r-u,r=u}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=B2(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(R2(n))return;const o=this.vertical,r=N2(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Aa(n)},onFocus(n){const{vertical:o}=this;if(Ah(n,this.handlesRefs)&&!this.dragTrack){const r=F2(o,n.target);this.dragOffset=0,this.onStart(r),Aa(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=B2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(R2(n)||!this.sliderRef){this.onEnd();return}const o=N2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Ah(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,l=n.getBoundingClientRect();return o?r?l.bottom:l.top:window.scrollX+(r?l.right:l.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=Mt(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Mt(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Mt(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Mt(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:l}=this,i=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-i)*(l-r)+r:i*(l-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,l=(n-o)/(r-o);return Math.max(0,l*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:l,included:i,disabled:a,vertical:s,reverse:c,min:u,max:d,maximumTrackStyle:f,railStyle:g,dotStyle:v,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=ie(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:a,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,reverse:c,class:`${n}-mark`,onClickLabel:a?Ll:this.onClickMarkLabel},w={[nn?"onTouchstartPassive":"onTouchstart"]:a?Ll:this.onTouchStart};return p("div",D(D({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:a?Ll:this.onMouseDown,onMouseup:a?Ll:this.onMouseUp,onKeydown:a?Ll:this.onKeyDown,onFocus:a?Ll:this.onFocus,onBlur:a?Ll:this.onBlur,style:S}),[p("div",{class:`${n}-rail`,style:m(m({},f),g)},null),$,p(qce,{prefixCls:n,vertical:s,reverse:c,marks:o,dots:r,step:l,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:u,dotStyle:v,activeDotStyle:h},null),x,p(Zce,O,{mark:this.$slots.mark}),Gf(this)])}})}const eue=oe({compatConfig:{MODE:3},name:"Slider",mixins:[xi],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:V.oneOfType([V.number,V.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),f5(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!xr(this,"value"),n=e.sValue>this.max?m(m({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Aa(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{sValue:r}=this,l=o(r,this.$props),i=this.trimAlignValue(l);if(i===r)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=m(m({},this.$props),t),o=$1(e,n);return g5(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:l,mergedTrackStyle:i,length:a,offset:s}=e;return p(s5,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:m(m({},l),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:l,handleStyle:i,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:c,ariaValueTextFormatterForHandle:u,min:d,max:f,startPoint:g,reverse:v,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:f,reverse:v,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:c,ariaValueTextFormatter:u,style:i[0]||i,ref:I=>this.saveHandle(0,I),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=l[0]||l;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),tue=v5(eue),ls=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:l,pushable:i}=r,a=Number(i),s=$1(t,r);let c=s;return!l&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+a&&(c=o[n-1]+a),n=o[n+1]-a&&(c=o[n+1]-a)),g5(c,r)},nue={defaultValue:V.arrayOf(V.number),value:V.arrayOf(V.number),count:Number,pushable:qP(V.oneOfType([V.looseBool,V.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:V.arrayOf(V.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},oue=oe({compatConfig:{MODE:3},name:"Range",mixins:[xi],inheritAttrs:!1,props:qe(nue,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=xr(this,"defaultValue")?this.defaultValue:o;let{value:l}=this;l===void 0&&(l=r);const i=l.map((s,c)=>ls({value:s,handle:c,props:this.$props}));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>ls({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>ls({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>f5(o,this.$props))){const o=e.map(r=>$1(r,this.$props));this.$emit("change",o)}},onChange(e){if(!xr(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(l=>{e[l]!==void 0&&(r[l]=e[l])}),Object.keys(r).length&&this.setState(r)}const o=m(m({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),l=t[r];if(n===l)return null;const i=[...t];return i[r]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const l=[...t];l[this.prevMovedHandleIndex]=n,this.onChange({bounds:l})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Aa(e);const{$data:r,$props:l}=this,i=l.max||100,a=l.min||0;if(n){let f=l.vertical?-t:t;f=l.reverse?-f:f;const g=i-Math.max(...o),v=a-Math.min(...o),h=Math.min(Math.max(f/(this.getSliderLength()/100),v),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,i),a)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:c}=this,u=this.calcValueByPos(t),d=s[c];u!==d&&this.moveTo(u)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=h5(e,n,t);if(o){Aa(e);const{bounds:r,sHandle:l}=this,i=r[l===null?this.recent:l],a=o(i,this.$props),s=ls({value:a,handle:l,bounds:r,props:this.$props});if(s===i)return;const c=!0;this.moveTo(s,c)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)a-s),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,l=o===null?r:o;n[l]=e;let i=l;this.$props.pushable!==!1?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort((a,s)=>a-s),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[i].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let l=0;if(e[t+1]-n=o.length||l<0)return!1;const i=t+n,a=o[l],{pushable:s}=this,c=Number(s),u=n*(e[i]-a);return this.pushHandle(e,i,n,c-u)?(e[t]=a,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return ls({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const l=this.$data||{},{bounds:i}=l;if(e=e===void 0?l.sHandle:e,r=Number(r),!o&&e!=null&&i!==void 0){if(e>0&&t<=i[e-1]+r)return i[e-1]+r;if(e=i[e+1]-r)return i[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:l,offsets:i,trackStyle:a}=e;return t.slice(0,-1).map((s,c)=>{const u=c+1,d=ie({[`${n}-track`]:!0,[`${n}-track-${u}`]:!0});return p(s5,{class:d,vertical:r,reverse:o,included:l,offset:i[u-1],length:i[u]-i[u-1],style:a[c],key:u},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:l,min:i,max:a,reverse:s,handle:c,defaultHandle:u,trackStyle:d,handleStyle:f,tabindex:g,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=c||u,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(l||g[O]===null)&&(w=null);const I=e===O;return y({class:ie({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:I}),prefixCls:n,vertical:o,dragging:I,offset:S[O],value:C,index:O,tabindex:w,min:i,max:a,reverse:s,disabled:l,style:f[O],ref:T=>this.saveHandle(O,T),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),rue=v5(oue),lue=oe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:wT(),setup(e,t){let{attrs:n,slots:o}=t;const r=le(null),l=le(null);function i(){Ye.cancel(l.value),l.value=null}function a(){l.value=Ye(()=>{var c;(c=r.value)===null||c===void 0||c.forcePopupAlign(),l.value=null})}const s=()=>{i(),e.open&&a()};return be([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Bf(()=>{s()}),Ze(()=>{i()}),()=>p(Yn,D(D({ref:r},e),n),o)}}),iue=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:l,colorFillContentHover:i}=e;return{[t]:m(m({},Xe(e)),{position:"relative",height:n,margin:`${l}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${l}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${e.motionDurationMid}, - inset-block-start ${e.motionDurationMid}, - width ${e.motionDurationMid}, - height ${e.motionDurationMid}, - box-shadow ${e.motionDurationMid} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[` - ${t}-dot - `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new gt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}}})}},m5=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:l}=e,i=t?"paddingBlock":"paddingInline",a=t?"width":"height",s=t?"height":"width",c=t?"insetBlockStart":"insetInlineStart",u=t?"top":"insetInlineStart";return{[i]:o,[s]:o*3,[`${n}-rail`]:{[a]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[c]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[u]:r,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[u]:o,[a]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[c]:(o-l)/2}}},aue=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:m(m({},m5(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},sue=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:m(m({},m5(e,!1)),{height:"100%"})}},cue=Ve("Slider",e=>{const t=Fe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[iue(t),aue(t),sue(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:l}});var L2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",due=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Le([Boolean,Object]),reverse:Ce(),min:Number,max:Number,step:Le([Object,Number]),marks:Re(),dots:Ce(),value:Le([Array,Number]),defaultValue:Le([Array,Number]),included:Ce(),disabled:Ce(),vertical:Ce(),tipFormatter:Le([Function,Object],()=>uue),tooltipOpen:Ce(),tooltipVisible:Ce(),tooltipPlacement:Be(),getTooltipPopupContainer:ve(),autofocus:Ce(),handleStyle:Le([Array,Object]),trackStyle:Le([Array,Object]),onChange:ve(),onAfterChange:ve(),onFocus:ve(),onBlur:ve(),"onUpdate:value":ve()}),fue=oe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:due(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;const{prefixCls:i,rootPrefixCls:a,direction:s,getPopupContainer:c,configProvider:u}=Te("slider",e),[d,f]=cue(i),g=Qt(),v=le(),h=le({}),b=(w,I)=>{h.value[w]=I},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=v.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=v.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};l({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:I}=w,T=w.info,{value:_,dragging:E,index:A}=T,R=L2(T,["value","dragging","index"]);const{tipFormatter:z,tooltipOpen:M=e.tooltipVisible,getTooltipPopupContainer:B}=e,N=z?h.value[A]||E:!1,F=M||M===void 0&&N;return p(lue,{prefixCls:I,title:z?z(_):"",open:F,placement:y.value,transitionName:`${a.value}-zoom-down`,key:A,overlayClassName:`${i.value}-tooltip`,getPopupContainer:B||(c==null?void 0:c.value)},{default:()=>[p(d5,D(D({},R),{},{value:_,onMouseenter:()=>b(A,!0),onMouseleave:()=>b(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:I,id:T=g.id.value}=e,_=L2(e,["tooltipPrefixCls","range","id"]),E=u.getPrefixCls("tooltip",w),A=ie(n.class,{[`${i.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!_.vertical&&(_.reverse=!_.reverse);let R;return typeof I=="object"&&(R=I.draggableTrack),d(I?p(rue,D(D(D({},n),_),{},{step:_.step,draggableTrack:R,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}):p(tue,D(D(D({},n),_),{},{id:T,step:_.step,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:i.value,info:z}),prefixCls:i.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),pue=Tt(fue);function k2(e){return typeof e=="string"}function gue(){}const b5=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Be(),iconPrefix:String,icon:V.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:V.any,title:V.any,subTitle:V.any,progressDot:qP(V.oneOfType([V.looseBool,V.func])),tailContent:V.any,icons:V.shape({finish:V.any,error:V.any}).loose,onClick:ve(),onStepClick:ve(),stepIcon:ve(),itemRender:ve(),__legacy:Ce()}),y5=oe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:b5(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const l=a=>{o("click",a),o("stepClick",e.stepIndex)},i=a=>{let{icon:s,title:c,description:u}=a;const{prefixCls:d,stepNumber:f,status:g,iconPrefix:v,icons:h,progressDot:b=n.progressDot,stepIcon:y=n.stepIcon}=e;let S;const $=ie(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&k2(s),[`${v}icon-check`]:!s&&g==="finish"&&(h&&!h.finish||!h),[`${v}icon-cross`]:!s&&g==="error"&&(h&&!h.error||!h)}),x=p("span",{class:`${d}-icon-dot`},null);return b?typeof b=="function"?S=p("span",{class:`${d}-icon`},[b({iconDot:x,index:f-1,status:g,title:c,description:u,prefixCls:d})]):S=p("span",{class:`${d}-icon`},[x]):s&&!k2(s)?S=p("span",{class:`${d}-icon`},[s]):h&&h.finish&&g==="finish"?S=p("span",{class:`${d}-icon`},[h.finish]):h&&h.error&&g==="error"?S=p("span",{class:`${d}-icon`},[h.error]):s||g==="finish"||g==="error"?S=p("span",{class:$},null):S=p("span",{class:`${d}-icon`},[f]),y&&(S=y({index:f-1,status:g,title:c,description:u,node:S})),S};return()=>{var a,s,c,u;const{prefixCls:d,itemWidth:f,active:g,status:v="wait",tailContent:h,adjustMarginRight:b,disabled:y,title:S=(a=n.title)===null||a===void 0?void 0:a.call(n),description:$=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:x=(c=n.subTitle)===null||c===void 0?void 0:c.call(n),icon:C=(u=n.icon)===null||u===void 0?void 0:u.call(n),onClick:O,onStepClick:w}=e,I=v||"wait",T=ie(`${d}-item`,`${d}-item-${I}`,{[`${d}-item-custom`]:C,[`${d}-item-active`]:g,[`${d}-item-disabled`]:y===!0}),_={};f&&(_.width=f),b&&(_.marginRight=b);const E={onClick:O||gue};w&&!y&&(E.role="button",E.tabindex=0,E.onClick=l);const A=p("div",D(D({},et(r,["__legacy"])),{},{class:[T,r.class],style:[r.style,_]}),[p("div",D(D({},E),{},{class:`${d}-item-container`}),[p("div",{class:`${d}-item-tail`},[h]),p("div",{class:`${d}-item-icon`},[i({icon:C,title:S,description:$})]),p("div",{class:`${d}-item-content`},[p("div",{class:`${d}-item-title`},[S,x&&p("div",{title:typeof x=="string"?x:void 0,class:`${d}-item-subtitle`},[x])]),$&&p("div",{class:`${d}-item-description`},[$])])])]);return e.itemRender?e.itemRender(A):A}}});var hue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r[]),icons:V.shape({finish:V.any,error:V.any}).loose,stepIcon:ve(),isInline:V.looseBool,itemRender:ve()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=a=>{const{current:s}=e;s!==a&&o("change",a)},l=(a,s,c)=>{const{prefixCls:u,iconPrefix:d,status:f,current:g,initial:v,icons:h,stepIcon:b=n.stepIcon,isInline:y,itemRender:S,progressDot:$=n.progressDot}=e,x=y||$,C=m(m({},a),{class:""}),O=v+s,w={active:O===g,stepNumber:O+1,stepIndex:O,key:O,prefixCls:u,iconPrefix:d,progressDot:x,stepIcon:b,icons:h,onStepClick:r};return f==="error"&&s===g-1&&(C.class=`${u}-next-error`),C.status||(O===g?C.status=f:OS(C,I)),p(y5,D(D(D({},C),w),{},{__legacy:!1}),null))},i=(a,s)=>l(m({},a.props),s,c=>dt(a,c));return()=>{var a;const{prefixCls:s,direction:c,type:u,labelPlacement:d,iconPrefix:f,status:g,size:v,current:h,progressDot:b=n.progressDot,initial:y,icons:S,items:$,isInline:x,itemRender:C}=e,O=hue(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),w=u==="navigation",I=x||b,T=x?"horizontal":c,_=x?void 0:v,E=I?"vertical":d,A=ie(s,`${s}-${c}`,{[`${s}-${_}`]:_,[`${s}-label-${E}`]:T==="horizontal",[`${s}-dot`]:!!I,[`${s}-navigation`]:w,[`${s}-inline`]:x});return p("div",D({class:A},O),[$.filter(R=>R).map((R,z)=>l(R,z)),_t((a=n.default)===null||a===void 0?void 0:a.call(n)).map(i)])}}}),mue=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},bue=mue,yue=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},Sue=yue,$ue=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:l}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${l}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:m(m({maxWidth:"100%",paddingInlineEnd:0},Gt),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${l}, inset-inline-start ${l}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Cue=$ue,xue=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},wue=xue,Oue=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:l,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:l,height:l,marginInlineStart:(e.descriptionWidth-l)/2,paddingInlineEnd:0,lineHeight:`${l}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(l-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(l-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-l)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(l-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-l)/2,insetInlineStart:0,margin:0,padding:`${l+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(l-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-l)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-l)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Pue=Oue,Iue=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Tue=Iue,Eue=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:l}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:l,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Mue=Eue,_ue=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Aue=_ue,Rue=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,l=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${l}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:l+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":m({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-finish":m({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},i),"&-error":i,"&-active, &-process":m({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},Due=Rue;var Ji;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(Ji||(Ji={}));const Ou=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,l=`${e}DescriptionColor`,i=`${e}TailColor`,a=`${e}IconBgColor`,s=`${e}IconBorderColor`,c=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[c]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[c]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[l]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},Bue=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return m(m(m(m(m(m({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Ou(Ji.wait,e)),Ou(Ji.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Ou(Ji.finish,e)),Ou(Ji.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},Nue=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},Fue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m(m(m(m(m(m({},Xe(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Bue(e)),Nue(e)),bue(e)),Mue(e)),Aue(e)),Sue(e)),Pue(e)),Cue(e)),Tue(e)),wue(e)),Due(e))}},Lue=Ve("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:l,controlHeightLG:i,colorTextLightSolid:a,colorText:s,colorPrimary:c,colorTextLabel:u,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:g,controlItemBgActive:v,colorError:h,colorBgContainer:b,colorBorderSecondary:y}=e,S=e.controlHeight,$=e.colorSplit,x=Fe(e,{processTailColor:$,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:l,stepsSmallIconSize:o,stepsDotSize:l/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:c,processIconBorderColor:c,processDotColor:c,waitIconColor:t?n:u,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:$,waitIconBgColor:t?b:g,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:c,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:c,finishIconBgColor:t?b:v,finishIconBorderColor:t?c:v,finishDotColor:c,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:$,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:c,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:y});return[Fue(x)]},{descriptionWidth:140}),kue=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Ce(),items:at(),labelPlacement:Be(),status:Be(),size:Be(),direction:Be(),progressDot:Le([Boolean,Function]),type:Be(),onChange:ve(),"onUpdate:current":ve()}),Rh=oe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:qe(kue(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:l,direction:i,configProvider:a}=Te("steps",e),[s,c]=Lue(l),[,u]=Fr(),d=Va(),f=P(()=>e.responsive&&d.value.xs?"vertical":e.direction),g=P(()=>a.getPrefixCls("",e.iconPrefix)),v=$=>{r("update:current",$),r("change",$)},h=P(()=>e.type==="inline"),b=P(()=>h.value?void 0:e.percent),y=$=>{let{node:x,status:C}=$;if(C==="process"&&e.percent!==void 0){const O=e.size==="small"?u.value.controlHeight:u.value.controlHeightLG;return p("div",{class:`${l.value}-progress-icon`},[p(b1,{type:"circle",percent:b.value,size:O,strokeWidth:4,format:()=>null},null),x])}return x},S=P(()=>({finish:p(vp,{class:`${l.value}-finish-icon`},null),error:p(Zn,{class:`${l.value}-error-icon`},null)}));return()=>{const $=ie({[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-with-progress`]:b.value!==void 0},n.class,c.value),x=(C,O)=>C.description?p(Yn,{title:C.description},{default:()=>[O]}):O;return s(p(vue,D(D(D({icons:S.value},n),et(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:l.value,iconPrefix:g.value,class:$,onChange:v,isInline:h.value,itemRender:h.value?x:void 0}),m({stepIcon:y},o)))}}}),ud=oe(m(m({compatConfig:{MODE:3}},y5),{name:"AStep",props:b5()})),zue=m(Rh,{Step:ud,install:e=>(e.component(Rh.name,Rh),e.component(ud.name,ud),e)}),Hue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},jue=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Wue=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Vue=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},Kue=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m({},Xe(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Rr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},Gue=Ve("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,l=n-o*2,i=Fe(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:l*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:l/2,switchInnerMarginMaxSM:l+o+o*2,switchPinSizeSM:l,switchHandleShadow:`0 2px 4px 0 ${new gt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Kue(i),Vue(i),Wue(i),jue(i),Hue(i)]}),Xue=Cn("small","default"),Uue=()=>({id:String,prefixCls:String,size:V.oneOf(Xue),disabled:{type:Boolean,default:void 0},checkedChildren:V.any,unCheckedChildren:V.any,tabindex:V.oneOfType([V.string,V.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:V.oneOfType([V.string,V.number,V.looseBool]),checkedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!0),unCheckedValue:V.oneOfType([V.string,V.number,V.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),Yue=oe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:Uue(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;const i=Qt(),a=qn(),s=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:a.value});Ff(()=>{It(),It()});const c=le(e.checked!==void 0?e.checked:n.defaultChecked),u=P(()=>c.value===e.checkedValue);be(()=>e.checked,()=>{c.value=e.checked});const{prefixCls:d,direction:f,size:g}=Te("switch",e),[v,h]=Gue(d),b=le(),y=()=>{var T;(T=b.value)===null||T===void 0||T.focus()};r({focus:y,blur:()=>{var T;(T=b.value)===null||T===void 0||T.blur()}}),je(()=>{ot(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(T,_)=>{s.value||(l("update:checked",T),l("change",T,_),i.onFieldChange())},x=T=>{l("blur",T)},C=T=>{y();const _=u.value?e.unCheckedValue:e.checkedValue;$(_,T),l("click",_,T)},O=T=>{T.keyCode===Oe.LEFT?$(e.unCheckedValue,T):T.keyCode===Oe.RIGHT&&$(e.checkedValue,T),l("keydown",T)},w=T=>{var _;(_=b.value)===null||_===void 0||_.blur(),l("mouseup",T)},I=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:u.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[h.value]:!0}));return()=>{var T;return v(p(kb,null,{default:()=>[p("button",D(D(D({},et(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(T=e.id)!==null&&T!==void 0?T:i.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":c.value,disabled:s.value||e.loading,class:[n.class,I.value],ref:b}),[p("div",{class:`${d.value}-handle`},[e.loading?p(co,{class:`${d.value}-loading-icon`},null):null]),p("span",{class:`${d.value}-inner`},[p("span",{class:`${d.value}-inner-checked`},[qt(o,e,"checkedChildren")]),p("span",{class:`${d.value}-inner-unchecked`},[qt(o,e,"unCheckedChildren")])])])]}))}}}),que=Tt(Yue),S5=Symbol("TableContextProps"),Zue=e=>{Ge(S5,e)},ur=()=>He(S5,{}),Que="RC_TABLE_KEY";function $5(e){return e==null?[]:Array.isArray(e)?e:[e]}function C5(e,t){if(!t&&typeof t!="number")return e;const n=$5(t);let o=e;for(let r=0;r{const{key:r,dataIndex:l}=o||{};let i=r||$5(l).join("-")||Que;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function Jue(){const e={};function t(l,i){i&&Object.keys(i).forEach(a=>{const s=i[a];s&&typeof s=="object"?(l[a]=l[a]||{},t(l[a],s)):l[a]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,l)}),e}function ym(e){return e!=null}const x5=Symbol("SlotsContextProps"),ede=e=>{Ge(x5,e)},C1=()=>He(x5,P(()=>({}))),w5=Symbol("ContextProps"),tde=e=>{Ge(w5,e)},nde=()=>He(w5,{onResizeColumn:()=>{}});globalThis&&globalThis.__rest;const va="RC_TABLE_INTERNAL_COL_DEFINE",O5=Symbol("HoverContextProps"),ode=e=>{Ge(O5,e)},rde=()=>He(O5,{startRow:te(-1),endRow:te(-1),onHover(){}}),Sm=te(!1),lde=()=>{je(()=>{Sm.value=Sm.value||Ay("position","sticky")})},ide=()=>Sm;var ade=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function cde(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!Yt(e)}const Qp=oe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=C1(),{onHover:r,startRow:l,endRow:i}=rde(),a=P(()=>{var h,b,y,S;return(y=(h=e.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=P(()=>{var h,b,y,S;return(y=(h=e.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),c=ro(()=>{const{index:h}=e;return sde(h,s.value||1,l.value,i.value)}),u=ide(),d=(h,b)=>{var y;const{record:S,index:$,additionalProps:x}=e;S&&r($,$+b-1),(y=x==null?void 0:x.onMouseenter)===null||y===void 0||y.call(x,h)},f=h=>{var b;const{record:y,additionalProps:S}=e;y&&r(-1,-1),(b=S==null?void 0:S.onMouseleave)===null||b===void 0||b.call(S,h)},g=h=>{const b=_t(h)[0];return Yt(b)?b.type===Cl?b.children:Array.isArray(b.children)?g(b.children):void 0:b},v=te(null);return be([c,()=>e.prefixCls,v],()=>{const h=Hn(v.value);h&&(c.value?lf(h,`${e.prefixCls}-cell-row-hover`):af(h,`${e.prefixCls}-cell-row-hover`))}),()=>{var h,b,y,S,$,x;const{prefixCls:C,record:O,index:w,renderIndex:I,dataIndex:T,customRender:_,component:E="td",fixLeft:A,fixRight:R,firstFixLeft:z,lastFixLeft:M,firstFixRight:B,lastFixRight:N,appendNode:F=(h=n.appendNode)===null||h===void 0?void 0:h.call(n),additionalProps:L={},ellipsis:k,align:j,rowType:H,isSticky:Y,column:Z={},cellType:U}=e,ee=`${C}-cell`;let G,J;const Q=(b=n.default)===null||b===void 0?void 0:b.call(n);if(ym(Q)||U==="header")J=Q;else{const ue=C5(O,T);if(J=ue,_){const ce=_({text:ue,value:ue,record:O,index:w,renderIndex:I,column:Z.__originColumn__});cde(ce)?(J=ce.children,G=ce.props):J=ce}if(!(va in Z)&&U==="body"&&o.value.bodyCell&&!(!((y=Z.slots)===null||y===void 0)&&y.customRender)){const ce=np(o.value,"bodyCell",{text:ue,value:ue,record:O,index:w,column:Z.__originColumn__},()=>{const he=J===void 0?ue:J;return[typeof he=="object"&&Kt(he)||typeof he!="object"?he:null]});J=yt(ce)}e.transformCellText&&(J=e.transformCellText({text:J,record:O,index:w,column:Z.__originColumn__}))}typeof J=="object"&&!Array.isArray(J)&&!Yt(J)&&(J=null),k&&(M||B)&&(J=p("span",{class:`${ee}-content`},[J])),Array.isArray(J)&&J.length===1&&(J=J[0]);const K=G||{},{colSpan:q,rowSpan:pe,style:W,class:X}=K,ne=ade(K,["colSpan","rowSpan","style","class"]),ae=(S=q!==void 0?q:a.value)!==null&&S!==void 0?S:1,se=($=pe!==void 0?pe:s.value)!==null&&$!==void 0?$:1;if(ae===0||se===0)return null;const re={},de=typeof A=="number"&&u.value,ge=typeof R=="number"&&u.value;de&&(re.position="sticky",re.left=`${A}px`),ge&&(re.position="sticky",re.right=`${R}px`);const me={};j&&(me.textAlign=j);let fe;const ye=k===!0?{showTitle:!0}:k;ye&&(ye.showTitle||H==="header")&&(typeof J=="string"||typeof J=="number"?fe=J.toString():Yt(J)&&(fe=g([J])));const Se=m(m(m({title:fe},ne),L),{colSpan:ae!==1?ae:null,rowSpan:se!==1?se:null,class:ie(ee,{[`${ee}-fix-left`]:de&&u.value,[`${ee}-fix-left-first`]:z&&u.value,[`${ee}-fix-left-last`]:M&&u.value,[`${ee}-fix-right`]:ge&&u.value,[`${ee}-fix-right-first`]:B&&u.value,[`${ee}-fix-right-last`]:N&&u.value,[`${ee}-ellipsis`]:k,[`${ee}-with-append`]:F,[`${ee}-fix-sticky`]:(de||ge)&&Y&&u.value},L.class,X),onMouseenter:ue=>{d(ue,se)},onMouseleave:f,style:[L.style,me,re,W]});return p(E,D(D({},Se),{},{ref:v}),{default:()=>[F,J,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function x1(e,t,n,o,r){const l=n[e]||{},i=n[t]||{};let a,s;l.fixed==="left"?a=o.left[e]:i.fixed==="right"&&(s=o.right[t]);let c=!1,u=!1,d=!1,f=!1;const g=n[t+1],v=n[e-1];return r==="rtl"?a!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):a!==void 0?c=!(g&&g.fixed==="left"):s!==void 0&&(u=!(v&&v.fixed==="right")),{fixLeft:a,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const z2={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},H2=50,ude=oe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:H2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};Rn(()=>{r()}),ke(()=>{xt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:l}=nde(),i=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:H2),a=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=pn();let c=0;const u=te(!1);let d;const f=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(c-C,i.value);O=Math.min(O,a.value),Ye.cancel(d),d=Ye(()=>{l(O,e.column.__originColumn__)})},g=$=>{f($)},v=$=>{u.value=!1,f($),r()},h=($,x)=>{u.value=!0,r(),c=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=Mt(document.documentElement,x.move,g),o=Mt(document.documentElement,x.stop,v))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,z2.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[nn?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return p("div",D(D({class:`${$}-resize-handle ${u.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[p("div",{class:`${$}-resize-handle-line`},null)])}}}),dde=oe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=ur();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:l,flattenColumns:i,rowComponent:a,cellComponent:s,customHeaderRow:c,index:u}=e;let d;c&&(d=c(r.map(g=>g.column),u));const f=Zp(r.map(g=>g.column));return p(a,d,{default:()=>[r.map((g,v)=>{const{column:h}=g,b=x1(g.colStart,g.colEnd,i,l,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return p(Qp,D(D(D({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:f[v]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?p(ude,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function fde(e){const t=[];function n(r,l){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let a=l;return r.filter(Boolean).map(c=>{const u={key:c.key,class:ie(c.className,c.class),column:c,colStart:a};let d=1;const f=c.children;return f&&f.length>0&&(d=n(f,a,i+1).reduce((g,v)=>g+v,0),u.hasSubColumns=!0),"colSpan"in c&&({colSpan:d}=c),"rowSpan"in c&&(u.rowSpan=c.rowSpan),u.colSpan=d,u.colEnd=u.colStart+d-1,t[i].push(u),a+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=o-r)});return t}const j2=oe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=ur(),n=P(()=>fde(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:l,flattenColumns:i,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),c=r(["header","row"],"tr"),u=r(["header","cell"],"th");return p(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,f)=>p(dde,{key:f,flattenColumns:i,cells:d,stickyOffsets:l,rowComponent:c,cellComponent:u,customHeaderRow:a,index:f},null))]})}}}),P5=Symbol("ExpandedRowProps"),pde=e=>{Ge(P5,e)},gde=()=>He(P5,{}),I5=oe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=ur(),l=gde(),{fixHeader:i,fixColumn:a,componentWidth:s,horizonScroll:c}=l;return()=>{const{prefixCls:u,component:d,cellComponent:f,expanded:g,colSpan:v,isEmpty:h}=e;return p(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[p(Qp,{component:f,prefixCls:u,colSpan:v},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?c.value:a.value)&&(y=p("div",{style:{width:`${s.value-(i.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${u}-expanded-row-fixed`},[y])),y}})]})}}}),hde=oe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=le();return je(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>p(xo,{onResize:r=>{let{offsetWidth:l}=r;n("columnResize",e.columnKey,l)}},{default:()=>[p("td",{ref:o,style:{padding:0,border:0,height:0}},[p("div",{style:{height:0,overflow:"hidden"}},[Lt(" ")])])]})}}),T5=Symbol("BodyContextProps"),vde=e=>{Ge(T5,e)},E5=()=>He(T5,{}),mde=oe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=ur(),r=E5(),l=te(!1),i=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ke(()=>{i.value&&(l.value=!0)});const a=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),c=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),u=P(()=>a.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},f=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&u.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=f.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},v=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>Zp(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:I,fixedInfoList:T,transformCellText:_}=o,{flattenColumns:E,expandedRowClassName:A,indentSize:R,expandIcon:z,expandedRowRender:M,expandIconColumnIndex:B}=r,N=p(O,D(D({},f.value),{},{"data-row-key":x,class:ie(b,`${I}-row`,`${I}-row-level-${C}`,v.value,f.value.class),style:[y,f.value.style],onClick:g}),{default:()=>[E.map((L,k)=>{const{customRender:j,dataIndex:H,className:Y}=L,Z=h[k],U=T[k];let ee;L.customCell&&(ee=L.customCell(S,$,L));const G=k===(B||0)&&s.value?p(We,null,[p("span",{style:{paddingLeft:`${R*C}px`},class:`${I}-row-indent indent-level-${C}`},null),z({prefixCls:I,expanded:i.value,expandable:c.value,record:S,onExpand:d})]):null;return p(Qp,D(D({cellType:"body",class:Y,ellipsis:L.ellipsis,align:L.align,component:w,prefixCls:I,key:Z,record:S,index:$,renderIndex:e.renderIndex,dataIndex:H,customRender:j},U),{},{additionalProps:ee,column:L,transformCellText:_,appendNode:G}),null)})]});let F;if(a.value&&(l.value||i.value)){const L=M({record:S,index:$,indent:C+1,expanded:i.value}),k=A&&A(S,$,C);F=p(I5,{expanded:i.value,class:ie(`${I}-expanded-row`,`${I}-expanded-row-level-${C+1}`,k),prefixCls:I,component:O,cellComponent:w,colSpan:E.length,isEmpty:!1},{default:()=>[L]})}return p(We,null,[N,F])}}});function M5(e,t,n,o,r,l){const i=[];i.push({record:e,indent:t,index:l});const a=r(e),s=o==null?void 0:o.has(a);if(e&&Array.isArray(e[n])&&s)for(let c=0;c{const l=t.value,i=n.value,a=e.value;if(i!=null&&i.size){const s=[];for(let c=0;c<(a==null?void 0:a.length);c+=1){const u=a[c];s.push(...M5(u,0,l,i,o.value,c))}return s}return a==null?void 0:a.map((s,c)=>({record:s,indent:0,index:c}))})}const _5=Symbol("ResizeContextProps"),yde=e=>{Ge(_5,e)},Sde=()=>He(_5,{onColumnResize:()=>{}}),$de=oe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Sde(),r=ur(),l=E5(),i=bde(ze(e,"data"),ze(e,"childrenColumnName"),ze(e,"expandedKeys"),ze(e,"getRowKey")),a=te(-1),s=te(-1);let c;return ode({startRow:a,endRow:s,onHover:(u,d)=>{clearTimeout(c),c=setTimeout(()=>{a.value=u,s.value=d},100)}}),()=>{var u;const{data:d,getRowKey:f,measureColumnWidth:g,expandedKeys:v,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=l,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),I=x(["body","cell"],"td");let T;d.length?T=i.value.map((E,A)=>{const{record:R,indent:z,index:M}=E,B=f(R,A);return p(mde,{key:B,rowKey:B,record:R,recordKey:B,index:A,renderIndex:M,rowComponent:w,cellComponent:I,expandedKeys:v,customRow:h,getRowKey:f,rowExpandable:b,childrenColumnName:y,indent:z},null)}):T=p(I5,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:I,colSpan:C.length,isEmpty:!0},{default:()=>[(u=n.emptyNode)===null||u===void 0?void 0:u.call(n)]});const _=Zp(C);return p(O,{class:`${$}-tbody`},{default:()=>[g&&p("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[_.map(E=>p(hde,{key:E,columnKey:E,onColumnResize:S},null))]),T]})}}}),ol={};var Cde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,l=n.children;return l&&l.length>0?[...t,...$m(l).map(i=>m({fixed:r},i))]:[...t,m(m({},n),{fixed:r})]},[])}function xde(e){return e.map(t=>{const{fixed:n}=t,o=Cde(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),m({fixed:r},o)})}function wde(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:l,getRowKey:i,onTriggerExpand:a,expandIcon:s,rowExpandable:c,expandIconColumnIndex:u,direction:d,expandRowByClick:f,expandColumnWidth:g,expandFixed:v}=e;const h=C1(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(ol)){const R=u.value||0;R>=0&&$.splice(R,0,ol)}const x=$.indexOf(ol);$=$.filter((R,z)=>R!==ol||z===x);const C=o.value[x];let O;(v.value==="left"||v.value)&&!u.value?O="left":(v.value==="right"||v.value)&&u.value===o.value.length?O="right":O=C?C.fixed:null;const w=l.value,I=c.value,T=s.value,_=n.value,E=f.value,A={[va]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:np(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:R=>{let{record:z,index:M}=R;const B=i.value(z,M),N=w.has(B),F=I?I(z):!0,L=T({prefixCls:_,expanded:N,expandable:F,record:z,onExpand:a});return E?p("span",{onClick:k=>k.stopPropagation()},[L]):L}};return $.map(R=>R===ol?A:R)}return o.value.filter($=>$!==ol)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?xde($m(y.value)):$m(y.value));return[y,S]}function A5(e){const t=te(e);let n;const o=te([]);function r(l){o.value.push(l),Ye.cancel(n),n=Ye(()=>{const i=o.value;o.value=[],i.forEach(a=>{t.value=a(t.value)})})}return Ze(()=>{Ye.cancel(n)}),[t,r]}function Ode(e){const t=le(e||null),n=le();function o(){clearTimeout(n.value)}function r(i){t.value=i,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function l(){return t.value}return Ze(()=>{o()}),[r,l]}function Pde(e,t,n){return P(()=>{const r=[],l=[];let i=0,a=0;const s=e.value,c=t.value,u=n.value;for(let d=0;d=0;a-=1){const s=t[a],c=n&&n[a],u=c&&c[va];if(s||u||i){const d=u||{},f=Ide(d,["columnType"]);r.unshift(p("col",D({key:a,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),i=!0}}return p("colgroup",null,[r])}function Cm(e,t){let{slots:n}=t;var o;return p("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}Cm.displayName="Panel";let Tde=0;const Ede=oe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=ur(),r=`table-summary-uni-key-${++Tde}`,l=P(()=>e.fixed===""||e.fixed);return ke(()=>{o.summaryCollect(r,l.value)}),Ze(()=>{o.summaryCollect(r,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),Mde=Ede,_de=oe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return p("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),D5=Symbol("SummaryContextProps"),Ade=e=>{Ge(D5,e)},Rde=()=>He(D5,{}),Dde=oe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=ur(),l=Rde();return()=>{const{index:i,colSpan:a=1,rowSpan:s,align:c}=e,{prefixCls:u,direction:d}=r,{scrollColumnIndex:f,stickyOffsets:g,flattenColumns:v}=l,b=i+a-1+1===f?a+1:a,y=x1(i,i+b-1,v,g,d);return p(Qp,D({class:n.class,index:i,component:"td",prefixCls:u,record:null,dataIndex:null,align:c,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Pu=oe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=ur();return Ade(ut({stickyOffsets:ze(e,"stickyOffsets"),flattenColumns:ze(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,l=e.flattenColumns[r];return l!=null&&l.scrollbar?r:null})})),()=>{var r;const{prefixCls:l}=o;return p("tfoot",{class:`${l}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Bde=Mde;function Nde(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:l}=e;const i=`${t}-row-expand-icon`;if(!l)return p("span",{class:[i,`${t}-row-spaced`]},null);const a=s=>{o(n,s),s.stopPropagation()};return p("span",{class:{[i]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:a},null)}function Fde(e,t,n){const o=[];function r(l){(l||[]).forEach((i,a)=>{o.push(t(i,a)),r(i[n])})}return r(e),o}const Lde=oe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=ur(),l=te(0),i=te(0),a=te(0);ke(()=>{l.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,a.value=l.value&&i.value*(i.value/l.value)},{flush:"post"});const s=te(),[c,u]=A5({scrollLeft:0,isHiddenScrollBar:!0}),d=le({delta:0,x:0}),f=te(!1),g=()=>{f.value=!1},v=w=>{d.value={delta:w.pageX-c.value.scrollLeft,x:0},f.value=!0,w.preventDefault()},h=w=>{const{buttons:I}=w||(window==null?void 0:window.event);if(!f.value||I===0){f.value&&(f.value=!1);return}let T=d.value.x+w.pageX-d.value.x-d.value.delta;T<=0&&(T=0),T+a.value>=i.value&&(T=i.value-a.value),n("scroll",{scrollLeft:T/i.value*(l.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=jd(e.scrollBodyRef.value).top,I=w+e.scrollBodyRef.value.offsetHeight,T=e.container===window?document.documentElement.scrollTop+window.innerHeight:jd(e.container).top+e.container.clientHeight;I-zd()<=T||w>=T-e.offsetScroll?u(_=>m(m({},_),{isHiddenScrollBar:!0})):u(_=>m(m({},_),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{u(I=>m(m({},I),{scrollLeft:w/l.value*i.value||0}))}});let S=null,$=null,x=null,C=null;je(()=>{S=Mt(document.body,"mouseup",g,!1),$=Mt(document.body,"mousemove",h,!1),x=Mt(window,"resize",b,!1)}),Bf(()=>{ot(()=>{b()})}),je(()=>{setTimeout(()=>{be([a,f],()=>{b()},{immediate:!0,flush:"post"})})}),be(()=>e.container,()=>{C==null||C.remove(),C=Mt(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Ze(()=>{S==null||S.remove(),$==null||$.remove(),C==null||C.remove(),x==null||x.remove()}),be(()=>m({},c.value),(w,I)=>{w.isHiddenScrollBar!==(I==null?void 0:I.isHiddenScrollBar)&&!w.isHiddenScrollBar&&u(T=>{const _=e.scrollBodyRef.value;return _?m(m({},T),{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):T})},{immediate:!0});const O=zd();return()=>{if(l.value<=i.value||!a.value||c.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return p("div",{style:{height:`${O}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[p("div",{onMousedown:v,ref:s,class:ie(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:f.value}),style:{width:`${a.value}px`,transform:`translate3d(${c.value.scrollLeft}px, 0, 0)`}},null)])}}}),W2=Mn()?window:null;function kde(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:l=()=>W2}=typeof e.value=="object"?e.value:{},i=l()||W2,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:i}})}function zde(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let l=0;ll.isSticky&&!e.fixHeader?0:l.scrollbarSize),a=le(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},c=le();je(()=>{ot(()=>{c.value=Mt(a.value,"wheel",s)})}),Ze(()=>{var h;(h=c.value)===null||h===void 0||h.remove()});const u=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=le([]),f=le([]);ke(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${l.prefixCls}-cell-scrollbar`})};d.value=i.value?[...e.columns,b]:e.columns,f.value=i.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return m(m({},h),{left:b==="rtl"?[...S.map($=>$+i.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+i.value),0],isSticky:l.isSticky})}),v=zde(ze(e,"colWidths"),ze(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=l;return p("div",{style:m({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:a,class:ie(n.class,{[x]:!!x})},[p("table",{style:{tableLayout:"fixed",visibility:b||v.value?null:"hidden"}},[(!b||!C||u.value)&&p(R5,{colWidths:v.value?[...v.value,i.value]:[],columCount:y+1,columns:f.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,m(m({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:f.value}))])])}}});function K2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,ze(e,r)])))}const Hde=[],jde={},xm="rc-table-internal-hook",Wde=oe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const l=P(()=>e.data||Hde),i=P(()=>!!l.value.length),a=P(()=>Jue(e.components,{})),s=(ce,he)=>C5(a.value,ce)||he,c=P(()=>{const ce=e.rowKey;return typeof ce=="function"?ce:he=>he&&he[ce]}),u=P(()=>e.expandIcon||Nde),d=P(()=>e.childrenColumnName||"children"),f=P(()=>e.expandedRowRender?"row":e.canExpandable||l.value.some(ce=>ce&&typeof ce=="object"&&ce[d.value])?"nest":!1),g=te([]);ke(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Fde(l.value,c.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=ce=>{const he=c.value(ce,l.value.indexOf(ce));let Pe;const Ie=h.value.has(he);Ie?(h.value.delete(he),Pe=[...h.value]):Pe=[...h.value,he],g.value=Pe,r("expand",!Ie,ce),r("update:expandedRowKeys",Pe),r("expandedRowsChange",Pe)},y=le(0),[S,$]=wde(m(m({},No(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:c,onTriggerExpand:b,expandIcon:u}),P(()=>e.internalHooks===xm?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=le(),O=le(),w=le(),I=le({scrollWidth:0,clientWidth:0}),T=le(),[_,E]=vt(!1),[A,R]=vt(!1),[z,M]=A5(new Map),B=P(()=>Zp($.value)),N=P(()=>B.value.map(ce=>z.value.get(ce))),F=P(()=>$.value.length),L=Pde(N,F,ze(e,"direction")),k=P(()=>e.scroll&&ym(e.scroll.y)),j=P(()=>e.scroll&&ym(e.scroll.x)||!!e.expandFixed),H=P(()=>j.value&&$.value.some(ce=>{let{fixed:he}=ce;return he})),Y=le(),Z=kde(ze(e,"sticky"),ze(e,"prefixCls")),U=ut({}),ee=P(()=>{const ce=Object.values(U)[0];return(k.value||Z.value.isSticky)&&ce}),G=(ce,he)=>{he?U[ce]=he:delete U[ce]},J=le({}),Q=le({}),K=le({});ke(()=>{k.value&&(Q.value={overflowY:"scroll",maxHeight:Vl(e.scroll.y)}),j.value&&(J.value={overflowX:"auto"},k.value||(Q.value={overflowY:"hidden"}),K.value={width:e.scroll.x===!0?"auto":Vl(e.scroll.x),minWidth:"100%"})});const q=(ce,he)=>{op(C.value)&&M(Pe=>{if(Pe.get(ce)!==he){const Ie=new Map(Pe);return Ie.set(ce,he),Ie}return Pe})},[pe,W]=Ode(null);function X(ce,he){if(!he)return;if(typeof he=="function"){he(ce);return}const Pe=he.$el||he;Pe.scrollLeft!==ce&&(Pe.scrollLeft=ce)}const ne=ce=>{let{currentTarget:he,scrollLeft:Pe}=ce;var Ie;const Ae=e.direction==="rtl",$e=typeof Pe=="number"?Pe:he.scrollLeft,xe=he||jde;if((!W()||W()===xe)&&(pe(xe),X($e,O.value),X($e,w.value),X($e,T.value),X($e,(Ie=Y.value)===null||Ie===void 0?void 0:Ie.setScrollLeft)),he){const{scrollWidth:we,clientWidth:Me}=he;Ae?(E(-$e0)):(E($e>0),R($e{j.value&&w.value?ne({currentTarget:w.value}):(E(!1),R(!1))};let se;const re=ce=>{ce!==y.value&&(ae(),y.value=C.value?C.value.offsetWidth:ce)},de=ce=>{let{width:he}=ce;if(clearTimeout(se),y.value===0){re(he);return}se=setTimeout(()=>{re(he)},100)};be([j,()=>e.data,()=>e.columns],()=>{j.value&&ae()},{flush:"post"});const[ge,me]=vt(0);lde(),je(()=>{ot(()=>{var ce,he;ae(),me(Gk(w.value).width),I.value={scrollWidth:((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,clientWidth:((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0}})}),An(()=>{ot(()=>{var ce,he;const Pe=((ce=w.value)===null||ce===void 0?void 0:ce.scrollWidth)||0,Ie=((he=w.value)===null||he===void 0?void 0:he.clientWidth)||0;(I.value.scrollWidth!==Pe||I.value.clientWidth!==Ie)&&(I.value={scrollWidth:Pe,clientWidth:Ie})})}),ke(()=>{e.internalHooks===xm&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const fe=P(()=>e.tableLayout?e.tableLayout:H.value?e.scroll.x==="max-content"?"auto":"fixed":k.value||Z.value.isSticky||$.value.some(ce=>{let{ellipsis:he}=ce;return he})?"fixed":"auto"),ye=()=>{var ce;return i.value?null:((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||"No Data"};Zue(ut(m(m({},No(K2(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ge,fixedInfoList:P(()=>$.value.map((ce,he)=>x1(he,he,$.value,L.value,e.direction))),isSticky:P(()=>Z.value.isSticky),summaryCollect:G}))),vde(ut(m(m({},No(K2(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:fe,expandIcon:u,expandableType:f,onTriggerExpand:b}))),yde({onColumnResize:q}),pde({componentWidth:y,fixHeader:k,fixColumn:H,horizonScroll:j});const Se=()=>p($de,{data:l.value,measureColumnWidth:k.value||j.value||Z.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:c.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:ye}),ue=()=>p(R5,{colWidths:$.value.map(ce=>{let{width:he}=ce;return he}),columns:$.value},null);return()=>{var ce;const{prefixCls:he,scroll:Pe,tableLayout:Ie,direction:Ae,title:$e=o.title,footer:xe=o.footer,id:we,showHeader:Me,customHeaderRow:Ne}=e,{isSticky:_e,offsetHeader:De,offsetSummary:Je,offsetScroll:ft,stickyClassName:it,container:pt}=Z.value,ht=s(["table"],"table"),Ut=s(["body"]),Jt=(ce=o.summary)===null||ce===void 0?void 0:ce.call(o,{pageData:l.value});let rn=()=>null;const jt={colWidths:N.value,columCount:$.value.length,stickyOffsets:L.value,customHeaderRow:Ne,fixHeader:k.value,scroll:Pe};if(k.value||_e){let uo=()=>null;typeof Ut=="function"?(uo=()=>Ut(l.value,{scrollbarSize:ge.value,ref:w,onScroll:ne}),jt.colWidths=$.value.map((Vn,El)=>{let{width:Ee}=Vn;const Ue=El===S.value.length-1?Ee-ge.value:Ee;return typeof Ue=="number"&&!Number.isNaN(Ue)?Ue:0})):uo=()=>p("div",{style:m(m({},J.value),Q.value),onScroll:ne,ref:w,class:ie(`${he}-body`)},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Se(),!ee.value&&Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const To=m(m(m({noData:!l.value.length,maxContentScroll:j.value&&Pe.x==="max-content"},jt),x.value),{direction:Ae,stickyClassName:it,onScroll:ne});rn=()=>p(We,null,[Me!==!1&&p(V2,D(D({},To),{},{stickyTopOffset:De,class:`${he}-header`,ref:O}),{default:Vn=>p(We,null,[p(j2,Vn,null),ee.value==="top"&&p(Pu,Vn,{default:()=>[Jt]})])}),uo(),ee.value&&ee.value!=="top"&&p(V2,D(D({},To),{},{stickyBottomOffset:Je,class:`${he}-summary`,ref:T}),{default:Vn=>p(Pu,Vn,{default:()=>[Jt]})}),_e&&w.value&&p(Lde,{ref:Y,offsetScroll:ft,scrollBodyRef:w,onScroll:ne,container:pt,scrollBodySizeInfo:I.value},null)])}else rn=()=>p("div",{style:m(m({},J.value),Q.value),class:ie(`${he}-content`),onScroll:ne,ref:w},[p(ht,{style:m(m({},K.value),{tableLayout:fe.value})},{default:()=>[ue(),Me!==!1&&p(j2,D(D({},jt),x.value),null),Se(),Jt&&p(Pu,{stickyOffsets:L.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const xn=wl(n,{aria:!0,data:!0}),Wn=()=>p("div",D(D({},xn),{},{class:ie(he,{[`${he}-rtl`]:Ae==="rtl",[`${he}-ping-left`]:_.value,[`${he}-ping-right`]:A.value,[`${he}-layout-fixed`]:Ie==="fixed",[`${he}-fixed-header`]:k.value,[`${he}-fixed-column`]:H.value,[`${he}-scroll-horizontal`]:j.value,[`${he}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${he}-has-fix-right`]:$.value[F.value-1]&&$.value[F.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:we,ref:C}),[$e&&p(Cm,{class:`${he}-title`},{default:()=>[$e(l.value)]}),p("div",{class:`${he}-container`},[rn()]),xe&&p(Cm,{class:`${he}-footer`},{default:()=>[xe(l.value)]})]);return j.value?p(xo,{onResize:de},{default:Wn}):Wn()}}});function Vde(){const e=m({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const wm=10;function Kde(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const l=e[r];typeof l!="function"&&(n[r]=l)}),n}function Gde(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[l,i]=vt(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:wm})),a=P(()=>{const u=Vde(l.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/u.pageSize);return u.current>d&&(u.current=d||1),u}),s=(u,d)=>{t.value!==!1&&i({current:u??1,pageSize:d||a.value.pageSize})},c=(u,d)=>{var f,g;t.value&&((g=(f=o.value).onChange)===null||g===void 0||g.call(f,u,d)),s(u,d),n(u,d||a.value.pageSize)};return[P(()=>t.value===!1?{}:m(m({},a.value),{onChange:c})),s]}function Xde(e,t,n){const o=te({});be([e,t,n],()=>{const l=new Map,i=n.value,a=t.value;function s(c){c.forEach((u,d)=>{const f=i(u,d);l.set(f,u),u&&typeof u=="object"&&a in u&&s(u[a]||[])})}s(e.value),o.value={kvMap:l}},{deep:!0,immediate:!0});function r(l){return o.value.kvMap.get(l)}return[r]}const yr={},Om="SELECT_ALL",Pm="SELECT_INVERT",Im="SELECT_NONE",Ude=[];function B5(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...B5(e,o[e])])}),n}function Yde(e,t){const n=P(()=>{const T=e.value||{},{checkStrictly:_=!0}=T;return m(m({},T),{checkStrictly:_})}),[o,r]=Pt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||Ude,{value:P(()=>n.value.selectedRowKeys)}),l=te(new Map),i=T=>{if(n.value.preserveSelectedRowKeys){const _=new Map;T.forEach(E=>{let A=t.getRecordByKey(E);!A&&l.value.has(E)&&(A=l.value.get(E)),_.set(E,A)}),l.value=_}};ke(()=>{i(o.value)});const a=P(()=>n.value.checkStrictly?null:kc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>B5(t.childrenColumnName.value,t.pageData.value)),c=P(()=>{const T=new Map,_=t.getRowKey.value,E=n.value.getCheckboxProps;return s.value.forEach((A,R)=>{const z=_(A,R),M=(E?E(A):null)||{};T.set(z,M)}),T}),{maxLevel:u,levelEntities:d}=Hp(a),f=T=>{var _;return!!(!((_=c.value.get(t.getRowKey.value(T)))===null||_===void 0)&&_.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:T,halfCheckedKeys:_}=So(o.value,!0,a.value,u.value,d.value,f);return[T||[],_]}),v=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const T=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(T)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=vt(null),x=T=>{let _,E;i(T);const{preserveSelectedRowKeys:A,onChange:R}=n.value,{getRecordByKey:z}=t;A?(_=T,E=T.map(M=>l.value.get(M))):(_=[],E=[],T.forEach(M=>{const B=z(M);B!==void 0&&(_.push(M),E.push(B))})),r(_),R==null||R(_,E)},C=(T,_,E,A)=>{const{onSelect:R}=n.value,{getRecordByKey:z}=t||{};if(R){const M=E.map(B=>z(B));R(z(T),_,M,A)}x(E)},O=P(()=>{const{onSelectInvert:T,onSelectNone:_,selections:E,hideSelectAll:A}=n.value,{data:R,pageData:z,getRowKey:M,locale:B}=t;return!E||A?null:(E===!0?[Om,Pm,Im]:E).map(F=>F===Om?{key:"all",text:B.value.selectionAll,onSelect(){x(R.value.map((L,k)=>M.value(L,k)).filter(L=>{const k=c.value.get(L);return!(k!=null&&k.disabled)||b.value.has(L)}))}}:F===Pm?{key:"invert",text:B.value.selectInvert,onSelect(){const L=new Set(b.value);z.value.forEach((j,H)=>{const Y=M.value(j,H),Z=c.value.get(Y);Z!=null&&Z.disabled||(L.has(Y)?L.delete(Y):L.add(Y))});const k=Array.from(L);T&&(xt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),T(k)),x(k)}}:F===Im?{key:"none",text:B.value.selectNone,onSelect(){_==null||_(),x(Array.from(b.value).filter(L=>{const k=c.value.get(L);return k==null?void 0:k.disabled}))}}:F)}),w=P(()=>s.value.length);return[T=>{var _;const{onSelectAll:E,onSelectMultiple:A,columnWidth:R,type:z,fixed:M,renderCell:B,hideSelectAll:N,checkStrictly:F}=n.value,{prefixCls:L,getRecordByKey:k,getRowKey:j,expandType:H,getPopupContainer:Y}=t;if(!e.value)return T.filter(re=>re!==yr);let Z=T.slice();const U=new Set(b.value),ee=s.value.map(j.value).filter(re=>!c.value.get(re).disabled),G=ee.every(re=>U.has(re)),J=ee.some(re=>U.has(re)),Q=()=>{const re=[];G?ee.forEach(ge=>{U.delete(ge),re.push(ge)}):ee.forEach(ge=>{U.has(ge)||(U.add(ge),re.push(ge))});const de=Array.from(U);E==null||E(!G,de.map(ge=>k(ge)),re.map(ge=>k(ge))),x(de)};let K;if(z!=="radio"){let re;if(O.value){const ye=p(Vt,{getPopupContainer:Y.value},{default:()=>[O.value.map((Se,ue)=>{const{key:ce,text:he,onSelect:Pe}=Se;return p(Vt.Item,{key:ce||ue,onClick:()=>{Pe==null||Pe(ee)}},{default:()=>[he]})})]});re=p("div",{class:`${L.value}-selection-extra`},[p(rr,{overlay:ye,getPopupContainer:Y.value},{default:()=>[p("span",null,[p(Ec,null,null)])]})])}const de=s.value.map((ye,Se)=>{const ue=j.value(ye,Se),ce=c.value.get(ue)||{};return m({checked:U.has(ue)},ce)}).filter(ye=>{let{disabled:Se}=ye;return Se}),ge=!!de.length&&de.length===w.value,me=ge&&de.every(ye=>{let{checked:Se}=ye;return Se}),fe=ge&&de.some(ye=>{let{checked:Se}=ye;return Se});K=!N&&p("div",{class:`${L.value}-selection`},[p($o,{checked:ge?me:!!w.value&&G,indeterminate:ge?!me&&fe:!G&&J,onChange:Q,disabled:w.value===0||ge,"aria-label":re?"Custom selection":"Select all",skipGroup:!0},null),re])}let q;z==="radio"?q=re=>{let{record:de,index:ge}=re;const me=j.value(de,ge),fe=U.has(me);return{node:p(Nn,D(D({},c.value.get(me)),{},{checked:fe,onClick:ye=>ye.stopPropagation(),onChange:ye=>{U.has(me)||C(me,!0,[me],ye.nativeEvent)}}),null),checked:fe}}:q=re=>{let{record:de,index:ge}=re;var me;const fe=j.value(de,ge),ye=U.has(fe),Se=y.value.has(fe),ue=c.value.get(fe);let ce;return H.value==="nest"?(ce=Se,xt(typeof(ue==null?void 0:ue.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ce=(me=ue==null?void 0:ue.indeterminate)!==null&&me!==void 0?me:Se,{node:p($o,D(D({},ue),{},{indeterminate:ce,checked:ye,skipGroup:!0,onClick:he=>he.stopPropagation(),onChange:he=>{let{nativeEvent:Pe}=he;const{shiftKey:Ie}=Pe;let Ae=-1,$e=-1;if(Ie&&F){const xe=new Set([S.value,fe]);ee.some((we,Me)=>{if(xe.has(we))if(Ae===-1)Ae=Me;else return $e=Me,!0;return!1})}if($e!==-1&&Ae!==$e&&F){const xe=ee.slice(Ae,$e+1),we=[];ye?xe.forEach(Ne=>{U.has(Ne)&&(we.push(Ne),U.delete(Ne))}):xe.forEach(Ne=>{U.has(Ne)||(we.push(Ne),U.add(Ne))});const Me=Array.from(U);A==null||A(!ye,Me.map(Ne=>k(Ne)),we.map(Ne=>k(Ne))),x(Me)}else{const xe=v.value;if(F){const we=ye?qo(xe,fe):mr(xe,fe);C(fe,!ye,we,Pe)}else{const we=So([...xe,fe],!0,a.value,u.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Ne}=we;let _e=Me;if(ye){const De=new Set(Me);De.delete(fe),_e=So(Array.from(De),{checked:!1,halfCheckedKeys:Ne},a.value,u.value,d.value,f).checkedKeys}C(fe,!ye,_e,Pe)}}$(fe)}}),null),checked:ye}};const pe=re=>{let{record:de,index:ge}=re;const{node:me,checked:fe}=q({record:de,index:ge});return B?B(fe,de,ge,me):me};if(!Z.includes(yr))if(Z.findIndex(re=>{var de;return((de=re[va])===null||de===void 0?void 0:de.columnType)==="EXPAND_COLUMN"})===0){const[re,...de]=Z;Z=[re,yr,...de]}else Z=[yr,...Z];const W=Z.indexOf(yr);Z=Z.filter((re,de)=>re!==yr||de===W);const X=Z[W-1],ne=Z[W+1];let ae=M;ae===void 0&&((ne==null?void 0:ne.fixed)!==void 0?ae=ne.fixed:(X==null?void 0:X.fixed)!==void 0&&(ae=X.fixed)),ae&&X&&((_=X[va])===null||_===void 0?void 0:_.columnType)==="EXPAND_COLUMN"&&X.fixed===void 0&&(X.fixed=ae);const se={fixed:ae,width:R,className:`${L.value}-selection-column`,title:n.value.columnTitle||K,customRender:pe,[va]:{class:`${L.value}-selection-col`}};return Z.map(re=>re===yr?se:re)},b]}var qde={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const Zde=qde;function G2(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=yt(e),n=[];return t.forEach(o=>{var r,l,i,a;if(!o)return;const s=o.key,c=((r=o.props)===null||r===void 0?void 0:r.style)||{},u=((l=o.props)===null||l===void 0?void 0:l.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[mi(b)]=y;const f=o.children||{},{default:g}=f,v=rfe(f,["default"]),h=m(m(m({},v),d),{style:c,class:u});if(s&&(h.key=s),!((i=o.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)h.children=N5(typeof g=="function"?g():g);else{const b=(a=o.children)===null||a===void 0?void 0:a.default;h.customRender=h.customRender||b}n.push(h)}),n}const dd="ascend",Dh="descend";function wf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function U2(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function lfe(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Tm(e,t,n){let o=[];function r(l,i){o.push({column:l,key:pi(l,i),multiplePriority:wf(l),sortOrder:l.sortOrder})}return(e||[]).forEach((l,i)=>{const a=Wc(i,n);l.children?("sortOrder"in l&&r(l,a),o=[...o,...Tm(l.children,t,a)]):l.sorter&&("sortOrder"in l?r(l,a):t&&l.defaultSortOrder&&o.push({column:l,key:pi(l,a),multiplePriority:wf(l),sortOrder:l.defaultSortOrder}))}),o}function F5(e,t,n,o,r,l,i,a){return(t||[]).map((s,c)=>{const u=Wc(c,a);let d=s;if(d.sorter){const f=d.sortDirections||r,g=d.showSorterTooltip===void 0?i:d.showSorterTooltip,v=pi(d,u),h=n.find(T=>{let{key:_}=T;return _===v}),b=h?h.sortOrder:null,y=lfe(f,b),S=f.includes(dd)&&p(ofe,{class:ie(`${e}-column-sorter-up`,{active:b===dd}),role:"presentation"},null),$=f.includes(Dh)&&p(Jde,{role:"presentation",class:ie(`${e}-column-sorter-down`,{active:b===Dh})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=l||{};let w=x;y===Dh?w=O:y===dd&&(w=C);const I=typeof g=="object"?g:{title:w};d=m(m({},d),{className:ie(d.className,{[`${e}-column-sort`]:b}),title:T=>{const _=p("div",{class:`${e}-column-sorters`},[p("span",{class:`${e}-column-title`},[P1(s.title,T)]),p("span",{class:ie(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[p("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?p(Yn,I,{default:()=>[_]}):_},customHeaderCell:T=>{const _=s.customHeaderCell&&s.customHeaderCell(T)||{},E=_.onClick,A=_.onKeydown;return _.onClick=R=>{o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),E&&E(R)},_.onKeydown=R=>{R.keyCode===Oe.ENTER&&(o({column:s,key:v,sortOrder:y,multiplePriority:wf(s)}),A==null||A(R))},b&&(_["aria-sort"]=b==="ascend"?"ascending":"descending"),_.class=ie(_.class,`${e}-column-has-sorters`),_.tabindex=0,_}})}return"children"in d&&(d=m(m({},d),{children:F5(e,d.children,n,o,r,l,i,u)})),d})}function Y2(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function q2(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(Y2);return t.length===0&&e.length?m(m({},Y2(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Em(e,t,n){const o=t.slice().sort((i,a)=>a.multiplePriority-i.multiplePriority),r=e.slice(),l=o.filter(i=>{let{column:{sorter:a},sortOrder:s}=i;return U2(a)&&s});return l.length?r.sort((i,a)=>{for(let s=0;s{const a=i[n];return a?m(m({},i),{[n]:Em(a,t,n)}):i}):r}function ife(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:l,showSorterTooltip:i}=e;const[a,s]=vt(Tm(n.value,!0)),c=P(()=>{let v=!0;const h=Tm(n.value,!1);if(!h.length)return a.value;const b=[];function y($){v?b.push($):b.push(m(m({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?v=!1:S=!0)):(S&&$.multiplePriority!==!1||(v=!1),y($))}),b}),u=P(()=>{const v=c.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let h;v.multiplePriority===!1||!c.value.length||c.value[0].multiplePriority===!1?h=[v]:h=[...c.value.filter(b=>{let{key:y}=b;return y!==v.key}),v],s(h),o(q2(h),h)}const f=v=>F5(t.value,v,c.value,d,r.value,l.value,i.value),g=P(()=>q2(c.value));return[f,c,u,g]}var afe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const sfe=afe;function Z2(e){for(var t=1;t{const{keyCode:t}=e;t===Oe.ENTER&&e.stopPropagation()},ffe=(e,t)=>{let{slots:n}=t;var o;return p("div",{onClick:r=>r.stopPropagation(),onKeydown:dfe},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},pfe=ffe,Q2=oe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Be(),onChange:ve(),filterSearch:Le([Boolean,Function]),tablePrefixCls:Be(),locale:Re()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:l}=e;return o?p("div",{class:`${r}-filter-dropdown-search`},[p(tn,{placeholder:l.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>p(mp,null,null)})]):null}}});var J2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Rc()),s=(c,u)=>{var d,f,g,v;u==="appear"?(f=(d=a.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,c):u==="leave"&&((v=(g=a.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,c)),i.value||e.onMotionEnd(),i.value=!0};return be(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&&ot(()=>{r.value=!1})},{immediate:!0,flush:"post"}),je(()=>{e.motionNodes&&e.onMotionStart()}),Ze(()=>{e.motionNodes&&s()}),()=>{const{motion:c,motionNodes:u,motionType:d,active:f,eventKey:g}=e,v=J2(e,["motion","motionNodes","motionType","active","eventKey"]);return u?p(cn,D(D({},a.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[$n(p("div",{class:`${l.value.prefixCls}-treenode-motion`},[u.map(h=>{const b=J2(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,p(Qv,D(D({},b),{},{title:y,active:f,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[En,r.value]])]}):p(Qv,D(D({class:n.class,style:n.style},v),{},{active:f,eventKey:g}),o)}}});function hfe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(l,i){const a=new Map;l.forEach(c=>{a.set(c,!0)});const s=i.filter(c=>!a.has(c));return s.length===1?s[0]:null}return ni.key===n),r=e[o+1],l=t.findIndex(i=>i.key===n);if(r){const i=t.findIndex(a=>a.key===r.key);return t.slice(l+1,i)}return t.slice(l+1)}var t4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},gi=`RC_TREE_MOTION_${Math.random()}`,Mm={key:gi},L5={key:gi,level:0,index:0,pos:"0",node:Mm,nodes:[Mm]},o4={parent:null,children:[],pos:L5.pos,data:Mm,title:null,key:gi,isStart:[],isEnd:[]};function r4(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function l4(e){const{key:t,pos:n}=e;return Lc(t,n)}function mfe(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const bfe=oe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:RJ,setup(e,t){let{expose:n,attrs:o}=t;const r=le(),l=le(),{expandedKeys:i,flattenNodes:a}=a8();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>l.value.offsetWidth});const s=te(a.value),c=te([]),u=le(null);function d(){s.value=a.value,c.value=[],u.value=null,e.onListChangeEnd()}const f=Ey();be([()=>i.value.slice(),a],(h,b)=>{let[y,S]=h,[$,x]=b;const C=hfe($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:I}=e;if(C.add){const T=x.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(x,S,C.key),O,w,I),E=x.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="show"}else{const T=S.findIndex(A=>{let{key:R}=A;return R===C.key}),_=r4(e4(S,x,C.key),O,w,I),E=S.slice();E.splice(T+1,0,o4),s.value=E,c.value=_,u.value="hide"}}else x!==S&&(s.value=S)}),be(()=>f.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:a.value),v=()=>{e.onActiveChange(null)};return()=>{const h=m(m({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:I,activeItem:T,focused:_,tabindex:E,onKeydown:A,onFocus:R,onBlur:z,onListChangeStart:M,onListChangeEnd:B}=h,N=t4(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(We,null,[_&&T&&p("span",{style:n4,"aria-live":"assertive"},[mfe(T)]),p("div",null,[p("input",{style:n4,disabled:I===!1||$,tabindex:I!==!1?E:null,onKeydown:A,onFocus:R,onBlur:z,value:"",onChange:vfe,"aria-label":"for screen reader"},null)]),p("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${b}-indent`},[p("div",{ref:l,class:`${b}-indent-unit`},null)])]),p(DI,D(D({},et(N,["onActiveChange"])),{},{data:g.value,itemKey:l4,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(F,L)=>{const k=new Set(F);L.filter(H=>!k.has(H)).some(H=>l4(H)===gi)&&d()}}),{default:F=>{const{pos:L}=F,k=t4(F.data,[]),{title:j,key:H,isStart:Y,isEnd:Z}=F,U=Lc(H,L);return delete k.key,delete k.children,p(gfe,D(D({},k),{},{eventKey:U,title:j,active:!!T&&H===T.key,data:F.data,isStart:Y,isEnd:Z,motion:x,motionNodes:H===gi?c.value:null,motionType:u.value,onMotionStart:M,onMotionEnd:d,onMousemove:v}),null)}})])}}});function yfe(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return p("div",{style:r},null)}const Sfe=10,k5=oe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:qe(c8(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:yfe,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=te(!1);let i={};const a=te(),s=te([]),c=te([]),u=te([]),d=te([]),f=te([]),g=te([]),v={},h=ut({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=te([]);be([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?e.treeData.slice():em(Qe(e.children))},{immediate:!0,deep:!0});const y=te({}),S=te(!1),$=te(null),x=te(!1),C=P(()=>Fp(e.fieldNames)),O=te();let w=null,I=null,T=null;const _=P(()=>({expandedKeysSet:E.value,selectedKeysSet:A.value,loadedKeysSet:R.value,loadingKeysSet:z.value,checkedKeysSet:M.value,halfCheckedKeysSet:B.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),E=P(()=>new Set(g.value)),A=P(()=>new Set(s.value)),R=P(()=>new Set(d.value)),z=P(()=>new Set(f.value)),M=P(()=>new Set(c.value)),B=P(()=>new Set(u.value));ke(()=>{if(b.value){const $e=kc(b.value,{fieldNames:C.value});y.value=m({[gi]:L5},$e.keyEntities)}});let N=!1;be([()=>e.expandedKeys,()=>e.autoExpandParent,y],($e,xe)=>{let[we,Me]=$e,[Ne,_e]=xe,De=g.value;if(e.expandedKeys!==void 0||N&&Me!==_e)De=e.autoExpandParent||!N&&e.defaultExpandParent?Jv(e.expandedKeys,y.value):e.expandedKeys;else if(!N&&e.defaultExpandAll){const Je=m({},y.value);delete Je[gi],De=Object.keys(Je).map(ft=>Je[ft].key)}else!N&&e.defaultExpandedKeys&&(De=e.autoExpandParent||e.defaultExpandParent?Jv(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);De&&(g.value=De),N=!0},{immediate:!0});const F=te([]);ke(()=>{F.value=HJ(b.value,g.value,C.value)}),ke(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=pw(e.selectedKeys,e):!N&&e.defaultSelectedKeys&&(s.value=pw(e.defaultSelectedKeys,e)))});const{maxLevel:L,levelEntities:k}=Hp(y);ke(()=>{if(e.checkable){let $e;if(e.checkedKeys!==void 0?$e=vh(e.checkedKeys)||{}:!N&&e.defaultCheckedKeys?$e=vh(e.defaultCheckedKeys)||{}:b.value&&($e=vh(e.checkedKeys)||{checkedKeys:c.value,halfCheckedKeys:u.value}),$e){let{checkedKeys:xe=[],halfCheckedKeys:we=[]}=$e;e.checkStrictly||({checkedKeys:xe,halfCheckedKeys:we}=So(xe,!0,y.value,L.value,k.value)),c.value=xe,u.value=we}}}),ke(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const j=()=>{m(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=$e=>{O.value.scrollTo($e)};be(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),be($,$e=>{ot(()=>{$e!==null&&H({key:$e})})},{immediate:!0,flush:"post"});const Y=$e=>{e.expandedKeys===void 0&&(g.value=$e)},Z=()=>{h.draggingNodeKey!==null&&m(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,T=null},U=($e,xe)=>{const{onDragend:we}=e;h.dragOverNodeKey=null,Z(),we==null||we({event:$e,node:xe.eventData}),I=null},ee=$e=>{U($e,null),window.removeEventListener("dragend",ee)},G=($e,xe)=>{const{onDragstart:we}=e,{eventKey:Me,eventData:Ne}=xe;I=xe,w={x:$e.clientX,y:$e.clientY};const _e=qo(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=FJ(Me,y.value),a.value=O.value.getIndentWidth(),Y(_e),window.addEventListener("dragend",ee),we&&we({event:$e,node:Ne})},J=($e,xe)=>{const{onDragenter:we,onExpand:Me,allowDrop:Ne,direction:_e}=e,{pos:De,eventKey:Je}=xe;if(T!==Je&&(T=Je),!I){j();return}const{dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt,dragOverNodeKey:rn}=fw($e,I,xe,a.value,w,Ne,F.value,y.value,E.value,_e);if(h.dragChildrenKeys.indexOf(pt)!==-1||!Jt){j();return}if(i||(i={}),Object.keys(i).forEach(jt=>{clearTimeout(i[jt])}),I.eventKey!==xe.eventKey&&(i[De]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let jt=g.value.slice();const xn=y.value[xe.eventKey];xn&&(xn.children||[]).length&&(jt=mr(g.value,xe.eventKey)),Y(jt),Me&&Me(jt,{node:xe.eventData,expanded:!0,nativeEvent:$e})},800)),I.eventKey===pt&&it===0){j();return}m(h,{dragOverNodeKey:rn,dropPosition:ft,dropLevelOffset:it,dropTargetKey:pt,dropContainerKey:ht,dropTargetPos:Ut,dropAllowed:Jt}),we&&we({event:$e,node:xe.eventData,expandedKeys:g.value})},Q=($e,xe)=>{const{onDragover:we,allowDrop:Me,direction:Ne}=e;if(!I)return;const{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropAllowed:it,dropTargetPos:pt,dragOverNodeKey:ht}=fw($e,I,xe,a.value,w,Me,F.value,y.value,E.value,Ne);h.dragChildrenKeys.indexOf(Je)!==-1||!it||(I.eventKey===Je&&De===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||j():_e===h.dropPosition&&De===h.dropLevelOffset&&Je===h.dropTargetKey&&ft===h.dropContainerKey&&pt===h.dropTargetPos&&it===h.dropAllowed&&ht===h.dragOverNodeKey||m(h,{dropPosition:_e,dropLevelOffset:De,dropTargetKey:Je,dropContainerKey:ft,dropTargetPos:pt,dropAllowed:it,dragOverNodeKey:ht}),we&&we({event:$e,node:xe.eventData}))},K=($e,xe)=>{T===xe.eventKey&&!$e.currentTarget.contains($e.relatedTarget)&&(j(),T=null);const{onDragleave:we}=e;we&&we({event:$e,node:xe.eventData})},q=function($e,xe){let we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Ne,dropPosition:_e,dropTargetKey:De,dropTargetPos:Je,dropAllowed:ft}=h;if(!ft)return;const{onDrop:it}=e;if(h.dragOverNodeKey=null,Z(),De===null)return;const pt=m(m({},Uu(De,Qe(_.value))),{active:((Me=he.value)===null||Me===void 0?void 0:Me.key)===De,data:y.value[De].node});Ne.indexOf(De);const ht=My(Je),Ut={event:$e,node:Yu(pt),dragNode:I?I.eventData:null,dragNodesKeys:[I.eventKey].concat(Ne),dropToGap:_e!==0,dropPosition:_e+Number(ht[ht.length-1])};we||it==null||it(Ut),I=null},pe=($e,xe)=>{const{expanded:we,key:Me}=xe,Ne=F.value.filter(De=>De.key===Me)[0],_e=Yu(m(m({},Uu(Me,_.value)),{data:Ne.data}));Y(we?qo(g.value,Me):mr(g.value,Me)),ye($e,_e)},W=($e,xe)=>{const{onClick:we,expandAction:Me}=e;Me==="click"&&pe($e,xe),we&&we($e,xe)},X=($e,xe)=>{const{onDblclick:we,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&pe($e,xe),we&&we($e,xe)},ne=($e,xe)=>{let we=s.value;const{onSelect:Me,multiple:Ne}=e,{selected:_e}=xe,De=xe[C.value.key],Je=!_e;Je?Ne?we=mr(we,De):we=[De]:we=qo(we,De);const ft=y.value,it=we.map(pt=>{const ht=ft[pt];return ht?ht.node:null}).filter(pt=>pt);e.selectedKeys===void 0&&(s.value=we),Me&&Me(we,{event:"select",selected:Je,node:xe,selectedNodes:it,nativeEvent:$e})},ae=($e,xe,we)=>{const{checkStrictly:Me,onCheck:Ne}=e,_e=xe[C.value.key];let De;const Je={event:"check",node:xe,checked:we,nativeEvent:$e},ft=y.value;if(Me){const it=we?mr(c.value,_e):qo(c.value,_e),pt=qo(u.value,_e);De={checked:it,halfChecked:pt},Je.checkedNodes=it.map(ht=>ft[ht]).filter(ht=>ht).map(ht=>ht.node),e.checkedKeys===void 0&&(c.value=it)}else{let{checkedKeys:it,halfCheckedKeys:pt}=So([...c.value,_e],!0,ft,L.value,k.value);if(!we){const ht=new Set(it);ht.delete(_e),{checkedKeys:it,halfCheckedKeys:pt}=So(Array.from(ht),{checked:!1,halfCheckedKeys:pt},ft,L.value,k.value)}De=it,Je.checkedNodes=[],Je.checkedNodesPositions=[],Je.halfCheckedKeys=pt,it.forEach(ht=>{const Ut=ft[ht];if(!Ut)return;const{node:Jt,pos:rn}=Ut;Je.checkedNodes.push(Jt),Je.checkedNodesPositions.push({node:Jt,pos:rn})}),e.checkedKeys===void 0&&(c.value=it,u.value=pt)}Ne&&Ne(De,Je)},se=$e=>{const xe=$e[C.value.key],we=new Promise((Me,Ne)=>{const{loadData:_e,onLoad:De}=e;if(!_e||R.value.has(xe)||z.value.has(xe))return null;_e($e).then(()=>{const ft=mr(d.value,xe),it=qo(f.value,xe);De&&De(ft,{event:"load",node:$e}),e.loadedKeys===void 0&&(d.value=ft),f.value=it,Me()}).catch(ft=>{const it=qo(f.value,xe);if(f.value=it,v[xe]=(v[xe]||0)+1,v[xe]>=Sfe){const pt=mr(d.value,xe);e.loadedKeys===void 0&&(d.value=pt),Me()}Ne(ft)}),f.value=mr(f.value,xe)});return we.catch(()=>{}),we},re=($e,xe)=>{const{onMouseenter:we}=e;we&&we({event:$e,node:xe})},de=($e,xe)=>{const{onMouseleave:we}=e;we&&we({event:$e,node:xe})},ge=($e,xe)=>{const{onRightClick:we}=e;we&&($e.preventDefault(),we({event:$e,node:xe}))},me=$e=>{const{onFocus:xe}=e;S.value=!0,xe&&xe($e)},fe=$e=>{const{onBlur:xe}=e;S.value=!1,ce(null),xe&&xe($e)},ye=($e,xe)=>{let we=g.value;const{onExpand:Me,loadData:Ne}=e,{expanded:_e}=xe,De=xe[C.value.key];if(x.value)return;we.indexOf(De);const Je=!_e;if(Je?we=mr(we,De):we=qo(we,De),Y(we),Me&&Me(we,{node:xe,expanded:Je,nativeEvent:$e}),Je&&Ne){const ft=se(xe);ft&&ft.then(()=>{}).catch(it=>{const pt=qo(g.value,De);Y(pt),Promise.reject(it)})}},Se=()=>{x.value=!0},ue=()=>{setTimeout(()=>{x.value=!1})},ce=$e=>{const{onActiveChange:xe}=e;$.value!==$e&&(e.activeKey!==void 0&&($.value=$e),$e!==null&&H({key:$e}),xe&&xe($e))},he=P(()=>$.value===null?null:F.value.find($e=>{let{key:xe}=$e;return xe===$.value})||null),Pe=$e=>{let xe=F.value.findIndex(Me=>{let{key:Ne}=Me;return Ne===$.value});xe===-1&&$e<0&&(xe=F.value.length),xe=(xe+$e+F.value.length)%F.value.length;const we=F.value[xe];if(we){const{key:Me}=we;ce(Me)}else ce(null)},Ie=P(()=>Yu(m(m({},Uu($.value,_.value)),{data:he.value.data,active:!0}))),Ae=$e=>{const{onKeydown:xe,checkable:we,selectable:Me}=e;switch($e.which){case Oe.UP:{Pe(-1),$e.preventDefault();break}case Oe.DOWN:{Pe(1),$e.preventDefault();break}}const Ne=he.value;if(Ne&&Ne.data){const _e=Ne.data.isLeaf===!1||!!(Ne.data.children||[]).length,De=Ie.value;switch($e.which){case Oe.LEFT:{_e&&E.value.has($.value)?ye({},De):Ne.parent&&ce(Ne.parent.key),$e.preventDefault();break}case Oe.RIGHT:{_e&&!E.value.has($.value)?ye({},De):Ne.children&&Ne.children.length&&ce(Ne.children[0].key),$e.preventDefault();break}case Oe.ENTER:case Oe.SPACE:{we&&!De.disabled&&De.checkable!==!1&&!De.disableCheckbox?ae({},De,!M.value.has($.value)):!we&&Me&&!De.disabled&&De.selectable!==!1&&ne({},De);break}}}xe&&xe($e)};return r({onNodeExpand:ye,scrollTo:H,onKeydown:Ae,selectedKeys:P(()=>s.value),checkedKeys:P(()=>c.value),halfCheckedKeys:P(()=>u.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>f.value),expandedKeys:P(()=>g.value)}),Rn(()=>{window.removeEventListener("dragend",ee),l.value=!0}),MJ({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:c,halfCheckedKeys:u,expandedKeysSet:E,selectedKeysSet:A,loadedKeysSet:R,loadingKeysSet:z,checkedKeysSet:M,halfCheckedKeysSet:B,flattenNodes:F}),()=>{const{draggingNodeKey:$e,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e}=h,{prefixCls:De,showLine:Je,focusable:ft,tabindex:it=0,selectable:pt,showIcon:ht,icon:Ut=o.icon,switcherIcon:Jt,draggable:rn,checkable:jt,checkStrictly:xn,disabled:Wn,motion:uo,loadData:To,filterTreeNode:Vn,height:El,itemHeight:Ee,virtual:Ue,dropIndicatorRender:Ke,onContextmenu:Ct,onScroll:en,direction:Wt,rootClassName:Kn,rootStyle:gn}=e,{class:Go,style:Jn}=n,fo=wl(m(m({},e),n),{aria:!0,data:!0});let At;return rn?typeof rn=="object"?At=rn:typeof rn=="function"?At={nodeDraggable:rn}:At={}:At=!1,p(EJ,{value:{prefixCls:De,selectable:pt,showIcon:ht,icon:Ut,switcherIcon:Jt,draggable:At,draggingNodeKey:$e,checkable:jt,customCheckable:o.checkable,checkStrictly:xn,disabled:Wn,keyEntities:y.value,dropLevelOffset:xe,dropContainerKey:we,dropTargetKey:Me,dropPosition:Ne,dragOverNodeKey:_e,dragging:$e!==null,indent:a.value,direction:Wt,dropIndicatorRender:Ke,loadData:To,filterTreeNode:Vn,onNodeClick:W,onNodeDoubleClick:X,onNodeExpand:ye,onNodeSelect:ne,onNodeCheck:ae,onNodeLoad:se,onNodeMouseEnter:re,onNodeMouseLeave:de,onNodeContextMenu:ge,onNodeDragStart:G,onNodeDragEnter:J,onNodeDragOver:Q,onNodeDragLeave:K,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[p("div",{role:"tree",class:ie(De,Go,Kn,{[`${De}-show-line`]:Je,[`${De}-focused`]:S.value,[`${De}-active-focused`]:$.value!==null}),style:gn},[p(bfe,D({ref:O,prefixCls:De,style:Jn,disabled:Wn,selectable:pt,checkable:!!jt,motion:uo,height:El,itemHeight:Ee,virtual:Ue,focusable:ft,focused:S.value,tabindex:it,activeItem:he.value,onFocus:me,onBlur:fe,onKeydown:Ae,onActiveChange:ce,onListChangeStart:Se,onListChangeEnd:ue,onContextmenu:Ct,onScroll:en},fo),null)])]})}}});var $fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Cfe=$fe;function i4(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kfe=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),zfe=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l}=t,i=(l-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:m(m({},Xe(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:m({},Ar(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Ffe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:m({},Ar(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:l,lineHeight:`${l}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:m(m({},Lfe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:l,margin:0,lineHeight:`${l}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:l/2*.8,height:l/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:l,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${l}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:l,height:l,lineHeight:`${l}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:m({lineHeight:`${l}px`,userSelect:"none"},kfe(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:l/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${l/2}px !important`}}}}})}},Hfe=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},j5=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,l=t.controlHeightSM,i=Fe(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:l});return[zfe(e,i),Hfe(i)]},jfe=Ve("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:Kp(`${n}-checkbox`,e)},j5(n,e),Ac(e)]}),W5=()=>{const e=c8();return m(m({},e),{showLine:Le([Boolean,Object]),multiple:Ce(),autoExpandParent:Ce(),checkStrictly:Ce(),checkable:Ce(),disabled:Ce(),defaultExpandAll:Ce(),defaultExpandParent:Ce(),defaultExpandedKeys:at(),expandedKeys:at(),checkedKeys:Le([Array,Object]),defaultCheckedKeys:at(),selectedKeys:at(),defaultSelectedKeys:at(),selectable:Ce(),loadedKeys:at(),draggable:Ce(),showIcon:Ce(),icon:ve(),switcherIcon:V.any,prefixCls:String,replaceFields:Re(),blockNode:Ce(),openAnimation:V.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":ve(),"onUpdate:checkedKeys":ve(),"onUpdate:expandedKeys":ve()})},fd=oe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:qe(W5(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:l}=t;e.treeData===void 0&&l.default;const{prefixCls:i,direction:a,virtual:s}=Te("tree",e),[c,u]=jfe(i),d=le();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),ke(()=>{xt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},v=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=l.switcherIcon,icon:$=l.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:I=e.openAnimation,itemHeight:T=28,onDoubleclick:_,onDblclick:E}=e,A=m(m(m({},n),et(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:Nfe,fieldNames:w,icon:$,itemHeight:T}),R=l.default?_t(l.default()):void 0;return c(p(k5,D(D({},A),{},{virtual:s.value,motion:I,ref:d,prefixCls:i.value,class:ie({[`${i.value}-icon-hide`]:!b,[`${i.value}-block-node`]:x,[`${i.value}-unselectable`]:!O,[`${i.value}-rtl`]:a.value==="rtl"},n.class,u.value),direction:a.value,checkable:C,selectable:O,switcherIcon:z=>H5(i.value,S,z,l.leafIcon,y),onCheck:g,onExpand:v,onSelect:h,onDblclick:E||_,children:R}),m(m({},l),{checkable:()=>p("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var Wfe={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"};const Vfe=Wfe;function d4(e){for(var t=1;t{if(a===Sr.End)return!1;if(s(c)){if(i.push(c),a===Sr.None)a=Sr.Start;else if(a===Sr.Start)return a=Sr.End,!1}else a===Sr.Start&&i.push(c);return n.includes(c)}),i}function Bh(e,t,n){const o=[...t],r=[];return D1(e,n,(l,i)=>{const a=o.indexOf(l);return a!==-1&&(r.push(i),o.splice(a,1)),!!o.length}),r}var Qfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},W5()),{expandAction:Le([Boolean,String])});function epe(e){const{isLeaf:t,expanded:n}=e;return p(t?z5:n?Gfe:qfe,null,null)}const pd=oe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:qe(Jfe(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:l}=t;var i;const a=le(e.treeData||em(_t((i=o.default)===null||i===void 0?void 0:i.call(o))));be(()=>e.treeData,()=>{a.value=e.treeData}),An(()=>{ot(()=>{var T;e.treeData===void 0&&o.default&&(a.value=em(_t((T=o.default)===null||T===void 0?void 0:T.call(o))))})});const s=le(),c=le(),u=P(()=>Fp(e.fieldNames)),d=le();l({scrollTo:T=>{var _;(_=d.value)===null||_===void 0||_.scrollTo(T)},selectedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.selectedKeys}),checkedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.checkedKeys}),halfCheckedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.halfCheckedKeys}),loadedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadedKeys}),loadingKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadingKeys}),expandedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.expandedKeys})});const g=()=>{const{keyEntities:T}=kc(a.value,{fieldNames:u.value});let _;return e.defaultExpandAll?_=Object.keys(T):e.defaultExpandParent?_=Jv(e.expandedKeys||e.defaultExpandedKeys||[],T):_=e.expandedKeys||e.defaultExpandedKeys,_},v=le(e.selectedKeys||e.defaultSelectedKeys||[]),h=le(g());be(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),be(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=Sb((T,_)=>{const{isLeaf:E}=_;E||T.shiftKey||T.metaKey||T.ctrlKey||d.value.onNodeExpand(T,_)},200,{leading:!0}),S=(T,_)=>{e.expandedKeys===void 0&&(h.value=T),r("update:expandedKeys",T),r("expand",T,_)},$=(T,_)=>{const{expandAction:E}=e;E==="click"&&y(T,_),r("click",T,_)},x=(T,_)=>{const{expandAction:E}=e;(E==="dblclick"||E==="doubleclick")&&y(T,_),r("doubleclick",T,_),r("dblclick",T,_)},C=(T,_)=>{const{multiple:E}=e,{node:A,nativeEvent:R}=_,z=A[u.value.key],M=m(m({},_),{selected:!0}),B=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),N=R==null?void 0:R.shiftKey;let F;E&&B?(F=T,s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)):E&&N?(F=Array.from(new Set([...c.value||[],...Zfe({treeData:a.value,expandedKeys:h.value,startKey:z,endKey:s.value,fieldNames:u.value})])),M.selectedNodes=Bh(a.value,F,u.value)):(F=[z],s.value=z,c.value=F,M.selectedNodes=Bh(a.value,F,u.value)),r("update:selectedKeys",F),r("select",F,M),e.selectedKeys===void 0&&(v.value=F)},O=(T,_)=>{r("update:checkedKeys",T),r("check",T,_)},{prefixCls:w,direction:I}=Te("tree",e);return()=>{const T=ie(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:I.value==="rtl"},n.class),{icon:_=o.icon,blockNode:E=!0}=e,A=Qfe(e,["icon","blockNode"]);return p(fd,D(D(D({},n),{},{icon:_||epe,ref:d,blockNode:E},A),{},{prefixCls:w.value,class:T,expandedKeys:h.value,selectedKeys:v.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),gd=Qv,V5=m(fd,{DirectoryTree:pd,TreeNode:gd,install:e=>(e.component(fd.name,fd),e.component(gd.name,gd),e.component(pd.name,pd),e)});function p4(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(l,i){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(l);if(Yf(!s,"Warning: There may be circular references"),s)return!1;if(l===i)return!0;if(n&&a>1)return!1;o.add(l);const c=a+1;if(Array.isArray(l)){if(!Array.isArray(i)||l.length!==i.length)return!1;for(let u=0;ur(l[d],i[d],c))}return!1}return r(e,t)}const{SubMenu:tpe,Item:npe}=Vt;function ope(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function K5(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function G5(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i}=e;return t.map((a,s)=>{const c=String(a.value);if(a.children)return p(tpe,{key:c||s,title:a.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[G5({filters:a.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:l,filterSearch:i})]});const u=r?$o:Nn,d=p(npe,{key:a.value!==void 0?c:s},{default:()=>[p(u,{checked:o.includes(c)},null),p("span",null,[a.text])]});return l.trim()?typeof i=="function"?i(l,a)?d:void 0:K5(l,a.text)?d:void 0:d})}const rpe=oe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=C1(),r=P(()=>{var H;return(H=e.filterMode)!==null&&H!==void 0?H:"menu"}),l=P(()=>{var H;return(H=e.filterSearch)!==null&&H!==void 0?H:!1}),i=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),a=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=te(!1),c=P(()=>{var H;return!!(e.filterState&&(!((H=e.filterState.filteredKeys)===null||H===void 0)&&H.length||e.filterState.forceFiltered))}),u=P(()=>{var H;return Jp((H=e.column)===null||H===void 0?void 0:H.filters)}),d=P(()=>{const{filterDropdown:H,slots:Y={},customFilterDropdown:Z}=e.column;return H||Y.filterDropdown&&o.value[Y.filterDropdown]||Z&&o.value.customFilterDropdown}),f=P(()=>{const{filterIcon:H,slots:Y={}}=e.column;return H||Y.filterIcon&&o.value[Y.filterIcon]||o.value.customFilterIcon}),g=H=>{var Y;s.value=H,(Y=a.value)===null||Y===void 0||Y.call(a,H)},v=P(()=>typeof i.value=="boolean"?i.value:s.value),h=P(()=>{var H;return(H=e.filterState)===null||H===void 0?void 0:H.filteredKeys}),b=te([]),y=H=>{let{selectedKeys:Y}=H;b.value=Y},S=(H,Y)=>{let{node:Z,checked:U}=Y;e.filterMultiple?y({selectedKeys:H}):y({selectedKeys:U&&Z.key?[Z.key]:[]})};be(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=te([]),x=te(),C=H=>{x.value=setTimeout(()=>{$.value=H})},O=()=>{clearTimeout(x.value)};Ze(()=>{clearTimeout(x.value)});const w=te(""),I=H=>{const{value:Y}=H.target;w.value=Y};be(s,()=>{s.value||(w.value="")});const T=H=>{const{column:Y,columnKey:Z,filterState:U}=e,ee=H&&H.length?H:null;if(ee===null&&(!U||!U.filteredKeys)||p4(ee,U==null?void 0:U.filteredKeys,!0))return null;e.triggerFilter({column:Y,key:Z,filteredKeys:ee})},_=()=>{g(!1),T(b.value)},E=function(){let{confirm:H,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&T([]),Y&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(Z=>String(Z)):b.value=[]},A=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&g(!1),T(b.value)},R=H=>{H&&h.value!==void 0&&(b.value=h.value||[]),g(H),!H&&!d.value&&_()},{direction:z}=Te("",e),M=H=>{if(H.target.checked){const Y=u.value;b.value=Y}else b.value=[]},B=H=>{let{filters:Y}=H;return(Y||[]).map((Z,U)=>{const ee=String(Z.value),G={title:Z.text,key:Z.value!==void 0?ee:U};return Z.children&&(G.children=B({filters:Z.children})),G})},N=H=>{var Y;return m(m({},H),{text:H.title,value:H.key,children:((Y=H.children)===null||Y===void 0?void 0:Y.map(Z=>N(Z)))||[]})},F=P(()=>B({filters:e.column.filters})),L=P(()=>ie({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!ope(e.column.filters||[])})),k=()=>{const H=b.value,{column:Y,locale:Z,tablePrefixCls:U,filterMultiple:ee,dropdownPrefixCls:G,getPopupContainer:J,prefixCls:Q}=e;return(Y.filters||[]).length===0?p(ll,{image:ll.PRESENTED_IMAGE_SIMPLE,description:Z.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p("div",{class:`${U}-filter-dropdown-tree`},[ee?p($o,{class:`${U}-filter-dropdown-checkall`,onChange:M,checked:H.length===u.value.length,indeterminate:H.length>0&&H.length[Z.filterCheckall]}):null,p(V5,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,class:`${G}-menu`,onCheck:S,checkedKeys:H,selectedKeys:H,showIcon:!1,treeData:F.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?K=>typeof l.value=="function"?l.value(w.value,N(K)):K5(w.value,K.title):void 0},null)])]):p(We,null,[p(Q2,{filterSearch:l.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Z},null),p(Vt,{multiple:ee,prefixCls:`${G}-menu`,class:L.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:H,getPopupContainer:J,openKeys:$.value,onOpenChange:C},{default:()=>G5({filters:Y.filters||[],filterSearch:l.value,prefixCls:Q,filteredKeys:b.value,filterMultiple:ee,searchValue:w.value})})])},j=P(()=>{const H=b.value;return e.column.filterResetToDefaultFilteredValue?p4((e.column.defaultFilteredValue||[]).map(Y=>String(Y)),H,!0):H.length===0});return()=>{var H;const{tablePrefixCls:Y,prefixCls:Z,column:U,dropdownPrefixCls:ee,locale:G,getPopupContainer:J}=e;let Q;typeof d.value=="function"?Q=d.value({prefixCls:`${ee}-custom`,setSelectedKeys:pe=>y({selectedKeys:pe}),selectedKeys:b.value,confirm:A,clearFilters:E,filters:U.filters,visible:v.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Q=d.value:Q=p(We,null,[k(),p("div",{class:`${Z}-dropdown-btns`},[p(zt,{type:"link",size:"small",disabled:j.value,onClick:()=>E()},{default:()=>[G.filterReset]}),p(zt,{type:"primary",size:"small",onClick:_},{default:()=>[G.filterConfirm]})])]);const K=p(pfe,{class:`${Z}-dropdown`},{default:()=>[Q]});let q;return typeof f.value=="function"?q=f.value({filtered:c.value,column:U.__originColumn__}):f.value?q=f.value:q=p(ufe,null,null),p("div",{class:`${Z}-column`},[p("span",{class:`${Y}-column-title`},[(H=n.default)===null||H===void 0?void 0:H.call(n)]),p(rr,{overlay:K,trigger:["click"],open:v.value,onOpenChange:R,getPopupContainer:J,placement:z.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[p("span",{role:"button",tabindex:-1,class:ie(`${Z}-trigger`,{active:c.value}),onClick:pe=>{pe.stopPropagation()}},[q])]})])}}});function _m(e,t,n){let o=[];return(e||[]).forEach((r,l)=>{var i,a;const s=Wc(l,n),c=r.filterDropdown||((i=r==null?void 0:r.slots)===null||i===void 0?void 0:i.filterDropdown)||r.customFilterDropdown;if(r.filters||c||"onFilter"in r)if("filteredValue"in r){let u=r.filteredValue;c||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),o.push({column:r,key:pi(r,s),filteredKeys:u,forceFiltered:r.filtered})}else o.push({column:r,key:pi(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,..._m(r.children,t,s)])}),o}function X5(e,t,n,o,r,l,i,a){return n.map((s,c)=>{var u;const d=Wc(c,a),{filterMultiple:f=!0,filterMode:g,filterSearch:v}=s;let h=s;const b=s.filterDropdown||((u=s==null?void 0:s.slots)===null||u===void 0?void 0:u.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=pi(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=m(m({},h),{title:$=>p(rpe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:f,filterMode:g,filterSearch:v,triggerFilter:l,locale:r,getPopupContainer:i},{default:()=>[P1(s.title,$)]})})}return"children"in h&&(h=m(m({},h),{children:X5(e,t,h.children,o,r,l,i,d)})),h})}function Jp(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...Jp(r)])}),t}function g4(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:l}=n;var i;const a=l.filterDropdown||((i=l==null?void 0:l.slots)===null||i===void 0?void 0:i.filterDropdown)||l.customFilterDropdown,{filters:s}=l;if(a)t[o]=r||null;else if(Array.isArray(r)){const c=Jp(s);t[o]=c.filter(u=>r.includes(String(u)))}else t[o]=null}),t}function h4(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:l},filteredKeys:i}=o;return r&&i&&i.length?n.filter(a=>i.some(s=>{const c=Jp(l),u=c.findIndex(f=>String(f)===String(s)),d=u!==-1?c[u]:s;return r(d,a)})):n},e)}function U5(e){return e.flatMap(t=>"children"in t?[t,...U5(t.children||[])]:[t])}function lpe(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:l,getPopupContainer:i}=e;const a=P(()=>U5(o.value)),[s,c]=vt(_m(a.value,!0)),u=P(()=>{const v=_m(a.value,!1);if(v.length===0)return v;let h=!0,b=!0;if(v.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(a.value||[]).map((S,$)=>pi(S,Wc($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=a.value[y.findIndex(x=>x===S.key)];return m(m({},S),{column:m(m({},S.column),$),forceFiltered:$.filtered})})}return xt(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),d=P(()=>g4(u.value)),f=v=>{const h=u.value.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),c(h),l(g4(h),h)};return[v=>X5(t.value,n.value,v,u.value,r.value,f,i.value),u,d]}function Y5(e,t){return e.map(n=>{const o=m({},n);return o.title=P1(o.title,t),"children"in o&&(o.children=Y5(o.children,t)),o})}function ipe(e){return[n=>Y5(n,e.value)]}function ape(e){return function(n){let{prefixCls:o,onExpand:r,record:l,expanded:i,expandable:a}=n;const s=`${o}-row-expand-icon`;return p("button",{type:"button",onClick:c=>{r(l,c),c.stopPropagation()},class:ie(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function q5(e,t){const n=t.value;return e.map(o=>{var r;if(o===yr||o===ol)return o;const l=m({},o),{slots:i={}}=l;return l.__originColumn__=o,xt(!("slots"in l),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(a=>{const s=i[a];l[a]===void 0&&n[s]&&(l[a]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(l.title=np(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in l&&Array.isArray(l.children)&&(l.children=q5(l.children,t)),l})}function spe(e){return[n=>q5(n,e)]}const cpe=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,l,i)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${l}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:m(m(m({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[` - > ${t}-content, - > ${t}-header - `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},upe=cpe,dpe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:m(m({},Gt),{wordBreak:"keep-all",[` - &${t}-cell-fix-left-last, - &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},fpe=dpe,ppe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},gpe=ppe,hpe=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:l,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,fontSize:f,fontSizeSM:g,lineHeight:v,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-l,x=$*2+l*3,C=`${l}px ${a} ${s}`,O=S-l;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:m(m({},Jf(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:c,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:l},"&::after":{top:O,bottom:O,insetInlineStart:$,width:l,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*v-l*3)/2-Math.ceil((g*1.4-l*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},vpe=hpe,mpe=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:l,paddingXXS:i,paddingXS:a,colorText:s,lineWidth:c,lineType:u,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T}=e,_=`${n}-dropdown`,E=`${t}-filter-dropdown`,A=`${n}-tree`,R=`${c}px ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:f,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[E]:m(m({},Xe(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:T,[`${_}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:w},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${E}-search`]:{padding:a,borderBottom:R,"&-input":{input:{minWidth:l},[o]:{color:x}}},[`${E}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-c}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:R}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},bpe=mpe,ype=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:l,tableBg:i,zIndexTableSticky:a}=e,s=o;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:l,background:i},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:a+1,width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},Spe=ype,$pe=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Cpe=$pe,xpe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},wpe=xpe,Ope=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},Ppe=Ope,Ipe=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,paddingXS:l,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+l*2},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[o]:{color:i,fontSize:r,verticalAlign:"baseline","&:hover":{color:a}}}}}},Tpe=Ipe,Epe=e=>{const{componentCls:t}=e,n=(o,r,l,i)=>({[`${t}${t}-${o}`]:{fontSize:i,[` - ${t}-title, - ${t}-footer, - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${r}px ${l}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${l/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${r}px -${l}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-l}px -${l}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${l/4}px`}}});return{[`${t}-wrapper`]:m(m({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Mpe=Epe,_pe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},Ape=_pe,Rpe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,tableHeaderIconColor:r,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:l}}}},Dpe=Rpe,Bpe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:l,tableScrollBg:i,zIndexTableSticky:a}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:a,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${l}px !important`,zIndex:a,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:l,backgroundColor:o,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},Npe=Bpe,Fpe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o}=e,r=`${n}px ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:r}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${o}`}}}},v4=Fpe,Lpe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,lineWidth:l,lineType:i,tableBorderColor:a,tableFontSize:s,tableBg:c,tableRadius:u,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:g,tableHeaderCellSplitColor:v,tableRowHoverBg:h,tableSelectedRowBg:b,tableSelectedRowHoverBg:y,tableFooterTextColor:S,tableFooterBg:$,paddingContentVerticalLG:x}=e,C=`${l}px ${i} ${a}`;return{[`${t}-wrapper`]:m(m({clear:"both",maxWidth:"100%"},zo()),{[t]:m(m({},Xe(e)),{fontSize:s,background:c,borderRadius:`${u}px ${u}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${u}px ${u}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-thead > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${x}px ${r}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${o}px ${r}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:d,fontWeight:n,textAlign:"start",background:g,borderBottom:C,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:C,borderBottom:"transparent"},"&:last-child > td":{borderBottom:C},[`&:first-child > td, - &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:C}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` - &${t}-row:hover > td, - > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},kpe=Ve("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:l,colorBorderSecondary:i,fontSize:a,padding:s,paddingXS:c,paddingSM:u,controlHeight:d,colorFillAlter:f,colorIcon:g,colorIconHover:v,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new gt(g),O=new gt(v),w=t,I=2,T=new gt($).onBackground(b).toHexString(),_=new gt(S).onBackground(b).toHexString(),E=new gt(f).onBackground(b).toHexString(),A=Fe(e,{tableFontSize:a,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:u,tablePaddingHorizontalMiddle:c,tablePaddingVerticalSmall:c,tablePaddingHorizontalSmall:c,tableBorderColor:i,tableHeaderTextColor:r,tableHeaderBg:E,tableFooterTextColor:r,tableFooterBg:E,tableHeaderCellSplitColor:i,tableHeaderSortBg:T,tableHeaderSortHoverBg:_,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:E,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:I,zIndexTableSticky:I+1,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:l});return[Lpe(A),Cpe(A),v4(A),Dpe(A),bpe(A),upe(A),wpe(A),vpe(A),v4(A),gpe(A),Tpe(A),Spe(A),Npe(A),fpe(A),Mpe(A),Ape(A),Ppe(A)]}),zpe=[],Z5=()=>({prefixCls:Be(),columns:at(),rowKey:Le([String,Function]),tableLayout:Be(),rowClassName:Le([String,Function]),title:ve(),footer:ve(),id:Be(),showHeader:Ce(),components:Re(),customRow:ve(),customHeaderRow:ve(),direction:Be(),expandFixed:Le([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:at(),defaultExpandedRowKeys:at(),expandedRowRender:ve(),expandRowByClick:Ce(),expandIcon:ve(),onExpand:ve(),onExpandedRowsChange:ve(),"onUpdate:expandedRowKeys":ve(),defaultExpandAllRows:Ce(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Ce(),expandedRowClassName:ve(),childrenColumnName:Be(),rowExpandable:ve(),sticky:Le([Boolean,Object]),dropdownPrefixCls:String,dataSource:at(),pagination:Le([Boolean,Object]),loading:Le([Boolean,Object]),size:Be(),bordered:Ce(),locale:Re(),onChange:ve(),onResizeColumn:ve(),rowSelection:Re(),getPopupContainer:ve(),scroll:Re(),sortDirections:at(),showSorterTooltip:Le([Boolean,Object],!0),transformCellText:ve()}),Hpe=oe({name:"InternalTable",inheritAttrs:!1,props:qe(m(m({},Z5()),{contextSlots:Re()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;xt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ede(P(()=>e.contextSlots)),tde({onResizeColumn:(ae,se)=>{l("resizeColumn",ae,se)}});const i=Va(),a=P(()=>{const ae=new Set(Object.keys(i.value).filter(se=>i.value[se]));return e.columns.filter(se=>!se.responsive||se.responsive.some(re=>ae.has(re)))}),{size:s,renderEmpty:c,direction:u,prefixCls:d,configProvider:f}=Te("table",e),[g,v]=kpe(d),h=P(()=>{var ae;return e.transformCellText||((ae=f.transformCellText)===null||ae===void 0?void 0:ae.value)}),[b]=Io("Table",jn.Table,ze(e,"locale")),y=P(()=>e.dataSource||zpe),S=P(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ae=>ae==null?void 0:ae[$.value])?"nest":e.expandedRowRender?"row":null),C=ut({body:null}),O=ae=>{m(C,ae)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ae=>ae==null?void 0:ae[e.rowKey]),[I]=Xde(y,$,w),T={},_=function(ae,se){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:de,scroll:ge,onChange:me}=e,fe=m(m({},T),ae);re&&(T.resetPagination(),fe.pagination.current&&(fe.pagination.current=1),de&&de.onChange&&de.onChange(1,fe.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&C.body&&I0(0,{getContainer:()=>C.body}),me==null||me(fe.pagination,fe.filters,fe.sorter,{currentDataSource:h4(Em(y.value,fe.sorterStates,$.value),fe.filterStates),action:se})},E=(ae,se)=>{_({sorter:ae,sorterStates:se},"sort",!1)},[A,R,z,M]=ife({prefixCls:d,mergedColumns:a,onSorterChange:E,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:ze(e,"showSorterTooltip")}),B=P(()=>Em(y.value,R.value,$.value)),N=(ae,se)=>{_({filters:ae,filterStates:se},"filter",!0)},[F,L,k]=lpe({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:a,onFilterChange:N,getPopupContainer:ze(e,"getPopupContainer")}),j=P(()=>h4(B.value,L.value)),[H]=spe(ze(e,"contextSlots")),Y=P(()=>{const ae={},se=k.value;return Object.keys(se).forEach(re=>{se[re]!==null&&(ae[re]=se[re])}),m(m({},z.value),{filters:ae})}),[Z]=ipe(Y),U=(ae,se)=>{_({pagination:m(m({},T.pagination),{current:ae,pageSize:se})},"paginate")},[ee,G]=Gde(P(()=>j.value.length),ze(e,"pagination"),U);ke(()=>{T.sorter=M.value,T.sorterStates=R.value,T.filters=k.value,T.filterStates=L.value,T.pagination=e.pagination===!1?{}:Kde(ee.value,e.pagination),T.resetPagination=G});const J=P(()=>{if(e.pagination===!1||!ee.value.pageSize)return j.value;const{current:ae=1,total:se,pageSize:re=wm}=ee.value;return xt(ae>0,"Table","`current` should be positive number."),j.value.lengthre?j.value.slice((ae-1)*re,ae*re):j.value:j.value.slice((ae-1)*re,ae*re)});ke(()=>{ot(()=>{const{total:ae,pageSize:se=wm}=ee.value;j.value.lengthse&&xt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Q=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),K=le();be(()=>e.rowSelection,()=>{K.value=e.rowSelection?m({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,pe]=Yde(K,{prefixCls:d,data:j,pageData:J,getRowKey:w,getRecordByKey:I,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),W=(ae,se,re)=>{let de;const{rowClassName:ge}=e;return typeof ge=="function"?de=ie(ge(ae,se,re)):de=ie(ge),ie({[`${d.value}-row-selected`]:pe.value.has(w.value(ae,se))},de)};r({selectedKeySet:pe});const X=P(()=>typeof e.indentSize=="number"?e.indentSize:15),ne=ae=>Z(q(F(A(H(ae)))));return()=>{var ae;const{expandIcon:se=o.expandIcon||ape(b.value),pagination:re,loading:de,bordered:ge}=e;let me,fe;if(re!==!1&&(!((ae=ee.value)===null||ae===void 0)&&ae.total)){let ce;ee.value.size?ce=ee.value.size:ce=s.value==="small"||s.value==="middle"?"small":void 0;const he=Ae=>p(Up,D(D({},ee.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,ee.value.class],size:ce}),null),Pe=u.value==="rtl"?"left":"right",{position:Ie}=ee.value;if(Ie!==null&&Array.isArray(Ie)){const Ae=Ie.find(we=>we.includes("top")),$e=Ie.find(we=>we.includes("bottom")),xe=Ie.every(we=>`${we}`=="none");!Ae&&!$e&&!xe&&(fe=he(Pe)),Ae&&(me=he(Ae.toLowerCase().replace("top",""))),$e&&(fe=he($e.toLowerCase().replace("bottom","")))}else fe=he(Pe)}let ye;typeof de=="boolean"?ye={spinning:de}:typeof de=="object"&&(ye=m({spinning:!0},de));const Se=ie(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:u.value==="rtl"},n.class,v.value),ue=et(e,["columns"]);return g(p("div",{class:Se,style:n.style},[p(ir,D({spinning:!1},ye),{default:()=>[me,p(Wde,D(D(D({},n),ue),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Q.value,indentSize:X.value,expandIcon:se,columns:a.value,direction:u.value,prefixCls:d.value,class:ie({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:ge,[`${d.value}-empty`]:y.value.length===0}),data:J.value,rowKey:w.value,rowClassName:W,internalHooks:xm,internalRefs:C,onUpdateInternalRefs:O,transformColumns:ne,transformCellText:h.value}),m(m({},o),{emptyText:()=>{var ce,he;return((ce=o.emptyText)===null||ce===void 0?void 0:ce.call(o))||((he=e.locale)===null||he===void 0?void 0:he.emptyText)||c("Table")}})),fe]})]))}}}),jpe=oe({name:"ATable",inheritAttrs:!1,props:qe(Z5(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const l=le();return r({table:l}),()=>{var i;const a=e.columns||N5((i=o.default)===null||i===void 0?void 0:i.call(o));return p(Hpe,D(D(D({ref:l},n),e),{},{columns:a||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:m({},o)}),o)}}}),Nh=jpe,hd=oe({name:"ATableColumn",slots:Object,render(){return null}}),vd=oe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Of=_de,Pf=Dde,md=m(Bde,{Cell:Pf,Row:Of,name:"ATableSummary"}),Wpe=m(Nh,{SELECTION_ALL:Om,SELECTION_INVERT:Pm,SELECTION_NONE:Im,SELECTION_COLUMN:yr,EXPAND_COLUMN:ol,Column:hd,ColumnGroup:vd,Summary:md,install:e=>(e.component(md.name,md),e.component(Pf.name,Pf),e.component(Of.name,Of),e.component(Nh.name,Nh),e.component(hd.name,hd),e.component(vd.name,vd),e)}),Vpe={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},Kpe=oe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:qe(Vpe,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=r=>{var l;n("change",r),r.target.value===""&&((l=e.handleClear)===null||l===void 0||l.call(e))};return()=>{const{placeholder:r,value:l,prefixCls:i,disabled:a}=e;return p(tn,{placeholder:r,class:i,value:l,onChange:o,disabled:a,allowClear:!0},{prefix:()=>p(mp,null,null)})}}});var Gpe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Xpe=Gpe;function m4(e){for(var t=1;t{const{renderedText:o,renderedEl:r,item:l,checked:i,disabled:a,prefixCls:s,showRemove:c}=e,u=ie({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:a||l.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer},{default:f=>{const g=p("span",{class:`${s}-content-item-text`},[r]);return c?p("li",{class:u,title:d},[g,p(Cf,{disabled:a||l.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",l)}},{default:()=>[p(Q5,null,null)]})]):p("li",{class:u,title:d,onClick:a||l.disabled?Ype:()=>{n("click",l)}},[p($o,{class:`${s}-checkbox`,checked:i,disabled:a||l.disabled},null),g])}})}}}),Qpe={prefixCls:String,filteredRenderItems:V.array.def([]),selectedKeys:V.array,disabled:Ce(),showRemove:Ce(),pagination:V.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Jpe(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?m(m({},t),e):t}const ege=oe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Qpe,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=le(1),l=d=>{const{selectedKeys:f}=e,g=f.indexOf(d.key)>=0;n("itemSelect",d.key,!g)},i=d=>{n("itemRemove",[d.key])},a=d=>{n("scroll",d)},s=P(()=>Jpe(e.pagination));be([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,d)}},{immediate:!0});const c=P(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),f}),u=d=>{r.value=d};return o({items:c}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:g,disabled:v,showRemove:h}=e;let b=null;s.value&&(b=p(Up,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:r.value,onChange:u},null));const y=c.value.map(S=>{let{renderedEl:$,renderedText:x,item:C}=S;const{disabled:O}=C,w=g.indexOf(C.key)>=0;return p(Zpe,{disabled:v||O,key:C.key,item:C,renderedText:x,renderedEl:$,checked:w,prefixCls:d,onClick:l,onRemove:i,showRemove:h},null)});return p(We,null,[p("ul",{class:ie(`${d}-content`,{[`${d}-content-show-remove`]:h}),onScroll:a},[y]),b])}}}),tge=ege,Am=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},nge=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:r,key:l}=n;r&&t.set(l,o)}),t},oge=()=>null;function rge(e){return!!(e&&!Kt(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Iu(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const lge={prefixCls:String,dataSource:at([]),filter:String,filterOption:Function,checkedKeys:V.arrayOf(V.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Ce(!1),searchPlaceholder:String,notFoundContent:V.any,itemUnit:String,itemsUnit:String,renderList:V.any,disabled:Ce(),direction:Be(),showSelectAll:Ce(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:V.any,showRemove:Ce(),pagination:V.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},b4=oe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:lge,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=le(""),l=le(),i=le(),a=(C,O)=>{let w=C?C(O):null;const I=!!w&&_t(w).length>0;return I||(w=p(tge,D(D({},O),{},{ref:i}),null)),{customize:I,bodyContent:w}},s=C=>{const{renderItem:O=oge}=e,w=O(C),I=rge(w);return{renderedText:I?w.value:w,renderedEl:I?w.label:w,item:C}},c=le([]),u=le([]);ke(()=>{const C=[],O=[];e.dataSource.forEach(w=>{const I=s(w),{renderedText:T}=I;if(r.value&&r.value.trim()&&!y(T,w))return null;C.push(w),O.push(I)}),c.value=C,u.value=O});const d=P(()=>{const{checkedKeys:C}=e;if(C.length===0)return"none";const O=Am(C);return c.value.every(w=>O.has(w.key)||!!w.disabled)?"all":"part"}),f=P(()=>Iu(c.value)),g=(C,O)=>Array.from(new Set([...C,...e.checkedKeys])).filter(w=>O.indexOf(w)===-1),v=C=>{let{disabled:O,prefixCls:w}=C;var I;const T=d.value==="all";return p($o,{disabled:((I=e.dataSource)===null||I===void 0?void 0:I.length)===0||O,checked:T,indeterminate:d.value==="part",class:`${w}-checkbox`,onChange:()=>{const E=f.value;e.onItemSelectAll(g(T?[]:E,T?e.checkedKeys:[]))}},null)},h=C=>{var O;const{target:{value:w}}=C;r.value=w,(O=e.handleFilter)===null||O===void 0||O.call(e,C)},b=C=>{var O;r.value="",(O=e.handleClear)===null||O===void 0||O.call(e,C)},y=(C,O)=>{const{filterOption:w}=e;return w?w(r.value,O):C.includes(r.value)},S=(C,O)=>{const{itemsUnit:w,itemUnit:I,selectAllLabel:T}=e;if(T)return typeof T=="function"?T({selectedCount:C,totalCount:O}):T;const _=O>1?w:I;return p(We,null,[(C>0?`${C}/`:"")+O,Lt(" "),_])},$=P(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),x=(C,O,w,I,T,_)=>{const E=T?p("div",{class:`${C}-body-search-wrapper`},[p(Kpe,{prefixCls:`${C}-search`,onChange:h,handleClear:b,placeholder:O,value:r.value,disabled:_},null)]):null;let A;const{onEvents:R}=p0(n),{bodyContent:z,customize:M}=a(I,m(m(m({},e),{filteredItems:c.value,filteredRenderItems:u.value,selectedKeys:w}),R));return M?A=p("div",{class:`${C}-body-customize-wrapper`},[z]):A=c.value.length?z:p("div",{class:`${C}-body-not-found`},[$.value]),p("div",{class:T?`${C}-body ${C}-body-with-search`:`${C}-body`,ref:l},[E,A])};return()=>{var C,O;const{prefixCls:w,checkedKeys:I,disabled:T,showSearch:_,searchPlaceholder:E,selectAll:A,selectCurrent:R,selectInvert:z,removeAll:M,removeCurrent:B,renderList:N,onItemSelectAll:F,onItemRemove:L,showSelectAll:k=!0,showRemove:j,pagination:H}=e,Y=(C=o.footer)===null||C===void 0?void 0:C.call(o,m({},e)),Z=ie(w,{[`${w}-with-pagination`]:!!H,[`${w}-with-footer`]:!!Y}),U=x(w,E,I,N,_,T),ee=Y?p("div",{class:`${w}-footer`},[Y]):null,G=!j&&!H&&v({disabled:T,prefixCls:w});let J=null;j?J=p(Vt,null,{default:()=>[H&&p(Vt.Item,{key:"removeCurrent",onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));L==null||L(K)}},{default:()=>[B]}),p(Vt.Item,{key:"removeAll",onClick:()=>{L==null||L(f.value)}},{default:()=>[M]})]}):J=p(Vt,null,{default:()=>[p(Vt.Item,{key:"selectAll",onClick:()=>{const K=f.value;F(g(K,[]))}},{default:()=>[A]}),H&&p(Vt.Item,{onClick:()=>{const K=Iu((i.value.items||[]).map(q=>q.item));F(g(K,[]))}},{default:()=>[R]}),p(Vt.Item,{key:"selectInvert",onClick:()=>{let K;H?K=Iu((i.value.items||[]).map(X=>X.item)):K=f.value;const q=new Set(I),pe=[],W=[];K.forEach(X=>{q.has(X)?W.push(X):pe.push(X)}),F(g(pe,W))}},{default:()=>[z]})]});const Q=p(rr,{class:`${w}-header-dropdown`,overlay:J,disabled:T},{default:()=>[p(Ec,null,null)]});return p("div",{class:Z,style:n.style},[p("div",{class:`${w}-header`},[k?p(We,null,[G,Q]):null,p("span",{class:`${w}-header-selected`},[p("span",null,[S(I.length,c.value.length)]),p("span",{class:`${w}-header-title`},[(O=o.titleText)===null||O===void 0?void 0:O.call(o)])])]),U,ee])}}});function y4(){}const N1=e=>{const{disabled:t,moveToLeft:n=y4,moveToRight:o=y4,leftArrowText:r="",rightArrowText:l="",leftActive:i,rightActive:a,class:s,style:c,direction:u,oneWay:d}=e;return p("div",{class:s,style:c},[p(zt,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p(u!=="rtl"?Wo:Sl,null,null)},{default:()=>[l]}),!d&&p(zt,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:p(u!=="rtl"?Sl:Wo,null,null)},{default:()=>[r]})])};N1.displayName="Operation";N1.inheritAttrs=!1;const ige=N1,age=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:l,margin:i}=e,a=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${i}px 0 ${l}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},S4=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},sge=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:m({},S4(e,e.colorError)),[`${t}-status-warning`]:m({},S4(e,e.colorWarning))}},cge=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:l,transferHeaderHeight:i,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:c,controlItemBgActiveHover:u,colorTextDisabled:d,listHeight:f,listWidth:g,listWidthLG:v,fontSizeIcon:h,marginXS:b,paddingSM:y,lineType:S,iconCls:$,motionDurationSlow:x}=e;return{display:"flex",flexDirection:"column",width:g,height:f,border:`${r}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${$}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${a-r}px ${y}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":m(m({},Gt),{flex:"auto",textAlign:"end"}),"&-dropdown":m(m({},yi()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:l,padding:`${s}px ${y}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:b},"> *":{flex:"none"},"&-text":m(m({},Gt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:u}},"&-checked":{backgroundColor:c},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},uge=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:l,marginXXS:i,fontSizeIcon:a,fontSize:s,lineHeight:c}=e;return{[o]:m(m({},Xe(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:cge(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${l}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*c)}})}},dge=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},fge=Ve("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:l}=e,i=Math.round(t*n),a=r,s=l,c=Fe(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-i)/2),transferItemPaddingVertical:(s-i)/2});return[uge(c),age(c),sge(c),dge(c)]},{listWidth:180,listHeight:200,listWidthLG:250}),pge=()=>({id:String,prefixCls:String,dataSource:at([]),disabled:Ce(),targetKeys:at(),selectedKeys:at(),render:ve(),listStyle:Le([Function,Object],()=>({})),operationStyle:Re(void 0),titles:at(),operations:at(),showSearch:Ce(!1),filterOption:ve(),searchPlaceholder:String,notFoundContent:V.any,locale:Re(),rowKey:ve(),showSelectAll:Ce(),selectAllLabels:at(),children:ve(),oneWay:Ce(),pagination:Le([Object,Boolean]),status:Be(),onChange:ve(),onSelectChange:ve(),onSearch:ve(),onScroll:ve(),"onUpdate:targetKeys":ve(),"onUpdate:selectedKeys":ve()}),gge=oe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:pge(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:l}=t;const{configProvider:i,prefixCls:a,direction:s}=Te("transfer",e),[c,u]=fge(a),d=le([]),f=le([]),g=Qt(),v=un.useInject(),h=P(()=>Ko(v.status,e.status));be(()=>e.selectedKeys,()=>{var U,ee;d.value=((U=e.selectedKeys)===null||U===void 0?void 0:U.filter(G=>e.targetKeys.indexOf(G)===-1))||[],f.value=((ee=e.selectedKeys)===null||ee===void 0?void 0:ee.filter(G=>e.targetKeys.indexOf(G)>-1))||[]},{immediate:!0});const b=(U,ee)=>{const G={notFoundContent:ee("Transfer")},J=qt(r,e,"notFoundContent");return J&&(G.notFoundContent=J),e.searchPlaceholder!==void 0&&(G.searchPlaceholder=e.searchPlaceholder),m(m(m({},U),G),e.locale)},y=U=>{const{targetKeys:ee=[],dataSource:G=[]}=e,J=U==="right"?d.value:f.value,Q=nge(G),K=J.filter(X=>!Q.has(X)),q=Am(K),pe=U==="right"?K.concat(ee):ee.filter(X=>!q.has(X)),W=U==="right"?"left":"right";U==="right"?d.value=[]:f.value=[],n("update:targetKeys",pe),w(W,[]),n("change",pe,U,K),g.onFieldChange()},S=()=>{y("left")},$=()=>{y("right")},x=(U,ee)=>{w(U,ee)},C=U=>x("left",U),O=U=>x("right",U),w=(U,ee)=>{U==="left"?(e.selectedKeys||(d.value=ee),n("update:selectedKeys",[...ee,...f.value]),n("selectChange",ee,Qe(f.value))):(e.selectedKeys||(f.value=ee),n("update:selectedKeys",[...ee,...d.value]),n("selectChange",Qe(d.value),ee))},I=(U,ee)=>{const G=ee.target.value;n("search",U,G)},T=U=>{I("left",U)},_=U=>{I("right",U)},E=U=>{n("search",U,"")},A=()=>{E("left")},R=()=>{E("right")},z=(U,ee,G)=>{const J=U==="left"?[...d.value]:[...f.value],Q=J.indexOf(ee);Q>-1&&J.splice(Q,1),G&&J.push(ee),w(U,J)},M=(U,ee)=>z("left",U,ee),B=(U,ee)=>z("right",U,ee),N=U=>{const{targetKeys:ee=[]}=e,G=ee.filter(J=>!U.includes(J));n("update:targetKeys",G),n("change",G,"left",[...U])},F=(U,ee)=>{n("scroll",U,ee)},L=U=>{F("left",U)},k=U=>{F("right",U)},j=(U,ee)=>typeof U=="function"?U({direction:ee}):U,H=le([]),Y=le([]);ke(()=>{const{dataSource:U,rowKey:ee,targetKeys:G=[]}=e,J=[],Q=new Array(G.length),K=Am(G);U.forEach(q=>{ee&&(q.key=ee(q)),K.has(q.key)?Q[K.get(q.key)]=q:J.push(q)}),H.value=J,Y.value=Q}),l({handleSelectChange:w});const Z=U=>{var ee,G,J,Q,K,q;const{disabled:pe,operations:W=[],showSearch:X,listStyle:ne,operationStyle:ae,filterOption:se,showSelectAll:re,selectAllLabels:de=[],oneWay:ge,pagination:me,id:fe=g.id.value}=e,{class:ye,style:Se}=o,ue=r.children,ce=!ue&&me,he=i.renderEmpty,Pe=b(U,he),{footer:Ie}=r,Ae=e.render||r.render,$e=f.value.length>0,xe=d.value.length>0,we=ie(a.value,ye,{[`${a.value}-disabled`]:pe,[`${a.value}-customize-list`]:!!ue,[`${a.value}-rtl`]:s.value==="rtl"},Tn(a.value,h.value,v.hasFeedback),u.value),Me=e.titles,Ne=(J=(ee=Me&&Me[0])!==null&&ee!==void 0?ee:(G=r.leftTitle)===null||G===void 0?void 0:G.call(r))!==null&&J!==void 0?J:(Pe.titles||["",""])[0],_e=(q=(Q=Me&&Me[1])!==null&&Q!==void 0?Q:(K=r.rightTitle)===null||K===void 0?void 0:K.call(r))!==null&&q!==void 0?q:(Pe.titles||["",""])[1];return p("div",D(D({},o),{},{class:we,style:Se,id:fe}),[p(b4,D({key:"leftList",prefixCls:`${a.value}-list`,dataSource:H.value,filterOption:se,style:j(ne,"left"),checkedKeys:d.value,handleFilter:T,handleClear:A,onItemSelect:M,onItemSelectAll:C,renderItem:Ae,showSearch:X,renderList:ue,onScroll:L,disabled:pe,direction:s.value==="rtl"?"right":"left",showSelectAll:re,selectAllLabel:de[0]||r.leftSelectAllLabel,pagination:ce},Pe),{titleText:()=>Ne,footer:Ie}),p(ige,{key:"operation",class:`${a.value}-operation`,rightActive:xe,rightArrowText:W[0],moveToRight:$,leftActive:$e,leftArrowText:W[1],moveToLeft:S,style:ae,disabled:pe,direction:s.value,oneWay:ge},null),p(b4,D({key:"rightList",prefixCls:`${a.value}-list`,dataSource:Y.value,filterOption:se,style:j(ne,"right"),checkedKeys:f.value,handleFilter:_,handleClear:R,onItemSelect:B,onItemSelectAll:O,onItemRemove:N,renderItem:Ae,showSearch:X,renderList:ue,onScroll:k,disabled:pe,direction:s.value==="rtl"?"left":"right",showSelectAll:re,selectAllLabel:de[1]||r.rightSelectAllLabel,showRemove:ge,pagination:ce},Pe),{titleText:()=>_e,footer:Ie})])};return()=>c(p(bi,{componentName:"Transfer",defaultLocale:jn.Transfer,children:Z},null))}}),hge=Tt(gge);function vge(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function mge(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}function Rm(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function bge(e,t){const n=[];function o(r){r.forEach(l=>{n.push(l[t.value]);const i=l[t.children];i&&o(i)})}return o(e),n}function $4(e){return e==null}const J5=Symbol("TreeSelectContextPropsKey");function yge(e){return Ge(J5,e)}function Sge(){return He(J5,{})}const $ge={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cge=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Tc(),l=pp(),i=Sge(),a=le(),s=q0(()=>i.treeData,[()=>r.open,()=>i.treeData],C=>C[0]),c=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=l;return C?{checked:w,halfChecked:O}:null});be(()=>r.open,()=>{ot(()=>{var C;r.open&&!r.multiple&&l.checkedKeys.length&&((C=a.value)===null||C===void 0||C.scrollTo({key:l.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const u=P(()=>String(r.searchValue).toLowerCase()),d=C=>u.value?String(C[l.treeNodeFilterProp]).toLowerCase().includes(u.value):!1,f=te(l.treeDefaultExpandedKeys),g=te(null);be(()=>r.searchValue,()=>{r.searchValue&&(g.value=bge(Qe(i.treeData),Qe(i.fieldNames)))},{immediate:!0});const v=P(()=>l.treeExpandedKeys?l.treeExpandedKeys.slice():r.searchValue?g.value:f.value),h=C=>{var O;f.value=C,g.value=C,(O=l.onTreeExpand)===null||O===void 0||O.call(l,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var I,T;const{checkable:_,checkedKeys:E}=l;_&&Rm(w)||((I=i.onSelect)===null||I===void 0||I.call(i,w.key,{selected:!E.includes(w.key)}),r.multiple||(T=r.toggleOpen)===null||T===void 0||T.call(r,!1))},S=le(null),$=P(()=>l.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,I=new Array(w),T=0;T{var O;const{which:w}=C;switch(w){case Oe.UP:case Oe.DOWN:case Oe.LEFT:case Oe.RIGHT:(O=a.value)===null||O===void 0||O.onKeydown(C);break;case Oe.ENTER:{if($.value){const{selectable:I,value:T}=$.value.node||{};I!==!1&&y(null,{node:{key:S.value},selected:!l.checkedKeys.includes(T)})}break}case Oe.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:I,open:T,notFoundContent:_=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:E,listItemHeight:A,virtual:R,dropdownMatchSelectWidth:z,treeExpandAction:M}=i,{checkable:B,treeDefaultExpandAll:N,treeIcon:F,showTreeIcon:L,switcherIcon:k,treeLine:j,loadData:H,treeLoadedKeys:Y,treeMotion:Z,onTreeLoad:U,checkedKeys:ee}=l;if(s.value.length===0)return p("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[_]);const G={fieldNames:i.fieldNames};return Y&&(G.loadedKeys=Y),v.value&&(G.expandedKeys=v.value),p("div",{onMousedown:b},[$.value&&T&&p("span",{style:$ge,"aria-live":"assertive"},[$.value.node.value]),p(k5,D(D({ref:a,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:E,itemHeight:A,virtual:R!==!1&&z!==!1,multiple:w,icon:F,showIcon:L,switcherIcon:k,showLine:j,loadData:I?null:H,motion:Z,activeKey:S.value,checkable:B,checkStrictly:!0,checkedKeys:c.value,selectedKeys:B?[]:ee,defaultExpandAll:N},G),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:M}),m(m({},n),{checkable:l.customSlots.treeCheckable}))])}}}),xge="SHOW_ALL",eM="SHOW_PARENT",F1="SHOW_CHILD";function C4(e,t,n,o){const r=new Set(e);return t===F1?e.filter(l=>{const i=n[l];return!(i&&i.children&&i.children.some(a=>{let{node:s}=a;return r.has(s[o.value])})&&i.children.every(a=>{let{node:s}=a;return Rm(s)||r.has(s[o.value])}))}):t===eM?e.filter(l=>{const i=n[l],a=i?i.parent:null;return!(a&&!Rm(a.node)&&r.has(a.key))}):e}const eg=()=>null;eg.inheritAttrs=!1;eg.displayName="ATreeSelectNode";eg.isTreeSelectNode=!0;const L1=eg;var wge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(o=>{var r,l,i;if(!Oge(o))return null;const a=o.children||{},s=o.key,c={};for(const[w,I]of Object.entries(o.props))c[mi(w)]=I;const{isLeaf:u,checkable:d,selectable:f,disabled:g,disableCheckbox:v}=c,h={isLeaf:u||u===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:g||g===""||void 0,disableCheckbox:v||v===""||void 0},b=m(m({},c),h),{title:y=(r=a.title)===null||r===void 0?void 0:r.call(a,b),switcherIcon:S=(l=a.switcherIcon)===null||l===void 0?void 0:l.call(a,b)}=c,$=wge(c,["title","switcherIcon"]),x=(i=a.default)===null||i===void 0?void 0:i.call(a),C=m(m(m({},$),{title:y,switcherIcon:S,key:s,isLeaf:u}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Dm(e){if(!e)return e;const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Ige(e,t,n,o,r,l){let i=null,a=null;function s(){function c(u){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map((g,v)=>{const h=`${d}-${v}`,b=g[l.value],y=n.includes(b),S=c(g[l.children]||[],h,y),$=p(L1,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(i=$),y){const x={pos:h,node:$,children:S};return f||a.push(x),x}return null}).filter(g=>g)}a||(a=[],c(o),a.sort((u,d)=>{let{node:{props:{value:f}}}=u,{node:{props:{value:g}}}=d;const v=n.indexOf(f),h=n.indexOf(g);return v-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?a:a.map(c=>{let{node:u}=c;return u})}})}function Tge(e,t){let{id:n,pId:o,rootPId:r}=t;const l={},i=[];return e.map(s=>{const c=m({},s),u=c[n];return l[u]=c,c.key=c.key||u,c}).forEach(s=>{const c=s[o],u=l[c];u&&(u.children=u.children||[],u.children.push(s)),(c===r||!u&&r===null)&&i.push(s)}),i}function Ege(e,t,n){const o=te();return be([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?Tge(Qe(e.value),m({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):Qe(e.value).slice():o.value=Pge(Qe(t.value))},{immediate:!0,deep:!0}),o}const Mge=e=>{const t=te({valueLabels:new Map}),n=te();return be(e,()=>{n.value=Qe(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,l=new Map,i=n.value.map(a=>{var s;const{value:c}=a,u=(s=a.label)!==null&&s!==void 0?s:r.get(c);return l.set(c,u),m(m({},a),{label:u})});return t.value.valueLabels=l,i})]},_ge=(e,t)=>{const n=te(new Map),o=te({});return ke(()=>{const r=t.value,l=kc(e.value,{fieldNames:r,initWrapper:i=>m(m({},i),{valueEntities:new Map}),processEntity:(i,a)=>{const s=i.node[r.value];a.valueEntities.set(s,i)}});n.value=l.valueEntities,o.value=l.keyEntities}),{valueEntities:n,keyEntities:o}},Age=(e,t,n,o,r,l)=>{const i=te([]),a=te([]);return ke(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),c=t.value.map(d=>{let{value:f}=d;return f});const u=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:c}=So(s,!0,o.value,r.value,l.value)),i.value=Array.from(new Set([...u,...s])),a.value=c}),[i,a]},Rge=(e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:l}=n;return P(()=>{const{children:i}=l.value,a=t.value,s=o==null?void 0:o.value;if(!a||r.value===!1)return e.value;let c;if(typeof r.value=="function")c=r.value;else{const d=a.toUpperCase();c=(f,g)=>{const v=g[s];return String(v).toUpperCase().includes(d)}}function u(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let v=0,h=d.length;ve.treeCheckable&&!e.treeCheckStrictly),a=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),c=P(()=>a.value||e.multiple),u=P(()=>mge(e.fieldNames)),[d,f]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:fe=>fe||""}),g=fe=>{var ye;f(fe),(ye=e.onSearch)===null||ye===void 0||ye.call(e,fe)},v=Ege(ze(e,"treeData"),ze(e,"children"),ze(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=_ge(v,u),y=fe=>{const ye=[],Se=[];return fe.forEach(ue=>{b.value.has(ue)?Se.push(ue):ye.push(ue)}),{missingRawValues:ye,existRawValues:Se}},S=Rge(v,d,{fieldNames:u,treeNodeFilterProp:ze(e,"treeNodeFilterProp"),filterTreeNode:ze(e,"filterTreeNode")}),$=fe=>{if(fe){if(e.treeNodeLabelProp)return fe[e.treeNodeLabelProp];const{_title:ye}=u.value;for(let Se=0;Sevge(fe).map(Se=>Dge(Se)?{value:Se}:Se),C=fe=>x(fe).map(Se=>{let{label:ue}=Se;const{value:ce,halfChecked:he}=Se;let Pe;const Ie=b.value.get(ce);return Ie&&(ue=ue??$(Ie.node),Pe=Ie.node.disabled),{label:ue,value:ce,halfChecked:he,disabled:Pe}}),[O,w]=Pt(e.defaultValue,{value:ze(e,"value")}),I=P(()=>x(O.value)),T=te([]),_=te([]);ke(()=>{const fe=[],ye=[];I.value.forEach(Se=>{Se.halfChecked?ye.push(Se):fe.push(Se)}),T.value=fe,_.value=ye});const E=P(()=>T.value.map(fe=>fe.value)),{maxLevel:A,levelEntities:R}=Hp(h),[z,M]=Age(T,_,i,h,A,R),B=P(()=>{const Se=C4(z.value,e.showCheckedStrategy,h.value,u.value).map(he=>{var Pe,Ie,Ae;return(Ae=(Ie=(Pe=h.value[he])===null||Pe===void 0?void 0:Pe.node)===null||Ie===void 0?void 0:Ie[u.value.value])!==null&&Ae!==void 0?Ae:he}).map(he=>{const Pe=T.value.find(Ie=>Ie.value===he);return{value:he,label:Pe==null?void 0:Pe.label}}),ue=C(Se),ce=ue[0];return!c.value&&ce&&$4(ce.value)&&$4(ce.label)?[]:ue.map(he=>{var Pe;return m(m({},he),{label:(Pe=he.label)!==null&&Pe!==void 0?Pe:he.value})})}),[N]=Mge(B),F=(fe,ye,Se)=>{const ue=C(fe);if(w(ue),e.autoClearSearchValue&&f(""),e.onChange){let ce=fe;i.value&&(ce=C4(fe,e.showCheckedStrategy,h.value,u.value).map(Ne=>{const _e=b.value.get(Ne);return _e?_e.node[u.value.value]:Ne}));const{triggerValue:he,selected:Pe}=ye||{triggerValue:void 0,selected:void 0};let Ie=ce;if(e.treeCheckStrictly){const Me=_.value.filter(Ne=>!ce.includes(Ne.value));Ie=[...Ie,...Me]}const Ae=C(Ie),$e={preValue:T.value,triggerValue:he};let xe=!0;(e.treeCheckStrictly||Se==="selection"&&!Pe)&&(xe=!1),Ige($e,he,fe,v.value,xe,u.value),a.value?$e.checked=Pe:$e.selected=Pe;const we=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(c.value?we:we[0],s.value?null:Ae.map(Me=>Me.label),$e)}},L=(fe,ye)=>{let{selected:Se,source:ue}=ye;var ce,he,Pe;const Ie=Qe(h.value),Ae=Qe(b.value),$e=Ie[fe],xe=$e==null?void 0:$e.node,we=(ce=xe==null?void 0:xe[u.value.value])!==null&&ce!==void 0?ce:fe;if(!c.value)F([we],{selected:!0,triggerValue:we},"option");else{let Me=Se?[...E.value,we]:z.value.filter(Ne=>Ne!==we);if(i.value){const{missingRawValues:Ne,existRawValues:_e}=y(Me),De=_e.map(ft=>Ae.get(ft).key);let Je;Se?{checkedKeys:Je}=So(De,!0,Ie,A.value,R.value):{checkedKeys:Je}=So(De,{checked:!1,halfCheckedKeys:M.value},Ie,A.value,R.value),Me=[...Ne,...Je.map(ft=>Ie[ft].node[u.value.value])]}F(Me,{selected:Se,triggerValue:we},ue||"option")}Se||!c.value?(he=e.onSelect)===null||he===void 0||he.call(e,we,Dm(xe)):(Pe=e.onDeselect)===null||Pe===void 0||Pe.call(e,we,Dm(xe))},k=fe=>{if(e.onDropdownVisibleChange){const ye={};Object.defineProperty(ye,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(fe,ye)}},j=(fe,ye)=>{const Se=fe.map(ue=>ue.value);if(ye.type==="clear"){F(Se,{},"selection");return}ye.values.length&&L(ye.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:H,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,virtual:K,listHeight:q,listItemHeight:pe,treeLine:W,treeIcon:X,showTreeIcon:ne,switcherIcon:ae,treeMotion:se,customSlots:re,dropdownMatchSelectWidth:de,treeExpandAction:ge}=No(e);$z(Wd({checkable:a,loadData:Y,treeLoadedKeys:Z,onTreeLoad:U,checkedKeys:z,halfCheckedKeys:M,treeDefaultExpandAll:ee,treeExpandedKeys:G,treeDefaultExpandedKeys:J,onTreeExpand:Q,treeIcon:X,treeMotion:se,showTreeIcon:ne,switcherIcon:ae,treeLine:W,treeNodeFilterProp:H,keyEntities:h,customSlots:re})),yge(Wd({virtual:K,listHeight:q,listItemHeight:pe,treeData:S,fieldNames:u,onSelect:L,dropdownMatchSelectWidth:de,treeExpandAction:ge}));const me=le();return o({focus(){var fe;(fe=me.value)===null||fe===void 0||fe.focus()},blur(){var fe;(fe=me.value)===null||fe===void 0||fe.blur()},scrollTo(fe){var ye;(ye=me.value)===null||ye===void 0||ye.scrollTo(fe)}}),()=>{var fe;const ye=et(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return p(Y0,D(D(D({ref:me},n),ye),{},{id:l,prefixCls:e.prefixCls,mode:c.value?"multiple":void 0,displayValues:N.value,onDisplayValuesChange:j,searchValue:d.value,onSearch:g,OptionList:Cge,emptyOptions:!v.value.length,onDropdownVisibleChange:k,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(fe=e.dropdownMatchSelectWidth)!==null&&fe!==void 0?fe:!0}),r)}}}),Nge=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},j5(n,Fe(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},Kp(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Fge(e,t){return Ve("TreeSelect",n=>{const o=Fe(n,{treePrefixCls:t.value});return[Nge(o)]})(e)}const x4=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Lge(){return m(m({},et(tM(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:V.any,size:Be(),bordered:Ce(),treeLine:Le([Boolean,Object]),replaceFields:Re(),placement:Be(),status:Be(),popupClassName:String,dropdownClassName:String,"onUpdate:value":ve(),"onUpdate:treeExpandedKeys":ve(),"onUpdate:searchValue":ve()})}const Fh=oe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:qe(Lge(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:l}=t;e.treeData===void 0&&o.default,xt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),xt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),xt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Qt(),a=un.useInject(),s=P(()=>Ko(a.status,e.status)),{prefixCls:c,renderEmpty:u,direction:d,virtual:f,dropdownMatchSelectWidth:g,size:v,getPopupContainer:h,getPrefixCls:b,disabled:y}=Te("select",e),{compactSize:S,compactItemClassnames:$}=Ol(c,d),x=P(()=>S.value||v.value),C=qn(),O=P(()=>{var Z;return(Z=y.value)!==null&&Z!==void 0?Z:C.value}),w=P(()=>b()),I=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),T=P(()=>x4(w.value,K0(I.value),e.transitionName)),_=P(()=>x4(w.value,"",e.choiceTransitionName)),E=P(()=>b("select-tree",e.prefixCls)),A=P(()=>b("tree-select",e.prefixCls)),[R,z]=xb(c),[M]=Fge(A,E),B=P(()=>ie(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),N=P(()=>!!(e.treeCheckable||e.multiple)),F=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!N.value),L=le();r({focus(){var Z,U;(U=(Z=L.value).focus)===null||U===void 0||U.call(Z)},blur(){var Z,U;(U=(Z=L.value).blur)===null||U===void 0||U.call(Z)}});const k=function(){for(var Z=arguments.length,U=new Array(Z),ee=0;ee{l("update:treeExpandedKeys",Z),l("treeExpand",Z)},H=Z=>{l("update:searchValue",Z),l("search",Z)},Y=Z=>{l("blur",Z),i.onFieldBlur()};return()=>{var Z,U,ee;const{notFoundContent:G=(Z=o.notFoundContent)===null||Z===void 0?void 0:Z.call(o),prefixCls:J,bordered:Q,listHeight:K,listItemHeight:q,multiple:pe,treeIcon:W,treeLine:X,showArrow:ne,switcherIcon:ae=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:se=e.replaceFields,id:re=i.id.value,placeholder:de=(ee=o.placeholder)===null||ee===void 0?void 0:ee.call(o)}=e,{isFormItemInput:ge,hasFeedback:me,feedbackIcon:fe}=a,{suffixIcon:ye,removeIcon:Se,clearIcon:ue}=cb(m(m({},e),{multiple:N.value,showArrow:F.value,hasFeedback:me,feedbackIcon:fe,prefixCls:c.value}),o);let ce;G!==void 0?ce=G:ce=u("Select");const he=et(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),Pe=ie(!J&&A.value,{[`${c.value}-lg`]:x.value==="large",[`${c.value}-sm`]:x.value==="small",[`${c.value}-rtl`]:d.value==="rtl",[`${c.value}-borderless`]:!Q,[`${c.value}-in-form-item`]:ge},Tn(c.value,s.value,me),$.value,n.class,z.value),Ie={};return e.treeData===void 0&&o.default&&(Ie.children=yt(o.default())),R(M(p(Bge,D(D(D(D({},n),he),{},{disabled:O.value,virtual:f.value,dropdownMatchSelectWidth:g.value,id:re,fieldNames:se,ref:L,prefixCls:c.value,class:Pe,listHeight:K,listItemHeight:q,treeLine:!!X,inputIcon:ye,multiple:pe,removeIcon:Se,clearIcon:ue,switcherIcon:Ae=>H5(E.value,ae,Ae,o.leafIcon,X),showTreeIcon:W,notFoundContent:ce,getPopupContainer:h==null?void 0:h.value,treeMotion:null,dropdownClassName:B.value,choiceTransitionName:_.value,onChange:k,onBlur:Y,onSearch:H,onTreeExpand:j},Ie),{},{transitionName:T.value,customSlots:m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:me||ne,placeholder:de}),m(m({},o),{treeCheckable:()=>p("span",{class:`${c.value}-tree-checkbox-inner`},null)}))))}}}),Bm=L1,kge=m(Fh,{TreeNode:L1,SHOW_ALL:xge,SHOW_PARENT:eM,SHOW_CHILD:F1,install:e=>(e.component(Fh.name,Fh),e.component(Bm.displayName,Bm),e)}),Lh=()=>({format:String,showNow:Ce(),showHour:Ce(),showMinute:Ce(),showSecond:Ce(),use12Hours:Ce(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Ce(),popupClassName:String,status:Be()});function zge(e){const t=dE(e,m(m({},Lh()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=oe({name:"ATimePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),sE()),Lh()),{addon:{type:Function}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=Qt();xt(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=le();c({focus:()=>{var x;(x=v.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=v.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{u("update:value",x),u("change",x,C),g.onFieldChange()},b=x=>{u("update:open",x),u("openChange",x)},y=x=>{u("focus",x)},S=x=>{u("blur",x),g.onFieldBlur()},$=x=>{u("ok",x)};return()=>{const{id:x=g.id.value}=f;return p(n,D(D(D({},d),et(f,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),l=oe({name:"ATimeRangePicker",inheritAttrs:!1,props:m(m(m(m({},bf()),cE()),Lh()),{order:{type:Boolean,default:!0}}),slots:Object,setup(i,a){let{slots:s,expose:c,emit:u,attrs:d}=a;const f=i,g=le(),v=Qt();c({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{u("update:value",O),u("change",O,w),v.onFieldChange()},b=O=>{u("update:open",O),u("openChange",O)},y=O=>{u("focus",O)},S=O=>{u("blur",O),v.onFieldBlur()},$=(O,w)=>{u("panelChange",O,w)},x=O=>{u("ok",O)},C=(O,w,I)=>{u("calendarChange",O,w,I)};return()=>{const{id:O=v.id.value}=f;return p(o,D(D(D({},d),et(f,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:l}}const{TimePicker:Tu,TimeRangePicker:bd}=zge(Ub),Hge=m(Tu,{TimePicker:Tu,TimeRangePicker:bd,install:e=>(e.component(Tu.name,Tu),e.component(bd.name,bd),e)}),jge=()=>({prefixCls:String,color:String,dot:V.any,pending:Ce(),position:V.oneOf(Cn("left","right","")).def(""),label:V.any}),Sc=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:qe(jge(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("timeline",e),r=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),l=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),i=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!l.value}));return()=>{var a,s,c;const{label:u=(a=n.label)===null||a===void 0?void 0:a.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return p("li",{class:r.value},[u&&p("div",{class:`${o.value}-item-label`},[u]),p("div",{class:`${o.value}-item-tail`},null),p("div",{class:[i.value,!!d&&`${o.value}-item-head-custom`],style:{borderColor:l.value,color:l.value}},[d]),p("div",{class:`${o.value}-item-content`},[(c=n.default)===null||c===void 0?void 0:c.call(n)])])}}}),Wge=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, - &${t}-right, - &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, - ${t}-item-head, - ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending - ${t}-item-last - ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse - ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},Vge=Ve("Timeline",e=>{const t=Fe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[Wge(t)]}),Kge=()=>({prefixCls:String,pending:V.any,pendingDot:V.any,reverse:Ce(),mode:V.oneOf(Cn("left","alternate","right",""))}),js=oe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:qe(Kge(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("timeline",e),[i,a]=Vge(r),s=(c,u)=>{const d=c.props||{};return e.mode==="alternate"?d.position==="right"?`${r.value}-item-right`:d.position==="left"?`${r.value}-item-left`:u%2===0?`${r.value}-item-left`:`${r.value}-item-right`:e.mode==="left"?`${r.value}-item-left`:e.mode==="right"?`${r.value}-item-right`:d.position==="right"?`${r.value}-item-right`:""};return()=>{var c,u,d;const{pending:f=(c=n.pending)===null||c===void 0?void 0:c.call(n),pendingDot:g=(u=n.pendingDot)===null||u===void 0?void 0:u.call(n),reverse:v,mode:h}=e,b=typeof f=="boolean"?null:f,y=_t((d=n.default)===null||d===void 0?void 0:d.call(n)),S=f?p(Sc,{pending:!!f,dot:g||p(co,null,null)},{default:()=>[b]}):null;S&&y.push(S);const $=v?y.reverse():y,x=$.length,C=`${r.value}-item-last`,O=$.map((T,_)=>{const E=_===x-2?C:"",A=_===x-1?C:"";return sn(T,{class:ie([!v&&f?E:A,s(T,_)])})}),w=$.some(T=>{var _,E;return!!(!((_=T.props)===null||_===void 0)&&_.label||!((E=T.children)===null||E===void 0)&&E.label)}),I=ie(r.value,{[`${r.value}-pending`]:!!f,[`${r.value}-reverse`]:!!v,[`${r.value}-${h}`]:!!h&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value);return i(p("ul",D(D({},o),{},{class:I}),[O]))}}});js.Item=Sc;js.install=function(e){return e.component(js.name,js),e.component(Sc.name,Sc),e};var Gge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const Xge=Gge;function w4(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:l}=o;return{marginBottom:r,color:n,fontWeight:l,fontSize:e,lineHeight:t}},Zge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` - h${o}&, - div&-h${o}, - div&-h${o} > textarea, - h${o} - `]=qge(e[`fontSizeHeading${o}`],e[`lineHeightHeading${o}`],e.colorTextHeading,e)}),n},Qge=e=>{const{componentCls:t}=e;return{"a&, a":m(m({},Jf(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Jge=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:U9[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ehe=e=>{const{componentCls:t}=e,o=Ti(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-o,marginBottom:`calc(1em - ${o}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},the=e=>({"&-copy-success":{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}}}),nhe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),ohe=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:m(m(m(m(m(m(m(m(m({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Zge(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),Jge()),Qge(e)),{[` - ${t}-expand, - ${t}-edit, - ${t}-copy - `]:m(m({},Jf(e)),{marginInlineStart:e.marginXXS})}),ehe(e)),the(e)),nhe()),{"&-rtl":{direction:"rtl"}})}},nM=Ve("Typography",e=>[ohe(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),rhe=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),lhe=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:rhe(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l}=No(e),i=ut({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});be(()=>e.value,S=>{i.current=S});const a=le();je(()=>{var S;if(a.value){const $=(S=a.value)===null||S===void 0?void 0:S.resizableTextArea,x=$==null?void 0:$.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){a.value=S}function c(S){let{target:{value:$}}=S;i.current=$.replace(/[\r\n]/g,""),n("change",i.current)}function u(){i.inComposition=!0}function d(){i.inComposition=!1}function f(S){const{keyCode:$}=S;$===Oe.ENTER&&S.preventDefault(),!i.inComposition&&(i.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;i.lastKeyCode===$&&!i.inComposition&&!x&&!C&&!O&&!w&&($===Oe.ENTER?(h(),n("end")):$===Oe.ESC&&(i.current=e.originContent,n("cancel")))}function v(){h()}function h(){n("save",i.current.trim())}const[b,y]=nM(l);return()=>{const S=ie({[`${l.value}`]:!0,[`${l.value}-edit-content`]:!0,[`${l.value}-rtl`]:e.direction==="rtl",[e.component?`${l.value}-${e.component}`:""]:!0},r.class,y.value);return b(p("div",D(D({},r),{},{class:S}),[p(Zy,{ref:s,maxlength:e.maxlength,value:i.current,onChange:c,onKeydown:f,onKeyup:g,onCompositionstart:u,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(Yge,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),ihe=lhe,ahe=3,she=8;let Xn;const kh={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function oM(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=lz(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function che(e){const t=document.createElement("div");oM(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const uhe=(e,t,n,o,r)=>{Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const{rows:l,suffix:i=""}=t,a=che(e),s=Math.round(a*l*100)/100;oM(Xn,e);const c=mO({render(){return p("div",{style:kh},[p("span",{style:kh},[n,i]),p("span",{style:kh},[o])])}});c.mount(Xn);function u(){return Math.round(Xn.getBoundingClientRect().height*100)/100-.1<=s}if(u())return c.unmount(),{content:n,text:Xn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==she&&C!==""}),f=Array.prototype.slice.apply(Xn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);c.unmount();const g=[];Xn.innerHTML="";const v=document.createElement("span");Xn.appendChild(v);const h=document.createTextNode(r+i);v.appendChild(h),f.forEach($=>{Xn.appendChild($)});function b($){v.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const I=Math.floor((C+O)/2),T=x.slice(0,I);if($.textContent=T,C>=O-1)for(let _=O;_>=C;_-=1){const E=x.slice(0,_);if($.textContent=E,u()||!E)return _===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:E}}return u()?y($,x,I,O,I):y($,x,C,I,w)}function S($){if($.nodeType===ahe){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:Xn.innerHTML,ellipsis:!0}};var dhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),phe=oe({name:"ATypography",inheritAttrs:!1,props:fhe(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:l}=Te("typography",e),[i,a]=nM(r);return()=>{var s;const c=m(m({},e),o),{prefixCls:u,direction:d,component:f="article"}=c,g=dhe(c,["prefixCls","direction","component"]);return i(p(f,D(D({},g),{},{class:ie(r.value,{[`${r.value}-rtl`]:l.value==="rtl"},o.class,a.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Un=phe,ghe=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=O4[t.format]||O4.default;window.clipboardData.setData(d,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(i),r.selectNodeContents(i),l.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(c){s&&console.error("unable to copy using execCommand: ",c),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(u){s&&console.error("unable to copy using clipboardData: ",u),s&&console.error("falling back to prompt"),n=mhe("message"in t?t.message:vhe),window.prompt(n,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(r):l.removeAllRanges()),i&&document.body.removeChild(i),o()}return a}var yhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const She=yhe;function P4(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Mhe=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Vc(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:l,direction:i}=Te("typography",e),a=ut({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=le(),c=le(),u=P(()=>{const M=e.ellipsis;return M?m({rows:1,expandable:!1},typeof M=="object"?M:null):{}});je(()=>{a.clientRendered=!0,I()}),Ze(()=>{clearTimeout(a.copyId),Ye.cancel(a.rafId)}),be([()=>u.value.rows,()=>e.content],()=>{ot(()=>{O()})},{flush:"post",deep:!0}),ke(()=>{e.content===void 0&&(It(!e.editable),It(!e.ellipsis))});function d(){var M;return e.ellipsis||e.editable?e.content:(M=Hn(s.value))===null||M===void 0?void 0:M.innerText}function f(M){const{onExpand:B}=u.value;a.expanded=!0,B==null||B(M)}function g(M){M.preventDefault(),a.originContent=e.content,C(!0)}function v(M){h(M),C(!1)}function h(M){const{onChange:B}=S.value;M!==e.content&&(r("update:content",M),B==null||B(M))}function b(){var M,B;(B=(M=S.value).onCancel)===null||B===void 0||B.call(M),C(!1)}function y(M){M.preventDefault(),M.stopPropagation();const{copyable:B}=e,N=m({},typeof B=="object"?B:null);N.text===void 0&&(N.text=d()),bhe(N.text||""),a.copied=!0,ot(()=>{N.onCopy&&N.onCopy(M),a.copyId=setTimeout(()=>{a.copied=!1},3e3)})}const S=P(()=>{const M=e.editable;return M?m({},typeof M=="object"?M:null):{editing:!1}}),[$,x]=Pt(!1,{value:P(()=>S.value.editing)});function C(M){const{onStart:B}=S.value;M&&B&&B(),x(M)}be($,M=>{var B;M||(B=c.value)===null||B===void 0||B.focus()},{flush:"post"});function O(M){if(M){const{width:B,height:N}=M;if(!B||!N)return}Ye.cancel(a.rafId),a.rafId=Ye(()=>{I()})}const w=P(()=>{const{rows:M,expandable:B,suffix:N,onEllipsis:F,tooltip:L}=u.value;return N||L||e.editable||e.copyable||B||F?!1:M===1?Ehe:The}),I=()=>{const{ellipsisText:M,isEllipsis:B}=a,{rows:N,suffix:F,onEllipsis:L}=u.value;if(!N||N<0||!Hn(s.value)||a.expanded||e.content===void 0||w.value)return;const{content:k,text:j,ellipsis:H}=uhe(Hn(s.value),{rows:N,suffix:F},e.content,z(!0),T4);(M!==j||a.isEllipsis!==H)&&(a.ellipsisText=j,a.ellipsisContent=k,a.isEllipsis=H,B!==H&&L&&L(H))};function T(M,B){let{mark:N,code:F,underline:L,delete:k,strong:j,keyboard:H}=M,Y=B;function Z(U,ee){if(!U)return;const G=function(){return Y}();Y=p(ee,null,{default:()=>[G]})}return Z(j,"strong"),Z(L,"u"),Z(k,"del"),Z(F,"code"),Z(N,"mark"),Z(H,"kbd"),Y}function _(M){const{expandable:B,symbol:N}=u.value;if(!B||!M&&(a.expanded||!a.isEllipsis))return null;const F=(n.ellipsisSymbol?n.ellipsisSymbol():N)||a.expandStr;return p("a",{key:"expand",class:`${l.value}-expand`,onClick:f,"aria-label":a.expandStr},[F])}function E(){if(!e.editable)return;const{tooltip:M,triggerType:B=["icon"]}=e.editable,N=n.editableIcon?n.editableIcon():p(Phe,{role:"button"},null),F=n.editableTooltip?n.editableTooltip():a.editStr,L=typeof F=="string"?F:"";return B.indexOf("icon")!==-1?p(Yn,{key:"edit",title:M===!1?"":F},{default:()=>[p(Cf,{ref:c,class:`${l.value}-edit`,onClick:g,"aria-label":L},{default:()=>[N]})]}):null}function A(){if(!e.copyable)return;const{tooltip:M}=e.copyable,B=a.copied?a.copiedStr:a.copyStr,N=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):B,F=typeof N=="string"?N:"",L=a.copied?p(vp,null,null):p(Che,null,null),k=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):L;return p(Yn,{key:"copy",title:M===!1?"":N},{default:()=>[p(Cf,{class:[`${l.value}-copy`,{[`${l.value}-copy-success`]:a.copied}],onClick:y,"aria-label":F},{default:()=>[k]})]})}function R(){const{class:M,style:B}=o,{maxlength:N,autoSize:F,onEnd:L}=S.value;return p(ihe,{class:M,style:B,prefixCls:l.value,value:e.content,originContent:a.originContent,maxlength:N,autoSize:F,onSave:v,onChange:h,onCancel:b,onEnd:L,direction:i.value,component:e.component},{enterIcon:n.editableEnterIcon})}function z(M){return[_(M),E(),A()].filter(B=>B)}return()=>{var M;const{triggerType:B=["icon"]}=S.value,N=e.ellipsis||e.editable?e.content!==void 0?e.content:(M=n.default)===null||M===void 0?void 0:M.call(n):n.default?n.default():e.content;return $.value?R():p(bi,{componentName:"Text",children:F=>{const L=m(m({},e),o),{type:k,disabled:j,content:H,class:Y,style:Z}=L,U=Ihe(L,["type","disabled","content","class","style"]),{rows:ee,suffix:G,tooltip:J}=u.value,{edit:Q,copy:K,copied:q,expand:pe}=F;a.editStr=Q,a.copyStr=K,a.copiedStr=q,a.expandStr=pe;const W=et(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),X=w.value,ne=ee===1&&X,ae=ee&&ee>1&&X;let se=N,re;if(ee&&a.isEllipsis&&!a.expanded&&!X){const{title:me}=U;let fe=me||"";!me&&(typeof N=="string"||typeof N=="number")&&(fe=String(N)),fe=fe==null?void 0:fe.slice(String(a.ellipsisContent||"").length),se=p(We,null,[Qe(a.ellipsisContent),p("span",{title:fe,"aria-hidden":"true"},[T4]),G])}else se=p(We,null,[N,G]);se=T(e,se);const de=J&&ee&&a.isEllipsis&&!a.expanded&&!X,ge=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(xo,{onResize:O,disabled:!ee},{default:()=>[p(Un,D({ref:s,class:[{[`${l.value}-${k}`]:k,[`${l.value}-disabled`]:j,[`${l.value}-ellipsis`]:ee,[`${l.value}-single-line`]:ee===1&&!a.isEllipsis,[`${l.value}-ellipsis-single-line`]:ne,[`${l.value}-ellipsis-multiple-line`]:ae},Y],style:m(m({},Z),{WebkitLineClamp:ae?ee:void 0}),"aria-label":re,direction:i.value,onClick:B.indexOf("text")!==-1?g:()=>{}},W),{default:()=>[de?p(Yn,{title:J===!0?N:ge},{default:()=>[p("span",null,[se])]}):se,z()]})]})}},null)}}}),Kc=Mhe;var _he=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);ret(m(m({},Vc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),tg=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m({},e),o),{ellipsis:l,rel:i}=r,a=_he(r,["ellipsis","rel"]);It();const s=m(m({},a),{rel:i===void 0&&a.target==="_blank"?"noopener noreferrer":i,ellipsis:!!l,component:"a"});return delete s.navigate,p(Kc,s,n)};tg.displayName="ATypographyLink";tg.inheritAttrs=!1;tg.props=Ahe();const j1=tg,Rhe=()=>et(Vc(),["component"]),ng=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m(m({},e),{component:"div"}),o);return p(Kc,r,n)};ng.displayName="ATypographyParagraph";ng.inheritAttrs=!1;ng.props=Rhe();const W1=ng,Dhe=()=>m(m({},et(Vc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),og=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e;It();const l=m(m(m({},e),{ellipsis:r&&typeof r=="object"?et(r,["expandable","rows"]):r,component:"span"}),o);return p(Kc,l,n)};og.displayName="ATypographyText";og.inheritAttrs=!1;og.props=Dhe();const V1=og;var Bhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},et(Vc(),["component","strong"])),{level:Number}),rg=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,l=Bhe(e,["level"]);let i;Nhe.includes(r)?i=`h${r}`:(It(),i="h1");const a=m(m(m({},l),{component:i}),o);return p(Kc,a,n)};rg.displayName="ATypographyTitle";rg.inheritAttrs=!1;rg.props=Fhe();const K1=rg;Un.Text=V1;Un.Title=K1;Un.Paragraph=W1;Un.Link=j1;Un.Base=Kc;Un.install=function(e){return e.component(Un.name,Un),e.component(Un.Text.displayName,V1),e.component(Un.Title.displayName,K1),e.component(Un.Paragraph.displayName,W1),e.component(Un.Link.displayName,j1),e};function Lhe(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function E4(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function khe(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const l=e.data[r];if(Array.isArray(l)){l.forEach(i=>{n.append(`${r}[]`,i)});return}n.append(r,l)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(l){e.onError(l)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Lhe(e,t),E4(t)):e.onSuccess(E4(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const zhe=+new Date;let Hhe=0;function zh(){return`vc-upload-${zhe}-${++Hhe}`}const Hh=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some(i=>{const a=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(a.charAt(0)==="."){const s=o.toLowerCase(),c=a.toLowerCase();let u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(d=>s.endsWith(d))}return/\/\*$/.test(a)?l===a.replace(/\/.*$/,""):!!(r===a||/^\w+$/.test(a))})}return!0};function jhe(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(l=>{const i=Array.prototype.slice.apply(l);o=o.concat(i),!i.length?t(o):r()})}r()}const Whe=(e,t,n)=>{const o=(r,l)=>{r.path=l||"",r.isFile?r.file(i=>{n(i)&&(r.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t([i]))}):r.isDirectory&&jhe(r,i=>{i.forEach(a=>{o(a,`${l}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},Vhe=Whe,rM=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var Khe=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ghe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rKhe(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:I}=e;let T;typeof I=="function"?T=yield I(S):T=I;const _=(typeof C=="object"||typeof C=="string")&&C?C:S;let E;_ instanceof File?E=_:E=new File([_],S.name,{type:S.type});const A=E;return A.uid=S.uid,{origin:S,data:T,parsedFile:A,action:w}}),u=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:I,name:T,headers:_,withCredentials:E,method:A}=e,{uid:R}=x,z=I||khe,M={action:C,filename:T,data:$,file:O,headers:_,withCredentials:E,method:A||"post",onProgress:B=>{const{onProgress:N}=e;N==null||N(B,O)},onSuccess:(B,N)=>{const{onSuccess:F}=e;F==null||F(B,O,N),delete i[R]},onError:(B,N)=>{const{onError:F}=e;F==null||F(B,N,O),delete i[R]}};w(x),i[R]=z(M)},d=()=>{l.value=zh()},f=S=>{if(S){const $=S.uid?S.uid:S;i[$]&&i[$].abort&&i[$].abort(),delete i[$]}else Object.keys(i).forEach($=>{i[$]&&i[$].abort&&i[$].abort(),delete i[$]})};je(()=>{s=!0}),Ze(()=>{s=!1,f()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=zh(),c(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O==null||O(C.map(w=>{let{origin:I,parsedFile:T}=w;return{file:I,parsedFile:T}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{u(w)})})},v=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||Hh(w,$));g(O),d()},h=S=>{const $=a.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)Vhe(Array.prototype.slice.call(S.dataTransfer.items),g,x=>Hh(x,e.accept));else{const x=KK(Array.prototype.slice.call(S.dataTransfer.files),w=>Hh(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:f}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:I,capture:T,directory:_,openFileDialogOnClick:E,onMouseenter:A,onMouseleave:R}=e,z=Ghe(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),M={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},B=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return p($,D(D({},C?{}:{onClick:E?h:()=>{},onKeydown:E?b:()=>{},onMouseenter:A,onMouseleave:R,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:M,role:"button",style:o.style}),{default:()=>[p("input",D(D(D({},wl(z,{aria:!0,data:!0})),{},{id:O,type:"file",ref:a,onClick:F=>F.stopPropagation(),onCancel:F=>F.stopPropagation(),key:l.value,style:{display:"none"},accept:I},B),{},{multiple:w,onChange:v},T!=null?{capture:T}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function jh(){}const M4=oe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:qe(rM(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jh,onError:jh,onSuccess:jh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const l=le();return r({abort:a=>{var s;(s=l.value)===null||s===void 0||s.abort(a)}}),()=>p(Xhe,D(D(D({},e),o),{},{ref:l}),n)}});var Uhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const Yhe=Uhe;function _4(e){for(var t=1;t{let{uid:l}=r;return l===e.uid});return o===-1?n.push(e):n[o]=e,n}function Wh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function ave(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const sve=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},iM=e=>e.indexOf("image/")===0,cve=e=>{if(e.type&&!e.thumbUrl)return iM(e.type);const t=e.thumbUrl||e.url||"",n=sve(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Yr=200;function uve(e){return new Promise(t=>{if(!e.type||!iM(e.type)){t("");return}const n=document.createElement("canvas");n.width=Yr,n.height=Yr,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yr}px; height: ${Yr}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:l,height:i}=r;let a=Yr,s=Yr,c=0,u=0;l>i?(s=i*(Yr/l),u=-(s-a)/2):(a=l*(Yr/i),c=-(a-s)/2),o.drawImage(r,c,u,a,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const l=new FileReader;l.addEventListener("load",()=>{l.result&&(r.src=l.result)}),l.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var dve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const fve=dve;function D4(e){for(var t=1;t({prefixCls:String,locale:Re(void 0),file:Re(),items:at(),listType:Be(),isImgUrl:ve(),showRemoveIcon:Ce(),showDownloadIcon:Ce(),showPreviewIcon:Ce(),removeIcon:ve(),downloadIcon:ve(),previewIcon:ve(),iconRender:ve(),actionIconRender:ve(),itemRender:ve(),onPreview:ve(),onClose:ve(),onDownload:ve(),progress:Re()}),vve=oe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:hve(),setup(e,t){let{slots:n,attrs:o}=t;var r;const l=te(!1),i=te();je(()=>{i.value=setTimeout(()=>{l.value=!0},300)}),Ze(()=>{clearTimeout(i.value)});const a=te((r=e.file)===null||r===void 0?void 0:r.status);be(()=>{var u;return(u=e.file)===null||u===void 0?void 0:u.status},u=>{u!=="removed"&&(a.value=u)});const{rootPrefixCls:s}=Te("upload",e),c=P(()=>Po(`${s.value}-fade`));return()=>{var u,d;const{prefixCls:f,locale:g,listType:v,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:I,previewIcon:T=n.previewIcon,removeIcon:_=n.removeIcon,downloadIcon:E=n.downloadIcon,onPreview:A,onDownload:R,onClose:z}=e,{class:M,style:B}=o,N=S({file:h});let F=p("div",{class:`${f}-text-icon`},[N]);if(v==="picture"||v==="picture-card")if(a.value==="uploading"||!h.thumbUrl&&!h.url){const W={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:a.value!=="uploading"};F=p("div",{class:W},[N])}else{const W=C!=null&&C(h)?p("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${f}-list-item-image`,crossorigin:h.crossOrigin},null):N,X={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:C&&!C(h)};F=p("a",{class:X,onClick:ne=>A(h,ne),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[W])}const L={[`${f}-list-item`]:!0,[`${f}-list-item-${a.value}`]:!0},k=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,j=w?$({customIcon:_?_({file:h}):p(Q5,null,null),callback:()=>z(h),prefixCls:f,title:g.removeFile}):null,H=I&&a.value==="done"?$({customIcon:E?E({file:h}):p(gve,null,null),callback:()=>R(h),prefixCls:f,title:g.downloadFile}):null,Y=v!=="picture-card"&&p("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[H,j]),Z=`${f}-list-item-name`,U=h.url?[p("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:Z,title:h.name},k),{},{href:h.url,onClick:W=>A(h,W)}),[h.name]),Y]:[p("span",{key:"view",class:Z,onClick:W=>A(h,W),title:h.name},[h.name]),Y],ee={pointerEvents:"none",opacity:.5},G=O?p("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:ee,onClick:W=>A(h,W),title:g.previewFile},[T?T({file:h}):p(Jy,null,null)]):null,J=v==="picture-card"&&a.value!=="uploading"&&p("span",{class:`${f}-list-item-actions`},[G,a.value==="done"&&H,j]),Q=p("div",{class:L},[F,U,J,l.value&&p(cn,c.value,{default:()=>[$n(p("div",{class:`${f}-list-item-progress`},["percent"in h?p(b1,D(D({},y),{},{type:"line",percent:h.percent}),null):null]),[[En,a.value==="uploading"]])]})]),K={[`${f}-list-item-container`]:!0,[`${M}`]:!!M},q=h.response&&typeof h.response=="string"?h.response:((u=h.error)===null||u===void 0?void 0:u.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,pe=a.value==="error"?p(Yn,{title:q,getPopupContainer:W=>W.parentNode},{default:()=>[Q]}):Q;return p("div",{class:K,style:B},[x?x({originNode:pe,file:h,fileList:b,actions:{download:R.bind(null,h),preview:A.bind(null,h),remove:z.bind(null,h)}}):pe])}}}),mve=(e,t)=>{let{slots:n}=t;var o;return _t((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},bve=oe({compatConfig:{MODE:3},name:"AUploadList",props:qe(ive(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:uve,isImageUrl:cve,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=te(!1);je(()=>{r.value==!0});const l=te([]);be(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];l.value=h.slice()},{immediate:!0,deep:!0}),ke(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(l.value[y].thumbUrl=$,h=!0)}))}),h&&$3(l)});const i=(h,b)=>{if(e.onPreview)return b==null||b.preventDefault(),e.onPreview(h)},a=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},c=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?p(tve,null,null):p(lve,null,null);let x=p(S?co:Zhe,null,null);return e.listType==="picture"?x=S?p(co,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},u=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return Kt(b)?p(zt,x,{icon:()=>b}):p(zt,x,{default:()=>[p("span",null,[b])]})};o({handlePreview:i,handleDownload:a});const{prefixCls:d,rootPrefixCls:f}=Te("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=P(()=>{const h=m({},Rc(`${f.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=m(m({},up(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?m(m({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:I,appendAction:T,itemRender:_,appendActionVisible:E}=e,A=T==null?void 0:T(),R=l.value;return p(Hf,D(D({},v.value),{},{tag:"div"}),{default:()=>[R.map(z=>{const{uid:M}=z;return p(vve,{key:M,locale:b,prefixCls:d.value,file:z,items:R,progress:I,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:i,onDownload:a,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:_},m(m({},n),{iconRender:c,actionIconRender:u}))}),T?$n(p(mve,{key:"__ant_upload_appendAction"},{default:()=>A}),[[En,!!E]]):null]})}}}),yve=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},Sve=yve,$ve=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:l}=e,i=`${t}-list-item`,a=`${i}-actions`,s=`${i}-action`,c=Math.round(r*l);return{[`${t}-wrapper`]:{[`${t}-list`]:m(m({},zo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:m(m({},Gt),{padding:`0 ${e.paddingXS}px`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:c,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${s}:focus, - &.picture ${s} - `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cve=$ve,B4=new nt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),N4=new nt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),xve=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:B4},[`${n}-leave`]:{animationName:N4}}},B4,N4]},wve=xve,Ove=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,l=`${t}-list`,i=`${l}-item`;return{[`${t}-wrapper`]:{[`${l}${l}-picture, ${l}${l}-picture-card`]:{[i]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:m(m({},Gt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:r}}}}}},Pve=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,l=`${t}-list`,i=`${l}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:m(m({},zo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card`]:{[`${l}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new gt(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Ive=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Tve=Ive,Eve=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:m(m({},Xe(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Mve=Ve("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:l}=e,i=Math.round(n*o),a=Fe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:i/2+r,uploadPicCardSize:l*2.55});return[Eve(a),Sve(a),Ove(a),Pve(a),Cve(a),wve(a),Tve(a),Ac(a)]});var _ve=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function a(u){try{c(o.next(u))}catch(d){i(d)}}function s(u){try{c(o.throw(u))}catch(d){i(d)}}function c(u){u.done?l(u.value):r(u.value).then(a,s)}c((o=o.apply(e,t||[])).next())})},Ave=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var E;return(E=s.value)!==null&&E!==void 0?E:d.value}),[g,v]=Pt(e.defaultFileList||[],{value:ze(e,"fileList"),postState:E=>{const A=Date.now();return(E??[]).map((R,z)=>(!R.uid&&!Object.isFrozen(R)&&(R.uid=`__AUTO__${A}_${z}__`),R))}}),h=le("drop"),b=le(null);je(()=>{xt(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),xt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),xt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(E,A,R)=>{var z,M;let B=[...A];e.maxCount===1?B=B.slice(-1):e.maxCount&&(B=B.slice(0,e.maxCount)),v(B);const N={file:E,fileList:B};R&&(N.event=R),(z=e["onUpdate:fileList"])===null||z===void 0||z.call(e,N.fileList),(M=e.onChange)===null||M===void 0||M.call(e,N),l.onFieldChange()},S=(E,A)=>_ve(this,void 0,void 0,function*(){const{beforeUpload:R,transformFile:z}=e;let M=E;if(R){const B=yield R(E,A);if(B===!1)return!1;if(delete E[ds],B===ds)return Object.defineProperty(E,ds,{value:!0,configurable:!0}),!1;typeof B=="object"&&B&&(M=B)}return z&&(M=yield z(M)),M}),$=E=>{const A=E.filter(M=>!M.file[ds]);if(!A.length)return;const R=A.map(M=>Eu(M.file));let z=[...g.value];R.forEach(M=>{z=Mu(M,z)}),R.forEach((M,B)=>{let N=M;if(A[B].parsedFile)M.status="uploading";else{const{originFileObj:F}=M;let L;try{L=new File([F],F.name,{type:F.type})}catch{L=new Blob([F],{type:F.type}),L.name=F.name,L.lastModifiedDate=new Date,L.lastModified=new Date().getTime()}L.uid=M.uid,N=L}y(N,z)})},x=(E,A,R)=>{try{typeof E=="string"&&(E=JSON.parse(E))}catch{}if(!Wh(A,g.value))return;const z=Eu(A);z.status="done",z.percent=100,z.response=E,z.xhr=R;const M=Mu(z,g.value);y(z,M)},C=(E,A)=>{if(!Wh(A,g.value))return;const R=Eu(A);R.status="uploading",R.percent=E.percent;const z=Mu(R,g.value);y(R,z,E)},O=(E,A,R)=>{if(!Wh(R,g.value))return;const z=Eu(R);z.error=E,z.response=A,z.status="error";const M=Mu(z,g.value);y(z,M)},w=E=>{let A;const R=e.onRemove||e.remove;Promise.resolve(typeof R=="function"?R(E):R).then(z=>{var M,B;if(z===!1)return;const N=ave(E,g.value);N&&(A=m(m({},E),{status:"removed"}),(M=g.value)===null||M===void 0||M.forEach(F=>{const L=A.uid!==void 0?"uid":"name";F[L]===A[L]&&!Object.isFrozen(F)&&(F.status="removed")}),(B=b.value)===null||B===void 0||B.abort(A),y(A,N))})},I=E=>{var A;h.value=E.type,E.type==="drop"&&((A=e.onDrop)===null||A===void 0||A.call(e,E))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[T]=Io("Upload",jn.Upload,P(()=>e.locale)),_=(E,A)=>{const{removeIcon:R,previewIcon:z,downloadIcon:M,previewFile:B,onPreview:N,onDownload:F,isImageUrl:L,progress:k,itemRender:j,iconRender:H,showUploadList:Y}=e,{showDownloadIcon:Z,showPreviewIcon:U,showRemoveIcon:ee}=typeof Y=="boolean"?{}:Y;return Y?p(bve,{prefixCls:i.value,listType:e.listType,items:g.value,previewFile:B,onPreview:N,onDownload:F,onRemove:w,showRemoveIcon:!f.value&&ee,showPreviewIcon:U,showDownloadIcon:Z,removeIcon:R,previewIcon:z,downloadIcon:M,iconRender:H,locale:T.value,isImageUrl:L,progress:k,itemRender:j,appendActionVisible:A,appendAction:E},m({},n)):E==null?void 0:E()};return()=>{var E,A,R;const{listType:z,type:M}=e,{class:B,style:N}=o,F=Ave(o,["class","style"]),L=m(m(m({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},F),e),{id:(E=e.id)!==null&&E!==void 0?E:l.id.value,prefixCls:i.value,beforeUpload:S,onChange:void 0,disabled:f.value});delete L.remove,(!n.default||f.value)&&delete L.id;const k={[`${i.value}-rtl`]:a.value==="rtl"};if(M==="drag"){const Z=ie(i.value,{[`${i.value}-drag`]:!0,[`${i.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${i.value}-drag-hover`]:h.value==="dragover",[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"},o.class,u.value);return c(p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,B,u.value)}),[p("div",{class:Z,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[p(M4,D(D({},L),{},{ref:b,class:`${i.value}-btn`}),D({default:()=>[p("div",{class:`${i.value}-drag-container`},[(A=n.default)===null||A===void 0?void 0:A.call(n)])]},n))]),_()]))}const j=ie(i.value,{[`${i.value}-select`]:!0,[`${i.value}-select-${z}`]:!0,[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:a.value==="rtl"}),H=yt((R=n.default)===null||R===void 0?void 0:R.call(n)),Y=Z=>p("div",{class:j,style:Z},[p(M4,D(D({},L),{},{ref:b}),n)]);return c(z==="picture-card"?p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,`${i.value}-picture-card-wrapper`,k,o.class,u.value)}),[_(Y,!!(H&&H.length))]):p("span",D(D({},o),{},{class:ie(`${i.value}-wrapper`,k,o.class,u.value)}),[Y(H&&H.length?void 0:{display:"none"}),_()]))}}});var F4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,l=F4(e,["height"]),{style:i}=o,a=F4(o,["style"]),s=m(m(m({},l),a),{type:"drag",style:m(m({},i),{height:typeof r=="number"?`${r}px`:r})});return p(yd,s,n)}}}),Rve=Sd,Dve=m(yd,{Dragger:Sd,LIST_IGNORE:ds,install(e){return e.component(yd.name,yd),e.component(Sd.name,Sd),e}});function Bve(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function Nve(e){return Object.keys(e).map(t=>`${Bve(t)}: ${e[t]};`).join(" ")}function L4(){return window.devicePixelRatio||1}function Vh(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const Fve=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var Lve=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=P6}=n,r=Lve(n,["window"]);let l;const i=w6(()=>o&&"MutationObserver"in o),a=()=>{l&&(l.disconnect(),l=void 0)},s=be(()=>gy(e),u=>{a(),i.value&&o&&u&&(l=new MutationObserver(t),l.observe(u,r))},{immediate:!0}),c=()=>{a(),s()};return x6(c),{isSupported:i,stop:c}}const Kh=2,k4=3,zve=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Le([String,Array]),font:Re(),rootClassName:String,gap:at(),offset:at()}),Hve=oe({name:"AWatermark",inheritAttrs:!1,props:qe(zve(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=Fr(),l=te(),i=te(),a=te(!1),s=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:100}),c=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:100}),u=P(()=>s.value/2),d=P(()=>c.value/2),f=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:u.value}),g=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:d.value}),v=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontSize)!==null&&E!==void 0?E:r.value.fontSizeLG}),h=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontWeight)!==null&&E!==void 0?E:"normal"}),b=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontStyle)!==null&&E!==void 0?E:"normal"}),y=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontFamily)!==null&&E!==void 0?E:"sans-serif"}),S=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.color)!==null&&E!==void 0?E:r.value.colorFill}),$=P(()=>{var _;const E={zIndex:(_=e.zIndex)!==null&&_!==void 0?_:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=f.value-u.value,R=g.value-d.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),R>0&&(E.top=`${R}px`,E.height=`calc(100% - ${R}px)`,R=0),E.backgroundPosition=`${A}px ${R}px`,E}),x=()=>{i.value&&(i.value.remove(),i.value=void 0)},C=(_,E)=>{var A;l.value&&i.value&&(a.value=!0,i.value.setAttribute("style",Nve(m(m({},$.value),{backgroundImage:`url('${_}')`,backgroundSize:`${(s.value+E)*Kh}px`}))),(A=l.value)===null||A===void 0||A.append(i.value),setTimeout(()=>{a.value=!1}))},O=_=>{let E=120,A=64;const R=e.content,z=e.image,M=e.width,B=e.height;if(!z&&_.measureText){_.font=`${Number(v.value)}px ${y.value}`;const N=Array.isArray(R)?R:[R],F=N.map(L=>_.measureText(L).width);E=Math.ceil(Math.max(...F)),A=Number(v.value)*N.length+(N.length-1)*k4}return[M??E,B??A]},w=(_,E,A,R,z)=>{const M=L4(),B=e.content,N=Number(v.value)*M;_.font=`${b.value} normal ${h.value} ${N}px/${z}px ${y.value}`,_.fillStyle=S.value,_.textAlign="center",_.textBaseline="top",_.translate(R/2,0);const F=Array.isArray(B)?B:[B];F==null||F.forEach((L,k)=>{_.fillText(L??"",E,A+k*(N+k4*M))})},I=()=>{var _;const E=document.createElement("canvas"),A=E.getContext("2d"),R=e.image,z=(_=e.rotate)!==null&&_!==void 0?_:-22;if(A){i.value||(i.value=document.createElement("div"));const M=L4(),[B,N]=O(A),F=(s.value+B)*M,L=(c.value+N)*M;E.setAttribute("width",`${F*Kh}px`),E.setAttribute("height",`${L*Kh}px`);const k=s.value*M/2,j=c.value*M/2,H=B*M,Y=N*M,Z=(H+s.value*M)/2,U=(Y+c.value*M)/2,ee=k+F,G=j+L,J=Z+F,Q=U+L;if(A.save(),Vh(A,Z,U,z),R){const K=new Image;K.onload=()=>{A.drawImage(K,k,j,H,Y),A.restore(),Vh(A,J,Q,z),A.drawImage(K,ee,G,H,Y),C(E.toDataURL(),B)},K.crossOrigin="anonymous",K.referrerPolicy="no-referrer",K.src=R}else w(A,k,j,H,Y),A.restore(),Vh(A,J,Q,z),w(A,ee,G,H,Y),C(E.toDataURL(),B)}};return je(()=>{I()}),be(()=>[e,r.value.colorFill,r.value.fontSizeLG],()=>{I()},{deep:!0,flush:"post"}),Ze(()=>{x()}),kve(l,_=>{a.value||_.forEach(E=>{Fve(E,i.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var _;return p("div",D(D({},o),{},{ref:l,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(_=n.default)===null||_===void 0?void 0:_.call(n)])}}}),jve=Tt(Hve);function z4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function H4(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Wve=m({overflow:"hidden"},Gt),Vve=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Xe(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":m(m({},H4(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":m({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Wve),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:m(m({},H4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),z4(`&-disabled ${t}-item`,e)),z4(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Kve=Ve("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:l,colorBgLayout:i,colorBgElevated:a}=e,s=Fe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:i,bgColorHover:l,bgColorSelected:a});return[Vve(s)]}),j4=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,ki=e=>e!==void 0?`${e}px`:void 0,Gve=oe({props:{value:St(),getValueIndex:St(),prefixCls:St(),motionName:St(),onMotionStart:St(),onMotionEnd:St(),direction:St(),containerRef:St()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=le(),r=v=>{var h;const b=e.getValueIndex(v),y=(h=e.containerRef.value)===null||h===void 0?void 0:h.querySelectorAll(`.${e.prefixCls}-item`)[b];return(y==null?void 0:y.offsetParent)&&y},l=le(null),i=le(null);be(()=>e.value,(v,h)=>{const b=r(h),y=r(v),S=j4(b),$=j4(y);l.value=S,i.value=$,n(b&&y?"motionStart":"motionEnd")},{flush:"post"});const a=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=l.value)===null||v===void 0?void 0:v.right)):ki((h=l.value)===null||h===void 0?void 0:h.left)}),s=P(()=>{var v,h;return e.direction==="rtl"?ki(-((v=i.value)===null||v===void 0?void 0:v.right)):ki((h=i.value)===null||h===void 0?void 0:h.left)});let c;const u=v=>{clearTimeout(c),ot(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{c=setTimeout(()=>{v&&(lf(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{l.value=null,i.value=null,v&&(v.style.transform=null,v.style.width=null,af(v,`${e.motionName}-appear-active`)),n("motionEnd")},g=P(()=>{var v,h;return{"--thumb-start-left":a.value,"--thumb-start-width":ki((v=l.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":ki((h=i.value)===null||h===void 0?void 0:h.width)}});return Ze(()=>{clearTimeout(c)}),()=>{const v={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return p(cn,{appear:!0,onBeforeEnter:u,onEnter:d,onAfterEnter:f},{default:()=>[!l.value||!i.value?null:p("div",v,null)]})}}}),Xve=Gve;function Uve(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const Yve=()=>({prefixCls:String,options:at(),block:Ce(),disabled:Ce(),size:Be(),value:m(m({},Le([String,Number])),{required:!0}),motionName:String,onChange:ve(),"onUpdate:value":ve()}),aM=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:l,payload:i,title:a,prefixCls:s,label:c=n.label,checked:u,className:d}=e,f=g=>{l||o("change",g,r)};return p("label",{class:ie({[`${s}-item-disabled`]:l},d)},[p("input",{class:`${s}-item-input`,type:"radio",disabled:l,checked:u,onChange:f},null),p("div",{class:`${s}-item-label`,title:typeof a=="string"?a:""},[typeof c=="function"?c({value:r,disabled:l,payload:i,title:a}):c??r])])};aM.inheritAttrs=!1;const qve=oe({name:"ASegmented",inheritAttrs:!1,props:qe(Yve(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:l,direction:i,size:a}=Te("segmented",e),[s,c]=Kve(l),u=te(),d=te(!1),f=P(()=>Uve(e.options)),g=(v,h)=>{e.disabled||(n("update:value",h),n("change",h))};return()=>{const v=l.value;return s(p("div",D(D({},r),{},{class:ie(v,{[c.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:a.value=="large",[`${v}-sm`]:a.value=="small",[`${v}-rtl`]:i.value==="rtl"},r.class),ref:u}),[p("div",{class:`${v}-group`},[p(Xve,{containerRef:u,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:i.value,getValueIndex:h=>f.value.findIndex(b=>b.value===h),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(h=>p(aM,D(D({key:h.value,prefixCls:v,checked:h.value===e.value,onChange:g},h),{},{className:ie(h.className,`${v}-item`,{[`${v}-item-selected`]:h.value===e.value&&!d.value}),disabled:!!e.disabled||!!h.disabled}),o))])]))}}}),Zve=Tt(qve),Qve=e=>{const{componentCls:t}=e;return{[t]:m(m({},Xe(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Jve=Ve("QRCode",e=>Qve(Fe(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var eme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const tme=eme;function W4(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Be("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:Re()}),rme=()=>m(m({},Z1()),{errorLevel:Be("M"),icon:String,iconSize:{type:Number,default:40},status:Be("active"),bordered:{type:Boolean,default:!0}});/** - * @license QR Code generator library (TypeScript) - * Copyright (c) Project Nayuki. - * SPDX-License-Identifier: MIT - */var hi;(function(e){class t{static encodeText(a,s){const c=e.QrSegment.makeSegments(a);return t.encodeSegments(c,s)}static encodeBinary(a,s){const c=e.QrSegment.makeBytes(a);return t.encodeSegments([c],s)}static encodeSegments(a,s){let c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=c&&c<=u&&u<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let g,v;for(g=c;;g++){const S=t.getNumDataCodewords(g,s)*8,$=l.getTotalBits(a,g);if($<=S){v=$;break}if(g>=u)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(g,S)*8&&(s=S);const h=[];for(const S of a){n(S.mode.modeBits,4,h),n(S.numChars,S.mode.numCharCountBits(g),h);for(const $ of S.getData())h.push($)}r(h.length==v);const b=t.getNumDataCodewords(g,s)*8;r(h.length<=b),n(0,Math.min(4,b-h.length),h),n(0,(8-h.length%8)%8,h),r(h.length%8==0);for(let S=236;h.lengthy[$>>>3]|=S<<7-($&7)),new t(g,s,y,d)}constructor(a,s,c,u){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(u<-1||u>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const d=[];for(let g=0;g>>9)*1335;const u=(s<<10|c)^21522;r(u>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(u,d));this.setFunctionModule(8,7,o(u,6)),this.setFunctionModule(8,8,o(u,7)),this.setFunctionModule(7,8,o(u,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(u,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(u,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(u,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let c=0;c<12;c++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;r(s>>>18==0);for(let c=0;c<18;c++){const u=o(s,c),d=this.size-11+c%3,f=Math.floor(c/3);this.setFunctionModule(d,f,u),this.setFunctionModule(f,d,u)}}drawFinderPattern(a,s){for(let c=-4;c<=4;c++)for(let u=-4;u<=4;u++){const d=Math.max(Math.abs(u),Math.abs(c)),f=a+u,g=s+c;0<=f&&f{(S!=v-d||x>=g)&&y.push($[S])});return r(y.length==f),y}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let c=this.size-1;c>=1;c-=2){c==6&&(c=5);for(let u=0;u>>3],7-(s&7)),s++)}}r(s==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][h],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;d5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[h][d],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;df+(g?1:0),s);const c=this.size*this.size,u=Math.ceil(Math.abs(s*20-c*10)/c)-1;return r(0<=u&&u<=9),a+=u*t.PENALTY_N4,r(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,c=[6];for(let u=this.size-7;c.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const c=Math.floor(a/7)+2;s-=(25*c-10)*c-55,a>=7&&(s-=36)}return r(208<=s&&s<=29648),s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let u=0;u0);for(const u of a){const d=u^c.shift();c.push(0),s.forEach((f,g)=>c[g]^=t.reedSolomonMultiply(f,d))}return c}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let c=0;for(let u=7;u>=0;u--)c=c<<1^(c>>>7)*285,c^=(s>>>u&1)*a;return r(c>>>8==0),c}finderPenaltyCountPatterns(a){const s=a[1];r(s<=this.size*3);const c=s>0&&a[2]==s&&a[3]==s*3&&a[4]==s&&a[5]==s;return(c&&a[0]>=s*4&&a[6]>=s?1:0)+(c&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,c){return a&&(this.finderPenaltyAddHistory(s,c),s=0),s+=this.size,this.finderPenaltyAddHistory(s,c),this.finderPenaltyCountPatterns(c)}finderPenaltyAddHistory(a,s){s[0]==0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,s){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let c=a-1;c>=0;c--)s.push(i>>>c&1)}function o(i,a){return(i>>>a&1)!=0}function r(i){if(!i)throw new Error("Assertion error")}class l{static makeBytes(a){const s=[];for(const c of a)n(c,8,s);return new l(l.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!l.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let c=0;c=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,r){let l=null;o.forEach(function(i,a){if(!i&&l!==null){n.push(`M${l+t} ${r+t}h${a-l}v1H${l+t}z`),l=null;return}if(a===o.length-1){if(!i)return;l===null?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${l+t},${r+t} h${a+1-l}v1H${l+t}z`);return}i&&l===null&&(l=a)})}),n.join("")}function gM(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((r,l)=>l=t.x+t.w?r:!1))}function hM(e,t,n,o){if(o==null)return null;const r=e.length+n*2,l=Math.floor(t*ame),i=r/t,a=(o.width||l)*i,s=(o.height||l)*i,c=o.x==null?e.length/2-a/2:o.x*i,u=o.y==null?e.length/2-s/2:o.y*i;let d=null;if(o.excavate){const f=Math.floor(c),g=Math.floor(u),v=Math.ceil(a+c-f),h=Math.ceil(s+u-g);d={x:f,y:g,w:v,h}}return{x:c,y:u,h:s,w:a,excavation:d}}function vM(e,t){return t!=null?Math.floor(t):e?lme:ime}const sme=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),cme=oe({name:"QRCodeCanvas",inheritAttrs:!1,props:m(m({},Z1()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),l=te(null),i=te(null),a=te(!1);return o({toDataURL:(s,c)=>{var u;return(u=l.value)===null||u===void 0?void 0:u.toDataURL(s,c)}}),ke(()=>{const{value:s,size:c=Nm,level:u=cM,bgColor:d=uM,fgColor:f=dM,includeMargin:g=fM,marginSize:v,imageSettings:h}=e;if(l.value!=null){const b=l.value,y=b.getContext("2d");if(!y)return;let S=ea.QrCode.encodeText(s,sM[u]).getModules();const $=vM(g,v),x=S.length+$*2,C=hM(S,c,$,h),O=i.value,w=a.value&&C!=null&&O!==null&&O.complete&&O.naturalHeight!==0&&O.naturalWidth!==0;w&&C.excavation!=null&&(S=gM(S,C.excavation));const I=window.devicePixelRatio||1;b.height=b.width=c*I;const T=c/x*I;y.scale(T,T),y.fillStyle=d,y.fillRect(0,0,x,x),y.fillStyle=f,sme?y.fill(new Path2D(pM(S,$))):S.forEach(function(_,E){_.forEach(function(A,R){A&&y.fillRect(R+$,E+$,1,1)})}),w&&y.drawImage(O,C.x+$,C.y+$,C.w,C.h)}},{flush:"post"}),be(r,()=>{a.value=!1}),()=>{var s;const c=(s=e.size)!==null&&s!==void 0?s:Nm,u={height:`${c}px`,width:`${c}px`};let d=null;return r.value!=null&&(d=p("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:i},null)),p(We,null,[p("canvas",D(D({},n),{},{style:[u,n.style],ref:l}),null),d])}}}),ume=oe({name:"QRCodeSVG",inheritAttrs:!1,props:m(m({},Z1()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,l=null,i=null;return ke(()=>{const{value:a,size:s=Nm,level:c=cM,includeMargin:u=fM,marginSize:d,imageSettings:f}=e;t=ea.QrCode.encodeText(a,sM[c]).getModules(),n=vM(u,d),o=t.length+n*2,r=hM(t,s,n,f),f!=null&&r!=null&&(r.excavation!=null&&(t=gM(t,r.excavation)),i=p("image",{"xlink:href":f.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),l=pM(t,n)}),()=>{const a=e.bgColor&&uM,s=e.fgColor&&dM;return p("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&p("title",null,[e.title]),p("path",{fill:a,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),p("path",{fill:s,d:l,"shape-rendering":"crispEdges"},null),i])}}}),dme=oe({name:"AQrcode",inheritAttrs:!1,props:rme(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[l]=Io("QRCode"),{prefixCls:i}=Te("qrcode",e),[a,s]=Jve(i),[,c]=Fr(),u=le();r({toDataURL:(f,g)=>{var v;return(v=u.value)===null||v===void 0?void 0:v.toDataURL(f,g)}});const d=P(()=>{const{value:f,icon:g="",size:v=160,iconSize:h=40,color:b=c.value.colorText,bgColor:y="transparent",errorLevel:S="M"}=e,$={src:g,x:void 0,y:void 0,height:h,width:h,excavate:!0};return{value:f,size:v-(c.value.paddingSM+c.value.lineWidth)*2,level:S,bgColor:y,fgColor:b,imageSettings:g?$:void 0}});return()=>{const f=i.value;return a(p("div",D(D({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&p("div",{class:`${f}-mask`},[e.status==="loading"&&p(ir,null,null),e.status==="expired"&&p(We,null,[p("p",{class:`${f}-expired`},[l.value.expired]),p(zt,{type:"link",onClick:g=>n("refresh",g)},{default:()=>[l.value.refresh],icon:()=>p(ome,null,null)})]),e.status==="scanned"&&p("p",{class:`${f}-scanned`},[l.value.scanned])]),e.type==="canvas"?p(cme,D({ref:u},d.value),null):p(ume,d.value,null)]))}}}),fme=Tt(dme);function pme(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:l,left:i}=e.getBoundingClientRect();return o>=0&&i>=0&&r<=t&&l<=n}function gme(e,t,n,o){const[r,l]=vt(void 0);ke(()=>{const u=typeof e.value=="function"?e.value():e.value;l(u||null)},{flush:"post"});const[i,a]=vt(null),s=()=>{if(!t.value){a(null);return}if(r.value){!pme(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:u,top:d,width:f,height:g}=r.value.getBoundingClientRect(),v={left:u,top:d,width:f,height:g,radius:0};JSON.stringify(i.value)!==JSON.stringify(v)&&a(v)}else a(null)};return je(()=>{be([t,r],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Ze(()=>{window.removeEventListener("resize",s)}),[P(()=>{var u,d;if(!i.value)return i.value;const f=((u=n.value)===null||u===void 0?void 0:u.offset)||6,g=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:i.value.left-f,top:i.value.top-f,width:i.value.width+f*2,height:i.value.height+f*2,radius:g}}),r]}const hme=()=>({arrow:Le([Boolean,Object]),target:Le([String,Function,Object]),title:Le([String,Object]),description:Le([String,Object]),placement:Be(),mask:Le([Object,Boolean],!0),className:{type:String},style:Re(),scrollIntoViewOptions:Le([Boolean,Object])}),Q1=()=>m(m({},hme()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:ve(),onFinish:ve(),renderPanel:ve(),onPrev:ve(),onNext:ve()}),vme=oe({name:"DefaultPanel",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:r,total:l,title:i,description:a,onClose:s,onPrev:c,onNext:u,onFinish:d}=e;return p("div",D(D({},n),{},{class:ie(`${o}-content`,n.class)}),[p("div",{class:`${o}-inner`},[p("button",{type:"button",onClick:s,"aria-label":"Close",class:`${o}-close`},[p("span",{class:`${o}-close-x`},[Lt("×")])]),p("div",{class:`${o}-header`},[p("div",{class:`${o}-title`},[i])]),p("div",{class:`${o}-description`},[a]),p("div",{class:`${o}-footer`},[p("div",{class:`${o}-sliders`},[l>1?[...Array.from({length:l}).keys()].map((f,g)=>p("span",{key:f,class:g===r?"active":""},null)):null]),p("div",{class:`${o}-buttons`},[r!==0?p("button",{class:`${o}-prev-btn`,onClick:c},[Lt("Prev")]):null,r===l-1?p("button",{class:`${o}-finish-btn`,onClick:d},[Lt("Finish")]):p("button",{class:`${o}-next-btn`,onClick:u},[Lt("Next")])])])])])}}}),mme=vme,bme=oe({name:"TourStep",inheritAttrs:!1,props:Q1(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:r}=e;return p(We,null,[typeof r=="function"?r(m(m({},n),e),o):p(mme,D(D({},n),e),null)])}}}),yme=bme;let V4=0;const Sme=Mn();function $me(){let e;return Sme?(e=V4,V4+=1):e="TEST_OR_SSR",e}function Cme(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le("");const t=`vc_unique_${$me()}`;return e.value||t}const _u={fill:"transparent","pointer-events":"auto"},xme=oe({name:"TourMask",props:{prefixCls:{type:String},pos:Re(),rootClassName:{type:String},showMask:Ce(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Ce(),animated:Le([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=Cme();return()=>{const{prefixCls:r,open:l,rootClassName:i,pos:a,showMask:s,fill:c,animated:u,zIndex:d}=e,f=`${r}-mask-${o}`,g=typeof u=="object"?u==null?void 0:u.placeholder:u;return p(Ic,{visible:l,autoLock:!0},{default:()=>l&&p("div",D(D({},n),{},{class:ie(`${r}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?p("svg",{style:{width:"100%",height:"100%"}},[p("defs",null,[p("mask",{id:f},[p("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&p("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:g?`${r}-placeholder-animated`:""},null)])]),p("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:c,mask:`url(#${f})`},null),a&&p(We,null,[p("rect",D(D({},_u),{},{x:"0",y:"0",width:"100%",height:a.top}),null),p("rect",D(D({},_u),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),p("rect",D(D({},_u),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),p("rect",D(D({},_u),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),wme=xme,Ome=[0,0],K4={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function mM(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(K4).forEach(n=>{t[n]=m(m({},K4[n]),{autoArrow:e,targetOffset:Ome})}),t}mM();var Pme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{builtinPlacements:e,popupAlign:t}=JP();return{builtinPlacements:e,popupAlign:t,steps:at(),open:Ce(),defaultCurrent:{type:Number},current:{type:Number},onChange:ve(),onClose:ve(),onFinish:ve(),mask:Le([Boolean,Object],!0),arrow:Le([Boolean,Object],!0),rootClassName:{type:String},placement:Be("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:ve(),gap:Re(),animated:Le([Boolean,Object]),scrollIntoViewOptions:Le([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Ime=oe({name:"Tour",inheritAttrs:!1,props:qe(bM(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:l,gap:i,arrow:a}=No(e),s=le(),[c,u]=Pt(0,{value:P(()=>e.current),defaultValue:t.value}),[d,f]=Pt(void 0,{value:P(()=>e.open),postState:w=>c.value<0||c.value>=e.steps.length?!1:w??!0}),g=te(d.value);ke(()=>{d.value&&!g.value&&u(0),g.value=d.value});const v=P(()=>e.steps[c.value]||{}),h=P(()=>{var w;return(w=v.value.placement)!==null&&w!==void 0?w:n.value}),b=P(()=>{var w;return d.value&&((w=v.value.mask)!==null&&w!==void 0?w:o.value)}),y=P(()=>{var w;return(w=v.value.scrollIntoViewOptions)!==null&&w!==void 0?w:r.value}),[S,$]=gme(P(()=>v.value.target),l,i,y),x=P(()=>$.value?typeof v.value.arrow>"u"?a.value:v.value.arrow:!1),C=P(()=>typeof x.value=="object"?x.value.pointAtCenter:!1);be(C,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()}),be(c,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()});const O=w=>{var I;u(w),(I=e.onChange)===null||I===void 0||I.call(e,w)};return()=>{var w;const{prefixCls:I,steps:T,onClose:_,onFinish:E,rootClassName:A,renderPanel:R,animated:z,zIndex:M}=e,B=Pme(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if($.value===void 0)return null;const N=()=>{f(!1),_==null||_(c.value)},F=typeof b.value=="boolean"?b.value:!!b.value,L=typeof b.value=="boolean"?void 0:b.value,k=()=>$.value||document.body,j=()=>p(yme,D({arrow:x.value,key:"content",prefixCls:I,total:T.length,renderPanel:R,onPrev:()=>{O(c.value-1)},onNext:()=>{O(c.value+1)},onClose:N,current:c.value,onFinish:()=>{N(),E==null||E()}},v.value),null),H=P(()=>{const Y=S.value||Gh,Z={};return Object.keys(Y).forEach(U=>{typeof Y[U]=="number"?Z[U]=`${Y[U]}px`:Z[U]=Y[U]}),Z});return d.value?p(We,null,[p(wme,{zIndex:M,prefixCls:I,pos:S.value,showMask:F,style:L==null?void 0:L.style,fill:L==null?void 0:L.color,open:d.value,animated:z,rootClassName:A},null),p(wi,D(D({},B),{},{arrow:!!B.arrow,builtinPlacements:v.value.target?(w=B.builtinPlacements)!==null&&w!==void 0?w:mM(C.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:m(m({},v.value.style),{position:"fixed",left:Gh.left,top:Gh.top,transform:"translate(-50%, -50%)"}),popupPlacement:h.value,popupVisible:d.value,popupClassName:ie(A,v.value.className),prefixCls:I,popup:j,forceRender:!1,destroyPopupOnHide:!0,zIndex:M,mask:!1,getTriggerDOMNode:k}),{default:()=>[p(Ic,{visible:d.value,autoLock:!0},{default:()=>[p("div",{class:ie(A,`${I}-target-placeholder`),style:m(m({},H.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),Tme=Ime,Eme=()=>m(m({},bM()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Mme=()=>m(m({},Q1()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),_me=oe({name:"ATourPanel",inheritAttrs:!1,props:Mme(),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:l}=No(e),i=P(()=>r.value===l.value-1),a=c=>{var u;const d=e.prevButtonProps;(u=e.onPrev)===null||u===void 0||u.call(e,c),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=c=>{var u,d;const f=e.nextButtonProps;i.value?(u=e.onFinish)===null||u===void 0||u.call(e,c):(d=e.onNext)===null||d===void 0||d.call(e,c),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:c,title:u,onClose:d,cover:f,description:g,type:v,arrow:h}=e,b=e.prevButtonProps,y=e.nextButtonProps;let S;u&&(S=p("div",{class:`${c}-header`},[p("div",{class:`${c}-title`},[u])]));let $;g&&($=p("div",{class:`${c}-description`},[g]));let x;f&&(x=p("div",{class:`${c}-cover`},[f]));let C;o.indicatorsRender?C=o.indicatorsRender({current:r.value,total:l}):C=[...Array.from({length:l.value}).keys()].map((I,T)=>p("span",{key:I,class:ie(T===r.value&&`${c}-indicator-active`,`${c}-indicator`)},null));const O=v==="primary"?"default":"primary",w={type:"default",ghost:v==="primary"};return p(bi,{componentName:"Tour",defaultLocale:jn.Tour},{default:I=>{var T;return p("div",D(D({},n),{},{class:ie(v==="primary"?`${c}-primary`:"",n.class,`${c}-content`)}),[h&&p("div",{class:`${c}-arrow`,key:"arrow"},null),p("div",{class:`${c}-inner`},[p(Zn,{class:`${c}-close`,onClick:d},null),x,S,$,p("div",{class:`${c}-footer`},[l.value>1&&p("div",{class:`${c}-indicators`},[C]),p("div",{class:`${c}-buttons`},[r.value!==0?p(zt,D(D(D({},w),b),{},{onClick:a,size:"small",class:ie(`${c}-prev-btn`,b==null?void 0:b.className)}),{default:()=>[uv(b==null?void 0:b.children)?b.children():(T=b==null?void 0:b.children)!==null&&T!==void 0?T:I.Previous]}):null,p(zt,D(D({type:O},y),{},{onClick:s,size:"small",class:ie(`${c}-next-btn`,y==null?void 0:y.className)}),{default:()=>[uv(y==null?void 0:y.children)?y==null?void 0:y.children():i.value?I.Finish:I.Next]})])])])])}})}}}),Ame=_me,Rme=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const l=le(r==null?void 0:r.value),i=P(()=>o==null?void 0:o.value);be(i,u=>{l.value=u??(r==null?void 0:r.value)},{immediate:!0});const a=u=>{l.value=u},s=P(()=>{var u,d;return typeof l.value=="number"?n&&((d=(u=n.value)===null||u===void 0?void 0:u[l.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:P(()=>{var u;return(u=s.value)!==null&&u!==void 0?u:t==null?void 0:t.value}),updateInnerCurrent:a}},Dme=Rme,Bme=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:l,borderRadiusXS:i,colorPrimary:a,colorText:s,colorFill:c,indicatorHeight:u,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:g,fontSize:v,colorBgContainer:h,fontWeightStrong:b,marginXS:y,colorTextLightSolid:S,tourBorderRadius:$,colorWhite:x,colorBgTextHover:C,tourCloseSize:O,motionDurationSlow:w,antCls:I}=e;return[{[t]:m(m({},Xe(e)),{color:s,position:"absolute",zIndex:g,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:$,boxShadow:f,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:O,height:O,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+O+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:b}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:u,display:"inline-block",borderRadius:"50%",background:c,"&:not(:last-child)":{marginInlineEnd:u},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${I}-btn`]:{marginInlineStart:y}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:l,boxShadow:f,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new gt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new gt(S).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new gt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:x,"&:hover":{background:new gt(C).onBackground(x).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min($,Nb)}}},Fb(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:$,limitVerticalRadius:!0})]},Nme=Ve("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=Fe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[Bme(r)]});var Fme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{steps:h,current:b,type:y,rootClassName:S}=e,$=Fme(e,["steps","current","type","rootClassName"]),x=ie({[`${c.value}-primary`]:g.value==="primary",[`${c.value}-rtl`]:u.value==="rtl"},f.value,S),C=(I,T)=>p(Ame,D(D({},I),{},{type:y,current:T}),{indicatorsRender:r.indicatorsRender}),O=I=>{v(I),o("update:current",I),o("change",I)},w=P(()=>Bb({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(p(Tme,D(D(D({},n),$),{},{rootClassName:x,prefixCls:c.value,current:b,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:C,onChange:O,steps:h,builtinPlacements:w.value}),null))}}}),kme=Tt(Lme),yM=Symbol("appConfigContext"),zme=e=>Ge(yM,e),Hme=()=>He(yM,{}),SM=Symbol("appContext"),jme=e=>Ge(SM,e),Wme=ut({message:{},notification:{},modal:{}}),Vme=()=>He(SM,Wme),Kme=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:l}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:l}}},Gme=Ve("App",e=>[Kme(e)]),Xme=()=>({rootClassName:String,message:Re(),notification:Re()}),Ume=()=>Vme(),Ws=oe({name:"AApp",props:qe(Xme(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("app",e),[r,l]=Gme(o),i=P(()=>ie(l.value,o.value,e.rootClassName)),a=Hme(),s=P(()=>({message:m(m({},a.message),e.message),notification:m(m({},a.notification),e.notification)}));zme(s.value);const[c,u]=N8(s.value.message),[d,f]=U8(s.value.notification),[g,v]=n5(),h=P(()=>({message:c,notification:d,modal:g}));return jme(h.value),()=>{var b;return r(p("div",{class:i.value},[v(),u(),f(),(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});Ws.useApp=Ume;Ws.install=function(e){e.component(Ws.name,Ws)};const Yme=Ws,$M=["wrap","nowrap","wrap-reverse"],CM=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],xM=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],qme=(e,t)=>{const n={};return $M.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},Zme=(e,t)=>{const n={};return xM.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},Qme=(e,t)=>{const n={};return CM.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function Jme(e,t){return ie(m(m(m({},qme(e,t)),Zme(e,t)),Qme(e,t)))}const e0e=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},t0e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},n0e=e=>{const{componentCls:t}=e,n={};return $M.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},o0e=e=>{const{componentCls:t}=e,n={};return xM.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},r0e=e=>{const{componentCls:t}=e,n={};return CM.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},l0e=Ve("Flex",e=>{const t=Fe(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[e0e(t),t0e(t),n0e(t),o0e(t),r0e(t)]});function G4(e){return["small","middle","large"].includes(e)}const i0e=()=>({prefixCls:Be(),vertical:Ce(),wrap:Be(),justify:Be(),align:Be(),flex:Le([Number,String]),gap:Le([Number,String]),component:St()});var a0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var u;return[i.value,s.value,Jme(i.value,e),{[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-gap-${e.gap}`]:G4(e.gap),[`${i.value}-vertical`]:(u=e.vertical)!==null&&u!==void 0?u:r==null?void 0:r.value.vertical}]});return()=>{var u;const{flex:d,gap:f,component:g="div"}=e,v=a0e(e,["flex","gap","component"]),h={};return d&&(h.flex=d),f&&!G4(f)&&(h.gap=`${f}px`),a(p(g,D({class:[o.class,c.value],style:[o.style,h]},et(v,["justify","wrap","align","vertical"])),{default:()=>[(u=n.default)===null||u===void 0?void 0:u.call(n)]}))}}}),c0e=Tt(s0e),X4=Object.freeze(Object.defineProperty({__proto__:null,Affix:FP,Alert:PX,Anchor:Gl,AnchorLink:T0,App:Yme,AutoComplete:UG,AutoCompleteOptGroup:XG,AutoCompleteOption:GG,Avatar:ni,AvatarGroup:Zd,BackTop:$f,Badge:_s,BadgeRibbon:Qd,Breadcrumb:oi,BreadcrumbItem:dc,BreadcrumbSeparator:sf,Button:zt,ButtonGroup:of,Calendar:xZ,Card:fa,CardGrid:pf,CardMeta:ff,Carousel:OJ,Cascader:Yte,CheckableTag:mf,Checkbox:$o,CheckboxGroup:vf,Col:tne,Collapse:Rs,CollapsePanel:gf,Comment:ine,Compact:Yd,ConfigProvider:zy,DatePicker:Aoe,Descriptions:Woe,DescriptionsItem:fE,DirectoryTree:pd,Divider:Uoe,Drawer:fre,Dropdown:rr,DropdownButton:uc,Empty:ll,Flex:c0e,FloatButton:vl,FloatButtonGroup:Sf,Form:il,FormItem:I8,FormItemRest:Gd,Grid:ene,Image:tie,ImagePreviewGroup:FE,Input:tn,InputGroup:wE,InputNumber:bie,InputPassword:IE,InputSearch:OE,Layout:Bie,LayoutContent:Die,LayoutFooter:Aie,LayoutHeader:_ie,LayoutSider:Rie,List:Oae,ListItem:jE,ListItemMeta:zE,LocaleProvider:_8,Mentions:Gae,MentionsOption:cd,Menu:Vt,MenuDivider:pc,MenuItem:lr,MenuItemGroup:fc,Modal:an,MonthPicker:ed,PageHeader:_se,Pagination:Up,Popconfirm:Fse,Popover:Lb,Progress:b1,QRCode:fme,QuarterPicker:td,Radio:Nn,RadioButton:uf,RadioGroup:hy,RangePicker:nd,Rate:Pce,Result:Xce,Row:Uce,Segmented:Zve,Select:Dr,SelectOptGroup:WG,SelectOption:jG,Skeleton:On,SkeletonAvatar:Oy,SkeletonButton:Cy,SkeletonImage:wy,SkeletonInput:xy,SkeletonTitle:Ap,Slider:pue,Space:i5,Spin:ir,Statistic:wr,StatisticCountdown:fse,Step:ud,Steps:zue,SubMenu:fi,Switch:que,TabPane:df,Table:Wpe,TableColumn:hd,TableColumnGroup:vd,TableSummary:md,TableSummaryCell:Pf,TableSummaryRow:Of,Tabs:ri,Tag:rE,Textarea:Zy,TimePicker:Hge,TimeRangePicker:bd,Timeline:js,TimelineItem:Sc,Tooltip:Yn,Tour:kme,Transfer:hge,Tree:V5,TreeNode:gd,TreeSelect:kge,TreeSelectNode:Bm,Typography:Un,TypographyLink:j1,TypographyParagraph:W1,TypographyText:V1,TypographyTitle:K1,Upload:Dve,UploadDragger:Rve,Watermark:jve,WeekPicker:Ju,message:ga,notification:Ly},Symbol.toStringTag,{value:"Module"})),u0e=function(e){return Object.keys(X4).forEach(t=>{const n=X4[t];n.install&&e.use(n)}),e.use(_9.StyleProvider),e.config.globalProperties.$message=ga,e.config.globalProperties.$notification=Ly,e.config.globalProperties.$info=an.info,e.config.globalProperties.$success=an.success,e.config.globalProperties.$error=an.error,e.config.globalProperties.$warning=an.warning,e.config.globalProperties.$confirm=an.confirm,e.config.globalProperties.$destroyAll=an.destroyAll,e},d0e={version:xP,install:u0e};const f0e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},p0e={key:0,class:"env-info"},g0e={class:"env-details"},h0e={class:"env-actions",style:{"margin-top":"12px"}},v0e={__name:"EnvInfo",setup(e){const t=P(()=>!Nt.isProduction),n=le(!1),o=P(()=>{switch(Nt.APP_ENV){case"development":return"blue";case"test":return"orange";case"production":return"green";default:return"default"}}),r=()=>{n.value=!n.value},l=()=>{NO(),ga.success("环境信息已打印到控制台")},i=async()=>{const a=` -环境: ${Nt.APP_ENV} -标题: ${Nt.APP_TITLE} -版本: ${Nt.APP_VERSION} -API地址: ${Nt.API_BASE_URL} -API目标: ${Nt.API_TARGET} -超时时间: ${Nt.API_TIMEOUT}ms -调试模式: ${Nt.DEBUG_MODE?"开启":"关闭"} - `.trim();try{await navigator.clipboard.writeText(a),ga.success("环境信息已复制到剪贴板")}catch{ga.error("复制失败")}};return(a,s)=>{const c=zl("a-button"),u=zl("a-tag"),d=zl("a-descriptions-item"),f=zl("a-descriptions"),g=zl("a-space"),v=zl("a-card");return t.value?(s0(),oO("div",p0e,[p(v,{title:"环境信息",size:"small",style:{position:"fixed",top:"10px",right:"10px",zIndex:9999,width:"300px"}},{extra:hn(()=>[p(c,{size:"small",onClick:r},{default:hn(()=>[Lt(vr(n.value?"隐藏":"显示"),1)]),_:1})]),default:hn(()=>[$n(Gi("div",g0e,[p(f,{size:"small",column:1,bordered:""},{default:hn(()=>[p(d,{label:"环境"},{default:hn(()=>[p(u,{color:o.value},{default:hn(()=>[Lt(vr($t(Nt).APP_ENV),1)]),_:1},8,["color"])]),_:1}),p(d,{label:"标题"},{default:hn(()=>[Lt(vr($t(Nt).APP_TITLE),1)]),_:1}),p(d,{label:"版本"},{default:hn(()=>[Lt(vr($t(Nt).APP_VERSION),1)]),_:1}),p(d,{label:"API地址"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_BASE_URL),1)]),_:1}),p(d,{label:"API目标"},{default:hn(()=>[Gi("code",null,vr($t(Nt).API_TARGET),1)]),_:1}),p(d,{label:"超时时间"},{default:hn(()=>[Lt(vr($t(Nt).API_TIMEOUT)+"ms ",1)]),_:1}),p(d,{label:"调试模式"},{default:hn(()=>[p(u,{color:$t(Nt).DEBUG_MODE?"green":"red"},{default:hn(()=>[Lt(vr($t(Nt).DEBUG_MODE?"开启":"关闭"),1)]),_:1},8,["color"])]),_:1})]),_:1}),Gi("div",h0e,[p(g,null,{default:hn(()=>[p(c,{size:"small",onClick:l},{default:hn(()=>s[0]||(s[0]=[Lt(" 打印到控制台 ")])),_:1,__:[0]}),p(c,{size:"small",onClick:i},{default:hn(()=>s[1]||(s[1]=[Lt(" 复制信息 ")])),_:1,__:[1]})]),_:1})])],512),[[En,n.value]])]),_:1})])):gA("",!0)}}},m0e=f0e(v0e,[["__scopeId","data-v-89545570"]]);const b0e={id:"app"},y0e={__name:"App",setup(e){const t=mR();return je(()=>{t.initUser(),xc("App.vue loaded successfully, user:",t.userInfo)}),(n,o)=>{const r=zl("router-view");return s0(),oO("div",b0e,[p(r),p(m0e)])}}};xc("main.js loading...");Nt.DEBUG_MODE&&NO();const lg=mO(y0e);xc("App created");lg.use(r7());lg.use(BO);lg.use(d0e);xc("Plugins loaded");document.title=Nt.APP_TITLE;lg.mount("#app");xc("App mounted");export{be as A,jm as B,moe as C,Xpe as D,Nt as E,We as F,ot as G,WS as H,_r as I,ci as J,LZ as P,tme as R,f0e as _,le as a,zl as b,p as c,xc as d,oO as e,Gi as f,Lt as g,x0e as h,gA as i,P as j,je as k,$t as l,ga as m,dA as n,s0 as o,C0e as p,u7 as q,ut as r,Pl as s,vr as t,w0e as u,Il as v,hn as w,GY as x,ln as y,mR as z}; diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/index.html b/packages/emotion-museum-1.0.0-20250713_123404/frontend/index.html deleted file mode 100644 index 791f0de..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/index.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - 情绪博物馆 - AI心理健康助手 - - - - - - -
-
加载中...
-
- - - diff --git a/packages/emotion-museum-1.0.0-20250713_123404/frontend/nginx.conf b/packages/emotion-museum-1.0.0-20250713_123404/frontend/nginx.conf deleted file mode 100644 index 636a14c..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/frontend/nginx.conf +++ /dev/null @@ -1,64 +0,0 @@ -server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html index.htm; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - try_files $uri =404; - } - - # HTML文件不缓存 - location ~* \.(html|htm)$ { - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - try_files $uri $uri/ /index.html; - } - - # SPA路由支持 - location / { - try_files $uri $uri/ /index.html; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - } - - # 健康检查 - location /health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /index.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } -} diff --git a/packages/emotion-museum-1.0.0-20250713_123404/manage.sh b/packages/emotion-museum-1.0.0-20250713_123404/manage.sh deleted file mode 100755 index fa3f1a5..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404/manage.sh +++ /dev/null @@ -1,412 +0,0 @@ -#!/bin/bash - -# 情绪博物馆管理脚本 -# 提供服务管理、监控、备份等功能 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆管理脚本" - echo "" - echo "用法: $0 [命令] [选项]" - echo "" - echo "命令:" - echo " start 启动所有服务" - echo " stop 停止所有服务" - echo " restart 重启所有服务" - echo " status 查看服务状态" - echo " logs 查看服务日志" - echo " backup 备份数据" - echo " restore 恢复数据" - echo " update 更新服务" - echo " clean 清理资源" - echo " monitor 监控服务" - echo " health 健康检查" - echo "" - echo "选项:" - echo " -f, --follow 跟踪日志输出" - echo " -s, --service 指定服务名称" - echo " -h, --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 start # 启动所有服务" - echo " $0 logs -f # 跟踪所有服务日志" - echo " $0 logs -s gateway # 查看网关服务日志" - echo " $0 restart -s ai-service # 重启AI服务" - echo "" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml up -d - else - docker-compose up -d - fi - - log_info "服务启动完成" - sleep 5 - show_status -} - -# 停止服务 -stop_services() { - log_step "停止服务..." - - if [ -f "docker-compose.prod.yml" ]; then - docker-compose -f docker-compose.prod.yml down - else - docker-compose down - fi - - log_info "服务停止完成" -} - -# 重启服务 -restart_services() { - local service_name=${1:-} - - if [ -n "$service_name" ]; then - log_step "重启服务: $service_name" - docker-compose restart "$service_name" - else - log_step "重启所有服务..." - stop_services - sleep 3 - start_services - fi -} - -# 查看服务状态 -show_status() { - log_step "服务状态:" - echo "" - docker-compose ps - echo "" - - # 显示资源使用情况 - log_step "资源使用情况:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}\t{{.BlockIO}}" -} - -# 查看日志 -show_logs() { - local follow_flag="" - local service_name="" - - # 解析参数 - while [[ $# -gt 0 ]]; do - case $1 in - -f|--follow) - follow_flag="-f" - shift - ;; - -s|--service) - service_name="$2" - shift 2 - ;; - *) - service_name="$1" - shift - ;; - esac - done - - if [ -n "$service_name" ]; then - log_info "查看服务日志: $service_name" - docker-compose logs $follow_flag "$service_name" - else - log_info "查看所有服务日志" - docker-compose logs $follow_flag - fi -} - -# 备份数据 -backup_data() { - local backup_dir="backups/$(date +%Y%m%d_%H%M%S)" - - log_step "开始数据备份..." - mkdir -p "$backup_dir" - - # 备份MySQL数据 - log_info "备份MySQL数据..." - docker-compose exec -T mysql mysqldump -u root -p123456 --all-databases > "$backup_dir/mysql_backup.sql" - - # 备份Redis数据 - log_info "备份Redis数据..." - docker-compose exec -T redis redis-cli BGSAVE - docker cp $(docker-compose ps -q redis):/data/dump.rdb "$backup_dir/redis_backup.rdb" - - # 备份配置文件 - log_info "备份配置文件..." - cp -r deploy "$backup_dir/" - cp docker-compose*.yml "$backup_dir/" - cp .env "$backup_dir/" 2>/dev/null || true - - # 压缩备份 - tar -czf "$backup_dir.tar.gz" -C backups "$(basename $backup_dir)" - rm -rf "$backup_dir" - - log_info "备份完成: $backup_dir.tar.gz" -} - -# 恢复数据 -restore_data() { - local backup_file="$1" - - if [ -z "$backup_file" ]; then - log_error "请指定备份文件" - echo "用法: $0 restore " - exit 1 - fi - - if [ ! -f "$backup_file" ]; then - log_error "备份文件不存在: $backup_file" - exit 1 - fi - - log_step "开始数据恢复..." - log_warn "此操作将覆盖现有数据,请确认后继续" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ ! $REPLY =~ ^[Yy]$ ]]; then - log_info "恢复操作已取消" - exit 0 - fi - - # 解压备份文件 - local restore_dir="restore_$(date +%Y%m%d_%H%M%S)" - mkdir -p "$restore_dir" - tar -xzf "$backup_file" -C "$restore_dir" - - # 恢复MySQL数据 - log_info "恢复MySQL数据..." - docker-compose exec -T mysql mysql -u root -p123456 < "$restore_dir"/*/mysql_backup.sql - - # 恢复Redis数据 - log_info "恢复Redis数据..." - docker-compose stop redis - docker cp "$restore_dir"/*/redis_backup.rdb $(docker-compose ps -q redis):/data/dump.rdb - docker-compose start redis - - # 清理临时文件 - rm -rf "$restore_dir" - - log_info "数据恢复完成" -} - -# 更新服务 -update_services() { - log_step "更新服务..." - - # 拉取最新代码 - if [ -d ".git" ]; then - log_info "拉取最新代码..." - git pull - fi - - # 重新构建镜像 - log_info "重新构建镜像..." - docker-compose build --no-cache - - # 重启服务 - log_info "重启服务..." - restart_services - - log_info "服务更新完成" -} - -# 清理资源 -clean_resources() { - log_step "清理Docker资源..." - - log_warn "此操作将清理未使用的Docker资源" - read -p "是否继续? (y/N): " -n 1 -r - echo - - if [[ $REPLY =~ ^[Yy]$ ]]; then - # 清理未使用的镜像 - docker image prune -f - - # 清理未使用的容器 - docker container prune -f - - # 清理未使用的网络 - docker network prune -f - - # 清理未使用的卷(谨慎使用) - # docker volume prune -f - - log_info "资源清理完成" - else - log_info "清理操作已取消" - fi -} - -# 监控服务 -monitor_services() { - log_step "服务监控面板" - echo "" - - while true; do - clear - echo "=== 情绪博物馆服务监控 ===" - echo "时间: $(date)" - echo "" - - # 显示服务状态 - echo "📊 服务状态:" - docker-compose ps - echo "" - - # 显示资源使用 - echo "💻 资源使用:" - docker stats --no-stream --format "table {{.Container}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" - echo "" - - # 显示磁盘使用 - echo "💾 磁盘使用:" - df -h | grep -E "(Filesystem|/dev/)" - echo "" - - echo "按 Ctrl+C 退出监控" - sleep 5 - done -} - -# 健康检查 -health_check() { - log_step "执行健康检查..." - - local all_healthy=true - - # 检查MySQL - if docker-compose exec -T mysql mysqladmin ping -h localhost -u root -p123456 &> /dev/null; then - log_info "✅ MySQL服务正常" - else - log_error "❌ MySQL服务异常" - all_healthy=false - fi - - # 检查Redis - if docker-compose exec -T redis redis-cli ping | grep -q PONG; then - log_info "✅ Redis服务正常" - else - log_error "❌ Redis服务异常" - all_healthy=false - fi - - # 检查Nacos - if curl -s http://localhost:8848/nacos/v1/ns/operator/metrics &> /dev/null; then - log_info "✅ Nacos服务正常" - else - log_error "❌ Nacos服务异常" - all_healthy=false - fi - - # 检查网关 - if curl -s http://localhost:9000/actuator/health &> /dev/null; then - log_info "✅ 网关服务正常" - else - log_error "❌ 网关服务异常" - all_healthy=false - fi - - # 检查AI服务 - if curl -s http://localhost:9002/actuator/health &> /dev/null; then - log_info "✅ AI服务正常" - else - log_error "❌ AI服务异常" - all_healthy=false - fi - - # 检查前端 - if curl -s http://localhost:80/health &> /dev/null; then - log_info "✅ 前端服务正常" - else - log_error "❌ 前端服务异常" - all_healthy=false - fi - - if $all_healthy; then - log_info "🎉 所有服务健康检查通过" - else - log_warn "⚠️ 部分服务存在问题,请检查日志" - fi -} - -# 主函数 -main() { - case "${1:-}" in - "start") - start_services - ;; - "stop") - stop_services - ;; - "restart") - shift - restart_services "$@" - ;; - "status") - show_status - ;; - "logs") - shift - show_logs "$@" - ;; - "backup") - backup_data - ;; - "restore") - restore_data "$2" - ;; - "update") - update_services - ;; - "clean") - clean_resources - ;; - "monitor") - monitor_services - ;; - "health") - health_check - ;; - "-h"|"--help"|"help") - show_help - ;; - *) - show_help - ;; - esac -} - -main "$@" diff --git a/packages/emotion-museum-1.0.0-20250713_123404_REPORT.txt b/packages/emotion-museum-1.0.0-20250713_123404_REPORT.txt deleted file mode 100644 index dae3189..0000000 --- a/packages/emotion-museum-1.0.0-20250713_123404_REPORT.txt +++ /dev/null @@ -1,43 +0,0 @@ -情绪博物馆部署包报告 -================== - -构建信息: -- 包名称: emotion-museum-1.0.0-20250713_123404.tar.gz -- 构建时间: 20250713_123404 -- 构建环境: Darwin x86_64 - -包内容: -- 前端构建产物 ✓ -- 后端JAR文件 ✓ -- 数据库脚本 ✓ -- 部署配置 ✓ -- Docker配置 ✓ -- 管理脚本 ✓ -- 说明文档 ✓ - -文件信息: -- 压缩包大小: 680K -- SHA256校验: f6fa31c425fbddaea30972db6425265cdad49761236d7a58fcb0fa001baea417 - -部署要求: -- Docker 20.10+ -- Docker Compose 1.29+ -- 内存: 4GB+ -- 磁盘: 10GB+ - -快速部署: -1. 解压: tar -xzf emotion-museum-1.0.0-20250713_123404.tar.gz -2. 进入: cd emotion-museum-1.0.0-20250713_123404 -3. 配置: vim .env -4. 部署: ./quick-deploy.sh - -注意事项: -- 请配置正确的Coze API Token -- 生产环境请修改默认密码 -- 建议配置HTTPS证书 -- 确保防火墙开放必要端口 - -技术支持: -- 详细文档: DEPLOY.md -- 快速指南: QUICK_START.md -- 管理命令: ./manage.sh --help diff --git a/quick-deploy.sh b/quick-deploy.sh deleted file mode 100755 index 88c8a0b..0000000 --- a/quick-deploy.sh +++ /dev/null @@ -1,240 +0,0 @@ -#!/bin/bash - -# 情绪博物馆快速部署脚本 -# 适用于服务器快速部署 - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 检查系统环境 -check_system() { - log_step "检查系统环境..." - - # 检查操作系统 - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - log_info "检测到Linux系统" - elif [[ "$OSTYPE" == "darwin"* ]]; then - log_info "检测到macOS系统" - else - log_warn "未知操作系统: $OSTYPE" - fi - - # 检查Docker - if ! command -v docker &> /dev/null; then - log_error "Docker未安装,正在安装..." - install_docker - else - log_info "Docker已安装: $(docker --version)" - fi - - # 检查Docker Compose - if ! command -v docker-compose &> /dev/null; then - log_error "Docker Compose未安装,正在安装..." - install_docker_compose - else - log_info "Docker Compose已安装: $(docker-compose --version)" - fi -} - -# 安装Docker -install_docker() { - if [[ "$OSTYPE" == "linux-gnu"* ]]; then - # Ubuntu/Debian - if command -v apt-get &> /dev/null; then - log_info "在Ubuntu/Debian上安装Docker..." - sudo apt-get update - sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release - curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg - echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update - sudo apt-get install -y docker-ce docker-ce-cli containerd.io - # CentOS/RHEL - elif command -v yum &> /dev/null; then - log_info "在CentOS/RHEL上安装Docker..." - sudo yum install -y yum-utils - sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo - sudo yum install -y docker-ce docker-ce-cli containerd.io - fi - - # 启动Docker服务 - sudo systemctl start docker - sudo systemctl enable docker - - # 添加用户到docker组 - sudo usermod -aG docker $USER - log_warn "请重新登录以使docker组权限生效" - else - log_error "请手动安装Docker: https://docs.docker.com/get-docker/" - exit 1 - fi -} - -# 安装Docker Compose -install_docker_compose() { - log_info "安装Docker Compose..." - sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose -} - -# 配置防火墙 -configure_firewall() { - log_step "配置防火墙..." - - if command -v ufw &> /dev/null; then - log_info "配置UFW防火墙..." - sudo ufw allow 80/tcp - sudo ufw allow 443/tcp - sudo ufw allow 8848/tcp # Nacos - sudo ufw allow 9000/tcp # Gateway - log_info "防火墙配置完成" - elif command -v firewall-cmd &> /dev/null; then - log_info "配置firewalld防火墙..." - sudo firewall-cmd --permanent --add-port=80/tcp - sudo firewall-cmd --permanent --add-port=443/tcp - sudo firewall-cmd --permanent --add-port=8848/tcp - sudo firewall-cmd --permanent --add-port=9000/tcp - sudo firewall-cmd --reload - log_info "防火墙配置完成" - else - log_warn "未检测到防火墙,请手动开放端口: 80, 443, 8848, 9000" - fi -} - -# 优化系统参数 -optimize_system() { - log_step "优化系统参数..." - - # 增加文件描述符限制 - echo "* soft nofile 65536" | sudo tee -a /etc/security/limits.conf - echo "* hard nofile 65536" | sudo tee -a /etc/security/limits.conf - - # 优化内核参数 - cat << EOF | sudo tee -a /etc/sysctl.conf -# 情绪博物馆优化参数 -vm.max_map_count=262144 -net.core.somaxconn=65535 -net.ipv4.tcp_max_syn_backlog=65535 -net.core.netdev_max_backlog=5000 -EOF - - sudo sysctl -p - log_info "系统参数优化完成" -} - -# 创建SSL证书目录 -setup_ssl() { - log_step "设置SSL证书..." - - mkdir -p deploy/nginx/ssl - - # 生成自签名证书(仅用于测试) - if [ ! -f "deploy/nginx/ssl/emotion-museum.crt" ]; then - log_info "生成自签名SSL证书..." - openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ - -keyout deploy/nginx/ssl/emotion-museum.key \ - -out deploy/nginx/ssl/emotion-museum.crt \ - -subj "/C=CN/ST=Beijing/L=Beijing/O=EmotionMuseum/CN=emotion-museum.com" - log_warn "已生成自签名证书,生产环境请使用正式证书" - fi -} - -# 设置环境变量 -setup_environment() { - log_step "设置环境变量..." - - # 创建.env文件 - cat > .env << EOF -# 数据库配置 -MYSQL_ROOT_PASSWORD=123456 -MYSQL_DATABASE=emotion_museum -MYSQL_USER=emotion -MYSQL_PASSWORD=emotion123 - -# Redis配置 -REDIS_PASSWORD= - -# Nacos配置 -NACOS_AUTH_ENABLE=false - -# 应用配置 -SPRING_PROFILES_ACTIVE=docker -TZ=Asia/Shanghai - -# Coze API配置 (与开发环境一致) -COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO -EOF - - log_info "环境变量配置完成" - log_warn "请编辑.env文件,设置正确的Coze API Token" -} - -# 主部署流程 -main() { - echo "🚀 开始快速部署情绪博物馆..." - echo "" - - check_system - configure_firewall - optimize_system - setup_ssl - setup_environment - - log_step "开始容器部署..." - chmod +x deploy.sh - ./deploy.sh - - echo "" - log_info "🎉 快速部署完成!" - echo "" - echo "📝 后续步骤:" - echo "1. 编辑.env文件,设置正确的Coze API Token" - echo "2. 如需HTTPS,请替换deploy/nginx/ssl/目录下的证书文件" - echo "3. 根据需要修改deploy/nginx/conf.d/emotion-museum.conf中的域名" - echo "4. 重启服务: docker-compose restart" - echo "" - echo "🔗 访问地址:" - echo " HTTP: http://$(hostname -I | awk '{print $1}')" - echo " HTTPS: https://$(hostname -I | awk '{print $1}') (自签名证书)" - echo "" -} - -# 处理命令行参数 -case "${1:-}" in - "install-docker") - install_docker - ;; - "install-compose") - install_docker_compose - ;; - "setup-ssl") - setup_ssl - ;; - "setup-env") - setup_environment - ;; - *) - main - ;; -esac diff --git a/restart-middleware.sh b/restart-middleware.sh new file mode 100755 index 0000000..5be3f3e --- /dev/null +++ b/restart-middleware.sh @@ -0,0 +1,189 @@ +#!/bin/bash + +# 重启远程服务器中间件脚本 +# 作者: emotion-museum +# 日期: 2025-07-21 + +set -e + +REMOTE_HOST="root@47.111.10.27" + +# 颜色输出 +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' + +log_info() { + echo -e "${BLUE}[INFO]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_success() { + echo -e "${GREEN}[SUCCESS]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_warning() { + echo -e "${YELLOW}[WARNING]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_error() { + echo -e "${RED}[ERROR]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +# 重启MySQL +restart_mysql() { + log_info "重启MySQL..." + ssh "$REMOTE_HOST" " + # 停止可能存在的MySQL容器 + docker stop emotion-mysql 2>/dev/null || true + docker rm emotion-mysql 2>/dev/null || true + + # 启动MySQL容器,使用现有数据 + docker run -d \\ + --name emotion-mysql \\ + --restart unless-stopped \\ + -p 3306:3306 \\ + -v /data/programs/mysql:/var/lib/mysql \\ + -e MYSQL_ROOT_PASSWORD='EmotionMuseum2025*#' \\ + -e TZ=Asia/Shanghai \\ + mysql:8.0 \\ + --default-authentication-plugin=mysql_native_password + + echo 'MySQL容器启动完成' + " + + # 等待MySQL启动 + log_info "等待MySQL启动..." + sleep 15 + + # 检查MySQL状态 + if ssh "$REMOTE_HOST" "docker exec emotion-mysql mysqladmin ping -h localhost --silent"; then + log_success "MySQL启动成功" + else + log_error "MySQL启动失败" + return 1 + fi +} + +# 重启Redis +restart_redis() { + log_info "重启Redis..." + ssh "$REMOTE_HOST" " + # 停止可能存在的Redis容器 + docker stop emotion-redis 2>/dev/null || true + docker rm emotion-redis 2>/dev/null || true + + # 启动Redis容器,使用现有数据 + docker run -d \\ + --name emotion-redis \\ + --restart unless-stopped \\ + -p 6379:6379 \\ + -v /data/programs/redis:/data \\ + redis:7-alpine \\ + redis-server --appendonly yes + + echo 'Redis容器启动完成' + " + + # 等待Redis启动 + log_info "等待Redis启动..." + sleep 5 + + # 检查Redis状态 + if ssh "$REMOTE_HOST" "docker exec emotion-redis redis-cli ping" | grep -q "PONG"; then + log_success "Redis启动成功" + else + log_error "Redis启动失败" + return 1 + fi +} + +# 重启Nacos +restart_nacos() { + log_info "重启Nacos..." + ssh "$REMOTE_HOST" " + # 停止可能存在的Nacos容器 + docker stop emotion-nacos 2>/dev/null || true + docker rm emotion-nacos 2>/dev/null || true + + # 启动Nacos容器,使用现有数据 + docker run -d \\ + --name emotion-nacos \\ + --restart unless-stopped \\ + -p 8848:8848 \\ + -p 9848:9848 \\ + -v /data/programs/nacos/logs:/home/nacos/logs \\ + -v /data/programs/nacos/data:/home/nacos/data \\ + -e MODE=standalone \\ + -e NACOS_AUTH_ENABLE=true \\ + -e NACOS_AUTH_TOKEN_EXPIRE_SECONDS=18000 \\ + -e NACOS_AUTH_TOKEN=SecretKey012345678901234567890123456789012345678901234567890123456789 \\ + -e NACOS_AUTH_IDENTITY_KEY=serverIdentity \\ + -e NACOS_AUTH_IDENTITY_VALUE=security \\ + nacos/nacos-server:v2.2.0 + + echo 'Nacos容器启动完成' + " + + # 等待Nacos启动 + log_info "等待Nacos启动..." + sleep 30 + + # 检查Nacos状态 + if ssh "$REMOTE_HOST" "curl -f -s http://localhost:8848/nacos/v1/console/health" > /dev/null; then + log_success "Nacos启动成功" + else + log_warning "Nacos可能还在启动中,请稍后检查" + fi +} + +# 创建Docker网络 +create_network() { + log_info "创建Docker网络..." + ssh "$REMOTE_HOST" "docker network create emotion-network 2>/dev/null || echo 'network already exists'" +} + +# 检查中间件状态 +check_status() { + log_info "检查中间件状态..." + ssh "$REMOTE_HOST" " + echo '=== 容器状态 ===' + docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' | grep -E '(mysql|redis|nacos)' + echo '' + echo '=== 端口监听 ===' + netstat -tlnp | grep -E ':(3306|6379|8848)' || echo '端口未监听' + " +} + +# 主函数 +main() { + log_info "🚀 开始重启远程服务器中间件..." + + # 检查SSH连接 + if ! ssh -o ConnectTimeout=10 "$REMOTE_HOST" "echo 'SSH连接成功'" > /dev/null 2>&1; then + log_error "无法连接到远程服务器: $REMOTE_HOST" + exit 1 + fi + + # 创建网络 + create_network + + # 重启中间件 + restart_mysql + restart_redis + restart_nacos + + # 检查状态 + check_status + + log_success "🎉 中间件重启完成!" + echo "" + echo "📋 连接信息:" + echo " MySQL: $REMOTE_HOST:3306 (root/EmotionMuseum2025*#)" + echo " Redis: $REMOTE_HOST:6379" + echo " Nacos: http://$REMOTE_HOST:8848/nacos (nacos/Peanut2817*#)" +} + +# 执行主函数 +main "$@" diff --git a/server-install.sh b/server-install.sh deleted file mode 100755 index bbb0271..0000000 --- a/server-install.sh +++ /dev/null @@ -1,398 +0,0 @@ -#!/bin/bash - -# 情绪博物馆服务器一键安装脚本 -# 适用于全新的Linux服务器 -# 支持 Ubuntu/Debian/CentOS/RHEL - -set -e - -# 颜色定义 -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[1;33m' -BLUE='\033[0;34m' -NC='\033[0m' - -# 配置变量 -PACKAGE_URL="https://github.com/your-repo/releases/download/v1.0.0/emotion-museum-1.0.0-20250713_111829.tar.gz" -PACKAGE_SHA256="900d585f575b1619e74296496e2fe22f2c2e71b6ad8901d7cab82634765cc10d" -INSTALL_DIR="/opt/emotion-museum" -SERVICE_USER="emotion" - -log_info() { - echo -e "${GREEN}[INFO]${NC} $1" -} - -log_warn() { - echo -e "${YELLOW}[WARN]${NC} $1" -} - -log_error() { - echo -e "${RED}[ERROR]${NC} $1" -} - -log_step() { - echo -e "${BLUE}[STEP]${NC} $1" -} - -# 检查是否为root用户 -check_root() { - if [[ $EUID -ne 0 ]]; then - log_error "此脚本需要root权限运行" - echo "请使用: sudo $0" - exit 1 - fi -} - -# 检测操作系统 -detect_os() { - if [[ -f /etc/os-release ]]; then - . /etc/os-release - OS=$NAME - VER=$VERSION_ID - else - log_error "无法检测操作系统" - exit 1 - fi - - log_info "检测到操作系统: $OS $VER" -} - -# 更新系统包 -update_system() { - log_step "更新系统包..." - - if [[ "$OS" == *"Ubuntu"* ]] || [[ "$OS" == *"Debian"* ]]; then - apt-get update - apt-get upgrade -y - apt-get install -y curl wget git unzip - elif [[ "$OS" == *"CentOS"* ]] || [[ "$OS" == *"Red Hat"* ]]; then - yum update -y - yum install -y curl wget git unzip - else - log_warn "未知的操作系统,请手动安装必要的软件包" - fi -} - -# 安装Docker -install_docker() { - log_step "安装Docker..." - - if command -v docker &> /dev/null; then - log_info "Docker已安装: $(docker --version)" - return - fi - - # 使用官方安装脚本 - curl -fsSL https://get.docker.com | sh - - # 启动Docker服务 - systemctl start docker - systemctl enable docker - - # 创建docker组并添加用户 - groupadd -f docker - - log_info "Docker安装完成" -} - -# 安装Docker Compose -install_docker_compose() { - log_step "安装Docker Compose..." - - if command -v docker-compose &> /dev/null; then - log_info "Docker Compose已安装: $(docker-compose --version)" - return - fi - - # 下载Docker Compose - curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose - chmod +x /usr/local/bin/docker-compose - - # 创建软链接 - ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose - - log_info "Docker Compose安装完成" -} - -# 配置防火墙 -configure_firewall() { - log_step "配置防火墙..." - - if command -v ufw &> /dev/null; then - # Ubuntu/Debian UFW - ufw allow 22/tcp - ufw allow 80/tcp - ufw allow 443/tcp - ufw --force enable - log_info "UFW防火墙配置完成" - elif command -v firewall-cmd &> /dev/null; then - # CentOS/RHEL firewalld - firewall-cmd --permanent --add-port=22/tcp - firewall-cmd --permanent --add-port=80/tcp - firewall-cmd --permanent --add-port=443/tcp - firewall-cmd --reload - log_info "firewalld防火墙配置完成" - else - log_warn "未检测到防火墙,请手动配置" - fi -} - -# 创建服务用户 -create_service_user() { - log_step "创建服务用户..." - - if id "$SERVICE_USER" &>/dev/null; then - log_info "用户 $SERVICE_USER 已存在" - else - useradd -r -s /bin/bash -d "$INSTALL_DIR" "$SERVICE_USER" - usermod -aG docker "$SERVICE_USER" - log_info "用户 $SERVICE_USER 创建完成" - fi -} - -# 下载部署包 -download_package() { - log_step "下载部署包..." - - # 创建安装目录 - mkdir -p "$INSTALL_DIR" - cd "$INSTALL_DIR" - - # 下载部署包 - if [[ -n "$PACKAGE_URL" ]]; then - log_info "从URL下载部署包..." - wget -O emotion-museum.tar.gz "$PACKAGE_URL" - else - log_error "请提供部署包URL或手动上传部署包到 $INSTALL_DIR" - echo "手动上传后请运行: $0 --install-only" - exit 1 - fi - - # 验证校验和 - if [[ -n "$PACKAGE_SHA256" ]]; then - echo "$PACKAGE_SHA256 emotion-museum.tar.gz" | sha256sum -c - if [[ $? -eq 0 ]]; then - log_info "部署包校验通过" - else - log_error "部署包校验失败" - exit 1 - fi - fi - - # 解压部署包 - tar -xzf emotion-museum.tar.gz - rm emotion-museum.tar.gz - - # 查找解压后的目录 - EXTRACT_DIR=$(find . -maxdepth 1 -type d -name "emotion-museum-*" | head -n 1) - if [[ -n "$EXTRACT_DIR" ]]; then - mv "$EXTRACT_DIR"/* . - rmdir "$EXTRACT_DIR" - fi - - # 设置权限 - chown -R "$SERVICE_USER:$SERVICE_USER" "$INSTALL_DIR" - chmod +x *.sh - - log_info "部署包下载和解压完成" -} - -# 配置环境 -configure_environment() { - log_step "配置环境..." - - cd "$INSTALL_DIR" - - # 复制环境变量模板 - if [[ ! -f .env ]]; then - cat > .env << 'EOF' -# 数据库配置 -MYSQL_ROOT_PASSWORD=EmotionMuseum2024! -MYSQL_DATABASE=emotion_museum -MYSQL_USER=emotion -MYSQL_PASSWORD=EmotionDB2024! - -# Redis配置 -REDIS_PASSWORD= - -# Nacos配置 -NACOS_AUTH_ENABLE=false - -# 应用配置 -SPRING_PROFILES_ACTIVE=docker -TZ=Asia/Shanghai - -# Coze API配置 (与开发环境一致) -COZE_API_TOKEN=pat_GCR4qKzqpf90wMCvKsldMrB18KG3QsLDci65bZthssKsbLxu8X70BKYumleDcabO -EOF - fi - - log_info "环境配置完成" - log_warn "请编辑 $INSTALL_DIR/.env 文件,设置正确的Coze API Token" -} - -# 创建系统服务 -create_systemd_service() { - log_step "创建系统服务..." - - cat > /etc/systemd/system/emotion-museum.service << EOF -[Unit] -Description=Emotion Museum Application -Requires=docker.service -After=docker.service - -[Service] -Type=oneshot -RemainAfterExit=yes -WorkingDirectory=$INSTALL_DIR -ExecStart=/usr/local/bin/docker-compose up -d -ExecStop=/usr/local/bin/docker-compose down -User=$SERVICE_USER -Group=$SERVICE_USER - -[Install] -WantedBy=multi-user.target -EOF - - systemctl daemon-reload - systemctl enable emotion-museum - - log_info "系统服务创建完成" -} - -# 启动服务 -start_services() { - log_step "启动服务..." - - cd "$INSTALL_DIR" - - # 切换到服务用户执行 - sudo -u "$SERVICE_USER" ./deploy.sh - - log_info "服务启动完成" -} - -# 验证部署 -verify_deployment() { - log_step "验证部署..." - - sleep 30 # 等待服务启动 - - # 检查服务状态 - cd "$INSTALL_DIR" - sudo -u "$SERVICE_USER" ./manage.sh status - - # 健康检查 - sudo -u "$SERVICE_USER" ./manage.sh health - - log_info "部署验证完成" -} - -# 显示部署信息 -show_deployment_info() { - local server_ip=$(curl -s ifconfig.me 2>/dev/null || echo "unknown") - - echo "" - log_info "🎉 情绪博物馆部署完成!" - echo "" - echo "📱 访问地址:" - echo " 前端应用: http://$server_ip" - echo " API网关: http://$server_ip:9000" - echo " Nacos: http://$server_ip:8848/nacos (nacos/nacos)" - echo "" - echo "📁 安装目录: $INSTALL_DIR" - echo "👤 服务用户: $SERVICE_USER" - echo "" - echo "🔧 管理命令:" - echo " cd $INSTALL_DIR" - echo " sudo -u $SERVICE_USER ./manage.sh status # 查看状态" - echo " sudo -u $SERVICE_USER ./manage.sh logs # 查看日志" - echo " sudo -u $SERVICE_USER ./manage.sh restart # 重启服务" - echo "" - echo "⚠️ 重要提醒:" - echo " 1. 请编辑 $INSTALL_DIR/.env 文件,设置正确的Coze API Token" - echo " 2. 生产环境请修改数据库密码" - echo " 3. 建议配置HTTPS证书" - echo "" -} - -# 主安装流程 -main_install() { - echo "🚀 开始安装情绪博物馆..." - echo "" - - check_root - detect_os - update_system - install_docker - install_docker_compose - configure_firewall - create_service_user - download_package - configure_environment - create_systemd_service - start_services - verify_deployment - show_deployment_info -} - -# 仅安装(假设部署包已存在) -install_only() { - echo "🚀 开始安装情绪博物馆(跳过下载)..." - echo "" - - check_root - detect_os - update_system - install_docker - install_docker_compose - configure_firewall - create_service_user - - # 检查部署包是否存在 - if [[ ! -f "$INSTALL_DIR/deploy.sh" ]]; then - log_error "部署包不存在,请先上传部署包到 $INSTALL_DIR" - exit 1 - fi - - configure_environment - create_systemd_service - start_services - verify_deployment - show_deployment_info -} - -# 显示帮助信息 -show_help() { - echo "情绪博物馆服务器安装脚本" - echo "" - echo "用法: $0 [选项]" - echo "" - echo "选项:" - echo " --install-only 仅安装(跳过下载,假设部署包已存在)" - echo " --help 显示帮助信息" - echo "" - echo "示例:" - echo " $0 # 完整安装(包括下载)" - echo " $0 --install-only # 仅安装(跳过下载)" - echo "" -} - -# 处理命令行参数 -case "${1:-}" in - "--install-only") - install_only - ;; - "--help") - show_help - ;; - "") - main_install - ;; - *) - echo "未知选项: $1" - show_help - exit 1 - ;; -esac diff --git a/setup-nginx.sh b/setup-nginx.sh new file mode 100755 index 0000000..20aef80 --- /dev/null +++ b/setup-nginx.sh @@ -0,0 +1,239 @@ +#!/bin/bash + +# 配置远程服务器Nginx脚本 +# 作者: emotion-museum +# 日期: 2025-07-21 + +set -e + +REMOTE_HOST="root@47.111.10.27" +NGINX_CONF_PATH="/www/server/nginx/conf" + +# 颜色输出 +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' + +log_info() { + echo -e "${BLUE}[INFO]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_success() { + echo -e "${GREEN}[SUCCESS]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_warning() { + echo -e "${YELLOW}[WARNING]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +log_error() { + echo -e "${RED}[ERROR]${NC} $(date '+%Y-%m-%d %H:%M:%S') - $1" +} + +# 检查Nginx状态 +check_nginx() { + log_info "检查Nginx状态..." + ssh "$REMOTE_HOST" " + echo '=== Nginx进程 ===' + ps aux | grep nginx | grep -v grep || echo 'Nginx未运行' + echo '' + echo '=== Nginx配置目录 ===' + ls -la $NGINX_CONF_PATH/ || echo 'Nginx配置目录不存在' + echo '' + echo '=== 端口80监听 ===' + netstat -tlnp | grep :80 || echo '端口80未监听' + " +} + +# 备份现有配置 +backup_nginx_config() { + log_info "备份现有Nginx配置..." + ssh "$REMOTE_HOST" " + mkdir -p $NGINX_CONF_PATH/backup/\$(date +%Y%m%d_%H%M%S) + cp $NGINX_CONF_PATH/nginx.conf $NGINX_CONF_PATH/backup/\$(date +%Y%m%d_%H%M%S)/ 2>/dev/null || true + cp -r $NGINX_CONF_PATH/conf.d $NGINX_CONF_PATH/backup/\$(date +%Y%m%d_%H%M%S)/ 2>/dev/null || true + " + log_success "Nginx配置已备份" +} + +# 创建情感博物馆站点配置 +create_site_config() { + log_info "创建情感博物馆站点配置..." + + ssh "$REMOTE_HOST" "cat > $NGINX_CONF_PATH/conf.d/emotion-museum.conf << 'EOF' +# 情感博物馆站点配置 +server { + listen 80; + server_name 47.111.10.27; + + # 前端静态文件 + location /emotion-museum { + alias /data/www/emotion-museum; + index index.html; + try_files \$uri \$uri/ /emotion-museum/index.html; + + # 静态资源缓存 + location ~* \\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)\$ { + expires 1y; + add_header Cache-Control \"public, immutable\"; + } + } + + # API网关代理 + location /api/ { + proxy_pass http://localhost:19000/; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto \$scheme; + + # 超时设置 + proxy_connect_timeout 30s; + proxy_send_timeout 30s; + proxy_read_timeout 30s; + } + + # WebSocket代理 + location /ws/ { + proxy_pass http://localhost:19007/; + proxy_http_version 1.1; + proxy_set_header Upgrade \$http_upgrade; + proxy_set_header Connection \"upgrade\"; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto \$scheme; + } + + # 健康检查 + location /health { + access_log off; + return 200 \"healthy\"; + add_header Content-Type text/plain; + } + + # 日志配置 + access_log /var/log/nginx/emotion-museum.access.log; + error_log /var/log/nginx/emotion-museum.error.log; +} + +# 微服务直接访问(用于调试) +server { + listen 80; + server_name api.47.111.10.27; + + # 网关服务 + location /gateway/ { + proxy_pass http://localhost:19000/; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + } + + # 用户服务 + location /user/ { + proxy_pass http://localhost:19001/; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + } + + # AI服务 + location /ai/ { + proxy_pass http://localhost:19002/; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + } + + # 认证服务 + location /auth/ { + proxy_pass http://localhost:19008/; + proxy_set_header Host \$host; + proxy_set_header X-Real-IP \$remote_addr; + proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for; + } +} +EOF" + + log_success "站点配置创建完成" +} + +# 测试Nginx配置 +test_nginx_config() { + log_info "测试Nginx配置..." + if ssh "$REMOTE_HOST" "nginx -t"; then + log_success "Nginx配置测试通过" + else + log_error "Nginx配置测试失败" + return 1 + fi +} + +# 重载Nginx配置 +reload_nginx() { + log_info "重载Nginx配置..." + if ssh "$REMOTE_HOST" "systemctl reload nginx"; then + log_success "Nginx配置重载成功" + else + log_warning "Nginx重载失败,尝试重启..." + if ssh "$REMOTE_HOST" "systemctl restart nginx"; then + log_success "Nginx重启成功" + else + log_error "Nginx重启失败" + return 1 + fi + fi +} + +# 检查配置结果 +check_result() { + log_info "检查配置结果..." + ssh "$REMOTE_HOST" " + echo '=== Nginx状态 ===' + systemctl status nginx --no-pager -l + echo '' + echo '=== 端口监听 ===' + netstat -tlnp | grep :80 + echo '' + echo '=== 测试访问 ===' + curl -I http://localhost/health 2>/dev/null || echo '健康检查失败' + " +} + +# 主函数 +main() { + log_info "🔧 开始配置远程服务器Nginx..." + + # 检查SSH连接 + if ! ssh -o ConnectTimeout=10 "$REMOTE_HOST" "echo 'SSH连接成功'" > /dev/null 2>&1; then + log_error "无法连接到远程服务器: $REMOTE_HOST" + exit 1 + fi + + check_nginx + backup_nginx_config + create_site_config + test_nginx_config + reload_nginx + check_result + + log_success "🎉 Nginx配置完成!" + echo "" + echo "📋 访问地址:" + echo " 前端应用: http://47.111.10.27/emotion-museum" + echo " API接口: http://47.111.10.27/api/" + echo " WebSocket: ws://47.111.10.27/ws/" + echo " 健康检查: http://47.111.10.27/health" + echo "" + echo "🔧 调试地址:" + echo " 网关服务: http://api.47.111.10.27/gateway/" + echo " 用户服务: http://api.47.111.10.27/user/" + echo " AI服务: http://api.47.111.10.27/ai/" + echo " 认证服务: http://api.47.111.10.27/auth/" +} + +# 执行主函数 +main "$@" diff --git a/web-bak/.env b/web-bak/.env deleted file mode 100644 index e1d55af..0000000 --- a/web-bak/.env +++ /dev/null @@ -1,10 +0,0 @@ -# 基础环境变量配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 - -# API配置 -VITE_API_BASE_URL=/api -VITE_API_TIMEOUT=30000 - -# 开发环境配置 -VITE_APP_ENV=development diff --git a/web-bak/.env.development b/web-bak/.env.development deleted file mode 100644 index f0bed44..0000000 --- a/web-bak/.env.development +++ /dev/null @@ -1,12 +0,0 @@ -# 开发环境配置 -VITE_APP_ENV=development -VITE_APP_TITLE=情绪博物馆(开发环境) - -# 开发环境API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://localhost:9000 -VITE_API_TIMEOUT=30000 - -# 开发环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/web-bak/.env.docker b/web-bak/.env.docker deleted file mode 100644 index b8627e0..0000000 --- a/web-bak/.env.docker +++ /dev/null @@ -1,13 +0,0 @@ -# Docker环境配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 -VITE_APP_ENV=docker - -# API配置 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://gateway:9000 -VITE_API_TIMEOUT=30000 - -# 功能开关 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false diff --git a/web-bak/.env.production b/web-bak/.env.production deleted file mode 100644 index 6008c60..0000000 --- a/web-bak/.env.production +++ /dev/null @@ -1,17 +0,0 @@ -# 生产环境配置 -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 -VITE_APP_ENV=production - -# API配置 - 生产环境 -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://47.111.10.27:9000 -VITE_API_TIMEOUT=30000 - -# 功能开关 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false - -# 部署配置 -VITE_PUBLIC_PATH=/emotion-museum/ -VITE_OUTPUT_DIR=dist diff --git a/web-bak/.env.test b/web-bak/.env.test deleted file mode 100644 index e6a11fc..0000000 --- a/web-bak/.env.test +++ /dev/null @@ -1,12 +0,0 @@ -# 测试环境配置 -VITE_APP_ENV=test -VITE_APP_TITLE=情绪博物馆(测试环境) - -# 测试环境API配置 -VITE_API_BASE_URL=https://test-api.emotion-museum.com/api -VITE_API_TARGET=https://test-api.emotion-museum.com -VITE_API_TIMEOUT=30000 - -# 测试环境特殊配置 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false diff --git a/web-bak/.gitignore b/web-bak/.gitignore deleted file mode 100644 index a2df97d..0000000 --- a/web-bak/.gitignore +++ /dev/null @@ -1,41 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -# Dependencies -node_modules -.pnpm -dist -dist-ssr -*.local - -# Editor directories and files -.vscode/* -!.vscode/extensions.json -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? - -# Environment variables -.env.local -.env.*.local - -# Build outputs -dist/ -build/ - -# Coverage directory used by tools like istanbul -coverage/ - -# Temporary folders -tmp/ -temp/ diff --git a/web-bak/Dockerfile b/web-bak/Dockerfile deleted file mode 100644 index 90e74f2..0000000 --- a/web-bak/Dockerfile +++ /dev/null @@ -1,55 +0,0 @@ -# 前端应用Dockerfile -# 构建阶段 -FROM node:18-alpine AS builder - -# 设置工作目录 -WORKDIR /app - -# 设置npm镜像源 -RUN npm config set registry https://registry.npmmirror.com - -# 复制package文件 -COPY package*.json ./ - -# 安装依赖 -RUN npm ci --only=production - -# 复制源代码 -COPY . . - -# 构建应用 -RUN npm run build - -# 生产阶段 -FROM nginx:alpine - -# 安装必要工具 -RUN apk add --no-cache curl tzdata && \ - cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ - echo "Asia/Shanghai" > /etc/timezone - -# 复制构建产物 -COPY --from=builder /app/dist /usr/share/nginx/html - -# 复制nginx配置 -COPY nginx.conf /etc/nginx/conf.d/default.conf - -# 创建nginx用户 -RUN addgroup -g 101 -S nginx && \ - adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx - -# 设置权限 -RUN chown -R nginx:nginx /usr/share/nginx/html && \ - chown -R nginx:nginx /var/cache/nginx && \ - chown -R nginx:nginx /var/log/nginx && \ - chown -R nginx:nginx /etc/nginx/conf.d - -# 健康检查 -HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \ - CMD curl -f http://localhost:80/ || exit 1 - -# 暴露端口 -EXPOSE 80 - -# 启动nginx -CMD ["nginx", "-g", "daemon off;"] diff --git a/web-bak/ENV_CONFIG.md b/web-bak/ENV_CONFIG.md deleted file mode 100644 index 1ac93ea..0000000 --- a/web-bak/ENV_CONFIG.md +++ /dev/null @@ -1,140 +0,0 @@ -# 环境变量配置说明 - -## 概述 - -本项目使用 Vite 的环境变量功能来管理不同环境(开发、测试、生产)的配置。通过环境变量,可以灵活控制API地址、调试模式、功能开关等。 - -## 环境变量文件 - -### 1. `.env` - 基础配置 -所有环境共享的基础配置 -```bash -VITE_APP_TITLE=情绪博物馆 -VITE_APP_VERSION=1.0.0 -VITE_API_BASE_URL=/api -VITE_API_TIMEOUT=30000 -VITE_APP_ENV=development -``` - -### 2. `.env.development` - 开发环境 -```bash -VITE_APP_ENV=development -VITE_APP_TITLE=情绪博物馆(开发环境) -VITE_API_BASE_URL=/api -VITE_API_TARGET=http://localhost:9001 -VITE_API_TIMEOUT=30000 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false -``` - -### 3. `.env.test` - 测试环境 -```bash -VITE_APP_ENV=test -VITE_APP_TITLE=情绪博物馆(测试环境) -VITE_API_BASE_URL=https://test-api.emotion-museum.com/api -VITE_API_TARGET=https://test-api.emotion-museum.com -VITE_API_TIMEOUT=30000 -VITE_DEBUG_MODE=true -VITE_MOCK_DATA=false -``` - -### 4. `.env.production` - 生产环境 -```bash -VITE_APP_ENV=production -VITE_APP_TITLE=情绪博物馆 -VITE_API_BASE_URL=https://api.emotion-museum.com/api -VITE_API_TARGET=https://api.emotion-museum.com -VITE_API_TIMEOUT=30000 -VITE_DEBUG_MODE=false -VITE_MOCK_DATA=false -``` - -## 环境变量说明 - -| 变量名 | 说明 | 示例值 | -|--------|------|--------| -| `VITE_APP_TITLE` | 应用标题 | `情绪博物馆` | -| `VITE_APP_VERSION` | 应用版本 | `1.0.0` | -| `VITE_APP_ENV` | 环境标识 | `development/test/production` | -| `VITE_API_BASE_URL` | API基础路径 | `/api` 或完整URL | -| `VITE_API_TARGET` | API目标服务器 | `http://localhost:9001` | -| `VITE_API_TIMEOUT` | API超时时间(ms) | `30000` | -| `VITE_DEBUG_MODE` | 调试模式 | `true/false` | -| `VITE_MOCK_DATA` | 模拟数据开关 | `true/false` | - -## 使用方法 - -### 1. 在代码中使用环境配置 -```javascript -import { ENV_CONFIG, isDev, isTest, isProd, debugLog } from '@/config/env' - -// 获取配置 -console.log(ENV_CONFIG.APP_TITLE) -console.log(ENV_CONFIG.API_BASE_URL) - -// 环境判断 -if (isDev()) { - // 开发环境逻辑 -} - -// 调试日志(只在DEBUG_MODE=true时输出) -debugLog('调试信息', data) -``` - -### 2. 运行不同环境 - -#### 开发环境 -```bash -npm run dev # 使用 .env.development -npm run dev:test # 使用 .env.test -``` - -#### 构建不同环境 -```bash -npm run build # 生产环境构建 -npm run build:test # 测试环境构建 -npm run build:dev # 开发环境构建 -``` - -#### 预览 -```bash -npm run preview # 预览生产环境构建 -npm run preview:test # 预览测试环境构建 -``` - -## 配置文件位置 - -- 环境配置: `src/config/env.js` -- API配置: `src/api/request.js` -- 使用示例: `src/utils/env-example.js` - -## 注意事项 - -1. **环境变量必须以 `VITE_` 开头**才能在客户端代码中访问 -2. **不要在环境变量中存储敏感信息**(如密钥、密码等) -3. **修改环境变量后需要重启开发服务器** -4. **生产环境的API地址需要根据实际部署情况修改** - -## 自定义环境变量 - -如需添加新的环境变量: - -1. 在相应的 `.env.*` 文件中添加变量(以 `VITE_` 开头) -2. 在 `src/config/env.js` 中添加对应的配置项 -3. 在代码中通过 `ENV_CONFIG` 对象访问 - -示例: -```bash -# .env.development -VITE_FEATURE_NEW_UI=true -``` - -```javascript -// src/config/env.js -const getEnvConfig = () => { - return { - // ... 其他配置 - FEATURE_NEW_UI: import.meta.env.VITE_FEATURE_NEW_UI === 'true' - } -} -``` diff --git a/web-bak/README.md b/web-bak/README.md deleted file mode 100644 index ab7ead9..0000000 --- a/web-bak/README.md +++ /dev/null @@ -1,293 +0,0 @@ -# 情绪博物馆 Web 前端 - -一个基于 Vue 3 + Ant Design Vue 的现代化情绪分析和AI对话前端应用。 - -## ✨ 特性 - -- 🎨 **现代化UI设计** - 采用渐变色彩和玻璃态效果,提供优雅的视觉体验 -- 🤖 **AI智能对话** - 与AI助手进行自然流畅的对话交流 -- 📊 **情绪分析** - 实时分析用户情绪状态,提供专业的心理健康评估 -- 📱 **响应式设计** - 完美适配桌面端和移动端设备 -- 🔄 **实时交互** - 支持实时消息推送和状态更新 -- 📈 **数据可视化** - 情绪趋势图表和统计分析 -- 🎯 **用户体验** - 流畅的动画效果和交互反馈 - -## 🛠️ 技术栈 - -- **框架**: Vue 3 (Composition API) -- **UI库**: Ant Design Vue 4.x -- **路由**: Vue Router 4 -- **状态管理**: Pinia -- **构建工具**: Vite -- **样式**: SCSS -- **HTTP客户端**: Axios -- **时间处理**: Day.js -- **图标**: Ant Design Icons - -## 📦 项目结构 - -``` -web/ -├── public/ # 静态资源 -├── src/ -│ ├── api/ # API接口 -│ │ ├── request.js # 请求封装 -│ │ └── chat.js # 聊天相关API -│ ├── components/ # 公共组件 -│ │ ├── EmotionAnalysis.vue # 情绪分析组件 -│ │ ├── HistoryPanel.vue # 历史记录面板 -│ │ ├── ConversationDetail.vue # 对话详情 -│ │ └── EmotionTrends.vue # 情绪趋势图表 -│ ├── router/ # 路由配置 -│ ├── stores/ # 状态管理 -│ │ ├── user.js # 用户状态 -│ │ └── chat.js # 聊天状态 -│ ├── styles/ # 全局样式 -│ ├── utils/ # 工具函数 -│ ├── views/ # 页面组件 -│ │ ├── Home.vue # 首页 -│ │ ├── Chat.vue # 聊天页面 -│ │ ├── History.vue # 历史记录页面 -│ │ └── Analysis.vue # 情绪分析页面 -│ ├── App.vue # 根组件 -│ └── main.js # 入口文件 -├── index.html # HTML模板 -├── package.json # 依赖配置 -├── vite.config.js # Vite配置 -└── README.md # 项目说明 -``` - -## 🚀 快速开始 - -### 环境要求 - -- Node.js >= 16.0.0 -- npm >= 8.0.0 或 yarn >= 1.22.0 - -### 安装依赖 - -```bash -# 使用 npm -npm install - -# 或使用 yarn -yarn install -``` - -### 开发环境 - -```bash -# 启动开发服务器 -npm run dev - -# 或 -yarn dev -``` - -访问 http://localhost:3000 查看应用 - -### 生产构建 - -```bash -# 构建生产版本 -npm run build - -# 或 -yarn build -``` - -### 预览生产版本 - -```bash -# 预览构建结果 -npm run preview - -# 或 -yarn preview -``` - -## 🎨 设计系统 - -### 色彩方案 - -- **主色调**: 渐变紫蓝色 (#667eea → #764ba2) -- **辅助色**: 渐变粉红色 (#f093fb → #f5576c) -- **成功色**: 渐变蓝绿色 (#4facfe → #00f2fe) -- **文字色**: 深灰色系 (#2c3e50, #7f8c8d, #bdc3c7) - -### 组件特性 - -- **玻璃态效果**: 半透明背景 + 模糊滤镜 -- **渐变按钮**: 主题色渐变 + 悬停效果 -- **消息气泡**: 用户/AI区分设计 -- **动画效果**: 淡入淡出、滑动、弹跳等 - -## 📱 页面功能 - -### 首页 (Home) -- 产品介绍和特性展示 -- 快速开始对话入口 -- 统计数据展示 -- 响应式导航菜单 - -### 聊天页面 (Chat) -- 侧边栏会话列表 -- 实时消息交互 -- 情绪分析集成 -- 消息历史记录 -- 打字状态指示 - -### 历史记录 (History) -- 会话列表管理 -- 搜索和筛选功能 -- 对话详情查看 -- 导出和分享功能 -- 统计数据概览 - -### 情绪分析 (Analysis) -- 快速文本分析 -- 历史分析记录 -- 情绪趋势图表 -- 数据洞察建议 - -## 🔧 配置说明 - -### 环境变量 - -创建 `.env.local` 文件配置环境变量: - -```env -# API基础URL -VITE_API_BASE_URL=http://localhost:9001 - -# 应用标题 -VITE_APP_TITLE=情绪博物馆 - -# 是否启用调试模式 -VITE_DEBUG=true -``` - -### 代理配置 - -开发环境下,Vite会自动代理 `/api` 请求到后端服务: - -```javascript -// vite.config.js -export default defineConfig({ - server: { - proxy: { - '/api': { - target: 'http://localhost:9001', - changeOrigin: true - } - } - } -}) -``` - -## 🎯 核心功能 - -### 状态管理 - -使用 Pinia 管理应用状态: - -- **用户状态**: 用户信息、登录状态 -- **聊天状态**: 会话列表、当前对话、消息记录 - -### API集成 - -- 统一的请求封装和错误处理 -- 自动重试和超时控制 -- 请求/响应拦截器 -- 加载状态管理 - -### 响应式设计 - -- 移动端优先设计 -- 断点适配 (768px, 1024px, 1200px) -- 触摸友好的交互 -- 自适应布局 - -## 🔍 开发指南 - -### 代码规范 - -- 使用 ESLint + Prettier 进行代码格式化 -- 组件命名采用 PascalCase -- 文件命名采用 kebab-case -- 样式使用 SCSS 预处理器 - -### 组件开发 - -```vue - - - - - -``` - -### API调用 - -```javascript -import { chatApi } from '@/api/chat' - -// 发送消息 -const response = await chatApi.sendMessage({ - userId: 'user123', - message: 'Hello', - conversationId: 'conv456' -}) -``` - -## 🚀 部署 - -### 静态部署 - -构建后的 `dist` 目录可以部署到任何静态文件服务器: - -- Nginx -- Apache -- Vercel -- Netlify -- GitHub Pages - -### Docker部署 - -```dockerfile -FROM nginx:alpine -COPY dist/ /usr/share/nginx/html/ -COPY nginx.conf /etc/nginx/nginx.conf -EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] -``` - -## 🤝 贡献指南 - -1. Fork 项目 -2. 创建特性分支 (`git checkout -b feature/AmazingFeature`) -3. 提交更改 (`git commit -m 'Add some AmazingFeature'`) -4. 推送到分支 (`git push origin feature/AmazingFeature`) -5. 打开 Pull Request - -## 📄 许可证 - -本项目采用 MIT 许可证 - 查看 [LICENSE](LICENSE) 文件了解详情 - -## 🙏 致谢 - -- [Vue.js](https://vuejs.org/) - 渐进式JavaScript框架 -- [Ant Design Vue](https://antdv.com/) - 企业级UI设计语言 -- [Vite](https://vitejs.dev/) - 下一代前端构建工具 diff --git a/web-bak/index.html b/web-bak/index.html deleted file mode 100644 index a363f20..0000000 --- a/web-bak/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - 情绪博物馆 - AI心理健康助手 - - - - -
-
加载中...
-
- - - diff --git a/web-bak/mobile-fixed.html b/web-bak/mobile-fixed.html deleted file mode 100644 index 8aa3a14..0000000 --- a/web-bak/mobile-fixed.html +++ /dev/null @@ -1,633 +0,0 @@ - - - - - - - - - 情绪博物馆 - 移动版 - - - -
-
-

🏛️ 情绪博物馆

- -
- -
-
-
- 连接中... -
- 0 条消息 -
- -
-
-

👋 欢迎使用

-

我是您的AI心理健康助手,很高兴为您服务。请告诉我您今天的心情如何?

-
-
- -
-
- - -
-
-
- - - diff --git a/web-bak/nginx.conf b/web-bak/nginx.conf deleted file mode 100644 index 636a14c..0000000 --- a/web-bak/nginx.conf +++ /dev/null @@ -1,64 +0,0 @@ -server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html index.htm; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 静态资源缓存 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - add_header Vary "Accept-Encoding"; - try_files $uri =404; - } - - # HTML文件不缓存 - location ~* \.(html|htm)$ { - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - add_header Pragma "no-cache"; - try_files $uri $uri/ /index.html; - } - - # SPA路由支持 - location / { - try_files $uri $uri/ /index.html; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-Content-Type-Options "nosniff" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header Referrer-Policy "strict-origin-when-cross-origin" always; - } - - # 健康检查 - location /health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /index.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } -} diff --git a/web-bak/package-lock.json b/web-bak/package-lock.json deleted file mode 100644 index 9f6d896..0000000 --- a/web-bak/package-lock.json +++ /dev/null @@ -1,6813 +0,0 @@ -{ - "name": "emotion-museum-web", - "version": "1.0.0", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "emotion-museum-web", - "version": "1.0.0", - "dependencies": { - "@ant-design/icons-vue": "^6.1.0", - "@heroicons/vue": "^2.2.0", - "@tailwindcss/typography": "^0.5.10", - "ant-design-vue": "^4.0.0", - "axios": "^1.5.0", - "dayjs": "^1.11.0", - "highlight.js": "^11.8.0", - "lucide-vue-next": "^0.294.0", - "marked": "^9.1.0", - "pinia": "^2.1.0", - "vue": "^3.3.0", - "vue-router": "^4.2.0" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^4.4.0", - "@vue/eslint-config-prettier": "^8.0.0", - "autoprefixer": "^10.4.16", - "eslint": "^8.50.0", - "eslint-plugin-vue": "^9.17.0", - "postcss": "^8.4.31", - "prettier": "^3.0.0", - "sass": "^1.69.0", - "tailwindcss": "^3.3.0", - "vite": "^4.5.0" - } - }, - "node_modules/@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmmirror.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@ant-design/colors": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/@ant-design/colors/-/colors-6.0.0.tgz", - "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==", - "dependencies": { - "@ctrl/tinycolor": "^3.4.0" - } - }, - "node_modules/@ant-design/icons-svg": { - "version": "4.4.2", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", - "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==" - }, - "node_modules/@ant-design/icons-vue": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-6.1.0.tgz", - "integrity": "sha512-EX6bYm56V+ZrKN7+3MT/ubDkvJ5rK/O2t380WFRflDcVFgsvl3NLH7Wxeau6R8DbrO5jWR6DSTC3B6gYFp77AA==", - "dependencies": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-svg": "^4.2.1" - }, - "peerDependencies": { - "vue": ">=3.0.3" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", - "dependencies": { - "@babel/types": "^7.28.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/runtime": { - "version": "7.27.6", - "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.27.6.tgz", - "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@ctrl/tinycolor": { - "version": "3.6.1", - "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", - "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==", - "engines": { - "node": ">=10" - } - }, - "node_modules/@emotion/hash": { - "version": "0.9.2", - "resolved": "https://registry.npmmirror.com/@emotion/hash/-/hash-0.9.2.tgz", - "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==" - }, - "node_modules/@emotion/unitless": { - "version": "0.8.1", - "resolved": "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.8.1.tgz", - "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" - }, - "node_modules/@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.4.3" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "8.57.1", - "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-8.57.1.tgz", - "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@heroicons/vue": { - "version": "2.2.0", - "resolved": "https://registry.npmmirror.com/@heroicons/vue/-/vue-2.2.0.tgz", - "integrity": "sha512-G3dbSxoeEKqbi/DFalhRxJU4mTXJn7GwZ7ae8NuEQzd1bqdd0jAbdaBZlHPcvPD2xI1iGzNVB4k20Un2AguYPw==", - "peerDependencies": { - "vue": ">= 3" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.13.0", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", - "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", - "deprecated": "Use @eslint/config-array instead", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "deprecated": "Use @eslint/object-schema instead", - "dev": true - }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@parcel/watcher": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher/-/watcher-2.5.1.tgz", - "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "dependencies": { - "detect-libc": "^1.0.3", - "is-glob": "^4.0.3", - "micromatch": "^4.0.5", - "node-addon-api": "^7.0.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - }, - "optionalDependencies": { - "@parcel/watcher-android-arm64": "2.5.1", - "@parcel/watcher-darwin-arm64": "2.5.1", - "@parcel/watcher-darwin-x64": "2.5.1", - "@parcel/watcher-freebsd-x64": "2.5.1", - "@parcel/watcher-linux-arm-glibc": "2.5.1", - "@parcel/watcher-linux-arm-musl": "2.5.1", - "@parcel/watcher-linux-arm64-glibc": "2.5.1", - "@parcel/watcher-linux-arm64-musl": "2.5.1", - "@parcel/watcher-linux-x64-glibc": "2.5.1", - "@parcel/watcher-linux-x64-musl": "2.5.1", - "@parcel/watcher-win32-arm64": "2.5.1", - "@parcel/watcher-win32-ia32": "2.5.1", - "@parcel/watcher-win32-x64": "2.5.1" - } - }, - "node_modules/@parcel/watcher-android-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", - "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", - "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-darwin-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", - "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-freebsd-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", - "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", - "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", - "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", - "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-arm64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", - "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", - "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-linux-x64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", - "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", - "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-ia32": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", - "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@parcel/watcher-win32-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", - "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/parcel" - } - }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true, - "engines": { - "node": ">=14" - } - }, - "node_modules/@pkgr/core": { - "version": "0.2.7", - "resolved": "https://registry.npmmirror.com/@pkgr/core/-/core-0.2.7.tgz", - "integrity": "sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==", - "dev": true, - "engines": { - "node": "^12.20.0 || ^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/pkgr" - } - }, - "node_modules/@simonwep/pickr": { - "version": "1.8.2", - "resolved": "https://registry.npmmirror.com/@simonwep/pickr/-/pickr-1.8.2.tgz", - "integrity": "sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==", - "dependencies": { - "core-js": "^3.15.1", - "nanopop": "^2.1.0" - } - }, - "node_modules/@tailwindcss/typography": { - "version": "0.5.16", - "resolved": "https://registry.npmmirror.com/@tailwindcss/typography/-/typography-0.5.16.tgz", - "integrity": "sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==", - "dependencies": { - "lodash.castarray": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.merge": "^4.6.2", - "postcss-selector-parser": "6.0.10" - }, - "peerDependencies": { - "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1" - } - }, - "node_modules/@tailwindcss/typography/node_modules/postcss-selector-parser": { - "version": "6.0.10", - "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", - "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", - "dev": true - }, - "node_modules/@vitejs/plugin-vue": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.6.2.tgz", - "integrity": "sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==", - "dev": true, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "peerDependencies": { - "vite": "^4.0.0 || ^5.0.0", - "vue": "^3.2.25" - } - }, - "node_modules/@vue/compiler-core": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.17.tgz", - "integrity": "sha512-Xe+AittLbAyV0pabcN7cP7/BenRBNcteM4aSDCtRvGw0d9OL+HG1u/XHLY/kt1q4fyMeZYXyIYrsHuPSiDPosA==", - "dependencies": { - "@babel/parser": "^7.27.5", - "@vue/shared": "3.5.17", - "entities": "^4.5.0", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-dom": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.17.tgz", - "integrity": "sha512-+2UgfLKoaNLhgfhV5Ihnk6wB4ljyW1/7wUIog2puUqajiC29Lp5R/IKDdkebh9jTbTogTbsgB+OY9cEWzG95JQ==", - "dependencies": { - "@vue/compiler-core": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "node_modules/@vue/compiler-sfc": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.17.tgz", - "integrity": "sha512-rQQxbRJMgTqwRugtjw0cnyQv9cP4/4BxWfTdRBkqsTfLOHWykLzbOc3C4GGzAmdMDxhzU/1Ija5bTjMVrddqww==", - "dependencies": { - "@babel/parser": "^7.27.5", - "@vue/compiler-core": "3.5.17", - "@vue/compiler-dom": "3.5.17", - "@vue/compiler-ssr": "3.5.17", - "@vue/shared": "3.5.17", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.17", - "postcss": "^8.5.6", - "source-map-js": "^1.2.1" - } - }, - "node_modules/@vue/compiler-ssr": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.17.tgz", - "integrity": "sha512-hkDbA0Q20ZzGgpj5uZjb9rBzQtIHLS78mMilwrlpWk2Ep37DYntUz0PonQ6kr113vfOEdM+zTBuJDaceNIW0tQ==", - "dependencies": { - "@vue/compiler-dom": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "node_modules/@vue/devtools-api": { - "version": "6.6.4", - "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz", - "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==" - }, - "node_modules/@vue/eslint-config-prettier": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/@vue/eslint-config-prettier/-/eslint-config-prettier-8.0.0.tgz", - "integrity": "sha512-55dPqtC4PM/yBjhAr+yEw6+7KzzdkBuLmnhBrDfp4I48+wy+Giqqj9yUr5T2uD/BkBROjjmqnLZmXRdOx/VtQg==", - "dev": true, - "dependencies": { - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^5.0.0" - }, - "peerDependencies": { - "eslint": ">= 8.0.0", - "prettier": ">= 3.0.0" - } - }, - "node_modules/@vue/reactivity": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.17.tgz", - "integrity": "sha512-l/rmw2STIscWi7SNJp708FK4Kofs97zc/5aEPQh4bOsReD/8ICuBcEmS7KGwDj5ODQLYWVN2lNibKJL1z5b+Lw==", - "dependencies": { - "@vue/shared": "3.5.17" - } - }, - "node_modules/@vue/runtime-core": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.17.tgz", - "integrity": "sha512-QQLXa20dHg1R0ri4bjKeGFKEkJA7MMBxrKo2G+gJikmumRS7PTD4BOU9FKrDQWMKowz7frJJGqBffYMgQYS96Q==", - "dependencies": { - "@vue/reactivity": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "node_modules/@vue/runtime-dom": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.17.tgz", - "integrity": "sha512-8El0M60TcwZ1QMz4/os2MdlQECgGoVHPuLnQBU3m9h3gdNRW9xRmI8iLS4t/22OQlOE6aJvNNlBiCzPHur4H9g==", - "dependencies": { - "@vue/reactivity": "3.5.17", - "@vue/runtime-core": "3.5.17", - "@vue/shared": "3.5.17", - "csstype": "^3.1.3" - } - }, - "node_modules/@vue/server-renderer": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.17.tgz", - "integrity": "sha512-BOHhm8HalujY6lmC3DbqF6uXN/K00uWiEeF22LfEsm9Q93XeJ/plHTepGwf6tqFcF7GA5oGSSAAUock3VvzaCA==", - "dependencies": { - "@vue/compiler-ssr": "3.5.17", - "@vue/shared": "3.5.17" - }, - "peerDependencies": { - "vue": "3.5.17" - } - }, - "node_modules/@vue/shared": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.17.tgz", - "integrity": "sha512-CabR+UN630VnsJO/jHWYBC1YVXyMq94KKp6iF5MQgZJs5I8cmjw6oVMO1oDbtBkENSHSSn/UadWlW/OAgdmKrg==" - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/ant-design-vue": { - "version": "4.2.6", - "resolved": "https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-4.2.6.tgz", - "integrity": "sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==", - "dependencies": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-vue": "^7.0.0", - "@babel/runtime": "^7.10.5", - "@ctrl/tinycolor": "^3.5.0", - "@emotion/hash": "^0.9.0", - "@emotion/unitless": "^0.8.0", - "@simonwep/pickr": "~1.8.0", - "array-tree-filter": "^2.1.0", - "async-validator": "^4.0.0", - "csstype": "^3.1.1", - "dayjs": "^1.10.5", - "dom-align": "^1.12.1", - "dom-scroll-into-view": "^2.0.0", - "lodash": "^4.17.21", - "lodash-es": "^4.17.15", - "resize-observer-polyfill": "^1.5.1", - "scroll-into-view-if-needed": "^2.2.25", - "shallow-equal": "^1.0.0", - "stylis": "^4.1.3", - "throttle-debounce": "^5.0.0", - "vue-types": "^3.0.0", - "warning": "^4.0.0" - }, - "engines": { - "node": ">=12.22.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/ant-design-vue" - }, - "peerDependencies": { - "vue": ">=3.2.0" - } - }, - "node_modules/ant-design-vue/node_modules/@ant-design/icons-vue": { - "version": "7.0.1", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-7.0.1.tgz", - "integrity": "sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==", - "dependencies": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-svg": "^4.2.1" - }, - "peerDependencies": { - "vue": ">=3.0.3" - } - }, - "node_modules/any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "5.0.2", - "resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-tree-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/array-tree-filter/-/array-tree-filter-2.1.0.tgz", - "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==" - }, - "node_modules/async-validator": { - "version": "4.2.5", - "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", - "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==" - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/autoprefixer": { - "version": "10.4.21", - "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.21.tgz", - "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/autoprefixer" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "browserslist": "^4.24.4", - "caniuse-lite": "^1.0.30001702", - "fraction.js": "^4.3.7", - "normalize-range": "^0.1.2", - "picocolors": "^1.1.1", - "postcss-value-parser": "^4.2.0" - }, - "bin": { - "autoprefixer": "bin/autoprefixer" - }, - "engines": { - "node": "^10 || ^12 || >=14" - }, - "peerDependencies": { - "postcss": "^8.1.0" - } - }, - "node_modules/axios": { - "version": "1.10.0", - "resolved": "https://registry.npmmirror.com/axios/-/axios-1.10.0.tgz", - "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==", - "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "dependencies": { - "readdirp": "^4.0.1" - }, - "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/compute-scroll-into-view": { - "version": "1.0.20", - "resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz", - "integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==" - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/core-js": { - "version": "3.44.0", - "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.44.0.tgz", - "integrity": "sha512-aFCtd4l6GvAXwVEh3XbbVqJGHDJt0OZRa+5ePGx3LLwi12WfexqQxcsohb2wgsa/92xtl19Hd66G/L+TaAxDMw==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", - "bin": { - "cssesc": "bin/cssesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" - }, - "node_modules/dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", - "dev": true, - "optional": true, - "bin": { - "detect-libc": "bin/detect-libc.js" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" - }, - "node_modules/dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/dom-align": { - "version": "1.12.4", - "resolved": "https://registry.npmmirror.com/dom-align/-/dom-align-1.12.4.tgz", - "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==" - }, - "node_modules/dom-scroll-into-view": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz", - "integrity": "sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==" - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "node_modules/electron-to-chromium": { - "version": "1.5.185", - "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.185.tgz", - "integrity": "sha512-dYOZfUk57hSMPePoIQ1fZWl1Fkj+OshhEVuPacNKWzC1efe56OsHY3l/jCfiAgIICOU3VgOIdoq7ahg7r7n6MQ==", - "dev": true - }, - "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "dev": true, - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.57.1.tgz", - "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", - "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-prettier": { - "version": "8.10.0", - "resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", - "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "5.5.1", - "resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.1.tgz", - "integrity": "sha512-dobTkHT6XaEVOo8IO90Q4DOSxnm3Y151QxPJlM/vKC0bVy+d6cVWQZLlFiuZPP0wS6vZwSKeJgKkcS+KfMBlRw==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.11.7" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint-plugin-prettier" - }, - "peerDependencies": { - "@types/eslint": ">=8.0.0", - "eslint": ">=8.0.0", - "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0", - "prettier": ">=3.0.0" - }, - "peerDependenciesMeta": { - "@types/eslint": { - "optional": true - }, - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-plugin-vue": { - "version": "9.33.0", - "resolved": "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-9.33.0.tgz", - "integrity": "sha512-174lJKuNsuDIlLpjeXc5E2Tss8P44uIimAfGD0b90k0NoirJqpG7stLuU9Vp/9ioTOrQdWVREc4mRd1BD+CvGw==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.4.0", - "globals": "^13.24.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.1.1", - "postcss-selector-parser": "^6.0.15", - "semver": "^7.6.3", - "vue-eslint-parser": "^9.4.3", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0" - } - }, - "node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "dependencies": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/form-data": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.3.tgz", - "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "dev": true, - "engines": { - "node": "*" - }, - "funding": { - "type": "patreon", - "url": "https://github.com/sponsors/rawify" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/highlight.js": { - "version": "11.11.1", - "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.11.1.tgz", - "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/immutable": { - "version": "5.1.3", - "resolved": "https://registry.npmmirror.com/immutable/-/immutable-5.1.3.tgz", - "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", - "dev": true - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "dependencies": { - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-plain-object": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", - "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/jiti": { - "version": "1.21.7", - "resolved": "https://registry.npmmirror.com/jiti/-/jiti-1.21.7.tgz", - "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", - "bin": { - "jiti": "bin/jiti.js" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lilconfig": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz", - "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/antonk52" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "node_modules/lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" - }, - "node_modules/lodash.castarray": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz", - "integrity": "sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==" - }, - "node_modules/lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" - }, - "node_modules/loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dependencies": { - "js-tokens": "^3.0.0 || ^4.0.0" - }, - "bin": { - "loose-envify": "cli.js" - } - }, - "node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" - }, - "node_modules/lucide-vue-next": { - "version": "0.294.0", - "resolved": "https://registry.npmmirror.com/lucide-vue-next/-/lucide-vue-next-0.294.0.tgz", - "integrity": "sha512-bcUuGyLJoq9ExyozROMezdaczK2loP3emYb8PvS7HhZ56rUJVOv5hJgTmWfrfr8vJE7J69ImoMyPTwmUHF198w==", - "peerDependencies": { - "vue": ">=3.0.1" - } - }, - "node_modules/magic-string": { - "version": "0.30.17", - "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz", - "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "node_modules/marked": { - "version": "9.1.6", - "resolved": "https://registry.npmmirror.com/marked/-/marked-9.1.6.tgz", - "integrity": "sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 16" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/mz": { - "version": "2.7.0", - "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "dependencies": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "node_modules/nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/nanopop": { - "version": "2.4.2", - "resolved": "https://registry.npmmirror.com/nanopop/-/nanopop-2.4.2.tgz", - "integrity": "sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==" - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, - "optional": true - }, - "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dev": true, - "dependencies": { - "boolbase": "^1.0.0" - }, - "funding": { - "url": "https://github.com/fb55/nth-check?sponsor=1" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==" - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "node_modules/path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "dependencies": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - }, - "engines": { - "node": ">=16 || 14 >=14.18" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/pinia": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz", - "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", - "dependencies": { - "@vue/devtools-api": "^6.6.3", - "vue-demi": "^0.14.10" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "typescript": ">=4.4.4", - "vue": "^2.7.0 || ^3.5.11" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmmirror.com/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - }, - "engines": { - "node": "^10 || ^12 || >=14" - } - }, - "node_modules/postcss-import": { - "version": "15.1.0", - "resolved": "https://registry.npmmirror.com/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "dependencies": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "postcss": "^8.0.0" - } - }, - "node_modules/postcss-js": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "dependencies": { - "camelcase-css": "^2.0.1" - }, - "engines": { - "node": "^12 || ^14 || >= 16" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - "peerDependencies": { - "postcss": "^8.4.21" - } - }, - "node_modules/postcss-load-config": { - "version": "4.0.2", - "resolved": "https://registry.npmmirror.com/postcss-load-config/-/postcss-load-config-4.0.2.tgz", - "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "lilconfig": "^3.0.0", - "yaml": "^2.3.4" - }, - "engines": { - "node": ">= 14" - }, - "peerDependencies": { - "postcss": ">=8.0.9", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "postcss": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/postcss-nested": { - "version": "6.2.0", - "resolved": "https://registry.npmmirror.com/postcss-nested/-/postcss-nested-6.2.0.tgz", - "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "postcss-selector-parser": "^6.1.1" - }, - "engines": { - "node": ">=12.0" - }, - "peerDependencies": { - "postcss": "^8.2.14" - } - }, - "node_modules/postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", - "dependencies": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true, - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "dependencies": { - "pify": "^2.3.0" - } - }, - "node_modules/readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true, - "engines": { - "node": ">= 14.18.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" - }, - "node_modules/resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", - "dependencies": { - "is-core-module": "^2.16.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rollup": { - "version": "3.29.5", - "resolved": "https://registry.npmmirror.com/rollup/-/rollup-3.29.5.tgz", - "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=14.18.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/sass": { - "version": "1.89.2", - "resolved": "https://registry.npmmirror.com/sass/-/sass-1.89.2.tgz", - "integrity": "sha512-xCmtksBKd/jdJ9Bt9p7nPKiuqrlBMBuuGkQlkhZjjQk3Ty48lv93k5Dq6OPkKt4XwxDJ7tvlfrTa1MPA9bf+QA==", - "dev": true, - "dependencies": { - "chokidar": "^4.0.0", - "immutable": "^5.0.2", - "source-map-js": ">=0.6.2 <2.0.0" - }, - "bin": { - "sass": "sass.js" - }, - "engines": { - "node": ">=14.0.0" - }, - "optionalDependencies": { - "@parcel/watcher": "^2.4.1" - } - }, - "node_modules/scroll-into-view-if-needed": { - "version": "2.2.31", - "resolved": "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz", - "integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==", - "dependencies": { - "compute-scroll-into-view": "^1.0.20" - } - }, - "node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/shallow-equal": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/shallow-equal/-/shallow-equal-1.2.1.tgz", - "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==" - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/string-width/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/string-width/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/stylis": { - "version": "4.3.6", - "resolved": "https://registry.npmmirror.com/stylis/-/stylis-4.3.6.tgz", - "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==" - }, - "node_modules/sucrase": { - "version": "3.35.0", - "resolved": "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.0.tgz", - "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "^10.3.10", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "bin": { - "sucrase": "bin/sucrase", - "sucrase-node": "bin/sucrase-node" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/sucrase/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/sucrase/node_modules/glob": { - "version": "10.4.5", - "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/sucrase/node_modules/minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=16 || 14 >=14.17" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/synckit": { - "version": "0.11.8", - "resolved": "https://registry.npmmirror.com/synckit/-/synckit-0.11.8.tgz", - "integrity": "sha512-+XZ+r1XGIJGeQk3VvXhT6xx/VpbHsRzsTkGgF6E5RX9TTXD0118l87puaEBZ566FhqblC6U0d4XnubznJDm30A==", - "dev": true, - "dependencies": { - "@pkgr/core": "^0.2.4" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/synckit" - } - }, - "node_modules/tailwindcss": { - "version": "3.4.17", - "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.17.tgz", - "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", - "dependencies": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.6.0", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.3.2", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.21.6", - "lilconfig": "^3.1.3", - "micromatch": "^4.0.8", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.1.1", - "postcss": "^8.4.47", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.2", - "postcss-nested": "^6.2.0", - "postcss-selector-parser": "^6.1.2", - "resolve": "^1.22.8", - "sucrase": "^3.35.0" - }, - "bin": { - "tailwind": "lib/cli.js", - "tailwindcss": "lib/cli.js" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/tailwindcss/node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/tailwindcss/node_modules/chokidar/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/tailwindcss/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/thenify": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "dependencies": { - "any-promise": "^1.0.0" - } - }, - "node_modules/thenify-all": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "dependencies": { - "thenify": ">= 3.1.0 < 4" - }, - "engines": { - "node": ">=0.8" - } - }, - "node_modules/throttle-debounce": { - "version": "5.0.2", - "resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.2.tgz", - "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==", - "engines": { - "node": ">=12.22" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-interface-checker": { - "version": "0.1.13", - "resolved": "https://registry.npmmirror.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "node_modules/vite": { - "version": "4.5.14", - "resolved": "https://registry.npmmirror.com/vite/-/vite-4.5.14.tgz", - "integrity": "sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==", - "dev": true, - "dependencies": { - "esbuild": "^0.18.10", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^14.18.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - }, - "peerDependencies": { - "@types/node": ">= 14", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vue": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.17.tgz", - "integrity": "sha512-LbHV3xPN9BeljML+Xctq4lbz2lVHCR6DtbpTf5XIO6gugpXUN49j2QQPcMj086r9+AkJ0FfUT8xjulKKBkkr9g==", - "dependencies": { - "@vue/compiler-dom": "3.5.17", - "@vue/compiler-sfc": "3.5.17", - "@vue/runtime-dom": "3.5.17", - "@vue/server-renderer": "3.5.17", - "@vue/shared": "3.5.17" - }, - "peerDependencies": { - "typescript": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/vue-demi": { - "version": "0.14.10", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", - "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", - "hasInstallScript": true, - "bin": { - "vue-demi-fix": "bin/vue-demi-fix.js", - "vue-demi-switch": "bin/vue-demi-switch.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/antfu" - }, - "peerDependencies": { - "@vue/composition-api": "^1.0.0-rc.1", - "vue": "^3.0.0-0 || ^2.6.0" - }, - "peerDependenciesMeta": { - "@vue/composition-api": { - "optional": true - } - } - }, - "node_modules/vue-eslint-parser": { - "version": "9.4.3", - "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", - "integrity": "sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==", - "dev": true, - "dependencies": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" - }, - "engines": { - "node": "^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=6.0.0" - } - }, - "node_modules/vue-router": { - "version": "4.5.1", - "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.5.1.tgz", - "integrity": "sha512-ogAF3P97NPm8fJsE4by9dwSYtDwXIY1nFY9T6DyQnGHd1E2Da94w9JIolpe42LJGIl0DwOHBi8TcRPlPGwbTtw==", - "dependencies": { - "@vue/devtools-api": "^6.6.4" - }, - "funding": { - "url": "https://github.com/sponsors/posva" - }, - "peerDependencies": { - "vue": "^3.2.0" - } - }, - "node_modules/vue-types": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/vue-types/-/vue-types-3.0.2.tgz", - "integrity": "sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==", - "dependencies": { - "is-plain-object": "3.0.1" - }, - "engines": { - "node": ">=10.15.0" - }, - "peerDependencies": { - "vue": "^3.0.0" - } - }, - "node_modules/warning": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "node_modules/wrap-ansi-cjs/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yaml": { - "version": "2.8.0", - "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.8.0.tgz", - "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14.6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@alloc/quick-lru": { - "version": "5.2.0", - "resolved": "https://registry.npmmirror.com/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", - "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==" - }, - "@ant-design/colors": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/@ant-design/colors/-/colors-6.0.0.tgz", - "integrity": "sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==", - "requires": { - "@ctrl/tinycolor": "^3.4.0" - } - }, - "@ant-design/icons-svg": { - "version": "4.4.2", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-svg/-/icons-svg-4.4.2.tgz", - "integrity": "sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==" - }, - "@ant-design/icons-vue": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-6.1.0.tgz", - "integrity": "sha512-EX6bYm56V+ZrKN7+3MT/ubDkvJ5rK/O2t380WFRflDcVFgsvl3NLH7Wxeau6R8DbrO5jWR6DSTC3B6gYFp77AA==", - "requires": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-svg": "^4.2.1" - } - }, - "@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==" - }, - "@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==" - }, - "@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", - "requires": { - "@babel/types": "^7.28.0" - } - }, - "@babel/runtime": { - "version": "7.27.6", - "resolved": "https://registry.npmmirror.com/@babel/runtime/-/runtime-7.27.6.tgz", - "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==" - }, - "@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", - "requires": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - } - }, - "@ctrl/tinycolor": { - "version": "3.6.1", - "resolved": "https://registry.npmmirror.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz", - "integrity": "sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==" - }, - "@emotion/hash": { - "version": "0.9.2", - "resolved": "https://registry.npmmirror.com/@emotion/hash/-/hash-0.9.2.tgz", - "integrity": "sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==" - }, - "@emotion/unitless": { - "version": "0.8.1", - "resolved": "https://registry.npmmirror.com/@emotion/unitless/-/unitless-0.8.1.tgz", - "integrity": "sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==" - }, - "@esbuild/android-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.18.20.tgz", - "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "dev": true, - "optional": true - }, - "@esbuild/android-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", - "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "dev": true, - "optional": true - }, - "@esbuild/android-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.18.20.tgz", - "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", - "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "dev": true, - "optional": true - }, - "@esbuild/darwin-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", - "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", - "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "dev": true, - "optional": true - }, - "@esbuild/freebsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", - "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", - "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "dev": true, - "optional": true - }, - "@esbuild/linux-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", - "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", - "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-loong64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", - "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "dev": true, - "optional": true - }, - "@esbuild/linux-mips64el": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", - "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-ppc64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", - "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "dev": true, - "optional": true - }, - "@esbuild/linux-riscv64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", - "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "dev": true, - "optional": true - }, - "@esbuild/linux-s390x": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", - "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "dev": true, - "optional": true - }, - "@esbuild/linux-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", - "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "dev": true, - "optional": true - }, - "@esbuild/netbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", - "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "dev": true, - "optional": true - }, - "@esbuild/openbsd-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", - "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "dev": true, - "optional": true - }, - "@esbuild/sunos-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", - "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "dev": true, - "optional": true - }, - "@esbuild/win32-arm64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", - "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "dev": true, - "optional": true - }, - "@esbuild/win32-ia32": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", - "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "dev": true, - "optional": true - }, - "@esbuild/win32-x64": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", - "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "dev": true, - "optional": true - }, - "@eslint-community/eslint-utils": { - "version": "4.7.0", - "resolved": "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", - "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", - "dev": true, - "requires": { - "eslint-visitor-keys": "^3.4.3" - } - }, - "@eslint-community/regexpp": { - "version": "4.12.1", - "resolved": "https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", - "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", - "dev": true - }, - "@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - } - }, - "@eslint/js": { - "version": "8.57.1", - "resolved": "https://registry.npmmirror.com/@eslint/js/-/js-8.57.1.tgz", - "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", - "dev": true - }, - "@heroicons/vue": { - "version": "2.2.0", - "resolved": "https://registry.npmmirror.com/@heroicons/vue/-/vue-2.2.0.tgz", - "integrity": "sha512-G3dbSxoeEKqbi/DFalhRxJU4mTXJn7GwZ7ae8NuEQzd1bqdd0jAbdaBZlHPcvPD2xI1iGzNVB4k20Un2AguYPw==", - "requires": {} - }, - "@humanwhocodes/config-array": { - "version": "0.13.0", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", - "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", - "dev": true, - "requires": { - "@humanwhocodes/object-schema": "^2.0.3", - "debug": "^4.3.1", - "minimatch": "^3.0.5" - } - }, - "@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true - }, - "@humanwhocodes/object-schema": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", - "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", - "dev": true - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmmirror.com/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } - }, - "@jridgewell/gen-mapping": { - "version": "0.3.12", - "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz", - "integrity": "sha512-OuLGC46TjB5BbN1dH8JULVVZY4WTdkF7tV9Ys6wLL1rubZnCMstOhNHueU5bLCrnRuDhKPDM4g6sw4Bel5Gzqg==", - "requires": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==" - }, - "@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha512-VT2+G1VQs/9oz078bLrYbecdZKs912zQlkelYpuf+SXF+QvZDYJlbx/LSx+meSAwdDFnF8FVXW92AVjjkVmgFw==" - }, - "@jridgewell/trace-mapping": { - "version": "0.3.29", - "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.29.tgz", - "integrity": "sha512-uw6guiW/gcAGPDhLmd77/6lW8QLeiV5RUTsAX46Db6oLhGaVj4lhnPwb184s1bkc8kdVg/+h988dro8GRDpmYQ==", - "requires": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@parcel/watcher": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher/-/watcher-2.5.1.tgz", - "integrity": "sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==", - "dev": true, - "optional": true, - "requires": { - "@parcel/watcher-android-arm64": "2.5.1", - "@parcel/watcher-darwin-arm64": "2.5.1", - "@parcel/watcher-darwin-x64": "2.5.1", - "@parcel/watcher-freebsd-x64": "2.5.1", - "@parcel/watcher-linux-arm-glibc": "2.5.1", - "@parcel/watcher-linux-arm-musl": "2.5.1", - "@parcel/watcher-linux-arm64-glibc": "2.5.1", - "@parcel/watcher-linux-arm64-musl": "2.5.1", - "@parcel/watcher-linux-x64-glibc": "2.5.1", - "@parcel/watcher-linux-x64-musl": "2.5.1", - "@parcel/watcher-win32-arm64": "2.5.1", - "@parcel/watcher-win32-ia32": "2.5.1", - "@parcel/watcher-win32-x64": "2.5.1", - "detect-libc": "^1.0.3", - "is-glob": "^4.0.3", - "micromatch": "^4.0.5", - "node-addon-api": "^7.0.0" - } - }, - "@parcel/watcher-android-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-android-arm64/-/watcher-android-arm64-2.5.1.tgz", - "integrity": "sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==", - "dev": true, - "optional": true - }, - "@parcel/watcher-darwin-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-arm64/-/watcher-darwin-arm64-2.5.1.tgz", - "integrity": "sha512-eAzPv5osDmZyBhou8PoF4i6RQXAfeKL9tjb3QzYuccXFMQU0ruIc/POh30ePnaOyD1UXdlKguHBmsTs53tVoPw==", - "dev": true, - "optional": true - }, - "@parcel/watcher-darwin-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-darwin-x64/-/watcher-darwin-x64-2.5.1.tgz", - "integrity": "sha512-1ZXDthrnNmwv10A0/3AJNZ9JGlzrF82i3gNQcWOzd7nJ8aj+ILyW1MTxVk35Db0u91oD5Nlk9MBiujMlwmeXZg==", - "dev": true, - "optional": true - }, - "@parcel/watcher-freebsd-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-freebsd-x64/-/watcher-freebsd-x64-2.5.1.tgz", - "integrity": "sha512-SI4eljM7Flp9yPuKi8W0ird8TI/JK6CSxju3NojVI6BjHsTyK7zxA9urjVjEKJ5MBYC+bLmMcbAWlZ+rFkLpJQ==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-arm-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-glibc/-/watcher-linux-arm-glibc-2.5.1.tgz", - "integrity": "sha512-RCdZlEyTs8geyBkkcnPWvtXLY44BCeZKmGYRtSgtwwnHR4dxfHRG3gR99XdMEdQ7KeiDdasJwwvNSF5jKtDwdA==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-arm-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm-musl/-/watcher-linux-arm-musl-2.5.1.tgz", - "integrity": "sha512-6E+m/Mm1t1yhB8X412stiKFG3XykmgdIOqhjWj+VL8oHkKABfu/gjFj8DvLrYVHSBNC+/u5PeNrujiSQ1zwd1Q==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-arm64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-glibc/-/watcher-linux-arm64-glibc-2.5.1.tgz", - "integrity": "sha512-LrGp+f02yU3BN9A+DGuY3v3bmnFUggAITBGriZHUREfNEzZh/GO06FF5u2kx8x+GBEUYfyTGamol4j3m9ANe8w==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-arm64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-arm64-musl/-/watcher-linux-arm64-musl-2.5.1.tgz", - "integrity": "sha512-cFOjABi92pMYRXS7AcQv9/M1YuKRw8SZniCDw0ssQb/noPkRzA+HBDkwmyOJYp5wXcsTrhxO0zq1U11cK9jsFg==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-x64-glibc": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-glibc/-/watcher-linux-x64-glibc-2.5.1.tgz", - "integrity": "sha512-GcESn8NZySmfwlTsIur+49yDqSny2IhPeZfXunQi48DMugKeZ7uy1FX83pO0X22sHntJ4Ub+9k34XQCX+oHt2A==", - "dev": true, - "optional": true - }, - "@parcel/watcher-linux-x64-musl": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-linux-x64-musl/-/watcher-linux-x64-musl-2.5.1.tgz", - "integrity": "sha512-n0E2EQbatQ3bXhcH2D1XIAANAcTZkQICBPVaxMeaCVBtOpBZpWJuf7LwyWPSBDITb7In8mqQgJ7gH8CILCURXg==", - "dev": true, - "optional": true - }, - "@parcel/watcher-win32-arm64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-arm64/-/watcher-win32-arm64-2.5.1.tgz", - "integrity": "sha512-RFzklRvmc3PkjKjry3hLF9wD7ppR4AKcWNzH7kXR7GUe0Igb3Nz8fyPwtZCSquGrhU5HhUNDr/mKBqj7tqA2Vw==", - "dev": true, - "optional": true - }, - "@parcel/watcher-win32-ia32": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-ia32/-/watcher-win32-ia32-2.5.1.tgz", - "integrity": "sha512-c2KkcVN+NJmuA7CGlaGD1qJh1cLfDnQsHjE89E60vUEMlqduHGCdCLJCID5geFVM0dOtA3ZiIO8BoEQmzQVfpQ==", - "dev": true, - "optional": true - }, - "@parcel/watcher-win32-x64": { - "version": "2.5.1", - "resolved": "https://registry.npmmirror.com/@parcel/watcher-win32-x64/-/watcher-win32-x64-2.5.1.tgz", - "integrity": "sha512-9lHBdJITeNR++EvSQVUcaZoWupyHfXe1jZvGZ06O/5MflPcuPLtEphScIBL+AiCWBO46tDSHzWyD0uDmmZqsgA==", - "dev": true, - "optional": true - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "optional": true - }, - "@pkgr/core": { - "version": "0.2.7", - "resolved": "https://registry.npmmirror.com/@pkgr/core/-/core-0.2.7.tgz", - "integrity": "sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==", - "dev": true - }, - "@simonwep/pickr": { - "version": "1.8.2", - "resolved": "https://registry.npmmirror.com/@simonwep/pickr/-/pickr-1.8.2.tgz", - "integrity": "sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==", - "requires": { - "core-js": "^3.15.1", - "nanopop": "^2.1.0" - } - }, - "@tailwindcss/typography": { - "version": "0.5.16", - "resolved": "https://registry.npmmirror.com/@tailwindcss/typography/-/typography-0.5.16.tgz", - "integrity": "sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==", - "requires": { - "lodash.castarray": "^4.4.0", - "lodash.isplainobject": "^4.0.6", - "lodash.merge": "^4.6.2", - "postcss-selector-parser": "6.0.10" - }, - "dependencies": { - "postcss-selector-parser": { - "version": "6.0.10", - "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz", - "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==", - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - } - } - }, - "@ungap/structured-clone": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", - "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", - "dev": true - }, - "@vitejs/plugin-vue": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.6.2.tgz", - "integrity": "sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==", - "dev": true, - "requires": {} - }, - "@vue/compiler-core": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.17.tgz", - "integrity": "sha512-Xe+AittLbAyV0pabcN7cP7/BenRBNcteM4aSDCtRvGw0d9OL+HG1u/XHLY/kt1q4fyMeZYXyIYrsHuPSiDPosA==", - "requires": { - "@babel/parser": "^7.27.5", - "@vue/shared": "3.5.17", - "entities": "^4.5.0", - "estree-walker": "^2.0.2", - "source-map-js": "^1.2.1" - } - }, - "@vue/compiler-dom": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.17.tgz", - "integrity": "sha512-+2UgfLKoaNLhgfhV5Ihnk6wB4ljyW1/7wUIog2puUqajiC29Lp5R/IKDdkebh9jTbTogTbsgB+OY9cEWzG95JQ==", - "requires": { - "@vue/compiler-core": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "@vue/compiler-sfc": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.17.tgz", - "integrity": "sha512-rQQxbRJMgTqwRugtjw0cnyQv9cP4/4BxWfTdRBkqsTfLOHWykLzbOc3C4GGzAmdMDxhzU/1Ija5bTjMVrddqww==", - "requires": { - "@babel/parser": "^7.27.5", - "@vue/compiler-core": "3.5.17", - "@vue/compiler-dom": "3.5.17", - "@vue/compiler-ssr": "3.5.17", - "@vue/shared": "3.5.17", - "estree-walker": "^2.0.2", - "magic-string": "^0.30.17", - "postcss": "^8.5.6", - "source-map-js": "^1.2.1" - } - }, - "@vue/compiler-ssr": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.17.tgz", - "integrity": "sha512-hkDbA0Q20ZzGgpj5uZjb9rBzQtIHLS78mMilwrlpWk2Ep37DYntUz0PonQ6kr113vfOEdM+zTBuJDaceNIW0tQ==", - "requires": { - "@vue/compiler-dom": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "@vue/devtools-api": { - "version": "6.6.4", - "resolved": "https://registry.npmmirror.com/@vue/devtools-api/-/devtools-api-6.6.4.tgz", - "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==" - }, - "@vue/eslint-config-prettier": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/@vue/eslint-config-prettier/-/eslint-config-prettier-8.0.0.tgz", - "integrity": "sha512-55dPqtC4PM/yBjhAr+yEw6+7KzzdkBuLmnhBrDfp4I48+wy+Giqqj9yUr5T2uD/BkBROjjmqnLZmXRdOx/VtQg==", - "dev": true, - "requires": { - "eslint-config-prettier": "^8.8.0", - "eslint-plugin-prettier": "^5.0.0" - } - }, - "@vue/reactivity": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.17.tgz", - "integrity": "sha512-l/rmw2STIscWi7SNJp708FK4Kofs97zc/5aEPQh4bOsReD/8ICuBcEmS7KGwDj5ODQLYWVN2lNibKJL1z5b+Lw==", - "requires": { - "@vue/shared": "3.5.17" - } - }, - "@vue/runtime-core": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.17.tgz", - "integrity": "sha512-QQLXa20dHg1R0ri4bjKeGFKEkJA7MMBxrKo2G+gJikmumRS7PTD4BOU9FKrDQWMKowz7frJJGqBffYMgQYS96Q==", - "requires": { - "@vue/reactivity": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "@vue/runtime-dom": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.17.tgz", - "integrity": "sha512-8El0M60TcwZ1QMz4/os2MdlQECgGoVHPuLnQBU3m9h3gdNRW9xRmI8iLS4t/22OQlOE6aJvNNlBiCzPHur4H9g==", - "requires": { - "@vue/reactivity": "3.5.17", - "@vue/runtime-core": "3.5.17", - "@vue/shared": "3.5.17", - "csstype": "^3.1.3" - } - }, - "@vue/server-renderer": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.17.tgz", - "integrity": "sha512-BOHhm8HalujY6lmC3DbqF6uXN/K00uWiEeF22LfEsm9Q93XeJ/plHTepGwf6tqFcF7GA5oGSSAAUock3VvzaCA==", - "requires": { - "@vue/compiler-ssr": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "@vue/shared": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.17.tgz", - "integrity": "sha512-CabR+UN630VnsJO/jHWYBC1YVXyMq94KKp6iF5MQgZJs5I8cmjw6oVMO1oDbtBkENSHSSn/UadWlW/OAgdmKrg==" - }, - "acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", - "dev": true - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "ant-design-vue": { - "version": "4.2.6", - "resolved": "https://registry.npmmirror.com/ant-design-vue/-/ant-design-vue-4.2.6.tgz", - "integrity": "sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==", - "requires": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-vue": "^7.0.0", - "@babel/runtime": "^7.10.5", - "@ctrl/tinycolor": "^3.5.0", - "@emotion/hash": "^0.9.0", - "@emotion/unitless": "^0.8.0", - "@simonwep/pickr": "~1.8.0", - "array-tree-filter": "^2.1.0", - "async-validator": "^4.0.0", - "csstype": "^3.1.1", - "dayjs": "^1.10.5", - "dom-align": "^1.12.1", - "dom-scroll-into-view": "^2.0.0", - "lodash": "^4.17.21", - "lodash-es": "^4.17.15", - "resize-observer-polyfill": "^1.5.1", - "scroll-into-view-if-needed": "^2.2.25", - "shallow-equal": "^1.0.0", - "stylis": "^4.1.3", - "throttle-debounce": "^5.0.0", - "vue-types": "^3.0.0", - "warning": "^4.0.0" - }, - "dependencies": { - "@ant-design/icons-vue": { - "version": "7.0.1", - "resolved": "https://registry.npmmirror.com/@ant-design/icons-vue/-/icons-vue-7.0.1.tgz", - "integrity": "sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==", - "requires": { - "@ant-design/colors": "^6.0.0", - "@ant-design/icons-svg": "^4.2.1" - } - } - } - }, - "any-promise": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/any-promise/-/any-promise-1.3.0.tgz", - "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==" - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "5.0.2", - "resolved": "https://registry.npmmirror.com/arg/-/arg-5.0.2.tgz", - "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==" - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-tree-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/array-tree-filter/-/array-tree-filter-2.1.0.tgz", - "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==" - }, - "async-validator": { - "version": "4.2.5", - "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", - "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==" - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "autoprefixer": { - "version": "10.4.21", - "resolved": "https://registry.npmmirror.com/autoprefixer/-/autoprefixer-10.4.21.tgz", - "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==", - "dev": true, - "requires": { - "browserslist": "^4.24.4", - "caniuse-lite": "^1.0.30001702", - "fraction.js": "^4.3.7", - "normalize-range": "^0.1.2", - "picocolors": "^1.1.1", - "postcss-value-parser": "^4.2.0" - } - }, - "axios": { - "version": "1.10.0", - "resolved": "https://registry.npmmirror.com/axios/-/axios-1.10.0.tgz", - "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==", - "requires": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "binary-extensions": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.3.0.tgz", - "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==" - }, - "boolbase": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "requires": { - "fill-range": "^7.1.1" - } - }, - "browserslist": { - "version": "4.25.1", - "resolved": "https://registry.npmmirror.com/browserslist/-/browserslist-4.25.1.tgz", - "integrity": "sha512-KGj0KoOMXLpSNkkEI6Z6mShmQy0bc1I+T7K9N81k4WWMrfz+6fQ6es80B/YLAeRoKvjYE1YSHHOW1qe9xIVzHw==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001726", - "electron-to-chromium": "^1.5.173", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.3" - } - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase-css": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/camelcase-css/-/camelcase-css-2.0.1.tgz", - "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==" - }, - "caniuse-lite": { - "version": "1.0.30001727", - "resolved": "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001727.tgz", - "integrity": "sha512-pB68nIHmbN6L/4C6MH1DokyR3bYqFwjaSs/sWDHGj4CTcFtQUQMuJftVwWkXq7mNWOybD3KhUv3oWHoGxgP14Q==", - "dev": true - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "chokidar": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-4.0.3.tgz", - "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", - "dev": true, - "requires": { - "readdirp": "^4.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" - }, - "compute-scroll-into-view": { - "version": "1.0.20", - "resolved": "https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz", - "integrity": "sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "core-js": { - "version": "3.44.0", - "resolved": "https://registry.npmmirror.com/core-js/-/core-js-3.44.0.tgz", - "integrity": "sha512-aFCtd4l6GvAXwVEh3XbbVqJGHDJt0OZRa+5ePGx3LLwi12WfexqQxcsohb2wgsa/92xtl19Hd66G/L+TaAxDMw==" - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "cssesc": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/cssesc/-/cssesc-3.0.0.tgz", - "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==" - }, - "csstype": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz", - "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" - }, - "dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" - }, - "debug": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", - "dev": true, - "requires": { - "ms": "^2.1.3" - } - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "detect-libc": { - "version": "1.0.3", - "resolved": "https://registry.npmmirror.com/detect-libc/-/detect-libc-1.0.3.tgz", - "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", - "dev": true, - "optional": true - }, - "didyoumean": { - "version": "1.2.2", - "resolved": "https://registry.npmmirror.com/didyoumean/-/didyoumean-1.2.2.tgz", - "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==" - }, - "dlv": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/dlv/-/dlv-1.1.3.tgz", - "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==" - }, - "doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-align": { - "version": "1.12.4", - "resolved": "https://registry.npmmirror.com/dom-align/-/dom-align-1.12.4.tgz", - "integrity": "sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==" - }, - "dom-scroll-into-view": { - "version": "2.0.1", - "resolved": "https://registry.npmmirror.com/dom-scroll-into-view/-/dom-scroll-into-view-2.0.1.tgz", - "integrity": "sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==" - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "electron-to-chromium": { - "version": "1.5.185", - "resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.185.tgz", - "integrity": "sha512-dYOZfUk57hSMPePoIQ1fZWl1Fkj+OshhEVuPacNKWzC1efe56OsHY3l/jCfiAgIICOU3VgOIdoq7ahg7r7n6MQ==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==" - }, - "entities": { - "version": "4.5.0", - "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==" - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "requires": { - "es-errors": "^1.3.0" - } - }, - "es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "requires": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - } - }, - "esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "dev": true, - "requires": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "escalade": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/escalade/-/escalade-3.2.0.tgz", - "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", - "dev": true - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "eslint": { - "version": "8.57.1", - "resolved": "https://registry.npmmirror.com/eslint/-/eslint-8.57.1.tgz", - "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.1", - "@humanwhocodes/config-array": "^0.13.0", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - } - }, - "eslint-config-prettier": { - "version": "8.10.0", - "resolved": "https://registry.npmmirror.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", - "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", - "dev": true, - "requires": {} - }, - "eslint-plugin-prettier": { - "version": "5.5.1", - "resolved": "https://registry.npmmirror.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.5.1.tgz", - "integrity": "sha512-dobTkHT6XaEVOo8IO90Q4DOSxnm3Y151QxPJlM/vKC0bVy+d6cVWQZLlFiuZPP0wS6vZwSKeJgKkcS+KfMBlRw==", - "dev": true, - "requires": { - "prettier-linter-helpers": "^1.0.0", - "synckit": "^0.11.7" - } - }, - "eslint-plugin-vue": { - "version": "9.33.0", - "resolved": "https://registry.npmmirror.com/eslint-plugin-vue/-/eslint-plugin-vue-9.33.0.tgz", - "integrity": "sha512-174lJKuNsuDIlLpjeXc5E2Tss8P44uIimAfGD0b90k0NoirJqpG7stLuU9Vp/9ioTOrQdWVREc4mRd1BD+CvGw==", - "dev": true, - "requires": { - "@eslint-community/eslint-utils": "^4.4.0", - "globals": "^13.24.0", - "natural-compare": "^1.4.0", - "nth-check": "^2.1.1", - "postcss-selector-parser": "^6.0.15", - "semver": "^7.6.3", - "vue-eslint-parser": "^9.4.3", - "xml-name-validator": "^4.0.0" - } - }, - "eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "requires": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - } - }, - "eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true - }, - "espree": { - "version": "9.6.1", - "resolved": "https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "requires": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - } - }, - "esquery": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/esquery/-/esquery-1.6.0.tgz", - "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", - "dev": true, - "requires": { - "estraverse": "^5.1.0" - } - }, - "esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "requires": { - "estraverse": "^5.2.0" - } - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==" - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "fast-glob": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.3.tgz", - "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.8" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "fastq": { - "version": "1.19.1", - "resolved": "https://registry.npmmirror.com/fastq/-/fastq-1.19.1.tgz", - "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", - "requires": { - "reusify": "^1.0.4" - } - }, - "file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "requires": { - "flat-cache": "^3.0.4" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "requires": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - } - }, - "flatted": { - "version": "3.3.3", - "resolved": "https://registry.npmmirror.com/flatted/-/flatted-3.3.3.tgz", - "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", - "dev": true - }, - "follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==" - }, - "foreground-child": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/foreground-child/-/foreground-child-3.3.1.tgz", - "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==", - "requires": { - "cross-spawn": "^7.0.6", - "signal-exit": "^4.0.1" - } - }, - "form-data": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.3.tgz", - "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - } - }, - "fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmmirror.com/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", - "dev": true - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "requires": { - "is-glob": "^4.0.3" - } - }, - "globals": { - "version": "13.24.0", - "resolved": "https://registry.npmmirror.com/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "requires": { - "type-fest": "^0.20.2" - } - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" - }, - "graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" - }, - "has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "requires": { - "has-symbols": "^1.0.3" - } - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "requires": { - "function-bind": "^1.1.2" - } - }, - "highlight.js": { - "version": "11.11.1", - "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.11.1.tgz", - "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==" - }, - "ignore": { - "version": "5.3.2", - "resolved": "https://registry.npmmirror.com/ignore/-/ignore-5.3.2.tgz", - "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", - "dev": true - }, - "immutable": { - "version": "5.1.3", - "resolved": "https://registry.npmmirror.com/immutable/-/immutable-5.1.3.tgz", - "integrity": "sha512-+chQdDfvscSF1SJqv2gn4SRO2ZyS3xL3r7IW/wWEEzrzLisnOlKiQu5ytC/BVNcS15C39WT2Hg/bjKjDMcu+zg==", - "dev": true - }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-core-module": { - "version": "2.16.1", - "resolved": "https://registry.npmmirror.com/is-core-module/-/is-core-module-2.16.1.tgz", - "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", - "requires": { - "hasown": "^2.0.2" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-plain-object": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/is-plain-object/-/is-plain-object-3.0.1.tgz", - "integrity": "sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "jackspeak": { - "version": "3.4.3", - "resolved": "https://registry.npmmirror.com/jackspeak/-/jackspeak-3.4.3.tgz", - "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } - }, - "jiti": { - "version": "1.21.7", - "resolved": "https://registry.npmmirror.com/jiti/-/jiti-1.21.7.tgz", - "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==" - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "requires": { - "json-buffer": "3.0.1" - } - }, - "levn": { - "version": "0.4.1", - "resolved": "https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - } - }, - "lilconfig": { - "version": "3.1.3", - "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz", - "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==" - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==" - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" - }, - "lodash-es": { - "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" - }, - "lodash.castarray": { - "version": "4.4.0", - "resolved": "https://registry.npmmirror.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz", - "integrity": "sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==" - }, - "lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmmirror.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==" - }, - "lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" - }, - "lucide-vue-next": { - "version": "0.294.0", - "resolved": "https://registry.npmmirror.com/lucide-vue-next/-/lucide-vue-next-0.294.0.tgz", - "integrity": "sha512-bcUuGyLJoq9ExyozROMezdaczK2loP3emYb8PvS7HhZ56rUJVOv5hJgTmWfrfr8vJE7J69ImoMyPTwmUHF198w==", - "requires": {} - }, - "magic-string": { - "version": "0.30.17", - "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz", - "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==", - "requires": { - "@jridgewell/sourcemap-codec": "^1.5.0" - } - }, - "marked": { - "version": "9.1.6", - "resolved": "https://registry.npmmirror.com/marked/-/marked-9.1.6.tgz", - "integrity": "sha512-jcByLnIFkd5gSXZmjNvS1TlmRhCXZjIzHYlaGkPlLIekG55JDR2Z4va9tZwCiP+/RDERiNhMOFu01xd6O5ct1Q==" - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmmirror.com/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==" - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "mz": { - "version": "2.7.0", - "resolved": "https://registry.npmmirror.com/mz/-/mz-2.7.0.tgz", - "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", - "requires": { - "any-promise": "^1.0.0", - "object-assign": "^4.0.1", - "thenify-all": "^1.0.0" - } - }, - "nanoid": { - "version": "3.3.11", - "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz", - "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==" - }, - "nanopop": { - "version": "2.4.2", - "resolved": "https://registry.npmmirror.com/nanopop/-/nanopop-2.4.2.tgz", - "integrity": "sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==" - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node-addon-api": { - "version": "7.1.1", - "resolved": "https://registry.npmmirror.com/node-addon-api/-/node-addon-api-7.1.1.tgz", - "integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==", - "dev": true, - "optional": true - }, - "node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmmirror.com/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", - "dev": true - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" - }, - "normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmmirror.com/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "dev": true - }, - "nth-check": { - "version": "2.1.1", - "resolved": "https://registry.npmmirror.com/nth-check/-/nth-check-2.1.1.tgz", - "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==", - "dev": true, - "requires": { - "boolbase": "^1.0.0" - } - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" - }, - "object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmmirror.com/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optionator": { - "version": "0.9.4", - "resolved": "https://registry.npmmirror.com/optionator/-/optionator-0.9.4.tgz", - "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", - "dev": true, - "requires": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.5" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "package-json-from-dist": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", - "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==" - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmmirror.com/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" - }, - "path-scurry": { - "version": "1.11.1", - "resolved": "https://registry.npmmirror.com/path-scurry/-/path-scurry-1.11.1.tgz", - "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", - "requires": { - "lru-cache": "^10.2.0", - "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" - } - }, - "picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmmirror.com/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" - }, - "pinia": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/pinia/-/pinia-2.3.1.tgz", - "integrity": "sha512-khUlZSwt9xXCaTbbxFYBKDc/bWAGWJjOgvxETwkTN7KRm66EeT1ZdZj6i2ceh9sP2Pzqsbc704r2yngBrxBVug==", - "requires": { - "@vue/devtools-api": "^6.6.3", - "vue-demi": "^0.14.10" - } - }, - "pirates": { - "version": "4.0.7", - "resolved": "https://registry.npmmirror.com/pirates/-/pirates-4.0.7.tgz", - "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==" - }, - "postcss": { - "version": "8.5.6", - "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.6.tgz", - "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", - "requires": { - "nanoid": "^3.3.11", - "picocolors": "^1.1.1", - "source-map-js": "^1.2.1" - } - }, - "postcss-import": { - "version": "15.1.0", - "resolved": "https://registry.npmmirror.com/postcss-import/-/postcss-import-15.1.0.tgz", - "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", - "requires": { - "postcss-value-parser": "^4.0.0", - "read-cache": "^1.0.0", - "resolve": "^1.1.7" - } - }, - "postcss-js": { - "version": "4.0.1", - "resolved": "https://registry.npmmirror.com/postcss-js/-/postcss-js-4.0.1.tgz", - "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", - "requires": { - "camelcase-css": "^2.0.1" - } - }, - "postcss-load-config": { - "version": "4.0.2", - "resolved": "https://registry.npmmirror.com/postcss-load-config/-/postcss-load-config-4.0.2.tgz", - "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", - "requires": { - "lilconfig": "^3.0.0", - "yaml": "^2.3.4" - } - }, - "postcss-nested": { - "version": "6.2.0", - "resolved": "https://registry.npmmirror.com/postcss-nested/-/postcss-nested-6.2.0.tgz", - "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", - "requires": { - "postcss-selector-parser": "^6.1.1" - } - }, - "postcss-selector-parser": { - "version": "6.1.2", - "resolved": "https://registry.npmmirror.com/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", - "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", - "requires": { - "cssesc": "^3.0.0", - "util-deprecate": "^1.0.2" - } - }, - "postcss-value-parser": { - "version": "4.2.0", - "resolved": "https://registry.npmmirror.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", - "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==" - }, - "prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true - }, - "prettier": { - "version": "3.6.2", - "resolved": "https://registry.npmmirror.com/prettier/-/prettier-3.6.2.tgz", - "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", - "dev": true - }, - "prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "requires": { - "fast-diff": "^1.1.2" - } - }, - "proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" - }, - "read-cache": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/read-cache/-/read-cache-1.0.0.tgz", - "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", - "requires": { - "pify": "^2.3.0" - } - }, - "readdirp": { - "version": "4.1.2", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-4.1.2.tgz", - "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", - "dev": true - }, - "resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==" - }, - "resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmmirror.com/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", - "requires": { - "is-core-module": "^2.16.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "reusify": { - "version": "1.1.0", - "resolved": "https://registry.npmmirror.com/reusify/-/reusify-1.1.0.tgz", - "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==" - }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "rollup": { - "version": "3.29.5", - "resolved": "https://registry.npmmirror.com/rollup/-/rollup-3.29.5.tgz", - "integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "requires": { - "queue-microtask": "^1.2.2" - } - }, - "sass": { - "version": "1.89.2", - "resolved": "https://registry.npmmirror.com/sass/-/sass-1.89.2.tgz", - "integrity": "sha512-xCmtksBKd/jdJ9Bt9p7nPKiuqrlBMBuuGkQlkhZjjQk3Ty48lv93k5Dq6OPkKt4XwxDJ7tvlfrTa1MPA9bf+QA==", - "dev": true, - "requires": { - "@parcel/watcher": "^2.4.1", - "chokidar": "^4.0.0", - "immutable": "^5.0.2", - "source-map-js": ">=0.6.2 <2.0.0" - } - }, - "scroll-into-view-if-needed": { - "version": "2.2.31", - "resolved": "https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz", - "integrity": "sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==", - "requires": { - "compute-scroll-into-view": "^1.0.20" - } - }, - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmmirror.com/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true - }, - "shallow-equal": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/shallow-equal/-/shallow-equal-1.2.1.tgz", - "integrity": "sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==" - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" - }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmmirror.com/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" - }, - "source-map-js": { - "version": "1.2.1", - "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz", - "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==" - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - } - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "stylis": { - "version": "4.3.6", - "resolved": "https://registry.npmmirror.com/stylis/-/stylis-4.3.6.tgz", - "integrity": "sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==" - }, - "sucrase": { - "version": "3.35.0", - "resolved": "https://registry.npmmirror.com/sucrase/-/sucrase-3.35.0.tgz", - "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", - "requires": { - "@jridgewell/gen-mapping": "^0.3.2", - "commander": "^4.0.0", - "glob": "^10.3.10", - "lines-and-columns": "^1.1.6", - "mz": "^2.7.0", - "pirates": "^4.0.1", - "ts-interface-checker": "^0.1.9" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "10.4.5", - "resolved": "https://registry.npmmirror.com/glob/-/glob-10.4.5.tgz", - "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^3.1.2", - "minimatch": "^9.0.4", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^1.11.1" - } - }, - "minimatch": { - "version": "9.0.5", - "resolved": "https://registry.npmmirror.com/minimatch/-/minimatch-9.0.5.tgz", - "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", - "requires": { - "brace-expansion": "^2.0.1" - } - } - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmmirror.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" - }, - "synckit": { - "version": "0.11.8", - "resolved": "https://registry.npmmirror.com/synckit/-/synckit-0.11.8.tgz", - "integrity": "sha512-+XZ+r1XGIJGeQk3VvXhT6xx/VpbHsRzsTkGgF6E5RX9TTXD0118l87puaEBZ566FhqblC6U0d4XnubznJDm30A==", - "dev": true, - "requires": { - "@pkgr/core": "^0.2.4" - } - }, - "tailwindcss": { - "version": "3.4.17", - "resolved": "https://registry.npmmirror.com/tailwindcss/-/tailwindcss-3.4.17.tgz", - "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", - "requires": { - "@alloc/quick-lru": "^5.2.0", - "arg": "^5.0.2", - "chokidar": "^3.6.0", - "didyoumean": "^1.2.2", - "dlv": "^1.1.3", - "fast-glob": "^3.3.2", - "glob-parent": "^6.0.2", - "is-glob": "^4.0.3", - "jiti": "^1.21.6", - "lilconfig": "^3.1.3", - "micromatch": "^4.0.8", - "normalize-path": "^3.0.0", - "object-hash": "^3.0.0", - "picocolors": "^1.1.1", - "postcss": "^8.4.47", - "postcss-import": "^15.1.0", - "postcss-js": "^4.0.1", - "postcss-load-config": "^4.0.2", - "postcss-nested": "^6.2.0", - "postcss-selector-parser": "^6.1.2", - "resolve": "^1.22.8", - "sucrase": "^3.35.0" - }, - "dependencies": { - "chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "dependencies": { - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "requires": { - "is-glob": "^4.0.1" - } - } - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "requires": { - "picomatch": "^2.2.1" - } - } - } - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "thenify": { - "version": "3.3.1", - "resolved": "https://registry.npmmirror.com/thenify/-/thenify-3.3.1.tgz", - "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", - "requires": { - "any-promise": "^1.0.0" - } - }, - "thenify-all": { - "version": "1.6.0", - "resolved": "https://registry.npmmirror.com/thenify-all/-/thenify-all-1.6.0.tgz", - "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", - "requires": { - "thenify": ">= 3.1.0 < 4" - } - }, - "throttle-debounce": { - "version": "5.0.2", - "resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.2.tgz", - "integrity": "sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==" - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { - "is-number": "^7.0.0" - } - }, - "ts-interface-checker": { - "version": "0.1.13", - "resolved": "https://registry.npmmirror.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", - "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==" - }, - "type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "requires": { - "prelude-ls": "^1.2.1" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - }, - "update-browserslist-db": { - "version": "1.1.3", - "resolved": "https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", - "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", - "dev": true, - "requires": { - "escalade": "^3.2.0", - "picocolors": "^1.1.1" - } - }, - "uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "vite": { - "version": "4.5.14", - "resolved": "https://registry.npmmirror.com/vite/-/vite-4.5.14.tgz", - "integrity": "sha512-+v57oAaoYNnO3hIu5Z/tJRZjq5aHM2zDve9YZ8HngVHbhk66RStobhb1sqPMIPEleV6cNKYK4eGrAbE9Ulbl2g==", - "dev": true, - "requires": { - "esbuild": "^0.18.10", - "fsevents": "~2.3.2", - "postcss": "^8.4.27", - "rollup": "^3.27.1" - } - }, - "vue": { - "version": "3.5.17", - "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.17.tgz", - "integrity": "sha512-LbHV3xPN9BeljML+Xctq4lbz2lVHCR6DtbpTf5XIO6gugpXUN49j2QQPcMj086r9+AkJ0FfUT8xjulKKBkkr9g==", - "requires": { - "@vue/compiler-dom": "3.5.17", - "@vue/compiler-sfc": "3.5.17", - "@vue/runtime-dom": "3.5.17", - "@vue/server-renderer": "3.5.17", - "@vue/shared": "3.5.17" - } - }, - "vue-demi": { - "version": "0.14.10", - "resolved": "https://registry.npmmirror.com/vue-demi/-/vue-demi-0.14.10.tgz", - "integrity": "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==", - "requires": {} - }, - "vue-eslint-parser": { - "version": "9.4.3", - "resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-9.4.3.tgz", - "integrity": "sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==", - "dev": true, - "requires": { - "debug": "^4.3.4", - "eslint-scope": "^7.1.1", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.3.1", - "esquery": "^1.4.0", - "lodash": "^4.17.21", - "semver": "^7.3.6" - } - }, - "vue-router": { - "version": "4.5.1", - "resolved": "https://registry.npmmirror.com/vue-router/-/vue-router-4.5.1.tgz", - "integrity": "sha512-ogAF3P97NPm8fJsE4by9dwSYtDwXIY1nFY9T6DyQnGHd1E2Da94w9JIolpe42LJGIl0DwOHBi8TcRPlPGwbTtw==", - "requires": { - "@vue/devtools-api": "^6.6.4" - } - }, - "vue-types": { - "version": "3.0.2", - "resolved": "https://registry.npmmirror.com/vue-types/-/vue-types-3.0.2.tgz", - "integrity": "sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==", - "requires": { - "is-plain-object": "3.0.1" - } - }, - "warning": { - "version": "4.0.3", - "resolved": "https://registry.npmmirror.com/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "requires": { - "loose-envify": "^1.0.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmmirror.com/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "6.1.0", - "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-6.1.0.tgz", - "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==" - }, - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==" - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "requires": { - "ansi-regex": "^6.0.1" - } - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmmirror.com/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true - }, - "yaml": { - "version": "2.8.0", - "resolved": "https://registry.npmmirror.com/yaml/-/yaml-2.8.0.tgz", - "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==" - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } - } -} diff --git a/web-bak/package.json b/web-bak/package.json deleted file mode 100644 index c605c62..0000000 --- a/web-bak/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "emotion-museum-web", - "version": "1.0.0", - "description": "情绪博物馆前端应用", - "scripts": { - "dev": "vite --mode development", - "dev:test": "vite --mode test", - "build": "vite build --mode production", - "build:test": "vite build --mode test", - "build:dev": "vite build --mode development", - "preview": "vite preview", - "preview:test": "vite preview --mode test", - "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore" - }, - "dependencies": { - "vue": "^3.3.0", - "vue-router": "^4.2.0", - "pinia": "^2.1.0", - "ant-design-vue": "^4.0.0", - "@ant-design/icons-vue": "^6.1.0", - "axios": "^1.5.0", - "dayjs": "^1.11.0", - "marked": "^9.1.0", - "highlight.js": "^11.8.0" - }, - "devDependencies": { - "@vitejs/plugin-vue": "^4.4.0", - "vite": "^4.5.0", - "eslint": "^8.50.0", - "eslint-plugin-vue": "^9.17.0", - "@vue/eslint-config-prettier": "^8.0.0", - "prettier": "^3.0.0", - "sass": "^1.69.0" - } -} diff --git a/web-bak/src/App.vue b/web-bak/src/App.vue deleted file mode 100644 index 0299cf7..0000000 --- a/web-bak/src/App.vue +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/web-bak/src/api/captcha.js b/web-bak/src/api/captcha.js deleted file mode 100644 index b1c09e6..0000000 --- a/web-bak/src/api/captcha.js +++ /dev/null @@ -1,30 +0,0 @@ -import request from './request' - -/** - * 验证码相关API - */ -export const captchaApi = { - // 生成图形验证码 - generate(type = 'arithmetic') { - return request.get('/captcha/generate', { - params: { type } - }) - }, - - // 验证图形验证码 - verify(captchaId, captcha) { - return request.post('/captcha/verify', null, { - params: { captchaId, captcha } - }) - }, - - // 生成滑块验证码 - generateSlider() { - return request.get('/captcha/slider/generate') - }, - - // 验证滑块验证码 - verifySlider(data) { - return request.post('/captcha/slider/verify', data) - } -} diff --git a/web-bak/src/api/chat.js b/web-bak/src/api/chat.js deleted file mode 100644 index 7aec8b7..0000000 --- a/web-bak/src/api/chat.js +++ /dev/null @@ -1,121 +0,0 @@ -import request from './request' - -/** - * AI聊天相关API - * 对应后端 AiChatController (/api/ai/chat) - */ -export const chatApi = { - // 创建会话 - createConversation(data) { - return request.post('/ai/chat/conversation/create', data) - }, - - // 发送聊天消息 - sendMessage(data) { - return request.post('/ai/chat/send', data) - }, - - // 流式聊天 - streamChat(data) { - return request.post('/ai/chat/stream', data) - }, - - // 情绪分析 - analyzeEmotion(data) { - return request.post('/ai/chat/emotion/analyze', data) - }, - - // 获取用户会话列表 - getConversations(userId, pageNum = 1, pageSize = 20) { - return request.get(`/ai/chat/conversations/${userId}`, { - params: { pageNum, pageSize } - }) - }, - - // 获取会话详情 - getConversation(conversationId) { - return request.get(`/ai/chat/conversation/${conversationId}`) - }, - - // 获取会话消息列表 - getMessages(conversationId, pageNum = 1, pageSize = 50) { - return request.get(`/ai/chat/conversation/${conversationId}/messages`, { - params: { pageNum, pageSize } - }) - }, - - // 结束会话 - endConversation(conversationId) { - return request.put(`/ai/chat/conversation/${conversationId}/end`) - }, - - // 删除会话 - deleteConversation(conversationId) { - return request.delete(`/ai/chat/conversation/${conversationId}`) - }, - - // 标记消息已读 - markMessageAsRead(messageId) { - return request.put(`/ai/chat/message/${messageId}/read`) - }, - - // 标记会话所有消息已读 - markConversationAsRead(conversationId) { - return request.put(`/ai/chat/conversation/${conversationId}/read`) - }, - - // 健康检查 - healthCheck() { - return request.get('/ai/chat/health') - }, - - // 获取AI服务信息 - getServiceInfo() { - return request.get('/ai/chat/info') - } -} - -/** - * 访客聊天相关API - * 对应后端 GuestChatController (/api/ai/guest) - */ -export const guestChatApi = { - // 访客聊天 - guestChat(data) { - return request.post('/ai/guest/chat', data) - }, - - // 获取访客会话列表 - getGuestConversations(pageNum = 1, pageSize = 20) { - return request.get('/ai/guest/conversations', { - params: { pageNum, pageSize } - }) - }, - - // 获取访客会话消息 - getGuestConversationMessages(conversationId, pageNum = 1, pageSize = 50) { - return request.get(`/ai/guest/conversation/${conversationId}/messages`, { - params: { pageNum, pageSize } - }) - }, - - // 结束访客会话 - endGuestConversation(conversationId) { - return request.post(`/ai/guest/conversation/${conversationId}/end`) - }, - - // 获取访客用户信息 - getGuestUserInfo() { - return request.get('/ai/guest/user/info') - }, - - // 访客情绪分析 - analyzeGuestEmotion(data) { - return request.post('/ai/guest/emotion/analyze', data) - }, - - // 访客服务健康检查 - guestHealthCheck() { - return request.get('/ai/guest/health') - } -} diff --git a/web-bak/src/api/oauth.js b/web-bak/src/api/oauth.js deleted file mode 100644 index c083812..0000000 --- a/web-bak/src/api/oauth.js +++ /dev/null @@ -1,23 +0,0 @@ -import request from './request' - -/** - * 第三方登录相关API - */ -export const oauthApi = { - // 获取第三方登录授权URL - getAuthUrl(platform) { - return request.get(`/oauth/auth-url/${platform}`) - }, - - // 第三方登录 - login(data) { - return request.post('/oauth/login', data) - }, - - // 获取第三方用户信息 - getUserInfo(platform, code, state) { - return request.get(`/oauth/user-info/${platform}`, { - params: { code, state } - }) - } -} diff --git a/web-bak/src/api/request.js b/web-bak/src/api/request.js deleted file mode 100644 index 7a60df6..0000000 --- a/web-bak/src/api/request.js +++ /dev/null @@ -1,116 +0,0 @@ -import axios from 'axios' -import { message } from 'ant-design-vue' -import { ENV_CONFIG, debugLog } from '@/config/env' -import { AuthUtils } from '@/utils/auth' - -// 创建axios实例 -const request = axios.create({ - baseURL: ENV_CONFIG.API_BASE_URL, - timeout: ENV_CONFIG.API_TIMEOUT, - headers: { - 'Content-Type': 'application/json' - } -}) - -// 打印环境信息 -if (ENV_CONFIG.DEBUG_MODE) { - console.log('=== API配置信息 ===') - console.log('Base URL:', ENV_CONFIG.API_BASE_URL) - console.log('Timeout:', ENV_CONFIG.API_TIMEOUT) - console.log('Environment:', ENV_CONFIG.APP_ENV) - console.log('================') -} - -// 请求拦截器 -request.interceptors.request.use( - async (config) => { - // 自动刷新token(如果需要) - const token = await AuthUtils.autoRefreshToken() - if (token) { - config.headers.Authorization = `Bearer ${token}` - } - - // 使用环境配置的调试日志 - debugLog('发送请求:', config.method?.toUpperCase(), config.url, config.data || config.params) - return config - }, - (error) => { - debugLog('请求错误:', error) - return Promise.reject(error) - } -) - -// 响应拦截器 -request.interceptors.response.use( - (response) => { - const { data } = response - debugLog('收到响应:', response.config.url, data) - - // 统一处理响应格式 - if (data.code === 200) { - return { - success: true, - data: data.data, - message: data.message - } - } else { - // 业务错误 - const errorMsg = data.message || '请求失败' - message.error(errorMsg) - return { - success: false, - data: null, - message: errorMsg - } - } - }, - (error) => { - debugLog('响应错误:', error) - - let errorMsg = '网络错误' - - if (error.response) { - const { status, data } = error.response - - switch (status) { - case 400: - errorMsg = data.message || '请求参数错误' - break - case 401: - errorMsg = '未授权,请重新登录' - // 处理登录过期 - AuthUtils.clearTokens() - // 跳转到登录页 - if (window.location.pathname !== '/login') { - window.location.href = '/login' - } - break - case 403: - errorMsg = '拒绝访问' - break - case 404: - errorMsg = '请求的资源不存在' - break - case 500: - errorMsg = '服务器内部错误' - break - default: - errorMsg = data.message || `请求失败 (${status})` - } - } else if (error.request) { - errorMsg = '网络连接失败,请检查网络' - } else { - errorMsg = error.message || '请求配置错误' - } - - message.error(errorMsg) - - return { - success: false, - data: null, - message: errorMsg - } - } -) - -export default request diff --git a/web-bak/src/api/test.js b/web-bak/src/api/test.js deleted file mode 100644 index fc2bdd4..0000000 --- a/web-bak/src/api/test.js +++ /dev/null @@ -1,302 +0,0 @@ -import { userApi } from './user' -import { chatApi, guestChatApi } from './chat' -import { debugLog } from '@/config/env' - -/** - * API测试工具 - * 用于测试前后端接口连通性 - */ -export const apiTest = { - // 测试用户服务 - async testUserService() { - debugLog('开始测试用户服务...') - - try { - // 测试检查账号接口 - const accountResult = await userApi.checkAccount('test_user') - debugLog('检查账号接口测试:', accountResult) - - return { - success: true, - message: '用户服务连接正常', - data: accountResult - } - } catch (error) { - debugLog('用户服务测试失败:', error) - return { - success: false, - message: '用户服务连接失败', - error: error.message - } - } - }, - - // 测试AI服务 - async testAiService() { - debugLog('开始测试AI服务...') - - try { - // 测试健康检查接口 - const healthResult = await chatApi.healthCheck() - debugLog('AI服务健康检查:', healthResult) - - // 测试服务信息接口 - const infoResult = await chatApi.getServiceInfo() - debugLog('AI服务信息:', infoResult) - - return { - success: true, - message: 'AI服务连接正常', - data: { - health: healthResult, - info: infoResult - } - } - } catch (error) { - debugLog('AI服务测试失败:', error) - return { - success: false, - message: 'AI服务连接失败', - error: error.message - } - } - }, - - // 测试所有服务 - async testAllServices() { - debugLog('开始测试所有服务...') - - const results = { - user: await this.testUserService(), - ai: await this.testAiService() - } - - const allSuccess = Object.values(results).every(result => result.success) - - debugLog('所有服务测试结果:', results) - - return { - success: allSuccess, - message: allSuccess ? '所有服务连接正常' : '部分服务连接失败', - results - } - }, - - // 测试用户注册流程 - async testUserRegister() { - debugLog('开始测试用户注册流程...') - - const testUser = { - account: `test_${Date.now()}`, - password: 'Test123456', - email: `test_${Date.now()}@example.com`, - phone: `138${Date.now().toString().slice(-8)}`, - nickname: '测试用户' - } - - try { - const result = await userApi.register(testUser) - debugLog('用户注册测试成功:', result) - - return { - success: true, - message: '用户注册流程正常', - data: result - } - } catch (error) { - debugLog('用户注册测试失败:', error) - return { - success: false, - message: '用户注册流程失败', - error: error.message - } - } - }, - - // 测试AI对话流程 - async testAiChat() { - debugLog('开始测试AI对话流程...') - - try { - // 1. 创建会话 - const conversationData = { - userId: 'test_user', - title: '测试会话', - type: 'chat' - } - - const createResult = await chatApi.createConversation(conversationData) - debugLog('创建会话测试:', createResult) - - if (!createResult.success) { - throw new Error('创建会话失败') - } - - // 2. 发送消息 - const messageData = { - userId: 'test_user', - conversationId: createResult.data.conversationId, - message: '你好,这是一条测试消息' - } - - const chatResult = await chatApi.sendMessage(messageData) - debugLog('发送消息测试:', chatResult) - - return { - success: true, - message: 'AI对话流程正常', - data: { - conversation: createResult.data, - chat: chatResult.data - } - } - } catch (error) { - debugLog('AI对话测试失败:', error) - return { - success: false, - message: 'AI对话流程失败', - error: error.message - } - } - }, - - // 测试情绪分析 - async testEmotionAnalysis() { - debugLog('开始测试情绪分析...') - - try { - const analysisData = { - userId: 'test_user', - text: '我今天心情很好,阳光明媚,感觉充满了希望和活力。' - } - - const result = await chatApi.analyzeEmotion(analysisData) - debugLog('情绪分析测试:', result) - - return { - success: true, - message: '情绪分析功能正常', - data: result.data - } - } catch (error) { - debugLog('情绪分析测试失败:', error) - return { - success: false, - message: '情绪分析功能失败', - error: error.message - } - } - }, - - // 测试访客聊天功能 - async testGuestChat() { - debugLog('开始测试访客聊天功能...') - - try { - // 1. 获取访客用户信息 - const userInfoResult = await guestChatApi.getGuestUserInfo() - debugLog('获取访客用户信息:', userInfoResult) - - if (!userInfoResult.success) { - throw new Error('获取访客用户信息失败') - } - - // 2. 发送访客聊天消息 - const chatData = { - message: '你好,我是访客用户,这是一条测试消息。', - title: '访客测试会话' - } - - const chatResult = await guestChatApi.guestChat(chatData) - debugLog('访客聊天测试:', chatResult) - - if (!chatResult.success) { - throw new Error('访客聊天失败') - } - - // 3. 获取访客会话列表 - const conversationsResult = await guestChatApi.getGuestConversations() - debugLog('访客会话列表:', conversationsResult) - - return { - success: true, - message: '访客聊天功能正常', - data: { - userInfo: userInfoResult.data, - chat: chatResult.data, - conversations: conversationsResult.data - } - } - } catch (error) { - debugLog('访客聊天测试失败:', error) - return { - success: false, - message: '访客聊天功能失败', - error: error.message - } - } - }, - - // 测试访客情绪分析 - async testGuestEmotionAnalysis() { - debugLog('开始测试访客情绪分析...') - - try { - const analysisData = { - text: '我感到有些焦虑和不安,不知道该怎么办。' - } - - const result = await guestChatApi.analyzeGuestEmotion(analysisData) - debugLog('访客情绪分析测试:', result) - - return { - success: true, - message: '访客情绪分析功能正常', - data: result.data - } - } catch (error) { - debugLog('访客情绪分析测试失败:', error) - return { - success: false, - message: '访客情绪分析功能失败', - error: error.message - } - } - }, - - // 测试访客服务健康检查 - async testGuestHealthCheck() { - debugLog('开始测试访客服务健康检查...') - - try { - const result = await guestChatApi.guestHealthCheck() - debugLog('访客服务健康检查:', result) - - return { - success: true, - message: '访客服务健康检查正常', - data: result.data - } - } catch (error) { - debugLog('访客服务健康检查失败:', error) - return { - success: false, - message: '访客服务健康检查失败', - error: error.message - } - } - } -} - -// 导出单个测试函数,方便在控制台调用 -export const { - testUserService, - testAiService, - testAllServices, - testUserRegister, - testAiChat, - testEmotionAnalysis, - testGuestChat, - testGuestEmotionAnalysis, - testGuestHealthCheck -} = apiTest diff --git a/web-bak/src/api/user.js b/web-bak/src/api/user.js deleted file mode 100644 index 84955d9..0000000 --- a/web-bak/src/api/user.js +++ /dev/null @@ -1,65 +0,0 @@ -import request from './request' - -/** - * 用户相关API - * 对应后端 UserController (/user) - */ -export const userApi = { - // 用户注册 - register(data) { - return request.post('/user/register', data) - }, - - // 用户登录 - login(data) { - return request.post('/user/login', data) - }, - - // 刷新Token - refreshToken(refreshToken) { - return request.post('/user/refresh', null, { - params: { refreshToken } - }) - }, - - // 获取用户信息 - getUserInfo(userId) { - return request.get(`/user/info/${userId}`) - }, - - // 更新用户信息 - updateUserInfo(userId, data) { - return request.put(`/user/info/${userId}`, data) - }, - - // 检查账号是否存在 - checkAccount(account) { - return request.get('/user/check/account', { - params: { account } - }) - }, - - // 检查邮箱是否存在 - checkEmail(email) { - return request.get('/user/check/email', { - params: { email } - }) - }, - - // 检查手机号是否存在 - checkPhone(phone) { - return request.get('/user/check/phone', { - params: { phone } - }) - }, - - // 更新最后活跃时间 - updateLastActiveTime(userId) { - return request.post(`/user/active/${userId}`) - }, - - // 用户登出 - logout(userId) { - return request.post(`/user/logout/${userId}`) - } -} diff --git a/web-bak/src/components/ApiTest.vue b/web-bak/src/components/ApiTest.vue deleted file mode 100644 index 9b2a61a..0000000 --- a/web-bak/src/components/ApiTest.vue +++ /dev/null @@ -1,375 +0,0 @@ - - - - - diff --git a/web-bak/src/components/CaptchaInput.vue b/web-bak/src/components/CaptchaInput.vue deleted file mode 100644 index a12cbdf..0000000 --- a/web-bak/src/components/CaptchaInput.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - - diff --git a/web-bak/src/components/ConversationDetail.vue b/web-bak/src/components/ConversationDetail.vue deleted file mode 100644 index 8f34275..0000000 --- a/web-bak/src/components/ConversationDetail.vue +++ /dev/null @@ -1,357 +0,0 @@ - - - - - diff --git a/web-bak/src/components/EmotionAnalysis.vue b/web-bak/src/components/EmotionAnalysis.vue deleted file mode 100644 index 9f3337a..0000000 --- a/web-bak/src/components/EmotionAnalysis.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - diff --git a/web-bak/src/components/EmotionAnalysisSimple.vue b/web-bak/src/components/EmotionAnalysisSimple.vue deleted file mode 100644 index 6a7e869..0000000 --- a/web-bak/src/components/EmotionAnalysisSimple.vue +++ /dev/null @@ -1,296 +0,0 @@ - - - - - diff --git a/web-bak/src/components/EmotionTrends.vue b/web-bak/src/components/EmotionTrends.vue deleted file mode 100644 index 6f2324b..0000000 --- a/web-bak/src/components/EmotionTrends.vue +++ /dev/null @@ -1,665 +0,0 @@ - - - - - diff --git a/web-bak/src/components/EnvInfo.vue b/web-bak/src/components/EnvInfo.vue deleted file mode 100644 index 66a5c76..0000000 --- a/web-bak/src/components/EnvInfo.vue +++ /dev/null @@ -1,127 +0,0 @@ - - - - - diff --git a/web-bak/src/components/HistoryPanel.vue b/web-bak/src/components/HistoryPanel.vue deleted file mode 100644 index 7cda96e..0000000 --- a/web-bak/src/components/HistoryPanel.vue +++ /dev/null @@ -1,492 +0,0 @@ - - - - - diff --git a/web-bak/src/components/SliderCaptcha.vue b/web-bak/src/components/SliderCaptcha.vue deleted file mode 100644 index 881b342..0000000 --- a/web-bak/src/components/SliderCaptcha.vue +++ /dev/null @@ -1,350 +0,0 @@ - - - - - diff --git a/web-bak/src/components/SocialLogin.vue b/web-bak/src/components/SocialLogin.vue deleted file mode 100644 index 4ce13de..0000000 --- a/web-bak/src/components/SocialLogin.vue +++ /dev/null @@ -1,261 +0,0 @@ - - - - - diff --git a/web-bak/src/config/env.js b/web-bak/src/config/env.js deleted file mode 100644 index 447c4b8..0000000 --- a/web-bak/src/config/env.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * 环境配置管理 - */ - -// 获取环境变量 -const getEnvConfig = () => { - return { - // 应用基础信息 - APP_TITLE: import.meta.env.VITE_APP_TITLE || '情绪博物馆', - APP_VERSION: import.meta.env.VITE_APP_VERSION || '1.0.0', - APP_ENV: import.meta.env.VITE_APP_ENV || 'development', - - // API配置 - API_BASE_URL: import.meta.env.VITE_API_BASE_URL || '/api', - API_TARGET: import.meta.env.VITE_API_TARGET || 'http://localhost:19000', - API_TIMEOUT: parseInt(import.meta.env.VITE_API_TIMEOUT) || 30000, - - // 服务端口配置 - GATEWAY_PORT: parseInt(import.meta.env.VITE_GATEWAY_PORT) || 19000, - USER_PORT: parseInt(import.meta.env.VITE_USER_PORT) || 19001, - AI_PORT: parseInt(import.meta.env.VITE_AI_PORT) || 19002, - - // 功能开关 - DEBUG_MODE: import.meta.env.VITE_DEBUG === 'true', - MOCK_DATA: import.meta.env.VITE_MOCK_DATA === 'true', - - // 环境判断 - isDevelopment: import.meta.env.MODE === 'development', - isTest: import.meta.env.MODE === 'test', - isProduction: import.meta.env.MODE === 'production' - } -} - -// 导出配置 -export const ENV_CONFIG = getEnvConfig() - -// 环境检查函数 -export const isDev = () => ENV_CONFIG.isDevelopment -export const isTest = () => ENV_CONFIG.isTest -export const isProd = () => ENV_CONFIG.isProduction - -// 调试日志函数 -export const debugLog = (...args) => { - if (ENV_CONFIG.DEBUG_MODE) { - console.log('[DEBUG]', ...args) - } -} - -// 获取完整的API URL -export const getApiUrl = (path = '') => { - // 所有环境都使用相对路径,通过nginx代理 - return `${ENV_CONFIG.API_BASE_URL}${path}` -} - -// 打印环境信息 -export const printEnvInfo = () => { - console.log('=== 环境配置信息 ===') - console.log('应用标题:', ENV_CONFIG.APP_TITLE) - console.log('应用版本:', ENV_CONFIG.APP_VERSION) - console.log('运行环境:', ENV_CONFIG.APP_ENV) - console.log('API地址:', ENV_CONFIG.API_BASE_URL) - console.log('调试模式:', ENV_CONFIG.DEBUG_MODE) - console.log('==================') -} - -export default ENV_CONFIG diff --git a/web-bak/src/main.js b/web-bak/src/main.js deleted file mode 100644 index 4c8e4cb..0000000 --- a/web-bak/src/main.js +++ /dev/null @@ -1,61 +0,0 @@ -import { createApp } from 'vue' -import { createPinia } from 'pinia' -import router from './router' -import App from './App.vue' - -// Ant Design Vue -import Antd from 'ant-design-vue' -import 'ant-design-vue/dist/reset.css' - -// 全局样式 -import './styles/global.scss' - -// 环境配置 -import { ENV_CONFIG, printEnvInfo, debugLog } from '@/config/env' - -// 用户store -import { useUserStore } from '@/stores/user' - -// 认证工具 -import { setupTokenRefreshTimer } from '@/utils/auth' - -debugLog('main.js loading...') - -// 打印环境信息 -if (ENV_CONFIG.DEBUG_MODE) { - printEnvInfo() -} - -// 创建应用实例 -const app = createApp(App) - -debugLog('App created') - -// 使用插件 -app.use(createPinia()) -app.use(router) -app.use(Antd) - -debugLog('Plugins loaded') - -// 初始化用户store -try { - const userStore = useUserStore() - userStore.initUser() - debugLog('User store initialized successfully') -} catch (error) { - console.error('User store initialization failed:', error) - debugLog('User store initialization failed, using guest mode') -} - -// 设置应用标题 -document.title = ENV_CONFIG.APP_TITLE - -// 挂载应用 -app.mount('#app') - -debugLog('App mounted') - -// 启动token自动刷新定时器 -setupTokenRefreshTimer() -debugLog('Token refresh timer started') diff --git a/web-bak/src/router/index.js b/web-bak/src/router/index.js deleted file mode 100644 index e3ef7b2..0000000 --- a/web-bak/src/router/index.js +++ /dev/null @@ -1,84 +0,0 @@ -import { createRouter, createWebHistory } from 'vue-router' - -const routes = [ - { - path: '/', - name: 'Home', - component: () => import('@/views/Home.vue'), - meta: { - title: '情绪博物馆 - 首页' - } - }, - { - path: '/test', - name: 'Test', - component: () => import('@/views/HomeTest.vue'), - meta: { - title: '情绪博物馆 - 测试页面' - } - }, - { - path: '/chat', - name: 'Chat', - component: () => import('@/views/ChatComplete.vue'), - meta: { - title: 'AI对话 - 情绪博物馆' - } - }, - { - path: '/history', - name: 'History', - component: () => import('@/views/HistorySimple.vue'), - meta: { - title: '对话历史 - 情绪博物馆' - } - }, - { - path: '/analysis', - name: 'Analysis', - component: () => import('@/views/AnalysisSimple.vue'), - meta: { - title: '情绪分析 - 情绪博物馆' - } - }, - { - path: '/login', - name: 'Login', - component: () => import('@/views/Login.vue'), - meta: { - title: '登录注册 - 情绪博物馆' - } - } -] - -const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), - routes -}) - -// 路由守卫 -router.beforeEach((to, from, next) => { - // 设置页面标题 - if (to.meta.title) { - document.title = to.meta.title - } - - // 检查是否需要认证 - const requiresAuth = to.meta.requiresAuth - const token = localStorage.getItem('token') - - if (requiresAuth && !token) { - // 需要认证但没有token,跳转到登录页 - next({ - path: '/login', - query: { redirect: to.fullPath } - }) - } else if (to.path === '/login' && token) { - // 已登录用户访问登录页,跳转到首页 - next('/') - } else { - next() - } -}) - -export default router diff --git a/web-bak/src/stores/chat.js b/web-bak/src/stores/chat.js deleted file mode 100644 index cf72563..0000000 --- a/web-bak/src/stores/chat.js +++ /dev/null @@ -1,197 +0,0 @@ -import { defineStore } from 'pinia' -import { ref, computed } from 'vue' -import { chatApi } from '@/api/chat' -import { message } from 'ant-design-vue' - -export const useChatStore = defineStore('chat', () => { - const conversations = ref([]) - const currentConversation = ref(null) - const messages = ref([]) - const loading = ref(false) - const typing = ref(false) - - // 计算属性 - const hasConversations = computed(() => conversations.value.length > 0) - const currentConversationId = computed(() => currentConversation.value?.conversationId) - - // 获取会话列表 - const fetchConversations = async (userId) => { - try { - const response = await chatApi.getConversations(userId) - if (response.success) { - conversations.value = response.data || [] - } - } catch (error) { - console.error('获取会话列表失败:', error) - message.error('获取会话列表失败') - } - } - - // 创建新会话 - const createConversation = async (params) => { - try { - loading.value = true - console.log('创建会话请求参数:', params) - - const response = await chatApi.createConversation(params) - console.log('创建会话响应:', response) - - if (response.success) { - const newConversation = response.data - // 确保会话对象有必要的属性 - const conversation = { - conversationId: newConversation.conversationId, - userId: newConversation.userId, - title: newConversation.title || '新对话', - type: newConversation.type || 'emotion_chat', - status: newConversation.status || 'active', - createTime: newConversation.createTime || new Date().toISOString(), - updateTime: newConversation.updateTime || new Date().toISOString(), - messageCount: 0 - } - - conversations.value.unshift(conversation) - currentConversation.value = conversation - messages.value = [] - return conversation - } - throw new Error(response.message || '创建会话失败') - } catch (error) { - console.error('创建会话失败:', error) - message.error(error.message || '创建会话失败') - throw error - } finally { - loading.value = false - } - } - - // 发送消息 - const sendMessage = async (content, needEmotionAnalysis = true) => { - if (!currentConversation.value) { - message.error('请先创建会话') - return - } - - try { - typing.value = true - - // 添加用户消息到界面 - const userMessage = { - id: `user_${Date.now()}`, - content, - sender: 'user', - timestamp: new Date(), - type: 'text' - } - messages.value.push(userMessage) - console.log('添加用户消息:', userMessage) - - // 发送到后端 - const requestData = { - userId: currentConversation.value.userId, - conversationId: currentConversation.value.conversationId, - message: content, - needEmotionAnalysis, - type: 'text' - } - console.log('发送消息请求:', requestData) - - const response = await chatApi.sendMessage(requestData) - console.log('发送消息响应:', response) - - if (response.success) { - // 添加AI回复到界面 - const aiMessage = { - id: response.data.messageId || `ai_${Date.now()}`, - content: response.data.content, - sender: 'assistant', - timestamp: response.data.timestamp ? new Date(response.data.timestamp) : new Date(), - type: response.data.type || 'text', - emotionAnalysis: response.data.emotionAnalysis - } - messages.value.push(aiMessage) - console.log('添加AI消息:', aiMessage) - - // 更新会话的最后更新时间和消息数量 - if (currentConversation.value) { - currentConversation.value.updateTime = new Date().toISOString() - currentConversation.value.messageCount = (currentConversation.value.messageCount || 0) + 2 - } - - return aiMessage - } - throw new Error(response.message || '发送消息失败') - } catch (error) { - console.error('发送消息失败:', error) - message.error(error.message || '发送消息失败') - - // 移除失败的用户消息 - messages.value = messages.value.filter(msg => msg.id !== `user_${Date.now()}`) - throw error - } finally { - typing.value = false - } - } - - // 获取会话消息 - const fetchMessages = async (conversationId) => { - try { - loading.value = true - const response = await chatApi.getMessages(conversationId) - if (response.success) { - messages.value = response.data || [] - } - } catch (error) { - console.error('获取消息失败:', error) - message.error('获取消息失败') - } finally { - loading.value = false - } - } - - // 切换会话 - const switchConversation = async (conversation) => { - currentConversation.value = conversation - await fetchMessages(conversation.conversationId) - } - - // 清空当前会话 - const clearCurrentConversation = () => { - currentConversation.value = null - messages.value = [] - } - - // 删除会话 - const deleteConversation = async (conversationId) => { - try { - await chatApi.deleteConversation(conversationId) - conversations.value = conversations.value.filter(c => c.conversationId !== conversationId) - - if (currentConversation.value?.conversationId === conversationId) { - clearCurrentConversation() - } - - message.success('删除成功') - } catch (error) { - console.error('删除会话失败:', error) - message.error('删除会话失败') - } - } - - return { - conversations, - currentConversation, - messages, - loading, - typing, - hasConversations, - currentConversationId, - fetchConversations, - createConversation, - sendMessage, - fetchMessages, - switchConversation, - clearCurrentConversation, - deleteConversation - } -}) diff --git a/web-bak/src/stores/guestChat.js b/web-bak/src/stores/guestChat.js deleted file mode 100644 index ddb879f..0000000 --- a/web-bak/src/stores/guestChat.js +++ /dev/null @@ -1,270 +0,0 @@ -import { defineStore } from 'pinia' -import { ref, computed } from 'vue' -import { guestChatApi } from '@/api/chat' -import { message } from 'ant-design-vue' - -export const useGuestChatStore = defineStore('guestChat', () => { - const conversations = ref([]) - const currentConversation = ref(null) - const messages = ref([]) - const loading = ref(false) - const typing = ref(false) - const guestUserInfo = ref(null) - - // 计算属性 - const hasConversations = computed(() => conversations.value.length > 0) - const currentConversationId = computed(() => currentConversation.value?.conversationId) - - // 获取或创建访客用户信息 - const getOrCreateGuestUser = async () => { - try { - const response = await guestChatApi.getGuestUserInfo() - if (response.code === 200) { - guestUserInfo.value = response.data - return response.data - } - throw new Error(response.message || '获取访客用户信息失败') - } catch (error) { - console.error('获取访客用户信息失败:', error) - // 不显示错误消息,因为这是自动调用的 - // message.error('获取访客用户信息失败') - - // 创建一个默认的访客用户信息 - const defaultGuestUser = { - id: `guest_${Date.now()}`, - name: '访客用户', - isGuest: true, - createTime: new Date().toISOString() - } - guestUserInfo.value = defaultGuestUser - return defaultGuestUser - } - } - - // 获取访客会话列表 - const fetchConversations = async () => { - try { - const response = await guestChatApi.getGuestConversations() - if (response.code === 200) { - conversations.value = response.data || [] - } - } catch (error) { - console.error('获取会话列表失败:', error) - // 不显示错误消息,因为这是自动调用的 - // message.error('获取会话列表失败') - conversations.value = [] - } - } - - // 发送访客聊天消息 - const sendMessage = async (content, title = null) => { - try { - typing.value = true - - // 添加用户消息到界面 - const userMessage = { - id: `user_${Date.now()}`, - content, - sender: 'user', - timestamp: new Date(), - type: 'text' - } - messages.value.push(userMessage) - console.log('添加用户消息:', userMessage) - - // 发送到后端 - const requestData = { - message: content, - title: title || (currentConversation.value ? null : `对话 ${new Date().toLocaleString()}`), - messageType: 'text' - } - console.log('发送访客聊天请求:', requestData) - - const response = await guestChatApi.guestChat(requestData) - console.log('访客聊天响应:', response) - - if (response.code === 200) { - const data = response.data - - // 如果是新会话,更新当前会话信息 - if (data.isNewConversation || !currentConversation.value) { - const newConversation = { - conversationId: data.conversationId, - userId: data.guestUserId, - title: data.conversationTitle || title || `对话 ${new Date().toLocaleString()}`, - type: 'guest_chat', - status: data.conversationStatus || 'active', - createTime: data.timestamp || new Date().toISOString(), - updateTime: data.timestamp || new Date().toISOString(), - messageCount: 2 - } - - currentConversation.value = newConversation - - // 添加到会话列表(如果不存在) - const existingIndex = conversations.value.findIndex(c => c.conversationId === newConversation.conversationId) - if (existingIndex === -1) { - conversations.value.unshift(newConversation) - } - } - - // 更新用户消息ID - if (data.userMessageId) { - userMessage.id = data.userMessageId - } - - // 处理AI回复 - 支持多条消息 - if (data.multipleMessages && data.messageCount > 1) { - // 多条消息的情况 - 从数据库获取最新消息 - console.log('检测到多条消息,从数据库获取最新消息') - if (currentConversation.value) { - await fetchMessages(currentConversation.value.conversationId) - } - } else { - // 单条消息的情况 - 直接添加到界面 - const aiMessage = { - id: data.aiMessageId || `ai_${Date.now()}`, - content: data.aiReply, - sender: 'assistant', - timestamp: data.timestamp ? new Date(data.timestamp) : new Date(), - type: 'text', - emotionAnalysis: data.emotionAnalysis - } - messages.value.push(aiMessage) - console.log('添加AI消息:', aiMessage) - } - - // 更新会话的最后更新时间和消息数量 - if (currentConversation.value) { - currentConversation.value.updateTime = new Date().toISOString() - currentConversation.value.messageCount = (currentConversation.value.messageCount || 0) + 2 - } - - return aiMessage - } - throw new Error(response.message || '发送消息失败') - } catch (error) { - console.error('发送消息失败:', error) - message.error(error.message || '发送消息失败') - - // 移除失败的用户消息 - messages.value = messages.value.filter(msg => msg.id !== `user_${Date.now()}`) - throw error - } finally { - typing.value = false - } - } - - // 获取会话消息 - const fetchMessages = async (conversationId) => { - try { - loading.value = true - const response = await guestChatApi.getGuestConversationMessages(conversationId) - if (response.code === 200) { - const rawMessages = response.data || [] - // 转换消息格式以适配前端显示 - messages.value = rawMessages.map(msg => ({ - id: msg.messageId || msg.id, - content: msg.content, - sender: msg.sender === 'user' ? 'user' : 'assistant', - timestamp: new Date(msg.timestamp), - type: msg.type || 'text', - emotionAnalysis: msg.emotionAnalysis ? { - emotionType: msg.emotionType, - emotionScore: msg.emotionScore, - emotionConfidence: msg.emotionConfidence - } : null - })) - console.log('获取到消息:', messages.value.length, '条') - } - } catch (error) { - console.error('获取消息失败:', error) - message.error('获取消息失败') - } finally { - loading.value = false - } - } - - // 切换会话 - const switchConversation = async (conversation) => { - currentConversation.value = conversation - await fetchMessages(conversation.conversationId) - } - - // 清空当前会话 - const clearCurrentConversation = () => { - currentConversation.value = null - messages.value = [] - } - - // 结束会话 - const endConversation = async (conversationId) => { - try { - await guestChatApi.endGuestConversation(conversationId) - - // 更新会话状态 - const conversation = conversations.value.find(c => c.conversationId === conversationId) - if (conversation) { - conversation.status = 'ended' - } - - if (currentConversation.value?.conversationId === conversationId) { - clearCurrentConversation() - } - - message.success('会话已结束') - } catch (error) { - console.error('结束会话失败:', error) - message.error('结束会话失败') - } - } - - // 创建新会话(访客模式下通过发送第一条消息自动创建) - const createNewConversation = () => { - clearCurrentConversation() - return Promise.resolve() - } - - // 初始化访客聊天 - const initGuestChat = async () => { - try { - await getOrCreateGuestUser() - await fetchConversations() - console.log('访客聊天初始化成功') - } catch (error) { - console.error('初始化访客聊天失败:', error) - // 确保有基本的状态 - if (!guestUserInfo.value) { - guestUserInfo.value = { - id: `guest_${Date.now()}`, - name: '访客用户', - isGuest: true, - createTime: new Date().toISOString() - } - } - if (!conversations.value) { - conversations.value = [] - } - } - } - - return { - conversations, - currentConversation, - messages, - loading, - typing, - guestUserInfo, - hasConversations, - currentConversationId, - getOrCreateGuestUser, - fetchConversations, - sendMessage, - fetchMessages, - switchConversation, - clearCurrentConversation, - endConversation, - createNewConversation, - initGuestChat - } -}) diff --git a/web-bak/src/stores/user.js b/web-bak/src/stores/user.js deleted file mode 100644 index 047f4d4..0000000 --- a/web-bak/src/stores/user.js +++ /dev/null @@ -1,103 +0,0 @@ -import { defineStore } from 'pinia' -import { ref } from 'vue' - -export const useUserStore = defineStore('user', () => { - const userInfo = ref({ - id: '', - name: '', - avatar: '' - }) - - const isLoggedIn = ref(false) - - // 初始化用户信息 - const initUser = () => { - try { - // 从localStorage获取用户信息 - const savedUser = localStorage.getItem('emotion_museum_user') - if (savedUser) { - try { - const user = JSON.parse(savedUser) - userInfo.value = user - // 只有非访客用户才算真正登录 - isLoggedIn.value = !user.isGuest - console.log('用户信息已加载:', user.name || '访客用户') - } catch (parseError) { - console.warn('解析用户信息失败,使用访客模式:', parseError) - // 清除无效数据 - localStorage.removeItem('emotion_museum_user') - setGuestMode() - } - } else { - // 访客模式 - 不设置用户信息,保持未登录状态 - setGuestMode() - } - } catch (error) { - console.error('初始化用户信息失败:', error) - setGuestMode() - } - } - - // 设置访客模式 - const setGuestMode = () => { - userInfo.value = { - id: `guest_${Date.now()}`, - name: '访客用户', - avatar: '', - isGuest: true - } - isLoggedIn.value = false - console.log('已切换到访客模式') - } - - // 设置用户信息 - const setUser = (user) => { - userInfo.value = { - ...user, - isGuest: false - } - isLoggedIn.value = true - localStorage.setItem('emotion_museum_user', JSON.stringify(userInfo.value)) - } - - // 清除用户信息 - const clearUser = () => { - userInfo.value = { - id: '', - name: '', - avatar: '' - } - isLoggedIn.value = false - localStorage.removeItem('emotion_museum_user') - localStorage.removeItem('token') - localStorage.removeItem('refreshToken') - } - - // 登出 - const logout = async () => { - try { - // 如果是登录用户,调用后端登出接口 - if (isLoggedIn.value && userInfo.value.id) { - const { userApi } = await import('@/api/user') - await userApi.logout(userInfo.value.id) - } - } catch (error) { - console.warn('登出接口调用失败:', error) - } finally { - // 清除本地状态 - clearUser() - // 切换到访客模式 - setGuestMode() - } - } - - return { - userInfo, - isLoggedIn, - initUser, - setUser, - clearUser, - setGuestMode, - logout - } -}) diff --git a/web-bak/src/styles/global.scss b/web-bak/src/styles/global.scss deleted file mode 100644 index 781f6e5..0000000 --- a/web-bak/src/styles/global.scss +++ /dev/null @@ -1,269 +0,0 @@ -// 全局样式变量 -:root { - // 主题色彩 - --primary-color: #667eea; - --primary-light: #8fa4f3; - --primary-dark: #4c63d2; - --secondary-color: #764ba2; - --accent-color: #f093fb; - - // 渐变色 - --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); - --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); - --gradient-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); - - // 文字颜色 - --text-primary: #2c3e50; - --text-secondary: #7f8c8d; - --text-light: #bdc3c7; - --text-white: #ffffff; - - // 背景色 - --bg-primary: #ffffff; - --bg-secondary: #f8f9fa; - --bg-dark: #2c3e50; - --bg-overlay: rgba(0, 0, 0, 0.5); - - // 边框和阴影 - --border-color: #e9ecef; - --border-radius: 12px; - --border-radius-small: 8px; - --border-radius-large: 16px; - --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); - --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15); - - // 间距 - --spacing-xs: 4px; - --spacing-sm: 8px; - --spacing-md: 16px; - --spacing-lg: 24px; - --spacing-xl: 32px; - --spacing-xxl: 48px; -} - -// 重置样式 -* { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -html, body { - height: 100%; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -// 通用工具类 -.flex { - display: flex; -} - -.flex-center { - display: flex; - align-items: center; - justify-content: center; -} - -.flex-between { - display: flex; - align-items: center; - justify-content: space-between; -} - -.flex-column { - display: flex; - flex-direction: column; -} - -.text-center { - text-align: center; -} - -.text-left { - text-align: left; -} - -.text-right { - text-align: right; -} - -.w-full { - width: 100%; -} - -.h-full { - height: 100%; -} - -.overflow-hidden { - overflow: hidden; -} - -.overflow-auto { - overflow: auto; -} - -// 渐变文字 -.gradient-text { - background: var(--gradient-primary); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; - font-weight: 600; -} - -// 玻璃态效果 -.glass { - background: rgba(255, 255, 255, 0.1); - backdrop-filter: blur(10px); - border: 1px solid rgba(255, 255, 255, 0.2); - border-radius: var(--border-radius); -} - -// 卡片样式 -.card { - background: var(--bg-primary); - border-radius: var(--border-radius); - box-shadow: var(--box-shadow); - padding: var(--spacing-lg); - transition: all 0.3s ease; - - &:hover { - box-shadow: var(--box-shadow-hover); - transform: translateY(-2px); - } -} - -// 按钮样式增强 -.ant-btn { - border-radius: var(--border-radius-small); - font-weight: 500; - transition: all 0.3s ease; - - &.gradient-btn { - background: var(--gradient-primary); - border: none; - color: white; - - &:hover { - background: var(--gradient-primary); - opacity: 0.9; - transform: translateY(-1px); - box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); - } - } -} - -// 输入框样式增强 -.ant-input { - border-radius: var(--border-radius-small); - border: 1px solid var(--border-color); - transition: all 0.3s ease; - - &:focus { - border-color: var(--primary-color); - box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); - } -} - -// 消息气泡样式 -.message-bubble { - max-width: 70%; - padding: var(--spacing-md); - border-radius: var(--border-radius); - margin-bottom: var(--spacing-md); - word-wrap: break-word; - - &.user { - background: var(--gradient-primary); - color: white; - margin-left: auto; - border-bottom-right-radius: var(--spacing-xs); - } - - &.assistant { - background: var(--bg-primary); - color: var(--text-primary); - border: 1px solid var(--border-color); - border-bottom-left-radius: var(--spacing-xs); - } -} - -// 响应式设计 -@media (max-width: 768px) { - .message-bubble { - max-width: 85%; - } - - .card { - padding: var(--spacing-md); - } -} - -// 动画类 -.bounce-in { - animation: bounceIn 0.6s ease; -} - -@keyframes bounceIn { - 0% { - opacity: 0; - transform: scale(0.3); - } - 50% { - opacity: 1; - transform: scale(1.05); - } - 70% { - transform: scale(0.9); - } - 100% { - opacity: 1; - transform: scale(1); - } -} - -.fade-in-up { - animation: fadeInUp 0.6s ease; -} - -@keyframes fadeInUp { - from { - opacity: 0; - transform: translateY(30px); - } - to { - opacity: 1; - transform: translateY(0); - } -} - -// 加载动画 -.loading-dots { - display: inline-block; - - &::after { - content: ''; - animation: dots 1.5s steps(5, end) infinite; - } -} - -@keyframes dots { - 0%, 20% { - color: rgba(0, 0, 0, 0); - text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0); - } - 40% { - color: black; - text-shadow: 0.25em 0 0 rgba(0, 0, 0, 0), 0.5em 0 0 rgba(0, 0, 0, 0); - } - 60% { - text-shadow: 0.25em 0 0 black, 0.5em 0 0 rgba(0, 0, 0, 0); - } - 80%, 100% { - text-shadow: 0.25em 0 0 black, 0.5em 0 0 black; - } -} diff --git a/web-bak/src/utils/auth.js b/web-bak/src/utils/auth.js deleted file mode 100644 index c14bf09..0000000 --- a/web-bak/src/utils/auth.js +++ /dev/null @@ -1,140 +0,0 @@ -import { userApi } from '@/api/user' -import { useUserStore } from '@/stores/user' - -/** - * 认证工具类 - */ -export class AuthUtils { - static TOKEN_KEY = 'token' - static REFRESH_TOKEN_KEY = 'refreshToken' - static USER_KEY = 'emotion_museum_user' - - /** - * 获取token - */ - static getToken() { - return localStorage.getItem(this.TOKEN_KEY) - } - - /** - * 获取刷新token - */ - static getRefreshToken() { - return localStorage.getItem(this.REFRESH_TOKEN_KEY) - } - - /** - * 设置token - */ - static setToken(token, refreshToken) { - localStorage.setItem(this.TOKEN_KEY, token) - if (refreshToken) { - localStorage.setItem(this.REFRESH_TOKEN_KEY, refreshToken) - } - } - - /** - * 清除token - */ - static clearTokens() { - localStorage.removeItem(this.TOKEN_KEY) - localStorage.removeItem(this.REFRESH_TOKEN_KEY) - localStorage.removeItem(this.USER_KEY) - } - - /** - * 检查token是否存在 - */ - static hasToken() { - return !!this.getToken() - } - - /** - * 检查token是否即将过期(提前5分钟刷新) - */ - static isTokenExpiringSoon(token) { - if (!token) return true - - try { - const payload = JSON.parse(atob(token.split('.')[1])) - const exp = payload.exp * 1000 // 转换为毫秒 - const now = Date.now() - const fiveMinutes = 5 * 60 * 1000 - - return (exp - now) < fiveMinutes - } catch (error) { - console.warn('解析token失败:', error) - return true - } - } - - /** - * 刷新token - */ - static async refreshToken() { - const refreshToken = this.getRefreshToken() - if (!refreshToken) { - throw new Error('没有刷新token') - } - - try { - const response = await userApi.refreshToken(refreshToken) - if (response.success) { - const { accessToken, refreshToken: newRefreshToken } = response.data - this.setToken(accessToken, newRefreshToken) - return accessToken - } else { - throw new Error(response.message || '刷新token失败') - } - } catch (error) { - // 刷新失败,清除所有token - this.clearTokens() - throw error - } - } - - /** - * 自动刷新token(如果需要) - */ - static async autoRefreshToken() { - const token = this.getToken() - if (!token) return null - - if (this.isTokenExpiringSoon(token)) { - try { - return await this.refreshToken() - } catch (error) { - console.warn('自动刷新token失败:', error) - // 跳转到登录页 - const userStore = useUserStore() - userStore.clearUser() - if (window.location.pathname !== '/login') { - window.location.href = '/login' - } - return null - } - } - - return token - } - - /** - * 登出 - */ - static async logout() { - const userStore = useUserStore() - await userStore.logout() - } -} - -/** - * 设置token自动刷新定时器 - */ -export function setupTokenRefreshTimer() { - // 每5分钟检查一次token是否需要刷新 - setInterval(async () => { - if (AuthUtils.hasToken()) { - await AuthUtils.autoRefreshToken() - } - }, 5 * 60 * 1000) -} diff --git a/web-bak/src/utils/env-example.js b/web-bak/src/utils/env-example.js deleted file mode 100644 index c268f97..0000000 --- a/web-bak/src/utils/env-example.js +++ /dev/null @@ -1,106 +0,0 @@ -/** - * 环境配置使用示例 - * - * 这个文件展示了如何在项目中使用环境变量配置 - */ - -import { ENV_CONFIG, isDev, isTest, isProd, debugLog, getApiUrl, printEnvInfo } from '@/config/env' - -// 示例1: 基础环境判断 -export const exampleEnvironmentCheck = () => { - if (isDev()) { - console.log('当前是开发环境') - // 开发环境特有逻辑 - } else if (isTest()) { - console.log('当前是测试环境') - // 测试环境特有逻辑 - } else if (isProd()) { - console.log('当前是生产环境') - // 生产环境特有逻辑 - } -} - -// 示例2: 使用调试日志 -export const exampleDebugLog = () => { - debugLog('这条日志只在调试模式下显示') - debugLog('用户操作:', { action: 'click', target: 'button' }) -} - -// 示例3: 获取API地址 -export const exampleApiCall = async () => { - const userApiUrl = getApiUrl('/user/profile') - debugLog('API地址:', userApiUrl) - - // 使用fetch或axios调用API - try { - const response = await fetch(userApiUrl) - const data = await response.json() - debugLog('API响应:', data) - return data - } catch (error) { - debugLog('API错误:', error) - throw error - } -} - -// 示例4: 根据环境配置不同的行为 -export const exampleConditionalBehavior = () => { - // 根据环境显示不同的标题 - document.title = ENV_CONFIG.APP_TITLE - - // 在开发环境启用额外的调试工具 - if (ENV_CONFIG.DEBUG_MODE) { - // 启用Vue DevTools - window.__VUE_DEVTOOLS_GLOBAL_HOOK__ = window.__VUE_DEVTOOLS_GLOBAL_HOOK__ || {} - - // 打印环境信息 - printEnvInfo() - } - - // 根据环境配置不同的错误处理 - if (isProd()) { - // 生产环境:静默处理错误,发送到监控系统 - window.addEventListener('error', (event) => { - // 发送错误到监控系统 - console.error('生产环境错误:', event.error) - }) - } else { - // 开发/测试环境:显示详细错误信息 - window.addEventListener('error', (event) => { - debugLog('开发环境错误:', event.error) - }) - } -} - -// 示例5: 环境特定的配置 -export const getEnvironmentSpecificConfig = () => { - const config = { - // 基础配置 - apiTimeout: ENV_CONFIG.API_TIMEOUT, - debugMode: ENV_CONFIG.DEBUG_MODE, - - // 环境特定配置 - enableAnalytics: isProd(), // 只在生产环境启用分析 - enableMocking: ENV_CONFIG.MOCK_DATA, // 根据环境变量决定是否启用模拟数据 - logLevel: isDev() ? 'debug' : isProd() ? 'error' : 'info', - - // 功能开关 - features: { - newFeature: isDev() || isTest(), // 新功能只在开发和测试环境启用 - betaFeature: !isProd(), // Beta功能在非生产环境启用 - experimentalFeature: isDev() // 实验性功能只在开发环境启用 - } - } - - debugLog('环境特定配置:', config) - return config -} - -// 导出所有示例函数 -export default { - exampleEnvironmentCheck, - exampleDebugLog, - exampleApiCall, - exampleConditionalBehavior, - getEnvironmentSpecificConfig -} diff --git a/web-bak/src/utils/format.js b/web-bak/src/utils/format.js deleted file mode 100644 index 5b0a4e8..0000000 --- a/web-bak/src/utils/format.js +++ /dev/null @@ -1,303 +0,0 @@ -import dayjs from 'dayjs' -import relativeTime from 'dayjs/plugin/relativeTime' -import 'dayjs/locale/zh-cn' - -// 配置 dayjs -dayjs.extend(relativeTime) -dayjs.locale('zh-cn') - -/** - * 格式化时间 - * @param {string|Date} time - 时间 - * @param {string} format - 格式化模板 - * @returns {string} 格式化后的时间字符串 - */ -export function formatTime(time, format = 'YYYY-MM-DD HH:mm:ss') { - if (!time) return '' - - const now = dayjs() - const target = dayjs(time) - const diffInHours = now.diff(target, 'hour') - const diffInDays = now.diff(target, 'day') - - // 如果是今天 - if (diffInDays === 0) { - if (diffInHours === 0) { - return target.fromNow() // 几分钟前 - } else { - return target.format('HH:mm') // 今天的时间 - } - } - - // 如果是昨天 - if (diffInDays === 1) { - return `昨天 ${target.format('HH:mm')}` - } - - // 如果是本周 - if (diffInDays < 7) { - return target.format('dddd HH:mm') - } - - // 如果是今年 - if (target.year() === now.year()) { - return target.format('MM-DD HH:mm') - } - - // 其他情况使用完整格式 - return target.format(format) -} - -/** - * 格式化相对时间 - * @param {string|Date} time - 时间 - * @returns {string} 相对时间字符串 - */ -export function formatRelativeTime(time) { - if (!time) return '' - return dayjs(time).fromNow() -} - -/** - * 格式化消息内容 - * @param {string} content - 消息内容 - * @returns {string} 格式化后的HTML内容 - */ -export function formatMessage(content) { - if (!content) return '' - - // 转义HTML特殊字符 - const escaped = content - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') - .replace(/'/g, ''') - - // 处理换行 - let formatted = escaped.replace(/\n/g, '
') - - // 处理链接 - const urlRegex = /(https?:\/\/[^\s]+)/g - formatted = formatted.replace(urlRegex, '$1') - - // 处理邮箱 - const emailRegex = /([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})/g - formatted = formatted.replace(emailRegex, '$1') - - // 处理电话号码 - const phoneRegex = /(\d{3}-\d{4}-\d{4}|\d{11})/g - formatted = formatted.replace(phoneRegex, '$1') - - // 处理表情符号(简单的文本表情) - const emoticons = { - ':)': '😊', - ':-)': '😊', - ':(': '😢', - ':-(': '😢', - ':D': '😃', - ':-D': '😃', - ':P': '😛', - ':-P': '😛', - ';)': '😉', - ';-)': '😉', - ':o': '😮', - ':-o': '😮', - ':|': '😐', - ':-|': '😐', - '<3': '❤️', - ' { - const regex = new RegExp(escapeRegExp(text), 'g') - formatted = formatted.replace(regex, emoji) - }) - - return formatted -} - -/** - * 转义正则表达式特殊字符 - * @param {string} string - 要转义的字符串 - * @returns {string} 转义后的字符串 - */ -function escapeRegExp(string) { - return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&') -} - -/** - * 格式化文件大小 - * @param {number} bytes - 字节数 - * @returns {string} 格式化后的文件大小 - */ -export function formatFileSize(bytes) { - if (bytes === 0) return '0 B' - - const k = 1024 - const sizes = ['B', 'KB', 'MB', 'GB', 'TB'] - const i = Math.floor(Math.log(bytes) / Math.log(k)) - - return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i] -} - -/** - * 格式化数字 - * @param {number} num - 数字 - * @param {number} precision - 精度 - * @returns {string} 格式化后的数字 - */ -export function formatNumber(num, precision = 0) { - if (typeof num !== 'number') return '0' - - if (num >= 1000000) { - return (num / 1000000).toFixed(precision) + 'M' - } else if (num >= 1000) { - return (num / 1000).toFixed(precision) + 'K' - } else { - return num.toFixed(precision) - } -} - -/** - * 格式化百分比 - * @param {number} value - 值 - * @param {number} total - 总数 - * @param {number} precision - 精度 - * @returns {string} 百分比字符串 - */ -export function formatPercentage(value, total, precision = 1) { - if (total === 0) return '0%' - return ((value / total) * 100).toFixed(precision) + '%' -} - -/** - * 截断文本 - * @param {string} text - 文本 - * @param {number} maxLength - 最大长度 - * @param {string} suffix - 后缀 - * @returns {string} 截断后的文本 - */ -export function truncateText(text, maxLength = 100, suffix = '...') { - if (!text || text.length <= maxLength) return text - return text.substring(0, maxLength - suffix.length) + suffix -} - -/** - * 格式化持续时间 - * @param {number} seconds - 秒数 - * @returns {string} 格式化后的持续时间 - */ -export function formatDuration(seconds) { - if (seconds < 60) { - return `${Math.round(seconds)}秒` - } else if (seconds < 3600) { - const minutes = Math.floor(seconds / 60) - const remainingSeconds = Math.round(seconds % 60) - return remainingSeconds > 0 ? `${minutes}分${remainingSeconds}秒` : `${minutes}分钟` - } else { - const hours = Math.floor(seconds / 3600) - const minutes = Math.floor((seconds % 3600) / 60) - return minutes > 0 ? `${hours}小时${minutes}分钟` : `${hours}小时` - } -} - -/** - * 格式化货币 - * @param {number} amount - 金额 - * @param {string} currency - 货币符号 - * @returns {string} 格式化后的货币 - */ -export function formatCurrency(amount, currency = '¥') { - if (typeof amount !== 'number') return `${currency}0.00` - return `${currency}${amount.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,')}` -} - -/** - * 验证邮箱格式 - * @param {string} email - 邮箱地址 - * @returns {boolean} 是否有效 - */ -export function isValidEmail(email) { - const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/ - return emailRegex.test(email) -} - -/** - * 验证手机号格式 - * @param {string} phone - 手机号 - * @returns {boolean} 是否有效 - */ -export function isValidPhone(phone) { - const phoneRegex = /^1[3-9]\d{9}$/ - return phoneRegex.test(phone) -} - -/** - * 生成随机ID - * @param {number} length - 长度 - * @returns {string} 随机ID - */ -export function generateId(length = 8) { - const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' - let result = '' - for (let i = 0; i < length; i++) { - result += chars.charAt(Math.floor(Math.random() * chars.length)) - } - return result -} - -/** - * 深拷贝对象 - * @param {any} obj - 要拷贝的对象 - * @returns {any} 拷贝后的对象 - */ -export function deepClone(obj) { - if (obj === null || typeof obj !== 'object') return obj - if (obj instanceof Date) return new Date(obj.getTime()) - if (obj instanceof Array) return obj.map(item => deepClone(item)) - if (typeof obj === 'object') { - const clonedObj = {} - for (const key in obj) { - if (obj.hasOwnProperty(key)) { - clonedObj[key] = deepClone(obj[key]) - } - } - return clonedObj - } -} - -/** - * 防抖函数 - * @param {Function} func - 要防抖的函数 - * @param {number} wait - 等待时间 - * @returns {Function} 防抖后的函数 - */ -export function debounce(func, wait) { - let timeout - return function executedFunction(...args) { - const later = () => { - clearTimeout(timeout) - func(...args) - } - clearTimeout(timeout) - timeout = setTimeout(later, wait) - } -} - -/** - * 节流函数 - * @param {Function} func - 要节流的函数 - * @param {number} limit - 限制时间 - * @returns {Function} 节流后的函数 - */ -export function throttle(func, limit) { - let inThrottle - return function executedFunction(...args) { - if (!inThrottle) { - func.apply(this, args) - inThrottle = true - setTimeout(() => inThrottle = false, limit) - } - } -} diff --git a/web-bak/src/views/Analysis.vue b/web-bak/src/views/Analysis.vue deleted file mode 100644 index 7dbac01..0000000 --- a/web-bak/src/views/Analysis.vue +++ /dev/null @@ -1,615 +0,0 @@ - - - - - diff --git a/web-bak/src/views/AnalysisSimple.vue b/web-bak/src/views/AnalysisSimple.vue deleted file mode 100644 index 823d8d0..0000000 --- a/web-bak/src/views/AnalysisSimple.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/web-bak/src/views/Chat.vue b/web-bak/src/views/Chat.vue deleted file mode 100644 index e6200ba..0000000 --- a/web-bak/src/views/Chat.vue +++ /dev/null @@ -1,826 +0,0 @@ - - - - - diff --git a/web-bak/src/views/ChatComplete.vue b/web-bak/src/views/ChatComplete.vue deleted file mode 100644 index 0708943..0000000 --- a/web-bak/src/views/ChatComplete.vue +++ /dev/null @@ -1,1019 +0,0 @@ - - - - - diff --git a/web-bak/src/views/ChatSimple.vue b/web-bak/src/views/ChatSimple.vue deleted file mode 100644 index 3235c85..0000000 --- a/web-bak/src/views/ChatSimple.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/web-bak/src/views/History.vue b/web-bak/src/views/History.vue deleted file mode 100644 index a21750a..0000000 --- a/web-bak/src/views/History.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - - - diff --git a/web-bak/src/views/HistorySimple.vue b/web-bak/src/views/HistorySimple.vue deleted file mode 100644 index 72d7972..0000000 --- a/web-bak/src/views/HistorySimple.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - diff --git a/web-bak/src/views/Home.vue b/web-bak/src/views/Home.vue deleted file mode 100644 index ebf244e..0000000 --- a/web-bak/src/views/Home.vue +++ /dev/null @@ -1,765 +0,0 @@ - - - - - \ No newline at end of file diff --git a/web-bak/src/views/HomeTest.vue b/web-bak/src/views/HomeTest.vue deleted file mode 100644 index 17d66a5..0000000 --- a/web-bak/src/views/HomeTest.vue +++ /dev/null @@ -1,111 +0,0 @@ - - - - - diff --git a/web-bak/src/views/Login.vue b/web-bak/src/views/Login.vue deleted file mode 100644 index ab67de9..0000000 --- a/web-bak/src/views/Login.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/web-bak/test-split.html b/web-bak/test-split.html deleted file mode 100644 index a35cfd1..0000000 --- a/web-bak/test-split.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - 消息拆分测试 - - - -
-

消息拆分功能测试

- -
-

1. 测试聊天消息拆分

- -
-
- -
-

2. 获取会话消息列表

- - -
-
- -
-

3. 测试拆分接口

- - - -
-
-
- - - - diff --git a/web-bak/vite.config.js b/web-bak/vite.config.js deleted file mode 100644 index 0e04005..0000000 --- a/web-bak/vite.config.js +++ /dev/null @@ -1,61 +0,0 @@ -import { defineConfig, loadEnv } from 'vite' -import vue from '@vitejs/plugin-vue' -import { resolve } from 'path' - -export default defineConfig(({ mode }) => { - // 加载环境变量 - const env = loadEnv(mode, process.cwd(), '') - - return { - plugins: [vue()], - base: mode === 'production' ? '/emotion-museum/' : '/', - resolve: { - alias: { - '@': resolve(__dirname, 'src') - } - }, - server: { - port: 3000, - open: true, - proxy: { - // 所有API请求统一通过网关代理 - '/api': { - target: env.VITE_API_TARGET || 'http://localhost:19000', - changeOrigin: true, - secure: false, - rewrite: (path) => path.replace(/^\/api/, '') - }, - // 验证码服务通过网关代理 - '/captcha': { - target: env.VITE_API_TARGET || 'http://localhost:19000', - changeOrigin: true, - secure: false - }, - // OAuth服务通过网关代理 - '/oauth': { - target: env.VITE_API_TARGET || 'http://localhost:19000', - changeOrigin: true, - secure: false - } - } - }, - build: { - outDir: 'dist', - assetsDir: 'assets', - sourcemap: mode === 'development', - rollupOptions: { - output: { - chunkFileNames: 'assets/js/[name]-[hash].js', - entryFileNames: 'assets/js/[name]-[hash].js', - assetFileNames: 'assets/[ext]/[name]-[hash].[ext]' - } - } - }, - define: { - // 将环境变量注入到应用中 - __APP_ENV__: JSON.stringify(env.VITE_APP_ENV), - __API_BASE_URL__: JSON.stringify(env.VITE_API_BASE_URL), - __DEBUG_MODE__: JSON.stringify(env.VITE_DEBUG_MODE === 'true') - } - } -}) diff --git a/web-flowith/nginx.conf b/web-flowith/nginx.conf deleted file mode 100644 index c18c36b..0000000 --- a/web-flowith/nginx.conf +++ /dev/null @@ -1,127 +0,0 @@ -user nginx; -worker_processes auto; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; - -events { - worker_connections 1024; - use epoll; - multi_accept on; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - # 日志格式 - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - access_log /var/log/nginx/access.log main; - - # 基本设置 - sendfile on; - tcp_nopush on; - tcp_nodelay on; - keepalive_timeout 65; - types_hash_max_size 2048; - client_max_body_size 20M; - - # Gzip压缩 - gzip on; - gzip_vary on; - gzip_min_length 1024; - gzip_proxied any; - gzip_comp_level 6; - gzip_types - text/plain - text/css - text/xml - text/javascript - application/json - application/javascript - application/xml+rss - application/atom+xml - image/svg+xml; - - # 安全头 - add_header X-Frame-Options "SAMEORIGIN" always; - add_header X-XSS-Protection "1; mode=block" always; - add_header X-Content-Type-Options "nosniff" always; - add_header Referrer-Policy "no-referrer-when-downgrade" always; - add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always; - - server { - listen 80; - server_name localhost; - root /usr/share/nginx/html; - index index.html; - - # 开心APP前端应用配置 - location / { - try_files $uri $uri/ /index.html; - - # 缓存策略 - location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ { - expires 1y; - add_header Cache-Control "public, immutable"; - } - - location ~* \.(html)$ { - expires -1; - add_header Cache-Control "no-cache, no-store, must-revalidate"; - } - } - - # API代理(如果需要) - location /api/ { - proxy_pass http://backend:19001/; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - - # 超时设置 - proxy_connect_timeout 30s; - proxy_send_timeout 30s; - proxy_read_timeout 30s; - } - - # WebSocket代理(如果需要) - location /ws/ { - proxy_pass http://backend:19001/ws/; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - } - - # 健康检查 - location /health { - access_log off; - return 200 "healthy\n"; - add_header Content-Type text/plain; - } - - # 错误页面 - error_page 404 /index.html; - error_page 500 502 503 504 /50x.html; - - location = /50x.html { - root /usr/share/nginx/html; - } - - # 安全设置 - location ~ /\. { - deny all; - } - - location ~ ~$ { - deny all; - } - } -}