diff --git a/DOCKER_DEPLOY.md b/DOCKER_DEPLOY.md deleted file mode 100644 index a71c200..0000000 --- a/DOCKER_DEPLOY.md +++ /dev/null @@ -1,353 +0,0 @@ -# 若依项目 Docker 部署指南 - -## 概述 - -本文档说明如何使用 Docker 和 Docker Compose 部署若依项目,并通过子路径 `/ashai-wecom-test` 访问。 - -## 前提条件 - -- Docker 已安装(版本 20.10+) -- Docker Compose 已安装(版本 1.29+) -- 服务器 80 端口已被占用,需要使用其他端口(如 8081) - -## 项目结构 - -``` -wecom-dashboards/ -├── Dockerfile.backend # 后端 Dockerfile -├── docker-compose.yml # Docker Compose 编排文件 -├── ruoyi-ui/ -│ ├── Dockerfile # 前端 Dockerfile -│ └── nginx.conf # Nginx 配置文件 -├── ruoyi-admin/ -│ └── src/main/resources/ -│ ├── application.yml # 后端主配置 -│ └── application-prod.yml # 生产环境配置 -└── sql/ # 数据库初始化脚本 -``` - -## 配置说明 - -### 1. 前端配置 - -前端已配置为使用子路径 `/ashai-wecom-test`: - -- **vue.config.js**: `publicPath` 设置为 `/ashai-wecom-test` -- **.env.production**: `VUE_APP_BASE_API` 设置为 `/prod-api` -- **nginx.conf**: 配置了子路径访问和 API 代理 - -### 2. 后端配置 - -后端配置支持环境变量注入: - -- **数据库连接**: 通过环境变量 `SPRING_DATASOURCE_URL`、`SPRING_DATASOURCE_USERNAME`、`SPRING_DATASOURCE_PASSWORD` -- **Redis 连接**: 通过环境变量 `SPRING_REDIS_HOST`、`SPRING_REDIS_PORT` -- **上传路径**: 使用 Docker 卷挂载 `/home/ruoyi/uploadPath` - -### 3. Docker Compose 配置 - -包含以下服务: - -- **mysql**: MySQL 5.7 数据库 -- **redis**: Redis 6 缓存 -- **backend**: Spring Boot 后端服务 -- **frontend**: Nginx 前端服务 - -## 部署步骤 - -### 步骤 1: 准备数据库脚本 - -确保 `sql/` 目录下有数据库初始化脚本: - -```bash -cd Ruoyi-Vue-2/wecom-dashboards -ls sql/ -# 应该包含: ry_20250522.sql, quartz.sql, schema.sql 等 -``` - -### 步骤 2: 修改配置(可选) - -如果需要修改数据库密码或其他配置,编辑 `docker-compose.yml`: - -```yaml -services: - mysql: - environment: - MYSQL_ROOT_PASSWORD: your_password # 修改数据库密码 - - backend: - environment: - SPRING_DATASOURCE_PASSWORD: your_password # 同步修改 -``` - -### 步骤 3: 构建和启动服务 - -```bash -# 进入项目目录 -cd Ruoyi-Vue-2/wecom-dashboards - -# 构建并启动所有服务 -docker-compose up -d --build - -# 查看服务状态 -docker-compose ps - -# 查看日志 -docker-compose logs -f -``` - -### 步骤 4: 等待服务启动 - -首次启动需要等待: - -1. MySQL 初始化数据库(约 1-2 分钟) -2. 后端服务启动(约 30 秒) -3. 前端服务启动(约 10 秒) - -查看后端日志确认启动成功: - -```bash -docker-compose logs -f backend -# 看到 "Started RuoYiApplication" 表示启动成功 -``` - -### 步骤 5: 访问应用 - -前端服务运行在 8081 端口,通过以下 URL 访问: - -``` -http://your-server-ip:8081/ashai-wecom-test -``` - -默认登录账号: -- 用户名: `admin` -- 密码: `admin123` - -## 集成到现有 Nginx - -如果你的服务器 80 端口已经有 Nginx 在运行,可以通过反向代理将请求转发到容器: - -### 方案 1: Nginx 反向代理(推荐) - -在你现有的 Nginx 配置中添加: - -```nginx -# /etc/nginx/conf.d/ruoyi.conf 或在主配置文件中添加 - -server { - listen 80; - server_name your-domain.com; # 替换为你的域名 - - # 其他现有配置... - - # 若依项目代理 - location /ashai-wecom-test { - proxy_pass http://localhost:8081/ashai-wecom-test; - 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 600; - proxy_read_timeout 600; - } -} -``` - -重启 Nginx: - -```bash -nginx -t # 测试配置 -nginx -s reload # 重新加载配置 -``` - -现在可以通过以下 URL 访问: - -``` -http://your-domain.com/ashai-wecom-test -``` - -### 方案 2: 修改 Docker Compose 端口映射 - -如果不想使用反向代理,可以修改 `docker-compose.yml` 中的端口映射: - -```yaml -services: - frontend: - ports: - - "8081:80" # 改为其他未占用的端口 -``` - -## 常用命令 - -```bash -# 启动服务 -docker-compose up -d - -# 停止服务 -docker-compose down - -# 重启服务 -docker-compose restart - -# 查看日志 -docker-compose logs -f [service_name] - -# 进入容器 -docker-compose exec backend bash -docker-compose exec frontend sh - -# 重新构建并启动 -docker-compose up -d --build - -# 清理所有数据(包括数据库) -docker-compose down -v -``` - -## 数据持久化 - -Docker Compose 配置了以下数据卷: - -- `mysql-data`: MySQL 数据库文件 -- `redis-data`: Redis 持久化数据 -- `upload-data`: 文件上传目录 - -数据会持久化保存,即使容器重启也不会丢失。 - -## 备份和恢复 - -### 备份数据库 - -```bash -docker-compose exec mysql mysqldump -uroot -ppassword ruoyi > backup.sql -``` - -### 恢复数据库 - -```bash -docker-compose exec -T mysql mysql -uroot -ppassword ruoyi < backup.sql -``` - -### 备份上传文件 - -```bash -docker cp ruoyi-backend:/home/ruoyi/uploadPath ./uploadPath_backup -``` - -## 故障排查 - -### 1. 前端无法访问 - -检查前端容器日志: - -```bash -docker-compose logs frontend -``` - -确认 Nginx 配置正确: - -```bash -docker-compose exec frontend cat /etc/nginx/conf.d/default.conf -``` - -### 2. 后端无法连接数据库 - -检查后端日志: - -```bash -docker-compose logs backend -``` - -确认 MySQL 已启动: - -```bash -docker-compose ps mysql -``` - -进入 MySQL 容器检查: - -```bash -docker-compose exec mysql mysql -uroot -ppassword -e "SHOW DATABASES;" -``` - -### 3. API 请求失败 - -检查 Nginx 代理配置: - -```bash -docker-compose exec frontend cat /etc/nginx/conf.d/default.conf -``` - -确认后端服务可访问: - -```bash -curl http://localhost:8080/ -``` - -### 4. 前端静态资源 404 - -确认前端构建时 `publicPath` 配置正确: - -```bash -# 检查 vue.config.js -cat ruoyi-ui/vue.config.js | grep publicPath -``` - -确认 Nginx 中的文件路径: - -```bash -docker-compose exec frontend ls -la /usr/share/nginx/html/ashai-wecom-test -``` - -## 性能优化 - -### 1. 调整 JVM 参数 - -修改 `Dockerfile.backend`,在 `ENTRYPOINT` 中添加 JVM 参数: - -```dockerfile -ENTRYPOINT ["java", "-Xms512m", "-Xmx1024m", "-jar", "app.jar"] -``` - -### 2. 启用 Nginx Gzip - -前端 Dockerfile 已配置 gzip 压缩,确保 Nginx 配置中启用: - -```nginx -gzip on; -gzip_types text/plain text/css application/json application/javascript text/xml application/xml; -``` - -### 3. 调整数据库连接池 - -修改 `application-prod.yml` 中的 Druid 配置。 - -## 安全建议 - -1. **修改默认密码**: 修改 MySQL root 密码和应用管理员密码 -2. **配置 Redis 密码**: 在生产环境中为 Redis 设置密码 -3. **使用 HTTPS**: 配置 SSL 证书,使用 HTTPS 访问 -4. **限制端口访问**: 使用防火墙限制数据库和 Redis 端口的外部访问 -5. **定期备份**: 设置定时任务定期备份数据库和文件 - -## 更新部署 - -当代码更新后,重新部署: - -```bash -# 拉取最新代码 -git pull - -# 重新构建并启动 -docker-compose up -d --build - -# 查看日志确认启动成功 -docker-compose logs -f -``` - -## 联系支持 - -如有问题,请查看: - -- 若依官方文档: http://doc.ruoyi.vip -- Docker 官方文档: https://docs.docker.com -- 项目 README: ./README.md diff --git a/deploy/CONFIG-FILE.md b/deploy/CONFIG-FILE.md deleted file mode 100644 index 234cc3c..0000000 --- a/deploy/CONFIG-FILE.md +++ /dev/null @@ -1,180 +0,0 @@ -# 配置文件说明 - -## 外部配置文件方案 - -为了解决 Druid 配置无法通过环境变量覆盖的问题,我们使用外部配置文件方案。 - -## 文件结构 - -``` -deploy/backend/ -├── Dockerfile -├── entrypoint.sh -├── application-druid.yml # 外部配置文件 -└── ruoyi-admin.jar # 你的 jar 包 -``` - -## 配置文件说明 - -### application-druid.yml - -这个文件会覆盖 jar 包内的 `application-druid.yml` 配置。 - -**重要配置项**: - -```yaml -spring: - datasource: - druid: - master: - url: jdbc:mysql://host.docker.internal:3316/ry-vue?... - username: root - password: jiong1114 # 修改为你的密码 - - redis: - host: host.docker.internal - port: 6379 - password: # 如果有密码,填写这里 -``` - -### 修改配置 - -如果需要修改数据库连接信息,编辑 [application-druid.yml](backend/application-druid.yml): - -1. **数据库地址**: 修改 `master.url` -2. **数据库用户名**: 修改 `master.username` -3. **数据库密码**: 修改 `master.password` -4. **Redis 地址**: 修改 `redis.host` -5. **Redis 密码**: 修改 `redis.password` - -## 工作原理 - -Spring Boot 会按以下顺序加载配置(后面的会覆盖前面的): - -1. jar 包内的 `application.yml` -2. jar 包内的 `application-druid.yml` -3. jar 包外的 `application.yml`(如果存在) -4. jar 包外的 `application-druid.yml` ✅ **我们使用这个** - -## 重新部署 - -修改配置后,需要重新构建镜像: - -```bash -# 停止并删除旧容器 -docker stop wecom-backend -docker rm wecom-backend - -# 重新构建并启动 -cd deploy -docker compose up -d --build backend - -# 查看日志 -docker compose logs -f backend -``` - -## 不需要重新构建的方案 - -如果你想修改配置而不重新构建镜像,可以使用卷挂载: - -### 修改 docker-compose.yml - -```yaml -services: - backend: - volumes: - - upload_data:/home/ruoyi/uploadPath - - ./backend/application-druid.yml:/app/application-druid.yml # 挂载配置文件 -``` - -这样修改 `backend/application-druid.yml` 后,只需重启容器: - -```bash -docker compose restart backend -``` - -## 验证配置 - -### 1. 检查配置文件是否被复制 - -```bash -docker exec -it wecom-backend cat /app/application-druid.yml -``` - -### 2. 查看启动日志 - -```bash -docker compose logs backend | grep -i "datasource\|redis" -``` - -### 3. 测试数据库连接 - -```bash -# 进入容器 -docker exec -it wecom-backend sh - -# 测试 MySQL 连接(需要安装 telnet 或 nc) -nc -zv host.docker.internal 3316 - -# 测试 Redis 连接 -nc -zv host.docker.internal 6379 -``` - -## 常见问题 - -### 1. 配置文件没有生效 - -确认配置文件在正确的位置: -```bash -docker exec -it wecom-backend ls -la /app/ -``` - -应该看到 `application-druid.yml` 文件。 - -### 2. 数据库名称不匹配 - -确保 MySQL 中存在对应的数据库: -```bash -docker exec -it mysql-jijin-test mysql -uroot -pjiong1114 -e "SHOW DATABASES;" -``` - -如果没有 `ry-vue` 数据库,创建它: -```bash -docker exec -it mysql-jijin-test mysql -uroot -pjiong1114 -e "CREATE DATABASE IF NOT EXISTS \`ry-vue\` DEFAULT CHARACTER SET utf8mb4;" -``` - -### 3. 仍然报配置错误 - -检查 jar 包的 Spring Boot 版本和配置加载方式。某些版本可能需要使用 `--spring.config.location` 参数: - -修改 `entrypoint.sh`: -```bash -#!/bin/sh -exec java -Dspring.profiles.active=prod \ - --spring.config.location=classpath:/,file:/app/ \ - -jar app.jar -``` - -## 完整的部署流程 - -```bash -# 1. 准备文件 -deploy/backend/ -├── ruoyi-admin.jar # 你的 jar 包 -├── application-druid.yml # 已创建 -├── entrypoint.sh # 已创建 -└── Dockerfile # 已创建 - -# 2. 修改配置(如果需要) -vim deploy/backend/application-druid.yml - -# 3. 构建并启动 -cd deploy -docker compose up -d --build backend - -# 4. 查看日志 -docker compose logs -f backend - -# 5. 验证启动成功 -# 看到 "Started RuoYiApplication" 表示成功 -``` diff --git a/deploy/CONFIG.md b/deploy/CONFIG.md deleted file mode 100644 index 90dbe2e..0000000 --- a/deploy/CONFIG.md +++ /dev/null @@ -1,266 +0,0 @@ -# 使用现有 MySQL 和 Redis 容器的配置说明 - -## 📋 当前配置 - -你的现有容器: -- **MySQL**: `mysql-jijin-test` (端口 3316) -- **Redis**: `redis` (端口 6379) - -## 🔧 配置步骤 - -### 1. 修改 docker-compose.yml - -已经配置为使用 `host.docker.internal` 连接宿主机的容器。 - -关键配置: -```yaml -environment: - # MySQL 连接(注意端口是 3316) - - SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3316/ry-vue?... - - SPRING_DATASOURCE_USERNAME=root - - SPRING_DATASOURCE_PASSWORD=password # 修改为你的密码 - - # Redis 连接 - - SPRING_REDIS_HOST=host.docker.internal - - SPRING_REDIS_PORT=6379 - - SPRING_REDIS_PASSWORD= # 如果有密码,填写这里 - -extra_hosts: - - "host.docker.internal:host-gateway" # 允许容器访问宿主机 -``` - -### 2. 修改数据库配置 - -**重要**:请根据你的实际情况修改以下配置: - -#### 数据库名称 -默认使用 `ry-vue`,如果你的数据库名称不同,修改: -```yaml -SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3316/你的数据库名?... -``` - -#### 数据库密码 -修改为你的 MySQL root 密码: -```yaml -SPRING_DATASOURCE_PASSWORD=你的密码 -``` - -#### Redis 密码 -如果你的 Redis 设置了密码,修改: -```yaml -SPRING_REDIS_PASSWORD=你的redis密码 -``` - -### 3. 准备数据库 - -在你的 MySQL 容器中创建数据库并导入数据: - -```bash -# 方式 1: 进入 MySQL 容器 -docker exec -it mysql-jijin-test mysql -uroot -p - -# 创建数据库 -CREATE DATABASE IF NOT EXISTS `ry-vue` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; - -# 退出 -exit - -# 方式 2: 导入 SQL 文件 -docker exec -i mysql-jijin-test mysql -uroot -p你的密码 ry-vue < /path/to/your.sql -``` - -### 4. 启动服务 - -```bash -cd deploy -docker-compose up -d -``` - -## 🔍 验证连接 - -### 检查后端日志 -```bash -docker-compose logs -f backend -``` - -如果看到类似以下内容,说明连接成功: -``` -Started RuoYiApplication in X seconds -``` - -### 测试数据库连接 -```bash -# 进入后端容器 -docker exec -it wecom-backend sh - -# 测试 MySQL 连接 -wget -O- http://host.docker.internal:3316 2>&1 | grep -i mysql - -# 测试 Redis 连接 -ping host.docker.internal -``` - -## 🐛 常见问题 - -### 1. 无法连接到 host.docker.internal - -**Windows/Mac**: `host.docker.internal` 自动可用 - -**Linux**: 需要手动添加,已在 docker-compose.yml 中配置: -```yaml -extra_hosts: - - "host.docker.internal:host-gateway" -``` - -### 2. 数据库连接被拒绝 - -检查 MySQL 容器是否允许远程连接: - -```bash -# 进入 MySQL 容器 -docker exec -it mysql-jijin-test mysql -uroot -p - -# 检查用户权限 -SELECT host, user FROM mysql.user WHERE user='root'; - -# 如果 host 只有 localhost,需要授权 -GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '你的密码'; -FLUSH PRIVILEGES; -``` - -### 3. 端口连接错误 - -确认你的 MySQL 端口是 3316: -```bash -docker ps | grep mysql -``` - -如果端口不同,修改 docker-compose.yml 中的端口号。 - -### 4. Redis 连接失败 - -检查 Redis 是否允许远程连接: - -```bash -# 查看 Redis 配置 -docker exec -it redis redis-cli CONFIG GET bind - -# 如果绑定了 127.0.0.1,需要修改为 0.0.0.0 -docker exec -it redis redis-cli CONFIG SET bind "0.0.0.0" -``` - -## 🔄 替代方案:使用 Docker 网络 - -如果 `host.docker.internal` 不工作,可以让新容器加入现有容器的网络: - -### 1. 查看现有容器的网络 -```bash -docker inspect mysql-jijin-test | grep NetworkMode -docker inspect redis | grep NetworkMode -``` - -### 2. 修改 docker-compose.yml - -假设现有容器在 `bridge` 网络: - -```yaml -services: - backend: - # ... 其他配置 - environment: - # 直接使用容器名连接 - - SPRING_DATASOURCE_URL=jdbc:mysql://mysql-jijin-test:3306/ry-vue?... - - SPRING_REDIS_HOST=redis - networks: - - default - -networks: - default: - external: true - name: bridge # 或者你的网络名称 -``` - -### 3. 或者创建自定义网络 - -```bash -# 创建网络 -docker network create my-network - -# 将现有容器连接到网络 -docker network connect my-network mysql-jijin-test -docker network connect my-network redis - -# 修改 docker-compose.yml -networks: - wecom-network: - external: true - name: my-network -``` - -## 📝 完整配置示例 - -### docker-compose.yml(使用 host.docker.internal) - -```yaml -version: '3.8' - -services: - backend: - build: - context: ./backend - dockerfile: Dockerfile - container_name: wecom-backend - restart: always - ports: - - "8080:8080" - volumes: - - upload_data:/home/ruoyi/uploadPath - environment: - - SPRING_PROFILES_ACTIVE=prod - - TZ=Asia/Shanghai - - SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3316/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - - SPRING_DATASOURCE_USERNAME=root - - SPRING_DATASOURCE_PASSWORD=your_password - - SPRING_REDIS_HOST=host.docker.internal - - SPRING_REDIS_PORT=6379 - - SPRING_REDIS_PASSWORD= - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - wecom-network - - frontend: - build: - context: ./frontend - dockerfile: Dockerfile - container_name: wecom-frontend - restart: always - ports: - - "8081:80" - depends_on: - - backend - networks: - - wecom-network - -volumes: - upload_data: - driver: local - -networks: - wecom-network: - driver: bridge -``` - -## 🎯 快速检查清单 - -- [ ] 修改了 MySQL 密码配置 -- [ ] 修改了数据库名称(如果不是 ry-vue) -- [ ] 修改了 Redis 密码(如果有) -- [ ] 确认 MySQL 端口是 3316 -- [ ] 确认 Redis 端口是 6379 -- [ ] 在 MySQL 中创建了数据库 -- [ ] 导入了数据库初始化脚本 -- [ ] MySQL 允许远程连接 -- [ ] Redis 允许远程连接 - -完成以上检查后,运行 `docker-compose up -d` 即可启动服务。 diff --git a/deploy/DOCKER-IMAGE-FIX.md b/deploy/DOCKER-IMAGE-FIX.md deleted file mode 100644 index fe59aa6..0000000 --- a/deploy/DOCKER-IMAGE-FIX.md +++ /dev/null @@ -1,85 +0,0 @@ -# Docker 镜像问题说明 - -## 问题原因 - -`openjdk:8-jre-alpine` 镜像已被弃用,无法从 Docker Hub 拉取。 - -## 解决方案 - -已将 Dockerfile 中的基础镜像更改为 `eclipse-temurin:8-jre-alpine`。 - -### Eclipse Temurin 是什么? - -- Eclipse Temurin 是 OpenJDK 的官方继任者 -- 由 Eclipse Adoptium 项目维护 -- 完全兼容 OpenJDK -- 持续更新和维护 - -## 其他可用的 Java 8 镜像 - -如果 `eclipse-temurin:8-jre-alpine` 也无法拉取,可以尝试以下替代方案: - -### 1. Amazon Corretto(推荐) -```dockerfile -FROM amazoncorretto:8-alpine-jre -``` - -### 2. Eclipse Temurin(非 Alpine) -```dockerfile -FROM eclipse-temurin:8-jre -``` -注意:体积较大(约 200MB vs 85MB) - -### 3. Azul Zulu -```dockerfile -FROM azul/zulu-openjdk-alpine:8-jre -``` - -### 4. 使用国内镜像加速 - -如果网络问题导致拉取失败,可以配置 Docker 镜像加速器: - -#### 阿里云镜像加速 -```json -{ - "registry-mirrors": [ - "https://docker.m.daocloud.io", - "https://registry.docker-cn.com", - "https://docker.mirrors.ustc.edu.cn" - ] -} -``` - -配置位置: -- **Windows**: Docker Desktop -> Settings -> Docker Engine -- **Linux**: `/etc/docker/daemon.json` - -配置后重启 Docker: -```bash -# Linux -sudo systemctl restart docker - -# Windows -重启 Docker Desktop -``` - -## 当前配置 - -已修改 [backend/Dockerfile](backend/Dockerfile) 使用: -```dockerfile -FROM eclipse-temurin:8-jre-alpine -``` - -现在可以重新尝试构建: -```bash -docker compose up -d -``` - -## 如果仍然失败 - -1. 检查网络连接 -2. 配置镜像加速器 -3. 或者使用非 Alpine 版本(体积更大但更稳定): - ```dockerfile - FROM eclipse-temurin:8-jre - ``` diff --git a/deploy/NO-COMPOSE.md b/deploy/NO-COMPOSE.md deleted file mode 100644 index 0350e75..0000000 --- a/deploy/NO-COMPOSE.md +++ /dev/null @@ -1,204 +0,0 @@ -# 不使用 docker-compose 的部署方案 - -如果你没有安装 docker-compose,可以使用以下两种方式: - -## 方式 1: 使用 Docker Compose V2(推荐) - -Docker Desktop 和新版 Docker 已经内置了 Compose V2,命令是 `docker compose`(注意是空格,不是连字符)。 - -### 测试是否可用 -```bash -docker compose version -``` - -如果可用,只需将所有 `docker-compose` 命令改为 `docker compose`: - -```bash -# 启动服务 -docker compose up -d - -# 查看日志 -docker compose logs -f - -# 停止服务 -docker compose down -``` - -## 方式 2: 使用纯 Docker 命令 - -如果 `docker compose` 也不可用,可以使用纯 Docker 命令手动启动容器。 - -### 1. 创建网络 -```bash -docker network create wecom-network -``` - -### 2. 构建镜像 - -#### 构建后端镜像 -```bash -cd deploy/backend -docker build -t wecom-backend:latest . -cd ../.. -``` - -#### 构建前端镜像 -```bash -cd deploy/frontend -docker build -t wecom-frontend:latest . -cd ../.. -``` - -### 3. 启动容器 - -#### 启动后端容器 -```bash -docker run -d \ - --name wecom-backend \ - --restart always \ - --network wecom-network \ - -p 8080:8080 \ - -v wecom-upload-data:/home/ruoyi/uploadPath \ - -e SPRING_PROFILES_ACTIVE=prod \ - -e TZ=Asia/Shanghai \ - -e SPRING_DATASOURCE_URL="jdbc:mysql://host.docker.internal:3316/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8" \ - -e SPRING_DATASOURCE_USERNAME=root \ - -e SPRING_DATASOURCE_PASSWORD=你的MySQL密码 \ - -e SPRING_REDIS_HOST=host.docker.internal \ - -e SPRING_REDIS_PORT=6379 \ - -e SPRING_REDIS_PASSWORD= \ - --add-host host.docker.internal:host-gateway \ - wecom-backend:latest -``` - -#### 启动前端容器 -```bash -docker run -d \ - --name wecom-frontend \ - --restart always \ - --network wecom-network \ - -p 8081:80 \ - wecom-frontend:latest -``` - -### 4. 常用管理命令 - -```bash -# 查看运行中的容器 -docker ps - -# 查看所有容器(包括停止的) -docker ps -a - -# 查看后端日志 -docker logs -f wecom-backend - -# 查看前端日志 -docker logs -f wecom-frontend - -# 停止容器 -docker stop wecom-backend wecom-frontend - -# 启动容器 -docker start wecom-backend wecom-frontend - -# 重启容器 -docker restart wecom-backend wecom-frontend - -# 删除容器 -docker rm -f wecom-backend wecom-frontend - -# 删除网络 -docker network rm wecom-network - -# 删除数据卷 -docker volume rm wecom-upload-data -``` - -### 5. 更新部署 - -#### 更新后端 -```bash -# 停止并删除旧容器 -docker stop wecom-backend -docker rm wecom-backend - -# 重新构建镜像 -cd deploy/backend -docker build -t wecom-backend:latest . -cd ../.. - -# 启动新容器(使用上面的 docker run 命令) -docker run -d \ - --name wecom-backend \ - --restart always \ - --network wecom-network \ - -p 8080:8080 \ - -v wecom-upload-data:/home/ruoyi/uploadPath \ - -e SPRING_PROFILES_ACTIVE=prod \ - -e TZ=Asia/Shanghai \ - -e SPRING_DATASOURCE_URL="jdbc:mysql://host.docker.internal:3316/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8" \ - -e SPRING_DATASOURCE_USERNAME=root \ - -e SPRING_DATASOURCE_PASSWORD=你的MySQL密码 \ - -e SPRING_REDIS_HOST=host.docker.internal \ - -e SPRING_REDIS_PORT=6379 \ - -e SPRING_REDIS_PASSWORD= \ - --add-host host.docker.internal:host-gateway \ - wecom-backend:latest -``` - -#### 更新前端 -```bash -# 停止并删除旧容器 -docker stop wecom-frontend -docker rm wecom-frontend - -# 重新构建镜像 -cd deploy/frontend -docker build -t wecom-frontend:latest . -cd ../.. - -# 启动新容器 -docker run -d \ - --name wecom-frontend \ - --restart always \ - --network wecom-network \ - -p 8081:80 \ - wecom-frontend:latest -``` - -## 方式 3: 使用部署脚本(最简单) - -我可以为你创建一个 Shell 脚本,自动执行所有 Docker 命令。 - -### Windows (PowerShell) -创建 `deploy.ps1` 脚本 - -### Linux/Mac (Bash) -创建 `deploy.sh` 脚本 - -需要我创建这些脚本吗? - -## 🔍 检查 Docker Compose 可用性 - -```bash -# 检查 docker-compose(旧版) -docker-compose --version - -# 检查 docker compose(新版) -docker compose version - -# 检查 Docker 版本 -docker --version -``` - -## 📝 推荐方案 - -1. **最推荐**: 使用 `docker compose`(Docker Compose V2) -2. **次推荐**: 使用部署脚本(我可以帮你创建) -3. **备选**: 手动执行 docker 命令 - -你想使用哪种方式?我可以帮你: -- 测试 `docker compose` 是否可用 -- 创建自动化部署脚本 -- 提供完整的手动命令清单 diff --git a/deploy/PORT-CONFIG.md b/deploy/PORT-CONFIG.md deleted file mode 100644 index 64cb415..0000000 --- a/deploy/PORT-CONFIG.md +++ /dev/null @@ -1,181 +0,0 @@ -# 端口配置说明 - -## 当前端口配置 - -### 后端服务 -- **容器内端口**: 8888 -- **宿主机端口**: 8888 -- **访问地址**: `http://your-server-ip:8888` - -### 前端服务 -- **容器内端口**: 80 -- **宿主机端口**: 8889 -- **访问地址**: `http://your-server-ip:8889/ashai-wecom-test` - -## 配置文件位置 - -### 1. 后端端口配置 -**文件**: [backend/application-druid.yml](backend/application-druid.yml) -```yaml -server: - port: 8888 -``` - -### 2. Docker 端口映射 -**文件**: [docker-compose.yml](docker-compose.yml) -```yaml -services: - backend: - ports: - - "8888:8888" # 宿主机:容器 - - frontend: - ports: - - "8889:80" # 宿主机:容器 -``` - -### 3. Dockerfile 暴露端口 -**文件**: [backend/Dockerfile](backend/Dockerfile) -```dockerfile -EXPOSE 8888 -``` - -## 修改端口 - -如果需要修改端口,需要同时修改以上三个地方: - -### 示例:改为 9000 端口 - -1. **修改 application-druid.yml**: -```yaml -server: - port: 9000 -``` - -2. **修改 docker-compose.yml**: -```yaml -ports: - - "9000:9000" -``` - -3. **修改 Dockerfile**: -```dockerfile -EXPOSE 9000 -``` - -4. **修改 healthcheck**: -```yaml -healthcheck: - test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:9000/"] -``` - -## 重新部署 - -修改端口后需要重新构建: - -```bash -# 停止并删除旧容器 -docker stop wecom-backend wecom-frontend -docker rm wecom-backend wecom-frontend - -# 重新构建并启动 -cd deploy -docker compose up -d --build - -# 查看日志 -docker compose logs -f -``` - -## 验证端口 - -### 检查容器端口 -```bash -docker ps -``` - -应该看到类似: -``` -CONTAINER ID IMAGE PORTS -xxx deploy-backend 0.0.0.0:8888->8888/tcp -xxx deploy-frontend 0.0.0.0:8889->80/tcp -``` - -### 测试后端访问 -```bash -curl http://localhost:8888 -``` - -### 测试前端访问 -```bash -curl http://localhost:8889/ashai-wecom-test -``` - -## 常见问题 - -### 1. 端口被占用 - -如果启动时报错端口被占用: - -```bash -# 查看端口占用 -netstat -tulpn | grep 8888 - -# 或使用 lsof(Mac/Linux) -lsof -i :8888 - -# Windows -netstat -ano | findstr 8888 -``` - -解决方案: -- 停止占用端口的程序 -- 或修改为其他未占用的端口 - -### 2. 容器内外端口不一致 - -如果宿主机 8080 被占用,可以只修改宿主机端口: - -```yaml -ports: - - "9000:8888" # 宿主机 9000 映射到容器 8888 -``` - -这样: -- 容器内应用仍运行在 8888 -- 外部通过 9000 访问 - -### 3. 前端无法连接后端 - -确保前端 Nginx 配置中的后端地址正确: - -**文件**: [frontend/nginx.conf](frontend/nginx.conf) -```nginx -location /ashai-wecom-test/prod-api/ { - proxy_pass http://backend:8888/; # 使用容器名和容器内端口 - ... -} -``` - -注意: -- 容器间通信使用**容器名**和**容器内端口** -- 不是宿主机端口 - -## 完整的访问流程 - -``` -用户浏览器 - ↓ -http://server-ip:8889/ashai-wecom-test - ↓ -宿主机 8889 端口 - ↓ -前端容器 80 端口 (Nginx) - ↓ -API 请求: /ashai-wecom-test/prod-api/* - ↓ -Nginx 代理到: http://backend:8888/ - ↓ -后端容器 8888 端口 (Spring Boot) - ↓ -返回数据 -``` diff --git a/deploy/README.md b/deploy/README.md deleted file mode 100644 index 4a29898..0000000 --- a/deploy/README.md +++ /dev/null @@ -1,293 +0,0 @@ -# 简化版 Docker 部署指南 - -这是一个简化的 Docker 部署方案,直接使用已经打包好的 jar 包和 dist 文件,无需在容器内重新构建。 - -## 📁 目录结构 - -``` -deploy/ -├── docker-compose.yml # Docker Compose 配置文件 -├── backend/ # 后端部署目录 -│ ├── Dockerfile # 后端 Dockerfile -│ └── ruoyi-admin.jar # 【需要放置】后端 jar 包 -├── frontend/ # 前端部署目录 -│ ├── Dockerfile # 前端 Dockerfile -│ ├── nginx.conf # Nginx 配置文件 -│ └── dist/ # 【需要放置】前端打包文件 -└── sql/ # 【可选】数据库初始化脚本 - └── ry_20xx.sql -``` - -## 🚀 快速部署步骤 - -### 1. 准备文件 - -将以下文件上传到服务器的 `deploy` 目录: - -```bash -# 1. 将后端 jar 包放到 backend 目录 -deploy/backend/ruoyi-admin.jar - -# 2. 将前端 dist 文件夹放到 frontend 目录 -deploy/frontend/dist/ - -# 3. (可选)将数据库初始化脚本放到 sql 目录 -deploy/sql/ry_20xx.sql -``` - -### 2. 修改配置 - -编辑 `docker-compose.yml`,根据需要修改以下配置: - -```yaml -# MySQL 配置 -environment: - MYSQL_ROOT_PASSWORD: password # 修改为你的密码 - MYSQL_DATABASE: ry-vue # 数据库名称 - -# 端口配置(如果端口冲突,可以修改) -ports: - - "3306:3306" # MySQL - - "6379:6379" # Redis - - "8080:8080" # 后端 - - "8081:80" # 前端 -``` - -### 3. 启动服务 - -```bash -# 进入 deploy 目录 -cd deploy - -# 启动所有服务 -docker-compose up -d - -# 查看服务状态 -docker-compose ps - -# 查看日志 -docker-compose logs -f -``` - -### 4. 访问应用 - -- **前端地址**: `http://your-server-ip:8081/ashai-wecom-test` -- **后端 API**: `http://your-server-ip:8080` -- **默认账号**: admin / admin123 - -## 📝 常用命令 - -```bash -# 启动所有服务 -docker-compose up -d - -# 停止所有服务 -docker-compose down - -# 重启某个服务 -docker-compose restart backend -docker-compose restart frontend - -# 查看服务日志 -docker-compose logs -f backend -docker-compose logs -f frontend - -# 查看服务状态 -docker-compose ps - -# 进入容器 -docker exec -it wecom-backend sh -docker exec -it wecom-frontend sh - -# 重新构建并启动 -docker-compose up -d --build - -# 停止并删除所有容器、网络、数据卷 -docker-compose down -v -``` - -## 🔄 更新部署 - -### 更新后端 - -```bash -# 1. 停止后端服务 -docker-compose stop backend - -# 2. 替换 jar 包 -cp new-ruoyi-admin.jar backend/ruoyi-admin.jar - -# 3. 重新构建并启动 -docker-compose up -d --build backend -``` - -### 更新前端 - -```bash -# 1. 停止前端服务 -docker-compose stop frontend - -# 2. 替换 dist 文件 -rm -rf frontend/dist -cp -r new-dist frontend/dist - -# 3. 重新构建并启动 -docker-compose up -d --build frontend -``` - -## 🔧 配置说明 - -### 后端配置 - -后端使用 `--spring.profiles.active=prod` 启动,确保你的 jar 包中包含正确的生产环境配置: - -- 数据库连接:`jdbc:mysql://mysql:3306/ry-vue` -- Redis 连接:`redis://redis:6379` - -如果需要修改配置,可以通过环境变量或重新打包 jar。 - -### 前端配置 - -前端通过 Nginx 提供服务,配置文件在 [frontend/nginx.conf](frontend/nginx.conf): - -- 访问路径:`/ashai-wecom-test` -- API 代理:`/ashai-wecom-test/prod-api/` → `http://backend:8080/` - -### 数据库初始化 - -首次启动时,如果 `sql` 目录中有 `.sql` 文件,MySQL 会自动执行这些脚本。 - -如果需要手动导入: - -```bash -# 复制 SQL 文件到容器 -docker cp ry_20xx.sql wecom-mysql:/tmp/ - -# 进入 MySQL 容器 -docker exec -it wecom-mysql bash - -# 导入数据库 -mysql -uroot -ppassword ry-vue < /tmp/ry_20xx.sql -``` - -## 🌐 集成到现有 Nginx(80 端口) - -如果服务器 80 端口已有 Nginx,可以添加反向代理配置: - -```nginx -# 在你的 Nginx 配置中添加 -location /ashai-wecom-test { - proxy_pass http://localhost:8081/ashai-wecom-test; - 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; -} -``` - -然后重启 Nginx: - -```bash -nginx -t -nginx -s reload -``` - -## 🐛 故障排查 - -### 1. 后端无法连接数据库 - -```bash -# 检查 MySQL 是否启动 -docker-compose ps mysql - -# 查看 MySQL 日志 -docker-compose logs mysql - -# 检查网络连接 -docker exec -it wecom-backend ping mysql -``` - -### 2. 前端无法访问后端 API - -```bash -# 检查后端是否启动 -docker-compose ps backend - -# 查看后端日志 -docker-compose logs backend - -# 测试后端接口 -curl http://localhost:8080/ -``` - -### 3. 前端页面 404 - -```bash -# 检查 dist 文件是否正确放置 -docker exec -it wecom-frontend ls -la /usr/share/nginx/html/ashai-wecom-test - -# 查看 Nginx 日志 -docker-compose logs frontend - -# 检查 Nginx 配置 -docker exec -it wecom-frontend cat /etc/nginx/conf.d/default.conf -``` - -### 4. 端口被占用 - -```bash -# 查看端口占用 -netstat -tulpn | grep 8080 -netstat -tulpn | grep 8081 - -# 修改 docker-compose.yml 中的端口映射 -ports: - - "8082:8080" # 改为其他端口 -``` - -### 5. 容器启动失败 - -```bash -# 查看详细日志 -docker-compose logs -f - -# 检查容器状态 -docker-compose ps - -# 重新构建 -docker-compose down -docker-compose up -d --build -``` - -## 📊 数据持久化 - -所有数据都通过 Docker 卷持久化: - -- `mysql_data`: MySQL 数据 -- `redis_data`: Redis 数据 -- `upload_data`: 文件上传目录 - -即使删除容器,数据也不会丢失。如需完全清理: - -```bash -docker-compose down -v -``` - -## 🔒 安全建议 - -1. **修改默认密码**:修改 MySQL root 密码和应用管理员密码 -2. **限制端口访问**:使用防火墙限制数据库端口的外部访问 -3. **使用 HTTPS**:在生产环境配置 SSL 证书 -4. **定期备份**:定期备份数据库和上传文件 - -## 📈 性能优化 - -1. **调整 JVM 参数**:在 [backend/Dockerfile](backend/Dockerfile) 中添加 JVM 参数 -2. **配置 Nginx 缓存**:已在 [frontend/nginx.conf](frontend/nginx.conf) 中配置 -3. **数据库优化**:根据实际情况调整 MySQL 配置 - -## 💡 提示 - -- 首次启动可能需要等待 1-2 分钟,等待数据库初始化 -- 确保服务器有足够的内存(建议至少 2GB) -- 生产环境建议使用外部数据库,而不是容器内的数据库 diff --git a/deploy/TROUBLESHOOTING.md b/deploy/TROUBLESHOOTING.md deleted file mode 100644 index f1415ee..0000000 --- a/deploy/TROUBLESHOOTING.md +++ /dev/null @@ -1,184 +0,0 @@ -# 后端启动配置问题修复 - -## 问题描述 - -后端启动时报错: -``` -Could not resolve placeholder 'spring.datasource.druid.initialSize' -``` - -## 原因分析 - -若依项目使用了 Druid 数据源,配置在 `application-druid.yml` 中。环境变量无法直接覆盖 Druid 的嵌套配置属性。 - -## 解决方案 - -### 1. 创建启动脚本 - -已创建 [entrypoint.sh](backend/entrypoint.sh),使用 Java 系统属性覆盖配置: - -```bash -#!/bin/sh - -exec java \ - -Dspring.profiles.active=prod \ - -Dspring.datasource.druid.master.url="${SPRING_DATASOURCE_URL}" \ - -Dspring.datasource.druid.master.username="${SPRING_DATASOURCE_USERNAME}" \ - -Dspring.datasource.druid.master.password="${SPRING_DATASOURCE_PASSWORD}" \ - -Dspring.redis.host="${SPRING_REDIS_HOST}" \ - -Dspring.redis.port="${SPRING_REDIS_PORT}" \ - -jar app.jar -``` - -### 2. 修改 Dockerfile - -已修改 [backend/Dockerfile](backend/Dockerfile),使用启动脚本: - -```dockerfile -# 复制启动脚本 -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh - -# 启动应用 -ENTRYPOINT ["/entrypoint.sh"] -``` - -## 重新部署 - -### 1. 停止并删除旧容器 -```bash -docker stop wecom-backend -docker rm wecom-backend -``` - -### 2. 重新构建并启动 -```bash -cd deploy -docker compose up -d --build backend -``` - -### 3. 查看日志 -```bash -docker compose logs -f backend -``` - -## 验证启动成功 - -查看日志中是否有以下内容: -``` -Started RuoYiApplication in X seconds -``` - -## 其他可能的问题 - -### 1. 数据库连接失败 - -检查 MySQL 容器是否允许远程连接: -```bash -docker exec -it mysql-jijin-test mysql -uroot -p - -# 授权远程访问 -GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'jiong1114'; -FLUSH PRIVILEGES; -``` - -### 2. 数据库不存在 - -创建数据库: -```bash -docker exec -it mysql-jijin-test mysql -uroot -pjiong1114 - -CREATE DATABASE IF NOT EXISTS `ry-vue` DEFAULT CHARACTER SET utf8mb4; -``` - -### 3. Redis 连接失败 - -检查 Redis 是否允许远程连接: -```bash -docker exec -it redis redis-cli CONFIG GET bind - -# 如果绑定了 127.0.0.1,需要修改 -docker exec -it redis redis-cli CONFIG SET bind "0.0.0.0" -``` - -### 4. 端口配置不匹配 - -注意 docker-compose.yml 中配置的是 8888 端口: -```yaml -ports: - - "8888:8888" # 宿主机:容器 -``` - -但 Dockerfile 暴露的是 8080 端口。需要修改其中一个保持一致。 - -#### 方案 A: 修改 docker-compose.yml(推荐) -```yaml -ports: - - "8888:8080" # 宿主机 8888 映射到容器 8080 -``` - -#### 方案 B: 修改应用端口 -在 docker-compose.yml 中添加环境变量: -```yaml -environment: - - SERVER_PORT=8888 -``` - -## 完整的 docker-compose.yml 配置 - -```yaml -version: '3.8' - -services: - backend: - build: - context: ./backend - dockerfile: Dockerfile - container_name: wecom-backend - restart: always - ports: - - "8888:8080" # 宿主机 8888 映射到容器 8080 - volumes: - - upload_data:/home/ruoyi/uploadPath - environment: - - SPRING_PROFILES_ACTIVE=prod - - TZ=Asia/Shanghai - - SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3316/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - - SPRING_DATASOURCE_USERNAME=root - - SPRING_DATASOURCE_PASSWORD=jiong1114 - - SPRING_REDIS_HOST=host.docker.internal - - SPRING_REDIS_PORT=6379 - - SPRING_REDIS_PASSWORD= - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - wecom-network - healthcheck: - test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/"] - interval: 30s - timeout: 10s - retries: 3 - - frontend: - build: - context: ./frontend - dockerfile: Dockerfile - container_name: wecom-frontend - restart: always - ports: - - "8889:80" - depends_on: - - backend - networks: - - wecom-network - -volumes: - upload_data: - driver: local - -networks: - wecom-network: - driver: bridge -``` - -注意 healthcheck 中使用的是容器内部端口 8080。 diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml deleted file mode 100644 index 6048745..0000000 --- a/deploy/docker-compose.yml +++ /dev/null @@ -1,58 +0,0 @@ -version: '3.8' - -services: - # 后端服务 - backend: - build: - context: ./backend - dockerfile: Dockerfile - container_name: wecom-backend - restart: always - ports: - - "8888:8888" - volumes: - - upload_data:/home/ruoyi/uploadPath - environment: - - SPRING_PROFILES_ACTIVE=prod - - TZ=Asia/Shanghai - # 数据库连接配置(连接到宿主机的 MySQL 容器) - - SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3316/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - - SPRING_DATASOURCE_USERNAME=root - - SPRING_DATASOURCE_PASSWORD=jiong1114 - # Redis 连接配置(连接到宿主机的 Redis 容器) - - SPRING_REDIS_HOST=host.docker.internal - - SPRING_REDIS_PORT=6379 - - SPRING_REDIS_PASSWORD= - extra_hosts: - - "host.docker.internal:host-gateway" - networks: - - wecom-network - healthcheck: - test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8888/"] - interval: 30s - timeout: 10s - retries: 3 - - # 前端服务 - frontend: - build: - context: ./frontend - dockerfile: Dockerfile - container_name: wecom-frontend - restart: always - ports: - - "8889:80" - depends_on: - - backend - networks: - - wecom-network - -# 数据卷 -volumes: - upload_data: - driver: local - -# 网络 -networks: - wecom-network: - driver: bridge diff --git a/deploy/frontend/Dockerfile b/deploy/frontend/Dockerfile index c114340..679e772 100644 --- a/deploy/frontend/Dockerfile +++ b/deploy/frontend/Dockerfile @@ -3,7 +3,7 @@ FROM nginx:alpine # 复制 dist 文件到 Nginx 的子路径目录 # 使用时将 dist 目录放在与 Dockerfile 同级目录 -COPY dist /usr/share/nginx/html/ashai-wecom-test +COPY dist /usr/share/nginx/html # 复制 Nginx 配置文件 COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/deploy/frontend/nginx.conf b/deploy/frontend/nginx.conf index 5341a84..e08d231 100644 --- a/deploy/frontend/nginx.conf +++ b/deploy/frontend/nginx.conf @@ -28,9 +28,9 @@ server { } # 前端静态文件路径(带项目路径前缀) - location /ashai-wecom-test { - alias /usr/share/nginx/html/ashai-wecom-test; - try_files $uri $uri/ /ashai-wecom-test/index.html; + location { + alias /usr/share/nginx/html; + try_files $uri $uri/ /index.html; index index.html; # 静态资源缓存配置 @@ -41,7 +41,7 @@ server { } # API 代理到后端(带项目路径前缀) - location /ashai-wecom-test/prod-api/ { + location /prod-api/ { proxy_pass http://backend:8888/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -59,12 +59,12 @@ server { # 根路径重定向到项目路径 location = / { - return 301 /ashai-wecom-test/; + return 301 /; } # 其他所有路径都尝试从项目目录加载(支持 Vue Router History 模式) location / { - root /usr/share/nginx/html/ashai-wecom-test; + root /usr/share/nginx/html; try_files $uri $uri/ /index.html; index index.html; diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 4b8369c..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,79 +0,0 @@ -version: '3.8' - -services: - # MySQL 数据库 - mysql: - image: mysql:5.7 - container_name: ruoyi-mysql - environment: - MYSQL_ROOT_PASSWORD: password - MYSQL_DATABASE: ruoyi - TZ: Asia/Shanghai - ports: - - "3306:3306" - volumes: - - mysql-data:/var/lib/mysql - - ./sql:/docker-entrypoint-initdb.d - command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci - networks: - - ruoyi-network - restart: unless-stopped - - # Redis 缓存 - redis: - image: redis:6-alpine - container_name: ruoyi-redis - ports: - - "6379:6379" - volumes: - - redis-data:/data - networks: - - ruoyi-network - restart: unless-stopped - - # 后端服务 - backend: - build: - context: . - dockerfile: Dockerfile.backend - container_name: ruoyi-backend - environment: - SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/ruoyi?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - SPRING_DATASOURCE_USERNAME: root - SPRING_DATASOURCE_PASSWORD: password - SPRING_REDIS_HOST: redis - SPRING_REDIS_PORT: 6379 - SERVER_SERVLET_CONTEXT_PATH: / - ports: - - "8080:8080" - volumes: - - upload-data:/home/ruoyi/uploadPath - depends_on: - - mysql - - redis - networks: - - ruoyi-network - restart: unless-stopped - - # 前端 Nginx - frontend: - build: - context: ./ruoyi-ui - dockerfile: Dockerfile - container_name: ruoyi-frontend - ports: - - "8081:80" - depends_on: - - backend - networks: - - ruoyi-network - restart: unless-stopped - -networks: - ruoyi-network: - driver: bridge - -volumes: - mysql-data: - redis-data: - upload-data: diff --git a/excel-handle/CUSTOMER_DATA_TRACKING_GUIDE.md b/excel-handle/CUSTOMER_DATA_TRACKING_GUIDE.md deleted file mode 100644 index e2cdb3d..0000000 --- a/excel-handle/CUSTOMER_DATA_TRACKING_GUIDE.md +++ /dev/null @@ -1,316 +0,0 @@ -# 客户数据变更追踪系统使用说明 - -## 一、系统概述 - -客户数据变更追踪系统是一个用于记录和追踪客户数据变更历史的功能模块。该系统能够: - -1. **自动记录数据变更**:每次客户数据发生变化时,自动保存完整的数据快照 -2. **版本管理**:为每个客户的数据维护版本号,支持查看历史版本 -3. **字段级变更追踪**:详细记录每个字段的变更内容(旧值→新值) -4. **数据指纹识别**:通过MD5哈希快速判断数据是否真正发生变化 - -## 二、系统架构 - -### 2.1 数据库表结构 - -系统包含两个核心数据表: - -#### 1. customer_export_data_history(客户数据历史记录表) -- 保存客户数据的每个版本快照 -- 包含完整的客户信息字段 -- 记录变更类型(INSERT/UPDATE/DELETE)和变更时间 -- 使用数据指纹(MD5)快速判断数据是否变更 - -#### 2. customer_data_change_log(客户数据变更日志表) -- 记录每个字段的具体变更内容 -- 包含字段名称、字段标签、旧值、新值 -- 关联历史记录表,支持按版本查询变更详情 - -### 2.2 核心类说明 - -#### 实体类 -- `CustomerExportDataHistory`:历史记录实体类 -- `CustomerDataChangeLog`:变更日志实体类 - -#### Mapper接口 -- `CustomerExportDataHistoryMapper`:历史记录数据访问接口 -- `CustomerDataChangeLogMapper`:变更日志数据访问接口 - -#### 服务类 -- `CustomerDataTrackingService`:数据变更追踪核心服务 - - `trackDataChange()`:追踪数据变更 - - `compareAndLogChanges()`:比较数据并记录变更 - - `calculateDataFingerprint()`:计算数据指纹 - -## 三、部署步骤 - -### 3.1 执行数据库脚本 - -执行SQL脚本创建数据表: - -```bash -# 脚本位置 -src/main/resources/sql/customer_data_tracking.sql -``` - -该脚本会创建: -- `customer_export_data_history` 表 -- `customer_data_change_log` 表 -- 为 `customer_export_data` 表的 `customer_name` 字段添加索引 - -### 3.2 验证Mapper配置 - -确认以下Mapper XML文件已正确配置: - -1. `CustomerExportDataMapper.xml` - - 已添加 `selectByCustomerName` 方法 - -2. `CustomerExportDataHistoryMapper.xml` - - 包含版本查询、历史记录查询等方法 - -3. `CustomerDataChangeLogMapper.xml` - - 包含变更日志查询、批量插入等方法 - -### 3.3 配置Spring Bean - -确保以下服务类已注册为Spring Bean(已使用@Service注解): -- `CustomerDataTrackingService` - -## 四、使用方法 - -### 4.1 自动追踪(推荐) - -系统已集成到 `CustomerExportService` 中,在以下场景会自动追踪数据变更: - -#### 场景1:导入Excel数据 -```java -// 在 importExcelData() 方法中 -// 系统会自动为每条新增或更新的数据创建历史记录 -customerExportService.importExcelData(file); -``` - -**追踪逻辑**: -- 新增数据:创建 INSERT 类型的历史记录(版本号=1) -- 更新数据:比较新旧数据,如有变化则创建 UPDATE 类型的历史记录(版本号递增) -- 无变化:不创建历史记录(通过数据指纹判断) - -### 4.2 手动追踪 - -如果需要在其他地方手动追踪数据变更: - -```java -@Autowired -private CustomerDataTrackingService trackingService; - -// 追踪数据变更 -trackingService.trackDataChange(newData, "INSERT"); // 新增 -trackingService.trackDataChange(newData, "UPDATE"); // 更新 -trackingService.trackDataChange(oldData, "DELETE"); // 删除 -``` - -### 4.3 查询历史记录 - -#### 查询客户的所有历史版本 -```java -@Autowired -private CustomerExportDataHistoryMapper historyMapper; - -// 查询某个客户的所有历史记录 -List historyList = - historyMapper.selectHistoryByCustomerId(customerId); -``` - -#### 查询特定版本的数据 -```java -// 查询客户的第2个版本 -CustomerExportDataHistory history = - historyMapper.selectByCustomerIdAndVersion(customerId, 2); -``` - -#### 查询最新版本号 -```java -// 获取客户的最大版本号 -Integer maxVersion = - historyMapper.selectMaxVersionByCustomerId(customerId); -``` - -### 4.4 查询变更日志 - -#### 查询客户的所有变更记录 -```java -@Autowired -private CustomerDataChangeLogMapper changeLogMapper; - -// 查询某个客户的所有变更日志 -List changeLogs = - changeLogMapper.selectChangeLogByCustomerId(customerId); -``` - -#### 查询特定版本的变更详情 -```java -// 查询客户第2个版本的变更内容 -List changeLogs = - changeLogMapper.selectChangeLogByCustomerIdAndVersion(customerId, 2); -``` - -## 五、数据示例 - -### 5.1 历史记录示例 - -| history_id | customer_id | version | change_type | change_time | customer_name | mobile | ... | -|------------|-------------|---------|-------------|-------------|---------------|--------|-----| -| 1 | 100 | 1 | INSERT | 2024-01-01 10:00:00 | 张三 | 13800138000 | ... | -| 2 | 100 | 2 | UPDATE | 2024-01-02 14:30:00 | 张三 | 13900139000 | ... | -| 3 | 100 | 3 | UPDATE | 2024-01-03 09:15:00 | 张三 | 13900139000 | ... | - -### 5.2 变更日志示例 - -| log_id | customer_id | version | field_name | field_label | old_value | new_value | change_time | -|--------|-------------|---------|------------|-------------|-----------|-----------|-------------| -| 1 | 100 | 2 | mobile | 手机号 | 13800138000 | 13900139000 | 2024-01-02 14:30:00 | -| 2 | 100 | 3 | company | 公司名称 | ABC公司 | XYZ公司 | 2024-01-03 09:15:00 | -| 3 | 100 | 3 | position | 职位 | 经理 | 总监 | 2024-01-03 09:15:00 | - -## 六、常见查询SQL - -### 6.1 查询某个客户的所有历史版本 -```sql -SELECT * -FROM customer_export_data_history -WHERE customer_id = 100 -ORDER BY version DESC; -``` - -### 6.2 查询某个客户的所有变更日志 -```sql -SELECT * -FROM customer_data_change_log -WHERE customer_id = 100 -ORDER BY change_time DESC; -``` - -### 6.3 查询某个版本的具体变更内容 -```sql -SELECT * -FROM customer_data_change_log -WHERE customer_id = 100 AND version = 2; -``` - -### 6.4 查询最近的变更记录(所有客户) -```sql -SELECT * -FROM customer_data_change_log -ORDER BY change_time DESC -LIMIT 100; -``` - -### 6.5 统计每个客户的版本数量 -```sql -SELECT customer_id, COUNT(*) as version_count -FROM customer_export_data_history -GROUP BY customer_id; -``` - -### 6.6 查询某个时间段内的所有变更 -```sql -SELECT * -FROM customer_data_change_log -WHERE change_time BETWEEN '2024-01-01' AND '2024-01-31' -ORDER BY change_time DESC; -``` - -## 七、性能优化建议 - -### 7.1 索引优化 -系统已为关键字段创建索引: -- `customer_export_data.customer_name`:用于快速查找客户 -- `customer_export_data_history.customer_id`:用于查询历史记录 -- `customer_export_data_history.version`:用于版本查询 -- `customer_data_change_log.customer_id`:用于查询变更日志 - -### 7.2 数据指纹机制 -- 使用MD5哈希值快速判断数据是否变更 -- 避免为未变更的数据创建历史记录 -- 减少数据库写入操作 - -### 7.3 批量操作 -- 变更日志支持批量插入(`batchInsert`方法) -- 减少数据库交互次数 - -## 八、注意事项 - -### 8.1 数据一致性 -- 历史记录和变更日志在同一个事务中创建 -- 确保数据的一致性和完整性 - -### 8.2 存储空间 -- 历史记录表会保存完整的数据快照 -- 随着时间推移,数据量会持续增长 -- 建议定期归档或清理过期数据 - -### 8.3 性能影响 -- 每次数据变更都会触发历史记录创建 -- 对于大批量导入,会增加一定的处理时间 -- 通过数据指纹机制减少不必要的记录 - -### 8.4 字段映射 -- 确保实体类字段名与数据库字段名一致 -- 变更日志中的 `field_label` 使用中文标签,便于阅读 - -## 九、扩展功能建议 - -### 9.1 数据回滚 -可以基于历史记录实现数据回滚功能: -```java -// 将数据回滚到指定版本 -public void rollbackToVersion(Long customerId, Integer version) { - CustomerExportDataHistory history = - historyMapper.selectByCustomerIdAndVersion(customerId, version); - // 将历史数据复制到当前数据表 - // ... -} -``` - -### 9.2 变更统计报表 -可以基于变更日志生成统计报表: -- 每日变更数量统计 -- 高频变更字段分析 -- 用户操作行为分析 - -### 9.3 变更通知 -可以在数据变更时发送通知: -- 邮件通知 -- 系统消息通知 -- 钉钉/企业微信通知 - -### 9.4 数据对比界面 -可以开发前端界面展示: -- 版本对比视图 -- 变更时间线 -- 字段变更高亮显示 - -## 十、故障排查 - -### 10.1 历史记录未创建 -检查项: -1. 数据库表是否正确创建 -2. Mapper XML配置是否正确 -3. 事务是否正常提交 -4. 日志中是否有异常信息 - -### 10.2 变更日志为空 -检查项: -1. 数据是否真正发生变化(通过数据指纹判断) -2. `compareAndLogChanges` 方法是否正常执行 -3. 字段比较逻辑是否正确 - -### 10.3 性能问题 -优化方案: -1. 检查索引是否生效 -2. 考虑异步处理历史记录创建 -3. 批量导入时使用批处理 -4. 定期清理过期数据 - -## 十一、联系支持 - -如有问题或建议,请联系开发团队。 diff --git a/excel-handle/sql/all_tables.sql b/excel-handle/sql/all_tables.sql index cd61902..d50e826 100644 --- a/excel-handle/sql/all_tables.sql +++ b/excel-handle/sql/all_tables.sql @@ -5,12 +5,26 @@ -- ============================================= -- 1. 企业组织架构相关表 -- ============================================= +-- 企业部门表 +DROP TABLE IF EXISTS `corp_info`; + +CREATE TABLE `corp_info` ( + `id` BIGINT(20) NOT NULL COMMENT '部门ID(企业微信部门ID)', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业微信公司id', + + `secret` BIGINT(20) DEFAULT NULL COMMENT '企业微信秘钥', + `name` BIGINT(20) DEFAULT NULL COMMENT '企业名称', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='企业信息'; + -- 企业部门表 DROP TABLE IF EXISTS `corp_department`; CREATE TABLE `corp_department` ( `id` BIGINT(20) NOT NULL COMMENT '部门ID(企业微信部门ID)', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `parentid` BIGINT(20) DEFAULT NULL COMMENT '父部门ID', `order_no` BIGINT(20) DEFAULT NULL COMMENT '部门排序', `name` VARCHAR(200) NOT NULL COMMENT '部门名称', @@ -27,6 +41,8 @@ DROP TABLE IF EXISTS `corp_user`; CREATE TABLE `corp_user` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `userid` VARCHAR(100) NOT NULL COMMENT '员工ID(企业微信userid)', `depart_id` BIGINT(20) DEFAULT NULL COMMENT '主部门ID', `department_ids` VARCHAR(500) DEFAULT NULL COMMENT '所属部门ID列表(JSON格式)', @@ -54,8 +70,11 @@ CREATE TABLE `corp_user` ( DROP TABLE IF EXISTS `customer_export_data`; CREATE TABLE `customer_export_data` ( + `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', `customer_name` VARCHAR(100) DEFAULT NULL COMMENT '客户姓名', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `description` TEXT DEFAULT NULL COMMENT '描述/备注', `gender` INT(11) DEFAULT NULL COMMENT '性别', `add_user_name` VARCHAR(100) DEFAULT NULL COMMENT '添加人姓名', @@ -103,7 +122,10 @@ CREATE TABLE `customer_export_data` ( DROP TABLE IF EXISTS `customer_export_data_history`; CREATE TABLE `customer_export_data_history` ( + `history_id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '历史记录主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `customer_id` BIGINT(20) NOT NULL COMMENT '关联的客户数据ID', `version` INT(11) NOT NULL DEFAULT 1 COMMENT '数据版本号', `data_fingerprint` VARCHAR(64) DEFAULT NULL COMMENT '数据指纹(MD5)', @@ -156,6 +178,8 @@ DROP TABLE IF EXISTS `customer_data_change_log`; CREATE TABLE `customer_data_change_log` ( `log_id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `history_id` BIGINT(20) NOT NULL COMMENT '关联的历史记录ID', `customer_id` BIGINT(20) NOT NULL COMMENT '关联的客户数据ID', `field_name` VARCHAR(100) NOT NULL COMMENT '变更字段名称(英文)', @@ -182,6 +206,8 @@ DROP TABLE IF EXISTS `customer_contact_data`; CREATE TABLE `customer_contact_data` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `stat_time` BIGINT(20) DEFAULT NULL COMMENT '统计时间戳(秒)', `stat_date` DATE DEFAULT NULL COMMENT '统计日期', `chat_cnt` INT(11) DEFAULT 0 COMMENT '聊天次数', @@ -207,6 +233,8 @@ DROP TABLE IF EXISTS `customer_statistics_data`; CREATE TABLE `customer_statistics_data` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `cur_date` DATE DEFAULT NULL COMMENT '统计日期', `indicator_name` VARCHAR(100) DEFAULT NULL COMMENT '重要指标名称', `ntf_group` VARCHAR(50) DEFAULT NULL COMMENT 'N组(投放)', @@ -235,6 +263,8 @@ DROP TABLE IF EXISTS `department_statistics_data`; CREATE TABLE `department_statistics_data` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `corp_id` VARCHAR(200) DEFAULT NULL COMMENT '企业id', + `stat_date` DATE NOT NULL COMMENT '统计日期', `department_path` VARCHAR(500) NOT NULL COMMENT '部门路径(完整层级路径)', `daily_total_accepted` INT(11) DEFAULT 0 COMMENT '当日总承接数', diff --git a/excel-handle/sql/wecom_menu.sql b/excel-handle/sql/wecom_menu.sql index 65200e7..87dd1c0 100644 --- a/excel-handle/sql/wecom_menu.sql +++ b/excel-handle/sql/wecom_menu.sql @@ -1,73 +1,15 @@ --- 菜单 SQL --- 企业微信统计管理父菜单 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('企业微信统计', 0, 5, 'wecom', NULL, 1, 0, 'M', '0', '0', '', 'chart', 'admin', sysdate(), '', NULL, '企业微信统计管理目录'); - --- 获取刚插入的父菜单ID(假设为2000,实际使用时需要查询获取) -SELECT @parent_id := menu_id FROM sys_menu WHERE menu_name = '企业微信统计' AND parent_id = 0; - --- 客户导出数据菜单 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户列表数据', @parent_id, 4, 'customerExport', 'wecom/customerExport/index', 1, 0, 'C', '0', '0', 'wecom:customerExport:list', 'download', 'admin', sysdate(), '', NULL, '客户导出数据菜单'); - --- 客户联系统计数据菜单 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户联系统计', @parent_id, 2, 'customerContact', 'wecom/customerContact/index', 1, 0, 'C', '0', '0', 'wecom:customerContact:list', 'peoples', 'admin', sysdate(), '', NULL, '客户联系统计数据菜单'); - --- 客户统计数据菜单 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('流量看板数据', @parent_id, 1, 'customerStatistics', 'wecom/customerStatistics/index', 1, 0, 'C', '0', '0', 'wecom:customerStatistics:list', 'table', 'admin', sysdate(), '', NULL, '流量看板数据菜单'); - --- 部门统计数据菜单 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('销售看板数据', @parent_id, 3, 'departmentStatistics', 'wecom/departmentStatistics/index', 1, 0, 'C', '0', '0', 'wecom:departmentStatistics:list', 'tree-table', 'admin', sysdate(), '', NULL, '销售看板数据菜单'); - --- 获取刚插入的父菜单ID(假设为2000,实际使用时需要查询获取) -SELECT @parent_id := menu_id FROM sys_menu WHERE menu_name = '流量看板数据' AND parent_id = 0; - --- 客户统计数据查询按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('流量看板数据查询', @parent_id, 1, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerStatistics:query', '#', 'admin', sysdate(), '', NULL, ''); - --- 客户统计数据导出按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('流量看板数据导出', @parent_id, 2, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerStatistics:export', '#', 'admin', sysdate(), '', NULL, ''); - --- 获取刚插入的父菜单ID(假设为2000,实际使用时需要查询获取) -SELECT @parent_id := menu_id FROM sys_menu WHERE menu_name = '客户联系统计' AND parent_id = 0; - - - --- 客户联系统计数据查询按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户联系统计查询', @parent_id, 1, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerContact:query', '#', 'admin', sysdate(), '', NULL, ''); - --- 客户联系统计数据导出按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户联系统计导出', @parent_id, 2, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerContact:export', '#', 'admin', sysdate(), '', NULL, ''); - - --- 获取刚插入的父菜单ID(假设为2000,实际使用时需要查询获取) -SELECT @parent_id := menu_id FROM sys_menu WHERE menu_name = '销售看板数据' AND parent_id = 0; - - --- 部门统计数据查询按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('销售看板数据查询', @parent_id, 1, '#', '', 1, 0, 'F', '0', '0', 'wecom:departmentStatistics:query', '#', 'admin', sysdate(), '', NULL, ''); - --- 部门统计数据导出按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('销售看板数据导出', @parent_id, 2, '#', '', 1, 0, 'F', '0', '0', 'wecom:departmentStatistics:export', '#', 'admin', sysdate(), '', NULL, ''); - --- 获取刚插入的父菜单ID(假设为2000,实际使用时需要查询获取) -SELECT @parent_id := menu_id FROM sys_menu WHERE menu_name = '客户列表数据' AND parent_id = 0; - --- 客户导出数据查询按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户列表数据查询', @parent_id, 1, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerExport:query', '#', 'admin', sysdate(), '', NULL, ''); - --- 客户导出数据导出按钮 -INSERT INTO sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark) -VALUES ('客户列表数据导出', @parent_id, 2, '#', '', 1, 0, 'F', '0', '0', 'wecom:customerExport:export', '#', 'admin', sysdate(), '', NULL, ''); - +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2000, '企业微信统计', 0, 5, 'wecom', NULL, NULL, '', 1, 0, 'M', '0', '0', '', 'chart', 'admin', '2026-02-07 15:39:03', '', NULL, '企业微信统计管理目录'); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2001, '客户列表数据', 2000, 4, 'customerExport', 'wecom/customerExport/index', NULL, '', 1, 0, 'C', '0', '0', 'wecom:customerExport:list', 'download', 'admin', '2026-02-07 15:39:03', '', NULL, '客户导出数据菜单'); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2002, '客户联系统计', 2000, 2, 'customerContact', 'wecom/customerContact/index', NULL, '', 1, 0, 'C', '0', '0', 'wecom:customerContact:list', 'peoples', 'admin', '2026-02-07 15:39:03', '', NULL, '客户联系统计数据菜单'); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2003, '流量看板数据', 2000, 1, 'customerStatistics', 'wecom/customerStatistics/index', NULL, '', 1, 0, 'C', '0', '0', 'wecom:customerStatistics:list', 'table', 'admin', '2026-02-07 15:39:03', '', NULL, '流量看板数据菜单'); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2004, '销售看板数据', 2000, 3, 'departmentStatistics', 'wecom/departmentStatistics/index', NULL, '', 1, 0, 'C', '0', '0', 'wecom:departmentStatistics:list', 'tree-table', 'admin', '2026-02-07 15:39:03', '', NULL, '销售看板数据菜单'); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2005, '流量看板数据查询', 2003, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerStatistics:query', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2006, '流量看板数据导出', 2003, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerStatistics:export', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2007, '客户联系统计查询', 2002, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerContact:query', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2008, '客户联系统计导出', 2002, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerContact:export', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2009, '销售看板数据查询', 2004, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:departmentStatistics:query', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2010, '销售看板数据导出', 2004, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:departmentStatistics:export', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2011, '客户列表数据查询', 2001, 1, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerExport:query', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (2012, '客户列表数据导出', 2001, 2, '#', '', NULL, '', 1, 0, 'F', '0', '0', 'wecom:customerExport:export', '#', 'admin', '2026-02-07 15:39:03', '', NULL, ''); +INSERT INTO `excel-handle`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `route_name`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (3000, '企业信息', 2000, 4, 'corpInfo', 'wecom/corpinfo/index', NULL, '', 1, 0, 'C', '0', '0', 'wecom:corpInfo:list', 'download', 'admin', '2026-02-07 15:39:03', '', NULL, '企业信息'); diff --git a/excel-handle/src/main/java/com/ruoyi/excel/wecom/helper/HandleAllData.java b/excel-handle/src/main/java/com/ruoyi/excel/wecom/helper/HandleAllData.java index dde658c..0e0b23c 100644 --- a/excel-handle/src/main/java/com/ruoyi/excel/wecom/helper/HandleAllData.java +++ b/excel-handle/src/main/java/com/ruoyi/excel/wecom/helper/HandleAllData.java @@ -116,8 +116,6 @@ import java.util.concurrent.atomic.AtomicInteger; } catch (IOException e) { throw new RuntimeException(e); } finally { - // 清理主线程的上下文 - CorpContextHolder.clear(); } }); diff --git a/excel-handle/src/main/java/com/ruoyi/excel/wecom/model/WecomConfig.java b/excel-handle/src/main/java/com/ruoyi/excel/wecom/model/WecomConfig.java deleted file mode 100644 index b865ec4..0000000 --- a/excel-handle/src/main/java/com/ruoyi/excel/wecom/model/WecomConfig.java +++ /dev/null @@ -1,55 +0,0 @@ -package com.ruoyi.excel.wecom.model; - -import org.springframework.context.annotation.Configuration; - -/** - * 企业微信配置类 - */ -@Configuration -public class WecomConfig { - private String corpId = "ww4f2fd849224439be"; - private String corpSecret = "gsRCPzJuKsmxQVQlOjZWgYVCQMvNvliuUSJSbK8AWzk"; - private String accessToken; - private long accessTokenExpireTime; - - public String getCorpId() { - return corpId; - } - - public void setCorpId(String corpId) { - this.corpId = corpId; - } - - public String getCorpSecret() { - return corpSecret; - } - - public void setCorpSecret(String corpSecret) { - this.corpSecret = corpSecret; - } - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - public long getAccessTokenExpireTime() { - return accessTokenExpireTime; - } - - public void setAccessTokenExpireTime(long accessTokenExpireTime) { - this.accessTokenExpireTime = accessTokenExpireTime; - } - - /** - * 检查accessToken是否过期 - * - * @return 是否过期 - */ - public boolean isAccessTokenExpired() { - return System.currentTimeMillis() > accessTokenExpireTime; - } -} \ No newline at end of file diff --git a/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomBaseService.java b/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomBaseService.java index 8e5e19e..6155f5c 100644 --- a/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomBaseService.java +++ b/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomBaseService.java @@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONObject; import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.utils.spring.SpringUtils; import com.ruoyi.excel.wecom.domain.CorpInfo; -import com.ruoyi.excel.wecom.model.WecomConfig; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; @@ -22,17 +21,11 @@ import java.util.concurrent.TimeUnit; * 企业微信基础服务类 */ public class WecomBaseService { - private WecomConfig wecomConfig; - /** * Redis key 前缀:wecom_access_token:{corpId} */ private static final String ACCESS_TOKEN_KEY_PREFIX = "wecom_access_token:"; - public WecomBaseService(WecomConfig wecomConfig) { - this.wecomConfig = wecomConfig; - } - /** * 获取accessToken(根据当前企业上下文动态获取) * @@ -116,11 +109,5 @@ public class WecomBaseService { } } - public WecomConfig getWecomConfig() { - return wecomConfig; - } - public void setWecomConfig(WecomConfig wecomConfig) { - this.wecomConfig = wecomConfig; - } } \ No newline at end of file diff --git a/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomContactService.java b/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomContactService.java index 563c0de..e7e8612 100644 --- a/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomContactService.java +++ b/excel-handle/src/main/java/com/ruoyi/excel/wecom/service/WecomContactService.java @@ -5,7 +5,6 @@ import com.alibaba.fastjson.JSONObject; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.excel.wecom.domain.CorpDepartment; import com.ruoyi.excel.wecom.domain.CorpUser; -import com.ruoyi.excel.wecom.model.WecomConfig; import com.ruoyi.excel.wecom.model.WecomCustomer; import com.ruoyi.excel.wecom.model.WecomTagGroup; import org.springframework.stereotype.Component; @@ -20,11 +19,6 @@ import java.util.List; */ @Component public class WecomContactService extends WecomBaseService { - - public WecomContactService(WecomConfig wecomConfig) { - super(wecomConfig); - } - /** * 获取配置了客户联系功能的成员列表 * diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java index 8be0f0e..ad32b1e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java @@ -1,20 +1,14 @@ package com.ruoyi.web.controller.system; -import java.util.Date; -import java.util.List; -import java.util.Set; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RestController; import com.ruoyi.common.constant.Constants; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.entity.SysMenu; import com.ruoyi.common.core.domain.entity.SysUser; import com.ruoyi.common.core.domain.model.LoginBody; import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.core.text.Convert; +import com.ruoyi.common.utils.CorpContextHolder; import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.SecurityUtils; import com.ruoyi.common.utils.StringUtils; @@ -23,6 +17,15 @@ import com.ruoyi.framework.web.service.SysPermissionService; import com.ruoyi.framework.web.service.TokenService; import com.ruoyi.system.service.ISysConfigService; import com.ruoyi.system.service.ISysMenuService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Date; +import java.util.List; +import java.util.Set; /** * 登录验证 @@ -32,6 +35,8 @@ import com.ruoyi.system.service.ISysMenuService; @RestController public class SysLoginController { + private static final String CURRENT_CORP_KEY_PREFIX = "current_corp:"; + @Autowired private SysLoginService loginService; @@ -47,6 +52,9 @@ public class SysLoginController @Autowired private ISysConfigService configService; + @Autowired + private RedisCache redisCache; + /** * 登录方法 * @@ -73,7 +81,19 @@ public class SysLoginController public AjaxResult getInfo() { LoginUser loginUser = SecurityUtils.getLoginUser(); + + + SysUser user = loginUser.getUser(); + // 1. 获取当前登录用户ID + Long userId = user.getUserId(); + + // 2. 从 Redis 获取该用户当前使用的企业ID + String key = CURRENT_CORP_KEY_PREFIX + userId; + String corpId = redisCache.getCacheObject(key); + if (corpId != null) { + CorpContextHolder.setCurrentCorpId(corpId); + } // 角色集合 Set roles = permissionService.getRolePermission(user); // 权限集合 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wocom/WecomContactController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wocom/WecomContactController.java index 3c4b3ff..9efded8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wocom/WecomContactController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/wocom/WecomContactController.java @@ -6,23 +6,20 @@ import com.alibaba.excel.write.metadata.WriteSheet; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.utils.CorpContextHolder; -import com.ruoyi.excel.wecom.domain.CorpDepartment; -import com.ruoyi.excel.wecom.domain.CorpUser; import com.ruoyi.excel.wecom.helper.HandleAllData; import com.ruoyi.excel.wecom.mapper.CustomerExportDataMapper; import com.ruoyi.excel.wecom.mapper.CustomerStatisticsDataMapper; import com.ruoyi.excel.wecom.mapper.DepartmentStatisticsDataMapper; -import com.ruoyi.excel.wecom.model.WecomConfig; -import com.ruoyi.excel.wecom.model.WecomCustomer; -import com.ruoyi.excel.wecom.model.WecomTagGroup; -import com.ruoyi.excel.wecom.service.WecomContactService; import com.ruoyi.excel.wecom.service.WecomTagService; import com.ruoyi.excel.wecom.vo.CustomerExportDataVO; import com.ruoyi.excel.wecom.vo.CustomerStatisticsDataVO; import com.ruoyi.excel.wecom.vo.DepartmentStatisticsDataVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.format.annotation.DateTimeFormat; -import org.springframework.web.bind.annotation.*; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -55,244 +52,10 @@ public class WecomContactController { @Autowired private RedisCache redisCache; - /** - * 获取配置了客户联系功能的成员列表 - * - * @param request HttpServletRequest - * @return AjaxResult - */ - @GetMapping("/followUserList") - public AjaxResult getFollowUserList(HttpServletRequest request) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List userList = contactService.getFollowUserList(currentCorpId); - return AjaxResult.success("获取成功", userList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取指定成员的客户列表 - * - * @param request HttpServletRequest - * @param userid 成员ID - * @return AjaxResult - */ - @GetMapping("/externalContactList") - public AjaxResult getExternalContactList(HttpServletRequest request, @RequestParam String userid) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List customerList = contactService.getExternalContactList(currentCorpId,userid); - return AjaxResult.success("获取成功", customerList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取所有成员的客户列表 - * - * @param request HttpServletRequest - * @return AjaxResult - */ - @GetMapping("/allMembersCustomers") - public AjaxResult getAllMembersCustomers(HttpServletRequest request) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List memberCustomerList = contactService.getAllMembersCustomers(currentCorpId); - return AjaxResult.success("获取成功", memberCustomerList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 批量获取客户详情 - * - * @param request HttpServletRequest - * @return AjaxResult - */ - @PostMapping("/batchCustomerDetails") - public AjaxResult batchGetCustomerDetails(HttpServletRequest request, @RequestBody List useridList) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - - // 解析成员ID列表 - List customerList = contactService.batchGetAllCustomerDetails(currentCorpId,useridList); - - return AjaxResult.success("获取成功", customerList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取单个客户详情 - * - * @param request HttpServletRequest - * @param externalUserid 外部联系人ID - * @return AjaxResult - */ - @GetMapping("/customerDetail") - public AjaxResult getCustomerDetail(HttpServletRequest request, @RequestParam String externalUserid) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - WecomCustomer customer = contactService.getCustomerDetail(currentCorpId, externalUserid); - return AjaxResult.success("获取成功", customer); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取企业标签库 - * - * @param request HttpServletRequest - * @return AjaxResult - */ - @GetMapping("/corpTagList") - public AjaxResult getCorpTagList(HttpServletRequest request) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List tagGroupList = contactService.getCorpTagList(currentCorpId); - - // 同步标签库到数据库 - boolean syncResult = wecomTagService.syncCorpTagList(tagGroupList); - if (syncResult) { - return AjaxResult.success("获取成功并同步到数据库", tagGroupList); - } else { - return AjaxResult.success("获取成功但同步到数据库失败", tagGroupList); - } - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取企业微信配置 - * - * @param request HttpServletRequest - * @return WecomConfig - */ - private WecomConfig getWecomConfig(HttpServletRequest request) { - // 这里可以从请求参数、配置文件或数据库中获取配置 - // 暂时使用硬编码的方式,实际使用时应该从配置中获取 - WecomConfig config = new WecomConfig(); - return config; - } - - /** - * 获取子部门id列表 - * - * @param request HttpServletRequest - * @param departmentId 部门ID,根部门传1 - * @return AjaxResult - */ - @GetMapping("/departmentList") - public AjaxResult getDepartmentList(HttpServletRequest request, @RequestParam(required = false) Long departmentId) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List deptIdList = contactService.getDepartmentList(currentCorpId,departmentId); - return AjaxResult.success("获取成功", deptIdList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取单个部门详情 - * - * @param request HttpServletRequest - * @param departmentId 部门ID - * @return AjaxResult - */ - @GetMapping("/departmentDetail") - public AjaxResult getDepartmentDetail(HttpServletRequest request, @RequestParam Long departmentId) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - Object deptDetail = contactService.getDepartmentDetail(currentCorpId,departmentId); - return AjaxResult.success("获取成功", deptDetail); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } - - /** - * 获取部门成员详情 - * - * @param request HttpServletRequest - * @param departmentId 部门ID - * @param fetchChild 是否递归获取子部门成员 - * @param status 成员状态,0-全部,1-已激活,2-已禁用,4-未激活,5-退出企业 - * @return AjaxResult - */ - @GetMapping("/departmentMemberList") - public AjaxResult getDepartmentMemberList(HttpServletRequest request, @RequestParam Long departmentId, - @RequestParam(required = false) Integer fetchChild, - @RequestParam(required = false) Integer status) { - try { - String currentCorpId = CorpContextHolder.getCurrentCorpId(); - - WecomConfig config = getWecomConfig(request); - WecomContactService contactService = new WecomContactService(config); - List memberList = contactService.getDepartmentMemberList(currentCorpId,departmentId, fetchChild, status); - return AjaxResult.success("获取成功", memberList); - } catch (IOException e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } catch (Exception e) { - return AjaxResult.error("获取失败: " + e.getMessage()); - } - } @GetMapping("/init") public AjaxResult init(HttpServletRequest request) throws IOException { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - return AjaxResult.error("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); - try { handleAllData.initData(); return AjaxResult.success(); @@ -303,13 +66,6 @@ public class WecomContactController { @GetMapping("/test") public AjaxResult test(HttpServletRequest request) throws IOException { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - return AjaxResult.error("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); - try { handleAllData.handleAllData(); return AjaxResult.success(); @@ -320,13 +76,6 @@ public class WecomContactController { @GetMapping("/createAllReportData") public AjaxResult createAllReportData(HttpServletRequest request) throws IOException { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - return AjaxResult.error("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); - try { handleAllData.createAllReportData(); return AjaxResult.success(); @@ -337,13 +86,6 @@ public class WecomContactController { @GetMapping("/createAllDepartmentReportData") public AjaxResult createAllDepartmentReportData(HttpServletRequest request) throws IOException { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - return AjaxResult.error("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); - try { handleAllData.createAllDepartmentReportData(); return AjaxResult.success(); @@ -354,14 +96,8 @@ public class WecomContactController { @GetMapping("/createAllDepartmentReportByDate") public AjaxResult createAllDepartmentReportByDate(@RequestParam(value = "date", required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") Date date) throws IOException { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - return AjaxResult.error("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); - try { + String corpId = CorpContextHolder.getCurrentCorpId(); handleAllData.createDepartmentReportData(corpId,date); return AjaxResult.success(); } finally { @@ -382,12 +118,7 @@ public class WecomContactController { @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) { try { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - throw new RuntimeException("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); + String corpId = CorpContextHolder.getCurrentCorpId(); // 设置响应头 response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); @@ -433,12 +164,7 @@ public class WecomContactController { @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate, @RequestParam(required = false) String indicatorName) { try { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - throw new RuntimeException("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); + String corpId = CorpContextHolder.getCurrentCorpId(); // 设置响应头 response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); @@ -485,12 +211,7 @@ public class WecomContactController { @RequestParam(required = false) @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate, @RequestParam(required = false) String departmentPath) { try { - // 从 Redis 获取当前企业ID并设置到上下文 - String corpId = redisCache.getCacheObject("current_corp_id"); - if (corpId == null || corpId.trim().isEmpty()) { - throw new RuntimeException("未找到当前企业ID,请先切换企业"); - } - CorpContextHolder.setCurrentCorpId(corpId); + String corpId = CorpContextHolder.getCurrentCorpId(); // 设置响应头 response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); diff --git a/ruoyi-admin/src/main/resources/application-local.yml b/ruoyi-admin/src/main/resources/application-local.yml index 59a0e61..e2f4e2d 100644 --- a/ruoyi-admin/src/main/resources/application-local.yml +++ b/ruoyi-admin/src/main/resources/application-local.yml @@ -6,7 +6,7 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://host.docker.internal:3316/excel-handle?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://localhost:3306/excel-handle?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: jiong1114 # 从库数据源 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 2c8b74c..935deb9 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -69,7 +69,7 @@ spring: # redis 配置 redis: # 地址 - host: host.docker.internal + host: localhost # 端口,默认为6379 port: 6379 # 数据库索引 diff --git a/ruoyi-admin/src/main/resources/static/index.html b/ruoyi-admin/src/main/resources/static/index.html index 7a55265..a936723 100644 --- a/ruoyi-admin/src/main/resources/static/index.html +++ b/ruoyi-admin/src/main/resources/static/index.html @@ -1,4 +1,4 @@ -超脑智子测试系统
正在加载系统资源,请耐心等待
\ No newline at end of file + }
正在加载系统资源,请耐心等待
\ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/static/js/app.5e47b285.js b/ruoyi-admin/src/main/resources/static/static/js/app.5e47b285.js index 9f991d1..c92b512 100644 --- a/ruoyi-admin/src/main/resources/static/static/js/app.5e47b285.js +++ b/ruoyi-admin/src/main/resources/static/static/js/app.5e47b285.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0151":function(e,t,n){"use strict";n("9e68")},"02b8":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"039a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-download",use:"icon-download-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"04ad":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-rate",use:"icon-rate-usage",viewBox:"0 0 1069 1024",content:''});c.a.add(o);t["default"]=o},"068c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-upload",use:"icon-upload-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"06b3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tool",use:"icon-tool-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0733":function(e,t,n){},"0946":function(e,t,n){"use strict";n("78a1")},"0b37":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-input",use:"icon-input-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0c16":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-row",use:"icon-row-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0c4f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-redis",use:"icon-redis-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0e8f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"0ee3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-select",use:"icon-select-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0ef4":function(e,t,n){},"113e":function(e,t,n){"use strict";n("827c")},1559:function(e,t,n){},"15e8":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"18e4":function(e,t,n){},"198d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"1df5":function(e,t,n){},2096:function(e,t,n){"use strict";n("0ef4")},"20e7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"216a":function(e,t,n){},2369:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"23f1":function(e,t,n){var i={"./404.svg":"49be","./bug.svg":"937c","./build.svg":"b88c","./button.svg":"c292","./cascader.svg":"737d","./chart.svg":"20e7","./checkbox.svg":"9ec1","./clipboard.svg":"5aa7","./code.svg":"d7a0","./color.svg":"e218","./component.svg":"02b8","./dashboard.svg":"7154","./date-range.svg":"ad41","./date.svg":"a2bf","./dict.svg":"da75","./documentation.svg":"ed00","./download.svg":"039a","./drag.svg":"a2f6","./druid.svg":"bc7b","./edit.svg":"2fb0","./education.svg":"2369","./email.svg":"caf7","./enter.svg":"586c","./example.svg":"b6f9","./excel.svg":"e3ff","./exit-fullscreen.svg":"f22e","./eye-open.svg":"74a2","./eye.svg":"57fa","./form.svg":"4576","./fullscreen.svg":"72e5","./github.svg":"cda1","./guide.svg":"72d1","./icon.svg":"9f4c","./input.svg":"0b37","./international.svg":"a601","./job.svg":"e82a","./language.svg":"a17a","./link.svg":"5fda","./list.svg":"3561","./lock.svg":"a012","./log.svg":"9cb5","./logininfor.svg":"9b2c","./message.svg":"15e8","./money.svg":"4955","./monitor.svg":"f71f","./more-up.svg":"a6c4","./nested.svg":"91be","./number.svg":"a1ac","./online.svg":"575e","./password.svg":"198d","./pdf.svg":"8989","./people.svg":"ae6e","./peoples.svg":"dc13","./phone.svg":"b470","./post.svg":"482c","./qq.svg":"39e1","./question.svg":"5d9e","./radio.svg":"9a4c","./rate.svg":"04ad","./redis-list.svg":"badf","./redis.svg":"0c4f","./row.svg":"0c16","./search.svg":"679a","./select.svg":"0ee3","./server.svg":"47382","./shopping.svg":"98ab","./size.svg":"879b","./skill.svg":"a263","./slider.svg":"df36","./star.svg":"4e5a","./swagger.svg":"84e5","./switch.svg":"243e","./system.svg":"922f","./tab.svg":"2723","./table.svg":"dc78","./textarea.svg":"7234d","./theme.svg":"7271","./time-range.svg":"99c3","./time.svg":"f8e6","./tool.svg":"06b3","./tree-table.svg":"4d24","./tree.svg":"0e8f","./upload.svg":"068c","./user.svg":"d88a","./validCode.svg":"67bd","./wechat.svg":"2ba1","./zip.svg":"a75d"};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id="23f1"},"243e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-switch",use:"icon-switch-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},2723:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"2ba1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(o);t["default"]=o},"2bb1":function(e,t,n){},"2fb0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},3561:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"383e":function(e,t,n){"use strict";n("216a")},"39e1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"3c5e":function(e,t,n){"use strict";n("7206")},"3dcd":function(e,t,n){"use strict";n("0733")},"430b":function(e,t,n){},4360:function(e,t,n){"use strict";var i=n("2b0e"),a=n("2f62"),s=n("852e"),c=n.n(s),o={sidebar:{opened:!c.a.get("sidebarStatus")||!!+c.a.get("sidebarStatus"),withoutAnimation:!1,hide:!1},device:"desktop",size:c.a.get("size")||"medium"},r={TOGGLE_SIDEBAR:function(e){if(e.sidebar.hide)return!1;e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?c.a.set("sidebarStatus",1):c.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){c.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,c.a.set("size",t)},SET_SIDEBAR_HIDE:function(e,t){e.sidebar.hide=t}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)},toggleSideBarHide:function(e,t){var n=e.commit;n("SET_SIDEBAR_HIDE",t)}},u={namespaced:!0,state:o,mutations:r,actions:l},d=(n("14d9"),n("a434"),{dict:new Array}),h={SET_DICT:function(e,t){var n=t.key,i=t.value;null!==n&&""!==n&&e.dict.push({key:n,value:i})},REMOVE_DICT:function(e,t){try{for(var n=0;n0?(t("SET_ROLES",i.roles),t("SET_PERMISSIONS",i.permissions)):t("SET_ROLES",["ROLE_DEFAULT"]),t("SET_ID",a.userId),t("SET_NAME",a.userName),t("SET_NICK_NAME",a.nickName),t("SET_AVATAR",s),i.isDefaultModifyPwd&&v["MessageBox"].confirm("您的密码还是初始密码,请修改密码!","安全提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["b"].push({name:"Profile",params:{activeTab:"resetPwd"}})})).catch((function(){})),!i.isDefaultModifyPwd&&i.isPasswordExpired&&v["MessageBox"].confirm("您的密码已过期,请尽快修改密码!","安全提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["b"].push({name:"Profile",params:{activeTab:"resetPwd"}})})).catch((function(){})),e(i)})).catch((function(e){n(e)}))}))},LogOut:function(e){var t=e.commit,n=e.state;return new Promise((function(e,i){Object(g["d"])(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),Object(w["b"])(),e()})).catch((function(e){i(e)}))}))},FedLogOut:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),Object(w["b"])(),e()}))}}},z=k,V=n("2909"),C=n("3835"),S=n("b85c"),_=(n("4de4"),n("c740"),n("caad"),n("fb6a"),n("2532"),n("9911"),n("0643"),n("2382"),n("9a9a"),n("ddb0"),{visitedViews:[],cachedViews:[],iframeViews:[]}),T={ADD_IFRAME_VIEW:function(e,t){e.iframeViews.some((function(e){return e.path===t.path}))||e.iframeViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta&&!t.meta.noCache&&e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=Object(S["a"])(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var a=Object(C["a"])(n.value,2),s=a[0],c=a[1];if(c.path===t.path){e.visitedViews.splice(s,1);break}}}catch(o){i.e(o)}finally{i.f()}e.iframeViews=e.iframeViews.filter((function(e){return e.path!==t.path}))},DEL_IFRAME_VIEW:function(e,t){e.iframeViews=e.iframeViews.filter((function(e){return e.path!==t.path}))},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path})),e.iframeViews=e.iframeViews.filter((function(e){return e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t,e.iframeViews=[]},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=Object(S["a"])(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path){a=Object.assign(a,t);break}}}catch(s){i.e(s)}finally{i.f()}},DEL_RIGHT_VIEWS:function(e,t){var n=e.visitedViews.findIndex((function(e){return e.path===t.path}));-1!==n&&(e.visitedViews=e.visitedViews.filter((function(t,i){if(i<=n||t.meta&&t.meta.affix)return!0;var a=e.cachedViews.indexOf(t.name);if(a>-1&&e.cachedViews.splice(a,1),t.meta.link){var s=e.iframeViews.findIndex((function(e){return e.path===t.path}));e.iframeViews.splice(s,1)}return!1})))},DEL_LEFT_VIEWS:function(e,t){var n=e.visitedViews.findIndex((function(e){return e.path===t.path}));-1!==n&&(e.visitedViews=e.visitedViews.filter((function(t,i){if(i>=n||t.meta&&t.meta.affix)return!0;var a=e.cachedViews.indexOf(t.name);if(a>-1&&e.cachedViews.splice(a,1),t.meta.link){var s=e.iframeViews.findIndex((function(e){return e.path===t.path}));e.iframeViews.splice(s,1)}return!1})))}},M={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addIframeView:function(e,t){var n=e.commit;n("ADD_IFRAME_VIEW",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(V["a"])(i.visitedViews))}))},delIframeView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_IFRAME_VIEW",t),e(Object(V["a"])(i.iframeViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(V["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(V["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(V["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(V["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(V["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)},delRightTags:function(e,t){var n=e.commit;return new Promise((function(e){n("DEL_RIGHT_VIEWS",t),e(Object(V["a"])(_.visitedViews))}))},delLeftTags:function(e,t){var n=e.commit;return new Promise((function(e){n("DEL_LEFT_VIEWS",t),e(Object(V["a"])(_.visitedViews))}))}},L={namespaced:!0,state:_,mutations:T,actions:M},O=(n("99af"),n("e9c4"),n("b64b"),n("3ca3"),n("4e3e"),n("5087"),n("159b"),n("dce4")),E=n("b775"),B=function(){return Object(E["a"])({url:"/getRouters",method:"get"})},H=n("c1f7"),$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-view")},j=[],I=n("2877"),A={},R=Object(I["a"])(A,$,j,!1,null,null,null),D=R.exports,P=n("594d"),N={state:{routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]},mutations:{SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=p["a"].concat(t)},SET_DEFAULT_ROUTES:function(e,t){e.defaultRoutes=p["a"].concat(t)},SET_TOPBAR_ROUTES:function(e,t){e.topbarRouters=t},SET_SIDEBAR_ROUTERS:function(e,t){e.sidebarRouters=t}},actions:{GenerateRoutes:function(e){var t=e.commit;return new Promise((function(e){B().then((function(n){var i=JSON.parse(JSON.stringify(n.data)),a=JSON.parse(JSON.stringify(n.data)),s=U(i),c=U(a,!1,!0),o=F(p["c"]);c.push({path:"*",redirect:"/404",hidden:!0}),p["b"].addRoutes(o),t("SET_ROUTES",c),t("SET_SIDEBAR_ROUTERS",p["a"].concat(s)),t("SET_DEFAULT_ROUTES",s),t("SET_TOPBAR_ROUTES",s),e(c)}))}))}}};function U(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((function(e){return t&&e.children&&(e.children=q(e.children)),e.component&&("Layout"===e.component?e.component=H["a"]:"ParentView"===e.component?e.component=D:"InnerLink"===e.component?e.component=P["a"]:e.component=W(e.component)),null!=e.children&&e.children&&e.children.length?e.children=U(e.children,e,t):(delete e["children"],delete e["redirect"]),!0}))}function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.forEach((function(e){e.path=t?t.path+"/"+e.path:e.path,e.children&&e.children.length&&"ParentView"===e.component?n=n.concat(q(e.children,e)):n.push(e)})),n}function F(e){var t=[];return e.forEach((function(e){e.permissions?O["a"].hasPermiOr(e.permissions)&&t.push(e):e.roles&&O["a"].hasRoleOr(e.roles)&&t.push(e)})),t}var W=function(e){return function(){return n("9dac")("./".concat(e))}},J=N,G=n("83d6"),Q=n.n(G);function Y(){pe.state.settings.dynamicTitle?document.title=pe.state.settings.title+" - "+Q.a.title:document.title=Q.a.title}var X=Q.a.sideTheme,K=Q.a.showSettings,Z=Q.a.navType,ee=Q.a.tagsView,te=Q.a.tagsIcon,ne=Q.a.fixedHeader,ie=Q.a.sidebarLogo,ae=Q.a.dynamicTitle,se=Q.a.footerVisible,ce=Q.a.footerContent,oe=JSON.parse(localStorage.getItem("layout-setting"))||"",re={title:"",theme:oe.theme||"#409EFF",sideTheme:oe.sideTheme||X,showSettings:K,navType:void 0===oe.navType?Z:oe.navType,tagsView:void 0===oe.tagsView?ee:oe.tagsView,tagsIcon:void 0===oe.tagsIcon?te:oe.tagsIcon,fixedHeader:void 0===oe.fixedHeader?ne:oe.fixedHeader,sidebarLogo:void 0===oe.sidebarLogo?ie:oe.sidebarLogo,dynamicTitle:void 0===oe.dynamicTitle?ae:oe.dynamicTitle,footerVisible:void 0===oe.footerVisible?se:oe.footerVisible,footerContent:ce},le={CHANGE_SETTING:function(e,t){var n=t.key,i=t.value;e.hasOwnProperty(n)&&(e[n]=i)},SET_TITLE:function(e,t){e.title=t}},ue={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)},setTitle:function(e,t){var n=e.commit;n("SET_TITLE",t),Y()}},de={namespaced:!0,state:re,mutations:le,actions:ue},he={sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},dict:function(e){return e.dict.dict},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},id:function(e){return e.user.id},name:function(e){return e.user.name},nickName:function(e){return e.user.nickName},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permissions:function(e){return e.user.permissions},permission_routes:function(e){return e.permission.routes},topbarRouters:function(e){return e.permission.topbarRouters},defaultRoutes:function(e){return e.permission.defaultRoutes},sidebarRouters:function(e){return e.permission.sidebarRouters}},fe=he;i["default"].use(a["a"]);var me=new a["a"].Store({modules:{app:u,dict:m,user:z,tagsView:L,permission:J,settings:de},getters:fe}),pe=t["a"]=me},4576:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},47382:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-server",use:"icon-server-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"482c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-post",use:"icon-post-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},4955:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"49be":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"49f4":function(e,t,n){e.exports={theme:"#1890ff"}},"4b94":function(e,t,n){e.exports=n.p+"static/img/profile.473f5971.jpg"},"4d24":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"4e5a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"522f":function(e,t,n){},5572:function(e,t,n){"use strict";n("9ba4")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var i=n("2b0e"),a=n("852e"),s=n.n(a),c=n("5c96"),o=n.n(c),r=(n("49f4"),n("6861"),n("b34b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view"),n("theme-picker")],1)}),l=[],u=n("b18f"),d={name:"App",components:{ThemePicker:u["a"]}},h=d,f=(n("7445"),n("2877")),m=Object(f["a"])(h,r,l,!1,null,"180b6f98",null),p=m.exports,v=n("4360"),g=n("a18c"),w=(n("d9e2"),n("caad"),n("d3b7"),n("2532"),n("0643"),n("9a9a"),{inserted:function(e,t,n){var i=t.value,a="admin",s=v["a"].getters&&v["a"].getters.roles;if(!(i&&i instanceof Array&&i.length>0))throw new Error('请设置角色权限标签值"');var c=i,o=s.some((function(e){return a===e||c.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}),b={inserted:function(e,t,n){var i=t.value,a="*:*:*",s=v["a"].getters&&v["a"].getters.permissions;if(!(i&&i instanceof Array&&i.length>0))throw new Error("请设置操作权限标签值");var c=i,o=s.some((function(e){return a===e||c.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}},y=(n("ac1f"),n("5319"),{bind:function(e,t,n,i){var a=t.value;if(0!=a){var s=e.querySelector(".el-dialog__header"),c=e.querySelector(".el-dialog");s.style.cursor="move";var o=c.currentStyle||window.getComputedStyle(c,null);c.style.position="absolute",c.style.marginTop=0;var r=c.style.width;r=r.includes("%")?+document.body.clientWidth*(+r.replace(/\%/g,"")/100):+r.replace(/\px/g,""),c.style.left="".concat((document.body.clientWidth-r)/2,"px"),s.onmousedown=function(e){var t,n,i=e.clientX-s.offsetLeft,a=e.clientY-s.offsetTop;o.left.includes("%")?(t=+document.body.clientWidth*(+o.left.replace(/\%/g,"")/100),n=+document.body.clientHeight*(+o.top.replace(/\%/g,"")/100)):(t=+o.left.replace(/\px/g,""),n=+o.top.replace(/\px/g,"")),document.onmousemove=function(e){var s=e.clientX-i,o=e.clientY-a,r=s+t,l=o+n;c.style.left="".concat(r,"px"),c.style.top="".concat(l,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}}),x={bind:function(e){var t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 5px; background: inherit; height: 80%; position: absolute; right: 0; top: 0; bottom: 0; margin: auto; z-index: 1; cursor: w-resize;",n.addEventListener("mousedown",(function(n){var i=n.clientX-e.offsetLeft,a=t.offsetWidth;document.onmousemove=function(e){e.preventDefault();var n=e.clientX-i;t.style.width="".concat(a+n,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},k={bind:function(e){var t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 6px; background: inherit; height: 10px; position: absolute; right: 0; bottom: 0; margin: auto; z-index: 1; cursor: nwse-resize;",n.addEventListener("mousedown",(function(n){var i=n.clientX-e.offsetLeft,a=n.clientY-e.offsetTop,s=t.offsetWidth,c=t.offsetHeight;document.onmousemove=function(e){e.preventDefault();var n=e.clientX-i,o=e.clientY-a;t.style.width="".concat(s+n,"px"),t.style.height="".concat(c+o,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},z=n("b311"),V=n.n(z),C={bind:function(e,t,n){switch(t.arg){case"success":e._vClipBoard_success=t.value;break;case"error":e._vClipBoard_error=t.value;break;default:var i=new V.a(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"}});i.on("success",(function(t){var n=e._vClipBoard_success;n&&n(t)})),i.on("error",(function(t){var n=e._vClipBoard_error;n&&n(t)})),e._vClipBoard=i}},update:function(e,t){"success"===t.arg?e._vClipBoard_success=t.value:"error"===t.arg?e._vClipBoard_error=t.value:(e._vClipBoard.text=function(){return t.value},e._vClipBoard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipBoard_success:"error"===t.arg?delete e._vClipBoard_error:(e._vClipBoard.destroy(),delete e._vClipBoard))}},S=function(e){e.directive("hasRole",w),e.directive("hasPermi",b),e.directive("clipboard",C),e.directive("dialogDrag",y),e.directive("dialogDragWidth",x),e.directive("dialogDragHeight",k)};window.Vue&&(window["hasRole"]=w,window["hasPermi"]=b,Vue.use(S));var _,T,M=S,L=(n("14d9"),n("fb6a"),n("b0c0"),n("4e3e"),n("159b"),{refreshPage:function(e){var t=g["b"].currentRoute,n=t.path,i=t.query,a=t.matched;return void 0===e&&a.forEach((function(t){t.components&&t.components.default&&t.components.default.name&&(["Layout","ParentView"].includes(t.components.default.name)||(e={name:t.components.default.name,path:n,query:i}))})),v["a"].dispatch("tagsView/delCachedView",e).then((function(){var t=e,n=t.path,i=t.query;g["b"].replace({path:"/redirect"+n,query:i})}))},closeOpenPage:function(e){if(v["a"].dispatch("tagsView/delView",g["b"].currentRoute),void 0!==e)return g["b"].push(e)},closePage:function(e){return void 0===e?v["a"].dispatch("tagsView/delView",g["b"].currentRoute).then((function(e){var t=e.visitedViews,n=t.slice(-1)[0];return n?g["b"].push(n.fullPath):g["b"].push("/")})):v["a"].dispatch("tagsView/delView",e)},closeAllPage:function(){return v["a"].dispatch("tagsView/delAllViews")},closeLeftPage:function(e){return v["a"].dispatch("tagsView/delLeftTags",e||g["b"].currentRoute)},closeRightPage:function(e){return v["a"].dispatch("tagsView/delRightTags",e||g["b"].currentRoute)},closeOtherPage:function(e){return v["a"].dispatch("tagsView/delOthersViews",e||g["b"].currentRoute)},openPage:function(e,t,n){var i={path:t,meta:{title:e}};return v["a"].dispatch("tagsView/addView",i),g["b"].push({path:t,query:n})},updatePage:function(e){return v["a"].dispatch("tagsView/updateVisitedView",e)}}),O=n("dce4"),E=n("63f0"),B={msg:function(e){c["Message"].info(e)},msgError:function(e){c["Message"].error(e)},msgSuccess:function(e){c["Message"].success(e)},msgWarning:function(e){c["Message"].warning(e)},alert:function(e){c["MessageBox"].alert(e,"系统提示")},alertError:function(e){c["MessageBox"].alert(e,"系统提示",{type:"error"})},alertSuccess:function(e){c["MessageBox"].alert(e,"系统提示",{type:"success"})},alertWarning:function(e){c["MessageBox"].alert(e,"系统提示",{type:"warning"})},notify:function(e){c["Notification"].info(e)},notifyError:function(e){c["Notification"].error(e)},notifySuccess:function(e){c["Notification"].success(e)},notifyWarning:function(e){c["Notification"].warning(e)},confirm:function(e){return c["MessageBox"].confirm(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},prompt:function(e){return c["MessageBox"].prompt(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},loading:function(e){_=c["Loading"].service({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading:function(){_.close()}},H=n("c14f"),$=n("1da1"),j=(n("b64b"),n("5087"),n("bc3a")),I=n.n(j),A=n("21a6"),R=n("5f87"),D=n("81ae"),P=n("c38a"),N="/prod-api",U={name:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=N+"/common/download?fileName="+encodeURIComponent(e)+"&delete="+n;I()({method:"get",url:i,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var n=Object(P["b"])(e.data);if(n){var i=new Blob([e.data]);t.saveAs(i,decodeURIComponent(e.headers["download-filename"]))}else t.printErrMsg(e.data)}))},resource:function(e){var t=this,n=N+"/common/download/resource?resource="+encodeURIComponent(e);I()({method:"get",url:n,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var n=Object(P["b"])(e.data);if(n){var i=new Blob([e.data]);t.saveAs(i,decodeURIComponent(e.headers["download-filename"]))}else t.printErrMsg(e.data)}))},zip:function(e,t){var n=this;e=N+e;T=c["Loading"].service({text:"正在下载数据,请稍候",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),I()({method:"get",url:e,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var i=Object(P["b"])(e.data);if(i){var a=new Blob([e.data],{type:"application/zip"});n.saveAs(a,t)}else n.printErrMsg(e.data);T.close()})).catch((function(e){console.error(e),c["Message"].error("下载文件出现错误,请联系管理员!"),T.close()}))},saveAs:function(e,t,n){Object(A["saveAs"])(e,t,n)},printErrMsg:function(e){return Object($["a"])(Object(H["a"])().m((function t(){var n,i,a;return Object(H["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.text();case 1:n=t.v,i=JSON.parse(n),a=D["a"][i.code]||i.msg||D["a"]["default"],c["Message"].error(a);case 2:return t.a(2)}}),t)})))()}},q={install:function(e){e.prototype.$tab=L,e.prototype.$auth=O["a"],e.prototype.$cache=E["a"],e.prototype.$modal=B,e.prototype.$download=U}},F=n("b775"),W=(n("d81d"),n("a573"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),J=[],G=n("61f7"),Q={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(G["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Y=Q,X=(n("7651"),Object(f["a"])(Y,W,J,!1,null,"248913c8",null)),K=X.exports;i["default"].component("svg-icon",K);var Z=n("23f1"),ee=function(e){return e.keys().map(e)};ee(Z);var te=n("5530"),ne=n("323e"),ie=n.n(ne);n("a5d8");ie.a.configure({showSpinner:!1});var ae=["/login","/register"],se=function(e){return ae.some((function(t){return Object(G["d"])(t,e)}))};g["b"].beforeEach((function(e,t,n){ie.a.start(),Object(R["a"])()?(e.meta.title&&v["a"].dispatch("settings/setTitle",e.meta.title),"/login"===e.path?(n({path:"/"}),ie.a.done()):se(e.path)?n():0===v["a"].getters.roles.length?(F["c"].show=!0,v["a"].dispatch("GetInfo").then((function(){F["c"].show=!1,v["a"].dispatch("GenerateRoutes").then((function(t){g["b"].addRoutes(t),n(Object(te["a"])(Object(te["a"])({},e),{},{replace:!0}))}))})).catch((function(e){v["a"].dispatch("LogOut").then((function(){c["Message"].error(e),n({path:"/"})}))}))):n()):se(e.path)?n():(n("/login?redirect=".concat(encodeURIComponent(e.fullPath))),ie.a.done())})),g["b"].afterEach((function(){ie.a.done()}));var ce=n("aa3a"),oe=n("c0c3"),re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},le=[];n("a9e3");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var ue=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function de(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function he(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function fe(e,t,n){var i=he(),a=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var o=function(){c+=s;var e=Math.easeInOutQuad(c,i,a,t);de(e),cthis.total&&(this.currentPage=1),this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&fe(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&fe(0,800)}}},pe=me,ve=(n("650d"),Object(f["a"])(pe,re,le,!1,null,"5ce40f6c",null)),ge=ve.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-right-btn",style:e.style},[n("el-row",[e.search?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.showSearch?"隐藏搜索":"显示搜索",placement:"top"}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-search"},on:{click:function(t){return e.toggleSearch()}}})],1):e._e(),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"刷新",placement:"top"}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-refresh"},on:{click:function(t){return e.refresh()}}})],1),Object.keys(e.columns).length>0?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"显隐列",placement:"top"}},["transfer"==e.showColumnsType?n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-menu"},on:{click:function(t){return e.showColumn()}}}):e._e(),"checkbox"==e.showColumnsType?n("el-dropdown",{staticStyle:{"padding-left":"12px"},attrs:{trigger:"click","hide-on-click":!1}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-menu"}}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.toggleCheckAll},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}},[e._v(" 列展示 ")])],1),n("div",{staticClass:"check-line"}),e._l(e.columns,(function(t,i){return[n("el-dropdown-item",{key:i},[n("el-checkbox",{attrs:{label:t.label},on:{change:function(t){return e.checkboxChange(t,i)}},model:{value:t.visible,callback:function(n){e.$set(t,"visible",n)},expression:"item.visible"}})],1)]}))],2)],1):e._e()],1):e._e()],1),n("el-dialog",{attrs:{title:e.title,visible:e.open,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-transfer",{attrs:{titles:["显示","隐藏"],data:e.transferData},on:{change:e.dataChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1)},be=[],ye=(n("4de4"),n("07ac"),n("76d6"),n("2382"),{name:"RightToolbar",data:function(){return{value:[],title:"显示/隐藏",open:!1}},props:{showSearch:{type:Boolean,default:!0},columns:{type:[Array,Object],default:function(){return{}}},search:{type:Boolean,default:!0},showColumnsType:{type:String,default:"checkbox"},gutter:{type:Number,default:10}},computed:{style:function(){var e={};return this.gutter&&(e.marginRight="".concat(this.gutter/2,"px")),e},isChecked:{get:function(){return Array.isArray(this.columns)?this.columns.every((function(e){return e.visible})):Object.values(this.columns).every((function(e){return e.visible}))},set:function(){}},isIndeterminate:function(){return Array.isArray(this.columns)?this.columns.some((function(e){return e.visible}))&&!this.isChecked:Object.values(this.columns).some((function(e){return e.visible}))&&!this.isChecked},transferData:function(){var e=this;return Array.isArray(this.columns)?this.columns.map((function(e,t){return{key:t,label:e.label}})):Object.keys(this.columns).map((function(t,n){return{key:n,label:e.columns[t].label}}))}},created:function(){var e=this;if("transfer"==this.showColumnsType)if(Array.isArray(this.columns))for(var t in this.columns)!1===this.columns[t].visible&&this.value.push(parseInt(t));else Object.keys(this.columns).forEach((function(t,n){!1===e.columns[t].visible&&e.value.push(n)}))},methods:{toggleSearch:function(){this.$emit("update:showSearch",!this.showSearch)},refresh:function(){this.$emit("queryTable")},dataChange:function(e){var t=this;if(Array.isArray(this.columns))for(var n in this.columns){var i=this.columns[n].key;this.columns[n].visible=!e.includes(i)}else Object.keys(this.columns).forEach((function(n,i){t.columns[n].visible=!e.includes(i)}))},showColumn:function(){this.open=!0},checkboxChange:function(e,t){Array.isArray(this.columns)?this.columns.filter((function(e){return e.key==t}))[0].visible=e:this.columns[t].visible=e},toggleCheckAll:function(){var e=!this.isChecked;Array.isArray(this.columns)?this.columns.forEach((function(t){return t.visible=e})):Object.values(this.columns).forEach((function(t){return t.visible=e}))}}}),xe=ye,ke=(n("d23b"),Object(f["a"])(xe,we,be,!1,null,"5b20c345",null)),ze=ke.exports,Ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["url"==this.type?n("el-upload",{ref:"upload",staticStyle:{display:"none"},attrs:{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,"on-success":e.handleUploadSuccess,"on-error":e.handleUploadError,name:"file","show-file-list":!1,headers:e.headers}}):e._e(),n("div",{ref:"editor",staticClass:"editor",style:e.styles})],1)},Ce=[],Se=(n("99af"),n("31b7")),_e=(n("a753"),n("8096"),n("14e1"),{name:"Editor",props:{value:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1},fileSize:{type:Number,default:5},type:{type:String,default:"url"}},data:function(){return{uploadUrl:"/prod-api/common/upload",headers:{Authorization:"Bearer "+Object(R["a"])()},Quill:null,currentValue:"",options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"请输入内容",readOnly:this.readOnly}}},computed:{styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=null===e?"":e,this.Quill&&this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;if(this.Quill=new Se["a"](t,this.options),"url"==this.type){var n=this.Quill.getModule("toolbar");n.addHandler("image",(function(t){t?e.$refs.upload.$children[0].$refs.input.click():e.quill.format("image",!1)})),this.Quill.root.addEventListener("paste",this.handlePasteCapture,!0)}this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,n,i){var a=e.$refs.editor.children[0].innerHTML,s=e.Quill.getText(),c=e.Quill;e.currentValue=a,e.$emit("input",a),e.$emit("on-change",{html:a,text:s,quill:c})})),this.Quill.on("text-change",(function(t,n,i){e.$emit("on-text-change",t,n,i)})),this.Quill.on("selection-change",(function(t,n,i){e.$emit("on-selection-change",t,n,i)})),this.Quill.on("editor-change",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0;if(!i)return this.$modal.msgError("文件格式不正确,请上传".concat(this.fileType.join("/"),"格式文件!")),!1}if(e.name.includes(","))return this.$modal.msgError("文件名不正确,不能包含英文逗号!"),!1;if(this.fileSize){var a=e.size/1024/10240&&this.uploadList.length===this.number&&(this.fileList=this.fileList.concat(this.uploadList),this.uploadList=[],this.number=0,this.$emit("input",this.listToString(this.fileList)),this.$modal.closeLoading())},getFileName:function(e){return e.lastIndexOf("/")>-1?e.slice(e.lastIndexOf("/")+1):e},listToString:function(e,t){var n="";for(var i in t=t||",",e)n+=e[i].url+t;return""!=n?n.substr(0,n.length-1):""}}},$e=He,je=(n("0946"),Object(f["a"])($e,Oe,Ee,!1,null,"6067b714",null)),Ie=je.exports,Ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"component-upload-image"},[n("el-upload",{ref:"imageUpload",class:{hide:this.fileList.length>=this.limit},attrs:{multiple:"",disabled:e.disabled,action:e.uploadImgUrl,"list-type":"picture-card","on-success":e.handleUploadSuccess,"before-upload":e.handleBeforeUpload,data:e.data,limit:e.limit,"on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-remove":e.handleDelete,"show-file-list":!0,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePictureCardPreview}},[n("i",{staticClass:"el-icon-plus"})]),e.showTip&&!e.disabled?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 请上传 "),e.fileSize?[e._v(" 大小不超过 "),n("b",{staticStyle:{color:"#f56c6c"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e.fileType?[e._v(" 格式为 "),n("b",{staticStyle:{color:"#f56c6c"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v(" 的文件 ")],2):e._e(),n("el-dialog",{attrs:{visible:e.dialogVisible,title:"预览",width:"800","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{staticStyle:{display:"block","max-width":"100%",margin:"0 auto"},attrs:{src:e.dialogImageUrl}})])],1)},Re=[],De={props:{value:[String,Object,Array],action:{type:String,default:"/common/upload"},data:{type:Object},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:function(){return["png","jpg","jpeg"]}},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0}},data:function(){return{number:0,uploadList:[],dialogImageUrl:"",dialogVisible:!1,hideUpload:!1,baseUrl:"/prod-api",uploadImgUrl:"/prod-api"+this.action,headers:{Authorization:"Bearer "+Object(R["a"])()},fileList:[]}},mounted:function(){var e=this;this.drag&&!this.disabled&&this.$nextTick((function(){var t,n=null===(t=e.$refs.imageUpload)||void 0===t||null===(t=t.$el)||void 0===t?void 0:t.querySelector(".el-upload-list");Be["default"].create(n,{onEnd:function(t){var n=e.fileList.splice(t.oldIndex,1)[0];e.fileList.splice(t.newIndex,0,n),e.$emit("input",e.listToString(e.fileList))}})}))},watch:{value:{handler:function(e){var t=this;if(!e)return this.fileList=[],[];var n=Array.isArray(e)?e:this.value.split(",");this.fileList=n.map((function(e){return"string"===typeof e&&(e=-1!==e.indexOf(t.baseUrl)||Object(G["b"])(e)?{name:e,url:e}:{name:t.baseUrl+e,url:t.baseUrl+e}),e}))},deep:!0,immediate:!0}},computed:{showTip:function(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{handleBeforeUpload:function(e){var t=!1;if(this.fileType.length){var n="";e.name.lastIndexOf(".")>-1&&(n=e.name.slice(e.name.lastIndexOf(".")+1)),t=this.fileType.some((function(t){return e.type.indexOf(t)>-1||!!(n&&n.indexOf(t)>-1)}))}else t=e.type.indexOf("image")>-1;if(!t)return this.$modal.msgError("文件格式不正确,请上传".concat(this.fileType.join("/"),"图片格式文件!")),!1;if(e.name.includes(","))return this.$modal.msgError("文件名不正确,不能包含英文逗号!"),!1;if(this.fileSize){var i=e.size/1024/1024-1&&(this.fileList.splice(t,1),this.$emit("input",this.listToString(this.fileList)))},handleUploadError:function(){this.$modal.msgError("上传图片失败,请重试"),this.$modal.closeLoading()},uploadedSuccessfully:function(){this.number>0&&this.uploadList.length===this.number&&(this.fileList=this.fileList.concat(this.uploadList),this.uploadList=[],this.number=0,this.$emit("input",this.listToString(this.fileList)),this.$modal.closeLoading())},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},listToString:function(e,t){var n="";for(var i in t=t||",",e)e[i].url&&(n+=e[i].url.replace(this.baseUrl,"")+t);return""!=n?n.substr(0,n.length-1):""}}},Pe=De,Ne=(n("8e02"),Object(f["a"])(Pe,Ae,Re,!1,null,"39f73966",null)),Ue=Ne.exports,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{style:"width:"+e.realWidth+";height:"+e.realHeight+";",attrs:{src:""+e.realSrc,fit:"cover","preview-src-list":e.realSrcList}},[n("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[n("i",{staticClass:"el-icon-picture-outline"})])])},Fe=[],We={name:"ImagePreview",props:{src:{type:String,default:""},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""}},computed:{realSrc:function(){if(this.src){var e=this.src.split(",")[0];return Object(G["b"])(e)?e:"/prod-api"+e}},realSrcList:function(){if(this.src){var e=this.src.split(","),t=[];return e.forEach((function(e){return Object(G["b"])(e)?t.push(e):t.push("/prod-api"+e)})),t}},realWidth:function(){return"string"==typeof this.width?this.width:"".concat(this.width,"px")},realHeight:function(){return"string"==typeof this.height?this.height:"".concat(this.height,"px")}}},Je=We,Ge=(n("9ef1"),Object(f["a"])(Je,qe,Fe,!1,null,"61a0a004",null)),Qe=Ge.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,i){return[e.isValueMatch(t.value)?["default"!=t.raw.listClass&&""!=t.raw.listClass||""!=t.raw.cssClass&&null!=t.raw.cssClass?n("el-tag",{key:t.value,class:t.raw.cssClass,attrs:{"disable-transitions":!0,index:i,type:"primary"==t.raw.listClass?"":t.raw.listClass}},[e._v(" "+e._s(t.label+" ")+" ")]):n("span",{key:t.value,class:t.raw.cssClass,attrs:{index:i}},[e._v(e._s(t.label+" "))])]:e._e()]})),e.unmatch&&e.showValue?[e._v(" "+e._s(e._f("handleArray")(e.unmatchArray))+" ")]:e._e()],2)},Xe=[],Ke=(n("13d5"),n("1276"),n("9d4a"),{name:"DictTag",props:{options:{type:Array,default:null},value:[Number,String,Array],showValue:{type:Boolean,default:!0},separator:{type:String,default:","}},data:function(){return{unmatchArray:[]}},computed:{values:function(){return null===this.value||"undefined"===typeof this.value||""===this.value?[]:"number"===typeof this.value||"boolean"===typeof this.value?[this.value]:Array.isArray(this.value)?this.value.map((function(e){return""+e})):String(this.value).split(this.separator)},unmatch:function(){var e=this;if(this.unmatchArray=[],null===this.value||"undefined"===typeof this.value||""===this.value||0===this.options.length)return!1;var t=!1;return this.values.forEach((function(n){e.options.some((function(e){return e.value==n}))||(e.unmatchArray.push(n),t=!0)})),t}},methods:{isValueMatch:function(e){return this.values.some((function(t){return t==e}))}},filters:{handleArray:function(e){return 0===e.length?"":e.reduce((function(e,t){return e+" "+t}))}}}),Ze=Ke,et=(n("e2dd"),Object(f["a"])(Ze,Ye,Xe,!1,null,"d44462d8",null)),tt=et.exports,nt=n("2909"),it=n("d4ec"),at=n("bee2"),st=(n("7db0"),n("aff5"),n("3ca3"),n("fffc"),n("53ca")),ct=Object(at["a"])((function e(t,n,i){Object(it["a"])(this,e),this.label=t,this.value=n,this.raw=i})),ot=function(e,t){var n=rt.apply(void 0,[e,t.labelField].concat(Object(nt["a"])(ht.DEFAULT_LABEL_FIELDS))),i=rt.apply(void 0,[e,t.valueField].concat(Object(nt["a"])(ht.DEFAULT_VALUE_FIELDS)));return new ct(e[n],e[i],e)};function rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i"),c=[]),(a=e.type[s]).splice.apply(a,[0,Number.MAX_SAFE_INTEGER].concat(Object(nt["a"])(c))),c.forEach((function(t){i["default"].set(e.label[s],t.value,t.label)})),c}))}var gt=function(e,t){dt(t),e.mixin({data:function(){if(void 0===this.$options||void 0===this.$options.dicts||null===this.$options.dicts)return{};var e=new pt;return e.owner=this,{dict:e}},created:function(){var e=this;this.dict instanceof pt&&(t.onCreated&&t.onCreated(this.dict),this.dict.init(this.$options.dicts).then((function(){t.onReady&&t.onReady(e.dict),e.$nextTick((function(){e.$emit("dictReady",e.dict),e.$options.methods&&e.$options.methods.onDictReady instanceof Function&&e.$options.methods.onDictReady.call(e,e.dict)}))})))}})};function wt(e,t){if(null==t&&""==t)return null;try{for(var n=0;n'});c.a.add(o);t["default"]=o},"57fa":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(o);t["default"]=o},"586c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-enter",use:"icon-enter-usage",viewBox:"0 0 1194 1024",content:''});c.a.add(o);t["default"]=o},"594d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:"height:"+e.height,attrs:{"element-loading-text":"正在加载页面,请稍候!"}},[n("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{id:e.iframeId,src:e.src,frameborder:"no"}})])},a=[],s=(n("ac1f"),n("5319"),{props:{src:{type:String,default:"/"},iframeId:{type:String}},data:function(){return{loading:!1,height:document.documentElement.clientHeight-94.5+"px;"}},mounted:function(){var e=this,t=("#"+this.iframeId).replace(/\//g,"\\/"),n=document.querySelector(t);n.attachEvent?(this.loading=!0,n.attachEvent("onload",(function(){e.loading=!1}))):(this.loading=!0,n.onload=function(){e.loading=!1})}}),c=s,o=n("2877"),r=Object(o["a"])(c,i,a,!1,null,null,null);t["a"]=r.exports},5970:function(e,t,n){"use strict";n("430b")},"5aa7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"5d9e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-question",use:"icon-question-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("852e"),a=n.n(i),s="Admin-Token";function c(){return a.a.get(s)}function o(e){return a.a.set(s,e)}function r(){return a.a.remove(s)}},"5fda":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},6198:function(e,t,n){},"61f7":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("498a");function i(e,t){var n=e.replace(/\//g,"\\/").replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*"),i=new RegExp("^".concat(n,"$"));return i.test(t)}function a(e){return null==e||""==e||void 0==e||"undefined"==e}function s(e){return-1!==e.indexOf("http://")||-1!==e.indexOf("https://")}function c(e){return/^(https?:|mailto:|tel:)/.test(e)}},6214:function(e,t,n){},"63f0":function(e,t,n){"use strict";n("e9c4"),n("b64b"),n("5087");var i={set:function(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:function(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){sessionStorage.removeItem(e)}},a={set:function(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:function(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){localStorage.removeItem(e)}};t["a"]={session:i,local:a}},"650d":function(e,t,n){"use strict";n("b3b9")},"679a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"67bd":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-validCode",use:"icon-validCode-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},6861:function(e,t,n){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0, 0, 0, 0.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#ffffff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#ffffff",logoLightTitleColor:"#001529"}},"6c1d":function(e,t,n){"use strict";n("1df5")},7154:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});c.a.add(o);t["default"]=o},7206:function(e,t,n){},"721c":function(e,t,n){},"7234d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-textarea",use:"icon-textarea-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},7271:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"72d1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"72e5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"737d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-cascader",use:"icon-cascader-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},7445:function(e,t,n){"use strict";n("e11e")},"74a2":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"75b3":function(e,t,n){"use strict";n("721c")},7651:function(e,t,n){"use strict";n("c441")},"78a1":function(e,t,n){},"7ded":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("b775");function a(e,t,n,a){var s={username:e,password:t,code:n,uuid:a};return Object(i["a"])({url:"/login",headers:{isToken:!1,repeatSubmit:!1},method:"post",data:s})}function s(e){return Object(i["a"])({url:"/register",headers:{isToken:!1},method:"post",data:e})}function c(){return Object(i["a"])({url:"/getInfo",method:"get"})}function o(){return Object(i["a"])({url:"/logout",method:"post"})}function r(){return Object(i["a"])({url:"/captchaImage",headers:{isToken:!1},method:"get",timeout:2e4})}},"81a5":function(e,t,n){e.exports=n.p+"static/img/logo.4eeb8a8e.png"},"81ae":function(e,t,n){"use strict";t["a"]={401:"认证失败,无法访问系统资源",403:"当前操作没有权限",404:"访问资源不存在",default:"系统未知错误,请反馈给管理员"}},"827c":function(e,t,n){},"83d6":function(e,t){e.exports={title:"超脑智子测试系统",sideTheme:"theme-dark",showSettings:!0,navType:1,tagsView:!0,tagsIcon:!1,fixedHeader:!0,sidebarLogo:!0,dynamicTitle:!1,footerVisible:!1,footerContent:"Copyright © 2018-2026 RuoYi. All Rights Reserved."}},"84e5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-swagger",use:"icon-swagger-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"85af":function(e,t,n){},"86b7":function(e,t,n){"use strict";n("522f")},"879b":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},8989:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"8dd0":function(e,t,n){"use strict";n("c459")},"8df1":function(e,t,n){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0, 0, 0, 0.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#ffffff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#ffffff",logoLightTitleColor:"#001529"}},"8e02":function(e,t,n){"use strict";n("da73")},"8e5b":function(e,t,n){"use strict";n("85af")},"8ea9":function(e,t,n){"use strict";n("6214")},"91be":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"922f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-system",use:"icon-system-usage",viewBox:"0 0 1084 1024",content:''});c.a.add(o);t["default"]=o},"937c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"98ab":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"99c3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-time-range",use:"icon-time-range-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9a4c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-radio",use:"icon-radio-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9b2c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-logininfor",use:"icon-logininfor-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9ba4":function(e,t,n){},"9cb5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-log",use:"icon-log-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9dac":function(e,t,n){var i={"./":["1e4b","chunk-12624f69"],"./dashboard/BarChart":["9488","chunk-1d7d97ec","chunk-469ba5ae"],"./dashboard/BarChart.vue":["9488","chunk-1d7d97ec","chunk-469ba5ae"],"./dashboard/LineChart":["eab4","chunk-1d7d97ec","chunk-9f8a6494"],"./dashboard/LineChart.vue":["eab4","chunk-1d7d97ec","chunk-9f8a6494"],"./dashboard/PanelGroup":["fbc4","chunk-4f55a4ac"],"./dashboard/PanelGroup.vue":["fbc4","chunk-4f55a4ac"],"./dashboard/PieChart":["d153","chunk-1d7d97ec","chunk-67d2aed9"],"./dashboard/PieChart.vue":["d153","chunk-1d7d97ec","chunk-67d2aed9"],"./dashboard/RaddarChart":["0a5c","chunk-1d7d97ec","chunk-6a438376"],"./dashboard/RaddarChart.vue":["0a5c","chunk-1d7d97ec","chunk-6a438376"],"./dashboard/mixins/resize":["feb2","chunk-ecddd398"],"./dashboard/mixins/resize.js":["feb2","chunk-ecddd398"],"./error/401":["ec55","chunk-e648d5fe"],"./error/401.vue":["ec55","chunk-e648d5fe"],"./error/404":["2754","chunk-46f2cf5c"],"./error/404.vue":["2754","chunk-46f2cf5c"],"./index":["1e4b","chunk-12624f69"],"./index.vue":["1e4b","chunk-12624f69"],"./index_v1":["66ef","chunk-1d7d97ec","chunk-0e410955","chunk-6a189a5c"],"./index_v1.vue":["66ef","chunk-1d7d97ec","chunk-0e410955","chunk-6a189a5c"],"./login":["dd7b","chunk-2d0b2b28","chunk-0abfe318"],"./login.vue":["dd7b","chunk-2d0b2b28","chunk-0abfe318"],"./monitor/cache":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/index":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/index.vue":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/list":["9f66","chunk-e1a6d904"],"./monitor/cache/list.vue":["9f66","chunk-e1a6d904"],"./monitor/druid":["5194","chunk-210ca3e9"],"./monitor/druid/":["5194","chunk-210ca3e9"],"./monitor/druid/index":["5194","chunk-210ca3e9"],"./monitor/druid/index.vue":["5194","chunk-210ca3e9"],"./monitor/job":["3eac","chunk-227085f2"],"./monitor/job/":["3eac","chunk-227085f2"],"./monitor/job/index":["3eac","chunk-227085f2"],"./monitor/job/index.vue":["3eac","chunk-227085f2"],"./monitor/job/log":["0062","chunk-68702101"],"./monitor/job/log.vue":["0062","chunk-68702101"],"./monitor/logininfor":["67ef","chunk-04621586"],"./monitor/logininfor/":["67ef","chunk-04621586"],"./monitor/logininfor/index":["67ef","chunk-04621586"],"./monitor/logininfor/index.vue":["67ef","chunk-04621586"],"./monitor/online":["6b08","chunk-2d0da2ea"],"./monitor/online/":["6b08","chunk-2d0da2ea"],"./monitor/online/index":["6b08","chunk-2d0da2ea"],"./monitor/online/index.vue":["6b08","chunk-2d0da2ea"],"./monitor/operlog":["02f2","chunk-7e203972"],"./monitor/operlog/":["02f2","chunk-7e203972"],"./monitor/operlog/index":["02f2","chunk-7e203972"],"./monitor/operlog/index.vue":["02f2","chunk-7e203972"],"./monitor/server":["2a33","chunk-2d0bce05"],"./monitor/server/":["2a33","chunk-2d0bce05"],"./monitor/server/index":["2a33","chunk-2d0bce05"],"./monitor/server/index.vue":["2a33","chunk-2d0bce05"],"./redirect":["9b8f","chunk-2d0f012d"],"./redirect.vue":["9b8f","chunk-2d0f012d"],"./register":["7803","chunk-1cd9431a"],"./register.vue":["7803","chunk-1cd9431a"],"./system/config":["cdb7","chunk-2d22252c"],"./system/config/":["cdb7","chunk-2d22252c"],"./system/config/index":["cdb7","chunk-2d22252c"],"./system/config/index.vue":["cdb7","chunk-2d22252c"],"./system/dept":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/index":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/index.vue":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dict":["046a","chunk-582b2a7a"],"./system/dict/":["046a","chunk-582b2a7a"],"./system/dict/data":["bfc4","chunk-d19c1a98"],"./system/dict/data.vue":["bfc4","chunk-d19c1a98"],"./system/dict/index":["046a","chunk-582b2a7a"],"./system/dict/index.vue":["046a","chunk-582b2a7a"],"./system/menu":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/index":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/index.vue":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/notice":["202d","chunk-2d0b1626"],"./system/notice/":["202d","chunk-2d0b1626"],"./system/notice/index":["202d","chunk-2d0b1626"],"./system/notice/index.vue":["202d","chunk-2d0b1626"],"./system/post":["5788","chunk-2d0c8e18"],"./system/post/":["5788","chunk-2d0c8e18"],"./system/post/index":["5788","chunk-2d0c8e18"],"./system/post/index.vue":["5788","chunk-2d0c8e18"],"./system/role":["70eb","chunk-3b69bc00"],"./system/role/":["70eb","chunk-3b69bc00"],"./system/role/authUser":["7054","chunk-8ee3fc10"],"./system/role/authUser.vue":["7054","chunk-8ee3fc10"],"./system/role/index":["70eb","chunk-3b69bc00"],"./system/role/index.vue":["70eb","chunk-3b69bc00"],"./system/role/selectUser":["a17e","chunk-8579d4da"],"./system/role/selectUser.vue":["a17e","chunk-8579d4da"],"./system/user":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/authRole":["6a33","chunk-2727631f"],"./system/user/authRole.vue":["6a33","chunk-2727631f"],"./system/user/index":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/index.vue":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/profile":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/index":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/index.vue":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/resetPwd":["ee46","chunk-39413ce8"],"./system/user/profile/resetPwd.vue":["ee46","chunk-39413ce8"],"./system/user/profile/userAvatar":["9429","chunk-7aad1943","chunk-698a5ba1"],"./system/user/profile/userAvatar.vue":["9429","chunk-7aad1943","chunk-698a5ba1"],"./system/user/profile/userInfo":["1e8b","chunk-3a08d90c"],"./system/user/profile/userInfo.vue":["1e8b","chunk-3a08d90c"],"./tool/build":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/CodeTypeDialog":["a92a","chunk-2d20955d"],"./tool/build/CodeTypeDialog.vue":["a92a","chunk-2d20955d"],"./tool/build/DraggableItem":["4923","chunk-7abff893","chunk-31eae13f"],"./tool/build/DraggableItem.vue":["4923","chunk-7abff893","chunk-31eae13f"],"./tool/build/IconsDialog":["d0b2","chunk-6746b265"],"./tool/build/IconsDialog.vue":["d0b2","chunk-6746b265"],"./tool/build/RightPanel":["766b","chunk-7abff893","chunk-3339808c","chunk-0d5b0085"],"./tool/build/RightPanel.vue":["766b","chunk-7abff893","chunk-3339808c","chunk-0d5b0085"],"./tool/build/TreeNodeDialog":["c81a","chunk-e69ed224"],"./tool/build/TreeNodeDialog.vue":["c81a","chunk-e69ed224"],"./tool/build/index":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/index.vue":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/gen":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/basicInfoForm":["ed69","chunk-2d230898"],"./tool/gen/basicInfoForm.vue":["ed69","chunk-2d230898"],"./tool/gen/createTable":["7d85","chunk-0238e9b0"],"./tool/gen/createTable.vue":["7d85","chunk-0238e9b0"],"./tool/gen/editTable":["76f8","chunk-5bb73842","chunk-3a083b9c"],"./tool/gen/editTable.vue":["76f8","chunk-5bb73842","chunk-3a083b9c"],"./tool/gen/genInfoForm":["8586","chunk-5bb73842","chunk-2d0de3b1"],"./tool/gen/genInfoForm.vue":["8586","chunk-5bb73842","chunk-2d0de3b1"],"./tool/gen/importTable":["6f72","chunk-005cb0c7"],"./tool/gen/importTable.vue":["6f72","chunk-005cb0c7"],"./tool/gen/index":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/index.vue":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/swagger":["4a49","chunk-210ce324"],"./tool/swagger/":["4a49","chunk-210ce324"],"./tool/swagger/index":["4a49","chunk-210ce324"],"./tool/swagger/index.vue":["4a49","chunk-210ce324"],"./wecom/customerContact":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/index":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/index.vue":["4fde","chunk-2d0ccfa9"],"./wecom/customerExport":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/index":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/index.vue":["b1e5","chunk-2d20f1b5"],"./wecom/customerStatistics":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/index":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/index.vue":["5223","chunk-2d0c7a94"],"./wecom/departmentStatistics":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/index":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/index.vue":["5de9","chunk-2d0d3c79"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="9dac",e.exports=a},"9e68":function(e,t,n){},"9ec1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-checkbox",use:"icon-checkbox-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9ef1":function(e,t,n){"use strict";n("1559")},"9f4c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a012:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a17a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a18c:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o}));n("14d9"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("ddb0");var i=n("2b0e"),a=n("8c4f"),s=n("c1f7");i["default"].use(a["a"]);var c=[{path:"/redirect",component:s["a"],hidden:!0,children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d0f012d").then(n.bind(null,"9b8f"))}}]},{path:"/login",component:function(){return Promise.all([n.e("chunk-2d0b2b28"),n.e("chunk-0abfe318")]).then(n.bind(null,"dd7b"))},hidden:!0},{path:"/register",component:function(){return n.e("chunk-1cd9431a").then(n.bind(null,"7803"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-46f2cf5c").then(n.bind(null,"2754"))},hidden:!0},{path:"/401",component:function(){return n.e("chunk-e648d5fe").then(n.bind(null,"ec55"))},hidden:!0},{path:"",component:s["a"],redirect:"index",children:[{path:"index",component:function(){return n.e("chunk-12624f69").then(n.bind(null,"1e4b"))},name:"Index",meta:{title:"首页",icon:"dashboard",affix:!0}}]},{path:"/user",component:s["a"],hidden:!0,redirect:"noredirect",children:[{path:"profile",component:function(){return Promise.all([n.e("chunk-7aad1943"),n.e("chunk-372e775c")]).then(n.bind(null,"4c1b"))},name:"Profile",meta:{title:"个人中心",icon:"user"}}]}],o=[{path:"/system/user-auth",component:s["a"],hidden:!0,permissions:["system:user:edit"],children:[{path:"role/:userId(\\d+)",component:function(){return n.e("chunk-2727631f").then(n.bind(null,"6a33"))},name:"AuthRole",meta:{title:"分配角色",activeMenu:"/system/user"}}]},{path:"/system/role-auth",component:s["a"],hidden:!0,permissions:["system:role:edit"],children:[{path:"user/:roleId(\\d+)",component:function(){return n.e("chunk-8ee3fc10").then(n.bind(null,"7054"))},name:"AuthUser",meta:{title:"分配用户",activeMenu:"/system/role"}}]},{path:"/system/dict-data",component:s["a"],hidden:!0,permissions:["system:dict:list"],children:[{path:"index/:dictId(\\d+)",component:function(){return n.e("chunk-d19c1a98").then(n.bind(null,"bfc4"))},name:"Data",meta:{title:"字典数据",activeMenu:"/system/dict"}}]},{path:"/monitor/job-log",component:s["a"],hidden:!0,permissions:["monitor:job:list"],children:[{path:"index/:jobId(\\d+)",component:function(){return n.e("chunk-68702101").then(n.bind(null,"0062"))},name:"JobLog",meta:{title:"调度日志",activeMenu:"/monitor/job"}}]},{path:"/tool/gen-edit",component:s["a"],hidden:!0,permissions:["tool:gen:edit"],children:[{path:"index/:tableId(\\d+)",component:function(){return Promise.all([n.e("chunk-5bb73842"),n.e("chunk-3a083b9c")]).then(n.bind(null,"76f8"))},name:"GenEdit",meta:{title:"修改生成配置",activeMenu:"/tool/gen"}}]}],r=a["a"].prototype.push,l=a["a"].prototype.replace;a["a"].prototype.push=function(e){return r.call(this,e).catch((function(e){return e}))},a["a"].prototype.replace=function(e){return l.call(this,e).catch((function(e){return e}))},t["b"]=new a["a"]({mode:"history",base:"/ashai-wecom-test/",scrollBehavior:function(){return{y:0}},routes:c})},a1ac:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-number",use:"icon-number-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a263:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a2bf:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-date",use:"icon-date-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a2d0:function(e,t,n){e.exports=n.p+"static/img/light.4183aad0.svg"},a2f6:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a601:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a6c4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-more-up",use:"icon-more-up-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a75d:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a870:function(e,t,n){},aa3a:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return l}));var i=n("b775");function a(e){return Object(i["a"])({url:"/system/dict/data/list",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/system/dict/data/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/system/dict/data/type/"+e,method:"get"})}function o(e){return Object(i["a"])({url:"/system/dict/data",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/system/dict/data",method:"put",data:e})}function l(e){return Object(i["a"])({url:"/system/dict/data/"+e,method:"delete"})}},ad41:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-date-range",use:"icon-date-range-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},adba:function(e,t,n){e.exports=n.p+"static/img/dark.412ca67e.svg"},ae6e:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},b18f:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},a=[],s=n("c14f"),c=n("1da1"),o=(n("99af"),n("4de4"),n("a15b"),n("14d9"),n("fb6a"),n("a9e3"),n("b680"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("0643"),n("2382"),n("4e3e"),n("159b"),"#409EFF"),r={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(c["a"])(Object(s["a"])().m((function n(){return Object(s["a"])().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.setTheme(e);case 1:return n.a(2)}}),n)})))()}},created:function(){this.defaultTheme!==o&&this.setTheme(this.defaultTheme)},methods:{setTheme:function(e){var t=this;return Object(c["a"])(Object(s["a"])().m((function n(){var i,a,c,r,l,u,d;return Object(s["a"])().w((function(n){while(1)switch(n.n){case 0:if(i=t.chalk?t.theme:o,"string"===typeof e){n.n=1;break}return n.a(2);case 1:if(a=t.getThemeCluster(e.replace("#","")),c=t.getThemeCluster(i.replace("#","")),r=function(e,n){return function(){var i=t.getThemeCluster(o.replace("#","")),s=t.updateStyle(t[e],i,a),c=document.getElementById(n);c||(c=document.createElement("style"),c.setAttribute("id",n),document.head.appendChild(c)),c.innerText=s}},t.chalk){n.n=2;break}return l="/styles/theme-chalk/index.css",n.n=2,t.getCSSString(l,"chalk");case 2:u=r("chalk","chalk-style"),u(),d=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(i,"i").test(t)&&!/Chalk Variables/.test(t)})),d.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,c,a))})),t.$emit("change",e);case 3:return n.a(2)}}),n)})))()},updateStyle:function(e,t,n){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])})),i},getCSSString:function(e,t){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[t]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",e),a.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return 0===t?[n,i,a].join(","):(n+=Math.round(t*(255-n)),i+=Math.round(t*(255-i)),a+=Math.round(t*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),i=Math.round((1-t)*i),a=Math.round((1-t)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[e],a=0;a<=9;a++)i.push(t(e,Number((a/10).toFixed(2))));return i.push(n(e,.1)),i}}},l=r,u=(n("3dcd"),n("2877")),d=Object(u["a"])(l,i,a,!1,null,null,null);t["a"]=d.exports},b34b:function(e,t,n){},b3b9:function(e,t,n){},b470:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-phone",use:"icon-phone-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},b6f9:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},b775:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b}));var i,a=n("c14f"),s=n("1da1"),c=n("5530"),o=n("53ca"),r=(n("d9e2"),n("caad"),n("fb6a"),n("e9c4"),n("b64b"),n("d3b7"),n("2532"),n("5087"),n("bc3a")),l=n.n(r),u=n("5c96"),d=n("4360"),h=n("5f87"),f=n("81ae"),m=n("c38a"),p=n("63f0"),v=n("21a6"),g={show:!1};l.a.defaults.headers["Content-Type"]="application/json;charset=utf-8";var w=l.a.create({baseURL:"/prod-api",timeout:3e4});function b(e,t,n,o){return i=u["Loading"].service({text:"正在下载数据,请稍候",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),w.post(e,t,Object(c["a"])({transformRequest:[function(e){return Object(m["j"])(e)}],headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"blob"},o)).then(function(){var e=Object(s["a"])(Object(a["a"])().m((function e(t){var s,c,o,r,l;return Object(a["a"])().w((function(e){while(1)switch(e.n){case 0:if(s=Object(m["b"])(t),!s){e.n=1;break}c=new Blob([t]),Object(v["saveAs"])(c,n),e.n=3;break;case 1:return e.n=2,t.text();case 2:o=e.v,r=JSON.parse(o),l=f["a"][r.code]||r.msg||f["a"]["default"],u["Message"].error(l);case 3:i.close();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e),u["Message"].error("下载文件出现错误,请联系管理员!"),i.close()}))}w.interceptors.request.use((function(e){var t=!1===(e.headers||{}).isToken,n=!1===(e.headers||{}).repeatSubmit,i=(e.headers||{}).interval||1e3;if(Object(h["a"])()&&!t&&(e.headers["Authorization"]="Bearer "+Object(h["a"])()),"get"===e.method&&e.params){var a=e.url+"?"+Object(m["j"])(e.params);a=a.slice(0,-1),e.params={},e.url=a}if(!n&&("post"===e.method||"put"===e.method)){var s={url:e.url,data:"object"===Object(o["a"])(e.data)?JSON.stringify(e.data):e.data,time:(new Date).getTime()},c=Object.keys(JSON.stringify(s)).length,r=5242880;if(c>=r)return console.warn("[".concat(e.url,"]: ")+"请求数据大小超出允许的5M限制,无法进行防重复提交验证。"),e;var l=p["a"].session.getJSON("sessionObj");if(void 0===l||null===l||""===l)p["a"].session.setJSON("sessionObj",s);else{var u=l.url,d=l.data,f=l.time;if(d===s.data&&s.time-f'});c.a.add(o);t["default"]=o},badf:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-redis-list",use:"icon-redis-list-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},bc7b:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-druid",use:"icon-druid-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},c0c3:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return u}));var i=n("b775");function a(e){return Object(i["a"])({url:"/system/config/list",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/system/config/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/system/config/configKey/"+e,method:"get"})}function o(e){return Object(i["a"])({url:"/system/config",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/system/config",method:"put",data:e})}function l(e){return Object(i["a"])({url:"/system/config/"+e,method:"delete"})}function u(){return Object(i["a"])({url:"/system/config/refreshCache",method:"delete"})}},c1f7:function(e,t,n){"use strict";var i,a,s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj,style:{"--current-color":e.theme}},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e.sidebar.hide?e._e():n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView,sidebarHide:e.sidebar.hide}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar",{on:{setLayout:e.setLayout}}),e.needTagsView?n("tags-view"):e._e()],1),n("app-main"),n("settings",{ref:"settingRef"})],1)],1)},c=[],o=n("5530"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[e.$route.meta.link?e._e():n("router-view",{key:e.key})],1)],1),n("iframe-toggle"),n("copyright")],1)},l=[],u=(n("b0c0"),n("9911"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("footer",{staticClass:"copyright"},[n("span",[e._v(e._s(e.content))])]):e._e()}),d=[],h={computed:{visible:function(){return this.$store.state.settings.footerVisible},content:function(){return this.$store.state.settings.footerContent}}},f=h,m=(n("86b7"),n("2877")),p=Object(m["a"])(f,u,d,!1,null,"e46f568a",null),v=p.exports,g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{attrs:{name:"fade-transform",mode:"out-in"}},e._l(e.iframeViews,(function(t,i){return n("inner-link",{directives:[{name:"show",rawName:"v-show",value:e.$route.path===t.path,expression:"$route.path === item.path"}],key:t.path,attrs:{iframeId:"iframe"+i,src:e.iframeUrl(t.meta.link,t.query)}})})),1)},w=[],b=(n("a15b"),n("d81d"),n("b64b"),n("d3b7"),n("0643"),n("a573"),n("594d")),y={components:{InnerLink:b["a"]},computed:{iframeViews:function(){return this.$store.state.tagsView.iframeViews}},methods:{iframeUrl:function(e,t){if(Object.keys(t).length>0){var n=Object.keys(t).map((function(e){return e+"="+t[e]})).join("&");return e+"?"+n}return e}}},x=y,k=Object(m["a"])(x,g,w,!1,null,null,null),z=k.exports,V={name:"AppMain",components:{iframeToggle:z,copyright:v},computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}},watch:{$route:function(){this.addIframe()}},mounted:function(){this.addIframe()},methods:{addIframe:function(){var e=this.$route.name;e&&this.$route.meta.link&&this.$store.dispatch("tagsView/addIframeView",this.$route)}}},C=V,S=(n("ffb3"),n("3c5e"),Object(m["a"])(C,r,l,!1,null,"51a16398",null)),_=S.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar",class:"nav"+e.navType},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),1==e.navType?n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}):e._e(),2==e.navType?n("top-nav",{staticClass:"topmenu-container",attrs:{id:"topmenu-container"}}):e._e(),3==e.navType?[n("logo",{directives:[{name:"show",rawName:"v-show",value:e.showLogo,expression:"showLogo"}],attrs:{collapse:!1}}),n("top-bar",{staticClass:"topbar-container",attrs:{id:"topbar-container"}})]:e._e(),n("div",{staticClass:"right-menu"},["mobile"!==e.device?[n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),n("el-tooltip",{attrs:{content:"源码地址",effect:"dark",placement:"bottom"}},[n("ruo-yi-git",{staticClass:"right-menu-item hover-effect",attrs:{id:"ruoyi-git"}})],1),n("el-tooltip",{attrs:{content:"文档地址",effect:"dark",placement:"bottom"}},[n("ruo-yi-doc",{staticClass:"right-menu-item hover-effect",attrs:{id:"ruoyi-doc"}})],1),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),n("el-tooltip",{attrs:{content:"布局大小",effect:"dark",placement:"bottom"}},[n("size-select",{staticClass:"right-menu-item hover-effect",attrs:{id:"size-select"}})],1)]:e._e(),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"hover"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar}}),n("span",{staticClass:"user-nickname"},[e._v(" "+e._s(e.nickName)+" ")])]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/user/profile"}},[n("el-dropdown-item",[e._v("个人中心")])],1),e.setting?n("el-dropdown-item",{nativeOn:{click:function(t){return e.setLayout(t)}}},[n("span",[e._v("布局设置")])]):e._e(),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",[e._v("退出登录")])])],1)],1)],2)],2)},M=[],L=n("2f62"),O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},E=[],B=(n("99af"),n("4de4"),n("7db0"),n("14d9"),n("fb6a"),n("ac1f"),n("466d"),n("2ca0"),n("498a"),n("2382"),n("fffc"),{data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=[],t=this.$route,n=this.findPathNum(t.path);if(n>2){var i=/\/\w+/gi,a=t.path.match(i).map((function(e,t){return 0!==t&&(e=e.slice(1)),e}));this.getMatched(a,this.$store.getters.defaultRoutes,e)}else e=t.matched.filter((function(e){return e.meta&&e.meta.title}));this.isDashboard(e[0])||(e=[{path:"/index",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},findPathNum:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.indexOf(t),i=0;while(-1!==n)i++,n=e.indexOf(t,n+1);return i},getMatched:function(e,t,n){var i=t.find((function(t){return t.path==e[0]||(t.name+="").toLowerCase()==e[0]}));i&&(n.push(i),i.children&&e.length&&(e.shift(),this.getMatched(e,i.children,n)))},isDashboard:function(e){var t=e&&e.name;return!!t&&"Index"===t.trim()},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(n)}}}),H=B,$=(n("6c1d"),Object(m["a"])(H,O,E,!1,null,"74d14ae4",null)),j=$.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{attrs:{"default-active":e.activeMenu,mode:"horizontal"},on:{select:e.handleSelect}},[e._l(e.topMenus,(function(t,i){return[ie.visibleNumber?n("el-submenu",{key:e.visibleNumber,style:{"--theme":e.theme},attrs:{index:"more"}},[n("template",{slot:"title"},[e._v("更多菜单")]),e._l(e.topMenus,(function(t,i){return[i>=e.visibleNumber?n("el-menu-item",{key:i,attrs:{index:t.path}},[t.meta&&t.meta.icon&&"#"!==t.meta.icon?n("svg-icon",{attrs:{"icon-class":t.meta.icon}}):e._e(),e._v(" "+e._s(t.meta.title)+" ")],1):e._e()]}))],2):e._e()],2)},A=[],R=(n("5087"),n("a18c")),D=n("61f7"),P=["/user/profile"],N={data:function(){return{visibleNumber:5,currentIndex:void 0}},computed:{theme:function(){return this.$store.state.settings.theme},topMenus:function(){var e=[];return this.routers.map((function(t){!0!==t.hidden&&("/"===t.path&&t.children?e.push(t.children[0]):e.push(t))})),e},routers:function(){return this.$store.state.permission.topbarRouters},childrenMenus:function(){var e=[];return this.routers.map((function(t){for(var n in t.children)void 0===t.children[n].parentPath&&("/"===t.path?t.children[n].path="/"+t.children[n].path:Object(D["c"])(t.children[n].path)||(t.children[n].path=t.path+"/"+t.children[n].path),t.children[n].parentPath=t.path),e.push(t.children[n])})),R["a"].concat(e)},activeMenu:function(){var e=this.$route.path,t=e;if(void 0!==e&&e.lastIndexOf("/")>0&&-1===P.indexOf(e)){var n=e.substring(1,e.length);this.$route.meta.link||(t="/"+n.substring(0,n.indexOf("/")),this.$store.dispatch("app/toggleSideBarHide",!1))}else this.$route.children||(t=e,this.$store.dispatch("app/toggleSideBarHide",!0));return this.activeRoutes(t),t}},beforeMount:function(){window.addEventListener("resize",this.setVisibleNumber)},beforeDestroy:function(){window.removeEventListener("resize",this.setVisibleNumber)},mounted:function(){this.setVisibleNumber()},methods:{setVisibleNumber:function(){var e=document.body.getBoundingClientRect().width/3;this.visibleNumber=parseInt(e/85)},handleSelect:function(e,t){this.currentIndex=e;var n=this.routers.find((function(t){return t.path===e}));if(Object(D["c"])(e))window.open(e,"_blank");else if(n&&n.children)this.activeRoutes(e),this.$store.dispatch("app/toggleSideBarHide",!1);else{var i=this.childrenMenus.find((function(t){return t.path===e}));if(i&&i.query){var a=JSON.parse(i.query);this.$router.push({path:e,query:a})}else this.$router.push({path:e});this.$store.dispatch("app/toggleSideBarHide",!0)}},activeRoutes:function(e){var t=[];this.childrenMenus&&this.childrenMenus.length>0&&this.childrenMenus.map((function(n){(e==n.parentPath||"index"==e&&""==n.path)&&t.push(n)})),t.length>0?this.$store.commit("SET_SIDEBAR_ROUTERS",t):this.$store.dispatch("app/toggleSideBarHide",!0)}}},U=N,q=(n("5572"),Object(m["a"])(U,I,A,!1,null,null,null)),F=q.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{staticClass:"topbar-menu",attrs:{"default-active":e.activeMenu,"active-text-color":e.theme,mode:"horizontal"}},[e._l(e.topMenus,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})})),e.moreRoutes.length>0?n("el-submenu",{staticClass:"el-submenu__hide-arrow",attrs:{index:"more"}},[n("template",{slot:"title"},[e._v("更多菜单")]),e._l(e.moreRoutes,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})}))],2):e._e()],2)},J=[],G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t,i){return n("sidebar-item",{key:t.path+i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path,e.onlyOneChild.query)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},Q=[],Y=n("df7c"),X=n.n(Y),K={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,s=[];return i&&s.push(e("svg-icon",{attrs:{"icon-class":i}})),a&&(a.length>5?s.push(e("span",{slot:"title",attrs:{title:a}},[a])):s.push(e("span",{slot:"title"},[a]))),s}},Z=K,ee=Object(m["a"])(Z,i,a,!1,null,null,null),te=ee.exports,ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},ie=[],ae={props:{to:{type:[String,Object],required:!0}},computed:{isExternal:function(){return Object(D["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},se=ae,ce=Object(m["a"])(se,ne,ie,!1,null,null,null),oe=ce.exports,re={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},le={name:"SidebarItem",components:{Item:te,AppLink:oe},mixins:[re],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t||(t=[]);var i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(o["a"])(Object(o["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e,t){if(Object(D["b"])(e))return e;if(Object(D["b"])(this.basePath))return this.basePath;if(t){var n=JSON.parse(t);return{path:X.a.resolve(this.basePath,e),query:n}}return X.a.resolve(this.basePath,e)}}},ue=le,de=Object(m["a"])(ue,G,Q,!1,null,null,null),he=de.exports,fe={components:{SidebarItem:he},data:function(){return{visibleNumber:5}},computed:{theme:function(){return this.$store.state.settings.theme},topMenus:function(){return this.$store.state.permission.sidebarRouters.filter((function(e){return!e.hidden})).slice(0,this.visibleNumber)},moreRoutes:function(){var e=this.$store.state.permission.sidebarRouters;return e.filter((function(e){return!e.hidden})).slice(this.visibleNumber,e.length-this.visibleNumber)},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n}},beforeMount:function(){window.addEventListener("resize",this.setVisibleNumber)},beforeDestroy:function(){window.removeEventListener("resize",this.setVisibleNumber)},mounted:function(){this.setVisibleNumber()},methods:{setVisibleNumber:function(){var e=document.body.getBoundingClientRect().width/3;this.visibleNumber=parseInt(e/85)}}},me=fe,pe=(n("8e5b"),Object(m["a"])(me,W,J,!1,null,null,null)),ve=pe.exports,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse},style:{backgroundColor:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.menuBackground:e.variables.menuLightBackground}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title",style:{color:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.logoTitleColor:e.variables.logoLightTitleColor}},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title",style:{color:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.logoTitleColor:e.variables.logoLightTitleColor}},[e._v(e._s(e.title)+" ")])])],1)],1)},we=[],be=n("81a5"),ye=n.n(be),xe=n("8df1"),ke=n.n(xe),ze={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},computed:{variables:function(){return ke.a},sideTheme:function(){return this.$store.state.settings.sideTheme},navType:function(){return this.$store.state.settings.navType}},data:function(){return{title:"超脑智子测试系统",logo:ye.a}}},Ve=ze,Ce=(n("0151"),Object(m["a"])(Ve,ge,we,!1,null,"7f62f35e",null)),Se=Ce.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},Te=[],Me={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},Le=Me,Oe=(n("8dd0"),Object(m["a"])(Le,_e,Te,!1,null,"49e15297",null)),Ee=Oe.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},He=[],$e=n("93bf"),je=n.n($e),Ie={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!je.a.isEnabled)return this.$message({message:"你的浏览器不支持全屏",type:"warning"}),!1;je.a.toggle()},change:function(){this.isFullscreen=je.a.isFullscreen},init:function(){je.a.isEnabled&&je.a.on("change",this.change)},destroy:function(){je.a.isEnabled&&je.a.off("change",this.change)}}},Ae=Ie,Re=(n("ee75"),Object(m["a"])(Ae,Be,He,!1,null,"243c7c0f",null)),De=Re.exports,Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},Ne=[],Ue=(n("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),qe=Ue,Fe=Object(m["a"])(qe,Pe,Ne,!1,null,null,null),We=Fe.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search"},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-dialog",{attrs:{visible:e.show,width:"600px","show-close":!1,"append-to-body":""},on:{"update:visible":function(t){e.show=t},close:e.close}},[n("el-input",{ref:"headerSearchSelectRef",attrs:{size:"large","prefix-icon":"el-icon-search",placeholder:"菜单搜索,支持标题、URL模糊查询",clearable:""},on:{input:e.querySearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.selectActiveResult(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.navigateResult("up")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.navigateResult("down")}]},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),n("el-scrollbar",{attrs:{"wrap-class":"right-scrollbar-wrapper"}},[n("div",{staticClass:"result-wrap"},e._l(e.options,(function(t,i){return n("div",{key:t.path,staticClass:"search-item",style:e.activeStyle(i),on:{mouseenter:function(t){e.activeIndex=i},mouseleave:function(t){e.activeIndex=-1}}},[n("div",{staticClass:"left"},[n("svg-icon",{staticClass:"menu-icon",attrs:{"icon-class":t.icon}})],1),n("div",{staticClass:"search-info",on:{click:function(n){return e.change(t)}}},[n("div",{staticClass:"menu-title"},[e._v(" "+e._s(t.title.join(" / "))+" ")]),n("div",{staticClass:"menu-path"},[e._v(" "+e._s(t.path)+" ")])]),n("svg-icon",{directives:[{name:"show",rawName:"v-show",value:i===e.activeIndex,expression:"index === activeIndex"}],attrs:{"icon-class":"enter"}})],1)})),0)])],1)],1)},Ge=[],Qe=n("2909"),Ye=n("b85c"),Xe=(n("841c"),n("0278")),Ke=n.n(Xe),Ze={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],activeIndex:-1,show:!1,fuse:void 0}},computed:{theme:function(){return this.$store.state.settings.theme},routes:function(){return this.$store.getters.defaultRoutes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&(this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus(),this.options=this.searchPool)},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.search="",this.options=[],this.show=!1,this.activeIndex=-1},change:function(e){var t=this,n=e.path,i=e.query;if(Object(D["c"])(e.path)){var a=n.indexOf("http");window.open(n.substr(a,n.length),"_blank")}else i?this.$router.push({path:n,query:JSON.parse(i)}):this.$router.push(n);this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new Ke.a(e,{shouldSort:!0,threshold:.4,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],s=Object(Ye["a"])(e);try{for(s.s();!(t=s.n()).done;){var c=t.value;if(!c.hidden){var o={path:Object(D["c"])(c.path)?c.path:X.a.resolve(n,c.path),title:Object(Qe["a"])(i),icon:""};if(c.meta&&c.meta.title&&(o.title=[].concat(Object(Qe["a"])(o.title),[c.meta.title]),o.icon=c.meta.icon,"noRedirect"!==c.redirect&&a.push(o)),c.query&&(o.query=c.query),c.children){var r=this.generateRoutes(c.children,o.path,o.title);r.length>=1&&(a=[].concat(Object(Qe["a"])(a),Object(Qe["a"])(r)))}}}}catch(l){s.e(l)}finally{s.f()}return a},querySearch:function(e){var t;(this.activeIndex=-1,""!==e)?this.options=null!==(t=this.fuse.search(e).map((function(e){return e.item})))&&void 0!==t?t:this.searchPool:this.options=this.searchPool},activeStyle:function(e){return e!==this.activeIndex?{}:{"background-color":this.theme,color:"#fff"}},navigateResult:function(e){"up"===e?this.activeIndex=this.activeIndex<=0?this.options.length-1:this.activeIndex-1:"down"===e&&(this.activeIndex=this.activeIndex>=this.options.length-1?0:this.activeIndex+1)},selectActiveResult:function(){this.options.length>0&&this.activeIndex>=0&&this.change(this.options[this.activeIndex])}}},et=Ze,tt=(n("8ea9"),Object(m["a"])(et,Je,Ge,!1,null,"62847600",null)),nt=tt.exports,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":"github"},on:{click:e.goto}})],1)},at=[],st={name:"RuoYiGit",data:function(){return{url:"https://gitee.com/y_project/RuoYi-Vue"}},methods:{goto:function(){window.open(this.url)}}},ct=st,ot=Object(m["a"])(ct,it,at,!1,null,null,null),rt=ot.exports,lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":"question"},on:{click:e.goto}})],1)},ut=[],dt={name:"RuoYiDoc",data:function(){return{url:"http://doc.ruoyi.vip/ruoyi-vue"}},methods:{goto:function(){window.open(this.url)}}},ht=dt,ft=Object(m["a"])(ht,lt,ut,!1,null,null,null),mt=ft.exports,pt={emits:["setLayout"],components:{Breadcrumb:j,Logo:Se,TopNav:F,TopBar:ve,Hamburger:Ee,Screenfull:De,SizeSelect:We,Search:nt,RuoYiGit:rt,RuoYiDoc:mt},computed:Object(o["a"])(Object(o["a"])({},Object(L["b"])(["sidebar","avatar","device","nickName"])),{},{setting:{get:function(){return this.$store.state.settings.showSettings}},navType:{get:function(){return this.$store.state.settings.navType}},showLogo:{get:function(){return this.$store.state.settings.sidebarLogo}}}),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},setLayout:function(e){this.$emit("setLayout")},logout:function(){var e=this;this.$confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$store.dispatch("LogOut").then((function(){var e="/ashai-wecom-test";location.href=e+"/index"}))})).catch((function(){}))}}},vt=pt,gt=(n("75b3"),Object(m["a"])(vt,T,M,!1,null,"035f3221",null)),wt=gt.exports,bt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",{attrs:{size:"280px",visible:e.showSettings,"with-header":!1,"append-to-body":!0,"before-close":e.closeSetting,"lock-scroll":!1}},[i("div",{staticClass:"drawer-container"},[i("div",[i("div",{staticClass:"setting-drawer-content"},[i("div",{staticClass:"setting-drawer-title"},[i("h3",{staticClass:"drawer-title"},[e._v("菜单导航设置")])]),i("div",{staticClass:"nav-wrap"},[i("el-tooltip",{attrs:{content:"左侧菜单",placement:"bottom"}},[i("div",{staticClass:"item left",class:{activeItem:1==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(1)}}},[i("b"),i("b")])]),i("el-tooltip",{attrs:{content:"混合菜单",placement:"bottom"}},[i("div",{staticClass:"item mix",class:{activeItem:2==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(2)}}},[i("b"),i("b")])]),i("el-tooltip",{attrs:{content:"顶部菜单",placement:"bottom"}},[i("div",{staticClass:"item top",class:{activeItem:3==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(3)}}},[i("b"),i("b")])])],1),i("div",{staticClass:"setting-drawer-title"},[i("h3",{staticClass:"drawer-title"},[e._v("主题风格设置")])]),i("div",{staticClass:"setting-drawer-block-checbox"},[i("div",{staticClass:"setting-drawer-block-checbox-item",on:{click:function(t){return e.handleTheme("theme-dark")}}},[i("img",{attrs:{src:n("adba"),alt:"dark"}}),"theme-dark"===e.sideTheme?i("div",{staticClass:"setting-drawer-block-checbox-selectIcon",staticStyle:{display:"block"}},[i("i",{staticClass:"anticon anticon-check",attrs:{"aria-label":"图标: check"}},[i("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:e.theme,"aria-hidden":"true",focusable:"false"}},[i("path",{attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}})])])]):e._e()]),i("div",{staticClass:"setting-drawer-block-checbox-item",on:{click:function(t){return e.handleTheme("theme-light")}}},[i("img",{attrs:{src:n("a2d0"),alt:"light"}}),"theme-light"===e.sideTheme?i("div",{staticClass:"setting-drawer-block-checbox-selectIcon",staticStyle:{display:"block"}},[i("i",{staticClass:"anticon anticon-check",attrs:{"aria-label":"图标: check"}},[i("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:e.theme,"aria-hidden":"true",focusable:"false"}},[i("path",{attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}})])])]):e._e()])]),i("div",{staticClass:"drawer-item"},[i("span",[e._v("主题颜色")]),i("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1)]),i("el-divider"),i("h3",{staticClass:"drawer-title"},[e._v("系统布局配置")]),i("div",{staticClass:"drawer-item"},[i("span",[e._v("开启 Tags-Views")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("显示页签图标")]),i("el-switch",{staticClass:"drawer-switch",attrs:{disabled:!e.tagsView},model:{value:e.tagsIcon,callback:function(t){e.tagsIcon=t},expression:"tagsIcon"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("固定 Header")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("显示 Logo")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("动态标题")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.dynamicTitle,callback:function(t){e.dynamicTitle=t},expression:"dynamicTitle"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("底部版权")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.footerVisible,callback:function(t){e.footerVisible=t},expression:"footerVisible"}})],1),i("el-divider"),i("el-button",{attrs:{size:"small",type:"primary",plain:"",icon:"el-icon-document-add"},on:{click:e.saveSetting}},[e._v("保存配置")]),i("el-button",{attrs:{size:"small",plain:"",icon:"el-icon-refresh"},on:{click:e.resetSetting}},[e._v("重置配置")])],1)])])},yt=[],xt=(n("caad"),n("b18f")),kt={components:{ThemePicker:xt["a"]},expose:["openSetting"],data:function(){return{theme:this.$store.state.settings.theme,sideTheme:this.$store.state.settings.sideTheme,navType:this.$store.state.settings.navType,showSettings:!1}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},tagsIcon:{get:function(){return this.$store.state.settings.tagsIcon},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsIcon",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}},dynamicTitle:{get:function(){return this.$store.state.settings.dynamicTitle},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"dynamicTitle",value:e}),this.$store.dispatch("settings/setTitle",this.$store.state.settings.title)}},footerVisible:{get:function(){return this.$store.state.settings.footerVisible},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"footerVisible",value:e})}}},watch:{navType:{handler:function(e){1==e&&this.$store.dispatch("app/toggleSideBarHide",!1),3==e&&this.$store.dispatch("app/toggleSideBarHide",!0),[1,3].includes(e)&&this.$store.commit("SET_SIDEBAR_ROUTERS",this.$store.state.permission.defaultRoutes)},immediate:!0,deep:!0}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e}),this.theme=e},handleTheme:function(e){this.$store.dispatch("settings/changeSetting",{key:"sideTheme",value:e}),this.sideTheme=e},handleNavType:function(e){this.$store.dispatch("settings/changeSetting",{key:"navType",value:e}),this.navType=e},openSetting:function(){this.showSettings=!0},closeSetting:function(){this.showSettings=!1},saveSetting:function(){this.$modal.loading("正在保存到本地,请稍候..."),this.$cache.local.set("layout-setting",'{\n "navType":'.concat(this.navType,',\n "tagsView":').concat(this.tagsView,',\n "tagsIcon":').concat(this.tagsIcon,',\n "fixedHeader":').concat(this.fixedHeader,',\n "sidebarLogo":').concat(this.sidebarLogo,',\n "dynamicTitle":').concat(this.dynamicTitle,',\n "footerVisible":').concat(this.footerVisible,',\n "sideTheme":"').concat(this.sideTheme,'",\n "theme":"').concat(this.theme,'"\n }')),setTimeout(this.$modal.closeLoading(),1e3)},resetSetting:function(){this.$modal.loading("正在清除设置缓存并刷新,请稍候..."),this.$cache.local.remove("layout-setting"),setTimeout("window.location.reload()",1e3)}}},zt=kt,Vt=(n("5970"),Object(m["a"])(zt,bt,yt,!1,null,"08c05367",null)),Ct=Vt.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo},style:{backgroundColor:"theme-dark"===e.settings.sideTheme?e.variables.menuBackground:e.variables.menuLightBackground}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{class:e.settings.sideTheme,attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":"theme-dark"===e.settings.sideTheme?e.variables.menuBackground:e.variables.menuLightBackground,"text-color":"theme-dark"===e.settings.sideTheme?e.variables.menuColor:e.variables.menuLightColor,"unique-opened":!0,"active-text-color":e.settings.theme,"collapse-transition":!1,mode:"vertical"}},e._l(e.sidebarRouters,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},_t=[],Tt={components:{SidebarItem:he,Logo:Se},computed:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(L["c"])(["settings"])),Object(L["b"])(["sidebarRouters","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ke.a},isCollapse:function(){return!this.sidebar.opened}})},Mt=Tt,Lt=Object(m["a"])(Mt,St,_t,!1,null,null,null),Ot=Lt.exports,Et=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:{active:e.isActive(t),"has-icon":e.tagsIcon},style:e.activeStyle(t),attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e.tagsIcon&&t.meta&&t.meta.icon&&"#"!==t.meta.icon?n("svg-icon",{attrs:{"icon-class":t.meta.icon}}):e._e(),e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})],1)})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[n("i",{staticClass:"el-icon-refresh-right"}),e._v(" 刷新页面")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[n("i",{staticClass:"el-icon-close"}),e._v(" 关闭当前")]),n("li",{on:{click:e.closeOthersTags}},[n("i",{staticClass:"el-icon-circle-close"}),e._v(" 关闭其他")]),e.isFirstView()?e._e():n("li",{on:{click:e.closeLeftTags}},[n("i",{staticClass:"el-icon-back"}),e._v(" 关闭左侧")]),e.isLastView()?e._e():n("li",{on:{click:e.closeRightTags}},[n("i",{staticClass:"el-icon-right"}),e._v(" 关闭右侧")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[n("i",{staticClass:"el-icon-circle-close"}),e._v(" 全部关闭")])])],1)},Bt=[],Ht=(n("4e3e"),n("9a9a"),n("159b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)}),$t=[],jt=(n("c740"),4),It={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,i=this.scrollWrapper,a=this.$parent.$refs.tag,s=null,c=null;if(a.length>0&&(s=a[0],c=a[a.length-1]),s===e)i.scrollLeft=0;else if(c===e)i.scrollLeft=i.scrollWidth-n;else{var o=a.findIndex((function(t){return t===e})),r=a[o-1],l=a[o+1],u=l.$el.offsetLeft+l.$el.offsetWidth+jt,d=r.$el.offsetLeft-jt;u>i.scrollLeft+n?i.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var a=X.a.resolve(n,e.path);i.push({fullPath:a,path:a,name:e.name,meta:Object(o["a"])({},e.meta)})}if(e.children){var s=t.filterAffixTags(e.children,e.path);s.length>=1&&(i=[].concat(Object(Qe["a"])(i),Object(Qe["a"])(s)))}})),i},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(Ye["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var e=this.$route.name;e&&this.$store.dispatch("tagsView/addView",this.$route)},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,i=Object(Ye["a"])(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(s){i.e(s)}finally{i.f()}}))},refreshSelectedTag:function(e){this.$tab.refreshPage(e),this.$route.meta.link&&this.$store.dispatch("tagsView/delIframeView",this.$route)},closeSelectedTag:function(e){var t=this;this.$tab.closePage(e).then((function(n){var i=n.visitedViews;t.isActive(e)&&t.toLastView(i,e)}))},closeRightTags:function(){var e=this;this.$tab.closeRightPage(this.selectedTag).then((function(t){t.find((function(t){return t.fullPath===e.$route.fullPath}))||e.toLastView(t)}))},closeLeftTags:function(){var e=this;this.$tab.closeLeftPage(this.selectedTag).then((function(t){t.find((function(t){return t.fullPath===e.$route.fullPath}))||e.toLastView(t)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag.fullPath).catch((function(){})),this.$tab.closeOtherPage(this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$tab.closeAllPage().then((function(n){var i=n.visitedViews;t.affixTags.some((function(e){return e.path===t.$route.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,s=a-n,c=t.clientX-i+15;this.left=c>s?s:c,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},Nt=Pt,Ut=(n("e437"),n("383e"),Object(m["a"])(Nt,Et,Bt,!1,null,"6ca9cc7a",null)),qt=Ut.exports,Ft=n("4360"),Wt=document,Jt=Wt.body,Gt=992,Qt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Ft["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Ft["a"].dispatch("app/toggleDevice","mobile"),Ft["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Jt.getBoundingClientRect();return e.width-1'});c.a.add(o);t["default"]=o},c38a:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"b",(function(){return m}));var i=n("b85c"),a=n("53ca");n("a15b"),n("14d9"),n("fb6a"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("1276"),n("0643"),n("9a9a");function s(e,t){if(0===arguments.length||!e)return null;var n,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/").replace("T"," ").replace(new RegExp(/\.[\d]{3}/gm),"")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var s={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var n=s[t];return"a"===t?["日","一","二","三","四","五","六"][n]:(e.length>0&&n<10&&(n="0"+n),n||0)}));return c}function c(e){this.$refs[e]&&this.$refs[e].resetFields()}function o(e,t,n){var i=e;return i.params="object"!==Object(a["a"])(i.params)||null===i.params||Array.isArray(i.params)?{}:i.params,t=Array.isArray(t)?t:[],"undefined"===typeof n?(i.params["beginTime"]=t[0],i.params["endTime"]=t[1]):(i.params["begin"+n]=t[0],i.params["end"+n]=t[1]),i}function r(e,t){if(void 0===t)return"";var n=[];return Object.keys(e).some((function(i){if(e[i].value==""+t)return n.push(e[i].label),!0})),0===n.length&&n.push(t),n.join("")}function l(e,t,n){if(void 0===t||0===t.length)return"";Array.isArray(t)&&(t=t.join(","));var i=[],a=void 0===n?",":n,s=t.split(a);return Object.keys(t.split(a)).some((function(t){var n=!1;Object.keys(e).some((function(c){e[c].value==""+s[t]&&(i.push(e[c].label+a),n=!0)})),n||i.push(s[t]+a)})),i.join("").substring(0,i.join("").length-1)}function u(e){return e&&"undefined"!=e&&"null"!=e?e:""}function d(e,t){for(var n in t)try{t[n].constructor==Object?e[n]=d(e[n],t[n]):e[n]=t[n]}catch(i){e[n]=t[n]}return e}function h(e,t,n,a){var s,c={id:t||"id",parentId:n||"parentId",childrenList:a||"children"},o={},r=[],l=Object(i["a"])(e);try{for(l.s();!(s=l.n()).done;){var u=s.value,d=u[c.id];o[d]=u,u[c.childrenList]||(u[c.childrenList]=[])}}catch(g){l.e(g)}finally{l.f()}var h,f=Object(i["a"])(e);try{for(f.s();!(h=f.n()).done;){var m=h.value,p=m[c.parentId],v=o[p];v?v[c.childrenList].push(m):r.push(m)}}catch(g){f.e(g)}finally{f.f()}return r}function f(e){for(var t="",n=0,i=Object.keys(e);n'});c.a.add(o);t["default"]=o},cda1:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-github",use:"icon-github-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},d23b:function(e,t,n){"use strict";n("b7d1")},d7a0:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-code",use:"icon-code-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},d88a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(o);t["default"]=o},da73:function(e,t,n){},da75:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-dict",use:"icon-dict-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},dc13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},dc78:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},dce4:function(e,t,n){"use strict";n("d3b7"),n("0643"),n("76d6"),n("9a9a");var i=n("4360");function a(e){var t="*:*:*",n=i["a"].getters&&i["a"].getters.permissions;return!!(e&&e.length>0)&&n.some((function(n){return t===n||n===e}))}function s(e){var t="admin",n=i["a"].getters&&i["a"].getters.roles;return!!(e&&e.length>0)&&n.some((function(n){return t===n||n===e}))}t["a"]={hasPermi:function(e){return a(e)},hasPermiOr:function(e){return e.some((function(e){return a(e)}))},hasPermiAnd:function(e){return e.every((function(e){return a(e)}))},hasRole:function(e){return s(e)},hasRoleOr:function(e){return e.some((function(e){return s(e)}))},hasRoleAnd:function(e){return e.every((function(e){return s(e)}))}}},de06:function(e,t,n){"use strict";n("2bb1")},df36:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-slider",use:"icon-slider-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},e11e:function(e,t,n){},e218:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-color",use:"icon-color-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},e2dd:function(e,t,n){"use strict";n("18e4")},e3ff:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},e437:function(e,t,n){"use strict";n("6198")},e82a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-job",use:"icon-job-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},ed00:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},ee75:function(e,t,n){"use strict";n("f8ea")},f22e:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},f71f:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-monitor",use:"icon-monitor-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},f8e6:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-time",use:"icon-time-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},f8ea:function(e,t,n){},ffb3:function(e,t,n){"use strict";n("a870")}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"0151":function(e,t,n){"use strict";n("9e68")},"02b8":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"039a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-download",use:"icon-download-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"04ad":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-rate",use:"icon-rate-usage",viewBox:"0 0 1069 1024",content:''});c.a.add(o);t["default"]=o},"068c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-upload",use:"icon-upload-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"06b3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tool",use:"icon-tool-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0733":function(e,t,n){},"0946":function(e,t,n){"use strict";n("78a1")},"0b37":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-input",use:"icon-input-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0c16":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-row",use:"icon-row-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0c4f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-redis",use:"icon-redis-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0e8f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"0ee3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-select",use:"icon-select-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"0ef4":function(e,t,n){},"113e":function(e,t,n){"use strict";n("827c")},1559:function(e,t,n){},"15e8":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"18e4":function(e,t,n){},"198d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"1df5":function(e,t,n){},2096:function(e,t,n){"use strict";n("0ef4")},"20e7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"216a":function(e,t,n){},2369:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"23f1":function(e,t,n){var i={"./404.svg":"49be","./bug.svg":"937c","./build.svg":"b88c","./button.svg":"c292","./cascader.svg":"737d","./chart.svg":"20e7","./checkbox.svg":"9ec1","./clipboard.svg":"5aa7","./code.svg":"d7a0","./color.svg":"e218","./component.svg":"02b8","./dashboard.svg":"7154","./date-range.svg":"ad41","./date.svg":"a2bf","./dict.svg":"da75","./documentation.svg":"ed00","./download.svg":"039a","./drag.svg":"a2f6","./druid.svg":"bc7b","./edit.svg":"2fb0","./education.svg":"2369","./email.svg":"caf7","./enter.svg":"586c","./example.svg":"b6f9","./excel.svg":"e3ff","./exit-fullscreen.svg":"f22e","./eye-open.svg":"74a2","./eye.svg":"57fa","./form.svg":"4576","./fullscreen.svg":"72e5","./github.svg":"cda1","./guide.svg":"72d1","./icon.svg":"9f4c","./input.svg":"0b37","./international.svg":"a601","./job.svg":"e82a","./language.svg":"a17a","./link.svg":"5fda","./list.svg":"3561","./lock.svg":"a012","./log.svg":"9cb5","./logininfor.svg":"9b2c","./message.svg":"15e8","./money.svg":"4955","./monitor.svg":"f71f","./more-up.svg":"a6c4","./nested.svg":"91be","./number.svg":"a1ac","./online.svg":"575e","./password.svg":"198d","./pdf.svg":"8989","./people.svg":"ae6e","./peoples.svg":"dc13","./phone.svg":"b470","./post.svg":"482c","./qq.svg":"39e1","./question.svg":"5d9e","./radio.svg":"9a4c","./rate.svg":"04ad","./redis-list.svg":"badf","./redis.svg":"0c4f","./row.svg":"0c16","./search.svg":"679a","./select.svg":"0ee3","./server.svg":"47382","./shopping.svg":"98ab","./size.svg":"879b","./skill.svg":"a263","./slider.svg":"df36","./star.svg":"4e5a","./swagger.svg":"84e5","./switch.svg":"243e","./system.svg":"922f","./tab.svg":"2723","./table.svg":"dc78","./textarea.svg":"7234d","./theme.svg":"7271","./time-range.svg":"99c3","./time.svg":"f8e6","./tool.svg":"06b3","./tree-table.svg":"4d24","./tree.svg":"0e8f","./upload.svg":"068c","./user.svg":"d88a","./validCode.svg":"67bd","./wechat.svg":"2ba1","./zip.svg":"a75d"};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id="23f1"},"243e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-switch",use:"icon-switch-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},2723:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"2ba1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});c.a.add(o);t["default"]=o},"2bb1":function(e,t,n){},"2fb0":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},3561:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"383e":function(e,t,n){"use strict";n("216a")},"39e1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"3c5e":function(e,t,n){"use strict";n("7206")},"3dcd":function(e,t,n){"use strict";n("0733")},"430b":function(e,t,n){},4360:function(e,t,n){"use strict";var i=n("2b0e"),a=n("2f62"),s=n("852e"),c=n.n(s),o={sidebar:{opened:!c.a.get("sidebarStatus")||!!+c.a.get("sidebarStatus"),withoutAnimation:!1,hide:!1},device:"desktop",size:c.a.get("size")||"medium"},r={TOGGLE_SIDEBAR:function(e){if(e.sidebar.hide)return!1;e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?c.a.set("sidebarStatus",1):c.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){c.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,c.a.set("size",t)},SET_SIDEBAR_HIDE:function(e,t){e.sidebar.hide=t}},l={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,i=t.withoutAnimation;n("CLOSE_SIDEBAR",i)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)},setSize:function(e,t){var n=e.commit;n("SET_SIZE",t)},toggleSideBarHide:function(e,t){var n=e.commit;n("SET_SIDEBAR_HIDE",t)}},u={namespaced:!0,state:o,mutations:r,actions:l},d=(n("14d9"),n("a434"),{dict:new Array}),h={SET_DICT:function(e,t){var n=t.key,i=t.value;null!==n&&""!==n&&e.dict.push({key:n,value:i})},REMOVE_DICT:function(e,t){try{for(var n=0;n0?(t("SET_ROLES",i.roles),t("SET_PERMISSIONS",i.permissions)):t("SET_ROLES",["ROLE_DEFAULT"]),t("SET_ID",a.userId),t("SET_NAME",a.userName),t("SET_NICK_NAME",a.nickName),t("SET_AVATAR",s),i.isDefaultModifyPwd&&v["MessageBox"].confirm("您的密码还是初始密码,请修改密码!","安全提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["b"].push({name:"Profile",params:{activeTab:"resetPwd"}})})).catch((function(){})),!i.isDefaultModifyPwd&&i.isPasswordExpired&&v["MessageBox"].confirm("您的密码已过期,请尽快修改密码!","安全提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){p["b"].push({name:"Profile",params:{activeTab:"resetPwd"}})})).catch((function(){})),e(i)})).catch((function(e){n(e)}))}))},LogOut:function(e){var t=e.commit,n=e.state;return new Promise((function(e,i){Object(g["d"])(n.token).then((function(){t("SET_TOKEN",""),t("SET_ROLES",[]),t("SET_PERMISSIONS",[]),Object(w["b"])(),e()})).catch((function(e){i(e)}))}))},FedLogOut:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),Object(w["b"])(),e()}))}}},z=k,V=n("2909"),C=n("3835"),S=n("b85c"),_=(n("4de4"),n("c740"),n("caad"),n("fb6a"),n("2532"),n("9911"),n("0643"),n("2382"),n("9a9a"),n("ddb0"),{visitedViews:[],cachedViews:[],iframeViews:[]}),T={ADD_IFRAME_VIEW:function(e,t){e.iframeViews.some((function(e){return e.path===t.path}))||e.iframeViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta&&!t.meta.noCache&&e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=Object(S["a"])(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var a=Object(C["a"])(n.value,2),s=a[0],c=a[1];if(c.path===t.path){e.visitedViews.splice(s,1);break}}}catch(o){i.e(o)}finally{i.f()}e.iframeViews=e.iframeViews.filter((function(e){return e.path!==t.path}))},DEL_IFRAME_VIEW:function(e,t){e.iframeViews=e.iframeViews.filter((function(e){return e.path!==t.path}))},DEL_CACHED_VIEW:function(e,t){var n=e.cachedViews.indexOf(t.name);n>-1&&e.cachedViews.splice(n,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path})),e.iframeViews=e.iframeViews.filter((function(e){return e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var n=e.cachedViews.indexOf(t.name);e.cachedViews=n>-1?e.cachedViews.slice(n,n+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t,e.iframeViews=[]},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=Object(S["a"])(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path){a=Object.assign(a,t);break}}}catch(s){i.e(s)}finally{i.f()}},DEL_RIGHT_VIEWS:function(e,t){var n=e.visitedViews.findIndex((function(e){return e.path===t.path}));-1!==n&&(e.visitedViews=e.visitedViews.filter((function(t,i){if(i<=n||t.meta&&t.meta.affix)return!0;var a=e.cachedViews.indexOf(t.name);if(a>-1&&e.cachedViews.splice(a,1),t.meta.link){var s=e.iframeViews.findIndex((function(e){return e.path===t.path}));e.iframeViews.splice(s,1)}return!1})))},DEL_LEFT_VIEWS:function(e,t){var n=e.visitedViews.findIndex((function(e){return e.path===t.path}));-1!==n&&(e.visitedViews=e.visitedViews.filter((function(t,i){if(i>=n||t.meta&&t.meta.affix)return!0;var a=e.cachedViews.indexOf(t.name);if(a>-1&&e.cachedViews.splice(a,1),t.meta.link){var s=e.iframeViews.findIndex((function(e){return e.path===t.path}));e.iframeViews.splice(s,1)}return!1})))}},M={addView:function(e,t){var n=e.dispatch;n("addVisitedView",t),n("addCachedView",t)},addIframeView:function(e,t){var n=e.commit;n("ADD_IFRAME_VIEW",t)},addVisitedView:function(e,t){var n=e.commit;n("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var n=e.commit;n("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(V["a"])(i.visitedViews))}))},delIframeView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_IFRAME_VIEW",t),e(Object(V["a"])(i.iframeViews))}))},delCachedView:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(V["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(V["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,i=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(V["a"])(i.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,i=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(V["a"])(i.visitedViews),cachedViews:Object(V["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(V["a"])(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(V["a"])(n.cachedViews))}))},updateVisitedView:function(e,t){var n=e.commit;n("UPDATE_VISITED_VIEW",t)},delRightTags:function(e,t){var n=e.commit;return new Promise((function(e){n("DEL_RIGHT_VIEWS",t),e(Object(V["a"])(_.visitedViews))}))},delLeftTags:function(e,t){var n=e.commit;return new Promise((function(e){n("DEL_LEFT_VIEWS",t),e(Object(V["a"])(_.visitedViews))}))}},L={namespaced:!0,state:_,mutations:T,actions:M},O=(n("99af"),n("e9c4"),n("b64b"),n("3ca3"),n("4e3e"),n("5087"),n("159b"),n("dce4")),E=n("b775"),B=function(){return Object(E["a"])({url:"/getRouters",method:"get"})},H=n("c1f7"),$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-view")},j=[],I=n("2877"),A={},R=Object(I["a"])(A,$,j,!1,null,null,null),D=R.exports,P=n("594d"),N={state:{routes:[],addRoutes:[],defaultRoutes:[],topbarRouters:[],sidebarRouters:[]},mutations:{SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=p["a"].concat(t)},SET_DEFAULT_ROUTES:function(e,t){e.defaultRoutes=p["a"].concat(t)},SET_TOPBAR_ROUTES:function(e,t){e.topbarRouters=t},SET_SIDEBAR_ROUTERS:function(e,t){e.sidebarRouters=t}},actions:{GenerateRoutes:function(e){var t=e.commit;return new Promise((function(e){B().then((function(n){var i=JSON.parse(JSON.stringify(n.data)),a=JSON.parse(JSON.stringify(n.data)),s=U(i),c=U(a,!1,!0),o=F(p["c"]);c.push({path:"*",redirect:"/404",hidden:!0}),p["b"].addRoutes(o),t("SET_ROUTES",c),t("SET_SIDEBAR_ROUTERS",p["a"].concat(s)),t("SET_DEFAULT_ROUTES",s),t("SET_TOPBAR_ROUTES",s),e(c)}))}))}}};function U(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.filter((function(e){return t&&e.children&&(e.children=q(e.children)),e.component&&("Layout"===e.component?e.component=H["a"]:"ParentView"===e.component?e.component=D:"InnerLink"===e.component?e.component=P["a"]:e.component=W(e.component)),null!=e.children&&e.children&&e.children.length?e.children=U(e.children,e,t):(delete e["children"],delete e["redirect"]),!0}))}function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.forEach((function(e){e.path=t?t.path+"/"+e.path:e.path,e.children&&e.children.length&&"ParentView"===e.component?n=n.concat(q(e.children,e)):n.push(e)})),n}function F(e){var t=[];return e.forEach((function(e){e.permissions?O["a"].hasPermiOr(e.permissions)&&t.push(e):e.roles&&O["a"].hasRoleOr(e.roles)&&t.push(e)})),t}var W=function(e){return function(){return n("9dac")("./".concat(e))}},J=N,G=n("83d6"),Q=n.n(G);function Y(){pe.state.settings.dynamicTitle?document.title=pe.state.settings.title+" - "+Q.a.title:document.title=Q.a.title}var X=Q.a.sideTheme,K=Q.a.showSettings,Z=Q.a.navType,ee=Q.a.tagsView,te=Q.a.tagsIcon,ne=Q.a.fixedHeader,ie=Q.a.sidebarLogo,ae=Q.a.dynamicTitle,se=Q.a.footerVisible,ce=Q.a.footerContent,oe=JSON.parse(localStorage.getItem("layout-setting"))||"",re={title:"",theme:oe.theme||"#409EFF",sideTheme:oe.sideTheme||X,showSettings:K,navType:void 0===oe.navType?Z:oe.navType,tagsView:void 0===oe.tagsView?ee:oe.tagsView,tagsIcon:void 0===oe.tagsIcon?te:oe.tagsIcon,fixedHeader:void 0===oe.fixedHeader?ne:oe.fixedHeader,sidebarLogo:void 0===oe.sidebarLogo?ie:oe.sidebarLogo,dynamicTitle:void 0===oe.dynamicTitle?ae:oe.dynamicTitle,footerVisible:void 0===oe.footerVisible?se:oe.footerVisible,footerContent:ce},le={CHANGE_SETTING:function(e,t){var n=t.key,i=t.value;e.hasOwnProperty(n)&&(e[n]=i)},SET_TITLE:function(e,t){e.title=t}},ue={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)},setTitle:function(e,t){var n=e.commit;n("SET_TITLE",t),Y()}},de={namespaced:!0,state:re,mutations:le,actions:ue},he={sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},dict:function(e){return e.dict.dict},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},id:function(e){return e.user.id},name:function(e){return e.user.name},nickName:function(e){return e.user.nickName},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permissions:function(e){return e.user.permissions},permission_routes:function(e){return e.permission.routes},topbarRouters:function(e){return e.permission.topbarRouters},defaultRoutes:function(e){return e.permission.defaultRoutes},sidebarRouters:function(e){return e.permission.sidebarRouters}},fe=he;i["default"].use(a["a"]);var me=new a["a"].Store({modules:{app:u,dict:m,user:z,tagsView:L,permission:J,settings:de},getters:fe}),pe=t["a"]=me},4576:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},47382:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-server",use:"icon-server-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"482c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-post",use:"icon-post-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},4955:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"49be":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"49f4":function(e,t,n){e.exports={theme:"#1890ff"}},"4b94":function(e,t,n){e.exports=n.p+"static/img/profile.473f5971.jpg"},"4d24":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"4e5a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"522f":function(e,t,n){},5572:function(e,t,n){"use strict";n("9ba4")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var i=n("2b0e"),a=n("852e"),s=n.n(a),c=n("5c96"),o=n.n(c),r=(n("49f4"),n("6861"),n("b34b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view"),n("theme-picker")],1)}),l=[],u=n("b18f"),d={name:"App",components:{ThemePicker:u["a"]}},h=d,f=(n("7445"),n("2877")),m=Object(f["a"])(h,r,l,!1,null,"180b6f98",null),p=m.exports,v=n("4360"),g=n("a18c"),w=(n("d9e2"),n("caad"),n("d3b7"),n("2532"),n("0643"),n("9a9a"),{inserted:function(e,t,n){var i=t.value,a="admin",s=v["a"].getters&&v["a"].getters.roles;if(!(i&&i instanceof Array&&i.length>0))throw new Error('请设置角色权限标签值"');var c=i,o=s.some((function(e){return a===e||c.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}}),b={inserted:function(e,t,n){var i=t.value,a="*:*:*",s=v["a"].getters&&v["a"].getters.permissions;if(!(i&&i instanceof Array&&i.length>0))throw new Error("请设置操作权限标签值");var c=i,o=s.some((function(e){return a===e||c.includes(e)}));o||e.parentNode&&e.parentNode.removeChild(e)}},y=(n("ac1f"),n("5319"),{bind:function(e,t,n,i){var a=t.value;if(0!=a){var s=e.querySelector(".el-dialog__header"),c=e.querySelector(".el-dialog");s.style.cursor="move";var o=c.currentStyle||window.getComputedStyle(c,null);c.style.position="absolute",c.style.marginTop=0;var r=c.style.width;r=r.includes("%")?+document.body.clientWidth*(+r.replace(/\%/g,"")/100):+r.replace(/\px/g,""),c.style.left="".concat((document.body.clientWidth-r)/2,"px"),s.onmousedown=function(e){var t,n,i=e.clientX-s.offsetLeft,a=e.clientY-s.offsetTop;o.left.includes("%")?(t=+document.body.clientWidth*(+o.left.replace(/\%/g,"")/100),n=+document.body.clientHeight*(+o.top.replace(/\%/g,"")/100)):(t=+o.left.replace(/\px/g,""),n=+o.top.replace(/\px/g,"")),document.onmousemove=function(e){var s=e.clientX-i,o=e.clientY-a,r=s+t,l=o+n;c.style.left="".concat(r,"px"),c.style.top="".concat(l,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}}),x={bind:function(e){var t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 5px; background: inherit; height: 80%; position: absolute; right: 0; top: 0; bottom: 0; margin: auto; z-index: 1; cursor: w-resize;",n.addEventListener("mousedown",(function(n){var i=n.clientX-e.offsetLeft,a=t.offsetWidth;document.onmousemove=function(e){e.preventDefault();var n=e.clientX-i;t.style.width="".concat(a+n,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},k={bind:function(e){var t=e.querySelector(".el-dialog"),n=document.createElement("div");n.style="width: 6px; background: inherit; height: 10px; position: absolute; right: 0; bottom: 0; margin: auto; z-index: 1; cursor: nwse-resize;",n.addEventListener("mousedown",(function(n){var i=n.clientX-e.offsetLeft,a=n.clientY-e.offsetTop,s=t.offsetWidth,c=t.offsetHeight;document.onmousemove=function(e){e.preventDefault();var n=e.clientX-i,o=e.clientY-a;t.style.width="".concat(s+n,"px"),t.style.height="".concat(c+o,"px")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}),!1),t.appendChild(n)}},z=n("b311"),V=n.n(z),C={bind:function(e,t,n){switch(t.arg){case"success":e._vClipBoard_success=t.value;break;case"error":e._vClipBoard_error=t.value;break;default:var i=new V.a(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"}});i.on("success",(function(t){var n=e._vClipBoard_success;n&&n(t)})),i.on("error",(function(t){var n=e._vClipBoard_error;n&&n(t)})),e._vClipBoard=i}},update:function(e,t){"success"===t.arg?e._vClipBoard_success=t.value:"error"===t.arg?e._vClipBoard_error=t.value:(e._vClipBoard.text=function(){return t.value},e._vClipBoard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipBoard_success:"error"===t.arg?delete e._vClipBoard_error:(e._vClipBoard.destroy(),delete e._vClipBoard))}},S=function(e){e.directive("hasRole",w),e.directive("hasPermi",b),e.directive("clipboard",C),e.directive("dialogDrag",y),e.directive("dialogDragWidth",x),e.directive("dialogDragHeight",k)};window.Vue&&(window["hasRole"]=w,window["hasPermi"]=b,Vue.use(S));var _,T,M=S,L=(n("14d9"),n("fb6a"),n("b0c0"),n("4e3e"),n("159b"),{refreshPage:function(e){var t=g["b"].currentRoute,n=t.path,i=t.query,a=t.matched;return void 0===e&&a.forEach((function(t){t.components&&t.components.default&&t.components.default.name&&(["Layout","ParentView"].includes(t.components.default.name)||(e={name:t.components.default.name,path:n,query:i}))})),v["a"].dispatch("tagsView/delCachedView",e).then((function(){var t=e,n=t.path,i=t.query;g["b"].replace({path:"/redirect"+n,query:i})}))},closeOpenPage:function(e){if(v["a"].dispatch("tagsView/delView",g["b"].currentRoute),void 0!==e)return g["b"].push(e)},closePage:function(e){return void 0===e?v["a"].dispatch("tagsView/delView",g["b"].currentRoute).then((function(e){var t=e.visitedViews,n=t.slice(-1)[0];return n?g["b"].push(n.fullPath):g["b"].push("/")})):v["a"].dispatch("tagsView/delView",e)},closeAllPage:function(){return v["a"].dispatch("tagsView/delAllViews")},closeLeftPage:function(e){return v["a"].dispatch("tagsView/delLeftTags",e||g["b"].currentRoute)},closeRightPage:function(e){return v["a"].dispatch("tagsView/delRightTags",e||g["b"].currentRoute)},closeOtherPage:function(e){return v["a"].dispatch("tagsView/delOthersViews",e||g["b"].currentRoute)},openPage:function(e,t,n){var i={path:t,meta:{title:e}};return v["a"].dispatch("tagsView/addView",i),g["b"].push({path:t,query:n})},updatePage:function(e){return v["a"].dispatch("tagsView/updateVisitedView",e)}}),O=n("dce4"),E=n("63f0"),B={msg:function(e){c["Message"].info(e)},msgError:function(e){c["Message"].error(e)},msgSuccess:function(e){c["Message"].success(e)},msgWarning:function(e){c["Message"].warning(e)},alert:function(e){c["MessageBox"].alert(e,"系统提示")},alertError:function(e){c["MessageBox"].alert(e,"系统提示",{type:"error"})},alertSuccess:function(e){c["MessageBox"].alert(e,"系统提示",{type:"success"})},alertWarning:function(e){c["MessageBox"].alert(e,"系统提示",{type:"warning"})},notify:function(e){c["Notification"].info(e)},notifyError:function(e){c["Notification"].error(e)},notifySuccess:function(e){c["Notification"].success(e)},notifyWarning:function(e){c["Notification"].warning(e)},confirm:function(e){return c["MessageBox"].confirm(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},prompt:function(e){return c["MessageBox"].prompt(e,"系统提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"})},loading:function(e){_=c["Loading"].service({lock:!0,text:e,spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"})},closeLoading:function(){_.close()}},H=n("c14f"),$=n("1da1"),j=(n("b64b"),n("5087"),n("bc3a")),I=n.n(j),A=n("21a6"),R=n("5f87"),D=n("81ae"),P=n("c38a"),N="/prod-api",U={name:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=N+"/common/download?fileName="+encodeURIComponent(e)+"&delete="+n;I()({method:"get",url:i,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var n=Object(P["b"])(e.data);if(n){var i=new Blob([e.data]);t.saveAs(i,decodeURIComponent(e.headers["download-filename"]))}else t.printErrMsg(e.data)}))},resource:function(e){var t=this,n=N+"/common/download/resource?resource="+encodeURIComponent(e);I()({method:"get",url:n,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var n=Object(P["b"])(e.data);if(n){var i=new Blob([e.data]);t.saveAs(i,decodeURIComponent(e.headers["download-filename"]))}else t.printErrMsg(e.data)}))},zip:function(e,t){var n=this;e=N+e;T=c["Loading"].service({text:"正在下载数据,请稍候",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),I()({method:"get",url:e,responseType:"blob",headers:{Authorization:"Bearer "+Object(R["a"])()}}).then((function(e){var i=Object(P["b"])(e.data);if(i){var a=new Blob([e.data],{type:"application/zip"});n.saveAs(a,t)}else n.printErrMsg(e.data);T.close()})).catch((function(e){console.error(e),c["Message"].error("下载文件出现错误,请联系管理员!"),T.close()}))},saveAs:function(e,t,n){Object(A["saveAs"])(e,t,n)},printErrMsg:function(e){return Object($["a"])(Object(H["a"])().m((function t(){var n,i,a;return Object(H["a"])().w((function(t){while(1)switch(t.n){case 0:return t.n=1,e.text();case 1:n=t.v,i=JSON.parse(n),a=D["a"][i.code]||i.msg||D["a"]["default"],c["Message"].error(a);case 2:return t.a(2)}}),t)})))()}},q={install:function(e){e.prototype.$tab=L,e.prototype.$auth=O["a"],e.prototype.$cache=E["a"],e.prototype.$modal=B,e.prototype.$download=U}},F=n("b775"),W=(n("d81d"),n("a573"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),J=[],G=n("61f7"),Q={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(G["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},Y=Q,X=(n("7651"),Object(f["a"])(Y,W,J,!1,null,"248913c8",null)),K=X.exports;i["default"].component("svg-icon",K);var Z=n("23f1"),ee=function(e){return e.keys().map(e)};ee(Z);var te=n("5530"),ne=n("323e"),ie=n.n(ne);n("a5d8");ie.a.configure({showSpinner:!1});var ae=["/login","/register"],se=function(e){return ae.some((function(t){return Object(G["d"])(t,e)}))};g["b"].beforeEach((function(e,t,n){ie.a.start(),Object(R["a"])()?(e.meta.title&&v["a"].dispatch("settings/setTitle",e.meta.title),"/login"===e.path?(n({path:"/"}),ie.a.done()):se(e.path)?n():0===v["a"].getters.roles.length?(F["c"].show=!0,v["a"].dispatch("GetInfo").then((function(){F["c"].show=!1,v["a"].dispatch("GenerateRoutes").then((function(t){g["b"].addRoutes(t),n(Object(te["a"])(Object(te["a"])({},e),{},{replace:!0}))}))})).catch((function(e){v["a"].dispatch("LogOut").then((function(){c["Message"].error(e),n({path:"/"})}))}))):n()):se(e.path)?n():(n("/login?redirect=".concat(encodeURIComponent(e.fullPath))),ie.a.done())})),g["b"].afterEach((function(){ie.a.done()}));var ce=n("aa3a"),oe=n("c0c3"),re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,"pager-count":e.pagerCount,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},le=[];n("a9e3");Math.easeInOutQuad=function(e,t,n,i){return e/=i/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var ue=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function de(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function he(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function fe(e,t,n){var i=he(),a=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var o=function(){c+=s;var e=Math.easeInOutQuad(c,i,a,t);de(e),cthis.total&&(this.currentPage=1),this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&fe(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&fe(0,800)}}},pe=me,ve=(n("650d"),Object(f["a"])(pe,re,le,!1,null,"5ce40f6c",null)),ge=ve.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"top-right-btn",style:e.style},[n("el-row",[e.search?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.showSearch?"隐藏搜索":"显示搜索",placement:"top"}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-search"},on:{click:function(t){return e.toggleSearch()}}})],1):e._e(),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"刷新",placement:"top"}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-refresh"},on:{click:function(t){return e.refresh()}}})],1),Object.keys(e.columns).length>0?n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"显隐列",placement:"top"}},["transfer"==e.showColumnsType?n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-menu"},on:{click:function(t){return e.showColumn()}}}):e._e(),"checkbox"==e.showColumnsType?n("el-dropdown",{staticStyle:{"padding-left":"12px"},attrs:{trigger:"click","hide-on-click":!1}},[n("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-menu"}}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.toggleCheckAll},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}},[e._v(" 列展示 ")])],1),n("div",{staticClass:"check-line"}),e._l(e.columns,(function(t,i){return[n("el-dropdown-item",{key:i},[n("el-checkbox",{attrs:{label:t.label},on:{change:function(t){return e.checkboxChange(t,i)}},model:{value:t.visible,callback:function(n){e.$set(t,"visible",n)},expression:"item.visible"}})],1)]}))],2)],1):e._e()],1):e._e()],1),n("el-dialog",{attrs:{title:e.title,visible:e.open,"append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-transfer",{attrs:{titles:["显示","隐藏"],data:e.transferData},on:{change:e.dataChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1)},be=[],ye=(n("4de4"),n("07ac"),n("76d6"),n("2382"),{name:"RightToolbar",data:function(){return{value:[],title:"显示/隐藏",open:!1}},props:{showSearch:{type:Boolean,default:!0},columns:{type:[Array,Object],default:function(){return{}}},search:{type:Boolean,default:!0},showColumnsType:{type:String,default:"checkbox"},gutter:{type:Number,default:10}},computed:{style:function(){var e={};return this.gutter&&(e.marginRight="".concat(this.gutter/2,"px")),e},isChecked:{get:function(){return Array.isArray(this.columns)?this.columns.every((function(e){return e.visible})):Object.values(this.columns).every((function(e){return e.visible}))},set:function(){}},isIndeterminate:function(){return Array.isArray(this.columns)?this.columns.some((function(e){return e.visible}))&&!this.isChecked:Object.values(this.columns).some((function(e){return e.visible}))&&!this.isChecked},transferData:function(){var e=this;return Array.isArray(this.columns)?this.columns.map((function(e,t){return{key:t,label:e.label}})):Object.keys(this.columns).map((function(t,n){return{key:n,label:e.columns[t].label}}))}},created:function(){var e=this;if("transfer"==this.showColumnsType)if(Array.isArray(this.columns))for(var t in this.columns)!1===this.columns[t].visible&&this.value.push(parseInt(t));else Object.keys(this.columns).forEach((function(t,n){!1===e.columns[t].visible&&e.value.push(n)}))},methods:{toggleSearch:function(){this.$emit("update:showSearch",!this.showSearch)},refresh:function(){this.$emit("queryTable")},dataChange:function(e){var t=this;if(Array.isArray(this.columns))for(var n in this.columns){var i=this.columns[n].key;this.columns[n].visible=!e.includes(i)}else Object.keys(this.columns).forEach((function(n,i){t.columns[n].visible=!e.includes(i)}))},showColumn:function(){this.open=!0},checkboxChange:function(e,t){Array.isArray(this.columns)?this.columns.filter((function(e){return e.key==t}))[0].visible=e:this.columns[t].visible=e},toggleCheckAll:function(){var e=!this.isChecked;Array.isArray(this.columns)?this.columns.forEach((function(t){return t.visible=e})):Object.values(this.columns).forEach((function(t){return t.visible=e}))}}}),xe=ye,ke=(n("d23b"),Object(f["a"])(xe,we,be,!1,null,"5b20c345",null)),ze=ke.exports,Ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["url"==this.type?n("el-upload",{ref:"upload",staticStyle:{display:"none"},attrs:{action:e.uploadUrl,"before-upload":e.handleBeforeUpload,"on-success":e.handleUploadSuccess,"on-error":e.handleUploadError,name:"file","show-file-list":!1,headers:e.headers}}):e._e(),n("div",{ref:"editor",staticClass:"editor",style:e.styles})],1)},Ce=[],Se=(n("99af"),n("31b7")),_e=(n("a753"),n("8096"),n("14e1"),{name:"Editor",props:{value:{type:String,default:""},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1},fileSize:{type:Number,default:5},type:{type:String,default:"url"}},data:function(){return{uploadUrl:"/prod-api/common/upload",headers:{Authorization:"Bearer "+Object(R["a"])()},Quill:null,currentValue:"",options:{theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"请输入内容",readOnly:this.readOnly}}},computed:{styles:function(){var e={};return this.minHeight&&(e.minHeight="".concat(this.minHeight,"px")),this.height&&(e.height="".concat(this.height,"px")),e}},watch:{value:{handler:function(e){e!==this.currentValue&&(this.currentValue=null===e?"":e,this.Quill&&this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue))},immediate:!0}},mounted:function(){this.init()},beforeDestroy:function(){this.Quill=null},methods:{init:function(){var e=this,t=this.$refs.editor;if(this.Quill=new Se["a"](t,this.options),"url"==this.type){var n=this.Quill.getModule("toolbar");n.addHandler("image",(function(t){t?e.$refs.upload.$children[0].$refs.input.click():e.quill.format("image",!1)})),this.Quill.root.addEventListener("paste",this.handlePasteCapture,!0)}this.Quill.clipboard.dangerouslyPasteHTML(this.currentValue),this.Quill.on("text-change",(function(t,n,i){var a=e.$refs.editor.children[0].innerHTML,s=e.Quill.getText(),c=e.Quill;e.currentValue=a,e.$emit("input",a),e.$emit("on-change",{html:a,text:s,quill:c})})),this.Quill.on("text-change",(function(t,n,i){e.$emit("on-text-change",t,n,i)})),this.Quill.on("selection-change",(function(t,n,i){e.$emit("on-selection-change",t,n,i)})),this.Quill.on("editor-change",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a=0;if(!i)return this.$modal.msgError("文件格式不正确,请上传".concat(this.fileType.join("/"),"格式文件!")),!1}if(e.name.includes(","))return this.$modal.msgError("文件名不正确,不能包含英文逗号!"),!1;if(this.fileSize){var a=e.size/1024/10240&&this.uploadList.length===this.number&&(this.fileList=this.fileList.concat(this.uploadList),this.uploadList=[],this.number=0,this.$emit("input",this.listToString(this.fileList)),this.$modal.closeLoading())},getFileName:function(e){return e.lastIndexOf("/")>-1?e.slice(e.lastIndexOf("/")+1):e},listToString:function(e,t){var n="";for(var i in t=t||",",e)n+=e[i].url+t;return""!=n?n.substr(0,n.length-1):""}}},$e=He,je=(n("0946"),Object(f["a"])($e,Oe,Ee,!1,null,"6067b714",null)),Ie=je.exports,Ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"component-upload-image"},[n("el-upload",{ref:"imageUpload",class:{hide:this.fileList.length>=this.limit},attrs:{multiple:"",disabled:e.disabled,action:e.uploadImgUrl,"list-type":"picture-card","on-success":e.handleUploadSuccess,"before-upload":e.handleBeforeUpload,data:e.data,limit:e.limit,"on-error":e.handleUploadError,"on-exceed":e.handleExceed,"on-remove":e.handleDelete,"show-file-list":!0,headers:e.headers,"file-list":e.fileList,"on-preview":e.handlePictureCardPreview}},[n("i",{staticClass:"el-icon-plus"})]),e.showTip&&!e.disabled?n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" 请上传 "),e.fileSize?[e._v(" 大小不超过 "),n("b",{staticStyle:{color:"#f56c6c"}},[e._v(e._s(e.fileSize)+"MB")])]:e._e(),e.fileType?[e._v(" 格式为 "),n("b",{staticStyle:{color:"#f56c6c"}},[e._v(e._s(e.fileType.join("/")))])]:e._e(),e._v(" 的文件 ")],2):e._e(),n("el-dialog",{attrs:{visible:e.dialogVisible,title:"预览",width:"800","append-to-body":""},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("img",{staticStyle:{display:"block","max-width":"100%",margin:"0 auto"},attrs:{src:e.dialogImageUrl}})])],1)},Re=[],De={props:{value:[String,Object,Array],action:{type:String,default:"/common/upload"},data:{type:Object},limit:{type:Number,default:5},fileSize:{type:Number,default:5},fileType:{type:Array,default:function(){return["png","jpg","jpeg"]}},isShowTip:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},drag:{type:Boolean,default:!0}},data:function(){return{number:0,uploadList:[],dialogImageUrl:"",dialogVisible:!1,hideUpload:!1,baseUrl:"/prod-api",uploadImgUrl:"/prod-api"+this.action,headers:{Authorization:"Bearer "+Object(R["a"])()},fileList:[]}},mounted:function(){var e=this;this.drag&&!this.disabled&&this.$nextTick((function(){var t,n=null===(t=e.$refs.imageUpload)||void 0===t||null===(t=t.$el)||void 0===t?void 0:t.querySelector(".el-upload-list");Be["default"].create(n,{onEnd:function(t){var n=e.fileList.splice(t.oldIndex,1)[0];e.fileList.splice(t.newIndex,0,n),e.$emit("input",e.listToString(e.fileList))}})}))},watch:{value:{handler:function(e){var t=this;if(!e)return this.fileList=[],[];var n=Array.isArray(e)?e:this.value.split(",");this.fileList=n.map((function(e){return"string"===typeof e&&(e=-1!==e.indexOf(t.baseUrl)||Object(G["b"])(e)?{name:e,url:e}:{name:t.baseUrl+e,url:t.baseUrl+e}),e}))},deep:!0,immediate:!0}},computed:{showTip:function(){return this.isShowTip&&(this.fileType||this.fileSize)}},methods:{handleBeforeUpload:function(e){var t=!1;if(this.fileType.length){var n="";e.name.lastIndexOf(".")>-1&&(n=e.name.slice(e.name.lastIndexOf(".")+1)),t=this.fileType.some((function(t){return e.type.indexOf(t)>-1||!!(n&&n.indexOf(t)>-1)}))}else t=e.type.indexOf("image")>-1;if(!t)return this.$modal.msgError("文件格式不正确,请上传".concat(this.fileType.join("/"),"图片格式文件!")),!1;if(e.name.includes(","))return this.$modal.msgError("文件名不正确,不能包含英文逗号!"),!1;if(this.fileSize){var i=e.size/1024/1024-1&&(this.fileList.splice(t,1),this.$emit("input",this.listToString(this.fileList)))},handleUploadError:function(){this.$modal.msgError("上传图片失败,请重试"),this.$modal.closeLoading()},uploadedSuccessfully:function(){this.number>0&&this.uploadList.length===this.number&&(this.fileList=this.fileList.concat(this.uploadList),this.uploadList=[],this.number=0,this.$emit("input",this.listToString(this.fileList)),this.$modal.closeLoading())},handlePictureCardPreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},listToString:function(e,t){var n="";for(var i in t=t||",",e)e[i].url&&(n+=e[i].url.replace(this.baseUrl,"")+t);return""!=n?n.substr(0,n.length-1):""}}},Pe=De,Ne=(n("8e02"),Object(f["a"])(Pe,Ae,Re,!1,null,"39f73966",null)),Ue=Ne.exports,qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-image",{style:"width:"+e.realWidth+";height:"+e.realHeight+";",attrs:{src:""+e.realSrc,fit:"cover","preview-src-list":e.realSrcList}},[n("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[n("i",{staticClass:"el-icon-picture-outline"})])])},Fe=[],We={name:"ImagePreview",props:{src:{type:String,default:""},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""}},computed:{realSrc:function(){if(this.src){var e=this.src.split(",")[0];return Object(G["b"])(e)?e:"/prod-api"+e}},realSrcList:function(){if(this.src){var e=this.src.split(","),t=[];return e.forEach((function(e){return Object(G["b"])(e)?t.push(e):t.push("/prod-api"+e)})),t}},realWidth:function(){return"string"==typeof this.width?this.width:"".concat(this.width,"px")},realHeight:function(){return"string"==typeof this.height?this.height:"".concat(this.height,"px")}}},Je=We,Ge=(n("9ef1"),Object(f["a"])(Je,qe,Fe,!1,null,"61a0a004",null)),Qe=Ge.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._l(e.options,(function(t,i){return[e.isValueMatch(t.value)?["default"!=t.raw.listClass&&""!=t.raw.listClass||""!=t.raw.cssClass&&null!=t.raw.cssClass?n("el-tag",{key:t.value,class:t.raw.cssClass,attrs:{"disable-transitions":!0,index:i,type:"primary"==t.raw.listClass?"":t.raw.listClass}},[e._v(" "+e._s(t.label+" ")+" ")]):n("span",{key:t.value,class:t.raw.cssClass,attrs:{index:i}},[e._v(e._s(t.label+" "))])]:e._e()]})),e.unmatch&&e.showValue?[e._v(" "+e._s(e._f("handleArray")(e.unmatchArray))+" ")]:e._e()],2)},Xe=[],Ke=(n("13d5"),n("1276"),n("9d4a"),{name:"DictTag",props:{options:{type:Array,default:null},value:[Number,String,Array],showValue:{type:Boolean,default:!0},separator:{type:String,default:","}},data:function(){return{unmatchArray:[]}},computed:{values:function(){return null===this.value||"undefined"===typeof this.value||""===this.value?[]:"number"===typeof this.value||"boolean"===typeof this.value?[this.value]:Array.isArray(this.value)?this.value.map((function(e){return""+e})):String(this.value).split(this.separator)},unmatch:function(){var e=this;if(this.unmatchArray=[],null===this.value||"undefined"===typeof this.value||""===this.value||0===this.options.length)return!1;var t=!1;return this.values.forEach((function(n){e.options.some((function(e){return e.value==n}))||(e.unmatchArray.push(n),t=!0)})),t}},methods:{isValueMatch:function(e){return this.values.some((function(t){return t==e}))}},filters:{handleArray:function(e){return 0===e.length?"":e.reduce((function(e,t){return e+" "+t}))}}}),Ze=Ke,et=(n("e2dd"),Object(f["a"])(Ze,Ye,Xe,!1,null,"d44462d8",null)),tt=et.exports,nt=n("2909"),it=n("d4ec"),at=n("bee2"),st=(n("7db0"),n("aff5"),n("3ca3"),n("fffc"),n("53ca")),ct=Object(at["a"])((function e(t,n,i){Object(it["a"])(this,e),this.label=t,this.value=n,this.raw=i})),ot=function(e,t){var n=rt.apply(void 0,[e,t.labelField].concat(Object(nt["a"])(ht.DEFAULT_LABEL_FIELDS))),i=rt.apply(void 0,[e,t.valueField].concat(Object(nt["a"])(ht.DEFAULT_VALUE_FIELDS)));return new ct(e[n],e[i],e)};function rt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i"),c=[]),(a=e.type[s]).splice.apply(a,[0,Number.MAX_SAFE_INTEGER].concat(Object(nt["a"])(c))),c.forEach((function(t){i["default"].set(e.label[s],t.value,t.label)})),c}))}var gt=function(e,t){dt(t),e.mixin({data:function(){if(void 0===this.$options||void 0===this.$options.dicts||null===this.$options.dicts)return{};var e=new pt;return e.owner=this,{dict:e}},created:function(){var e=this;this.dict instanceof pt&&(t.onCreated&&t.onCreated(this.dict),this.dict.init(this.$options.dicts).then((function(){t.onReady&&t.onReady(e.dict),e.$nextTick((function(){e.$emit("dictReady",e.dict),e.$options.methods&&e.$options.methods.onDictReady instanceof Function&&e.$options.methods.onDictReady.call(e,e.dict)}))})))}})};function wt(e,t){if(null==t&&""==t)return null;try{for(var n=0;n'});c.a.add(o);t["default"]=o},"57fa":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(o);t["default"]=o},"586c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-enter",use:"icon-enter-usage",viewBox:"0 0 1194 1024",content:''});c.a.add(o);t["default"]=o},"594d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],style:"height:"+e.height,attrs:{"element-loading-text":"正在加载页面,请稍候!"}},[n("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{id:e.iframeId,src:e.src,frameborder:"no"}})])},a=[],s=(n("ac1f"),n("5319"),{props:{src:{type:String,default:"/"},iframeId:{type:String}},data:function(){return{loading:!1,height:document.documentElement.clientHeight-94.5+"px;"}},mounted:function(){var e=this,t=("#"+this.iframeId).replace(/\//g,"\\/"),n=document.querySelector(t);n.attachEvent?(this.loading=!0,n.attachEvent("onload",(function(){e.loading=!1}))):(this.loading=!0,n.onload=function(){e.loading=!1})}}),c=s,o=n("2877"),r=Object(o["a"])(c,i,a,!1,null,null,null);t["a"]=r.exports},5970:function(e,t,n){"use strict";n("430b")},"5aa7":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"5d9e":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-question",use:"icon-question-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r}));var i=n("852e"),a=n.n(i),s="Admin-Token";function c(){return a.a.get(s)}function o(e){return a.a.set(s,e)}function r(){return a.a.remove(s)}},"5fda":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},6198:function(e,t,n){},"61f7":function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c}));n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("498a");function i(e,t){var n=e.replace(/\//g,"\\/").replace(/\*\*/g,".*").replace(/\*/g,"[^\\/]*"),i=new RegExp("^".concat(n,"$"));return i.test(t)}function a(e){return null==e||""==e||void 0==e||"undefined"==e}function s(e){return-1!==e.indexOf("http://")||-1!==e.indexOf("https://")}function c(e){return/^(https?:|mailto:|tel:)/.test(e)}},6214:function(e,t,n){},"63f0":function(e,t,n){"use strict";n("e9c4"),n("b64b"),n("5087");var i={set:function(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get:function(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){sessionStorage.removeItem(e)}},a={set:function(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get:function(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON:function(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON:function(e){var t=this.get(e);return null!=t?JSON.parse(t):null},remove:function(e){localStorage.removeItem(e)}};t["a"]={session:i,local:a}},"650d":function(e,t,n){"use strict";n("b3b9")},"679a":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"67bd":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-validCode",use:"icon-validCode-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},6861:function(e,t,n){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0, 0, 0, 0.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#ffffff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#ffffff",logoLightTitleColor:"#001529"}},"6c1d":function(e,t,n){"use strict";n("1df5")},7154:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});c.a.add(o);t["default"]=o},7206:function(e,t,n){},"721c":function(e,t,n){},"7234d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-textarea",use:"icon-textarea-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},7271:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"72d1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"72e5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"737d":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-cascader",use:"icon-cascader-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},7445:function(e,t,n){"use strict";n("e11e")},"74a2":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"75b3":function(e,t,n){"use strict";n("721c")},7651:function(e,t,n){"use strict";n("c441")},"78a1":function(e,t,n){},"7ded":function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return r}));var i=n("b775");function a(e,t,n,a){var s={username:e,password:t,code:n,uuid:a};return Object(i["a"])({url:"/login",headers:{isToken:!1,repeatSubmit:!1},method:"post",data:s})}function s(e){return Object(i["a"])({url:"/register",headers:{isToken:!1},method:"post",data:e})}function c(){return Object(i["a"])({url:"/getInfo",method:"get"})}function o(){return Object(i["a"])({url:"/logout",method:"post"})}function r(){return Object(i["a"])({url:"/captchaImage",headers:{isToken:!1},method:"get",timeout:2e4})}},"81a5":function(e,t,n){e.exports=n.p+"static/img/logo.4eeb8a8e.png"},"81ae":function(e,t,n){"use strict";t["a"]={401:"认证失败,无法访问系统资源",403:"当前操作没有权限",404:"访问资源不存在",default:"系统未知错误,请反馈给管理员"}},"827c":function(e,t,n){},"83d6":function(e,t){e.exports={title:"超脑智子测试系统",sideTheme:"theme-dark",showSettings:!0,navType:1,tagsView:!0,tagsIcon:!1,fixedHeader:!0,sidebarLogo:!0,dynamicTitle:!1,footerVisible:!1,footerContent:"Copyright © 2018-2026 RuoYi. All Rights Reserved."}},"84e5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-swagger",use:"icon-swagger-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"85af":function(e,t,n){},"86b7":function(e,t,n){"use strict";n("522f")},"879b":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},8989:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"8dd0":function(e,t,n){"use strict";n("c459")},"8df1":function(e,t,n){e.exports={menuColor:"#bfcbd9",menuLightColor:"rgba(0, 0, 0, 0.7)",menuColorActive:"#f4f4f5",menuBackground:"#304156",menuLightBackground:"#ffffff",subMenuBackground:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"200px",logoTitleColor:"#ffffff",logoLightTitleColor:"#001529"}},"8e02":function(e,t,n){"use strict";n("da73")},"8e5b":function(e,t,n){"use strict";n("85af")},"8ea9":function(e,t,n){"use strict";n("6214")},"91be":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"922f":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-system",use:"icon-system-usage",viewBox:"0 0 1084 1024",content:''});c.a.add(o);t["default"]=o},"937c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"98ab":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},"99c3":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-time-range",use:"icon-time-range-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9a4c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-radio",use:"icon-radio-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9b2c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-logininfor",use:"icon-logininfor-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9ba4":function(e,t,n){},"9cb5":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-log",use:"icon-log-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9dac":function(e,t,n){var i={"./":["1e4b","chunk-12624f69"],"./dashboard/BarChart":["9488","chunk-1d7d97ec","chunk-469ba5ae"],"./dashboard/BarChart.vue":["9488","chunk-1d7d97ec","chunk-469ba5ae"],"./dashboard/LineChart":["eab4","chunk-1d7d97ec","chunk-9f8a6494"],"./dashboard/LineChart.vue":["eab4","chunk-1d7d97ec","chunk-9f8a6494"],"./dashboard/PanelGroup":["fbc4","chunk-4f55a4ac"],"./dashboard/PanelGroup.vue":["fbc4","chunk-4f55a4ac"],"./dashboard/PieChart":["d153","chunk-1d7d97ec","chunk-67d2aed9"],"./dashboard/PieChart.vue":["d153","chunk-1d7d97ec","chunk-67d2aed9"],"./dashboard/RaddarChart":["0a5c","chunk-1d7d97ec","chunk-6a438376"],"./dashboard/RaddarChart.vue":["0a5c","chunk-1d7d97ec","chunk-6a438376"],"./dashboard/mixins/resize":["feb2","chunk-ecddd398"],"./dashboard/mixins/resize.js":["feb2","chunk-ecddd398"],"./error/401":["ec55","chunk-e648d5fe"],"./error/401.vue":["ec55","chunk-e648d5fe"],"./error/404":["2754","chunk-46f2cf5c"],"./error/404.vue":["2754","chunk-46f2cf5c"],"./index":["1e4b","chunk-12624f69"],"./index.vue":["1e4b","chunk-12624f69"],"./index_v1":["66ef","chunk-1d7d97ec","chunk-0e410955","chunk-6a189a5c"],"./index_v1.vue":["66ef","chunk-1d7d97ec","chunk-0e410955","chunk-6a189a5c"],"./login":["dd7b","chunk-2d0b2b28","chunk-0abfe318"],"./login.vue":["dd7b","chunk-2d0b2b28","chunk-0abfe318"],"./monitor/cache":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/index":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/index.vue":["5911","chunk-1d7d97ec","chunk-2b02de32"],"./monitor/cache/list":["9f66","chunk-e1a6d904"],"./monitor/cache/list.vue":["9f66","chunk-e1a6d904"],"./monitor/druid":["5194","chunk-210ca3e9"],"./monitor/druid/":["5194","chunk-210ca3e9"],"./monitor/druid/index":["5194","chunk-210ca3e9"],"./monitor/druid/index.vue":["5194","chunk-210ca3e9"],"./monitor/job":["3eac","chunk-227085f2"],"./monitor/job/":["3eac","chunk-227085f2"],"./monitor/job/index":["3eac","chunk-227085f2"],"./monitor/job/index.vue":["3eac","chunk-227085f2"],"./monitor/job/log":["0062","chunk-68702101"],"./monitor/job/log.vue":["0062","chunk-68702101"],"./monitor/logininfor":["67ef","chunk-04621586"],"./monitor/logininfor/":["67ef","chunk-04621586"],"./monitor/logininfor/index":["67ef","chunk-04621586"],"./monitor/logininfor/index.vue":["67ef","chunk-04621586"],"./monitor/online":["6b08","chunk-2d0da2ea"],"./monitor/online/":["6b08","chunk-2d0da2ea"],"./monitor/online/index":["6b08","chunk-2d0da2ea"],"./monitor/online/index.vue":["6b08","chunk-2d0da2ea"],"./monitor/operlog":["02f2","chunk-7e203972"],"./monitor/operlog/":["02f2","chunk-7e203972"],"./monitor/operlog/index":["02f2","chunk-7e203972"],"./monitor/operlog/index.vue":["02f2","chunk-7e203972"],"./monitor/server":["2a33","chunk-2d0bce05"],"./monitor/server/":["2a33","chunk-2d0bce05"],"./monitor/server/index":["2a33","chunk-2d0bce05"],"./monitor/server/index.vue":["2a33","chunk-2d0bce05"],"./redirect":["9b8f","chunk-2d0f012d"],"./redirect.vue":["9b8f","chunk-2d0f012d"],"./register":["7803","chunk-1cd9431a"],"./register.vue":["7803","chunk-1cd9431a"],"./system/config":["cdb7","chunk-2d22252c"],"./system/config/":["cdb7","chunk-2d22252c"],"./system/config/index":["cdb7","chunk-2d22252c"],"./system/config/index.vue":["cdb7","chunk-2d22252c"],"./system/dept":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/index":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dept/index.vue":["5cfa","chunk-5bb73842","chunk-2d0d38ff"],"./system/dict":["046a","chunk-582b2a7a"],"./system/dict/":["046a","chunk-582b2a7a"],"./system/dict/data":["bfc4","chunk-d19c1a98"],"./system/dict/data.vue":["bfc4","chunk-d19c1a98"],"./system/dict/index":["046a","chunk-582b2a7a"],"./system/dict/index.vue":["046a","chunk-582b2a7a"],"./system/menu":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/index":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/menu/index.vue":["f794","chunk-5bb73842","chunk-25ccdf6b"],"./system/notice":["202d","chunk-2d0b1626"],"./system/notice/":["202d","chunk-2d0b1626"],"./system/notice/index":["202d","chunk-2d0b1626"],"./system/notice/index.vue":["202d","chunk-2d0b1626"],"./system/post":["5788","chunk-2d0c8e18"],"./system/post/":["5788","chunk-2d0c8e18"],"./system/post/index":["5788","chunk-2d0c8e18"],"./system/post/index.vue":["5788","chunk-2d0c8e18"],"./system/role":["70eb","chunk-3b69bc00"],"./system/role/":["70eb","chunk-3b69bc00"],"./system/role/authUser":["7054","chunk-8ee3fc10"],"./system/role/authUser.vue":["7054","chunk-8ee3fc10"],"./system/role/index":["70eb","chunk-3b69bc00"],"./system/role/index.vue":["70eb","chunk-3b69bc00"],"./system/role/selectUser":["a17e","chunk-8579d4da"],"./system/role/selectUser.vue":["a17e","chunk-8579d4da"],"./system/user":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/authRole":["6a33","chunk-2727631f"],"./system/user/authRole.vue":["6a33","chunk-2727631f"],"./system/user/index":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/index.vue":["1f34","chunk-5bb73842","chunk-93d1cd2c"],"./system/user/profile":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/index":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/index.vue":["4c1b","chunk-7aad1943","chunk-372e775c"],"./system/user/profile/resetPwd":["ee46","chunk-39413ce8"],"./system/user/profile/resetPwd.vue":["ee46","chunk-39413ce8"],"./system/user/profile/userAvatar":["9429","chunk-7aad1943","chunk-698a5ba1"],"./system/user/profile/userAvatar.vue":["9429","chunk-7aad1943","chunk-698a5ba1"],"./system/user/profile/userInfo":["1e8b","chunk-3a08d90c"],"./system/user/profile/userInfo.vue":["1e8b","chunk-3a08d90c"],"./tool/build":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/CodeTypeDialog":["a92a","chunk-2d20955d"],"./tool/build/CodeTypeDialog.vue":["a92a","chunk-2d20955d"],"./tool/build/DraggableItem":["4923","chunk-7abff893","chunk-31eae13f"],"./tool/build/DraggableItem.vue":["4923","chunk-7abff893","chunk-31eae13f"],"./tool/build/IconsDialog":["d0b2","chunk-6746b265"],"./tool/build/IconsDialog.vue":["d0b2","chunk-6746b265"],"./tool/build/RightPanel":["766b","chunk-7abff893","chunk-3339808c","chunk-0d5b0085"],"./tool/build/RightPanel.vue":["766b","chunk-7abff893","chunk-3339808c","chunk-0d5b0085"],"./tool/build/TreeNodeDialog":["c81a","chunk-e69ed224"],"./tool/build/TreeNodeDialog.vue":["c81a","chunk-e69ed224"],"./tool/build/index":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/build/index.vue":["2855","chunk-7abff893","chunk-60006966","chunk-3339808c","chunk-e3b15924"],"./tool/gen":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/basicInfoForm":["ed69","chunk-2d230898"],"./tool/gen/basicInfoForm.vue":["ed69","chunk-2d230898"],"./tool/gen/createTable":["7d85","chunk-0238e9b0"],"./tool/gen/createTable.vue":["7d85","chunk-0238e9b0"],"./tool/gen/editTable":["76f8","chunk-5bb73842","chunk-3a083b9c"],"./tool/gen/editTable.vue":["76f8","chunk-5bb73842","chunk-3a083b9c"],"./tool/gen/genInfoForm":["8586","chunk-5bb73842","chunk-2d0de3b1"],"./tool/gen/genInfoForm.vue":["8586","chunk-5bb73842","chunk-2d0de3b1"],"./tool/gen/importTable":["6f72","chunk-005cb0c7"],"./tool/gen/importTable.vue":["6f72","chunk-005cb0c7"],"./tool/gen/index":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/gen/index.vue":["82c8","chunk-5885ca9b","chunk-27d58c84"],"./tool/swagger":["4a49","chunk-210ce324"],"./tool/swagger/":["4a49","chunk-210ce324"],"./tool/swagger/index":["4a49","chunk-210ce324"],"./tool/swagger/index.vue":["4a49","chunk-210ce324"],"./wecom/customerContact":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/index":["4fde","chunk-2d0ccfa9"],"./wecom/customerContact/index.vue":["4fde","chunk-2d0ccfa9"],"./wecom/customerExport":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/index":["b1e5","chunk-2d20f1b5"],"./wecom/customerExport/index.vue":["b1e5","chunk-2d20f1b5"],"./wecom/customerStatistics":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/index":["5223","chunk-2d0c7a94"],"./wecom/customerStatistics/index.vue":["5223","chunk-2d0c7a94"],"./wecom/departmentStatistics":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/index":["5de9","chunk-2d0d3c79"],"./wecom/departmentStatistics/index.vue":["5de9","chunk-2d0d3c79"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="9dac",e.exports=a},"9e68":function(e,t,n){},"9ec1":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-checkbox",use:"icon-checkbox-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},"9ef1":function(e,t,n){"use strict";n("1559")},"9f4c":function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a012:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a17a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a18c:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return o}));n("14d9"),n("d3b7"),n("ac1f"),n("3ca3"),n("5319"),n("ddb0");var i=n("2b0e"),a=n("8c4f"),s=n("c1f7");i["default"].use(a["a"]);var c=[{path:"/redirect",component:s["a"],hidden:!0,children:[{path:"/redirect/:path(.*)",component:function(){return n.e("chunk-2d0f012d").then(n.bind(null,"9b8f"))}}]},{path:"/login",component:function(){return Promise.all([n.e("chunk-2d0b2b28"),n.e("chunk-0abfe318")]).then(n.bind(null,"dd7b"))},hidden:!0},{path:"/register",component:function(){return n.e("chunk-1cd9431a").then(n.bind(null,"7803"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-46f2cf5c").then(n.bind(null,"2754"))},hidden:!0},{path:"/401",component:function(){return n.e("chunk-e648d5fe").then(n.bind(null,"ec55"))},hidden:!0},{path:"",component:s["a"],redirect:"index",children:[{path:"index",component:function(){return n.e("chunk-12624f69").then(n.bind(null,"1e4b"))},name:"Index",meta:{title:"首页",icon:"dashboard",affix:!0}}]},{path:"/user",component:s["a"],hidden:!0,redirect:"noredirect",children:[{path:"profile",component:function(){return Promise.all([n.e("chunk-7aad1943"),n.e("chunk-372e775c")]).then(n.bind(null,"4c1b"))},name:"Profile",meta:{title:"个人中心",icon:"user"}}]}],o=[{path:"/system/user-auth",component:s["a"],hidden:!0,permissions:["system:user:edit"],children:[{path:"role/:userId(\\d+)",component:function(){return n.e("chunk-2727631f").then(n.bind(null,"6a33"))},name:"AuthRole",meta:{title:"分配角色",activeMenu:"/system/user"}}]},{path:"/system/role-auth",component:s["a"],hidden:!0,permissions:["system:role:edit"],children:[{path:"user/:roleId(\\d+)",component:function(){return n.e("chunk-8ee3fc10").then(n.bind(null,"7054"))},name:"AuthUser",meta:{title:"分配用户",activeMenu:"/system/role"}}]},{path:"/system/dict-data",component:s["a"],hidden:!0,permissions:["system:dict:list"],children:[{path:"index/:dictId(\\d+)",component:function(){return n.e("chunk-d19c1a98").then(n.bind(null,"bfc4"))},name:"Data",meta:{title:"字典数据",activeMenu:"/system/dict"}}]},{path:"/monitor/job-log",component:s["a"],hidden:!0,permissions:["monitor:job:list"],children:[{path:"index/:jobId(\\d+)",component:function(){return n.e("chunk-68702101").then(n.bind(null,"0062"))},name:"JobLog",meta:{title:"调度日志",activeMenu:"/monitor/job"}}]},{path:"/tool/gen-edit",component:s["a"],hidden:!0,permissions:["tool:gen:edit"],children:[{path:"index/:tableId(\\d+)",component:function(){return Promise.all([n.e("chunk-5bb73842"),n.e("chunk-3a083b9c")]).then(n.bind(null,"76f8"))},name:"GenEdit",meta:{title:"修改生成配置",activeMenu:"/tool/gen"}}]}],r=a["a"].prototype.push,l=a["a"].prototype.replace;a["a"].prototype.push=function(e){return r.call(this,e).catch((function(e){return e}))},a["a"].prototype.replace=function(e){return l.call(this,e).catch((function(e){return e}))},t["b"]=new a["a"]({mode:"history",base:"/",scrollBehavior:function(){return{y:0}},routes:c})},a1ac:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-number",use:"icon-number-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a263:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a2bf:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-date",use:"icon-date-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a2d0:function(e,t,n){e.exports=n.p+"static/img/light.4183aad0.svg"},a2f6:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a601:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a6c4:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-more-up",use:"icon-more-up-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},a75d:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},a870:function(e,t,n){},aa3a:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return r})),n.d(t,"b",(function(){return l}));var i=n("b775");function a(e){return Object(i["a"])({url:"/system/dict/data/list",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/system/dict/data/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/system/dict/data/type/"+e,method:"get"})}function o(e){return Object(i["a"])({url:"/system/dict/data",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/system/dict/data",method:"put",data:e})}function l(e){return Object(i["a"])({url:"/system/dict/data/"+e,method:"delete"})}},ad41:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-date-range",use:"icon-date-range-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},adba:function(e,t,n){e.exports=n.p+"static/img/dark.412ca67e.svg"},ae6e:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},b18f:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},a=[],s=n("c14f"),c=n("1da1"),o=(n("99af"),n("4de4"),n("a15b"),n("14d9"),n("fb6a"),n("a9e3"),n("b680"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("0643"),n("2382"),n("4e3e"),n("159b"),"#409EFF"),r={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(c["a"])(Object(s["a"])().m((function n(){return Object(s["a"])().w((function(n){while(1)switch(n.n){case 0:return n.n=1,t.setTheme(e);case 1:return n.a(2)}}),n)})))()}},created:function(){this.defaultTheme!==o&&this.setTheme(this.defaultTheme)},methods:{setTheme:function(e){var t=this;return Object(c["a"])(Object(s["a"])().m((function n(){var i,a,c,r,l,u,d;return Object(s["a"])().w((function(n){while(1)switch(n.n){case 0:if(i=t.chalk?t.theme:o,"string"===typeof e){n.n=1;break}return n.a(2);case 1:if(a=t.getThemeCluster(e.replace("#","")),c=t.getThemeCluster(i.replace("#","")),r=function(e,n){return function(){var i=t.getThemeCluster(o.replace("#","")),s=t.updateStyle(t[e],i,a),c=document.getElementById(n);c||(c=document.createElement("style"),c.setAttribute("id",n),document.head.appendChild(c)),c.innerText=s}},t.chalk){n.n=2;break}return l="/styles/theme-chalk/index.css",n.n=2,t.getCSSString(l,"chalk");case 2:u=r("chalk","chalk-style"),u(),d=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(i,"i").test(t)&&!/Chalk Variables/.test(t)})),d.forEach((function(e){var n=e.innerText;"string"===typeof n&&(e.innerText=t.updateStyle(n,c,a))})),t.$emit("change",e);case 3:return n.a(2)}}),n)})))()},updateStyle:function(e,t,n){var i=e;return t.forEach((function(e,t){i=i.replace(new RegExp(e,"ig"),n[t])})),i},getCSSString:function(e,t){var n=this;return new Promise((function(i){var a=new XMLHttpRequest;a.onreadystatechange=function(){4===a.readyState&&200===a.status&&(n[t]=a.responseText.replace(/@font-face{[^}]+}/,""),i())},a.open("GET",e),a.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return 0===t?[n,i,a].join(","):(n+=Math.round(t*(255-n)),i+=Math.round(t*(255-i)),a+=Math.round(t*(255-a)),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a))},n=function(e,t){var n=parseInt(e.slice(0,2),16),i=parseInt(e.slice(2,4),16),a=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),i=Math.round((1-t)*i),a=Math.round((1-t)*a),n=n.toString(16),i=i.toString(16),a=a.toString(16),"#".concat(n).concat(i).concat(a)},i=[e],a=0;a<=9;a++)i.push(t(e,Number((a/10).toFixed(2))));return i.push(n(e,.1)),i}}},l=r,u=(n("3dcd"),n("2877")),d=Object(u["a"])(l,i,a,!1,null,null,null);t["a"]=d.exports},b34b:function(e,t,n){},b3b9:function(e,t,n){},b470:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-phone",use:"icon-phone-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},b6f9:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},b775:function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b}));var i,a=n("c14f"),s=n("1da1"),c=n("5530"),o=n("53ca"),r=(n("d9e2"),n("caad"),n("fb6a"),n("e9c4"),n("b64b"),n("d3b7"),n("2532"),n("5087"),n("bc3a")),l=n.n(r),u=n("5c96"),d=n("4360"),h=n("5f87"),f=n("81ae"),m=n("c38a"),p=n("63f0"),v=n("21a6"),g={show:!1};l.a.defaults.headers["Content-Type"]="application/json;charset=utf-8";var w=l.a.create({baseURL:"/prod-api",timeout:3e4});function b(e,t,n,o){return i=u["Loading"].service({text:"正在下载数据,请稍候",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),w.post(e,t,Object(c["a"])({transformRequest:[function(e){return Object(m["j"])(e)}],headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"blob"},o)).then(function(){var e=Object(s["a"])(Object(a["a"])().m((function e(t){var s,c,o,r,l;return Object(a["a"])().w((function(e){while(1)switch(e.n){case 0:if(s=Object(m["b"])(t),!s){e.n=1;break}c=new Blob([t]),Object(v["saveAs"])(c,n),e.n=3;break;case 1:return e.n=2,t.text();case 2:o=e.v,r=JSON.parse(o),l=f["a"][r.code]||r.msg||f["a"]["default"],u["Message"].error(l);case 3:i.close();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error(e),u["Message"].error("下载文件出现错误,请联系管理员!"),i.close()}))}w.interceptors.request.use((function(e){var t=!1===(e.headers||{}).isToken,n=!1===(e.headers||{}).repeatSubmit,i=(e.headers||{}).interval||1e3;if(Object(h["a"])()&&!t&&(e.headers["Authorization"]="Bearer "+Object(h["a"])()),"get"===e.method&&e.params){var a=e.url+"?"+Object(m["j"])(e.params);a=a.slice(0,-1),e.params={},e.url=a}if(!n&&("post"===e.method||"put"===e.method)){var s={url:e.url,data:"object"===Object(o["a"])(e.data)?JSON.stringify(e.data):e.data,time:(new Date).getTime()},c=Object.keys(JSON.stringify(s)).length,r=5242880;if(c>=r)return console.warn("[".concat(e.url,"]: ")+"请求数据大小超出允许的5M限制,无法进行防重复提交验证。"),e;var l=p["a"].session.getJSON("sessionObj");if(void 0===l||null===l||""===l)p["a"].session.setJSON("sessionObj",s);else{var u=l.url,d=l.data,f=l.time;if(d===s.data&&s.time-f'});c.a.add(o);t["default"]=o},badf:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-redis-list",use:"icon-redis-list-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},bc7b:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-druid",use:"icon-druid-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},c0c3:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return u}));var i=n("b775");function a(e){return Object(i["a"])({url:"/system/config/list",method:"get",params:e})}function s(e){return Object(i["a"])({url:"/system/config/"+e,method:"get"})}function c(e){return Object(i["a"])({url:"/system/config/configKey/"+e,method:"get"})}function o(e){return Object(i["a"])({url:"/system/config",method:"post",data:e})}function r(e){return Object(i["a"])({url:"/system/config",method:"put",data:e})}function l(e){return Object(i["a"])({url:"/system/config/"+e,method:"delete"})}function u(){return Object(i["a"])({url:"/system/config/refreshCache",method:"delete"})}},c1f7:function(e,t,n){"use strict";var i,a,s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj,style:{"--current-color":e.theme}},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e.sidebar.hide?e._e():n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView,sidebarHide:e.sidebar.hide}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar",{on:{setLayout:e.setLayout}}),e.needTagsView?n("tags-view"):e._e()],1),n("app-main"),n("settings",{ref:"settingRef"})],1)],1)},c=[],o=n("5530"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("keep-alive",{attrs:{include:e.cachedViews}},[e.$route.meta.link?e._e():n("router-view",{key:e.key})],1)],1),n("iframe-toggle"),n("copyright")],1)},l=[],u=(n("b0c0"),n("9911"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("footer",{staticClass:"copyright"},[n("span",[e._v(e._s(e.content))])]):e._e()}),d=[],h={computed:{visible:function(){return this.$store.state.settings.footerVisible},content:function(){return this.$store.state.settings.footerContent}}},f=h,m=(n("86b7"),n("2877")),p=Object(m["a"])(f,u,d,!1,null,"e46f568a",null),v=p.exports,g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{attrs:{name:"fade-transform",mode:"out-in"}},e._l(e.iframeViews,(function(t,i){return n("inner-link",{directives:[{name:"show",rawName:"v-show",value:e.$route.path===t.path,expression:"$route.path === item.path"}],key:t.path,attrs:{iframeId:"iframe"+i,src:e.iframeUrl(t.meta.link,t.query)}})})),1)},w=[],b=(n("a15b"),n("d81d"),n("b64b"),n("d3b7"),n("0643"),n("a573"),n("594d")),y={components:{InnerLink:b["a"]},computed:{iframeViews:function(){return this.$store.state.tagsView.iframeViews}},methods:{iframeUrl:function(e,t){if(Object.keys(t).length>0){var n=Object.keys(t).map((function(e){return e+"="+t[e]})).join("&");return e+"?"+n}return e}}},x=y,k=Object(m["a"])(x,g,w,!1,null,null,null),z=k.exports,V={name:"AppMain",components:{iframeToggle:z,copyright:v},computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}},watch:{$route:function(){this.addIframe()}},mounted:function(){this.addIframe()},methods:{addIframe:function(){var e=this.$route.name;e&&this.$route.meta.link&&this.$store.dispatch("tagsView/addIframeView",this.$route)}}},C=V,S=(n("ffb3"),n("3c5e"),Object(m["a"])(C,r,l,!1,null,"51a16398",null)),_=S.exports,T=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar",class:"nav"+e.navType},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),1==e.navType?n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}):e._e(),2==e.navType?n("top-nav",{staticClass:"topmenu-container",attrs:{id:"topmenu-container"}}):e._e(),3==e.navType?[n("logo",{directives:[{name:"show",rawName:"v-show",value:e.showLogo,expression:"showLogo"}],attrs:{collapse:!1}}),n("top-bar",{staticClass:"topbar-container",attrs:{id:"topbar-container"}})]:e._e(),n("div",{staticClass:"right-menu"},["mobile"!==e.device?[n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),n("el-tooltip",{attrs:{content:"源码地址",effect:"dark",placement:"bottom"}},[n("ruo-yi-git",{staticClass:"right-menu-item hover-effect",attrs:{id:"ruoyi-git"}})],1),n("el-tooltip",{attrs:{content:"文档地址",effect:"dark",placement:"bottom"}},[n("ruo-yi-doc",{staticClass:"right-menu-item hover-effect",attrs:{id:"ruoyi-doc"}})],1),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),n("el-tooltip",{attrs:{content:"布局大小",effect:"dark",placement:"bottom"}},[n("size-select",{staticClass:"right-menu-item hover-effect",attrs:{id:"size-select"}})],1)]:e._e(),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"hover"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar}}),n("span",{staticClass:"user-nickname"},[e._v(" "+e._s(e.nickName)+" ")])]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/user/profile"}},[n("el-dropdown-item",[e._v("个人中心")])],1),e.setting?n("el-dropdown-item",{nativeOn:{click:function(t){return e.setLayout(t)}}},[n("span",[e._v("布局设置")])]):e._e(),n("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[n("span",[e._v("退出登录")])])],1)],1)],2)],2)},M=[],L=n("2f62"),O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,i){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||i==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},E=[],B=(n("99af"),n("4de4"),n("7db0"),n("14d9"),n("fb6a"),n("ac1f"),n("466d"),n("2ca0"),n("498a"),n("2382"),n("fffc"),{data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=[],t=this.$route,n=this.findPathNum(t.path);if(n>2){var i=/\/\w+/gi,a=t.path.match(i).map((function(e,t){return 0!==t&&(e=e.slice(1)),e}));this.getMatched(a,this.$store.getters.defaultRoutes,e)}else e=t.matched.filter((function(e){return e.meta&&e.meta.title}));this.isDashboard(e[0])||(e=[{path:"/index",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},findPathNum:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=e.indexOf(t),i=0;while(-1!==n)i++,n=e.indexOf(t,n+1);return i},getMatched:function(e,t,n){var i=t.find((function(t){return t.path==e[0]||(t.name+="").toLowerCase()==e[0]}));i&&(n.push(i),i.children&&e.length&&(e.shift(),this.getMatched(e,i.children,n)))},isDashboard:function(e){var t=e&&e.name;return!!t&&"Index"===t.trim()},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(n)}}}),H=B,$=(n("6c1d"),Object(m["a"])(H,O,E,!1,null,"74d14ae4",null)),j=$.exports,I=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{attrs:{"default-active":e.activeMenu,mode:"horizontal"},on:{select:e.handleSelect}},[e._l(e.topMenus,(function(t,i){return[ie.visibleNumber?n("el-submenu",{key:e.visibleNumber,style:{"--theme":e.theme},attrs:{index:"more"}},[n("template",{slot:"title"},[e._v("更多菜单")]),e._l(e.topMenus,(function(t,i){return[i>=e.visibleNumber?n("el-menu-item",{key:i,attrs:{index:t.path}},[t.meta&&t.meta.icon&&"#"!==t.meta.icon?n("svg-icon",{attrs:{"icon-class":t.meta.icon}}):e._e(),e._v(" "+e._s(t.meta.title)+" ")],1):e._e()]}))],2):e._e()],2)},A=[],R=(n("5087"),n("a18c")),D=n("61f7"),P=["/user/profile"],N={data:function(){return{visibleNumber:5,currentIndex:void 0}},computed:{theme:function(){return this.$store.state.settings.theme},topMenus:function(){var e=[];return this.routers.map((function(t){!0!==t.hidden&&("/"===t.path&&t.children?e.push(t.children[0]):e.push(t))})),e},routers:function(){return this.$store.state.permission.topbarRouters},childrenMenus:function(){var e=[];return this.routers.map((function(t){for(var n in t.children)void 0===t.children[n].parentPath&&("/"===t.path?t.children[n].path="/"+t.children[n].path:Object(D["c"])(t.children[n].path)||(t.children[n].path=t.path+"/"+t.children[n].path),t.children[n].parentPath=t.path),e.push(t.children[n])})),R["a"].concat(e)},activeMenu:function(){var e=this.$route.path,t=e;if(void 0!==e&&e.lastIndexOf("/")>0&&-1===P.indexOf(e)){var n=e.substring(1,e.length);this.$route.meta.link||(t="/"+n.substring(0,n.indexOf("/")),this.$store.dispatch("app/toggleSideBarHide",!1))}else this.$route.children||(t=e,this.$store.dispatch("app/toggleSideBarHide",!0));return this.activeRoutes(t),t}},beforeMount:function(){window.addEventListener("resize",this.setVisibleNumber)},beforeDestroy:function(){window.removeEventListener("resize",this.setVisibleNumber)},mounted:function(){this.setVisibleNumber()},methods:{setVisibleNumber:function(){var e=document.body.getBoundingClientRect().width/3;this.visibleNumber=parseInt(e/85)},handleSelect:function(e,t){this.currentIndex=e;var n=this.routers.find((function(t){return t.path===e}));if(Object(D["c"])(e))window.open(e,"_blank");else if(n&&n.children)this.activeRoutes(e),this.$store.dispatch("app/toggleSideBarHide",!1);else{var i=this.childrenMenus.find((function(t){return t.path===e}));if(i&&i.query){var a=JSON.parse(i.query);this.$router.push({path:e,query:a})}else this.$router.push({path:e});this.$store.dispatch("app/toggleSideBarHide",!0)}},activeRoutes:function(e){var t=[];this.childrenMenus&&this.childrenMenus.length>0&&this.childrenMenus.map((function(n){(e==n.parentPath||"index"==e&&""==n.path)&&t.push(n)})),t.length>0?this.$store.commit("SET_SIDEBAR_ROUTERS",t):this.$store.dispatch("app/toggleSideBarHide",!0)}}},U=N,q=(n("5572"),Object(m["a"])(U,I,A,!1,null,null,null)),F=q.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-menu",{staticClass:"topbar-menu",attrs:{"default-active":e.activeMenu,"active-text-color":e.theme,mode:"horizontal"}},[e._l(e.topMenus,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})})),e.moreRoutes.length>0?n("el-submenu",{staticClass:"el-submenu__hide-arrow",attrs:{index:"more"}},[n("template",{slot:"title"},[e._v("更多菜单")]),e._l(e.moreRoutes,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})}))],2):e._e()],2)},J=[],G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t,i){return n("sidebar-item",{key:t.path+i,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path,e.onlyOneChild.query)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},Q=[],Y=n("df7c"),X=n.n(Y),K={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,i=n.icon,a=n.title,s=[];return i&&s.push(e("svg-icon",{attrs:{"icon-class":i}})),a&&(a.length>5?s.push(e("span",{slot:"title",attrs:{title:a}},[a])):s.push(e("span",{slot:"title"},[a]))),s}},Z=K,ee=Object(m["a"])(Z,i,a,!1,null,null,null),te=ee.exports,ne=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},ie=[],ae={props:{to:{type:[String,Object],required:!0}},computed:{isExternal:function(){return Object(D["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},se=ae,ce=Object(m["a"])(se,ne,ie,!1,null,null,null),oe=ce.exports,re={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},le={name:"SidebarItem",components:{Item:te,AppLink:oe},mixins:[re],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;t||(t=[]);var i=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===i.length||0===i.length&&(this.onlyOneChild=Object(o["a"])(Object(o["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e,t){if(Object(D["b"])(e))return e;if(Object(D["b"])(this.basePath))return this.basePath;if(t){var n=JSON.parse(t);return{path:X.a.resolve(this.basePath,e),query:n}}return X.a.resolve(this.basePath,e)}}},ue=le,de=Object(m["a"])(ue,G,Q,!1,null,null,null),he=de.exports,fe={components:{SidebarItem:he},data:function(){return{visibleNumber:5}},computed:{theme:function(){return this.$store.state.settings.theme},topMenus:function(){return this.$store.state.permission.sidebarRouters.filter((function(e){return!e.hidden})).slice(0,this.visibleNumber)},moreRoutes:function(){var e=this.$store.state.permission.sidebarRouters;return e.filter((function(e){return!e.hidden})).slice(this.visibleNumber,e.length-this.visibleNumber)},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n}},beforeMount:function(){window.addEventListener("resize",this.setVisibleNumber)},beforeDestroy:function(){window.removeEventListener("resize",this.setVisibleNumber)},mounted:function(){this.setVisibleNumber()},methods:{setVisibleNumber:function(){var e=document.body.getBoundingClientRect().width/3;this.visibleNumber=parseInt(e/85)}}},me=fe,pe=(n("8e5b"),Object(m["a"])(me,W,J,!1,null,null,null)),ve=pe.exports,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse},style:{backgroundColor:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.menuBackground:e.variables.menuLightBackground}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title",style:{color:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.logoTitleColor:e.variables.logoLightTitleColor}},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),n("h1",{staticClass:"sidebar-title",style:{color:"theme-dark"===e.sideTheme&&3!==e.navType?e.variables.logoTitleColor:e.variables.logoLightTitleColor}},[e._v(e._s(e.title)+" ")])])],1)],1)},we=[],be=n("81a5"),ye=n.n(be),xe=n("8df1"),ke=n.n(xe),ze={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},computed:{variables:function(){return ke.a},sideTheme:function(){return this.$store.state.settings.sideTheme},navType:function(){return this.$store.state.settings.navType}},data:function(){return{title:"超脑智子测试系统",logo:ye.a}}},Ve=ze,Ce=(n("0151"),Object(m["a"])(Ve,ge,we,!1,null,"7f62f35e",null)),Se=Ce.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},Te=[],Me={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},Le=Me,Oe=(n("8dd0"),Object(m["a"])(Le,_e,Te,!1,null,"49e15297",null)),Ee=Oe.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},He=[],$e=n("93bf"),je=n.n($e),Ie={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!je.a.isEnabled)return this.$message({message:"你的浏览器不支持全屏",type:"warning"}),!1;je.a.toggle()},change:function(){this.isFullscreen=je.a.isFullscreen},init:function(){je.a.isEnabled&&je.a.on("change",this.change)},destroy:function(){je.a.isEnabled&&je.a.off("change",this.change)}}},Ae=Ie,Re=(n("ee75"),Object(m["a"])(Ae,Be,He,!1,null,"243c7c0f",null)),De=Re.exports,Pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},Ne=[],Ue=(n("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),qe=Ue,Fe=Object(m["a"])(qe,Pe,Ne,!1,null,null,null),We=Fe.exports,Je=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search"},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),n("el-dialog",{attrs:{visible:e.show,width:"600px","show-close":!1,"append-to-body":""},on:{"update:visible":function(t){e.show=t},close:e.close}},[n("el-input",{ref:"headerSearchSelectRef",attrs:{size:"large","prefix-icon":"el-icon-search",placeholder:"菜单搜索,支持标题、URL模糊查询",clearable:""},on:{input:e.querySearch},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.selectActiveResult(t)},keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:e.navigateResult("up")},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.navigateResult("down")}]},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),n("el-scrollbar",{attrs:{"wrap-class":"right-scrollbar-wrapper"}},[n("div",{staticClass:"result-wrap"},e._l(e.options,(function(t,i){return n("div",{key:t.path,staticClass:"search-item",style:e.activeStyle(i),on:{mouseenter:function(t){e.activeIndex=i},mouseleave:function(t){e.activeIndex=-1}}},[n("div",{staticClass:"left"},[n("svg-icon",{staticClass:"menu-icon",attrs:{"icon-class":t.icon}})],1),n("div",{staticClass:"search-info",on:{click:function(n){return e.change(t)}}},[n("div",{staticClass:"menu-title"},[e._v(" "+e._s(t.title.join(" / "))+" ")]),n("div",{staticClass:"menu-path"},[e._v(" "+e._s(t.path)+" ")])]),n("svg-icon",{directives:[{name:"show",rawName:"v-show",value:i===e.activeIndex,expression:"index === activeIndex"}],attrs:{"icon-class":"enter"}})],1)})),0)])],1)],1)},Ge=[],Qe=n("2909"),Ye=n("b85c"),Xe=(n("841c"),n("0278")),Ke=n.n(Xe),Ze={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],activeIndex:-1,show:!1,fuse:void 0}},computed:{theme:function(){return this.$store.state.settings.theme},routes:function(){return this.$store.getters.defaultRoutes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&(this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus(),this.options=this.searchPool)},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.search="",this.options=[],this.show=!1,this.activeIndex=-1},change:function(e){var t=this,n=e.path,i=e.query;if(Object(D["c"])(e.path)){var a=n.indexOf("http");window.open(n.substr(a,n.length),"_blank")}else i?this.$router.push({path:n,query:JSON.parse(i)}):this.$router.push(n);this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new Ke.a(e,{shouldSort:!0,threshold:.4,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=[],s=Object(Ye["a"])(e);try{for(s.s();!(t=s.n()).done;){var c=t.value;if(!c.hidden){var o={path:Object(D["c"])(c.path)?c.path:X.a.resolve(n,c.path),title:Object(Qe["a"])(i),icon:""};if(c.meta&&c.meta.title&&(o.title=[].concat(Object(Qe["a"])(o.title),[c.meta.title]),o.icon=c.meta.icon,"noRedirect"!==c.redirect&&a.push(o)),c.query&&(o.query=c.query),c.children){var r=this.generateRoutes(c.children,o.path,o.title);r.length>=1&&(a=[].concat(Object(Qe["a"])(a),Object(Qe["a"])(r)))}}}}catch(l){s.e(l)}finally{s.f()}return a},querySearch:function(e){var t;(this.activeIndex=-1,""!==e)?this.options=null!==(t=this.fuse.search(e).map((function(e){return e.item})))&&void 0!==t?t:this.searchPool:this.options=this.searchPool},activeStyle:function(e){return e!==this.activeIndex?{}:{"background-color":this.theme,color:"#fff"}},navigateResult:function(e){"up"===e?this.activeIndex=this.activeIndex<=0?this.options.length-1:this.activeIndex-1:"down"===e&&(this.activeIndex=this.activeIndex>=this.options.length-1?0:this.activeIndex+1)},selectActiveResult:function(){this.options.length>0&&this.activeIndex>=0&&this.change(this.options[this.activeIndex])}}},et=Ze,tt=(n("8ea9"),Object(m["a"])(et,Je,Ge,!1,null,"62847600",null)),nt=tt.exports,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":"github"},on:{click:e.goto}})],1)},at=[],st={name:"RuoYiGit",data:function(){return{url:"https://gitee.com/y_project/RuoYi-Vue"}},methods:{goto:function(){window.open(this.url)}}},ct=st,ot=Object(m["a"])(ct,it,at,!1,null,null,null),rt=ot.exports,lt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("svg-icon",{attrs:{"icon-class":"question"},on:{click:e.goto}})],1)},ut=[],dt={name:"RuoYiDoc",data:function(){return{url:"http://doc.ruoyi.vip/ruoyi-vue"}},methods:{goto:function(){window.open(this.url)}}},ht=dt,ft=Object(m["a"])(ht,lt,ut,!1,null,null,null),mt=ft.exports,pt={emits:["setLayout"],components:{Breadcrumb:j,Logo:Se,TopNav:F,TopBar:ve,Hamburger:Ee,Screenfull:De,SizeSelect:We,Search:nt,RuoYiGit:rt,RuoYiDoc:mt},computed:Object(o["a"])(Object(o["a"])({},Object(L["b"])(["sidebar","avatar","device","nickName"])),{},{setting:{get:function(){return this.$store.state.settings.showSettings}},navType:{get:function(){return this.$store.state.settings.navType}},showLogo:{get:function(){return this.$store.state.settings.sidebarLogo}}}),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},setLayout:function(e){this.$emit("setLayout")},logout:function(){var e=this;this.$confirm("确定注销并退出系统吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$store.dispatch("LogOut").then((function(){var e="";location.href=e+"/index"}))})).catch((function(){}))}}},vt=pt,gt=(n("75b3"),Object(m["a"])(vt,T,M,!1,null,"035f3221",null)),wt=gt.exports,bt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-drawer",{attrs:{size:"280px",visible:e.showSettings,"with-header":!1,"append-to-body":!0,"before-close":e.closeSetting,"lock-scroll":!1}},[i("div",{staticClass:"drawer-container"},[i("div",[i("div",{staticClass:"setting-drawer-content"},[i("div",{staticClass:"setting-drawer-title"},[i("h3",{staticClass:"drawer-title"},[e._v("菜单导航设置")])]),i("div",{staticClass:"nav-wrap"},[i("el-tooltip",{attrs:{content:"左侧菜单",placement:"bottom"}},[i("div",{staticClass:"item left",class:{activeItem:1==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(1)}}},[i("b"),i("b")])]),i("el-tooltip",{attrs:{content:"混合菜单",placement:"bottom"}},[i("div",{staticClass:"item mix",class:{activeItem:2==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(2)}}},[i("b"),i("b")])]),i("el-tooltip",{attrs:{content:"顶部菜单",placement:"bottom"}},[i("div",{staticClass:"item top",class:{activeItem:3==e.navType},style:{"--theme":e.theme},on:{click:function(t){return e.handleNavType(3)}}},[i("b"),i("b")])])],1),i("div",{staticClass:"setting-drawer-title"},[i("h3",{staticClass:"drawer-title"},[e._v("主题风格设置")])]),i("div",{staticClass:"setting-drawer-block-checbox"},[i("div",{staticClass:"setting-drawer-block-checbox-item",on:{click:function(t){return e.handleTheme("theme-dark")}}},[i("img",{attrs:{src:n("adba"),alt:"dark"}}),"theme-dark"===e.sideTheme?i("div",{staticClass:"setting-drawer-block-checbox-selectIcon",staticStyle:{display:"block"}},[i("i",{staticClass:"anticon anticon-check",attrs:{"aria-label":"图标: check"}},[i("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:e.theme,"aria-hidden":"true",focusable:"false"}},[i("path",{attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}})])])]):e._e()]),i("div",{staticClass:"setting-drawer-block-checbox-item",on:{click:function(t){return e.handleTheme("theme-light")}}},[i("img",{attrs:{src:n("a2d0"),alt:"light"}}),"theme-light"===e.sideTheme?i("div",{staticClass:"setting-drawer-block-checbox-selectIcon",staticStyle:{display:"block"}},[i("i",{staticClass:"anticon anticon-check",attrs:{"aria-label":"图标: check"}},[i("svg",{attrs:{viewBox:"64 64 896 896","data-icon":"check",width:"1em",height:"1em",fill:e.theme,"aria-hidden":"true",focusable:"false"}},[i("path",{attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}})])])]):e._e()])]),i("div",{staticClass:"drawer-item"},[i("span",[e._v("主题颜色")]),i("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1)]),i("el-divider"),i("h3",{staticClass:"drawer-title"},[e._v("系统布局配置")]),i("div",{staticClass:"drawer-item"},[i("span",[e._v("开启 Tags-Views")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("显示页签图标")]),i("el-switch",{staticClass:"drawer-switch",attrs:{disabled:!e.tagsView},model:{value:e.tagsIcon,callback:function(t){e.tagsIcon=t},expression:"tagsIcon"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("固定 Header")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("显示 Logo")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("动态标题")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.dynamicTitle,callback:function(t){e.dynamicTitle=t},expression:"dynamicTitle"}})],1),i("div",{staticClass:"drawer-item"},[i("span",[e._v("底部版权")]),i("el-switch",{staticClass:"drawer-switch",model:{value:e.footerVisible,callback:function(t){e.footerVisible=t},expression:"footerVisible"}})],1),i("el-divider"),i("el-button",{attrs:{size:"small",type:"primary",plain:"",icon:"el-icon-document-add"},on:{click:e.saveSetting}},[e._v("保存配置")]),i("el-button",{attrs:{size:"small",plain:"",icon:"el-icon-refresh"},on:{click:e.resetSetting}},[e._v("重置配置")])],1)])])},yt=[],xt=(n("caad"),n("b18f")),kt={components:{ThemePicker:xt["a"]},expose:["openSetting"],data:function(){return{theme:this.$store.state.settings.theme,sideTheme:this.$store.state.settings.sideTheme,navType:this.$store.state.settings.navType,showSettings:!1}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},tagsIcon:{get:function(){return this.$store.state.settings.tagsIcon},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsIcon",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}},dynamicTitle:{get:function(){return this.$store.state.settings.dynamicTitle},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"dynamicTitle",value:e}),this.$store.dispatch("settings/setTitle",this.$store.state.settings.title)}},footerVisible:{get:function(){return this.$store.state.settings.footerVisible},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"footerVisible",value:e})}}},watch:{navType:{handler:function(e){1==e&&this.$store.dispatch("app/toggleSideBarHide",!1),3==e&&this.$store.dispatch("app/toggleSideBarHide",!0),[1,3].includes(e)&&this.$store.commit("SET_SIDEBAR_ROUTERS",this.$store.state.permission.defaultRoutes)},immediate:!0,deep:!0}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e}),this.theme=e},handleTheme:function(e){this.$store.dispatch("settings/changeSetting",{key:"sideTheme",value:e}),this.sideTheme=e},handleNavType:function(e){this.$store.dispatch("settings/changeSetting",{key:"navType",value:e}),this.navType=e},openSetting:function(){this.showSettings=!0},closeSetting:function(){this.showSettings=!1},saveSetting:function(){this.$modal.loading("正在保存到本地,请稍候..."),this.$cache.local.set("layout-setting",'{\n "navType":'.concat(this.navType,',\n "tagsView":').concat(this.tagsView,',\n "tagsIcon":').concat(this.tagsIcon,',\n "fixedHeader":').concat(this.fixedHeader,',\n "sidebarLogo":').concat(this.sidebarLogo,',\n "dynamicTitle":').concat(this.dynamicTitle,',\n "footerVisible":').concat(this.footerVisible,',\n "sideTheme":"').concat(this.sideTheme,'",\n "theme":"').concat(this.theme,'"\n }')),setTimeout(this.$modal.closeLoading(),1e3)},resetSetting:function(){this.$modal.loading("正在清除设置缓存并刷新,请稍候..."),this.$cache.local.remove("layout-setting"),setTimeout("window.location.reload()",1e3)}}},zt=kt,Vt=(n("5970"),Object(m["a"])(zt,bt,yt,!1,null,"08c05367",null)),Ct=Vt.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo},style:{backgroundColor:"theme-dark"===e.settings.sideTheme?e.variables.menuBackground:e.variables.menuLightBackground}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{class:e.settings.sideTheme,attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":"theme-dark"===e.settings.sideTheme?e.variables.menuBackground:e.variables.menuLightBackground,"text-color":"theme-dark"===e.settings.sideTheme?e.variables.menuColor:e.variables.menuLightColor,"unique-opened":!0,"active-text-color":e.settings.theme,"collapse-transition":!1,mode:"vertical"}},e._l(e.sidebarRouters,(function(e,t){return n("sidebar-item",{key:e.path+t,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},_t=[],Tt={components:{SidebarItem:he,Logo:Se},computed:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(L["c"])(["settings"])),Object(L["b"])(["sidebarRouters","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return ke.a},isCollapse:function(){return!this.sidebar.opened}})},Mt=Tt,Lt=Object(m["a"])(Mt,St,_t,!1,null,null,null),Ot=Lt.exports,Et=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:{active:e.isActive(t),"has-icon":e.tagsIcon},style:e.activeStyle(t),attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){if("button"in n&&1!==n.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e.tagsIcon&&t.meta&&t.meta.icon&&"#"!==t.meta.icon?n("svg-icon",{attrs:{"icon-class":t.meta.icon}}):e._e(),e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})],1)})),1),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[n("i",{staticClass:"el-icon-refresh-right"}),e._v(" 刷新页面")]),e.isAffix(e.selectedTag)?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[n("i",{staticClass:"el-icon-close"}),e._v(" 关闭当前")]),n("li",{on:{click:e.closeOthersTags}},[n("i",{staticClass:"el-icon-circle-close"}),e._v(" 关闭其他")]),e.isFirstView()?e._e():n("li",{on:{click:e.closeLeftTags}},[n("i",{staticClass:"el-icon-back"}),e._v(" 关闭左侧")]),e.isLastView()?e._e():n("li",{on:{click:e.closeRightTags}},[n("i",{staticClass:"el-icon-right"}),e._v(" 关闭右侧")]),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[n("i",{staticClass:"el-icon-circle-close"}),e._v(" 全部关闭")])])],1)},Bt=[],Ht=(n("4e3e"),n("9a9a"),n("159b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)}),$t=[],jt=(n("c740"),4),It={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,n=t.offsetWidth,i=this.scrollWrapper,a=this.$parent.$refs.tag,s=null,c=null;if(a.length>0&&(s=a[0],c=a[a.length-1]),s===e)i.scrollLeft=0;else if(c===e)i.scrollLeft=i.scrollWidth-n;else{var o=a.findIndex((function(t){return t===e})),r=a[o-1],l=a[o+1],u=l.$el.offsetLeft+l.$el.offsetWidth+jt,d=r.$el.offsetLeft-jt;u>i.scrollLeft+n?i.scrollLeft=u-n:d1&&void 0!==arguments[1]?arguments[1]:"/",i=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var a=X.a.resolve(n,e.path);i.push({fullPath:a,path:a,name:e.name,meta:Object(o["a"])({},e.meta)})}if(e.children){var s=t.filterAffixTags(e.children,e.path);s.length>=1&&(i=[].concat(Object(Qe["a"])(i),Object(Qe["a"])(s)))}})),i},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),n=Object(Ye["a"])(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.name&&this.$store.dispatch("tagsView/addVisitedView",i)}}catch(a){n.e(a)}finally{n.f()}},addTags:function(){var e=this.$route.name;e&&this.$store.dispatch("tagsView/addView",this.$route)},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var n,i=Object(Ye["a"])(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(a),a.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(s){i.e(s)}finally{i.f()}}))},refreshSelectedTag:function(e){this.$tab.refreshPage(e),this.$route.meta.link&&this.$store.dispatch("tagsView/delIframeView",this.$route)},closeSelectedTag:function(e){var t=this;this.$tab.closePage(e).then((function(n){var i=n.visitedViews;t.isActive(e)&&t.toLastView(i,e)}))},closeRightTags:function(){var e=this;this.$tab.closeRightPage(this.selectedTag).then((function(t){t.find((function(t){return t.fullPath===e.$route.fullPath}))||e.toLastView(t)}))},closeLeftTags:function(){var e=this;this.$tab.closeLeftPage(this.selectedTag).then((function(t){t.find((function(t){return t.fullPath===e.$route.fullPath}))||e.toLastView(t)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag.fullPath).catch((function(){})),this.$tab.closeOtherPage(this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$tab.closeAllPage().then((function(n){var i=n.visitedViews;t.affixTags.some((function(e){return e.path===t.$route.path}))||t.toLastView(i,e)}))},toLastView:function(e,t){var n=e.slice(-1)[0];n?this.$router.push(n.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=105,i=this.$el.getBoundingClientRect().left,a=this.$el.offsetWidth,s=a-n,c=t.clientX-i+15;this.left=c>s?s:c,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},Nt=Pt,Ut=(n("e437"),n("383e"),Object(m["a"])(Nt,Et,Bt,!1,null,"6ca9cc7a",null)),qt=Ut.exports,Ft=n("4360"),Wt=document,Jt=Wt.body,Gt=992,Qt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Ft["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(Ft["a"].dispatch("app/toggleDevice","mobile"),Ft["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=Jt.getBoundingClientRect();return e.width-1'});c.a.add(o);t["default"]=o},c38a:function(e,t,n){"use strict";n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return c})),n.d(t,"a",(function(){return o})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"b",(function(){return m}));var i=n("b85c"),a=n("53ca");n("a15b"),n("14d9"),n("fb6a"),n("b64b"),n("d3b7"),n("4d63"),n("c607"),n("ac1f"),n("2c3e"),n("00b4"),n("25f0"),n("5319"),n("1276"),n("0643"),n("9a9a");function s(e,t){if(0===arguments.length||!e)return null;var n,i=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(a["a"])(e)?n=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/").replace("T"," ").replace(new RegExp(/\.[\d]{3}/gm),"")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var s={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},c=i.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var n=s[t];return"a"===t?["日","一","二","三","四","五","六"][n]:(e.length>0&&n<10&&(n="0"+n),n||0)}));return c}function c(e){this.$refs[e]&&this.$refs[e].resetFields()}function o(e,t,n){var i=e;return i.params="object"!==Object(a["a"])(i.params)||null===i.params||Array.isArray(i.params)?{}:i.params,t=Array.isArray(t)?t:[],"undefined"===typeof n?(i.params["beginTime"]=t[0],i.params["endTime"]=t[1]):(i.params["begin"+n]=t[0],i.params["end"+n]=t[1]),i}function r(e,t){if(void 0===t)return"";var n=[];return Object.keys(e).some((function(i){if(e[i].value==""+t)return n.push(e[i].label),!0})),0===n.length&&n.push(t),n.join("")}function l(e,t,n){if(void 0===t||0===t.length)return"";Array.isArray(t)&&(t=t.join(","));var i=[],a=void 0===n?",":n,s=t.split(a);return Object.keys(t.split(a)).some((function(t){var n=!1;Object.keys(e).some((function(c){e[c].value==""+s[t]&&(i.push(e[c].label+a),n=!0)})),n||i.push(s[t]+a)})),i.join("").substring(0,i.join("").length-1)}function u(e){return e&&"undefined"!=e&&"null"!=e?e:""}function d(e,t){for(var n in t)try{t[n].constructor==Object?e[n]=d(e[n],t[n]):e[n]=t[n]}catch(i){e[n]=t[n]}return e}function h(e,t,n,a){var s,c={id:t||"id",parentId:n||"parentId",childrenList:a||"children"},o={},r=[],l=Object(i["a"])(e);try{for(l.s();!(s=l.n()).done;){var u=s.value,d=u[c.id];o[d]=u,u[c.childrenList]||(u[c.childrenList]=[])}}catch(g){l.e(g)}finally{l.f()}var h,f=Object(i["a"])(e);try{for(f.s();!(h=f.n()).done;){var m=h.value,p=m[c.parentId],v=o[p];v?v[c.childrenList].push(m):r.push(m)}}catch(g){f.e(g)}finally{f.f()}return r}function f(e){for(var t="",n=0,i=Object.keys(e);n'});c.a.add(o);t["default"]=o},cda1:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-github",use:"icon-github-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},d23b:function(e,t,n){"use strict";n("b7d1")},d7a0:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-code",use:"icon-code-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},d88a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(o);t["default"]=o},da73:function(e,t,n){},da75:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-dict",use:"icon-dict-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},dc13:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},dc78:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},dce4:function(e,t,n){"use strict";n("d3b7"),n("0643"),n("76d6"),n("9a9a");var i=n("4360");function a(e){var t="*:*:*",n=i["a"].getters&&i["a"].getters.permissions;return!!(e&&e.length>0)&&n.some((function(n){return t===n||n===e}))}function s(e){var t="admin",n=i["a"].getters&&i["a"].getters.roles;return!!(e&&e.length>0)&&n.some((function(n){return t===n||n===e}))}t["a"]={hasPermi:function(e){return a(e)},hasPermiOr:function(e){return e.some((function(e){return a(e)}))},hasPermiAnd:function(e){return e.every((function(e){return a(e)}))},hasRole:function(e){return s(e)},hasRoleOr:function(e){return e.some((function(e){return s(e)}))},hasRoleAnd:function(e){return e.every((function(e){return s(e)}))}}},de06:function(e,t,n){"use strict";n("2bb1")},df36:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-slider",use:"icon-slider-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},e11e:function(e,t,n){},e218:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-color",use:"icon-color-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},e2dd:function(e,t,n){"use strict";n("18e4")},e3ff:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},e437:function(e,t,n){"use strict";n("6198")},e82a:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-job",use:"icon-job-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},ed00:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},ee75:function(e,t,n){"use strict";n("f8ea")},f22e:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});c.a.add(o);t["default"]=o},f71f:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-monitor",use:"icon-monitor-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},f8e6:function(e,t,n){"use strict";n.r(t);var i=n("e017"),a=n.n(i),s=n("21a1"),c=n.n(s),o=new a.a({id:"icon-time",use:"icon-time-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(o);t["default"]=o},f8ea:function(e,t,n){},ffb3:function(e,t,n){"use strict";n("a870")}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/static/js/chunk-0d5b0085.24fa66fc.js b/ruoyi-admin/src/main/resources/static/static/js/chunk-0d5b0085.24fa66fc.js index 26a8d74..021baaf 100644 --- a/ruoyi-admin/src/main/resources/static/static/js/chunk-0d5b0085.24fa66fc.js +++ b/ruoyi-admin/src/main/resources/static/static/js/chunk-0d5b0085.24fa66fc.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d5b0085"],{"28a0":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},3022:function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),f=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),a(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function p(e,t){return e}function s(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function a(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return j(o)||(o=a(e,o,r)),o}var i=l(e,n);if(i)return i;var u=Object.keys(n),c=s(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(n)),D(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return y(n);if(0===u.length){if(_(n)){var f=n.name?": "+n.name:"";return e.stylize("[Function"+f+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(z(n))return e.stylize(Date.prototype.toString.call(n),"date");if(D(n))return y(n)}var p,m="",v=!1,w=["{","}"];if(h(n)&&(v=!0,w=["[","]"]),_(n)){var O=n.name?": "+n.name:"";m=" [Function"+O+"]"}return x(n)&&(m=" "+RegExp.prototype.toString.call(n)),z(n)&&(m=" "+Date.prototype.toUTCString.call(n)),D(n)&&(m=" "+y(n)),0!==u.length||v&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),p=v?g(e,n,r,c,u):u.map((function(t){return d(e,n,r,c,t,v)})),e.seen.pop(),b(p,m,w)):w[0]+m+w[1]}function l(e,t){if(S(t))return e.stylize("undefined","undefined");if(j(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return O(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o){for(var i=[],u=0,c=t.length;u-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n"))):c=e.stylize("[Circular]","special")),S(u)){if(i&&o.match(/^\d+$/))return c;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function v(e){return null===e}function w(e){return null==e}function O(e){return"number"===typeof e}function j(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function S(e){return void 0===e}function x(e){return P(e)&&"[object RegExp]"===A(e)}function P(e){return"object"===typeof e&&null!==e}function z(e){return P(e)&&"[object Date]"===A(e)}function D(e){return P(e)&&("[object Error]"===A(e)||e instanceof Error)}function _(e){return"function"===typeof e}function T(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function A(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(i)&&(i=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/prod-api",VUE_APP_TITLE:"超脑智子测试系统",BASE_URL:"/ashai-wecom-test/"}).NODE_DEBUG||""),n=n.toUpperCase(),!u[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;u[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else u[n]=function(){};return u[n]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=w,t.isNumber=O,t.isString=j,t.isSymbol=E,t.isUndefined=S,t.isRegExp=x,t.isObject=P,t.isDate=z,t.isError=D,t.isFunction=_,t.isPrimitive=T,t.isBuffer=n("d60a");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),k[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",U(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!P(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var J="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function I(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),f=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=f),a(r,e,r.depth)}function f(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function p(e,t){return e}function s(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function a(e,n,r){if(e.customInspect&&n&&_(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return j(o)||(o=a(e,o,r)),o}var i=l(e,n);if(i)return i;var u=Object.keys(n),c=s(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(n)),D(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return y(n);if(0===u.length){if(_(n)){var f=n.name?": "+n.name:"";return e.stylize("[Function"+f+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(z(n))return e.stylize(Date.prototype.toString.call(n),"date");if(D(n))return y(n)}var p,m="",v=!1,w=["{","}"];if(h(n)&&(v=!0,w=["[","]"]),_(n)){var O=n.name?": "+n.name:"";m=" [Function"+O+"]"}return x(n)&&(m=" "+RegExp.prototype.toString.call(n)),z(n)&&(m=" "+Date.prototype.toUTCString.call(n)),D(n)&&(m=" "+y(n)),0!==u.length||v&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),p=v?g(e,n,r,c,u):u.map((function(t){return d(e,n,r,c,t,v)})),e.seen.pop(),b(p,m,w)):w[0]+m+w[1]}function l(e,t){if(S(t))return e.stylize("undefined","undefined");if(j(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return O(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,r,o){for(var i=[],u=0,c=t.length;u-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n"))):c=e.stylize("[Circular]","special")),S(u)){if(i&&o.match(/^\d+$/))return c;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function b(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function m(e){return"boolean"===typeof e}function v(e){return null===e}function w(e){return null==e}function O(e){return"number"===typeof e}function j(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function S(e){return void 0===e}function x(e){return P(e)&&"[object RegExp]"===A(e)}function P(e){return"object"===typeof e&&null!==e}function z(e){return P(e)&&"[object Date]"===A(e)}function D(e){return P(e)&&("[object Error]"===A(e)||e instanceof Error)}function _(e){return"function"===typeof e}function T(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function A(e){return Object.prototype.toString.call(e)}function N(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(i)&&(i=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/prod-api",VUE_APP_TITLE:"超脑智子测试系统",BASE_URL:"/"}).NODE_DEBUG||""),n=n.toUpperCase(),!u[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var r=e.pid;u[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else u[n]=function(){};return u[n]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=w,t.isNumber=O,t.isString=j,t.isSymbol=E,t.isUndefined=S,t.isRegExp=x,t.isObject=P,t.isDate=z,t.isError=D,t.isFunction=_,t.isPrimitive=T,t.isBuffer=n("d60a");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function U(){var e=new Date,t=[N(e.getHours()),N(e.getMinutes()),N(e.getSeconds())].join(":");return[e.getDate(),k[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",U(),t.format.apply(t,arguments))},t.inherits=n("28a0"),t._extend=function(e,t){if(!t||!P(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var J="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function I(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r)?",a="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",r="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",i={className:"number",begin:r,relevance:0};return{aliases:["jsp"],keywords:a,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:a,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"}]}}},"4dd1":function(e,n){e.exports=function(e){var n={begin:"<>",end:""},t={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},a="[A-Za-z$_][0-9A-Za-z$_]*",r={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"xml"}},l={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"css"}},c={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,l,c,i,e.REGEXP_MODE];var d=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx","mjs","cjs"],keywords:r,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,l,c,e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:d}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:n.begin,end:n.end},{begin:t.begin,end:t.end}],subLanguage:"xml",contains:[{begin:t.begin,end:t.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},"4e82":function(e,n,t){"use strict";var a=t("23e7"),r=t("e330"),i=t("59ed"),s=t("7b0b"),o=t("07fa"),l=t("083a"),c=t("577e"),d=t("d039"),u=t("addb"),g=t("a640"),m=t("04d1"),p=t("d998"),_=t("2d00"),f=t("512ce"),b=[],h=r(b.sort),v=r(b.push),E=d((function(){b.sort(void 0)})),y=d((function(){b.sort(null)})),w=g("sort"),x=!d((function(){if(_)return _<70;if(!(m&&m>3)){if(p)return!0;if(f)return f<603;var e,n,t,a,r="";for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(a=0;a<47;a++)b.push({k:n+a,v:t})}for(b.sort((function(e,n){return n.v-e.v})),a=0;ac(t)?1:-1}};a({target:"Array",proto:!0,forced:N},{sort:function(e){void 0!==e&&i(e);var n=s(this);if(x)return void 0===e?h(n):h(n,e);var t,a,r=[],c=o(n);for(a=0;a`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[a,s,i,r,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"",contains:[a,r,s,i]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},t,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:")",end:">",keywords:{name:"style"},contains:[o],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:")",end:">",keywords:{name:"script"},contains:[o],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},o]}]}}},a70e:function(e,n,t){(function(t){var a,r;(function(t){var i="object"===typeof window&&window||"object"===typeof self&&self;n.nodeType?i&&(i.hljs=t({}),a=[],r=function(){return i.hljs}.apply(n,a),void 0===r||(e.exports=r)):t(n)})((function(e){var n,a=!1,r=[],i=Object.keys,s=Object.create(null),o=Object.create(null),l=!0,c=/^(no-?highlight|plain|text)$/i,d=/\blang(?:uage)?-([\w-]+)\b/i,u=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,g="",m="Could not find the language '{}', did you forget to load/include a language module?",p={hideUpgradeWarningAcceptNoSupportOrSecurityUpdates:!1,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},_="of and for in not or if then".split(" ");function f(e){return e.replace(/&/g,"&").replace(//g,">")}function b(e){return e.nodeName.toLowerCase()}function h(e,n){var t=e&&e.exec(n);return t&&0===t.index}function v(e){return c.test(e)}function E(e){var n,t,a,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=d.exec(i),t){var s=G(t[1]);return s||(console.warn(m.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),s?t[1]:"no-highlight"}for(i=i.split(/\s+/),n=0,a=i.length;n"}function c(e){i+=""}function d(e){("start"===e.event?l:c)(e.node)}while(e.length||n.length){var u=o();if(i+=f(t.substring(a,u[0].offset)),a=u[0].offset,u===e){s.reverse().forEach(c);do{d(u.splice(0,1)[0]),u=o()}while(u===e&&u.length&&u[0].offset===a);s.reverse().forEach(l)}else"start"===u[0].event?s.push(u[0].node):s.pop(),d(u.splice(0,1)[0])}return i+f(t.substr(a))}function N(e){return!!e&&(e.endsWithParent||N(e.starts))}function O(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return y(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:N(e)?[y(e,{starts:e.starts?y(e.starts):null})]:Object.isFrozen(e)?[y(e)]:[e]}function M(e){if(n&&!e.langApiRestored){for(var t in e.langApiRestored=!0,n)e[t]&&(e[n[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(M)}}function R(e,n){var t={};return"string"===typeof e?a("keyword",e):i(e).forEach((function(n){a(n,e[n])})),t;function a(e,a){n&&(a=a.toLowerCase()),a.split(" ").forEach((function(n){var a=n.split("|");t[a[0]]=[e,k(a[0],a[1])]}))}}function k(e,n){return n?Number(n):C(e)?0:1}function C(e){return-1!=_.indexOf(e.toLowerCase())}function A(e){function n(e){return e&&e.source||e}function t(t,a){return new RegExp(n(t),"m"+(e.case_insensitive?"i":"")+(a?"g":""))}function a(e){return new RegExp(e.toString()+"|").exec("").length-1}function r(e,t){for(var a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,i="",s=0;s0&&(i+=t),i+="(";while(l.length>0){var c=a.exec(l);if(null==c){i+=l;break}i+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?i+="\\"+String(Number(c[1])+o):(i+=c[0],"("==c[0]&&r++)}i+=")"}return i}function i(e){var n,i,s={},o=[],l={},c=1;function d(e,n){s[c]=e,o.push([e,n]),c+=a(n)+1}for(var u=0;u',i+n+s}function _(){var e,n,t,a;if(!R.keywords)return f(L);a="",n=0,R.lexemesRe.lastIndex=0,t=R.lexemesRe.exec(L);while(t)a+=f(L.substring(n,t.index)),e=d(R,t),e?(I+=e[1],a+=u(e[0],f(t[0]))):a+=f(t[0]),n=R.lexemesRe.lastIndex,t=R.lexemesRe.exec(L);return a+f(L.substr(n))}function b(){var e="string"===typeof R.subLanguage;if(e&&!s[R.subLanguage])return f(L);var n=e?D(R.subLanguage,L,!0,k[R.subLanguage]):T(L,R.subLanguage.length?R.subLanguage:void 0);return R.relevance>0&&(I+=n.relevance),e&&(k[R.subLanguage]=n.top),u(n.language,n.value,!1,!0)}function v(){C+=null!=R.subLanguage?b():_(),L=""}function E(e){C+=e.className?u(e.className,"",!0):"",R=Object.create(e,{parent:{value:R}})}function y(e){var n=e[0],t=e.rule;return t&&t.endSameAsBegin&&(t.endRe=o(n)),t.skip?L+=n:(t.excludeBegin&&(L+=n),v(),t.returnBegin||t.excludeBegin||(L=n)),E(t),t.returnBegin?0:n.length}function w(e){var n=e[0],t=i.substr(e.index),a=c(R,t);if(a){var r=R;r.skip?L+=n:(r.returnEnd||r.excludeEnd||(L+=n),v(),r.excludeEnd&&(L=n));do{R.className&&(C+=g),R.skip||R.subLanguage||(I+=R.relevance),R=R.parent}while(R!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),E(a.starts)),r.returnEnd?0:n.length}}var x={};function N(e,n){var a=n&&n[0];if(L+=e,null==a)return v(),0;if("begin"==x.type&&"end"==n.type&&x.index==n.index&&""===a)return L+=i.slice(n.index,n.index+1),1;if("illegal"===x.type&&""===a)return L+=i.slice(n.index,n.index+1),1;if(x=n,"begin"===n.type)return y(n);if("illegal"===n.type&&!t)throw new Error('Illegal lexeme "'+a+'" for mode "'+(R.className||"")+'"');if("end"===n.type){var r=w(n);if(void 0!=r)return r}return L+=a,a.length}var O=G(e);if(!O)throw console.error(m.replace("{}",e)),new Error('Unknown language: "'+e+'"');A(O);var M,R=r||O,k={},C="";for(M=R;M!==O;M=M.parent)M.className&&(C=u(M.className,"",!0)+C);var L="",I=0;try{var B,U,z=0;while(1){if(R.terminators.lastIndex=z,B=R.terminators.exec(i),!B)break;U=N(i.substring(z,B.index),B),z=B.index+U}for(N(i.substr(z)),M=R;M.parent;M=M.parent)M.className&&(C+=g);return{relevance:I,value:C,illegal:!1,language:e,top:R}}catch(P){if(P.message&&-1!==P.message.indexOf("Illegal"))return{illegal:!0,relevance:0,value:f(i)};if(l)return{relevance:0,value:f(i),language:e,top:R,errorRaised:P};throw P}}function T(e,n){n=n||p.languages||i(s);var t={relevance:0,value:f(e)},a=t;return n.filter(G).filter(F).forEach((function(n){var r=D(n,e,!1);r.language=n,r.relevance>a.relevance&&(a=r),r.relevance>t.relevance&&(a=t,t=r)})),a.language&&(t.second_best=a),t}function L(e){return p.tabReplace||p.useBR?e.replace(u,(function(e,n){return p.useBR&&"\n"===e?"
":p.tabReplace?n.replace(/\t/g,p.tabReplace):""})):e}function I(e,n,t){var a=n?o[n]:t,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),-1===e.indexOf(a)&&r.push(a),r.join(" ").trim()}function B(e){var n,t,a,r,i,s=E(e);v(s)||(p.useBR?(n=document.createElement("div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e,i=n.textContent,a=s?D(s,i,!0):T(i),t=w(n),t.length&&(r=document.createElement("div"),r.innerHTML=a.value,a.value=x(t,w(r),i)),a.value=L(a.value),e.innerHTML=a.value,e.className=I(e.className,s,a.language),e.result={language:a.language,re:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance}))}function U(e){p=y(p,e)}function z(){if(!z.called){z.called=!0;var e=document.querySelectorAll("pre code");r.forEach.call(e,B)}}function P(){window.addEventListener("DOMContentLoaded",z,!1),window.addEventListener("load",z,!1)}var j={disableAutodetect:!0};function H(n,t){var a;try{a=t(e)}catch(r){if(console.error("Language definition for '{}' could not be registered.".replace("{}",n)),!l)throw r;console.error(r),a=j}s[n]=a,M(a),a.rawDefinition=t.bind(null,e),a.aliases&&a.aliases.forEach((function(e){o[e]=n}))}function q(){return i(s)}function K(e){var n=G(e);if(n)return n;var t=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw t}function G(e){return e=(e||"").toLowerCase(),s[e]||s[o[e]]}function F(e){var n=G(e);return n&&!n.disableAutodetect}e.highlight=D,e.highlightAuto=T,e.fixMarkup=L,e.highlightBlock=B,e.configure=U,e.initHighlighting=z,e.initHighlightingOnLoad=P,e.registerLanguage=H,e.listLanguages=q,e.getLanguage=G,e.requireLanguage=K,e.autoDetection=F,e.inherit=y,e.debugMode=function(){l=!1},e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(n,t,a){var r=e.inherit({className:"comment",begin:n,end:t,contains:[]},a||{});return r.contains.push(e.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0};var W=[e.BACKSLASH_ESCAPE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.PHRASAL_WORDS_MODE,e.COMMENT,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,e.CSS_NUMBER_MODE,e.REGEXP_MODE,e.TITLE_MODE,e.UNDERSCORE_TITLE_MODE,e.METHOD_GUARD];function $(e){Object.freeze(e);var n="function"===typeof e;return Object.getOwnPropertyNames(e).forEach((function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!==typeof e[t]&&"function"!==typeof e[t]||n&&("caller"===t||"callee"===t||"arguments"===t)||Object.isFrozen(e[t])||$(e[t])})),e}return W.forEach((function(e){$(e)})),e}))}).call(this,t("4362"))},addb:function(e,n,t){"use strict";var a=t("f36a"),r=Math.floor,i=function(e,n){var t=e.length;if(t<8){var s,o,l=1;while(l0)e[o]=e[--o];o!==l++&&(e[o]=s)}}else{var c=r(t/2),d=i(a(e,0,c),n),u=i(a(e,c),n),g=d.length,m=u.length,p=0,_=0;while(p{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,n,e.HASH_COMMENT_MODE]}}}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5885ca9b"],{"04d1":function(e,n,t){"use strict";var a=t("342f"),r=a.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"332f":function(e,n){e.exports=function(e){var n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=n+"(<"+n+"(\\s*,\\s*"+n+")*>)?",a="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",r="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",i={className:"number",begin:r,relevance:0};return{aliases:["jsp"],keywords:a,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:a,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"}]}}},"4dd1":function(e,n){e.exports=function(e){var n={begin:"<>",end:""},t={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},a="[A-Za-z$_][0-9A-Za-z$_]*",r={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:r,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"xml"}},l={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"css"}},c={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,l,c,i,e.REGEXP_MODE];var d=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx","mjs","cjs"],keywords:r,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,l,c,e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:a+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:a+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:a,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+a+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:a},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:d}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:n.begin,end:n.end},{begin:t.begin,end:t.end}],subLanguage:"xml",contains:[{begin:t.begin,end:t.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:a}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:d}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},"4e82":function(e,n,t){"use strict";var a=t("23e7"),r=t("e330"),i=t("59ed"),s=t("7b0b"),o=t("07fa"),l=t("083a"),c=t("577e"),d=t("d039"),u=t("addb"),g=t("a640"),m=t("04d1"),p=t("d998"),_=t("2d00"),f=t("512ce"),b=[],h=r(b.sort),v=r(b.push),E=d((function(){b.sort(void 0)})),y=d((function(){b.sort(null)})),w=g("sort"),x=!d((function(){if(_)return _<70;if(!(m&&m>3)){if(p)return!0;if(f)return f<603;var e,n,t,a,r="";for(e=65;e<76;e++){switch(n=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(a=0;a<47;a++)b.push({k:n+a,v:t})}for(b.sort((function(e,n){return n.v-e.v})),a=0;ac(t)?1:-1}};a({target:"Array",proto:!0,forced:N},{sort:function(e){void 0!==e&&i(e);var n=s(this);if(x)return void 0===e?h(n):h(n,e);var t,a,r=[],c=o(n);for(a=0;a`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[a,s,i,r,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"",contains:[a,r,s,i]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},t,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:")",end:">",keywords:{name:"style"},contains:[o],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:")",end:">",keywords:{name:"script"},contains:[o],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},o]}]}}},a70e:function(e,n,t){(function(t){var a,r;(function(t){var i="object"===typeof window&&window||"object"===typeof self&&self;n.nodeType?i&&(i.hljs=t({}),a=[],r=function(){return i.hljs}.apply(n,a),void 0===r||(e.exports=r)):t(n)})((function(e){var n,a=!1,r=[],i=Object.keys,s=Object.create(null),o=Object.create(null),l=!0,c=/^(no-?highlight|plain|text)$/i,d=/\blang(?:uage)?-([\w-]+)\b/i,u=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,g="",m="Could not find the language '{}', did you forget to load/include a language module?",p={hideUpgradeWarningAcceptNoSupportOrSecurityUpdates:!1,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},_="of and for in not or if then".split(" ");function f(e){return e.replace(/&/g,"&").replace(//g,">")}function b(e){return e.nodeName.toLowerCase()}function h(e,n){var t=e&&e.exec(n);return t&&0===t.index}function v(e){return c.test(e)}function E(e){var n,t,a,r,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=d.exec(i),t){var s=G(t[1]);return s||(console.warn(m.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),s?t[1]:"no-highlight"}for(i=i.split(/\s+/),n=0,a=i.length;n"}function c(e){i+=""}function d(e){("start"===e.event?l:c)(e.node)}while(e.length||n.length){var u=o();if(i+=f(t.substring(a,u[0].offset)),a=u[0].offset,u===e){s.reverse().forEach(c);do{d(u.splice(0,1)[0]),u=o()}while(u===e&&u.length&&u[0].offset===a);s.reverse().forEach(l)}else"start"===u[0].event?s.push(u[0].node):s.pop(),d(u.splice(0,1)[0])}return i+f(t.substr(a))}function N(e){return!!e&&(e.endsWithParent||N(e.starts))}function O(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return y(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:N(e)?[y(e,{starts:e.starts?y(e.starts):null})]:Object.isFrozen(e)?[y(e)]:[e]}function M(e){if(n&&!e.langApiRestored){for(var t in e.langApiRestored=!0,n)e[t]&&(e[n[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(M)}}function R(e,n){var t={};return"string"===typeof e?a("keyword",e):i(e).forEach((function(n){a(n,e[n])})),t;function a(e,a){n&&(a=a.toLowerCase()),a.split(" ").forEach((function(n){var a=n.split("|");t[a[0]]=[e,k(a[0],a[1])]}))}}function k(e,n){return n?Number(n):C(e)?0:1}function C(e){return-1!=_.indexOf(e.toLowerCase())}function A(e){function n(e){return e&&e.source||e}function t(t,a){return new RegExp(n(t),"m"+(e.case_insensitive?"i":"")+(a?"g":""))}function a(e){return new RegExp(e.toString()+"|").exec("").length-1}function r(e,t){for(var a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,i="",s=0;s0&&(i+=t),i+="(";while(l.length>0){var c=a.exec(l);if(null==c){i+=l;break}i+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?i+="\\"+String(Number(c[1])+o):(i+=c[0],"("==c[0]&&r++)}i+=")"}return i}function i(e){var n,i,s={},o=[],l={},c=1;function d(e,n){s[c]=e,o.push([e,n]),c+=a(n)+1}for(var u=0;u',i+n+s}function _(){var e,n,t,a;if(!R.keywords)return f(L);a="",n=0,R.lexemesRe.lastIndex=0,t=R.lexemesRe.exec(L);while(t)a+=f(L.substring(n,t.index)),e=d(R,t),e?(I+=e[1],a+=u(e[0],f(t[0]))):a+=f(t[0]),n=R.lexemesRe.lastIndex,t=R.lexemesRe.exec(L);return a+f(L.substr(n))}function b(){var e="string"===typeof R.subLanguage;if(e&&!s[R.subLanguage])return f(L);var n=e?D(R.subLanguage,L,!0,k[R.subLanguage]):T(L,R.subLanguage.length?R.subLanguage:void 0);return R.relevance>0&&(I+=n.relevance),e&&(k[R.subLanguage]=n.top),u(n.language,n.value,!1,!0)}function v(){C+=null!=R.subLanguage?b():_(),L=""}function E(e){C+=e.className?u(e.className,"",!0):"",R=Object.create(e,{parent:{value:R}})}function y(e){var n=e[0],t=e.rule;return t&&t.endSameAsBegin&&(t.endRe=o(n)),t.skip?L+=n:(t.excludeBegin&&(L+=n),v(),t.returnBegin||t.excludeBegin||(L=n)),E(t),t.returnBegin?0:n.length}function w(e){var n=e[0],t=i.substr(e.index),a=c(R,t);if(a){var r=R;r.skip?L+=n:(r.returnEnd||r.excludeEnd||(L+=n),v(),r.excludeEnd&&(L=n));do{R.className&&(C+=g),R.skip||R.subLanguage||(I+=R.relevance),R=R.parent}while(R!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),E(a.starts)),r.returnEnd?0:n.length}}var x={};function N(e,n){var a=n&&n[0];if(L+=e,null==a)return v(),0;if("begin"==x.type&&"end"==n.type&&x.index==n.index&&""===a)return L+=i.slice(n.index,n.index+1),1;if("illegal"===x.type&&""===a)return L+=i.slice(n.index,n.index+1),1;if(x=n,"begin"===n.type)return y(n);if("illegal"===n.type&&!t)throw new Error('Illegal lexeme "'+a+'" for mode "'+(R.className||"")+'"');if("end"===n.type){var r=w(n);if(void 0!=r)return r}return L+=a,a.length}var O=G(e);if(!O)throw console.error(m.replace("{}",e)),new Error('Unknown language: "'+e+'"');A(O);var M,R=r||O,k={},C="";for(M=R;M!==O;M=M.parent)M.className&&(C=u(M.className,"",!0)+C);var L="",I=0;try{var B,U,z=0;while(1){if(R.terminators.lastIndex=z,B=R.terminators.exec(i),!B)break;U=N(i.substring(z,B.index),B),z=B.index+U}for(N(i.substr(z)),M=R;M.parent;M=M.parent)M.className&&(C+=g);return{relevance:I,value:C,illegal:!1,language:e,top:R}}catch(P){if(P.message&&-1!==P.message.indexOf("Illegal"))return{illegal:!0,relevance:0,value:f(i)};if(l)return{relevance:0,value:f(i),language:e,top:R,errorRaised:P};throw P}}function T(e,n){n=n||p.languages||i(s);var t={relevance:0,value:f(e)},a=t;return n.filter(G).filter(F).forEach((function(n){var r=D(n,e,!1);r.language=n,r.relevance>a.relevance&&(a=r),r.relevance>t.relevance&&(a=t,t=r)})),a.language&&(t.second_best=a),t}function L(e){return p.tabReplace||p.useBR?e.replace(u,(function(e,n){return p.useBR&&"\n"===e?"
":p.tabReplace?n.replace(/\t/g,p.tabReplace):""})):e}function I(e,n,t){var a=n?o[n]:t,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),-1===e.indexOf(a)&&r.push(a),r.join(" ").trim()}function B(e){var n,t,a,r,i,s=E(e);v(s)||(p.useBR?(n=document.createElement("div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e,i=n.textContent,a=s?D(s,i,!0):T(i),t=w(n),t.length&&(r=document.createElement("div"),r.innerHTML=a.value,a.value=x(t,w(r),i)),a.value=L(a.value),e.innerHTML=a.value,e.className=I(e.className,s,a.language),e.result={language:a.language,re:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance}))}function U(e){p=y(p,e)}function z(){if(!z.called){z.called=!0;var e=document.querySelectorAll("pre code");r.forEach.call(e,B)}}function P(){window.addEventListener("DOMContentLoaded",z,!1),window.addEventListener("load",z,!1)}var j={disableAutodetect:!0};function H(n,t){var a;try{a=t(e)}catch(r){if(console.error("Language definition for '{}' could not be registered.".replace("{}",n)),!l)throw r;console.error(r),a=j}s[n]=a,M(a),a.rawDefinition=t.bind(null,e),a.aliases&&a.aliases.forEach((function(e){o[e]=n}))}function q(){return i(s)}function K(e){var n=G(e);if(n)return n;var t=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw t}function G(e){return e=(e||"").toLowerCase(),s[e]||s[o[e]]}function F(e){var n=G(e);return n&&!n.disableAutodetect}e.highlight=D,e.highlightAuto=T,e.fixMarkup=L,e.highlightBlock=B,e.configure=U,e.initHighlighting=z,e.initHighlightingOnLoad=P,e.registerLanguage=H,e.listLanguages=q,e.getLanguage=G,e.requireLanguage=K,e.autoDetection=F,e.inherit=y,e.debugMode=function(){l=!1},e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(n,t,a){var r=e.inherit({className:"comment",begin:n,end:t,contains:[]},a||{});return r.contains.push(e.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0};var W=[e.BACKSLASH_ESCAPE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.PHRASAL_WORDS_MODE,e.COMMENT,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,e.CSS_NUMBER_MODE,e.REGEXP_MODE,e.TITLE_MODE,e.UNDERSCORE_TITLE_MODE,e.METHOD_GUARD];function $(e){Object.freeze(e);var n="function"===typeof e;return Object.getOwnPropertyNames(e).forEach((function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!==typeof e[t]&&"function"!==typeof e[t]||n&&("caller"===t||"callee"===t||"arguments"===t)||Object.isFrozen(e[t])||$(e[t])})),e}return W.forEach((function(e){$(e)})),e}))}).call(this,t("4362"))},addb:function(e,n,t){"use strict";var a=t("f36a"),r=Math.floor,i=function(e,n){var t=e.length;if(t<8){var s,o,l=1;while(l0)e[o]=e[--o];o!==l++&&(e[o]=s)}}else{var c=r(t/2),d=i(a(e,0,c),n),u=i(a(e,c),n),g=d.length,m=u.length,p=0,_=0;while(p{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,lexemes:/[\w\.]+/,keywords:{keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,n,e.HASH_COMMENT_MODE]}}}}]); \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/static/js/chunk-60006966.04045290.js b/ruoyi-admin/src/main/resources/static/static/js/chunk-60006966.04045290.js index f9acebc..7c9beea 100644 --- a/ruoyi-admin/src/main/resources/static/static/js/chunk-60006966.04045290.js +++ b/ruoyi-admin/src/main/resources/static/static/js/chunk-60006966.04045290.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60006966","chunk-0d5b0085"],{"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},3022:function(t,e,n){(function(t){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i=s)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),o=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),y(n)?i.showHidden=n:n&&e._extend(i,n),E(i.showHidden)&&(i.showHidden=!1),E(i.depth)&&(i.depth=2),E(i.colors)&&(i.colors=!1),E(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=o),h(i,t,i.depth)}function o(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function u(t,e){return t}function p(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function h(t,n,i){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var _=n.inspect(i,t);return k(_)||(_=h(t,_,i)),_}var s=l(t,n);if(s)return s;var r=Object.keys(n),a=p(r);if(t.showHidden&&(r=Object.getOwnPropertyNames(n)),S(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return c(n);if(0===r.length){if(A(n)){var o=n.name?": "+n.name:"";return t.stylize("[Function"+o+"]","special")}if(O(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return c(n)}var u,y="",b=!1,w=["{","}"];if(m(n)&&(b=!0,w=["[","]"]),A(n)){var v=n.name?": "+n.name:"";y=" [Function"+v+"]"}return O(n)&&(y=" "+RegExp.prototype.toString.call(n)),R(n)&&(y=" "+Date.prototype.toUTCString.call(n)),S(n)&&(y=" "+c(n)),0!==r.length||b&&0!=n.length?i<0?O(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=b?d(t,n,i,a,r):r.map((function(e){return f(t,n,i,a,e,b)})),t.seen.pop(),g(u,y,w)):w[0]+y+w[1]}function l(t,e){if(E(e))return t.stylize("undefined","undefined");if(k(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,i,_){for(var s=[],r=0,a=e.length;r-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),E(r)){if(s&&_.match(/^\d+$/))return a;r=JSON.stringify(""+_),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=t.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=t.stylize(r,"string"))}return r+": "+a}function g(t,e,n){var i=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function m(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function b(t){return null===t}function w(t){return null==t}function v(t){return"number"===typeof t}function k(t){return"string"===typeof t}function x(t){return"symbol"===typeof t}function E(t){return void 0===t}function O(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"===typeof t&&null!==t}function R(t){return T(t)&&"[object Date]"===N(t)}function S(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function A(t){return"function"===typeof t}function j(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function N(t){return Object.prototype.toString.call(t)}function L(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(E(s)&&(s=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/prod-api",VUE_APP_TITLE:"超脑智子测试系统",BASE_URL:"/ashai-wecom-test/"}).NODE_DEBUG||""),n=n.toUpperCase(),!r[n])if(new RegExp("\\b"+n+"\\b","i").test(s)){var i=t.pid;r[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else r[n]=function(){};return r[n]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=m,e.isBoolean=y,e.isNull=b,e.isNullOrUndefined=w,e.isNumber=v,e.isString=k,e.isSymbol=x,e.isUndefined=E,e.isRegExp=O,e.isObject=T,e.isDate=R,e.isError=S,e.isFunction=A,e.isPrimitive=j,e.isBuffer=n("d60a");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(":");return[t.getDate(),C[t.getMonth()],e].join(" ")}function z(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!T(e))return t;var n=Object.keys(e),i=n.length;while(i--)t[n[i]]=e[n[i]];return t};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function I(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},,,,function(t,e,n){"use strict";function i(t,e){this.raw_options=_(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function _(t,e){var n,i={};for(n in t=s(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function s(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=s,t.exports.mergeOpts=_},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},,,,,function(t,e,n){"use strict";function i(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}i.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},i.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=i},,function(t,e,n){"use strict";var i=n(16).Beautifier,_=n(17).Options;function s(t,e){var n=new i(t,e);return n.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(17).Options,_=n(2).Output,s=n(8).InputScanner,r=n(13).Directives,a=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,p=/\s/,h=/(?:\s|\n)+/g,l=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,e){this._source_text=t||"",this._options=new i(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}d.prototype.eatString=function(t){var e="";this._ch=this._input.next();while(this._ch){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},d.prototype.eatWhitespace=function(t){var e=p.test(this._input.peek()),n=!0;while(p.test(this._input.peek()))this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},d.prototype.foundNestedPseudoClass=function(){var t=0,e=1,n=this._input.peek(e);while(n){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},d.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},d.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&o.test(t||"")&&(e=t.match(o)[0])),t=t.replace(u,"\n");var n=t.match(/^[\t ]*/)[0];this._output=new _(this._options,n),this._input=new s(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var i,r,d,f=0,g=!1,m=!1,y=!1,b=!1,w=!1,v=this._ch;while(1){if(i=this._input.read(h),r=""!==i,d=v,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),v=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(l),x=a.get_directives(k);x&&"start"===x.ignore&&(k+=a.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s$/,""),this.print_string(E),this._output.space_before_token=!0),E=E.replace(/\s$/,""),"extend"===E?b=!0:"import"===E&&(w=!0),E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):g||0!==f||-1===E.indexOf(":")||(m=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(m&&(m=!1,this.outdent()),y?(y=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===d&&this._output.trim(!0),w=!1,b=!1,m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!g&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===f?(m&&(this.outdent(),m=!1),b=!1,w=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),f++,this.indent()):")"===this._ch?(f&&(f--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||m||0!==f||w?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==f?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),p.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(r),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&p.test(this._ch)&&(this._ch=""))}var O=this._output.get_code(e);return O},t.exports.Beautifier=d},function(t,e,n){"use strict";var i=n(6).Options;function _(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var _=0;_0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},,,function(t,e,n){"use strict";function i(t,e){this.raw_options=_(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function _(t,e){var n,i={};for(n in t=s(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function s(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=s,t.exports.mergeOpts=_},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},function(t,e,n){"use strict";var i=n(8).InputScanner,_=n(3).Token,s=n(10).TokenStream,r=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};o.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();var e=new _(a.START,""),n=null,i=[],r=new s;while(e.type!==a.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))r.add(t),t=this._get_next_token(e,n);r.isEmpty()||(t.comments_before=r,r=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},o.prototype._is_comment=function(t){return!1},o.prototype._is_opening=function(t){return!1},o.prototype._is_closing=function(t,e){return!1},o.prototype._create_token=function(t,e){var n=new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=o,t.exports.TOKEN=a},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in _)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=s},,,,function(t,e,n){"use strict";var i=n(19).Beautifier,_=n(20).Options;function s(t,e,n,_){var s=new i(t,e,n,_);return s.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(20).Options,_=n(2).Output,s=n(21).Tokenizer,r=n(21).TOKEN,a=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new _(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==r.TEXT&&t.previous.type!==r.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var p=function(t){var e=null,n=t.next;while(n.type!==r.EOF&&t.closed!==n){if(n.type===r.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===r.EQUALS&&n.next.next&&n.next.next.type===r.VALUE&&(e=n.next.next.text);break}n=n.next}return e},h=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=p(e)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function l(t,e){return-1!==e.indexOf(t)}function c(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function d(t){this._printer=t,this._current_frame=null}function f(t,e,n,_){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=_,this._tag_stack=null;var s=new i(e,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(t){var e=new c(this._current_frame,t,this._printer.indent_level);this._current_frame=e},d.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},d.prototype._get_frame=function(t,e){var n=this._current_frame;while(n){if(-1!==t.indexOf(n.tag))break;if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&a.test(t)&&(e=t.match(a)[0])),t=t.replace(o,"\n");var n=t.match(/^[\t ]*/)[0],i={text:"",type:""},_=new g,p=new u(this._options,n),h=new s(t,this._options).tokenize();this._tag_stack=new d(p);var l=null,c=h.next();while(c.type!==r.EOF)c.type===r.TAG_OPEN||c.type===r.COMMENT?(l=this._handle_tag_open(p,c,_,i),_=l):c.type===r.ATTRIBUTE||c.type===r.EQUALS||c.type===r.VALUE||c.type===r.TEXT&&!_.tag_complete?l=this._handle_inside_tag(p,c,_,h):c.type===r.TAG_CLOSE?l=this._handle_tag_close(p,c,_):c.type===r.TEXT?l=this._handle_text(p,c,_):p.add_raw_token(c),i=l,c=h.next();var f=p._output.get_code(e);return f},f.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},f.prototype._handle_inside_tag=function(t,e,n,i){var _=n.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===r.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===r.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===r.EQUALS||e.type===r.VALUE&&e.previous.type===r.EQUALS)&&t.set_space_before_token(!1),e.type===r.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),_=_||0!==e.newlines),this._is_wrap_attributes_force)){var a=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var o,u=!0,p=0;do{if(o=i.peek(p),o.type===r.ATTRIBUTE){u=!1;break}p+=1}while(p<4&&o.type!==r.EOF&&o.type!==r.TAG_CLOSE);a=!u}a&&(t.print_newline(!1),_=!0)}t.print_token(e),_=_||t.previous_token_wrapped(),n.has_wrapped_attrs=_}return s},f.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},f.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var _,s=e.text,r=1,a="",o="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?_=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?_=this._css_beautify:"html"===n.custom_beautifier_name&&(_=function(t,e){var n=new f(t,e,i._js_beautify,i._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?r=0:"separate"===this._options.indent_scripts&&(r=-t.indent_level);var u=t.get_full_indent(r);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(|]]>)$/.exec(s);if(!p)return void t.add_raw_token(e);a=u+p[1]+"\n",s=p[4],p[5]&&(o=u+p[5]),s=s.replace(/\n[ \t]*$/,""),(p[2]||-1!==p[3].indexOf("\n"))&&(p=p[3].match(/[ \t]+$/),p&&(e.whitespace_before=p[0]))}if(s)if(_){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var l=new h;s=_(u+s,l)}else{var c=e.whitespace_before;c&&(s=s.replace(new RegExp("\n("+c+")?","g"),"\n")),s=u+s.replace(/\n/g,"\n"+u)}a&&(s=s?a+s+"\n"+o:a+o),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},f.prototype._handle_tag_open=function(t,e,n,i){var _=this._get_tag_open_token(e);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==r.TAG_OPEN||0!==e.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};f.prototype._get_tag_open_token=function(t){var e=new g(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||l(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&l(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&l(e.tag_check,this._options.content_unformatted),e.is_inline_element=l(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},f.prototype._set_tag_position=function(t,e,n,i,_){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,e)))),l(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var s=t.current_line_has_match(/{{#if/);s||t.print_newline(!1)}"!--"===n.tag_name&&_.type===r.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))}else if(n.is_end_tag){var a=!1;a=n.start_tag_token&&n.start_tag_token.multiline_content,a=a||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(_.type===r.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==_.type,(n.is_content_unformatted||n.is_unformatted)&&(a=!1),a&&t.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===_.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},f.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],y=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==y.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=f},function(t,e,n){"use strict";var i=n(6).Options;function _(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}_.prototype=new i,t.exports.Options=_},function(t,e,n){"use strict";var i=n(9).Tokenizer,_=n(9).TOKEN,s=n(13).Directives,r=n(14).TemplatablePattern,a=n(12).Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:_.START,RAW:_.RAW,EOF:_.EOF},u=new s(/<\!--/,/-->/),p=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new r(this._input).read_options(this._options),_=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(//),cdata:_.starting_with(//),conditional_comment:_.starting_with(//),processing:_.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=_.matching(s).until_after(s)}};p.prototype=new i,p.prototype._is_comment=function(t){return!1},p.prototype._is_opening=function(t){return t.type===o.TAG_OPEN},p.prototype._is_closing=function(t,e){return t.type===o.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(o.EOF,""):(n=n||this._read_open_handlebars(i,e),n=n||this._read_attribute(i,t,e),n=n||this._read_close(i,e),n=n||this._read_raw_content(i,t,e),n=n||this._read_content_word(i),n=n||this._read_comment_or_cdata(i),n=n||this._read_processing(i),n=n||this._read_open(i,e),n=n||this._create_token(o.UNKNOWN,this._input.next()),n)},p.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;if("<"===t){var _=this._input.peek(1);"!"===_&&(n=this.__patterns.comment.read(),n?(i=u.get_directives(n),i&&"start"===i.ignore&&(n+=u.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(e=this._create_token(o.COMMENT,n),e.directives=i)}return e},p.prototype._read_processing=function(t){var e=null,n=null,i=null;if("<"===t){var _=this._input.peek(1);"!"!==_&&"?"!==_||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(e=this._create_token(o.COMMENT,n),e.directives=i)}return e},p.prototype._read_open=function(t,e){var n=null,i=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(o.TAG_OPEN,n)),i},p.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),i=this._create_token(o.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(o.TAG_OPEN,n))),i},p.prototype._read_close=function(t,e){var n=null,i=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(o.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(o.TAG_CLOSE,"}}"))),i},p.prototype._read_attribute=function(t,e,n){var i=null,_="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(o.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(o.VALUE,s)}else _=this.__patterns.attribute.read(),_&&(i=e.type===o.EQUALS?this._create_token(o.VALUE,_):this._create_token(o.ATTRIBUTE,_));return i},p.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},p.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===o.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var _=e.opened.text.substr(1).toLowerCase();if("script"===_||"style"===_){var s=this._read_comment_or_cdata(t);if(s)return s.type=o.TEXT,s;i=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(_)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(o.TEXT,i):null},p.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(o.TEXT,e)},t.exports.Tokenizer=p,t.exports.TOKEN=o}]),r=s;i=[n,n("e943"),n("4d7c")],_=function(t){var e=n("e943"),i=n("4d7c");return{html_beautify:function(t,n){return r(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i),void 0===_||(t.exports=_)})()},d60a:function(t,e){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},e552:function(t,e,n){"use strict";var i,_;function s(t,e,n){var i=function(e,n){return t.js_beautify(e,n)};return i.js=t.js_beautify,i.css=e.css_beautify,i.html=n.html_beautify,i.js_beautify=t.js_beautify,i.css_beautify=e.css_beautify,i.html_beautify=n.html_beautify,i}i=[n("e943"),n("4d7c"),n("a6c1")],_=function(t,e,n){return s(t,e,n)}.apply(e,i),void 0===_||(t.exports=_)},e943:function(t,e,n){var i,_;(function(){var n=function(t){var e={};function n(i){if(e[i])return e[i].exports;var _=e[i]={i:i,l:!1,exports:{}};return t[i].call(_.exports,_,_.exports,n),_.l=!0,_.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var _ in t)n.d(i,_,function(e){return t[e]}.bind(null,_));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var i=n(1).Beautifier,_=n(5).Options;function s(t,e){var n=new i(t,e);return n.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(2).Output,_=n(3).Token,s=n(4),r=n(5).Options,a=n(7).Tokenizer,o=n(7).line_starters,u=n(7).positionable_operators,p=n(7).TOKEN;function h(t,e){return-1!==e.indexOf(t)}function l(t){return t.replace(/^\s+/g,"")}function c(t){for(var e={},n=0;nn&&(n=t.line_indent_level));var i={mode:e,parent:t,last_token:t?t.last_token:new _(p.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return i},R.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(w.BlockStatement);var n=new a(t,this._options);return this._tokens=n.tokenize(),t},R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,e=this._reset(this._source_text),n=this._options.eol;"auto"===this._options.eol&&(n="\n",e&&s.lineBreak.test(e||"")&&(n=e.match(s.lineBreak)[0]));var i=this._tokens.next();while(i)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return t=this._output.get_code(n),t},R.prototype.handle_token=function(t,e){t.type===p.START_EXPR?this.handle_start_expr(t):t.type===p.END_EXPR?this.handle_end_expr(t):t.type===p.START_BLOCK?this.handle_start_block(t):t.type===p.END_BLOCK?this.handle_end_block(t):t.type===p.WORD||t.type===p.RESERVED?this.handle_word(t):t.type===p.SEMICOLON?this.handle_semicolon(t):t.type===p.STRING?this.handle_string(t):t.type===p.EQUALS?this.handle_equals(t):t.type===p.OPERATOR?this.handle_operator(t):t.type===p.COMMA?this.handle_comma(t):t.type===p.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===p.COMMENT?this.handle_comment(t,e):t.type===p.DOT?this.handle_dot(t):t.type===p.EOF?this.handle_eof(t):(t.type,p.UNKNOWN,this.handle_unknown(t,e))},R.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&x(this._flags.mode);if(t.comments_before){var _=t.comments_before.next();while(_)this.handle_whitespace_and_comments(_,e),this.handle_token(_,e),_=t.comments_before.next()}if(i)for(var s=0;s0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var r=1;r0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},R.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},R.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===w.Statement&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},R.prototype.start_of_object_property=function(){return this._flags.parent.mode===w.ObjectLiteral&&this._flags.mode===w.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},R.prototype.start_of_statement=function(t){var e=!1;return e=e||f(this._flags.last_token,["var","let","const"])&&t.type===p.WORD,e=e||d(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===w.ObjectLiteral&&this._flags.mode===w.Statement)&&f(this._flags.last_token,S)&&!t.newlines,e=e||d(this._flags.last_token,"else")&&!(d(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===p.END_EXPR&&(this._previous_flags.mode===w.ForInitializer||this._previous_flags.mode===w.Conditional),e=e||this._flags.last_token.type===p.WORD&&this._flags.mode===w.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==p.WORD&&t.type!==p.RESERVED,e=e||this._flags.mode===w.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])),!!e&&(this.set_mode(w.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,f(t,["do","for","if","while"])),!0)},R.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=w.Expression;if("["===t.text){if(this._flags.last_token.type===p.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=w.ArrayLiteral,x(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[p.START_EXPR,p.END_EXPR,p.WORD,p.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===p.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=w.ForInitializer):h(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,e=w.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,o)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===p.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===w.ObjectLiteral&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===p.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===w.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===p.START_BLOCK?this.print_newline():this._flags.last_token.type!==p.END_EXPR&&this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==p.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},R.prototype.handle_end_expr=function(t){while(this._flags.mode===w.Statement)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==p.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),v(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w.Conditional&&(this._previous_flags.mode=w.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},R.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===p.END_EXPR?(this.set_mode(w.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(w.BlockStatement):n&&(h(n.text,[":",","])&&h(e.type,[p.STRING,p.WORD,p.RESERVED])||h(e.text,["get","set","..."])&&h(n.type,[p.WORD,p.RESERVED]))?h(this._last_last_text,["class","interface"])?this.set_mode(w.BlockStatement):this.set_mode(w.ObjectLiteral):this._flags.last_token.type===p.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(w.BlockStatement):h(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||f(this._flags.last_token,["return","throw","import","default"])?this.set_mode(w.ObjectLiteral):this.set_mode(w.BlockStatement);var i=!e.comments_before&&"}"===e.text,_=i&&"function"===this._flags.last_word&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var s=0,r=null;this._flags.inline_frame=!0;do{if(s+=1,r=this._tokens.peek(s-1),r.newlines){this._flags.inline_frame=!1;break}}while(r.type!==p.EOF&&(r.type!==p.END_BLOCK||r.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(_||this._flags.last_token.type===p.EQUALS||f(this._flags.last_token,g)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!x(this._previous_flags.mode)||this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.COMMA||((this._flags.last_token.type===p.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(this._flags.last_token.type!==p.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},R.prototype.handle_end_block=function(t){this.handle_whitespace_and_comments(t);while(this._flags.mode===w.Statement)this.restore_mode();var e=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},R.prototype.handle_word=function(t){if(t.type===p.RESERVED)if(h(t.text,["set","get"])&&this._flags.mode!==w.ObjectLiteral)t.type=p.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=p.WORD;else if(h(t.text,["as","from"])&&!this._flags.import_block)t.type=p.WORD;else if(this._flags.mode===w.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=p.WORD)}if(this.start_of_statement(t)?f(this._flags.last_token,["var","let","const"])&&t.type===p.WORD&&(this._flags.declaration_statement=!0):!t.newlines||E(this._flags.mode)||this._flags.last_token.type===p.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===p.EQUALS||!this._options.preserve_newlines&&f(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(t,"else"))this._flags.else_block=!0;else{while(this._flags.mode===w.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==p.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.EQUALS&&this._flags.last_token.type!==p.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),d(t,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==p.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,S)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!E(this._flags.mode)&&!x(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var n="NONE";if(this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":f(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===w.BlockStatement?n="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&E(this._flags.mode)?n="SPACE":this._flags.last_token.type===p.STRING?n="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===w.ObjectLiteral&&h(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===p.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),f(t,o)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(t,["else","catch","finally"]))if((this._flags.last_token.type!==p.END_BLOCK||this._previous_flags.mode!==w.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var i=this._output.current_line;"}"!==i.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?f(this._flags.last_token,g)||"declare"===this._flags.last_token.text&&f(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?this._flags.last_token.type===p.START_EXPR&&f(t,["var","let","const"])||":"===this._flags.last_token.text||(d(t,"if")&&d(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(t,o)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==p.WORD&&t.previous.type!==p.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===p.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&d(t,"from")&&(this._flags.import_block=!1))},R.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);var e=this._tokens.peek();while(this._flags.mode===w.Statement&&(!this._flags.if_block||!d(e,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},R.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},R.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},R.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(E(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===w.ObjectLiteral||this._flags.mode===w.Statement&&this._flags.parent.mode===w.ObjectLiteral?(this._flags.mode===w.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},R.prototype.handle_operator=function(t){var e="*"===t.text&&(f(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),n=h(t.text,["-","+"])&&(h(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||h(this._flags.last_token.text,o)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var i=!e;this.handle_whitespace_and_comments(t,i)}if(f(this._flags.last_token,g))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==p.DOT)if("::"!==t.text){if(this._flags.last_token.type===p.OPERATOR&&h(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var _=!0,s=!0,r=!1;if(":"===t.text?0===this._flags.ternary_depth?_=!1:(this._flags.ternary_depth-=1,r=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&h(t.text,u)){var a=":"===t.text,l=a&&r,c=a&&!r;switch(this._options.operator_position){case y.before_newline:return this._output.space_before_token=!c,this.print_token(t),a&&!l||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case y.after_newline:return this._output.space_before_token=!0,!a||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case y.preserve_newline:return c||this.allow_wrap_or_preserved_newline(t),_=!(this._output.just_added_newline()||c),this._output.space_before_token=_,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),_=!1;var d=this._tokens.peek();s=d&&h(d.type,[p.WORD,p.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),_=this._flags.last_token.type===p.START_BLOCK,s=!1):(h(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR||this.allow_wrap_or_preserved_newline(t),_=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&E(this._flags.mode)&&(_=!0),this._flags.last_token.type===p.RESERVED?_=!0:this._flags.last_token.type===p.END_EXPR?_=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===p.OPERATOR&&(_=h(t.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(t.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==w.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==w.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||_,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},R.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):s.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},R.prototype.print_block_commment=function(t,e){var n,i=k(t.text),_=!1,s=!1,r=t.whitespace_before,a=r.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(i=i.slice(1),_=O(i,"*"),s=T(i,r),_&&(this._flags.alignment=1),n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},function(t,e,n){"use strict";var i="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",_="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="(?:\\\\u[0-9a-fA-F]{4}|["+i+s+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+_+s+r+"])*";e.identifier=new RegExp(a+o,"g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+_+s+r+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){"use strict";var i=n(6).Options,_=["before-newline","after-newline","preserve-newline"];function s(t){i.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),m=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";m=m.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),m="\\?\\.(?!\\d) "+m,m=m.replace(/ /g,"|");var y,b=new RegExp(m),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),k=new RegExp("^(?:"+v.join("|")+")$"),x=function(t,e){_.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new o(this._input),i=new u(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(a.identifier).matching(a.identifierMatch),number:n.matching(c),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(a.lineBreak),shebang:n.starting_with(/#!/).until_after(a.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};function E(t){var e="",n=0,_=new i(t),s=null;while(_.hasNext())if(s=_.match(/([\s]|[^\\]|\\\\)+/g),s&&(e+=s[0]),"\\"===_.peek()){if(_.next(),"x"===_.peek())s=_.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==_.peek()){e+="\\",_.hasNext()&&(e+=_.next());continue}s=_.match(/u([0-9A-Fa-f]{4})/g)}if(!s)return t;if(n=parseInt(s[1],16),n>126&&n<=255&&0===s[0].indexOf("x"))return t;if(n>=0&&n<32){e+="\\"+s[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}x.prototype=new _,x.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},x.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):(n=n||this._read_non_javascript(i),n=n||this._read_string(i),n=n||this._read_word(t),n=n||this._read_singles(i),n=n||this._read_comment(i),n=n||this._read_regexp(i,t),n=n||this._read_xml(i,t),n=n||this._read_punctuation(),n=n||this._create_token(h.UNKNOWN,this._input.next()),n)},x.prototype._read_word=function(t){var e;return e=this.__patterns.identifier.read(),""!==e?(e=e.replace(a.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&k.test(e)?"in"===e||"of"===e?this._create_token(h.OPERATOR,e):this._create_token(h.RESERVED,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},x.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&f.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):"?."===t?this._create_token(h.DOT,t):this._create_token(h.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read(),e))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read(),e)return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do{t=this._input.next(),n+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read(),e){while(this._input.hasNext()&&!this._input.testChar(a.newline))e+=this._input.next();return y=!0,this._create_token(h.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read(),e))return y=!1,this._create_token(h.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=l.get_directives(n);i&&"start"===i.ignore&&(n+=l.readIgnored(this._input)),n=n.replace(a.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,n),e.directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},x.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=E(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&p(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&p(t.opened.previous.text,["if","while","for"])||p(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},x.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){var n=this._input.next(),i=!1,_=!1;while(this._input.hasNext()&&(i||_||this._input.peek()!==t)&&!this._input.testChar(a.newline))n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?_=!0:"]"===this._input.peek()&&(_=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(a.identifier)),this._create_token(h.STRING,n)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){var _=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===_.indexOf("{"),r=0;while(i){var o=!!i[1],u=i[2],p=!!i[i.length-1]||"![CDATA["===u.slice(0,8);if(!p&&(u===_||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(o?--r:++r),n+=i[0],r<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},x.prototype._read_string_recursive=function(t,e,n){var i,_;"'"===t?_=this.__patterns.single_quote:'"'===t?_=this.__patterns.double_quote:"`"===t?_=this.__patterns.template_text:"}"===t&&(_=this.__patterns.template_expression);var s=_.read(),r="";while(this._input.hasNext()){if(r=this._input.next(),r===t||!e&&a.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?(i=this._input.peek(),"x"===i||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):n&&("${"===n&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),n===r&&(r+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(r+=this._input.next()))),r+=_.read(),s+=r}return s},t.exports.Tokenizer=x,t.exports.TOKEN=h,t.exports.positionable_operators=g.slice(),t.exports.line_starters=w.slice()},function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},function(t,e,n){"use strict";var i=n(8).InputScanner,_=n(3).Token,s=n(10).TokenStream,r=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};o.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();var e=new _(a.START,""),n=null,i=[],r=new s;while(e.type!==a.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))r.add(t),t=this._get_next_token(e,n);r.isEmpty()||(t.comments_before=r,r=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},o.prototype._is_comment=function(t){return!1},o.prototype._is_opening=function(t){return!1},o.prototype._is_closing=function(t,e){return!1},o.prototype._create_token=function(t,e){var n=new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=o,t.exports.TOKEN=a},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in _)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=s}]),s=n;i=[],_=function(){return{js_beautify:s}}.apply(e,i),void 0===_||(t.exports=_)})()}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60006966","chunk-0d5b0085"],{"28a0":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},3022:function(t,e,n){(function(t){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i=s)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),o=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),y(n)?i.showHidden=n:n&&e._extend(i,n),E(i.showHidden)&&(i.showHidden=!1),E(i.depth)&&(i.depth=2),E(i.colors)&&(i.colors=!1),E(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=o),h(i,t,i.depth)}function o(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function u(t,e){return t}function p(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function h(t,n,i){if(t.customInspect&&n&&A(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var _=n.inspect(i,t);return k(_)||(_=h(t,_,i)),_}var s=l(t,n);if(s)return s;var r=Object.keys(n),a=p(r);if(t.showHidden&&(r=Object.getOwnPropertyNames(n)),S(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return c(n);if(0===r.length){if(A(n)){var o=n.name?": "+n.name:"";return t.stylize("[Function"+o+"]","special")}if(O(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return c(n)}var u,y="",b=!1,w=["{","}"];if(m(n)&&(b=!0,w=["[","]"]),A(n)){var v=n.name?": "+n.name:"";y=" [Function"+v+"]"}return O(n)&&(y=" "+RegExp.prototype.toString.call(n)),R(n)&&(y=" "+Date.prototype.toUTCString.call(n)),S(n)&&(y=" "+c(n)),0!==r.length||b&&0!=n.length?i<0?O(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=b?d(t,n,i,a,r):r.map((function(e){return f(t,n,i,a,e,b)})),t.seen.pop(),g(u,y,w)):w[0]+y+w[1]}function l(t,e){if(E(e))return t.stylize("undefined","undefined");if(k(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):b(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,i,_){for(var s=[],r=0,a=e.length;r-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n"))):a=t.stylize("[Circular]","special")),E(r)){if(s&&_.match(/^\d+$/))return a;r=JSON.stringify(""+_),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=t.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=t.stylize(r,"string"))}return r+": "+a}function g(t,e,n){var i=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function m(t){return Array.isArray(t)}function y(t){return"boolean"===typeof t}function b(t){return null===t}function w(t){return null==t}function v(t){return"number"===typeof t}function k(t){return"string"===typeof t}function x(t){return"symbol"===typeof t}function E(t){return void 0===t}function O(t){return T(t)&&"[object RegExp]"===N(t)}function T(t){return"object"===typeof t&&null!==t}function R(t){return T(t)&&"[object Date]"===N(t)}function S(t){return T(t)&&("[object Error]"===N(t)||t instanceof Error)}function A(t){return"function"===typeof t}function j(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function N(t){return Object.prototype.toString.call(t)}function L(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(E(s)&&(s=Object({NODE_ENV:"production",VUE_APP_BASE_API:"/prod-api",VUE_APP_TITLE:"超脑智子测试系统",BASE_URL:"/"}).NODE_DEBUG||""),n=n.toUpperCase(),!r[n])if(new RegExp("\\b"+n+"\\b","i").test(s)){var i=t.pid;r[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,i,t)}}else r[n]=function(){};return r[n]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=m,e.isBoolean=y,e.isNull=b,e.isNullOrUndefined=w,e.isNumber=v,e.isString=k,e.isSymbol=x,e.isUndefined=E,e.isRegExp=O,e.isObject=T,e.isDate=R,e.isError=S,e.isFunction=A,e.isPrimitive=j,e.isBuffer=n("d60a");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(":");return[t.getDate(),C[t.getMonth()],e].join(" ")}function z(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n("28a0"),e._extend=function(t,e){if(!e||!T(e))return t;var n=Object.keys(e),i=n.length;while(i--)t[n[i]]=e[n[i]];return t};var D="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function I(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},,,,function(t,e,n){"use strict";function i(t,e){this.raw_options=_(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function _(t,e){var n,i={};for(n in t=s(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function s(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=s,t.exports.mergeOpts=_},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},,,,,function(t,e,n){"use strict";function i(t,e){t="string"===typeof t?t:t.source,e="string"===typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}i.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(t);while(n)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},i.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=i},,function(t,e,n){"use strict";var i=n(16).Beautifier,_=n(17).Options;function s(t,e){var n=new i(t,e);return n.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(17).Options,_=n(2).Output,s=n(8).InputScanner,r=n(13).Directives,a=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,p=/\s/,h=/(?:\s|\n)+/g,l=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,e){this._source_text=t||"",this._options=new i(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}d.prototype.eatString=function(t){var e="";this._ch=this._input.next();while(this._ch){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},d.prototype.eatWhitespace=function(t){var e=p.test(this._input.peek()),n=!0;while(p.test(this._input.peek()))this._ch=this._input.next(),t&&"\n"===this._ch&&(this._options.preserve_newlines||n)&&(n=!1,this._output.add_new_line(!0));return e},d.prototype.foundNestedPseudoClass=function(){var t=0,e=1,n=this._input.peek(e);while(n){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;t-=1}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},d.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},d.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&o.test(t||"")&&(e=t.match(o)[0])),t=t.replace(u,"\n");var n=t.match(/^[\t ]*/)[0];this._output=new _(this._options,n),this._input=new s(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var i,r,d,f=0,g=!1,m=!1,y=!1,b=!1,w=!1,v=this._ch;while(1){if(i=this._input.read(h),r=""!==i,d=v,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),v=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var k=this._input.read(l),x=a.get_directives(k);x&&"start"===x.ignore&&(k+=a.readIgnored(this._input)),this.print_string(k),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(r),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s$/,""),this.print_string(E),this._output.space_before_token=!0),E=E.replace(/\s$/,""),"extend"===E?b=!0:"import"===E&&(w=!0),E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(y=!0)):g||0!==f||-1===E.indexOf(":")||(m=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(m&&(m=!1,this.outdent()),y?(y=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===d&&this._output.trim(!0),w=!1,b=!1,m&&(this.outdent(),m=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!g&&!y||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||b||0!==f?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),m||(m=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===f?(m&&(this.outdent(),m=!1),b=!1,w=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),f++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),f&&(f--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),f++,this.indent()):")"===this._ch?(f&&(f--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||m||0!==f||w?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||m||0!==f?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),p.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(r),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&p.test(this._ch)&&(this._ch=""))}var O=this._output.get_code(e);return O},t.exports.Beautifier=d},function(t,e,n){"use strict";var i=n(6).Options;function _(t){i.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var _=0;_0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},,,function(t,e,n){"use strict";function i(t,e){this.raw_options=_(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php"],["auto"])}function _(t,e){var n,i={};for(n in t=s(t),t)n!==e&&(i[n]=t[n]);if(e&&t[e])for(n in t[e])i[n]=t[e][n];return i}function s(t){var e,n={};for(e in t){var i=e.replace(/-/g,"_");n[i]=t[e]}return n}i.prototype._get_array=function(t,e){var n=this.raw_options[t],i=e||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(i=n.concat()):"string"===typeof n&&(i=n.split(/[^a-zA-Z0-9_\/\-]+/)),i},i.prototype._get_boolean=function(t,e){var n=this.raw_options[t],i=void 0===n?!!e:!!n;return i},i.prototype._get_characters=function(t,e){var n=this.raw_options[t],i=e||"";return"string"===typeof n&&(i=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),i},i.prototype._get_number=function(t,e){var n=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var i=parseInt(n,10);return isNaN(i)&&(i=e),i},i.prototype._get_selection=function(t,e,n){var i=this._get_selection_list(t,e,n);if(1!==i.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i[0]},i.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");var i=this._get_array(t,n);if(!this._is_valid_selection(i,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return i},i.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=i,t.exports.normalizeOpts=s,t.exports.mergeOpts=_},,function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},function(t,e,n){"use strict";var i=n(8).InputScanner,_=n(3).Token,s=n(10).TokenStream,r=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};o.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();var e=new _(a.START,""),n=null,i=[],r=new s;while(e.type!==a.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))r.add(t),t=this._get_next_token(e,n);r.isEmpty()||(t.comments_before=r,r=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},o.prototype._is_comment=function(t){return!1},o.prototype._is_opening=function(t){return!1},o.prototype._is_closing=function(t,e){return!1},o.prototype._create_token=function(t,e){var n=new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=o,t.exports.TOKEN=a},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in _)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=s},,,,function(t,e,n){"use strict";var i=n(19).Beautifier,_=n(20).Options;function s(t,e,n,_){var s=new i(t,e,n,_);return s.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(20).Options,_=n(2).Output,s=n(21).Tokenizer,r=n(21).TOKEN,a=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,u=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new _(t,e)};u.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},u.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},u.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},u.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},u.prototype.print_preserved_newlines=function(t){var e=0;t.type!==r.TEXT&&t.previous.type!==r.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines0);return 0!==e},u.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},u.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},u.prototype.print_newline=function(t){this._output.add_new_line(t)},u.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},u.prototype.indent=function(){this.indent_level++},u.prototype.get_full_indent=function(t){return t=this.indent_level+(t||0),t<1?"":this._output.get_indent_string(t)};var p=function(t){var e=null,n=t.next;while(n.type!==r.EOF&&t.closed!==n){if(n.type===r.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===r.EQUALS&&n.next.next&&n.next.next.type===r.VALUE&&(e=n.next.next.text);break}n=n.next}return e},h=function(t,e){var n=null,i=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),n=p(e)||n,n.search("text/css")>-1?i="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?i="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?i="html":n.search(/test\/null/)>-1&&(i="null"),i):null};function l(t,e){return-1!==e.indexOf(t)}function c(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function d(t){this._printer=t,this._current_frame=null}function f(t,e,n,_){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=_,this._tag_stack=null;var s=new i(e,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(t){var e=new c(this._current_frame,t,this._printer.indent_level);this._current_frame=e},d.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},d.prototype._get_frame=function(t,e){var n=this._current_frame;while(n){if(-1!==t.indexOf(n.tag))break;if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(t,e){var n=this._get_frame([t],e);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&a.test(t)&&(e=t.match(a)[0])),t=t.replace(o,"\n");var n=t.match(/^[\t ]*/)[0],i={text:"",type:""},_=new g,p=new u(this._options,n),h=new s(t,this._options).tokenize();this._tag_stack=new d(p);var l=null,c=h.next();while(c.type!==r.EOF)c.type===r.TAG_OPEN||c.type===r.COMMENT?(l=this._handle_tag_open(p,c,_,i),_=l):c.type===r.ATTRIBUTE||c.type===r.EQUALS||c.type===r.VALUE||c.type===r.TEXT&&!_.tag_complete?l=this._handle_inside_tag(p,c,_,h):c.type===r.TAG_CLOSE?l=this._handle_tag_close(p,c,_):c.type===r.TEXT?l=this._handle_text(p,c,_):p.add_raw_token(c),i=l,c=h.next();var f=p._output.get_code(e);return f},f.prototype._handle_tag_close=function(t,e,n){var i={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),i},f.prototype._handle_inside_tag=function(t,e,n,i){var _=n.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===r.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===r.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===r.EQUALS||e.type===r.VALUE&&e.previous.type===r.EQUALS)&&t.set_space_before_token(!1),e.type===r.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),_=_||0!==e.newlines),this._is_wrap_attributes_force)){var a=n.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var o,u=!0,p=0;do{if(o=i.peek(p),o.type===r.ATTRIBUTE){u=!1;break}p+=1}while(p<4&&o.type!==r.EOF&&o.type!==r.TAG_CLOSE);a=!u}a&&(t.print_newline(!1),_=!0)}t.print_token(e),_=_||t.previous_token_wrapped(),n.has_wrapped_attrs=_}return s},f.prototype._handle_text=function(t,e,n){var i={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),i},f.prototype._print_custom_beatifier_text=function(t,e,n){var i=this;if(""!==e.text){var _,s=e.text,r=1,a="",o="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?_=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?_=this._css_beautify:"html"===n.custom_beautifier_name&&(_=function(t,e){var n=new f(t,e,i._js_beautify,i._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?r=0:"separate"===this._options.indent_scripts&&(r=-t.indent_level);var u=t.get_full_indent(r);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(|]]>)$/.exec(s);if(!p)return void t.add_raw_token(e);a=u+p[1]+"\n",s=p[4],p[5]&&(o=u+p[5]),s=s.replace(/\n[ \t]*$/,""),(p[2]||-1!==p[3].indexOf("\n"))&&(p=p[3].match(/[ \t]+$/),p&&(e.whitespace_before=p[0]))}if(s)if(_){var h=function(){this.eol="\n"};h.prototype=this._options.raw_options;var l=new h;s=_(u+s,l)}else{var c=e.whitespace_before;c&&(s=s.replace(new RegExp("\n("+c+")?","g"),"\n")),s=u+s.replace(/\n/g,"\n"+u)}a&&(s=s?a+s+"\n"+o:a+o),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},f.prototype._handle_tag_open=function(t,e,n,i){var _=this._get_tag_open_token(e);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==r.TAG_OPEN||0!==e.text.indexOf("]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};f.prototype._get_tag_open_token=function(t){var e=new g(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||l(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&l(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&l(e.tag_check,this._options.content_unformatted),e.is_inline_element=l(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},f.prototype._set_tag_position=function(t,e,n,i,_){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=h(n.tag_check,e)))),l(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var s=t.current_line_has_match(/{{#if/);s||t.print_newline(!1)}"!--"===n.tag_name&&_.type===r.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))}else if(n.is_end_tag){var a=!1;a=n.start_tag_token&&n.start_tag_token.multiline_content,a=a||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(_.type===r.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==_.type,(n.is_content_unformatted||n.is_unformatted)&&(a=!1),a&&t.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===_.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n)},f.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var m=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],y=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=e||this._tag_stack.try_pop("dt",["dl"]),e=e||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==m.indexOf(t.tag_name)){var n=t.parent.parent;n&&-1!==y.indexOf(n.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]),e=e||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===t.tag_name||"tfoot"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("thead",["table"]),e=e||this._tag_stack.try_pop("tbody",["table"])):"tr"===t.tag_name?(e=e||this._tag_stack.try_pop("caption",["table"]),e=e||this._tag_stack.try_pop("colgroup",["table"]),e=e||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==t.tag_name&&"td"!==t.tag_name||(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),e=e||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},t.exports.Beautifier=f},function(t,e,n){"use strict";var i=n(6).Options;function _(t){i.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}_.prototype=new i,t.exports.Options=_},function(t,e,n){"use strict";var i=n(9).Tokenizer,_=n(9).TOKEN,s=n(13).Directives,r=n(14).TemplatablePattern,a=n(12).Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:_.START,RAW:_.RAW,EOF:_.EOF},u=new s(/<\!--/,/-->/),p=function(t,e){i.call(this,t,e),this._current_tag_name="";var n=new r(this._input).read_options(this._options),_=new a(this._input);if(this.__patterns={word:n.until(/[\n\r\t <]/),single_quote:n.until_after(/'/),double_quote:n.until_after(/"/),attribute:n.until(/[\n\r\t =>]|\/>/),element_name:n.until(/[\n\r\t >\/]/),handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),handlebars_open:_.until(/[\n\r\t }]/),handlebars_raw_close:_.until(/}}/),comment:_.starting_with(//),cdata:_.starting_with(//),conditional_comment:_.starting_with(//),processing:_.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=_.matching(s).until_after(s)}};p.prototype=new i,p.prototype._is_comment=function(t){return!1},p.prototype._is_opening=function(t){return t.type===o.TAG_OPEN},p.prototype._is_closing=function(t,e){return t.type===o.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},p.prototype._reset=function(){this._current_tag_name=""},p.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(o.EOF,""):(n=n||this._read_open_handlebars(i,e),n=n||this._read_attribute(i,t,e),n=n||this._read_close(i,e),n=n||this._read_raw_content(i,t,e),n=n||this._read_content_word(i),n=n||this._read_comment_or_cdata(i),n=n||this._read_processing(i),n=n||this._read_open(i,e),n=n||this._create_token(o.UNKNOWN,this._input.next()),n)},p.prototype._read_comment_or_cdata=function(t){var e=null,n=null,i=null;if("<"===t){var _=this._input.peek(1);"!"===_&&(n=this.__patterns.comment.read(),n?(i=u.get_directives(n),i&&"start"===i.ignore&&(n+=u.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(e=this._create_token(o.COMMENT,n),e.directives=i)}return e},p.prototype._read_processing=function(t){var e=null,n=null,i=null;if("<"===t){var _=this._input.peek(1);"!"!==_&&"?"!==_||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(e=this._create_token(o.COMMENT,n),e.directives=i)}return e},p.prototype._read_open=function(t,e){var n=null,i=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),i=this._create_token(o.TAG_OPEN,n)),i},p.prototype._read_open_handlebars=function(t,e){var n=null,i=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),i=this._create_token(o.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),i=this._create_token(o.TAG_OPEN,n))),i},p.prototype._read_close=function(t,e){var n=null,i=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),i=this._create_token(o.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),i=this._create_token(o.TAG_CLOSE,"}}"))),i},p.prototype._read_attribute=function(t,e,n){var i=null,_="";if(n&&"<"===n.text[0])if("="===t)i=this._create_token(o.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),i=this._create_token(o.VALUE,s)}else _=this.__patterns.attribute.read(),_&&(i=e.type===o.EQUALS?this._create_token(o.VALUE,_):this._create_token(o.ATTRIBUTE,_));return i},p.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},p.prototype._read_raw_content=function(t,e,n){var i="";if(n&&"{"===n.text[0])i=this.__patterns.handlebars_raw_close.read();else if(e.type===o.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var _=e.opened.text.substr(1).toLowerCase();if("script"===_||"style"===_){var s=this._read_comment_or_cdata(t);if(s)return s.type=o.TEXT,s;i=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(_)&&(i=this._input.readUntil(new RegExp("","ig")))}return i?this._create_token(o.TEXT,i):null},p.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(o.TEXT,e)},t.exports.Tokenizer=p,t.exports.TOKEN=o}]),r=s;i=[n,n("e943"),n("4d7c")],_=function(t){var e=n("e943"),i=n("4d7c");return{html_beautify:function(t,n){return r(t,n,e.js_beautify,i.css_beautify)}}}.apply(e,i),void 0===_||(t.exports=_)})()},d60a:function(t,e){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},e552:function(t,e,n){"use strict";var i,_;function s(t,e,n){var i=function(e,n){return t.js_beautify(e,n)};return i.js=t.js_beautify,i.css=e.css_beautify,i.html=n.html_beautify,i.js_beautify=t.js_beautify,i.css_beautify=e.css_beautify,i.html_beautify=n.html_beautify,i}i=[n("e943"),n("4d7c"),n("a6c1")],_=function(t,e,n){return s(t,e,n)}.apply(e,i),void 0===_||(t.exports=_)},e943:function(t,e,n){var i,_;(function(){var n=function(t){var e={};function n(i){if(e[i])return e[i].exports;var _=e[i]={i:i,l:!1,exports:{}};return t[i].call(_.exports,_,_.exports,n),_.l=!0,_.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var _ in t)n.d(i,_,function(e){return t[e]}.bind(null,_));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";var i=n(1).Beautifier,_=n(5).Options;function s(t,e){var n=new i(t,e);return n.beautify()}t.exports=s,t.exports.defaultOptions=function(){return new _}},function(t,e,n){"use strict";var i=n(2).Output,_=n(3).Token,s=n(4),r=n(5).Options,a=n(7).Tokenizer,o=n(7).line_starters,u=n(7).positionable_operators,p=n(7).TOKEN;function h(t,e){return-1!==e.indexOf(t)}function l(t){return t.replace(/^\s+/g,"")}function c(t){for(var e={},n=0;nn&&(n=t.line_indent_level));var i={mode:e,parent:t,last_token:t?t.last_token:new _(p.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0};return i},R.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new i(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(w.BlockStatement);var n=new a(t,this._options);return this._tokens=n.tokenize(),t},R.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t,e=this._reset(this._source_text),n=this._options.eol;"auto"===this._options.eol&&(n="\n",e&&s.lineBreak.test(e||"")&&(n=e.match(s.lineBreak)[0]));var i=this._tokens.next();while(i)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return t=this._output.get_code(n),t},R.prototype.handle_token=function(t,e){t.type===p.START_EXPR?this.handle_start_expr(t):t.type===p.END_EXPR?this.handle_end_expr(t):t.type===p.START_BLOCK?this.handle_start_block(t):t.type===p.END_BLOCK?this.handle_end_block(t):t.type===p.WORD||t.type===p.RESERVED?this.handle_word(t):t.type===p.SEMICOLON?this.handle_semicolon(t):t.type===p.STRING?this.handle_string(t):t.type===p.EQUALS?this.handle_equals(t):t.type===p.OPERATOR?this.handle_operator(t):t.type===p.COMMA?this.handle_comma(t):t.type===p.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===p.COMMENT?this.handle_comment(t,e):t.type===p.DOT?this.handle_dot(t):t.type===p.EOF?this.handle_eof(t):(t.type,p.UNKNOWN,this.handle_unknown(t,e))},R.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,i=this._options.keep_array_indentation&&x(this._flags.mode);if(t.comments_before){var _=t.comments_before.next();while(_)this.handle_whitespace_and_comments(_,e),this.handle_token(_,e),_=t.comments_before.next()}if(i)for(var s=0;s0,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,e);for(var r=1;r0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},R.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},R.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===w.Statement&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},R.prototype.start_of_object_property=function(){return this._flags.parent.mode===w.ObjectLiteral&&this._flags.mode===w.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},R.prototype.start_of_statement=function(t){var e=!1;return e=e||f(this._flags.last_token,["var","let","const"])&&t.type===p.WORD,e=e||d(this._flags.last_token,"do"),e=e||!(this._flags.parent.mode===w.ObjectLiteral&&this._flags.mode===w.Statement)&&f(this._flags.last_token,S)&&!t.newlines,e=e||d(this._flags.last_token,"else")&&!(d(t,"if")&&!t.comments_before),e=e||this._flags.last_token.type===p.END_EXPR&&(this._previous_flags.mode===w.ForInitializer||this._previous_flags.mode===w.Conditional),e=e||this._flags.last_token.type===p.WORD&&this._flags.mode===w.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==p.WORD&&t.type!==p.RESERVED,e=e||this._flags.mode===w.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])),!!e&&(this.set_mode(w.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,f(t,["do","for","if","while"])),!0)},R.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=w.Expression;if("["===t.text){if(this._flags.last_token.type===p.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=w.ArrayLiteral,x(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),h(this._flags.last_token.type,[p.START_EXPR,p.END_EXPR,p.WORD,p.OPERATOR])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===p.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=w.ForInitializer):h(this._flags.last_token.text,["if","while"])?(this._output.space_before_token=this._options.space_before_conditional,e=w.Conditional):h(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(h(this._flags.last_token.text,o)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===p.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var i=this._tokens.peek(-4);f(n,["async","function"])||"*"===n.text&&f(i,["async","function"])?this._output.space_before_token=!0:this._flags.mode===w.ObjectLiteral&&("{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==i.text&&","!==i.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===p.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===w.ObjectLiteral&&h(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===p.START_BLOCK?this.print_newline():this._flags.last_token.type!==p.END_EXPR&&this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==p.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},R.prototype.handle_end_expr=function(t){while(this._flags.mode===w.Statement)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&x(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==p.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),v(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===w.Conditional&&(this._previous_flags.mode=w.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},R.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===p.END_EXPR?(this.set_mode(w.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(w.BlockStatement):n&&(h(n.text,[":",","])&&h(e.type,[p.STRING,p.WORD,p.RESERVED])||h(e.text,["get","set","..."])&&h(n.type,[p.WORD,p.RESERVED]))?h(this._last_last_text,["class","interface"])?this.set_mode(w.BlockStatement):this.set_mode(w.ObjectLiteral):this._flags.last_token.type===p.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(w.BlockStatement):h(this._flags.last_token.type,[p.EQUALS,p.START_EXPR,p.COMMA,p.OPERATOR])||f(this._flags.last_token,["return","throw","import","default"])?this.set_mode(w.ObjectLiteral):this.set_mode(w.BlockStatement);var i=!e.comments_before&&"}"===e.text,_=i&&"function"===this._flags.last_word&&this._flags.last_token.type===p.END_EXPR;if(this._options.brace_preserve_inline){var s=0,r=null;this._flags.inline_frame=!0;do{if(s+=1,r=this._tokens.peek(s-1),r.newlines){this._flags.inline_frame=!1;break}}while(r.type!==p.EOF&&(r.type!==p.END_BLOCK||r.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==p.OPERATOR&&(_||this._flags.last_token.type===p.EQUALS||f(this._flags.last_token,g)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!x(this._previous_flags.mode)||this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.COMMA||((this._flags.last_token.type===p.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==p.OPERATOR&&this._flags.last_token.type!==p.START_EXPR&&(this._flags.last_token.type!==p.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),i||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},R.prototype.handle_end_block=function(t){this.handle_whitespace_and_comments(t);while(this._flags.mode===w.Statement)this.restore_mode();var e=this._flags.last_token.type===p.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(x(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},R.prototype.handle_word=function(t){if(t.type===p.RESERVED)if(h(t.text,["set","get"])&&this._flags.mode!==w.ObjectLiteral)t.type=p.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=p.WORD;else if(h(t.text,["as","from"])&&!this._flags.import_block)t.type=p.WORD;else if(this._flags.mode===w.ObjectLiteral){var e=this._tokens.peek();":"===e.text&&(t.type=p.WORD)}if(this.start_of_statement(t)?f(this._flags.last_token,["var","let","const"])&&t.type===p.WORD&&(this._flags.declaration_statement=!0):!t.newlines||E(this._flags.mode)||this._flags.last_token.type===p.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===p.EQUALS||!this._options.preserve_newlines&&f(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(t,"else"))this._flags.else_block=!0;else{while(this._flags.mode===w.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==p.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR&&this._flags.last_token.type!==p.EQUALS&&this._flags.last_token.type!==p.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),d(t,"function"))return(h(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!h(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==p.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,S)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===p.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!E(this._flags.mode)&&!x(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var n="NONE";if(this._flags.last_token.type===p.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":f(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&this._flags.mode===w.BlockStatement?n="NEWLINE":this._flags.last_token.type===p.SEMICOLON&&E(this._flags.mode)?n="SPACE":this._flags.last_token.type===p.STRING?n="NEWLINE":this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||"*"===this._flags.last_token.text&&(h(this._last_last_text,["function","yield"])||this._flags.mode===w.ObjectLiteral&&h(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===p.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===p.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),f(t,o)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(t,["else","catch","finally"]))if((this._flags.last_token.type!==p.END_BLOCK||this._previous_flags.mode!==w.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var i=this._output.current_line;"}"!==i.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?f(this._flags.last_token,g)||"declare"===this._flags.last_token.text&&f(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==p.END_EXPR?this._flags.last_token.type===p.START_EXPR&&f(t,["var","let","const"])||":"===this._flags.last_token.text||(d(t,"if")&&d(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(t,o)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&x(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==p.WORD&&t.previous.type!==p.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===p.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&d(t,"from")&&(this._flags.import_block=!1))},R.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);var e=this._tokens.peek();while(this._flags.mode===w.Statement&&(!this._flags.if_block||!d(e,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},R.prototype.handle_string=function(t){this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===p.RESERVED||this._flags.last_token.type===p.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===p.COMMA||this._flags.last_token.type===p.START_EXPR||this._flags.last_token.type===p.EQUALS||this._flags.last_token.type===p.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this.print_newline()),this.print_token(t)},R.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},R.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?(E(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===w.ObjectLiteral||this._flags.mode===w.Statement&&this._flags.parent.mode===w.ObjectLiteral?(this._flags.mode===w.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},R.prototype.handle_operator=function(t){var e="*"===t.text&&(f(this._flags.last_token,["function","yield"])||h(this._flags.last_token.type,[p.START_BLOCK,p.COMMA,p.END_BLOCK,p.SEMICOLON])),n=h(t.text,["-","+"])&&(h(this._flags.last_token.type,[p.START_BLOCK,p.START_EXPR,p.EQUALS,p.OPERATOR])||h(this._flags.last_token.text,o)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var i=!e;this.handle_whitespace_and_comments(t,i)}if(f(this._flags.last_token,g))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==p.DOT)if("::"!==t.text){if(this._flags.last_token.type===p.OPERATOR&&h(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==p.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var _=!0,s=!0,r=!1;if(":"===t.text?0===this._flags.ternary_depth?_=!1:(this._flags.ternary_depth-=1,r=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&h(t.text,u)){var a=":"===t.text,l=a&&r,c=a&&!r;switch(this._options.operator_position){case y.before_newline:return this._output.space_before_token=!c,this.print_token(t),a&&!l||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case y.after_newline:return this._output.space_before_token=!0,!a||l?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case y.preserve_newline:return c||this.allow_wrap_or_preserved_newline(t),_=!(this._output.just_added_newline()||c),this._output.space_before_token=_,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),_=!1;var d=this._tokens.peek();s=d&&h(d.type,[p.WORD,p.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),_=this._flags.last_token.type===p.START_BLOCK,s=!1):(h(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==p.COMMA&&this._flags.last_token.type!==p.START_EXPR||this.allow_wrap_or_preserved_newline(t),_=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&E(this._flags.mode)&&(_=!0),this._flags.last_token.type===p.RESERVED?_=!0:this._flags.last_token.type===p.END_EXPR?_=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===p.OPERATOR&&(_=h(t.text,["--","-","++","+"])&&h(this._flags.last_token.text,["--","-","++","+"]),h(t.text,["+","-"])&&h(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==w.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==w.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||_,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},R.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):s.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},R.prototype.print_block_commment=function(t,e){var n,i=k(t.text),_=!1,s=!1,r=t.whitespace_before,a=r.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(i[0]),this.print_newline(!1,e),i.length>1){for(i=i.slice(1),_=O(i,"*"),s=T(i,r),_&&(this._flags.alignment=1),n=0;n0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function s(t,e){this.__indent_cache=new _(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new i(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.clone_empty=function(){var t=new i(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},i.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},i.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},i.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},i.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},i.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},i.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},i.prototype.is_empty=function(){return 0===this.__items.length},i.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},i.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},i.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},i.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},i.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},i.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},i.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},_.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return e=e||0,t<0&&(n=0),n+=t*this.__indent_size,n+=e,n},_.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+=this.__cache[e],n},_.prototype.__ensure_cache=function(t){while(t>=this.__cache.length)this.__add_column()},_.prototype.__add_column=function(){var t=this.__cache.length,e=0,n="";this.__indent_size&&t>=this.__indent_size&&(e=Math.floor(t/this.__indent_size),t-=e*this.__indent_size,n=new Array(e+1).join(this.__indent_string)),t&&(n+=new Array(t+1).join(" ")),this.__cache.push(n)},s.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},s.prototype.get_line_number=function(){return this.__lines.length},s.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},s.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},s.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},s.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},s.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==t&&(n=n.replace(/[\n]/g,t)),n},s.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},s.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},s.prototype.add_raw_token=function(t){for(var e=0;e1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},s.prototype.just_added_newline=function(){return this.current_line.is_empty()},s.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},s.prototype.ensure_empty_line_above=function(t,e){var n=this.__lines.length-2;while(n>=0){var _=this.__lines[n];if(_.is_empty())break;if(0!==_.item(0).indexOf(t)&&_.item(-1)!==e){this.__lines.splice(n+1,0,new i(this)),this.previous_line=this.__lines[this.__lines.length-2];break}n--}},t.exports.Output=s},function(t,e,n){"use strict";function i(t,e,n,i){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}t.exports.Token=i},function(t,e,n){"use strict";var i="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",_="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",s="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="(?:\\\\u[0-9a-fA-F]{4}|["+i+s+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+_+s+r+"])*";e.identifier=new RegExp(a+o,"g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+_+s+r+"])+");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){"use strict";var i=n(6).Options,_=["before-newline","after-newline","preserve-newline"];function s(t){i.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),m=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";m=m.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),m="\\?\\.(?!\\d) "+m,m=m.replace(/ /g,"|");var y,b=new RegExp(m),w="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),v=w.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),k=new RegExp("^(?:"+v.join("|")+")$"),x=function(t,e){_.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var n=new o(this._input),i=new u(this._input).read_options(this._options);this.__patterns={template:i,identifier:i.starting_with(a.identifier).matching(a.identifierMatch),number:n.matching(c),punct:n.matching(b),comment:n.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:n.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:n.matching(//),include:n.starting_with(/#include/).until_after(a.lineBreak),shebang:n.starting_with(/#!/).until_after(a.lineBreak),xml:n.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:i.until(/['\\\n\r\u2028\u2029]/),double_quote:i.until(/["\\\n\r\u2028\u2029]/),template_text:i.until(/[`\\$]/),template_expression:i.until(/[`}\\]/)}};function E(t){var e="",n=0,_=new i(t),s=null;while(_.hasNext())if(s=_.match(/([\s]|[^\\]|\\\\)+/g),s&&(e+=s[0]),"\\"===_.peek()){if(_.next(),"x"===_.peek())s=_.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==_.peek()){e+="\\",_.hasNext()&&(e+=_.next());continue}s=_.match(/u([0-9A-Fa-f]{4})/g)}if(!s)return t;if(n=parseInt(s[1],16),n>126&&n<=255&&0===s[0].indexOf("x"))return t;if(n>=0&&n<32){e+="\\"+s[0];continue}e+=34===n||39===n||92===n?"\\"+String.fromCharCode(n):String.fromCharCode(n)}return e}x.prototype=new _,x.prototype._is_comment=function(t){return t.type===h.COMMENT||t.type===h.BLOCK_COMMENT||t.type===h.UNKNOWN},x.prototype._is_opening=function(t){return t.type===h.START_BLOCK||t.type===h.START_EXPR},x.prototype._is_closing=function(t,e){return(t.type===h.END_BLOCK||t.type===h.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},x.prototype._reset=function(){y=!1},x.prototype._get_next_token=function(t,e){var n=null;this._readWhitespace();var i=this._input.peek();return null===i?this._create_token(h.EOF,""):(n=n||this._read_non_javascript(i),n=n||this._read_string(i),n=n||this._read_word(t),n=n||this._read_singles(i),n=n||this._read_comment(i),n=n||this._read_regexp(i,t),n=n||this._read_xml(i,t),n=n||this._read_punctuation(),n=n||this._create_token(h.UNKNOWN,this._input.next()),n)},x.prototype._read_word=function(t){var e;return e=this.__patterns.identifier.read(),""!==e?(e=e.replace(a.allLineBreaks,"\n"),t.type!==h.DOT&&(t.type!==h.RESERVED||"set"!==t.text&&"get"!==t.text)&&k.test(e)?"in"===e||"of"===e?this._create_token(h.OPERATOR,e):this._create_token(h.RESERVED,e):this._create_token(h.WORD,e)):(e=this.__patterns.number.read(),""!==e?this._create_token(h.WORD,e):void 0)},x.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(h.START_EXPR,t):")"===t||"]"===t?e=this._create_token(h.END_EXPR,t):"{"===t?e=this._create_token(h.START_BLOCK,t):"}"===t?e=this._create_token(h.END_BLOCK,t):";"===t?e=this._create_token(h.SEMICOLON,t):"."===t&&f.test(this._input.peek(1))?e=this._create_token(h.DOT,t):","===t&&(e=this._create_token(h.COMMA,t)),e&&this._input.next(),e},x.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(h.EQUALS,t):"?."===t?this._create_token(h.DOT,t):this._create_token(h.OPERATOR,t)},x.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read(),e))return this._create_token(h.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read(),e)return this._create_token(h.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do{t=this._input.next(),n+=t}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(h.WORD,n)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read(),e){while(this._input.hasNext()&&!this._input.testChar(a.newline))e+=this._input.next();return y=!0,this._create_token(h.COMMENT,e)}}else if(y&&"-"===t&&(e=this.__patterns.html_comment_end.read(),e))return y=!1,this._create_token(h.COMMENT,e);return null},x.prototype._read_comment=function(t){var e=null;if("/"===t){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var i=l.get_directives(n);i&&"start"===i.ignore&&(n+=l.readIgnored(this._input)),n=n.replace(a.allLineBreaks,"\n"),e=this._create_token(h.BLOCK_COMMENT,n),e.directives=i}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),e=this._create_token(h.COMMENT,n))}return e},x.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=E(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,e)}return null},x.prototype._allow_regexp_or_xml=function(t){return t.type===h.RESERVED&&p(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===h.END_EXPR&&")"===t.text&&t.opened.previous.type===h.RESERVED&&p(t.opened.previous.text,["if","while","for"])||p(t.type,[h.COMMENT,h.START_EXPR,h.START_BLOCK,h.START,h.END_BLOCK,h.OPERATOR,h.EQUALS,h.EOF,h.SEMICOLON,h.COMMA])},x.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){var n=this._input.next(),i=!1,_=!1;while(this._input.hasNext()&&(i||_||this._input.peek()!==t)&&!this._input.testChar(a.newline))n+=this._input.peek(),i?i=!1:(i="\\"===this._input.peek(),"["===this._input.peek()?_=!0:"]"===this._input.peek()&&(_=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(a.identifier)),this._create_token(h.STRING,n)}return null},x.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",i=this.__patterns.xml.read_match();if(i){var _=i[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===_.indexOf("{"),r=0;while(i){var o=!!i[1],u=i[2],p=!!i[i.length-1]||"![CDATA["===u.slice(0,8);if(!p&&(u===_||s&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(o?--r:++r),n+=i[0],r<=0)break;i=this.__patterns.xml.read_match()}return i||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(a.allLineBreaks,"\n"),this._create_token(h.STRING,n)}}return null},x.prototype._read_string_recursive=function(t,e,n){var i,_;"'"===t?_=this.__patterns.single_quote:'"'===t?_=this.__patterns.double_quote:"`"===t?_=this.__patterns.template_text:"}"===t&&(_=this.__patterns.template_expression);var s=_.read(),r="";while(this._input.hasNext()){if(r=this._input.next(),r===t||!e&&a.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?(i=this._input.peek(),"x"===i||"u"===i?this.has_char_escapes=!0:"\r"===i&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):n&&("${"===n&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),n===r&&(r+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(r+=this._input.next()))),r+=_.read(),s+=r}return s},t.exports.Tokenizer=x,t.exports.TOKEN=h,t.exports.positionable_operators=g.slice(),t.exports.line_starters=w.slice()},function(t,e,n){"use strict";var i=RegExp.prototype.hasOwnProperty("sticky");function _(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position=0&&t=0&&e=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=_},function(t,e,n){"use strict";var i=n(8).InputScanner,_=n(3).Token,s=n(10).TokenStream,r=n(11).WhitespacePattern,a={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(t,e){this._input=new i(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};o.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new s,this._reset();var e=new _(a.START,""),n=null,i=[],r=new s;while(e.type!==a.EOF){t=this._get_next_token(e,n);while(this._is_comment(t))r.add(t),t=this._get_next_token(e,n);r.isEmpty()||(t.comments_before=r,r=new s),t.parent=n,this._is_opening(t)?(i.push(n),n=t):n&&this._is_closing(t,n)&&(t.opened=n,n.closed=t,n=i.pop(),t.parent=n),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(a.RAW,n):this._create_token(a.EOF,"")},o.prototype._is_comment=function(t){return!1},o.prototype._is_opening=function(t){return!1},o.prototype._is_closing=function(t,e){return!1},o.prototype._create_token=function(t,e){var n=new _(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return n},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=o,t.exports.TOKEN=a},function(t,e,n){"use strict";function i(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}i.prototype.restart=function(){this.__position=0},i.prototype.isEmpty=function(){return 0===this.__tokens_length},i.prototype.hasNext=function(){return this.__position=0&&t/),erb:n.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:n.starting_with(/{%/).until_after(/%}/),django_value:n.starting_with(/{{/).until_after(/}}/),django_comment:n.starting_with(/{#/).until_after(/#}/)}}s.prototype=new i,s.prototype._create=function(){return new s(this._input,this)},s.prototype._update=function(){this.__set_templated_pattern()},s.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},s.prototype.read_options=function(t){var e=this._create();for(var n in _)e._disabled[n]=-1===t.templating.indexOf(n);return e._update(),e},s.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},s.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var e=this._read_template();while(e)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},s.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},s.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=t||this.__patterns.handlebars_comment.read(),t=t||this.__patterns.handlebars_unescaped.read(),t=t||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=t||this.__patterns.django_comment.read(),t=t||this.__patterns.django.read())));return t},t.exports.TemplatablePattern=s}]),s=n;i=[],_=function(){return{js_beautify:s}}.apply(e,i),void 0===_||(t.exports=_)})()}}]); \ No newline at end of file diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java index 8c58e72..d6943a4 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ResourcesConfig.java @@ -2,7 +2,6 @@ package com.ruoyi.framework.config; import com.ruoyi.common.config.RuoYiConfig; import com.ruoyi.common.constant.Constants; -import com.ruoyi.framework.interceptor.CorpContextInterceptor; import com.ruoyi.framework.interceptor.RepeatSubmitInterceptor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; @@ -28,8 +27,6 @@ public class ResourcesConfig implements WebMvcConfigurer @Autowired private RepeatSubmitInterceptor repeatSubmitInterceptor; - @Autowired - private CorpContextInterceptor corpContextInterceptor; @Override public void addResourceHandlers(ResourceHandlerRegistry registry) @@ -50,8 +47,6 @@ public class ResourcesConfig implements WebMvcConfigurer @Override public void addInterceptors(InterceptorRegistry registry) { - // 企业上下文拦截器,用于设置当前企业ID到ThreadLocal - registry.addInterceptor(corpContextInterceptor).addPathPatterns("/**"); // 防重复提交拦截器 registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); } diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/CorpContextInterceptor.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/CorpContextInterceptor.java deleted file mode 100644 index 5b45db1..0000000 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/CorpContextInterceptor.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.ruoyi.framework.interceptor; - -import com.ruoyi.common.core.redis.RedisCache; -import com.ruoyi.common.utils.CorpContextHolder; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Component; -import org.springframework.web.servlet.HandlerInterceptor; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -/** - * 企业上下文拦截器 - * 在请求处理前从 Redis 获取当前企业ID并设置到 ThreadLocal - * 在请求处理后清理 ThreadLocal - */ -@Component -public class CorpContextInterceptor implements HandlerInterceptor { - - @Autowired - private RedisCache redisCache; - - @Override - public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { - // 从 Redis 获取当前企业ID - String corpId = redisCache.getCacheObject("current_corp_id"); - - // 如果存在企业ID,设置到 ThreadLocal - if (corpId != null && !corpId.trim().isEmpty()) { - CorpContextHolder.setCurrentCorpId(corpId); - } - - return true; - } - - @Override - public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception { - // 请求完成后清理 ThreadLocal,避免内存泄漏 - CorpContextHolder.clear(); - } -} diff --git a/ruoyi-ui/Dockerfile b/ruoyi-ui/Dockerfile index 78f5811..be0995d 100644 --- a/ruoyi-ui/Dockerfile +++ b/ruoyi-ui/Dockerfile @@ -20,7 +20,7 @@ RUN npm run build:prod FROM nginx:alpine # 复制构建好的文件到 Nginx -COPY --from=build /app/dist /usr/share/nginx/html/ashai-wecom-test +COPY --from=build /app/dist /usr/share/nginx/html # 复制 Nginx 配置文件 COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/ruoyi-ui/nginx.conf b/ruoyi-ui/nginx.conf index ff792b5..9fbb002 100644 --- a/ruoyi-ui/nginx.conf +++ b/ruoyi-ui/nginx.conf @@ -3,14 +3,14 @@ server { server_name localhost; # 前端静态文件路径 - location /ashai-wecom-test { - alias /usr/share/nginx/html/ashai-wecom-test; - try_files $uri $uri/ /ashai-wecom-test/index.html; + location { + alias /usr/share/nginx/html; + try_files $uri $uri/ /index.html; index index.html; } # API 代理到后端 - location /ashai-wecom-test/prod-api/ { + location /prod-api/ { proxy_pass http://backend:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; diff --git a/ruoyi-ui/src/api/wecom/corpInfo.js b/ruoyi-ui/src/api/wecom/corpInfo.js new file mode 100644 index 0000000..22253da --- /dev/null +++ b/ruoyi-ui/src/api/wecom/corpInfo.js @@ -0,0 +1,68 @@ +import request from '@/utils/request' + +// 查询企业信息列表 +export function listCorp(query) { + return request({ + url: '/wecom/corp/list', + method: 'get', + params: query + }) +} + +// 查询企业信息详细 +export function getCorp(id) { + return request({ + url: '/wecom/corp/' + id, + method: 'get' + }) +} + +// 新增企业信息 +export function addCorp(data) { + return request({ + url: '/wecom/corp', + method: 'post', + data: data + }) +} + +// 修改企业信息 +export function updateCorp(data) { + return request({ + url: '/wecom/corp', + method: 'put', + data: data + }) +} + +// 删除企业信息 +export function delCorp(ids) { + return request({ + url: '/wecom/corp/' + ids, + method: 'delete' + }) +} + +// 切换当前使用的企业 +export function switchCorp(corpId) { + return request({ + url: '/wecom/corp/switch/' + corpId, + method: 'post' + }) +} + +// 获取当前使用的企业信息 +export function getCurrentCorp() { + return request({ + url: '/wecom/corp/current', + method: 'get' + }) +} + +// 清除当前企业上下文 +export function clearCurrentCorp() { + return request({ + url: '/wecom/corp/clear', + method: 'post' + }) +} diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 6455598..0ac0674 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -105,7 +105,7 @@ export default { type: 'warning' }).then(() => { this.$store.dispatch('LogOut').then(() => { - const baseUrl = process.env.NODE_ENV === 'production' ? '/ashai-wecom-test' : '' + const baseUrl = process.env.NODE_ENV === 'production' ? '' : '' location.href = baseUrl + '/index' }) }).catch(() => {}) diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 38477d9..fe081b9 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -178,7 +178,7 @@ Router.prototype.replace = function push(location) { export default new Router({ mode: 'history', // 去掉url中的# - base: process.env.NODE_ENV === 'production' ? '/ashai-wecom-test/' : '/', + base: process.env.NODE_ENV === 'production' ? '/' : '/', scrollBehavior: () => ({ y: 0 }), routes: constantRoutes }) diff --git a/ruoyi-ui/src/utils/request.js b/ruoyi-ui/src/utils/request.js index e9ac290..7e8de28 100644 --- a/ruoyi-ui/src/utils/request.js +++ b/ruoyi-ui/src/utils/request.js @@ -88,7 +88,7 @@ service.interceptors.response.use(res => { MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => { isRelogin.show = false store.dispatch('LogOut').then(() => { - const baseUrl = process.env.NODE_ENV === 'production' ? '/ashai-wecom-test' : '' + const baseUrl = process.env.NODE_ENV === 'production' ? '' : '' location.href = baseUrl + '/index' }) }).catch(() => { diff --git a/ruoyi-ui/src/views/wecom/corpInfo/index.vue b/ruoyi-ui/src/views/wecom/corpInfo/index.vue new file mode 100644 index 0000000..a1d64d0 --- /dev/null +++ b/ruoyi-ui/src/views/wecom/corpInfo/index.vue @@ -0,0 +1,275 @@ + + + diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 0132ad6..4b13a78 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin') const name = process.env.VUE_APP_TITLE || '超脑智子测试系统' // 网页标题 -const baseUrl = 'http://localhost:8080' // 后端接口 +const baseUrl = 'http://localhost:8888' // 后端接口 const port = process.env.port || process.env.npm_config_port || 80 // 端口 @@ -20,7 +20,7 @@ module.exports = { // 部署生产环境和开发环境下的URL。 // 默认情况下,Vue CLI 会假设你的应用是被部署在一个域名的根路径上 // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.ruoyi.vip/admin/,则设置 baseUrl 为 /admin/。 - publicPath: process.env.NODE_ENV === "production" ? "/ashai-wecom-test" : "/", + publicPath: process.env.NODE_ENV === "production" ? "" : "/", // 在npm run build 或 yarn build 时 ,生成文件的目录名称(要和baseUrl的生产环境路径一致)(默认dist) outputDir: 'dist', // 用于放置生成的静态资源 (js、css、img、fonts) 的;(项目打包之后,静态资源会放在这个文件夹下)