diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 12a6026..13fb1e0 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -21,6 +21,11 @@ jobs: go-version: '1.24' cache: true + - name: Install UPX + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + - name: Build all platforms run: | mkdir -p dist @@ -55,6 +60,13 @@ jobs: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-s -w" \ -o dist/client-windows-amd64.exe ./cmd/client + - name: Compress with UPX + run: | + # UPX 压缩 Linux 和 Windows 二进制 (macOS 不支持) + upx -9 dist/server-linux-amd64 dist/client-linux-amd64 || true + upx -9 dist/server-linux-arm64 dist/client-linux-arm64 || true + upx -9 dist/server-windows-amd64.exe dist/client-windows-amd64.exe || true + - name: List artifacts run: ls -lah dist/ diff --git a/README.md b/README.md index 181f1b0..e6f5a4d 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,9 @@ GoTunnel 是一个类似 frp 的内网穿透解决方案,核心特点是**服 |------|----------|-----| | 配置管理 | 服务端集中管理 | 客户端各自配置 | | TLS 证书 | 自动生成,零配置 | 需手动配置 | -| 管理界面 | 内置 Web 控制台 | 需额外部署 Dashboard | -| 客户端部署 | 仅需 3 个参数 | 需配置文件 | +| 管理界面 | 内置 Web 控制台 (naive-ui) | 需额外部署 Dashboard | +| 客户端部署 | 仅需 2 个参数 | 需配置文件 | +| 客户端 ID | 可选,服务端自动分配 | 需手动配置 | ### 架构设计 @@ -104,7 +105,14 @@ go build -o client ./cmd/client ### 客户端启动 ```bash +# 最简启动(ID 由服务端自动分配) +./client -s <服务器IP>:7000 -t + +# 指定客户端 ID ./client -s <服务器IP>:7000 -t -id <客户端ID> + +# 禁用 TLS(需服务端也禁用) +./client -s <服务器IP>:7000 -t -no-tls ``` **参数说明:** @@ -113,7 +121,7 @@ go build -o client ./cmd/client |------|------|------| | `-s` | 服务器地址 (ip:port) | 是 | | `-t` | 认证 Token | 是 | -| `-id` | 客户端 ID(需与服务端配置匹配) | 否(自动生成) | +| `-id` | 客户端 ID | 否(服务端自动分配) | | `-no-tls` | 禁用 TLS 加密 | 否 | ## 配置系统 @@ -189,6 +197,7 @@ web: ```json { "id": "client-a", + "nickname": "办公室电脑", "rules": [ {"name": "web", "type": "tcp", "local_ip": "127.0.0.1", "local_port": 80, "remote_port": 8080}, {"name": "dns", "type": "udp", "local_ip": "127.0.0.1", "local_port": 53, "remote_port": 5353}, @@ -211,22 +220,23 @@ GoTunnel/ │ │ ├── config/ # 配置管理 │ │ ├── db/ # 数据库存储 │ │ ├── app/ # Web 服务 -│ │ ├── router/ # API 路由 -│ │ └── plugin/ # 服务端插件管理 +│ │ └── router/ # API 路由 │ └── client/ -│ ├── tunnel/ # 客户端隧道 -│ └── plugin/ # 客户端插件管理和缓存 +│ └── tunnel/ # 客户端隧道 ├── pkg/ │ ├── protocol/ # 通信协议 │ ├── crypto/ # TLS 加密 │ ├── proxy/ # 代理服务器 │ ├── relay/ # 数据转发 +│ ├── auth/ # JWT 认证 │ ├── utils/ # 工具函数 │ └── plugin/ # 插件系统核心 │ ├── builtin/ # 内置插件 (socks5) │ ├── wasm/ # WASM 运行时 (wazero) │ └── store/ # 插件持久化 (SQLite) -├── web/ # Vue 3 前端 +├── web/ # Vue 3 + naive-ui 前端 +├── scripts/ # 构建脚本 +│ └── build.sh # 跨平台构建脚本 └── go.mod ``` @@ -258,7 +268,22 @@ type ProxyHandler interface { ## Web API -Web 控制台提供 RESTful API 用于管理客户端和配置。 +Web 控制台提供 RESTful API 用于管理客户端和配置。配置了 `username` 和 `password` 后,API 需要 JWT 认证。 + +### 认证 + +```bash +# 登录获取 Token +POST /api/auth/login +Content-Type: application/json +{"username": "admin", "password": "password"} + +# 响应 +{"token": "eyJhbGciOiJIUzI1NiIs..."} + +# 后续请求携带 Token +Authorization: Bearer +``` ### 客户端管理 @@ -266,23 +291,45 @@ Web 控制台提供 RESTful API 用于管理客户端和配置。 # 获取所有客户端 GET /api/clients -# 添加客户端 -POST /api/clients -Content-Type: application/json -{"id": "client-a", "rules": [...]} - # 获取单个客户端 GET /api/client/{id} -# 更新客户端规则 +# 更新客户端(昵称和规则) PUT /api/client/{id} Content-Type: application/json -{"rules": [...]} +{"nickname": "办公室电脑", "rules": [...]} # 删除客户端 DELETE /api/client/{id} ``` +### 客户端控制 + +```bash +# 推送配置到在线客户端(客户端会立即应用新规则) +POST /api/client/{id}/push + +# 断开客户端连接 +POST /api/client/{id}/disconnect +``` + +### 插件管理 + +```bash +# 获取已注册的插件列表 +GET /api/plugins + +# 响应示例 +[ + { + "name": "socks5", + "version": "1.0.0", + "description": "SOCKS5 proxy plugin", + "source": "builtin" + } +] +``` + ### 服务状态 ```bash @@ -292,6 +339,11 @@ GET /api/status # 获取配置 GET /api/config +# 更新配置 +PUT /api/config +Content-Type: application/json +{"server": {"heartbeat_sec": 30}, "web": {"enabled": true}} + # 重载配置 POST /api/config/reload ``` @@ -324,9 +376,9 @@ curl --socks5 server:1080 http://internal-service/ ## 常见问题 -**Q: 客户端连接失败,提示 "client not configured"** +**Q: 客户端连接后如何设置昵称?** -A: 需要先在服务端 Web 控制台添加对应的客户端 ID。 +A: 在 Web 控制台点击客户端详情,进入编辑模式即可设置昵称。 **Q: 如何禁用 TLS?** @@ -336,6 +388,156 @@ A: 服务端配置 `tls_disabled: true`,客户端使用 `-no-tls` 参数。 A: 服务端会自动检测端口冲突,请检查日志并更换端口。 +**Q: 客户端 ID 是如何分配的?** + +A: 如果客户端未指定 `-id` 参数,服务端会自动生成 16 位随机 ID。 + +## 构建 + +使用构建脚本可以一键构建前后端: + +```bash +# 构建当前平台 +./scripts/build.sh current + +# 构建所有平台 +./scripts/build.sh all + +# 仅构建 Web UI +./scripts/build.sh web + +# 清理构建产物 +./scripts/build.sh clean + +# 指定版本号 +VERSION=1.0.0 ./scripts/build.sh all +``` + +构建产物输出到 `build/_/` 目录。 + +## 架构时序图 + +### 1. 连接建立阶段 + +``` +┌────────┐ ┌────────┐ ┌──────────┐ +│ Client │ │ Server │ │ Database │ +└───┬────┘ └───┬────┘ └────┬─────┘ + │ │ │ + │ 1. TCP/TLS Connect│ │ + │──────────────────>│ │ + │ │ │ + │ 2. AuthRequest │ │ + │ {token, id?} │ │ + │──────────────────>│ │ + │ │ 3. 验证 Token │ + │ │ 4. 查询/创建客户端 │ + │ │───────────────────>│ + │ │<───────────────────│ + │ │ │ + │ 5. AuthResponse │ │ + │ {ok, client_id} │ │ + │<──────────────────│ │ + │ │ │ + │ 6. Yamux Session │ │ + │<═════════════════>│ │ + │ │ │ + │ 7. ProxyConfig │ │ + │ {rules[]} │ │ + │<──────────────────│ │ + │ │ │ +``` + +### 2. TCP 代理数据流 + +``` +┌──────────┐ ┌────────┐ ┌────────┐ ┌───────────────┐ +│ External │ │ Server │ │ Client │ │ Local Service │ +└────┬─────┘ └───┬────┘ └───┬────┘ └───────┬───────┘ + │ │ │ │ + │ 1. Connect │ │ │ + │ :remote │ │ │ + │─────────────>│ │ │ + │ │ │ │ + │ │ 2. Yamux │ │ + │ │ Stream │ │ + │ │────────────>│ │ + │ │ │ │ + │ │ 3. NewProxy │ │ + │ │ {port} │ │ + │ │────────────>│ │ + │ │ │ │ + │ │ │ 4. Connect │ + │ │ │ local:port │ + │ │ │────────────────>│ + │ │ │ │ + │ 5. Relay (双向数据转发) │ │ + │<════════════>│<═══════════>│<═══════════════>│ + │ │ │ │ +``` + +### 3. SOCKS5/HTTP 代理数据流 + +``` +┌──────────┐ ┌────────┐ ┌────────┐ ┌─────────────┐ +│ External │ │ Server │ │ Client │ │ Target Host │ +└────┬─────┘ └───┬────┘ └───┬────┘ └──────┬──────┘ + │ │ │ │ + │ 1. SOCKS5 │ │ │ + │ Handshake │ │ │ + │─────────────>│ │ │ + │ │ │ │ + │ │ 2. Proxy │ │ + │ │ Connect │ │ + │ │ {target} │ │ + │ │────────────>│ │ + │ │ │ │ + │ │ │ 3. Dial target │ + │ │ │───────────────>│ + │ │ │ │ + │ │ 4. Result │ │ + │ │<────────────│ │ + │ │ │ │ + │ 5. Relay (双向数据转发) │ │ + │<════════════>│<═══════════>│<══════════════>│ + │ │ │ │ +``` + +### 4. 心跳保活机制 + +``` +┌────────┐ ┌────────┐ +│ Client │ │ Server │ +└───┬────┘ └───┬────┘ + │ │ + │ │ 1. Ticker (30s) + │ │ + │ 2. Heartbeat │ + │<──────────────────│ + │ │ + │ 3. HeartbeatAck │ + │──────────────────>│ + │ │ + │ │ 4. 更新 LastPing + │ │ + │ ... 循环 ... │ + │ │ + │ │ 5. 超时检测 (90s) + │ │ 无响应则断开 + │ │ +``` + +### 核心组件说明 + +| 组件 | 职责 | +|------|------| +| Client | 连接服务端、转发本地服务、响应心跳 | +| Server | 认证、管理会话、监听端口、路由流量 | +| Yamux | 单连接多路复用,承载控制和数据通道 | +| Plugin | 处理 SOCKS5/HTTP 等代理协议 | +| PortManager | 端口分配与释放管理 | +| Database | 持久化客户端配置和规则 | + ## 许可证 本项目采用 [MIT License](LICENSE) 开源许可证。 diff --git a/bin/client b/bin/client deleted file mode 100755 index 3d05357..0000000 Binary files a/bin/client and /dev/null differ diff --git a/build/darwin_arm64/client b/build/darwin_arm64/client new file mode 100755 index 0000000..a91ae9b Binary files /dev/null and b/build/darwin_arm64/client differ diff --git a/build/darwin_arm64/config.yaml b/build/darwin_arm64/config.yaml new file mode 100644 index 0000000..ac197bd --- /dev/null +++ b/build/darwin_arm64/config.yaml @@ -0,0 +1,15 @@ +server: + bind_addr: "0.0.0.0" # 监听地址 + bind_port: 7001 # 监听端口 + token: "flik1513." # 认证 Token(不配置则自动生成) + heartbeat_sec: 30 # 心跳间隔(秒) + heartbeat_timeout: 90 # 心跳超时(秒) + db_path: "gotunnel.db" # 数据库路径 + tls_disabled: false # 是否禁用 TLS(默认启用) + +web: + enabled: true # 启用 Web 控制台 + bind_addr: "0.0.0.0" + bind_port: 7500 + username: "admin" # 可选,设置后启用认证 + password: "password" diff --git a/build/darwin_arm64/gotunnel.db b/build/darwin_arm64/gotunnel.db new file mode 100644 index 0000000..bc664f7 Binary files /dev/null and b/build/darwin_arm64/gotunnel.db differ diff --git a/bin/server b/build/darwin_arm64/server similarity index 52% rename from bin/server rename to build/darwin_arm64/server index 247d857..cda00e0 100755 Binary files a/bin/server and b/build/darwin_arm64/server differ diff --git a/cmd/client/main.go b/cmd/client/main.go index 6332ba5..6cd98d1 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -6,12 +6,14 @@ import ( "github.com/gotunnel/internal/client/tunnel" "github.com/gotunnel/pkg/crypto" + "github.com/gotunnel/pkg/plugin" + "github.com/gotunnel/pkg/plugin/builtin" ) func main() { server := flag.String("s", "", "server address (ip:port)") token := flag.String("t", "", "auth token") - id := flag.String("id", "", "client id (optional)") + id := flag.String("id", "", "client id (optional, auto-assigned if empty)") noTLS := flag.Bool("no-tls", false, "disable TLS") flag.Parse() @@ -28,5 +30,13 @@ func main() { log.Printf("[Client] TLS enabled") } + // 初始化插件系统 + registry := plugin.NewRegistry() + if err := registry.RegisterAll(builtin.GetAll()); err != nil { + log.Fatalf("[Plugin] Register error: %v", err) + } + client.SetPluginRegistry(registry) + log.Printf("[Plugin] Registered %d plugins", len(builtin.GetAll())) + client.Run() } diff --git a/cmd/server/main.go b/cmd/server/main.go index 4d8d4f3..7e618f1 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -53,14 +53,11 @@ func main() { // 初始化插件系统 registry := plugin.NewRegistry() - if err := registry.RegisterBuiltin(builtin.NewSOCKS5Plugin()); err != nil { - log.Printf("[Plugin] Register socks5 error: %v", err) - } - if err := registry.RegisterBuiltin(builtin.NewHTTPPlugin()); err != nil { - log.Printf("[Plugin] Register http error: %v", err) + if err := registry.RegisterAll(builtin.GetAll()); err != nil { + log.Fatalf("[Plugin] Register error: %v", err) } server.SetPluginRegistry(registry) - log.Printf("[Plugin] Plugins registered: socks5, http") + log.Printf("[Plugin] Registered %d plugins", len(builtin.GetAll())) // 启动 Web 控制台 if cfg.Web.Enabled { @@ -70,7 +67,7 @@ func main() { go func() { var err error if cfg.Web.Username != "" && cfg.Web.Password != "" { - err = ws.RunWithAuth(addr, cfg.Web.Username, cfg.Web.Password) + err = ws.RunWithJWT(addr, cfg.Web.Username, cfg.Web.Password, cfg.Server.Token) } else { err = ws.Run(addr) } diff --git a/go.mod b/go.mod index 28a6dbd..624a05f 100644 --- a/go.mod +++ b/go.mod @@ -11,6 +11,7 @@ require ( require ( github.com/dustin/go-humanize v1.0.1 // indirect + github.com/golang-jwt/jwt/v5 v5.3.0 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/ncruces/go-strftime v0.1.9 // indirect github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect diff --git a/go.sum b/go.sum index ec2537e..e6b60c3 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= +github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs= github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= diff --git a/internal/client/plugin/manager.go b/internal/client/plugin/manager.go index 17e514f..d332e2c 100644 --- a/internal/client/plugin/manager.go +++ b/internal/client/plugin/manager.go @@ -51,11 +51,11 @@ func NewManager(cacheDir string) (*Manager, error) { // registerBuiltins 注册内置 plugins // 注意: tcp, udp, http, https 是内置类型,直接在 tunnel 中处理 func (m *Manager) registerBuiltins() error { - // 注册 SOCKS5 plugin - if err := m.registry.RegisterBuiltin(builtin.NewSOCKS5Plugin()); err != nil { + // 使用统一的插件注册入口 + if err := m.registry.RegisterAll(builtin.GetAll()); err != nil { return err } - log.Println("[Plugin] Builtin plugins registered: socks5") + log.Printf("[Plugin] Registered %d builtin plugins", len(builtin.GetAll())) return nil } diff --git a/internal/client/tunnel/client.go b/internal/client/tunnel/client.go index 5916eba..65750a9 100644 --- a/internal/client/tunnel/client.go +++ b/internal/client/tunnel/client.go @@ -5,10 +5,12 @@ import ( "fmt" "log" "net" + "os" + "path/filepath" "sync" "time" - "github.com/google/uuid" + "github.com/gotunnel/pkg/plugin" "github.com/gotunnel/pkg/protocol" "github.com/gotunnel/pkg/relay" "github.com/hashicorp/yamux" @@ -22,24 +24,27 @@ const ( reconnectDelay = 5 * time.Second disconnectDelay = 3 * time.Second udpBufferSize = 65535 + idFileName = ".gotunnel_id" ) // Client 隧道客户端 type Client struct { - ServerAddr string - Token string - ID string - TLSEnabled bool - TLSConfig *tls.Config - session *yamux.Session - rules []protocol.ProxyRule - mu sync.RWMutex + ServerAddr string + Token string + ID string + TLSEnabled bool + TLSConfig *tls.Config + session *yamux.Session + rules []protocol.ProxyRule + mu sync.RWMutex + pluginRegistry *plugin.Registry } // NewClient 创建客户端 func NewClient(serverAddr, token, id string) *Client { + // 如果未指定 ID,尝试从本地文件加载 if id == "" { - id = uuid.New().String()[:8] + id = loadClientID() } return &Client{ ServerAddr: serverAddr, @@ -48,6 +53,36 @@ func NewClient(serverAddr, token, id string) *Client { } } +// getIDFilePath 获取 ID 文件路径 +func getIDFilePath() string { + home, err := os.UserHomeDir() + if err != nil { + return idFileName + } + return filepath.Join(home, idFileName) +} + +// loadClientID 从本地文件加载客户端 ID +func loadClientID() string { + data, err := os.ReadFile(getIDFilePath()) + if err != nil { + return "" + } + return string(data) +} + +// saveClientID 保存客户端 ID 到本地文件 +func saveClientID(id string) { + if err := os.WriteFile(getIDFilePath(), []byte(id), 0600); err != nil { + log.Printf("[Client] Failed to save client ID: %v", err) + } +} + +// SetPluginRegistry 设置插件注册表 +func (c *Client) SetPluginRegistry(registry *plugin.Registry) { + c.pluginRegistry = registry +} + // Run 启动客户端(带断线重连) func (c *Client) Run() error { for { @@ -102,6 +137,13 @@ func (c *Client) connect() error { return fmt.Errorf("auth failed: %s", authResp.Message) } + // 如果服务端分配了新 ID,则更新并保存 + if authResp.ClientID != "" && authResp.ClientID != c.ID { + c.ID = authResp.ClientID + saveClientID(c.ID) + log.Printf("[Client] New ID assigned and saved: %s", c.ID) + } + log.Printf("[Client] Authenticated as %s", c.ID) session, err := yamux.Client(conn, nil) diff --git a/internal/server/app/app.go b/internal/server/app/app.go index 4c50d5f..8a2bb40 100644 --- a/internal/server/app/app.go +++ b/internal/server/app/app.go @@ -10,6 +10,7 @@ import ( "github.com/gotunnel/internal/server/config" "github.com/gotunnel/internal/server/db" "github.com/gotunnel/internal/server/router" + "github.com/gotunnel/pkg/auth" ) //go:embed dist/* @@ -92,6 +93,35 @@ func (w *WebServer) RunWithAuth(addr, username, password string) error { return http.ListenAndServe(addr, handler) } +// RunWithJWT 启动带 JWT 认证的 Web 服务 +func (w *WebServer) RunWithJWT(addr, username, password, jwtSecret string) error { + r := router.New() + + // JWT 认证器 + jwtAuth := auth.NewJWTAuth(jwtSecret, 24) // 24小时过期 + + // 注册认证路由(不需要认证) + authHandler := router.NewAuthHandler(username, password, jwtAuth) + router.RegisterAuthRoutes(r, authHandler) + + // 注册业务路由 + router.RegisterRoutes(r, w) + + // 静态文件 + staticFS, err := fs.Sub(staticFiles, "dist") + if err != nil { + return err + } + r.Handle("/", spaHandler{fs: http.FS(staticFS)}) + + // JWT 中间件,只对 /api/ 路径进行认证(排除 /api/auth/) + skipPaths := []string{"/api/auth/"} + handler := router.JWTMiddleware(jwtAuth, skipPaths, r.Handler()) + + log.Printf("[Web] Console listening on %s (JWT auth enabled)", addr) + return http.ListenAndServe(addr, handler) +} + // GetClientStore 获取客户端存储 func (w *WebServer) GetClientStore() db.ClientStore { return w.ClientStore diff --git a/internal/server/app/dist/assets/ArrowBackOutline-QaNKMlLc.js b/internal/server/app/dist/assets/ArrowBackOutline-QaNKMlLc.js new file mode 100644 index 0000000..d596ea9 --- /dev/null +++ b/internal/server/app/dist/assets/ArrowBackOutline-QaNKMlLc.js @@ -0,0 +1 @@ +import{k as n,S as r,V as o,U as t}from"./vue-vendor-k28cQfDw.js";const l={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},a=n({name:"ArrowBackOutline",render:function(i,e){return t(),r("svg",l,e[0]||(e[0]=[o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"M244 400L100 256l144-144"},null,-1),o("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"48",d:"M120 256h292"},null,-1)]))}});export{a as A}; diff --git a/internal/server/app/dist/assets/ClientView-DMo3F6A5.js b/internal/server/app/dist/assets/ClientView-DMo3F6A5.js new file mode 100644 index 0000000..5b27063 --- /dev/null +++ b/internal/server/app/dist/assets/ClientView-DMo3F6A5.js @@ -0,0 +1 @@ +import{k as x,S as u,V as a,U as i,a5 as ae,W as re,r as h,o as se,_ as t,Y as l,N as e,a6 as ie,a4 as T,Z as ue,j as d,$ as c,F as j,X as C,R as H}from"./vue-vendor-k28cQfDw.js";import{u as de,m as ce,N as $,n as pe,o as ke,j as w,B as k,p as m,k as I,f as E,q as ve,b as N,c as L,r as we,t as fe,v as he,w as me,x as ge,y as ye,z as xe,A as F,C as _e}from"./index-BJ4y0MF5.js";import{A as Ce}from"./ArrowBackOutline-QaNKMlLc.js";const be={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Me=x({name:"AddOutline",render:function(g,s){return i(),u("svg",be,s[0]||(s[0]=[a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 112v288"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 256H112"},null,-1)]))}}),je={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ne=x({name:"CloseOutline",render:function(g,s){return i(),u("svg",je,s[0]||(s[0]=[a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 368L144 144"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 144L144 368"},null,-1)]))}}),Oe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Pe=x({name:"CreateOutline",render:function(g,s){return i(),u("svg",Oe,s[0]||(s[0]=[a("path",{d:"M384 224v184a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V168a40 40 0 0 1 40-40h167.48",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{d:"M459.94 53.25a16.06 16.06 0 0 0-23.22-.56L424.35 65a8 8 0 0 0 0 11.31l11.34 11.32a8 8 0 0 0 11.34 0l12.06-12c6.1-6.09 6.67-16.01.85-22.38z",fill:"currentColor"},null,-1),a("path",{d:"M399.34 90L218.82 270.2a9 9 0 0 0-2.31 3.93L208.16 299a3.91 3.91 0 0 0 4.86 4.86l24.85-8.35a9 9 0 0 0 3.93-2.31L422 112.66a9 9 0 0 0 0-12.66l-9.95-10a9 9 0 0 0-12.71 0z",fill:"currentColor"},null,-1)]))}}),Te={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},ze=x({name:"DownloadOutline",render:function(g,s){return i(),u("svg",Te,s[0]||(s[0]=[a("path",{d:"M336 176h40a40 40 0 0 1 40 40v208a40 40 0 0 1-40 40H136a40 40 0 0 1-40-40V216a40 40 0 0 1 40-40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 272l80 80l80-80"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 48v288"},null,-1)]))}}),Ue={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Be=x({name:"PowerOutline",render:function(g,s){return i(),u("svg",Ue,s[0]||(s[0]=[a("path",{d:"M378 108a191.41 191.41 0 0 1 70 148c0 106-86 192-192 192S64 362 64 256a192 192 0 0 1 69-148",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 64v192"},null,-1)]))}}),Ve={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},$e=x({name:"PushOutline",render:function(g,s){return i(),u("svg",Ve,s[0]||(s[0]=[a("path",{d:"M336 336h40a40 40 0 0 0 40-40V88a40 40 0 0 0-40-40H136a40 40 0 0 0-40 40v208a40 40 0 0 0 40 40h40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 240l80-80l80 80"},null,-1),a("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 464V176"},null,-1)]))}}),Se={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Ae=x({name:"SaveOutline",render:function(g,s){return i(),u("svg",Se,s[0]||(s[0]=[a("path",{d:"M380.93 57.37A32 32 0 0 0 358.3 48H94.22A46.21 46.21 0 0 0 48 94.22v323.56A46.21 46.21 0 0 0 94.22 464h323.56A46.36 46.36 0 0 0 464 417.78V153.7a32 32 0 0 0-9.37-22.63zM256 416a64 64 0 1 1 64-64a63.92 63.92 0 0 1-64 64zm48-224H112a16 16 0 0 1-16-16v-64a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16v64a16 16 0 0 1-16 16z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1)]))}}),He={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},q=x({name:"TrashOutline",render:function(g,s){return i(),u("svg",He,s[0]||(s[0]=[ae('',6)]))}}),Ie={class:"client-view"},Le={style:{margin:"0"}},De={key:0,style:{color:"#999","font-size":"12px"}},Re={key:1,style:{color:"#666","font-size":"14px"}},Ee={style:{"font-weight":"500"}},Fe={style:{color:"#666","font-size":"12px"}},Xe=x({__name:"ClientView",setup(_){const g=re(),s=ue(),v=de(),D=ce(),y=g.params.id,O=h(!1),S=h(""),z=h(""),U=h([]),b=h(!1),B=h(""),M=h([]),K=[{label:"TCP",value:"tcp"},{label:"UDP",value:"udp"},{label:"HTTP",value:"http"},{label:"HTTPS",value:"https"},{label:"SOCKS5",value:"socks5"}],P=h(!1),A=h([]),f=h([]),W=async()=>{try{const{data:r}=await ye();A.value=(r||[]).filter(n=>n.enabled)}catch(r){console.error("Failed to load plugins",r)}},X=async()=>{await W(),f.value=[],P.value=!0},Y=r=>({proxy:"协议",app:"应用",service:"服务",tool:"工具"})[r]||r,R=async()=>{try{const{data:r}=await ke(y);O.value=r.online,S.value=r.last_ping||"",z.value=r.nickname||"",U.value=r.rules||[]}catch(r){console.error("Failed to load client",r)}};se(R);const Z=()=>{B.value=z.value,M.value=U.value.map(r=>({...r,type:r.type||"tcp"})),b.value=!0},G=()=>{b.value=!1},J=()=>{M.value.push({name:"",local_ip:"127.0.0.1",local_port:80,remote_port:8080,type:"tcp"})},Q=r=>{M.value.splice(r,1)},ee=async()=>{try{await we(y,{id:y,nickname:B.value,rules:M.value}),b.value=!1,v.success("保存成功"),R()}catch{v.error("保存失败")}},te=()=>{D.warning({title:"确认删除",content:"确定要删除此客户端吗?",positiveText:"删除",negativeText:"取消",onPositiveClick:async()=>{try{await fe(y),v.success("删除成功"),s.push("/")}catch{v.error("删除失败")}}})},le=async()=>{try{await he(y),v.success("配置已推送")}catch(r){v.error(r.response?.data||"推送失败")}},ne=()=>{D.warning({title:"确认断开",content:"确定要断开此客户端连接吗?",positiveText:"断开",negativeText:"取消",onPositiveClick:async()=>{try{await me(y),O.value=!1,v.success("已断开连接")}catch(r){v.error(r.response?.data||"断开失败")}}})},oe=async()=>{if(f.value.length===0){v.warning("请选择要安装的插件");return}try{await ge(y,f.value),v.success(`已推送 ${f.value.length} 个插件到客户端`),P.value=!1}catch(r){v.error(r.response?.data||"安装失败")}};return(r,n)=>(i(),u("div",Ie,[t(e($),{style:{"margin-bottom":"16px"}},{default:l(()=>[t(e(w),{justify:"space-between",align:"center",wrap:""},{default:l(()=>[t(e(w),{align:"center"},{default:l(()=>[t(e(k),{quaternary:"",onClick:n[0]||(n[0]=o=>e(s).push("/"))},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Ce))]),_:1})]),default:l(()=>[n[4]||(n[4]=d(" 返回 ",-1))]),_:1}),a("h2",Le,c(z.value||e(y)),1),z.value?(i(),u("span",De,c(e(y)),1)):T("",!0),t(e(I),{type:O.value?"success":"default"},{default:l(()=>[d(c(O.value?"在线":"离线"),1)]),_:1},8,["type"]),S.value?(i(),u("span",Re," 最后心跳: "+c(S.value),1)):T("",!0)]),_:1}),t(e(w),null,{default:l(()=>[O.value?(i(),u(j,{key:0},[t(e(k),{type:"info",onClick:le},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e($e))]),_:1})]),default:l(()=>[n[5]||(n[5]=d(" 推送配置 ",-1))]),_:1}),t(e(k),{type:"success",onClick:X},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(ze))]),_:1})]),default:l(()=>[n[6]||(n[6]=d(" 安装插件 ",-1))]),_:1}),t(e(k),{type:"warning",onClick:ne},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Be))]),_:1})]),default:l(()=>[n[7]||(n[7]=d(" 断开连接 ",-1))]),_:1})],64)):T("",!0),b.value?T("",!0):(i(),u(j,{key:1},[t(e(k),{type:"primary",onClick:Z},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Pe))]),_:1})]),default:l(()=>[n[8]||(n[8]=d(" 编辑规则 ",-1))]),_:1}),t(e(k),{type:"error",onClick:te},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(q))]),_:1})]),default:l(()=>[n[9]||(n[9]=d(" 删除 ",-1))]),_:1})],64))]),_:1})]),_:1})]),_:1}),t(e($),{title:"代理规则"},ie({default:l(()=>[b.value?(i(),C(e(w),{key:1,vertical:"",size:12},{default:l(()=>[t(e(N),{label:"昵称","show-feedback":!1},{default:l(()=>[t(e(L),{value:B.value,"onUpdate:value":n[1]||(n[1]=o=>B.value=o),placeholder:"给客户端起个名字(可选)",style:{"max-width":"300px"}},null,8,["value"])]),_:1}),(i(!0),u(j,null,H(M.value,(o,V)=>(i(),C(e($),{key:V,size:"small"},{default:l(()=>[t(e(w),{align:"center"},{default:l(()=>[t(e(N),{label:"名称","show-feedback":!1},{default:l(()=>[t(e(L),{value:o.name,"onUpdate:value":p=>o.name=p,placeholder:"规则名称"},null,8,["value","onUpdate:value"])]),_:2},1024),t(e(N),{label:"类型","show-feedback":!1},{default:l(()=>[t(e(xe),{value:o.type,"onUpdate:value":p=>o.type=p,options:K,style:{width:"100px"}},null,8,["value","onUpdate:value"])]),_:2},1024),t(e(N),{label:"本地IP","show-feedback":!1},{default:l(()=>[t(e(L),{value:o.local_ip,"onUpdate:value":p=>o.local_ip=p,placeholder:"127.0.0.1"},null,8,["value","onUpdate:value"])]),_:2},1024),t(e(N),{label:"本地端口","show-feedback":!1},{default:l(()=>[t(e(F),{value:o.local_port,"onUpdate:value":p=>o.local_port=p,"show-button":!1},null,8,["value","onUpdate:value"])]),_:2},1024),t(e(N),{label:"远程端口","show-feedback":!1},{default:l(()=>[t(e(F),{value:o.remote_port,"onUpdate:value":p=>o.remote_port=p,"show-button":!1},null,8,["value","onUpdate:value"])]),_:2},1024),M.value.length>1?(i(),C(e(k),{key:0,quaternary:"",type:"error",onClick:p=>Q(V)},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(q))]),_:1})]),_:1},8,["onClick"])):T("",!0)]),_:2},1024)]),_:2},1024))),128)),t(e(k),{dashed:"",block:"",onClick:J},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Me))]),_:1})]),default:l(()=>[n[13]||(n[13]=d(" 添加规则 ",-1))]),_:1})]),_:1})):(i(),u(j,{key:0},[U.value.length===0?(i(),C(e(E),{key:0,description:"暂无代理规则"})):(i(),C(e(ve),{key:1,bordered:!1,"single-line":!1},{default:l(()=>[n[12]||(n[12]=a("thead",null,[a("tr",null,[a("th",null,"名称"),a("th",null,"本地地址"),a("th",null,"远程端口"),a("th",null,"类型")])],-1)),a("tbody",null,[(i(!0),u(j,null,H(U.value,o=>(i(),u("tr",{key:o.name},[a("td",null,c(o.name||"未命名"),1),a("td",null,c(o.local_ip)+":"+c(o.local_port),1),a("td",null,c(o.remote_port),1),a("td",null,[t(e(I),{size:"small"},{default:l(()=>[d(c(o.type||"tcp"),1)]),_:2},1024)])]))),128))])]),_:1}))],64))]),_:2},[b.value?{name:"header-extra",fn:l(()=>[t(e(w),null,{default:l(()=>[t(e(k),{onClick:G},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Ne))]),_:1})]),default:l(()=>[n[10]||(n[10]=d(" 取消 ",-1))]),_:1}),t(e(k),{type:"primary",onClick:ee},{icon:l(()=>[t(e(m),null,{default:l(()=>[t(e(Ae))]),_:1})]),default:l(()=>[n[11]||(n[11]=d(" 保存 ",-1))]),_:1})]),_:1})]),key:"0"}:void 0]),1024),t(e(pe),{show:P.value,"onUpdate:show":n[3]||(n[3]=o=>P.value=o),preset:"card",title:"安装插件到客户端",style:{width:"500px"}},{footer:l(()=>[t(e(w),{justify:"end"},{default:l(()=>[t(e(k),{onClick:n[2]||(n[2]=o=>P.value=!1)},{default:l(()=>[...n[14]||(n[14]=[d("取消",-1)])]),_:1}),t(e(k),{type:"primary",onClick:oe,disabled:f.value.length===0},{default:l(()=>[d(" 安装 ("+c(f.value.length)+") ",1)]),_:1},8,["disabled"])]),_:1})]),default:l(()=>[A.value.length===0?(i(),C(e(E),{key:0,description:"暂无可用插件"})):(i(),C(e(w),{key:1,vertical:"",size:12},{default:l(()=>[(i(!0),u(j,null,H(A.value,o=>(i(),C(e($),{key:o.name,size:"small"},{default:l(()=>[t(e(w),{justify:"space-between",align:"center"},{default:l(()=>[t(e(w),{vertical:"",size:4},{default:l(()=>[t(e(w),{align:"center"},{default:l(()=>[a("span",Ee,c(o.name),1),t(e(I),{size:"small"},{default:l(()=>[d(c(Y(o.type)),1)]),_:2},1024)]),_:2},1024),a("span",Fe,c(o.description),1)]),_:2},1024),t(e(_e),{checked:f.value.includes(o.name),"onUpdate:checked":V=>{V?f.value.push(o.name):f.value=f.value.filter(p=>p!==o.name)}},null,8,["checked","onUpdate:checked"])]),_:2},1024)]),_:2},1024))),128))]),_:1}))]),_:1},8,["show"])]))}});export{Xe as default}; diff --git a/internal/server/app/dist/assets/ClientView-Dim5xo2q.js b/internal/server/app/dist/assets/ClientView-Dim5xo2q.js deleted file mode 100644 index 75017cd..0000000 --- a/internal/server/app/dist/assets/ClientView-Dim5xo2q.js +++ /dev/null @@ -1 +0,0 @@ -import{d as D,j as F,r,o as I,c as n,a as e,b as p,k as C,u as S,t as s,n as J,F as V,e as g,l as M,m as O,p as P,f as _,v,i as o,_ as $}from"./index-BvqIwKwu.js";const j={class:"client-view"},z={class:"header"},L={key:0,class:"ping-info"},T={class:"rules-section"},q={class:"section-header"},A={key:0},G={key:0,class:"rules-table"},H={key:1,class:"edit-form"},K=["onUpdate:modelValue"],Q=["onUpdate:modelValue"],W=["onUpdate:modelValue"],X=["onUpdate:modelValue"],Y=["onClick"],Z=D({__name:"ClientView",setup(ee){const w=F(),f=S(),u=w.params.id,m=r(!1),h=r(""),b=r([]),i=r(!1),d=r([]),y=async()=>{try{const{data:l}=await M(u);m.value=l.online,h.value=l.last_ping||"",b.value=l.rules||[]}catch(l){console.error("Failed to load client",l)}};I(y);const U=()=>{d.value=JSON.parse(JSON.stringify(b.value)),i.value=!0},R=()=>{i.value=!1},x=()=>{d.value.push({name:"",local_ip:"127.0.0.1",local_port:80,remote_port:8080})},E=l=>{d.value.splice(l,1)},N=async()=>{try{await O(u,{id:u,rules:d.value}),i.value=!1,y()}catch{alert("保存失败")}},B=async()=>{if(confirm("确定删除此客户端?"))try{await P(u),f.push("/")}catch{alert("删除失败")}};return(l,c)=>(o(),n("div",j,[e("div",z,[e("button",{class:"btn",onClick:c[0]||(c[0]=t=>C(f).push("/"))},"← 返回"),e("h2",null,s(C(u)),1),e("span",{class:J(["status-badge",m.value?"online":"offline"])},s(m.value?"在线":"离线"),3)]),h.value?(o(),n("div",L,"最后心跳: "+s(h.value),1)):p("",!0),e("div",T,[e("div",q,[c[1]||(c[1]=e("h3",null,"代理规则",-1)),i.value?p("",!0):(o(),n("div",A,[e("button",{class:"btn primary",onClick:U},"编辑"),e("button",{class:"btn danger",onClick:B},"删除")]))]),i.value?p("",!0):(o(),n("table",G,[c[2]||(c[2]=e("thead",null,[e("tr",null,[e("th",null,"名称"),e("th",null,"本地地址"),e("th",null,"远程端口")])],-1)),e("tbody",null,[(o(!0),n(V,null,g(b.value,t=>(o(),n("tr",{key:t.name},[e("td",null,s(t.name),1),e("td",null,s(t.local_ip)+":"+s(t.local_port),1),e("td",null,s(t.remote_port),1)]))),128))])])),i.value?(o(),n("div",H,[(o(!0),n(V,null,g(d.value,(t,k)=>(o(),n("div",{key:k,class:"rule-row"},[_(e("input",{"onUpdate:modelValue":a=>t.name=a,placeholder:"名称"},null,8,K),[[v,t.name]]),_(e("input",{"onUpdate:modelValue":a=>t.local_ip=a,placeholder:"本地IP"},null,8,Q),[[v,t.local_ip]]),_(e("input",{"onUpdate:modelValue":a=>t.local_port=a,type:"number",placeholder:"本地端口"},null,8,W),[[v,t.local_port,void 0,{number:!0}]]),_(e("input",{"onUpdate:modelValue":a=>t.remote_port=a,type:"number",placeholder:"远程端口"},null,8,X),[[v,t.remote_port,void 0,{number:!0}]]),e("button",{class:"btn-icon",onClick:a=>E(k)},"×",8,Y)]))),128)),e("button",{class:"btn secondary",onClick:x},"+ 添加规则"),e("div",{class:"edit-actions"},[e("button",{class:"btn",onClick:R},"取消"),e("button",{class:"btn primary",onClick:N},"保存")])])):p("",!0)])]))}}),le=$(Z,[["__scopeId","data-v-01b16887"]]);export{le as default}; diff --git a/internal/server/app/dist/assets/ClientView-kscuBolA.css b/internal/server/app/dist/assets/ClientView-kscuBolA.css deleted file mode 100644 index 04fbb9f..0000000 --- a/internal/server/app/dist/assets/ClientView-kscuBolA.css +++ /dev/null @@ -1 +0,0 @@ -.header[data-v-01b16887]{display:flex;align-items:center;gap:16px;margin-bottom:20px}.header h2[data-v-01b16887]{margin:0}.status-badge[data-v-01b16887]{padding:4px 12px;border-radius:12px;font-size:12px}.status-badge.online[data-v-01b16887]{background:#d4edda;color:#155724}.status-badge.offline[data-v-01b16887]{background:#f8d7da;color:#721c24}.ping-info[data-v-01b16887]{color:#666;margin-bottom:20px}.rules-section[data-v-01b16887]{background:#fff;border-radius:8px;padding:20px;box-shadow:0 2px 4px #0000001a}.section-header[data-v-01b16887]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-header h3[data-v-01b16887]{margin:0}.section-header .btn[data-v-01b16887]{margin-left:8px}.btn[data-v-01b16887]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px}.btn.primary[data-v-01b16887]{background:#3498db;color:#fff}.btn.secondary[data-v-01b16887]{background:#95a5a6;color:#fff}.btn.danger[data-v-01b16887]{background:#e74c3c;color:#fff}.rules-table[data-v-01b16887]{width:100%;border-collapse:collapse}.rules-table th[data-v-01b16887],.rules-table td[data-v-01b16887]{padding:12px;text-align:left;border-bottom:1px solid #eee}.rules-table th[data-v-01b16887]{font-weight:600}.rule-row[data-v-01b16887]{display:flex;gap:8px;margin-bottom:8px}.rule-row input[data-v-01b16887]{flex:1;padding:8px;border:1px solid #ddd;border-radius:4px}.btn-icon[data-v-01b16887]{background:#e74c3c;color:#fff;border:none;border-radius:4px;width:32px;cursor:pointer}.edit-actions[data-v-01b16887]{display:flex;justify-content:flex-end;gap:8px;margin-top:16px} diff --git a/internal/server/app/dist/assets/HomeView-CC6tujY_.js b/internal/server/app/dist/assets/HomeView-CC6tujY_.js new file mode 100644 index 0000000..e54a3c6 --- /dev/null +++ b/internal/server/app/dist/assets/HomeView-CC6tujY_.js @@ -0,0 +1 @@ +import{k as B,r as V,c as y,o as z,S as p,V as r,_ as l,X as f,Y as a,N as e,F as S,R as $,Z as j,U as u,a4 as F,$ as i,j as m,a3 as R}from"./vue-vendor-k28cQfDw.js";import{e as g,f as E,g as G,h as d,N as c,i as _,j as k,k as N,B as M}from"./index-BJ4y0MF5.js";const T={class:"home"},D={style:{margin:"0 0 4px 0"}},H={key:0,style:{margin:"0 0 8px 0",color:"#999","font-size":"12px"}},Y=B({__name:"HomeView",setup(L){const h=j(),n=V([]),x=async()=>{try{const{data:t}=await G();n.value=t||[]}catch(t){console.error("Failed to load clients",t)}},C=y(()=>n.value.filter(t=>t.online).length),b=y(()=>n.value.reduce((t,o)=>t+o.rule_count,0));z(x);const v=t=>{h.push(`/client/${t}`)};return(t,o)=>(u(),p("div",T,[o[1]||(o[1]=r("div",{style:{"margin-bottom":"24px"}},[r("h2",{style:{margin:"0 0 8px 0"}},"客户端管理"),r("p",{style:{margin:"0",color:"#666"}},"查看已连接的隧道客户端")],-1)),l(e(g),{cols:3,"x-gap":16,"y-gap":16,style:{"margin-bottom":"24px"}},{default:a(()=>[l(e(d),null,{default:a(()=>[l(e(c),null,{default:a(()=>[l(e(_),{label:"总客户端",value:n.value.length},null,8,["value"])]),_:1})]),_:1}),l(e(d),null,{default:a(()=>[l(e(c),null,{default:a(()=>[l(e(_),{label:"在线客户端",value:C.value},null,8,["value"])]),_:1})]),_:1}),l(e(d),null,{default:a(()=>[l(e(c),null,{default:a(()=>[l(e(_),{label:"总规则数",value:b.value},null,8,["value"])]),_:1})]),_:1})]),_:1}),n.value.length===0?(u(),f(e(E),{key:0,description:"暂无客户端连接"})):(u(),f(e(g),{key:1,cols:3,"x-gap":16,"y-gap":16,responsive:"screen","cols-s":"1","cols-m":"2"},{default:a(()=>[(u(!0),p(S,null,$(n.value,s=>(u(),f(e(d),{key:s.id},{default:a(()=>[l(e(c),{hoverable:"",style:{cursor:"pointer"},onClick:w=>v(s.id)},{default:a(()=>[l(e(k),{justify:"space-between",align:"center"},{default:a(()=>[r("div",null,[r("h3",D,i(s.nickname||s.id),1),s.nickname?(u(),p("p",H,i(s.id),1)):F("",!0),l(e(k),null,{default:a(()=>[l(e(N),{type:s.online?"success":"default",size:"small"},{default:a(()=>[m(i(s.online?"在线":"离线"),1)]),_:2},1032,["type"]),l(e(N),{type:"info",size:"small"},{default:a(()=>[m(i(s.rule_count)+" 条规则",1)]),_:2},1024)]),_:2},1024)]),l(e(M),{size:"small",onClick:R(w=>v(s.id),["stop"])},{default:a(()=>[...o[0]||(o[0]=[m("查看详情",-1)])]),_:1},8,["onClick"])]),_:2},1024)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1}))]))}});export{Y as default}; diff --git a/internal/server/app/dist/assets/HomeView-DGCTeR78.js b/internal/server/app/dist/assets/HomeView-DGCTeR78.js deleted file mode 100644 index 7bb6dda..0000000 --- a/internal/server/app/dist/assets/HomeView-DGCTeR78.js +++ /dev/null @@ -1 +0,0 @@ -import{d as M,r as p,o as $,c as n,a as e,b as f,F as h,e as b,w as x,f as u,v as c,g as I,h as R,u as B,i as a,t as C,n as D,_ as F}from"./index-BvqIwKwu.js";const H={class:"home"},N={class:"client-grid"},z=["onClick"],A={class:"card-header"},E={class:"client-id"},L={class:"card-info"},P={key:0,class:"empty"},S={class:"modal"},T={class:"form-group"},j={class:"form-group"},q=["onUpdate:modelValue"],G=["onUpdate:modelValue"],J=["onUpdate:modelValue"],K=["onUpdate:modelValue"],O=["onClick"],Q={class:"modal-actions"},W=M({__name:"HomeView",setup(X){const y=B(),v=p([]),d=p(!1),i=p(""),r=p([]),m=async()=>{try{const{data:t}=await I();v.value=t||[]}catch(t){console.error("Failed to load clients",t)}};$(m);const k=()=>{i.value="",r.value=[{name:"",local_ip:"127.0.0.1",local_port:80,remote_port:8080}],d.value=!0},V=()=>{r.value.push({name:"",local_ip:"127.0.0.1",local_port:80,remote_port:8080})},w=t=>{r.value.splice(t,1)},U=async()=>{if(i.value)try{await R({id:i.value,rules:r.value}),d.value=!1,m()}catch{alert("添加失败")}},g=t=>{y.push(`/client/${t}`)};return(t,l)=>(a(),n("div",H,[e("div",{class:"toolbar"},[l[3]||(l[3]=e("h2",null,"客户端列表",-1)),e("button",{class:"btn primary",onClick:k},"添加客户端")]),e("div",N,[(a(!0),n(h,null,b(v.value,o=>(a(),n("div",{key:o.id,class:"client-card",onClick:_=>g(o.id)},[e("div",A,[e("span",E,C(o.id),1),e("span",{class:D(["status",o.online?"online":"offline"])},null,2)]),e("div",L,[e("span",null,C(o.rule_count)+" 条规则",1)])],8,z))),128))]),v.value.length===0?(a(),n("div",P,"暂无客户端配置")):f("",!0),d.value?(a(),n("div",{key:1,class:"modal-overlay",onClick:l[2]||(l[2]=x(o=>d.value=!1,["self"]))},[e("div",S,[l[6]||(l[6]=e("h3",null,"添加客户端",-1)),e("div",T,[l[4]||(l[4]=e("label",null,"客户端 ID",-1)),u(e("input",{"onUpdate:modelValue":l[0]||(l[0]=o=>i.value=o),placeholder:"例如: client-a"},null,512),[[c,i.value]])]),e("div",j,[l[5]||(l[5]=e("label",null,"代理规则",-1)),(a(!0),n(h,null,b(r.value,(o,_)=>(a(),n("div",{key:_,class:"rule-row"},[u(e("input",{"onUpdate:modelValue":s=>o.name=s,placeholder:"名称"},null,8,q),[[c,o.name]]),u(e("input",{"onUpdate:modelValue":s=>o.local_ip=s,placeholder:"本地IP"},null,8,G),[[c,o.local_ip]]),u(e("input",{"onUpdate:modelValue":s=>o.local_port=s,type:"number",placeholder:"本地端口"},null,8,J),[[c,o.local_port,void 0,{number:!0}]]),u(e("input",{"onUpdate:modelValue":s=>o.remote_port=s,type:"number",placeholder:"远程端口"},null,8,K),[[c,o.remote_port,void 0,{number:!0}]]),e("button",{class:"btn-icon",onClick:s=>w(_)},"×",8,O)]))),128)),e("button",{class:"btn secondary",onClick:V},"+ 添加规则")]),e("div",Q,[e("button",{class:"btn",onClick:l[1]||(l[1]=o=>d.value=!1)},"取消"),e("button",{class:"btn primary",onClick:U},"保存")])])])):f("",!0)]))}}),Z=F(W,[["__scopeId","data-v-fd6e4f1d"]]);export{Z as default}; diff --git a/internal/server/app/dist/assets/HomeView-fC0dyEJ8.css b/internal/server/app/dist/assets/HomeView-fC0dyEJ8.css deleted file mode 100644 index 9258f01..0000000 --- a/internal/server/app/dist/assets/HomeView-fC0dyEJ8.css +++ /dev/null @@ -1 +0,0 @@ -.toolbar[data-v-fd6e4f1d]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.toolbar h2[data-v-fd6e4f1d]{font-size:18px;color:#2c3e50}.btn[data-v-fd6e4f1d]{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:14px}.btn.primary[data-v-fd6e4f1d]{background:#3498db;color:#fff}.btn.secondary[data-v-fd6e4f1d]{background:#95a5a6;color:#fff}.client-grid[data-v-fd6e4f1d]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}.client-card[data-v-fd6e4f1d]{background:#fff;border-radius:8px;padding:16px;cursor:pointer;box-shadow:0 2px 4px #0000001a;transition:transform .2s}.client-card[data-v-fd6e4f1d]:hover{transform:translateY(-2px)}.card-header[data-v-fd6e4f1d]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.client-id[data-v-fd6e4f1d]{font-weight:600}.status[data-v-fd6e4f1d]{width:10px;height:10px;border-radius:50%}.status.online[data-v-fd6e4f1d]{background:#27ae60}.status.offline[data-v-fd6e4f1d]{background:#95a5a6}.card-info[data-v-fd6e4f1d]{font-size:14px;color:#666}.empty[data-v-fd6e4f1d]{text-align:center;color:#999;padding:40px}.modal-overlay[data-v-fd6e4f1d]{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center}.modal[data-v-fd6e4f1d]{background:#fff;border-radius:8px;padding:24px;width:500px;max-width:90%}.modal h3[data-v-fd6e4f1d],.form-group[data-v-fd6e4f1d]{margin-bottom:16px}.form-group label[data-v-fd6e4f1d]{display:block;margin-bottom:8px;font-weight:500}.form-group input[data-v-fd6e4f1d]{width:100%;padding:8px;border:1px solid #ddd;border-radius:4px;box-sizing:border-box}.rule-row[data-v-fd6e4f1d]{display:flex;gap:8px;margin-bottom:8px}.rule-row input[data-v-fd6e4f1d]{flex:1;width:auto}.btn-icon[data-v-fd6e4f1d]{background:#e74c3c;color:#fff;border:none;border-radius:4px;width:32px;cursor:pointer}.modal-actions[data-v-fd6e4f1d]{display:flex;justify-content:flex-end;gap:8px;margin-top:16px} diff --git a/internal/server/app/dist/assets/LoginView-DM1JApcE.js b/internal/server/app/dist/assets/LoginView-DM1JApcE.js new file mode 100644 index 0000000..5103f94 --- /dev/null +++ b/internal/server/app/dist/assets/LoginView-DM1JApcE.js @@ -0,0 +1 @@ +import{k as N,r as d,S as k,_ as s,Y as a,N as t,Z as w,U as f,a3 as V,X as h,a4 as x,j as m,$ as g,V as i}from"./vue-vendor-k28cQfDw.js";import{N as B,a as C,b,c as _,d as T,B as I,l as L,s as S}from"./index-BJ4y0MF5.js";const U={class:"login-page"},F=N({__name:"LoginView",setup(v){const p=w(),l=d(""),r=d(""),o=d(""),n=d(!1),y=async()=>{if(!l.value||!r.value){o.value="请输入用户名和密码";return}n.value=!0,o.value="";try{const{data:u}=await L(l.value,r.value);S(u.token),p.push("/")}catch(u){o.value=u.response?.data?.error||"登录失败"}finally{n.value=!1}};return(u,e)=>(f(),k("div",U,[s(t(B),{class:"login-card",bordered:!1},{header:a(()=>[...e[2]||(e[2]=[i("div",{class:"login-header"},[i("h1",{class:"logo"},"GoTunnel"),i("p",{class:"subtitle"},"安全的内网穿透工具")],-1)])]),footer:a(()=>[...e[3]||(e[3]=[i("div",{class:"login-footer"},"欢迎使用 GoTunnel",-1)])]),default:a(()=>[s(t(C),{onSubmit:V(y,["prevent"])},{default:a(()=>[s(t(b),{label:"用户名"},{default:a(()=>[s(t(_),{value:l.value,"onUpdate:value":e[0]||(e[0]=c=>l.value=c),placeholder:"请输入用户名",disabled:n.value},null,8,["value","disabled"])]),_:1}),s(t(b),{label:"密码"},{default:a(()=>[s(t(_),{value:r.value,"onUpdate:value":e[1]||(e[1]=c=>r.value=c),type:"password",placeholder:"请输入密码",disabled:n.value,"show-password-on":"click"},null,8,["value","disabled"])]),_:1}),o.value?(f(),h(t(T),{key:0,type:"error","show-icon":!0,style:{"margin-bottom":"16px"}},{default:a(()=>[m(g(o.value),1)]),_:1})):x("",!0),s(t(I),{type:"primary",block:"",loading:n.value,"attr-type":"submit"},{default:a(()=>[m(g(n.value?"登录中...":"登录"),1)]),_:1},8,["loading"])]),_:1})]),_:1})]))}}),G=(v,p)=>{const l=v.__vccOpts||v;for(const[r,o]of p)l[r]=o;return l},D=G(F,[["__scopeId","data-v-0e29b44b"]]);export{D as default}; diff --git a/internal/server/app/dist/assets/LoginView-kzRncluE.css b/internal/server/app/dist/assets/LoginView-kzRncluE.css new file mode 100644 index 0000000..df963b9 --- /dev/null +++ b/internal/server/app/dist/assets/LoginView-kzRncluE.css @@ -0,0 +1 @@ +.login-page[data-v-0e29b44b]{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8f5e9,#c8e6c9);padding:16px}.login-card[data-v-0e29b44b]{width:100%;max-width:400px;box-shadow:0 8px 24px #0000001a}.login-header[data-v-0e29b44b]{text-align:center}.logo[data-v-0e29b44b]{font-size:28px;font-weight:700;color:#18a058;margin:0 0 8px}.subtitle[data-v-0e29b44b]{color:#666;margin:0;font-size:14px}.login-footer[data-v-0e29b44b]{text-align:center;color:#999;font-size:14px} diff --git a/internal/server/app/dist/assets/PluginsView-CPE2IHXI.js b/internal/server/app/dist/assets/PluginsView-CPE2IHXI.js new file mode 100644 index 0000000..997b7f5 --- /dev/null +++ b/internal/server/app/dist/assets/PluginsView-CPE2IHXI.js @@ -0,0 +1 @@ +import{k as $,r as b,c as x,o as E,S as N,_ as a,Y as l,N as e,V as u,Z as F,j as c,X as m,F as T,R as j,U as r,$ as i}from"./vue-vendor-k28cQfDw.js";import{u as A,j as d,D as G,y as M,B as U,p as h,e as w,h as p,N as f,i as _,f as D,k as g,E as L,F as O,G as R,H as q}from"./index-BJ4y0MF5.js";import{A as H}from"./ArrowBackOutline-QaNKMlLc.js";const I={class:"plugins-view"},W={style:{margin:"0",color:"#666"}},Q=$({__name:"PluginsView",setup(X){const k=F(),v=A(),o=b([]),y=b(!0),P=async()=>{try{const{data:t}=await M();o.value=t||[]}catch(t){console.error("Failed to load plugins",t)}finally{y.value=!1}},z=x(()=>o.value.filter(t=>t.type==="proxy")),B=x(()=>o.value.filter(t=>t.type==="app")),S=async t=>{try{t.enabled?(await R(t.name),v.success(`已禁用 ${t.name}`)):(await q(t.name),v.success(`已启用 ${t.name}`)),t.enabled=!t.enabled}catch{v.error("操作失败")}},C=t=>({proxy:"协议",app:"应用",service:"服务",tool:"工具"})[t]||t,V=t=>({proxy:"info",app:"success",service:"warning",tool:"default"})[t]||"default";return E(P),(t,n)=>(r(),N("div",I,[a(e(d),{justify:"space-between",align:"center",style:{"margin-bottom":"24px"}},{default:l(()=>[n[2]||(n[2]=u("div",null,[u("h2",{style:{margin:"0 0 8px 0"}},"插件管理"),u("p",{style:{margin:"0",color:"#666"}},"查看和管理已注册的插件")],-1)),a(e(U),{quaternary:"",onClick:n[0]||(n[0]=s=>e(k).push("/"))},{icon:l(()=>[a(e(h),null,{default:l(()=>[a(e(H))]),_:1})]),default:l(()=>[n[1]||(n[1]=c(" 返回首页 ",-1))]),_:1})]),_:1}),a(e(G),{show:y.value},{default:l(()=>[a(e(w),{cols:3,"x-gap":16,"y-gap":16,style:{"margin-bottom":"24px"}},{default:l(()=>[a(e(p),null,{default:l(()=>[a(e(f),null,{default:l(()=>[a(e(_),{label:"总插件数",value:o.value.length},null,8,["value"])]),_:1})]),_:1}),a(e(p),null,{default:l(()=>[a(e(f),null,{default:l(()=>[a(e(_),{label:"协议插件",value:z.value.length},null,8,["value"])]),_:1})]),_:1}),a(e(p),null,{default:l(()=>[a(e(f),null,{default:l(()=>[a(e(_),{label:"应用插件",value:B.value.length},null,8,["value"])]),_:1})]),_:1})]),_:1}),!y.value&&o.value.length===0?(r(),m(e(D),{key:0,description:"暂无插件"})):(r(),m(e(w),{key:1,cols:3,"x-gap":16,"y-gap":16,responsive:"screen","cols-s":"1","cols-m":"2"},{default:l(()=>[(r(!0),N(T,null,j(o.value,s=>(r(),m(e(p),{key:s.name},{default:l(()=>[a(e(f),{hoverable:""},{header:l(()=>[a(e(d),{align:"center"},{default:l(()=>[a(e(h),{size:"24",color:"#18a058"},{default:l(()=>[a(e(O))]),_:1}),u("span",null,i(s.name),1)]),_:2},1024)]),"header-extra":l(()=>[a(e(L),{value:s.enabled,"onUpdate:value":Y=>S(s)},null,8,["value","onUpdate:value"])]),default:l(()=>[a(e(d),{vertical:"",size:8},{default:l(()=>[a(e(d),null,{default:l(()=>[a(e(g),{size:"small"},{default:l(()=>[c("v"+i(s.version),1)]),_:2},1024),a(e(g),{size:"small",type:V(s.type)},{default:l(()=>[c(i(C(s.type)),1)]),_:2},1032,["type"]),a(e(g),{size:"small",type:s.source==="builtin"?"default":"warning"},{default:l(()=>[c(i(s.source==="builtin"?"内置":"WASM"),1)]),_:2},1032,["type"])]),_:2},1024),u("p",W,i(s.description),1)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}))]),_:1},8,["show"])]))}});export{Q as default}; diff --git a/internal/server/app/dist/assets/index-BJ4y0MF5.js b/internal/server/app/dist/assets/index-BJ4y0MF5.js new file mode 100644 index 0000000..f4c7163 --- /dev/null +++ b/internal/server/app/dist/assets/index-BJ4y0MF5.js @@ -0,0 +1,7343 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-DM1JApcE.js","assets/vue-vendor-k28cQfDw.js","assets/LoginView-kzRncluE.css","assets/HomeView-CC6tujY_.js","assets/ClientView-DMo3F6A5.js","assets/ArrowBackOutline-QaNKMlLc.js","assets/PluginsView-CPE2IHXI.js"])))=>i.map(i=>d[i]); +import{r as B,a as bo,w as ct,c as S,g as Xi,o as It,b as jt,d as Oo,e as Ka,i as Be,f as tm,h as nu,j as ni,F as qt,C as Ss,k as Y,p as ot,l as rn,m as s,T as qa,t as le,n as zt,q as nm,s as Pn,v as lr,u as eC,x as rm,y as Ft,z as _t,A as Rs,B as ri,D as tC,E as ks,G as om,H as nC,I as im,J as rC,K as Af,L as tc,M as am,N as On,O as td,P as nd,Q as oC,R as iC,S as ru,U as _i,V as Zr,W as aC,X as rd,Y as Rr,Z as lC,_ as hr,$ as od,a0 as Df,a1 as sC,a2 as dC}from"./vue-vendor-k28cQfDw.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function cC(e){let t=".",n="__",r="--",o;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(n=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){o=h.c;const g=h.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(h){let g,p;return{before(b){g=b.bem.b,p=b.bem.els,b.bem.els=null},after(b){b.bem.b=g,b.bem.els=p},$({context:b,props:y}){return h=typeof h=="string"?h:h({context:b,props:y}),b.bem.b=h,`${y?.bPrefix||t}${b.bem.b}`}}}function l(h){let g;return{before(p){g=p.bem.els},after(p){p.bem.els=g},$({context:p,props:b}){return h=typeof h=="string"?h:h({context:p,props:b}),p.bem.els=h.split(",").map(y=>y.trim()),p.bem.els.map(y=>`${b?.bPrefix||t}${p.bem.b}${n}${y}`).join(", ")}}}function d(h){return{$({context:g,props:p}){h=typeof h=="string"?h:h({context:g,props:p});const b=h.split(",").map(w=>w.trim());function y(w){return b.map(C=>`&${p?.bPrefix||t}${g.bem.b}${w!==void 0?`${n}${w}`:""}${r}${C}`).join(", ")}const R=g.bem.els;return R!==null?y(R[0]):y()}}}function c(h){return{$({context:g,props:p}){h=typeof h=="string"?h:h({context:g,props:p});const b=g.bem.els;return`&:not(${p?.bPrefix||t}${g.bem.b}${b!==null&&b.length>0?`${n}${b[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:((...h)=>o(a(h[0]),h[1],h[2])),cE:((...h)=>o(l(h[0]),h[1],h[2])),cM:((...h)=>o(d(h[0]),h[1],h[2])),cNotM:((...h)=>o(c(h[0]),h[1],h[2]))}),i}function uC(e){let t=0;for(let n=0;n{let o=uC(r);if(o){if(o===1){e.forEach(a=>{n.push(r.replace("&",a))});return}}else{e.forEach(a=>{n.push((a&&a+" ")+r)});return}let i=[r];for(;o--;){const a=[];i.forEach(l=>{e.forEach(d=>{a.push(l.replace("&",d))})}),i=a}i.forEach(a=>n.push(a))}),n}function vC(e,t){const n=[];return t.split(lm).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function gC(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=hC(t,n):t=vC(t,n))}),t.join(", ").replace(fC," ")}function _f(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Ps(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function mC(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function ml(e){return e?/^\s*@(s|m)/.test(e):!1}const pC=/[A-Z]/g;function sm(e){return e.replace(pC,t=>"-"+t.toLowerCase())}function bC(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(n=>t+` ${sm(n[0])}: ${n[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function xC(e,t,n){return typeof e=="function"?e({context:t.context,props:n}):e}function Ef(e,t,n,r){if(!t)return"";const o=xC(t,n,r);if(!o)return"";if(typeof o=="string")return`${e} { +${o} +}`;const i=Object.keys(o);if(i.length===0)return n.config.keepEmptyBlock?e+` { +}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const d=o[l];if(l==="raw"){a.push(` +`+d+` +`);return}l=sm(l),d!=null&&a.push(` ${l}${bC(d)}`)}),e&&a.push("}"),a.join(` +`)}function nc(e,t,n){e&&e.forEach(r=>{if(Array.isArray(r))nc(r,t,n);else if(typeof r=="function"){const o=r(t);Array.isArray(o)?nc(o,t,n):o&&n(o)}else r&&n(r)})}function dm(e,t,n,r,o){const i=e.$;let a="";if(!i||typeof i=="string")ml(i)?a=i:t.push(i);else if(typeof i=="function"){const c=i({context:r.context,props:o});ml(c)?a=c:t.push(c)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")ml(i.$)?a=i.$:t.push(i.$);else if(i.$){const c=i.$({context:r.context,props:o});ml(c)?a=c:t.push(c)}const l=gC(t),d=Ef(l,e.props,r,o);a?n.push(`${a} {`):d.length&&n.push(d),e.children&&nc(e.children,{context:r.context,props:o},c=>{if(typeof c=="string"){const u=Ef(l,{raw:c},r,o);n.push(u)}else dm(c,t,n,r,o)}),t.pop(),a&&n.push("}"),i&&i.after&&i.after(r.context)}function yC(e,t,n){const r=[];return dm(e,[],r,t,n),r.join(` + +`)}function xo(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function wC(e,t,n,r){const{els:o}=t;if(n===void 0)o.forEach(_f),t.els=[];else{const i=Ps(n,r);i&&o.includes(i)&&(_f(i),t.els=o.filter(a=>a!==i))}}function Nf(e,t){e.push(t)}function CC(e,t,n,r,o,i,a,l,d){let c;if(n===void 0&&(c=t.render(r),n=xo(c)),d){d.adapter(n,c??t.render(r));return}l===void 0&&(l=document.head);const u=Ps(n,l);if(u!==null&&!i)return u;const f=u??mC(n);if(c===void 0&&(c=t.render(r)),f.textContent=c,u!==null)return u;if(a){const v=l.querySelector(`meta[name="${a}"]`);if(v)return l.insertBefore(f,v),Nf(t.els,f),f}return o?l.insertBefore(f,l.querySelector("style, link")):l.appendChild(f),Nf(t.els,f),f}function SC(e){return yC(this,this.instance,e)}function RC(e={}){const{id:t,ssr:n,props:r,head:o=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return CC(this.instance,this,t,r,o,i,a,l,n)}function kC(e={}){const{id:t,parent:n}=e;wC(this.instance,this,t,n)}const pl=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:SC,mount:RC,unmount:kC}},PC=function(e,t,n,r){return Array.isArray(t)?pl(e,{$:null},null,t):Array.isArray(n)?pl(e,t,null,n):Array.isArray(r)?pl(e,t,n,r):pl(e,t,n,null)};function cm(e={}){const t={c:((...n)=>PC(t,...n)),use:(n,...r)=>n.install(t,...r),find:Ps,context:{},config:e};return t}function zC(e,t){if(e===void 0)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return Ps(e)!==null}const $C="n",Aa=`.${$C}-`,TC="__",OC="--",um=cm(),fm=cC({blockPrefix:Aa,elementPrefix:TC,modifierPrefix:OC});um.use(fm);const{c:z,find:x9}=um,{cB:x,cE:F,cM:M,cNotM:ft}=fm;function jr(e){return z(({props:{bPrefix:t}})=>`${t||Aa}modal, ${t||Aa}drawer`,[e])}function ro(e){return z(({props:{bPrefix:t}})=>`${t||Aa}popover`,[e])}function hm(e){return z(({props:{bPrefix:t}})=>`&${t||Aa}modal`,e)}const FC=(...e)=>z(">",[x(...e)]);function be(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,n=>n.toUpperCase()))}let ns=[];const vm=new WeakMap;function MC(){ns.forEach(e=>e(...vm.get(e))),ns=[]}function oi(e,...t){vm.set(e,t),!ns.includes(e)&&ns.push(e)===1&&requestAnimationFrame(MC)}function IC(e){return e.nodeType===9?null:e.parentNode}function gm(e){if(e===null)return null;const t=IC(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return gm(t)}function ou(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function en(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Jn(e){return e.composedPath()[0]||null}function BC(e){if(typeof e=="number")return{"":e.toString()};const t={};return e.split(/ +/).forEach(n=>{if(n==="")return;const[r,o]=n.split(":");o===void 0?t[""]=r:t[r]=o}),t}function yi(e,t){var n;if(e==null)return;const r=BC(e);if(t===void 0)return r[""];if(typeof t=="string")return(n=r[t])!==null&&n!==void 0?n:r[""];if(Array.isArray(t)){for(let o=t.length-1;o>=0;--o){const i=t[o];if(i in r)return r[i]}return r[""]}else{let o,i=-1;return Object.keys(r).forEach(a=>{const l=Number(a);!Number.isNaN(l)&&t>=l&&l>=i&&(i=l,o=r[a])}),o}}function Et(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function Vt(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function cn(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function mm(e,t){const[n,r]=e.split(" ");return{row:n,col:r||n}}const Lf={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function pm(e,t,n){t/=100,n/=100;const r=t*Math.min(n,1-n)+n;return[e,r?(2-2*n/r)*100:0,r*100]}function ql(e,t,n){t/=100,n/=100;const r=n-n*t/2,o=Math.min(r,1-r);return[e,o?(n-r)/o*100:0,r*100]}function Xr(e,t,n){t/=100,n/=100;let r=(o,i=(o+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function rc(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(i<0?i+6:i),r&&o/r*100,r*100]}function oc(e,t,n){e/=255,t/=255,n/=255;let r=Math.max(e,t,n),o=r-Math.min(e,t,n),i=1-Math.abs(r+r-o-1),a=o&&(r==e?(t-n)/o:r==t?2+(n-e)/o:4+(e-t)/o);return[60*(a<0?a+6:a),i?o/i*100:0,(r+r-o)*50]}function rs(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),o=(i,a=(i+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[o(0)*255,o(8)*255,o(4)*255]}const Vr="^\\s*",Ur="\\s*$",yo="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ir="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Uo="([0-9A-Fa-f])",Wo="([0-9A-Fa-f]{2})",bm=new RegExp(`${Vr}hsl\\s*\\(${ir},${yo},${yo}\\)${Ur}`),xm=new RegExp(`${Vr}hsv\\s*\\(${ir},${yo},${yo}\\)${Ur}`),ym=new RegExp(`${Vr}hsla\\s*\\(${ir},${yo},${yo},${ir}\\)${Ur}`),wm=new RegExp(`${Vr}hsva\\s*\\(${ir},${yo},${yo},${ir}\\)${Ur}`),AC=new RegExp(`${Vr}rgb\\s*\\(${ir},${ir},${ir}\\)${Ur}`),DC=new RegExp(`${Vr}rgba\\s*\\(${ir},${ir},${ir},${ir}\\)${Ur}`),iu=new RegExp(`${Vr}#${Uo}${Uo}${Uo}${Ur}`),au=new RegExp(`${Vr}#${Wo}${Wo}${Wo}${Ur}`),lu=new RegExp(`${Vr}#${Uo}${Uo}${Uo}${Uo}${Ur}`),su=new RegExp(`${Vr}#${Wo}${Wo}${Wo}${Wo}${Ur}`);function Kn(e){return parseInt(e,16)}function Go(e){try{let t;if(t=ym.exec(e))return[Lr(t[1]),wn(t[5]),wn(t[9]),Jr(t[13])];if(t=bm.exec(e))return[Lr(t[1]),wn(t[5]),wn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function mo(e){try{let t;if(t=wm.exec(e))return[Lr(t[1]),wn(t[5]),wn(t[9]),Jr(t[13])];if(t=xm.exec(e))return[Lr(t[1]),wn(t[5]),wn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function pn(e){try{let t;if(t=au.exec(e))return[Kn(t[1]),Kn(t[2]),Kn(t[3]),1];if(t=AC.exec(e))return[hn(t[1]),hn(t[5]),hn(t[9]),1];if(t=DC.exec(e))return[hn(t[1]),hn(t[5]),hn(t[9]),Jr(t[13])];if(t=iu.exec(e))return[Kn(t[1]+t[1]),Kn(t[2]+t[2]),Kn(t[3]+t[3]),1];if(t=su.exec(e))return[Kn(t[1]),Kn(t[2]),Kn(t[3]),Jr(Kn(t[4])/255)];if(t=lu.exec(e))return[Kn(t[1]+t[1]),Kn(t[2]+t[2]),Kn(t[3]+t[3]),Jr(Kn(t[4]+t[4])/255)];if(e in Lf)return pn(Lf[e]);if(bm.test(e)||ym.test(e)){const[n,r,o,i]=Go(e);return[...rs(n,r,o),i]}else if(xm.test(e)||wm.test(e)){const[n,r,o,i]=mo(e);return[...Xr(n,r,o),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function _C(e){return e>1?1:e<0?0:e}function EC(e,t,n){return`rgb(${hn(e)}, ${hn(t)}, ${hn(n)})`}function ic(e,t,n,r){return`rgba(${hn(e)}, ${hn(t)}, ${hn(n)}, ${_C(r)})`}function id(e,t,n,r,o){return hn((e*t*(1-r)+n*r)/o)}function dt(e,t){Array.isArray(e)||(e=pn(e)),Array.isArray(t)||(t=pn(t));const n=e[3],r=t[3],o=Jr(n+r-n*r);return ic(id(e[0],n,t[0],r,o),id(e[1],n,t[1],r,o),id(e[2],n,t[2],r,o),o)}function mt(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:pn(e);return typeof t.alpha=="number"?ic(n,r,o,t.alpha):ic(n,r,o,i)}function Ai(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:pn(e),{lightness:a=1,alpha:l=1}=t;return Er([n*a,r*a,o*a,i*l])}function Jr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Lr(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function hn(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function wn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function ac(e){const[t,n,r]=Array.isArray(e)?e:pn(e);return EC(t,n,r)}function Er(e){const[t,n,r]=e;return 3 in e?`rgba(${hn(t)}, ${hn(n)}, ${hn(r)}, ${Jr(e[3])})`:`rgba(${hn(t)}, ${hn(n)}, ${hn(r)}, 1)`}function lc(e){return`hsv(${Lr(e[0])}, ${wn(e[1])}%, ${wn(e[2])}%)`}function Xo(e){const[t,n,r]=e;return 3 in e?`hsva(${Lr(t)}, ${wn(n)}%, ${wn(r)}%, ${Jr(e[3])})`:`hsva(${Lr(t)}, ${wn(n)}%, ${wn(r)}%, 1)`}function sc(e){return`hsl(${Lr(e[0])}, ${wn(e[1])}%, ${wn(e[2])}%)`}function Qr(e){const[t,n,r]=e;return 3 in e?`hsla(${Lr(t)}, ${wn(n)}%, ${wn(r)}%, ${Jr(e[3])})`:`hsla(${Lr(t)}, ${wn(n)}%, ${wn(r)}%, 1)`}function po(e){if(typeof e=="string"){let r;if(r=au.exec(e))return`${r[0]}FF`;if(r=su.exec(e))return r[0];if(r=iu.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}FF`;if(r=lu.exec(e))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}${r[4]}${r[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}const t=`#${e.slice(0,3).map(r=>hn(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=e.length===3?"FF":hn(e[3]*255).toString(16).padStart(2,"0").toUpperCase();return t+n}function za(e){if(typeof e=="string"){let t;if(t=au.exec(e))return t[0];if(t=su.exec(e))return t[0].slice(0,7);if(t=iu.exec(e)||lu.exec(e))return`#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${e}.`)}return`#${e.slice(0,3).map(t=>hn(t).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function Vn(e=8){return Math.random().toString(16).slice(2,2+e)}function wo(e,t){const n=[];for(let r=0;r{t.contains(Yl(o))||n(o)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const o=a=>{r=!t.contains(Yl(a))},i=a=>{r&&(t.contains(Yl(a))||n(a))};return{mousedown:o,mouseup:i,touchstart:o,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function Cm(e,t,n){const r=LC[e];let o=r.get(t);o===void 0&&r.set(t,o=new WeakMap);let i=o.get(n);return i===void 0&&o.set(n,i=HC(e,t,n)),i}function jC(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Cm(e,t,n);return Object.keys(o).forEach(i=>{Ct(i,document,o[i],r)}),!0}return!1}function VC(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const o=Cm(e,t,n);return Object.keys(o).forEach(i=>{wt(i,document,o[i],r)}),!0}return!1}function UC(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(k,O,$){const T=k[O];return k[O]=function(){return $.apply(k,arguments),T.apply(k,arguments)},k}function i(k,O){k[O]=Event.prototype[O]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function d(){var k;return(k=a.get(this))!==null&&k!==void 0?k:null}function c(k,O){l!==void 0&&Object.defineProperty(k,"currentTarget",{configurable:!0,enumerable:!0,get:O??l.get})}const u={bubble:{},capture:{}},f={};function v(){const k=function(O){const{type:$,eventPhase:T,bubbles:D}=O,I=Yl(O);if(T===2)return;const A=T===1?"capture":"bubble";let E=I;const N=[];for(;E===null&&(E=window),N.push(E),E!==window;)E=E.parentNode||null;const U=u.capture[$],q=u.bubble[$];if(o(O,"stopPropagation",n),o(O,"stopImmediatePropagation",r),c(O,d),A==="capture"){if(U===void 0)return;for(let J=N.length-1;J>=0&&!e.has(O);--J){const ve=N[J],ae=U.get(ve);if(ae!==void 0){a.set(O,ve);for(const W of ae){if(t.has(O))break;W(O)}}if(J===0&&!D&&q!==void 0){const W=q.get(ve);if(W!==void 0)for(const j of W){if(t.has(O))break;j(O)}}}}else if(A==="bubble"){if(q===void 0)return;for(let J=0;JI(O))};return k.displayName="evtdUnifiedWindowEventHandler",k}const h=v(),g=m();function p(k,O){const $=u[k];return $[O]===void 0&&($[O]=new Map,window.addEventListener(O,h,k==="capture")),$[O]}function b(k){return f[k]===void 0&&(f[k]=new Set,window.addEventListener(k,g)),f[k]}function y(k,O){let $=k.get(O);return $===void 0&&k.set(O,$=new Set),$}function R(k,O,$,T){const D=u[O][$];if(D!==void 0){const I=D.get(k);if(I!==void 0&&I.has(T))return!0}return!1}function w(k,O){const $=f[k];return!!($!==void 0&&$.has(O))}function C(k,O,$,T){let D;if(typeof T=="object"&&T.once===!0?D=U=>{P(k,O,D,T),$(U)}:D=$,jC(k,O,D,T))return;const A=T===!0||typeof T=="object"&&T.capture===!0?"capture":"bubble",E=p(A,k),N=y(E,O);if(N.has(D)||N.add(D),O===window){const U=b(k);U.has(D)||U.add(D)}}function P(k,O,$,T){if(VC(k,O,$,T))return;const I=T===!0||typeof T=="object"&&T.capture===!0,A=I?"capture":"bubble",E=p(A,k),N=y(E,O);if(O===window&&!R(O,I?"bubble":"capture",k,$)&&w(k,$)){const q=f[k];q.delete($),q.size===0&&(window.removeEventListener(k,g),f[k]=void 0)}N.has($)&&N.delete($),N.size===0&&E.delete(O),E.size===0&&(window.removeEventListener(k,h,A==="capture"),u[A][k]=void 0)}return{on:C,off:P}}const{on:Ct,off:wt}=UC();function Sm(e){const t=B(!!e.value);if(t.value)return bo(t);const n=ct(e,r=>{r&&(t.value=!0,n())});return bo(t)}function it(e){const t=S(e),n=B(t.value);return ct(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function du(){return Xi()!==null}const zs=typeof window<"u";let Ei,$a;const WC=()=>{var e,t;Ei=zs?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,$a=!1,Ei!==void 0?Ei.then(()=>{$a=!0}):$a=!0};WC();function $s(e){if($a)return;let t=!1;It(()=>{$a||Ei?.then(()=>{t||e()})}),jt(()=>{t=!0})}const Sa=B(null);function Hf(e){if(e.clientX>0||e.clientY>0)Sa.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect();n>0||r>0?Sa.value={x:n+o/2,y:r+i/2}:Sa.value={x:0,y:0}}else Sa.value=null}}let bl=0,jf=!0;function cu(){if(!zs)return bo(B(null));bl===0&&Ct("click",document,Hf,!0);const e=()=>{bl+=1};return jf&&(jf=du())?(Oo(e),jt(()=>{bl-=1,bl===0&&wt("click",document,Hf,!0)})):e(),bo(Sa)}const KC=B(void 0);let xl=0;function Vf(){KC.value=Date.now()}let Uf=!0;function uu(e){if(!zs)return bo(B(!1));const t=B(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function o(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}xl===0&&Ct("click",window,Vf,!0);const i=()=>{xl+=1,Ct("click",window,o,!0)};return Uf&&(Uf=du())?(Oo(i),jt(()=>{xl-=1,xl===0&&wt("click",window,Vf,!0),wt("click",window,o,!0),r()})):i(),bo(t)}function St(e,t){return ct(e,n=>{n!==void 0&&(t.value=n)}),S(()=>e.value===void 0?t.value:e.value)}function $n(){const e=B(!1);return It(()=>{e.value=!0}),bo(e)}function Co(e,t){return S(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const qC=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function YC(){return qC}const GC={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function XC(e){return`(min-width: ${e}px)`}const ha={};function ZC(e=GC){if(!zs)return S(()=>[]);if(typeof window.matchMedia!="function")return S(()=>[]);const t=B({}),n=Object.keys(e),r=(o,i)=>{o.matches?t.value[i]=!0:t.value[i]=!1};return n.forEach(o=>{const i=e[o];let a,l;ha[i]===void 0?(a=window.matchMedia(XC(i)),a.addEventListener?a.addEventListener("change",d=>{l.forEach(c=>{c(d,o)})}):a.addListener&&a.addListener(d=>{l.forEach(c=>{c(d,o)})}),l=new Set,ha[i]={mql:a,cbs:l}):(a=ha[i].mql,l=ha[i].cbs),l.add(r),a.matches&&l.forEach(d=>{d(a,o)})}),jt(()=>{n.forEach(o=>{const{cbs:i}=ha[e[o]];i.has(r)&&i.delete(r)})}),S(()=>{const{value:o}=t;return n.filter(i=>o[i])})}function fu(e={},t){const n=Ka({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=d=>{switch(d.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==d.key)return;const u=r[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:v=!1}=u;f&&d.stopPropagation(),v&&d.preventDefault(),u.handler(d)}})},a=d=>{switch(d.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}o!==void 0&&Object.keys(o).forEach(c=>{if(c!==d.key)return;const u=o[c];if(typeof u=="function")u(d);else{const{stop:f=!1,prevent:v=!1}=u;f&&d.stopPropagation(),v&&d.preventDefault(),u.handler(d)}})},l=()=>{(t===void 0||t.value)&&(Ct("keydown",document,i),Ct("keyup",document,a)),t!==void 0&&ct(t,d=>{d?(Ct("keydown",document,i),Ct("keyup",document,a)):(wt("keydown",document,i),wt("keyup",document,a))})};return du()?(Oo(l),jt(()=>{(t===void 0||t.value)&&(wt("keydown",document,i),wt("keyup",document,a))})):l(),bo(n)}const hu="n-internal-select-menu",Rm="n-internal-select-menu-body",Ya="n-drawer-body",vu="n-drawer",Ga="n-modal-body",JC="n-modal-provider",km="n-modal",Zi="n-popover-body",Pm="__disabled__";function Ht(e){const t=Be(Ga,null),n=Be(Ya,null),r=Be(Zi,null),o=Be(Rm,null),i=B();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};It(()=>{Ct("fullscreenchange",document,a)}),jt(()=>{wt("fullscreenchange",document,a)})}return it(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?Pm:l===!0?i.value||"body":l:t?.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:n?.value?n.value:r?.value?r.value:o?.value?o.value:l??(i.value||"body")})}Ht.tdkey=Pm;Ht.propTo={type:[String,Object,Boolean],default:void 0};function QC(e,t,n){var r;const o=Be(e,null);if(o===null)return;const i=(r=Xi())===null||r===void 0?void 0:r.proxy;ct(n,a),a(n.value),jt(()=>{a(void 0,n.value)});function a(c,u){if(!o)return;const f=o[t];u!==void 0&&l(f,u),c!==void 0&&d(f,c)}function l(c,u){c[u]||(c[u]=[]),c[u].splice(c[u].findIndex(f=>f===i),1)}function d(c,u){c[u]||(c[u]=[]),~c[u].findIndex(f=>f===i)||c[u].push(i)}}function eS(e,t,n){const r=Be(e,null);r!==null&&(t in r||(r[t]=[]),r[t].push(n.value),ct(n,(o,i)=>{const a=r[t],l=a.findIndex(d=>d===i);~l&&a.splice(l,1),a.push(o)}),jt(()=>{const o=r[t],i=o.findIndex(a=>a===n.value);~i&&o.splice(i,1)}))}function tS(e,t,n){const r=Be(e,null);r!==null&&(t in r||(r[t]=[]),It(()=>{const o=n();o&&r[t].push(o)}),jt(()=>{const o=r[t],i=n(),a=o.findIndex(l=>l===i);~a&&o.splice(a,1)}))}function nS(e,t,n){const r=B(e.value);let o=null;return ct(e,i=>{o!==null&&window.clearTimeout(o),i===!0?n&&!n.value?r.value=!0:o=window.setTimeout(()=>{r.value=!0},t):r.value=!1}),r}const Wn=typeof document<"u"&&typeof window<"u";let Wf=!1;function gu(){if(Wn&&window.CSS&&!Wf&&(Wf=!0,"registerProperty"in window?.CSS))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const mu=B(!1);function Kf(){mu.value=!0}function qf(){mu.value=!1}let va=0;function zm(){return Wn&&(Oo(()=>{va||(window.addEventListener("compositionstart",Kf),window.addEventListener("compositionend",qf)),va++}),jt(()=>{va<=1?(window.removeEventListener("compositionstart",Kf),window.removeEventListener("compositionend",qf),va=0):va--})),mu}let wi=0,Yf="",Gf="",Xf="",Zf="";const dc=B("0px");function $m(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Yf,t.style.overflow=Gf,t.style.overflowX=Xf,t.style.overflowY=Zf,dc.value="0px"};It(()=>{n=ct(e,i=>{if(i){if(!wi){const a=window.innerWidth-t.offsetWidth;a>0&&(Yf=t.style.marginRight,t.style.marginRight=`${a}px`,dc.value=`${a}px`),Gf=t.style.overflow,Xf=t.style.overflowX,Zf=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,wi++}else wi--,wi||o(),r=!1},{immediate:!0})}),jt(()=>{n?.(),r&&(wi--,wi||o(),r=!1)})}function pu(e){const t={isDeactivated:!1};let n=!1;return tm(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),nu(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function cc(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function uc(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(ni(String(r)));return}if(Array.isArray(r)){uc(r,t,n);return}if(r.type===qt){if(r.children===null)return;Array.isArray(r.children)&&uc(r.children,t,n)}else r.type!==Ss&&n.push(r)}}),n}function Jf(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=uc(r());if(o.length===1)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let co=null;function Tm(){if(co===null&&(co=document.getElementById("v-binder-view-measurer"),co===null)){co=document.createElement("div"),co.id="v-binder-view-measurer";const{style:e}=co;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(co)}return co.getBoundingClientRect()}function rS(e,t){const n=Tm();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function ad(e){const t=e.getBoundingClientRect(),n=Tm();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function oS(e){return e.nodeType===9?null:e.parentNode}function Om(e){if(e===null)return null;const t=oS(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(n+o+r))return t}return Om(t)}const yr=Y({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;ot("VBinder",(t=Xi())===null||t===void 0?void 0:t.proxy);const n=Be("VBinder",null),r=B(null),o=b=>{r.value=b,n&&e.syncTargetWithParent&&n.setTargetRef(b)};let i=[];const a=()=>{let b=r.value;for(;b=Om(b),b!==null;)i.push(b);for(const y of i)Ct("scroll",y,f,!0)},l=()=>{for(const b of i)wt("scroll",b,f,!0);i=[]},d=new Set,c=b=>{d.size===0&&a(),d.has(b)||d.add(b)},u=b=>{d.has(b)&&d.delete(b),d.size===0&&l()},f=()=>{oi(v)},v=()=>{d.forEach(b=>b())},m=new Set,h=b=>{m.size===0&&Ct("resize",window,p),m.has(b)||m.add(b)},g=b=>{m.has(b)&&m.delete(b),m.size===0&&wt("resize",window,p)},p=()=>{m.forEach(b=>b())};return jt(()=>{wt("resize",window,p),l()}),{targetRef:r,setTargetRef:o,addScrollListener:c,removeScrollListener:u,addResizeListener:h,removeResizeListener:g}},render(){return cc("binder",this.$slots)}}),wr=Y({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Be("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?rn(Jf("follower",this.$slots),[[t]]):Jf("follower",this.$slots)}}),Ci="@@mmoContext",iS={mounted(e,{value:t}){e[Ci]={handler:void 0},typeof t=="function"&&(e[Ci].handler=t,Ct("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[Ci];typeof t=="function"?n.handler?n.handler!==t&&(wt("mousemoveoutside",e,n.handler),n.handler=t,Ct("mousemoveoutside",e,t)):(e[Ci].handler=t,Ct("mousemoveoutside",e,t)):n.handler&&(wt("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[Ci];t&&wt("mousemoveoutside",e,t),e[Ci].handler=void 0}},Si="@@coContext",Qn={mounted(e,{value:t,modifiers:n}){e[Si]={handler:void 0},typeof t=="function"&&(e[Si].handler=t,Ct("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[Si];typeof t=="function"?r.handler?r.handler!==t&&(wt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,Ct("clickoutside",e,t,{capture:n.capture})):(e[Si].handler=t,Ct("clickoutside",e,t,{capture:n.capture})):r.handler&&(wt("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[Si];n&&wt("clickoutside",e,n,{capture:t.capture}),e[Si].handler=void 0}};function aS(e,t){console.error(`[vdirs/${e}]: ${t}`)}class lS{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:o}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${o}`,r.set(t,o),this.nextZIndex=o+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&aS("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],o=this.nextZIndex++;`${o}`!==r.style.zIndex&&(r.style.zIndex=`${o}`)})}}const ld=new lS,Ri="@@ziContext",Xa={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[Ri]={enabled:!!o,initialized:!1},o&&(ld.ensureZIndex(e,r),e[Ri].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[Ri].enabled;o&&!i&&(ld.ensureZIndex(e,r),e[Ri].initialized=!0),e[Ri].enabled=!!o},unmounted(e,t){if(!e[Ri].initialized)return;const{value:n={}}=t,{zIndex:r}=n;ld.unregister(e,r)}},sS="@css-render/vue3-ssr";function dS(e,t){return``}function cS(e,t,n){const{styles:r,ids:o}=n;o.has(e)||r!==null&&(o.add(e),r.push(dS(e,t)))}const uS=typeof document<"u";function oo(){if(uS)return;const e=Be(sS,null);if(e!==null)return{adapter:(t,n)=>cS(t,n,e),context:e}}function Qf(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:_r}=cm(),Ts="vueuc-style";function eh(e){return e&-e}class Fm{constructor(t,n){this.l=t,this.min=n;const r=new Array(t+1);for(let o=0;oo)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*r;for(;t>0;)i+=n[t],t-=eh(t);return i}getBound(t){let n=0,r=this.l;for(;r>n;){const o=Math.floor((n+r)/2),i=this.sum(o);if(i>t){r=o;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?cc("lazy-teleport",this.$slots):s(qa,{disabled:this.disabled,to:this.mergedTo},cc("lazy-teleport",this.$slots)):null}}),yl={top:"bottom",bottom:"top",left:"right",right:"left"},nh={start:"end",center:"center",end:"start"},sd={top:"height",bottom:"height",left:"width",right:"width"},fS={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},hS={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},vS={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},rh={top:!0,bottom:!1,left:!0,right:!1},oh={top:"end",bottom:"start",left:"end",right:"start"};function gS(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let d=l??"center",c={top:0,left:0};const u=(m,h,g)=>{let p=0,b=0;const y=n[m]-t[h]-t[m];return y>0&&r&&(g?b=rh[h]?y:-y:p=rh[h]?y:-y),{left:p,top:b}},f=a==="left"||a==="right";if(d!=="center"){const m=vS[e],h=yl[m],g=sd[m];if(n[g]>t[g]){if(t[m]+t[g]t[h]&&(d=nh[l])}else{const m=a==="bottom"||a==="top"?"left":"top",h=yl[m],g=sd[m],p=(n[g]-t[g])/2;(t[m]t[h]?(d=oh[m],c=u(g,m,f)):(d=oh[h],c=u(g,h,f)))}let v=a;return t[a] *",{pointerEvents:"all"})])]),sr=Y({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Be("VBinder"),n=it(()=>e.enabled!==void 0?e.enabled:e.show),r=B(null),o=B(null),i=()=>{const{syncTrigger:v}=e;v.includes("scroll")&&t.addScrollListener(d),v.includes("resize")&&t.addResizeListener(d)},a=()=>{t.removeScrollListener(d),t.removeResizeListener(d)};It(()=>{n.value&&(d(),i())});const l=oo();bS.mount({id:"vueuc/binder",head:!0,anchorMetaName:Ts,ssr:l}),jt(()=>{a()}),$s(()=>{n.value&&d()});const d=()=>{if(!n.value)return;const v=r.value;if(v===null)return;const m=t.targetRef,{x:h,y:g,overlap:p}=e,b=h!==void 0&&g!==void 0?rS(h,g):ad(m);v.style.setProperty("--v-target-width",`${Math.round(b.width)}px`),v.style.setProperty("--v-target-height",`${Math.round(b.height)}px`);const{width:y,minWidth:R,placement:w,internalShift:C,flip:P}=e;v.setAttribute("v-placement",w),p?v.setAttribute("v-overlap",""):v.removeAttribute("v-overlap");const{style:k}=v;y==="target"?k.width=`${b.width}px`:y!==void 0?k.width=y:k.width="",R==="target"?k.minWidth=`${b.width}px`:R!==void 0?k.minWidth=R:k.minWidth="";const O=ad(v),$=ad(o.value),{left:T,top:D,placement:I}=gS(w,b,O,C,P,p),A=mS(I,p),{left:E,top:N,transform:U}=pS(I,$,b,D,T,p);v.setAttribute("v-placement",I),v.style.setProperty("--v-offset-left",`${Math.round(T)}px`),v.style.setProperty("--v-offset-top",`${Math.round(D)}px`),v.style.transform=`translateX(${E}) translateY(${N}) ${U}`,v.style.setProperty("--v-transform-origin",A),v.style.transformOrigin=A};ct(n,v=>{v?(i(),c()):a()});const c=()=>{zt().then(d).catch(v=>console.error(v))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(v=>{ct(le(e,v),d)}),["teleportDisabled"].forEach(v=>{ct(le(e,v),c)}),ct(le(e,"syncTrigger"),v=>{v.includes("resize")?t.addResizeListener(d):t.removeResizeListener(d),v.includes("scroll")?t.addScrollListener(d):t.removeScrollListener(d)});const u=$n(),f=it(()=>{const{to:v}=e;if(v!==void 0)return v;u.value});return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:f,syncPosition:d}},render(){return s(Za,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=s("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[s("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?rn(n,[[Xa,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var Zo=[],xS=function(){return Zo.some(function(e){return e.activeTargets.length>0})},yS=function(){return Zo.some(function(e){return e.skippedTargets.length>0})},ih="ResizeObserver loop completed with undelivered notifications.",wS=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ih}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ih),window.dispatchEvent(e)},Da;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Da||(Da={}));var Jo=function(e){return Object.freeze(e)},CS=(function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Jo(this)}return e})(),Mm=(function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Jo(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,l=t.left,d=t.width,c=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:l,width:d,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),bu=function(e){return e instanceof SVGElement&&"getBBox"in e},Im=function(e){if(bu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ah=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},SS=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Ta=typeof window<"u"?window:{},wl=new WeakMap,lh=/auto|scroll/,RS=/^tb|vertical/,kS=/msie|trident/i.test(Ta.navigator&&Ta.navigator.userAgent),Mr=function(e){return parseFloat(e||"0")},Ni=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new CS((n?t:e)||0,(n?e:t)||0)},sh=Jo({devicePixelContentBoxSize:Ni(),borderBoxSize:Ni(),contentBoxSize:Ni(),contentRect:new Mm(0,0,0,0)}),Bm=function(e,t){if(t===void 0&&(t=!1),wl.has(e)&&!t)return wl.get(e);if(Im(e))return wl.set(e,sh),sh;var n=getComputedStyle(e),r=bu(e)&&e.ownerSVGElement&&e.getBBox(),o=!kS&&n.boxSizing==="border-box",i=RS.test(n.writingMode||""),a=!r&&lh.test(n.overflowY||""),l=!r&&lh.test(n.overflowX||""),d=r?0:Mr(n.paddingTop),c=r?0:Mr(n.paddingRight),u=r?0:Mr(n.paddingBottom),f=r?0:Mr(n.paddingLeft),v=r?0:Mr(n.borderTopWidth),m=r?0:Mr(n.borderRightWidth),h=r?0:Mr(n.borderBottomWidth),g=r?0:Mr(n.borderLeftWidth),p=f+c,b=d+u,y=g+m,R=v+h,w=l?e.offsetHeight-R-e.clientHeight:0,C=a?e.offsetWidth-y-e.clientWidth:0,P=o?p+y:0,k=o?b+R:0,O=r?r.width:Mr(n.width)-P-C,$=r?r.height:Mr(n.height)-k-w,T=O+p+C+y,D=$+b+w+R,I=Jo({devicePixelContentBoxSize:Ni(Math.round(O*devicePixelRatio),Math.round($*devicePixelRatio),i),borderBoxSize:Ni(T,D,i),contentBoxSize:Ni(O,$,i),contentRect:new Mm(f,d,O,$)});return wl.set(e,I),I},Am=function(e,t,n){var r=Bm(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Da.DEVICE_PIXEL_CONTENT_BOX:return a;case Da.BORDER_BOX:return o;default:return i}},PS=(function(){function e(t){var n=Bm(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Jo([n.borderBoxSize]),this.contentBoxSize=Jo([n.contentBoxSize]),this.devicePixelContentBoxSize=Jo([n.devicePixelContentBoxSize])}return e})(),Dm=function(e){if(Im(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},zS=function(){var e=1/0,t=[];Zo.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(c){var u=new PS(c.target),f=Dm(c.target);l.push(u),c.lastReportedSize=Am(c.target,c.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},$S=function(){var e=0;for(dh(e);xS();)e=zS(),dh(e);return yS()&&wS(),e>0},dd,_m=[],TS=function(){return _m.splice(0).forEach(function(e){return e()})},OS=function(e){if(!dd){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return TS()}).observe(n,r),dd=function(){n.textContent="".concat(t?t--:t++)}}_m.push(e),dd()},FS=function(e){OS(function(){requestAnimationFrame(e)})},Gl=0,MS=function(){return!!Gl},IS=250,BS={attributes:!0,characterData:!0,childList:!0,subtree:!0},ch=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uh=function(e){return e===void 0&&(e=0),Date.now()+e},cd=!1,AS=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=IS),!cd){cd=!0;var r=uh(t);FS(function(){var o=!1;try{o=$S()}finally{if(cd=!1,t=r-uh(),!MS())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,BS)};document.body?n():Ta.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ch.forEach(function(n){return Ta.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ch.forEach(function(n){return Ta.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e})(),fc=new AS,fh=function(e){!Gl&&e>0&&fc.start(),Gl+=e,!Gl&&fc.stop()},DS=function(e){return!bu(e)&&!SS(e)&&getComputedStyle(e).display==="inline"},_S=(function(){function e(t,n){this.target=t,this.observedBox=n||Da.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Am(this.target,this.observedBox,!0);return DS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),ES=(function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e})(),Cl=new WeakMap,hh=function(e,t){for(var n=0;n=0&&(i&&Zo.splice(Zo.indexOf(r),1),r.observationTargets.splice(o,1),fh(-1))},e.disconnect=function(t){var n=this,r=Cl.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),NS=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Sl.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ah(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Sl.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ah(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Sl.unobserve(this,t)},e.prototype.disconnect=function(){Sl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();class LS{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||NS)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Oa=new LS,Nn=Y({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=Xi().proxy;function r(o){const{onResize:i}=e;i!==void 0&&i(o)}It(()=>{const o=n.$el;if(o===void 0){Qf("resize-observer","$el does not exist.");return}if(o.nextElementSibling!==o.nextSibling&&o.nodeType===3&&o.nodeValue!==""){Qf("resize-observer","$el can not be observed (it may be a text node).");return}o.nextElementSibling!==null&&(Oa.registerHandler(o.nextElementSibling,r),t=!0)}),jt(()=>{t&&Oa.unregisterHandler(n.$el.nextElementSibling)})},render(){return nm(this.$slots,"default")}});let Rl;function HS(){return typeof document>"u"?!1:(Rl===void 0&&("matchMedia"in window?Rl=window.matchMedia("(pointer:coarse)").matches:Rl=!1),Rl)}let ud;function vh(){return typeof document>"u"?1:(ud===void 0&&(ud="chrome"in window?window.devicePixelRatio:1),ud)}const Em="VVirtualListXScroll";function jS({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){const r=B(0),o=B(0),i=S(()=>{const c=e.value;if(c.length===0)return null;const u=new Fm(c.length,0);return c.forEach((f,v)=>{u.add(v,f.width)}),u}),a=it(()=>{const c=i.value;return c!==null?Math.max(c.getBound(o.value)-1,0):0}),l=c=>{const u=i.value;return u!==null?u.sum(c):0},d=it(()=>{const c=i.value;return c!==null?Math.min(c.getBound(o.value+r.value)+1,e.value.length-1):0});return ot(Em,{startIndexRef:a,endIndexRef:d,columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:l}),{listWidthRef:r,scrollLeftRef:o}}const gh=Y({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:o,renderItemWithColsRef:i}=Be(Em);return{startIndex:e,endIndex:t,columns:n,renderCol:o,renderItemWithCols:i,getLeft:r}},render(){const{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:o,getLeft:i,item:a}=this;if(o!=null)return o({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:a,getLeft:i});if(r!=null){const l=[];for(let d=e;d<=t;++d){const c=n[d];l.push(r({column:c,left:i(d),item:a}))}return l}return null}}),VS=_r(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[_r("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[_r("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),$r=Y({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=oo();VS.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:Ts,ssr:t}),It(()=>{const{defaultScrollIndex:A,defaultScrollKey:E}=e;A!=null?p({index:A}):E!=null&&p({key:E})});let n=!1,r=!1;tm(()=>{if(n=!1,!r){r=!0;return}p({top:m.value,left:a.value})}),nu(()=>{n=!0,r||(r=!0)});const o=it(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let A=0;return e.columns.forEach(E=>{A+=E.width}),A}),i=S(()=>{const A=new Map,{keyField:E}=e;return e.items.forEach((N,U)=>{A.set(N[E],U)}),A}),{scrollLeftRef:a,listWidthRef:l}=jS({columnsRef:le(e,"columns"),renderColRef:le(e,"renderCol"),renderItemWithColsRef:le(e,"renderItemWithCols")}),d=B(null),c=B(void 0),u=new Map,f=S(()=>{const{items:A,itemSize:E,keyField:N}=e,U=new Fm(A.length,E);return A.forEach((q,J)=>{const ve=q[N],ae=u.get(ve);ae!==void 0&&U.add(J,ae)}),U}),v=B(0),m=B(0),h=it(()=>Math.max(f.value.getBound(m.value-Et(e.paddingTop))-1,0)),g=S(()=>{const{value:A}=c;if(A===void 0)return[];const{items:E,itemSize:N}=e,U=h.value,q=Math.min(U+Math.ceil(A/N+1),E.length-1),J=[];for(let ve=U;ve<=q;++ve)J.push(E[ve]);return J}),p=(A,E)=>{if(typeof A=="number"){w(A,E,"auto");return}const{left:N,top:U,index:q,key:J,position:ve,behavior:ae,debounce:W=!0}=A;if(N!==void 0||U!==void 0)w(N,U,ae);else if(q!==void 0)R(q,ae,W);else if(J!==void 0){const j=i.value.get(J);j!==void 0&&R(j,ae,W)}else ve==="bottom"?w(0,Number.MAX_SAFE_INTEGER,ae):ve==="top"&&w(0,0,ae)};let b,y=null;function R(A,E,N){const{value:U}=f,q=U.sum(A)+Et(e.paddingTop);if(!N)d.value.scrollTo({left:0,top:q,behavior:E});else{b=A,y!==null&&window.clearTimeout(y),y=window.setTimeout(()=>{b=void 0,y=null},16);const{scrollTop:J,offsetHeight:ve}=d.value;if(q>J){const ae=U.get(A);q+ae<=J+ve||d.value.scrollTo({left:0,top:q+ae-ve,behavior:E})}else d.value.scrollTo({left:0,top:q,behavior:E})}}function w(A,E,N){d.value.scrollTo({left:A,top:E,behavior:N})}function C(A,E){var N,U,q;if(n||e.ignoreItemResize||I(E.target))return;const{value:J}=f,ve=i.value.get(A),ae=J.get(ve),W=(q=(U=(N=E.borderBoxSize)===null||N===void 0?void 0:N[0])===null||U===void 0?void 0:U.blockSize)!==null&&q!==void 0?q:E.contentRect.height;if(W===ae)return;W-e.itemSize===0?u.delete(A):u.set(A,W-e.itemSize);const _=W-ae;if(_===0)return;J.add(ve,_);const L=d.value;if(L!=null){if(b===void 0){const Z=J.sum(ve);L.scrollTop>Z&&L.scrollBy(0,_)}else if(veL.scrollTop+L.offsetHeight&&L.scrollBy(0,_)}D()}v.value++}const P=!HS();let k=!1;function O(A){var E;(E=e.onScroll)===null||E===void 0||E.call(e,A),(!P||!k)&&D()}function $(A){var E;if((E=e.onWheel)===null||E===void 0||E.call(e,A),P){const N=d.value;if(N!=null){if(A.deltaX===0&&(N.scrollTop===0&&A.deltaY<=0||N.scrollTop+N.offsetHeight>=N.scrollHeight&&A.deltaY>=0))return;A.preventDefault(),N.scrollTop+=A.deltaY/vh(),N.scrollLeft+=A.deltaX/vh(),D(),k=!0,oi(()=>{k=!1})}}}function T(A){if(n||I(A.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(A.contentRect.height===c.value)return}else if(A.contentRect.height===c.value&&A.contentRect.width===l.value)return;c.value=A.contentRect.height,l.value=A.contentRect.width;const{onResize:E}=e;E!==void 0&&E(A)}function D(){const{value:A}=d;A!=null&&(m.value=A.scrollTop,a.value=A.scrollLeft)}function I(A){let E=A;for(;E!==null;){if(E.style.display==="none")return!0;E=E.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:S(()=>{const{itemResizable:A}=e,E=Vt(f.value.sum());return v.value,[e.itemsStyle,{boxSizing:"content-box",width:Vt(o.value),height:A?"":E,minHeight:A?E:"",paddingTop:Vt(e.paddingTop),paddingBottom:Vt(e.paddingBottom)}]}),visibleItemsStyle:S(()=>(v.value,{transform:`translateY(${Vt(f.value.sum(h.value))})`})),viewportItems:g,listElRef:d,itemsElRef:B(null),scrollTo:p,handleListResize:T,handleListScroll:O,handleListWheel:$,handleItemResize:C}},render(){const{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:r}=this;return s(Nn,{onResize:this.handleListResize},{default:()=>{var o,i;return s("div",Pn(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?s("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[s(r,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:a,renderItemWithCols:l}=this;return this.viewportItems.map(d=>{const c=d[t],u=n.get(c),f=a!=null?s(gh,{index:u,item:d}):void 0,v=l!=null?s(gh,{index:u,item:d}):void 0,m=this.$slots.default({item:d,renderedCols:f,renderedItemWithCols:v,index:u})[0];return e?s(Nn,{key:c,onResize:h=>this.handleItemResize(c,h)},{default:()=>m}):(m.key=c,m)})}})]):(i=(o=this.$slots).empty)===null||i===void 0?void 0:i.call(o)])}})}}),US=_r(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[_r("&::-webkit-scrollbar",{width:0,height:0})]),WS=Y({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=B(null);function t(o){!(o.currentTarget.offsetWidthv){const{updateCounter:P}=e;for(let k=R;k>=0;--k){const O=b-1-k;P!==void 0?P(O):u.textContent=`${O}`;const $=u.offsetWidth;if(g-=m[k],g+$<=v||k===0){p=!0,R=k-1,h&&(R===-1?(h.style.maxWidth=`${v-$}px`,h.style.boxSizing="border-box"):h.style.maxWidth="");const{onUpdateCount:T}=e;T&&T(O);break}}}}const{onUpdateOverflow:y}=e;p?y!==void 0&&y(!0):(y!==void 0&&y(!1),u.setAttribute(Yr,""))}const i=oo();return KS.mount({id:"vueuc/overflow",head:!0,anchorMetaName:Ts,ssr:i}),It(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:o}},render(){const{$slots:e}=this;return zt(()=>this.sync({showAllItemsBeforeCalculate:!1})),s("div",{class:"v-overflow",ref:"selfRef"},[nm(e,"default"),e.counter?e.counter():s("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function Nm(e){return e instanceof HTMLElement}function Lm(e){for(let t=0;t=0;t--){const n=e.childNodes[t];if(Nm(n)&&(jm(n)||Hm(n)))return!0}return!1}function jm(e){if(!qS(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function qS(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let ga=[];const xu=Y({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Vn(),n=B(null),r=B(null);let o=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return ga[ga.length-1]===t}function d(p){var b;p.code==="Escape"&&l()&&((b=e.onEsc)===null||b===void 0||b.call(e,p))}It(()=>{ct(()=>e.active,p=>{p?(f(),Ct("keydown",document,d)):(wt("keydown",document,d),o&&v())},{immediate:!0})}),jt(()=>{wt("keydown",document,d),o&&v()});function c(p){if(!i&&l()){const b=u();if(b===null||b.contains(Jn(p)))return;m("first")}}function u(){const p=n.value;if(p===null)return null;let b=p;for(;b=b.nextSibling,!(b===null||b instanceof Element&&b.tagName==="DIV"););return b}function f(){var p;if(!e.disabled){if(ga.push(t),e.autoFocus){const{initialFocusTo:b}=e;b===void 0?m("first"):(p=th(b))===null||p===void 0||p.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}}function v(){var p;if(e.disabled||(document.removeEventListener("focus",c,!0),ga=ga.filter(y=>y!==t),l()))return;const{finalFocusTo:b}=e;b!==void 0?(p=th(b))===null||p===void 0||p.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function m(p){if(l()&&e.active){const b=n.value,y=r.value;if(b!==null&&y!==null){const R=u();if(R==null||R===y){i=!0,b.focus({preventScroll:!0}),i=!1;return}i=!0;const w=p==="first"?Lm(R):Hm(R);i=!1,w||(i=!0,b.focus({preventScroll:!0}),i=!1)}}}function h(p){if(i)return;const b=u();b!==null&&(p.relatedTarget!==null&&b.contains(p.relatedTarget)?m("last"):m("first"))}function g(p){i||(p.relatedTarget!==null&&p.relatedTarget===n.value?m("last"):m("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:h,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return s(qt,null,[s("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),s("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Os(e,t){t&&(It(()=>{const{value:n}=e;n&&Oa.registerHandler(n,t)}),ct(e,(n,r)=>{r&&Oa.unregisterHandler(r)},{deep:!1}),jt(()=>{const{value:n}=e;n&&Oa.unregisterHandler(n)}))}function ii(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const YS=/^(\d|\.)+$/,mh=/(\d|\.)+/;function Pt(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const o=(e+n)*t;return o===0?"0":`${o}px`}else if(typeof e=="string")if(YS.test(e)){const o=(Number(e)+n)*t;return r?o===0?"0":`${o}px`:`${o}`}else{const o=mh.exec(e);return o?e.replace(mh,String((Number(o[0])+n)*t)):e}return e}function ph(e){const{left:t,right:n,top:r,bottom:o}=cn(e);return`${r} ${t} ${o} ${n}`}function Fs(e,t){if(!e)return;const n=document.createElement("a");n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function GS(e,t){Fs(e,t)}function bh(e){return e.nodeName==="#document"}let fd;function XS(){return fd===void 0&&(fd=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),fd}const Vm=new WeakSet;function ai(e){Vm.add(e)}function Um(e){return!Vm.has(e)}function Hi(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const ZS={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function vc(e){const t=ZS[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}function JS(e,t){if(e===null&&t===null)return!0;if(e===null||t===null)return!1;if(e.length===t.length){for(let n=0;nie(n,...t));else return e(...t)}function Wm(e){return typeof e=="string"?`s-${e}`:`n-${e}`}function Km(e){return t=>{t?e.value=t.$el:e.value=null}}function Yn(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push(ni(String(r)));return}if(Array.isArray(r)){Yn(r,t,n);return}if(r.type===qt){if(r.children===null)return;Array.isArray(r.children)&&Yn(r.children,t,n)}else{if(r.type===Ss&&t)return;n.push(r)}}}),n}function eR(e,t="default",n=void 0){const r=e[t];if(!r)return Mn("getFirstSlotVNode",`slot[${t}] is empty`),null;const o=Yn(r(n));return o.length===1?o[0]:(Mn("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function qm(e,t,n){if(!t)return null;const r=Yn(t(n));return r.length===1?r[0]:(Mn("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Ji(e,t="default",n=[]){const o=e.$slots[t];return o===void 0?n:o()}function wh(e,t="default",n=[]){const{children:r}=e;if(r!==null&&typeof r=="object"&&!Array.isArray(r)){const o=r[t];if(typeof o=="function")return o()}return n}function tR(e){var t;const n=(t=e.dirs)===null||t===void 0?void 0:t.find(({dir:r})=>r===lr);return!!(n&&n.value===!1)}function vn(e,t=[],n){const r={};return t.forEach(o=>{r[o]=e[o]}),Object.assign(r,n)}function In(e){return Object.keys(e)}function Fa(e){const t=e.filter(n=>n!==void 0);if(t.length!==0)return t.length===1?t[0]:n=>{e.forEach(r=>{r&&r(n)})}}function Fo(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,n)}function Wt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?ni(e):typeof e=="number"?ni(String(e)):null}function pr(e){return e.some(t=>eC(t)?!(t.type===Ss||t.type===qt&&!pr(t.children)):!0)?e:null}function ht(e,t){return e&&pr(e())||t()}function an(e,t,n){return e&&pr(e(t))||n(t)}function yt(e,t){const n=e&&pr(e());return t(n||null)}function nR(e,t,n){const r=e&&pr(e(t));return n(r||null)}function Qo(e){return!(e&&pr(e()))}const gc=Y({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Un="n-config-provider",os="n";function Ee(e={},t={defaultBordered:!0}){const n=Be(Un,null);return{inlineThemeDisabled:n?.inlineThemeDisabled,mergedRtlRef:n?.mergedRtlRef,mergedComponentPropsRef:n?.mergedComponentPropsRef,mergedBreakpointsRef:n?.mergedBreakpointsRef,mergedBorderedRef:S(()=>{var r,o;const{bordered:i}=e;return i!==void 0?i:(o=(r=n?.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&o!==void 0?o:!0}),mergedClsPrefixRef:n?n.mergedClsPrefixRef:rm(os),namespaceRef:S(()=>n?.mergedNamespaceRef.value)}}function Ym(){const e=Be(Un,null);return e?e.mergedClsPrefixRef:rm(os)}function Xe(e,t,n,r){n||mn("useThemeClass","cssVarsRef is not passed");const o=Be(Un,null),i=o?.mergedThemeHashRef,a=o?.styleMountTarget,l=B(""),d=oo();let c;const u=`__${e}`,f=()=>{let v=u;const m=t?t.value:void 0,h=i?.value;h&&(v+=`-${h}`),m&&(v+=`-${m}`);const{themeOverrides:g,builtinThemeOverrides:p}=r;g&&(v+=`-${xo(JSON.stringify(g))}`),p&&(v+=`-${xo(JSON.stringify(p))}`),l.value=v,c=()=>{const b=n.value;let y="";for(const R in b)y+=`${R}: ${b[R]};`;z(`.${v}`,y).mount({id:v,ssr:d,parent:a}),c=void 0}};return Ft(()=>{f()}),{themeClass:l,onRender:()=>{c?.()}}}const is="n-form-item";function ln(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Be(is,null);ot(is,null);const i=S(n?()=>n(o):()=>{const{size:d}=e;if(d)return d;if(o){const{mergedSize:c}=o;if(c.value!==void 0)return c.value}return t}),a=S(r?()=>r(o):()=>{const{disabled:d}=e;return d!==void 0?d:o?o.disabled.value:!1}),l=S(()=>{const{status:d}=e;return d||o?.mergedValidationStatus.value});return jt(()=>{o&&o.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}function Gm(e,t){const n=Be(Un,null);return S(()=>e.hljs||n?.mergedHljsRef.value)}const rR={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function hd(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function ma(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}function pa(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(l)?iR(l,f=>f.test(a)):oR(l,f=>f.test(a));let c;c=e.valueCallback?e.valueCallback(d):d,c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}function oR(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function iR(e,t){for(let n=0;n{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const Xm=6048e5,lR=864e5,_a=6e4,yu=36e5,sR=1e3,Ch=525600,Sh=43200,Rh=1440,kh=Symbol.for("constructDateFrom");function tn(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&kh in e?e[kh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Mo(e,...t){const n=tn.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}let dR={};function Io(){return dR}function Rt(e,t){return tn(t||e,e)}function dr(e,t){const n=Io(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Rt(e,t?.in),i=o.getDay(),a=(i{let r;const o=uR[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},hR={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vR=(e,t,n,r)=>hR[e],gR={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mR={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},pR={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bR={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},xR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yR={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wR=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},CR={ordinalNumber:wR,era:ma({values:gR,defaultWidth:"wide"}),quarter:ma({values:mR,defaultWidth:"wide",argumentCallback:e=>e-1}),month:ma({values:pR,defaultWidth:"wide"}),day:ma({values:bR,defaultWidth:"wide"}),dayPeriod:ma({values:xR,defaultWidth:"wide",formattingValues:yR,defaultFormattingWidth:"wide"})},SR=/^(\d+)(th|st|nd|rd)?/i,RR=/\d+/i,kR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},PR={any:[/^b/i,/^(a|c)/i]},zR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$R={any:[/1/i,/2/i,/3/i,/4/i]},TR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},OR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},FR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},MR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},IR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},BR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AR={ordinalNumber:aR({matchPattern:SR,parsePattern:RR,valueCallback:e=>parseInt(e,10)}),era:pa({matchPatterns:kR,defaultMatchWidth:"wide",parsePatterns:PR,defaultParseWidth:"any"}),quarter:pa({matchPatterns:zR,defaultMatchWidth:"wide",parsePatterns:$R,defaultParseWidth:"any",valueCallback:e=>e+1}),month:pa({matchPatterns:TR,defaultMatchWidth:"wide",parsePatterns:OR,defaultParseWidth:"any"}),day:pa({matchPatterns:FR,defaultMatchWidth:"wide",parsePatterns:MR,defaultParseWidth:"any"}),dayPeriod:pa({matchPatterns:IR,defaultMatchWidth:"any",parsePatterns:BR,defaultParseWidth:"any"})},DR={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},_R={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ER={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},NR={date:hd({formats:DR,defaultWidth:"full"}),time:hd({formats:_R,defaultWidth:"full"}),dateTime:hd({formats:ER,defaultWidth:"full"})},Ms={code:"en-US",formatDistance:fR,formatLong:NR,formatRelative:vR,localize:CR,match:AR,options:{weekStartsOn:0,firstWeekContainsDate:1}},LR={name:"en-US",locale:Ms};var Zm=typeof global=="object"&&global&&global.Object===Object&&global,HR=typeof self=="object"&&self&&self.Object===Object&&self,Cr=Zm||HR||Function("return this")(),So=Cr.Symbol,Jm=Object.prototype,jR=Jm.hasOwnProperty,VR=Jm.toString,ba=So?So.toStringTag:void 0;function UR(e){var t=jR.call(e,ba),n=e[ba];try{e[ba]=void 0;var r=!0}catch{}var o=VR.call(e);return r&&(t?e[ba]=n:delete e[ba]),o}var WR=Object.prototype,KR=WR.toString;function qR(e){return KR.call(e)}var YR="[object Null]",GR="[object Undefined]",Ph=So?So.toStringTag:void 0;function fi(e){return e==null?e===void 0?GR:YR:Ph&&Ph in Object(e)?UR(e):qR(e)}function Ro(e){return e!=null&&typeof e=="object"}var XR="[object Symbol]";function Ja(e){return typeof e=="symbol"||Ro(e)&&fi(e)==XR}function Qm(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n0){if(++t>=z2)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function F2(e){return function(){return e}}var ls=(function(){try{var e=vi(Object,"defineProperty");return e({},"",{}),e}catch{}})(),M2=ls?function(e,t){return ls(e,"toString",{configurable:!0,enumerable:!1,value:F2(t),writable:!0})}:wu,I2=O2(M2),B2=9007199254740991,A2=/^(?:0|[1-9]\d*)$/;function Su(e,t){var n=typeof e;return t=t??B2,!!t&&(n=="number"||n!="symbol"&&A2.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=j2}function Qi(e){return e!=null&&Ru(e.length)&&!Cu(e)}function V2(e,t,n){if(!xr(n))return!1;var r=typeof t;return(r=="number"?Qi(n)&&Su(t,n.length):r=="string"&&t in n)?el(n[t],e):!1}function U2(e){return H2(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&V2(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r-1}function tP(e,t){var n=this.__data__,r=Is(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function io(e){var t=-1,n=e==null?0:e.length;for(this.clear();++to?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:wP(e,t,n)}var SP="\\ud800-\\udfff",RP="\\u0300-\\u036f",kP="\\ufe20-\\ufe2f",PP="\\u20d0-\\u20ff",zP=RP+kP+PP,$P="\\ufe0e\\ufe0f",TP="\\u200d",OP=RegExp("["+TP+SP+zP+$P+"]");function up(e){return OP.test(e)}function FP(e){return e.split("")}var fp="\\ud800-\\udfff",MP="\\u0300-\\u036f",IP="\\ufe20-\\ufe2f",BP="\\u20d0-\\u20ff",AP=MP+IP+BP,DP="\\ufe0e\\ufe0f",_P="["+fp+"]",pc="["+AP+"]",bc="\\ud83c[\\udffb-\\udfff]",EP="(?:"+pc+"|"+bc+")",hp="[^"+fp+"]",vp="(?:\\ud83c[\\udde6-\\uddff]){2}",gp="[\\ud800-\\udbff][\\udc00-\\udfff]",NP="\\u200d",mp=EP+"?",pp="["+DP+"]?",LP="(?:"+NP+"(?:"+[hp,vp,gp].join("|")+")"+pp+mp+")*",HP=pp+mp+LP,jP="(?:"+[hp+pc+"?",pc,vp,gp,_P].join("|")+")",VP=RegExp(bc+"(?="+bc+")|"+jP+HP,"g");function UP(e){return e.match(VP)||[]}function WP(e){return up(e)?UP(e):FP(e)}function KP(e){return function(t){t=si(t);var n=up(t)?WP(t):void 0,r=n?n[0]:t.charAt(0),o=n?CP(n,1).join(""):t.slice(1);return r[e]()+o}}var bp=KP("toUpperCase");function qP(e){return bp(si(e).toLowerCase())}function YP(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++ol))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,v=!0,m=n&v$?new us:void 0;for(i.set(e,t),i.set(t,e);++f=t||k<0||f&&O>=i}function b(){var P=pd();if(p(P))return y(P);l=setTimeout(b,g(P))}function y(P){return l=void 0,v&&r?m(P):(r=o=void 0,a)}function R(){l!==void 0&&clearTimeout(l),c=0,r=d=o=l=void 0}function w(){return l===void 0?a:y(pd())}function C(){var P=pd(),k=p(P);if(r=arguments,o=this,d=P,k){if(l===void 0)return h(d);if(f)return clearTimeout(l),l=setTimeout(b,t),m(d)}return l===void 0&&(l=setTimeout(b,t)),a}return C.cancel=R,C.flush=w,C}function Cc(e,t,n){(n!==void 0&&!el(e[t],n)||n===void 0&&!(t in e))&&Qa(e,t,n)}function l3(e){return Ro(e)&&Qi(e)}function Sc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function s3(e){return N2(e,ap(e))}function d3(e,t,n,r,o,i,a){var l=Sc(e,n),d=Sc(t,n),c=a.get(d);if(c){Cc(e,n,c);return}var u=i?i(l,d,n+"",e,t,a):void 0,f=u===void 0;if(f){var v=cr(d),m=!v&&ds(d),h=!v&&!m&&Pu(d);u=d,v||m||h?cr(l)?u=l:l3(l)?u=P2(l):m?(f=!1,u=Kz(d)):h?(f=!1,u=a$(d)):u=[]:yP(d)||ss(d)?(u=l,ss(l)?u=s3(l):(!xr(l)||Cu(l))&&(u=l$(d))):f=!1}f&&(a.set(d,u),o(u,d,r,i,a),a.delete(d)),Cc(e,n,u)}function Lp(e,t,n,r,o){e!==t&&_p(t,function(i,a){if(o||(o=new Nr),xr(i))d3(e,t,a,n,Lp,r,o);else{var l=r?r(Sc(e,a),i,a+"",e,t,o):void 0;l===void 0&&(l=i),Cc(e,a,l)}},ap)}function c3(e,t){var n=-1,r=Qi(e)?Array(e.length):[];return Np(e,function(o,i,a){r[++n]=t(o,i,a)}),r}function u3(e,t){var n=cr(e)?Qm:c3;return n(e,Ds(t))}var f3=Object.prototype,h3=f3.hasOwnProperty,Hp=n3(function(e,t,n){h3.call(e,n)?e[n].push(t):Qa(e,n,[t])});function v3(e,t){return e>t}var jp=Mp(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});function g3(e,t){var n={};return t=Ds(t),Ep(e,function(r,o,i){Qa(n,o,t(r,o,i))}),n}function m3(e,t,n){for(var r=-1,o=e.length;++r{var i,a;return(a=(i=t?.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:rR[e]});return{dateLocaleRef:S(()=>{var i;return(i=n?.value)!==null&&i!==void 0?i:LR}),localeRef:r}}const ji="naive-ui-style";function Bt(e,t,n){if(!t)return;const r=oo(),o=S(()=>{const{value:l}=t;if(!l)return;const d=l[e];if(d)return d}),i=Be(Un,null),a=()=>{Ft(()=>{const{value:l}=n,d=`${l}${e}Rtl`;if(zC(d,r))return;const{value:c}=o;c&&c.style.mount({id:d,head:!0,anchorMetaName:ji,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:i?.styleMountTarget})})};return r?a():Oo(a),o}const er={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:y3,fontFamily:w3,lineHeight:C3}=er,Up=z("body",` + margin: 0; + font-size: ${y3}; + font-family: ${w3}; + line-height: ${C3}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[z("input",` + font-family: inherit; + font-size: inherit; + `)]);function ur(e,t,n){if(!t)return;const r=oo(),o=Be(Un,null),i=()=>{const a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:ji,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:o?.styleMountTarget}),o?.preflightStyleDisabled||Up.mount({id:"n-global",head:!0,anchorMetaName:ji,ssr:r,parent:o?.styleMountTarget})};r?i():Oo(i)}function ge(e,t,n,r,o,i){const a=oo(),l=Be(Un,null);if(n){const c=()=>{const u=i?.value;n.mount({id:u===void 0?t:u+t,head:!0,props:{bPrefix:u?`.${u}-`:void 0},anchorMetaName:ji,ssr:a,parent:l?.styleMountTarget}),l?.preflightStyleDisabled||Up.mount({id:"n-global",head:!0,anchorMetaName:ji,ssr:a,parent:l?.styleMountTarget})};a?c():Oo(c)}return S(()=>{var c;const{theme:{common:u,self:f,peers:v={}}={},themeOverrides:m={},builtinThemeOverrides:h={}}=o,{common:g,peers:p}=m,{common:b=void 0,[e]:{common:y=void 0,self:R=void 0,peers:w={}}={}}=l?.mergedThemeRef.value||{},{common:C=void 0,[e]:P={}}=l?.mergedThemeOverridesRef.value||{},{common:k,peers:O={}}=P,$=Di({},u||y||b||r.common,C,k,g),T=Di((c=f||R||r.self)===null||c===void 0?void 0:c($),h,P,m);return{common:$,self:T,peers:Di({},r.peers,w,v),peerOverrides:Di({},h.peers,O,p)}})}ge.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const S3=x("affix",[M("affixed",{position:"fixed"},[M("absolute-positioned",{position:"absolute"})])]);function R3(e){return e instanceof HTMLElement?e.scrollTop:window.scrollY}function k3(e){return e instanceof HTMLElement?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}const _s={listenTo:[String,Object,Function],top:Number,bottom:Number,triggerTop:Number,triggerBottom:Number,position:{type:String,default:"fixed"},offsetTop:{type:Number,validator:()=>!0,default:void 0},offsetBottom:{type:Number,validator:()=>!0,default:void 0},target:{type:Function,validator:()=>!0,default:void 0}},P3=In(_s),Wp=Y({name:"Affix",props:_s,setup(e){const{mergedClsPrefixRef:t}=Ee(e);ur("-affix",S3,t);let n=null;const r=B(!1),o=B(!1),i=B(null),a=B(null),l=S(()=>o.value||r.value),d=S(()=>{var p,b;return(b=(p=e.triggerTop)!==null&&p!==void 0?p:e.offsetTop)!==null&&b!==void 0?b:e.top}),c=S(()=>{var p,b;return(b=(p=e.top)!==null&&p!==void 0?p:e.triggerTop)!==null&&b!==void 0?b:e.offsetTop}),u=S(()=>{var p,b;return(b=(p=e.bottom)!==null&&p!==void 0?p:e.triggerBottom)!==null&&b!==void 0?b:e.offsetBottom}),f=S(()=>{var p,b;return(b=(p=e.triggerBottom)!==null&&p!==void 0?p:e.offsetBottom)!==null&&b!==void 0?b:e.bottom}),v=B(null),m=()=>{const{target:p,listenTo:b}=e;p?n=p():b?n=ou(b):n=document,n&&(n.addEventListener("scroll",h),h())};function h(){oi(g)}function g(){const{value:p}=v;if(!n||!p)return;const b=R3(n);if(l.value){a.value!==null&&bi.value&&(o.value=!1,i.value=null);return}const y=k3(n),R=p.getBoundingClientRect(),w=R.top-y.top,C=y.bottom-R.bottom,P=d.value,k=f.value;P!==void 0&&w<=P?(r.value=!0,a.value=b-(P-w)):(r.value=!1,a.value=null),k!==void 0&&C<=k?(o.value=!0,i.value=b+k-C):(o.value=!1,i.value=null)}return It(()=>{m()}),jt(()=>{n&&n.removeEventListener("scroll",h)}),{selfRef:v,affixed:l,mergedClsPrefix:t,mergedstyle:S(()=>{const p={};return r.value&&d.value!==void 0&&c.value!==void 0&&(p.top=`${c.value}px`),o.value&&f.value!==void 0&&u.value!==void 0&&(p.bottom=`${u.value}px`),p})}},render(){const{mergedClsPrefix:e}=this;return s("div",{ref:"selfRef",class:[`${e}-affix`,{[`${e}-affix--affixed`]:this.affixed,[`${e}-affix--absolute-positioned`]:this.position==="absolute"}],style:this.mergedstyle},this.$slots)}}),z3=x("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[z("svg",` + height: 1em; + width: 1em; + `)]),lt=Y({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){ur("-base-icon",z3,le(e,"clsPrefix"))},render(){return s("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Wr=Y({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=$n();return()=>s(_t,{name:"icon-switch-transition",appear:n.value},t)}}),Vi=Y({name:"Add",render(){return s("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),$3=Y({name:"ArrowBack",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},s("path",{d:"M0 0h24v24H0V0z",fill:"none"}),s("path",{d:"M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42-.39-.39-1.02-.39-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1z"}))}}),Kp=Y({name:"ArrowDown",render(){return s("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}}),T3=Y({name:"ArrowUp",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},s("g",{fill:"none"},s("path",{d:"M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z",fill:"currentColor"})))}});function Bn(e,t){const n=Y({render(){return t()}});return Y({name:bp(e),setup(){var r;const o=(r=Be(Un,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const a=(i=o?.value)===null||i===void 0?void 0:i[e];return a?a():s(n,null)}}})}const O3=Bn("attach",()=>s("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z"}))))),ko=Y({name:"Backward",render(){return s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),F3=Bn("cancel",()=>s("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z"}))))),Fu=Y({name:"Checkmark",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},s("g",{fill:"none"},s("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),qp=Y({name:"ChevronDown",render(){return s("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),M3=Y({name:"ChevronDownFilled",render(){return s("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),Mu=Y({name:"ChevronLeft",render(){return s("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),gi=Y({name:"ChevronRight",render(){return s("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),I3=Bn("clear",()=>s("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Iu=Bn("close",()=>s("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),rv=Bn("date",()=>s("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z"}))))),Yp=Bn("download",()=>s("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"}))))),B3=Y({name:"Empty",render(){return s("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),s("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),mi=Bn("error",()=>s("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),Gp=Y({name:"Eye",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),s("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),A3=Y({name:"EyeOff",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),s("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),s("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),s("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),s("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Po=Y({name:"FastBackward",render(){return s("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),zo=Y({name:"FastForward",render(){return s("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),D3=Y({name:"Filter",render(){return s("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),$o=Y({name:"Forward",render(){return s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),To=Bn("info",()=>s("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),ov=Y({name:"More",render(){return s("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),Xp=Y({name:"Remove",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))}}),_3=Y({name:"ResizeSmall",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},s("g",{fill:"none"},s("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),E3=Bn("retry",()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M320,146s24.36-12-64-12A160,160,0,1,0,416,294",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;"}),s("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),N3=Bn("rotateClockwise",()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),s("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),L3=Bn("rotateClockwise",()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),s("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Zp=Y({name:"Search",render(){return s("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:"enable-background: new 0 0 512 512"},s("path",{d:`M443.5,420.2L336.7,312.4c20.9-26.2,33.5-59.4,33.5-95.5c0-84.5-68.5-153-153.1-153S64,132.5,64,217s68.5,153,153.1,153 + c36.6,0,70.1-12.8,96.5-34.2l106.1,107.1c3.2,3.4,7.6,5.1,11.9,5.1c4.1,0,8.2-1.5,11.3-4.5C449.5,437.2,449.7,426.8,443.5,420.2z + M217.1,337.1c-32.1,0-62.3-12.5-85-35.2c-22.7-22.7-35.2-52.9-35.2-84.9c0-32.1,12.5-62.3,35.2-84.9c22.7-22.7,52.9-35.2,85-35.2 + c32.1,0,62.3,12.5,85,35.2c22.7,22.7,35.2,52.9,35.2,84.9c0,32.1-12.5,62.3-35.2,84.9C279.4,324.6,249.2,337.1,217.1,337.1z`}))}}),pi=Bn("success",()=>s("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),H3=Y({name:"Switcher",render(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},s("path",{d:"M12 8l10 8l-10 8z"}))}}),j3=Bn("time",()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z",style:` + fill: none; + stroke: currentColor; + stroke-miterlimit: 10; + stroke-width: 32px; + `}),s("polyline",{points:"256 128 256 272 352 272",style:` + fill: none; + stroke: currentColor; + stroke-linecap: round; + stroke-linejoin: round; + stroke-width: 32px; + `}))),V3=Bn("to",()=>s("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},s("g",{fill:"currentColor","fill-rule":"nonzero"},s("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))),U3=Bn("trash",()=>s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},s("path",{d:"M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),s("rect",{x:"32",y:"64",width:"448",height:"80",rx:"16",ry:"16",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),s("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),s("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),Bo=Bn("warning",()=>s("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{"fill-rule":"nonzero"},s("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),W3=Bn("zoomIn",()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),s("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),K3=Bn("zoomOut",()=>s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),s("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),{cubicBezierEaseInOut:q3}=er;function Fn({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${q3} !important`}={}){return[z("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),z("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),z("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const Y3=x("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[z(">",[F("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[z("&:hover",` + color: var(--n-clear-color-hover)!important; + `),z("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),F("placeholder",` + display: flex; + `),F("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Fn({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Rc=Y({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return ur("-base-clear",Y3,le(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-base-clear`},s(Wr,null,{default:()=>{var t,n;return this.show?s("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},ht(this.$slots.icon,()=>[s(lt,{clsPrefix:e},{default:()=>s(I3,null)})])):s("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),G3=x("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[M("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),z("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),ft("disabled",[z("&:hover",` + color: var(--n-close-icon-color-hover); + `),z("&:hover::before",` + background-color: var(--n-close-color-hover); + `),z("&:focus::before",` + background-color: var(--n-close-color-hover); + `),z("&:active",` + color: var(--n-close-icon-color-pressed); + `),z("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),M("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),M("round",[z("&::before",` + border-radius: 50%; + `)])]),lo=Y({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return ur("-base-close",G3,le(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return s(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},s(lt,{clsPrefix:t},{default:()=>s(Iu,null)}))}}}),Kr=Y({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:d}=e;d&&d()}function o(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:d}=e;d&&d()}function i(l){if(l.style.transition="none",e.width){const d=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${d}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const d=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${d}px`}l.offsetWidth}function a(l){var d;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(d=e.onAfterEnter)===null||d===void 0||d.call(e)}return()=>{const{group:l,width:d,appear:c,mode:u}=e,f=l?Rs:_t,v={name:d?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return l||(v.mode=u),s(f,v,t)}}}),qr=Y({props:{onFocus:Function,onBlur:Function},setup(e){return()=>s("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),X3=z([z("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),x("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[F("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Fn()]),F("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Fn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),F("container",` + animation: rotator 3s linear infinite both; + `,[F("icon",` + height: 1em; + width: 1em; + `)])])]),bd="1.6s",Z3={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},Tr=Y({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},Z3),setup(e){ur("-base-loading",X3,le(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return s("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},s(Wr,null,{default:()=>this.show?s("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},s("div",{class:`${e}-base-loading__container`},s("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},s("g",null,s("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:bd,fill:"freeze",repeatCount:"indefinite"}),s("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},s("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:bd,fill:"freeze",repeatCount:"indefinite"}),s("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:bd,fill:"freeze",repeatCount:"indefinite"})))))):s("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:iv}=er;function eo({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=iv,leaveCubicBezier:o=iv}={}){return[z(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),z(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),z(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),z(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const J3=x("base-menu-mask",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + padding: 14px; + overflow: hidden; +`,[eo()]),Q3=Y({name:"BaseMenuMask",props:{clsPrefix:{type:String,required:!0}},setup(e){ur("-base-menu-mask",J3,le(e,"clsPrefix"));const t=B(null);let n=null;const r=B(!1);return jt(()=>{n!==null&&window.clearTimeout(n)}),Object.assign({message:t,show:r},{showOnce(i,a=1500){n&&window.clearTimeout(n),r.value=!0,t.value=i,n=window.setTimeout(()=>{r.value=!1,t.value=null},a)}})},render(){return s(_t,{name:"fade-in-transition"},{default:()=>this.show?s("div",{class:`${this.clsPrefix}-base-menu-mask`},this.message):null})}}),ut={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},e5=pn(ut.neutralBase),Jp=pn(ut.neutralInvertBase),t5=`rgba(${Jp.slice(0,3).join(", ")}, `;function Ut(e){return`${t5+String(e)})`}function n5(e){const t=Array.from(Jp);return t[3]=Number(e),dt(e5,t)}const r5=Object.assign(Object.assign({name:"common"},er),{baseColor:ut.neutralBase,primaryColor:ut.primaryDefault,primaryColorHover:ut.primaryHover,primaryColorPressed:ut.primaryActive,primaryColorSuppl:ut.primarySuppl,infoColor:ut.infoDefault,infoColorHover:ut.infoHover,infoColorPressed:ut.infoActive,infoColorSuppl:ut.infoSuppl,successColor:ut.successDefault,successColorHover:ut.successHover,successColorPressed:ut.successActive,successColorSuppl:ut.successSuppl,warningColor:ut.warningDefault,warningColorHover:ut.warningHover,warningColorPressed:ut.warningActive,warningColorSuppl:ut.warningSuppl,errorColor:ut.errorDefault,errorColorHover:ut.errorHover,errorColorPressed:ut.errorActive,errorColorSuppl:ut.errorSuppl,textColorBase:ut.neutralTextBase,textColor1:Ut(ut.alpha1),textColor2:Ut(ut.alpha2),textColor3:Ut(ut.alpha3),textColorDisabled:Ut(ut.alpha4),placeholderColor:Ut(ut.alpha4),placeholderColorDisabled:Ut(ut.alpha5),iconColor:Ut(ut.alpha4),iconColorDisabled:Ut(ut.alpha5),iconColorHover:Ut(Number(ut.alpha4)*1.25),iconColorPressed:Ut(Number(ut.alpha4)*.8),opacity1:ut.alpha1,opacity2:ut.alpha2,opacity3:ut.alpha3,opacity4:ut.alpha4,opacity5:ut.alpha5,dividerColor:Ut(ut.alphaDivider),borderColor:Ut(ut.alphaBorder),closeIconColorHover:Ut(Number(ut.alphaClose)),closeIconColor:Ut(Number(ut.alphaClose)),closeIconColorPressed:Ut(Number(ut.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:Ut(ut.alpha4),clearColorHover:Ai(Ut(ut.alpha4),{alpha:1.25}),clearColorPressed:Ai(Ut(ut.alpha4),{alpha:.8}),scrollbarColor:Ut(ut.alphaScrollbar),scrollbarColorHover:Ut(ut.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Ut(ut.alphaProgressRail),railColor:Ut(ut.alphaRail),popoverColor:ut.neutralPopover,tableColor:ut.neutralCard,cardColor:ut.neutralCard,modalColor:ut.neutralModal,bodyColor:ut.neutralBody,tagColor:n5(ut.alphaTag),avatarColor:Ut(ut.alphaAvatar),invertedColor:ut.neutralBase,inputColor:Ut(ut.alphaInput),codeColor:Ut(ut.alphaCode),tabColor:Ut(ut.alphaTab),actionColor:Ut(ut.alphaAction),tableHeaderColor:Ut(ut.alphaAction),hoverColor:Ut(ut.alphaPending),tableColorHover:Ut(ut.alphaTablePending),tableColorStriped:Ut(ut.alphaTableStriped),pressedColor:Ut(ut.alphaPressed),opacityDisabled:ut.alphaDisabled,inputColorDisabled:Ut(ut.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),kt={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},o5=pn(kt.neutralBase),Qp=pn(kt.neutralInvertBase),i5=`rgba(${Qp.slice(0,3).join(", ")}, `;function av(e){return`${i5+String(e)})`}function _n(e){const t=Array.from(Qp);return t[3]=Number(e),dt(o5,t)}const Je=Object.assign(Object.assign({name:"common"},er),{baseColor:kt.neutralBase,primaryColor:kt.primaryDefault,primaryColorHover:kt.primaryHover,primaryColorPressed:kt.primaryActive,primaryColorSuppl:kt.primarySuppl,infoColor:kt.infoDefault,infoColorHover:kt.infoHover,infoColorPressed:kt.infoActive,infoColorSuppl:kt.infoSuppl,successColor:kt.successDefault,successColorHover:kt.successHover,successColorPressed:kt.successActive,successColorSuppl:kt.successSuppl,warningColor:kt.warningDefault,warningColorHover:kt.warningHover,warningColorPressed:kt.warningActive,warningColorSuppl:kt.warningSuppl,errorColor:kt.errorDefault,errorColorHover:kt.errorHover,errorColorPressed:kt.errorActive,errorColorSuppl:kt.errorSuppl,textColorBase:kt.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:_n(kt.alpha4),placeholderColor:_n(kt.alpha4),placeholderColorDisabled:_n(kt.alpha5),iconColor:_n(kt.alpha4),iconColorHover:Ai(_n(kt.alpha4),{lightness:.75}),iconColorPressed:Ai(_n(kt.alpha4),{lightness:.9}),iconColorDisabled:_n(kt.alpha5),opacity1:kt.alpha1,opacity2:kt.alpha2,opacity3:kt.alpha3,opacity4:kt.alpha4,opacity5:kt.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:_n(Number(kt.alphaClose)),closeIconColorHover:_n(Number(kt.alphaClose)),closeIconColorPressed:_n(Number(kt.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:_n(kt.alpha4),clearColorHover:Ai(_n(kt.alpha4),{lightness:.75}),clearColorPressed:Ai(_n(kt.alpha4),{lightness:.9}),scrollbarColor:av(kt.alphaScrollbar),scrollbarColorHover:av(kt.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:_n(kt.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:kt.neutralPopover,tableColor:kt.neutralCard,cardColor:kt.neutralCard,modalColor:kt.neutralModal,bodyColor:kt.neutralBody,tagColor:"#eee",avatarColor:_n(kt.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:_n(kt.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:kt.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),a5={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function l5(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:o,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},a5),{height:r,width:o,borderRadius:i,color:t,colorHover:n})}const Ln={name:"Scrollbar",common:Je,self:l5},s5=x("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[z(">",[x("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),z(">",[x("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),z(">, +",[x("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[M("horizontal",` + height: var(--n-scrollbar-height); + `,[z(">",[F("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),M("horizontal--top",` + top: var(--n-scrollbar-rail-top-horizontal-top); + right: var(--n-scrollbar-rail-right-horizontal-top); + bottom: var(--n-scrollbar-rail-bottom-horizontal-top); + left: var(--n-scrollbar-rail-left-horizontal-top); + `),M("horizontal--bottom",` + top: var(--n-scrollbar-rail-top-horizontal-bottom); + right: var(--n-scrollbar-rail-right-horizontal-bottom); + bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); + left: var(--n-scrollbar-rail-left-horizontal-bottom); + `),M("vertical",` + width: var(--n-scrollbar-width); + `,[z(">",[F("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),M("vertical--left",` + top: var(--n-scrollbar-rail-top-vertical-left); + right: var(--n-scrollbar-rail-right-vertical-left); + bottom: var(--n-scrollbar-rail-bottom-vertical-left); + left: var(--n-scrollbar-rail-left-vertical-left); + `),M("vertical--right",` + top: var(--n-scrollbar-rail-top-vertical-right); + right: var(--n-scrollbar-rail-right-vertical-right); + bottom: var(--n-scrollbar-rail-bottom-vertical-right); + left: var(--n-scrollbar-rail-left-vertical-right); + `),M("disabled",[z(">",[F("scrollbar","pointer-events: none;")])]),z(">",[F("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[eo(),z("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),d5=Object.assign(Object.assign({},ge.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),Zt=Y({name:"Scrollbar",props:d5,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=Bt("Scrollbar",r,t),i=B(null),a=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),m=B(null),h=B(null),g=B(null),p=B(0),b=B(0),y=B(!1),R=B(!1);let w=!1,C=!1,P,k,O=0,$=0,T=0,D=0;const I=YC(),A=ge("Scrollbar","-scrollbar",s5,Ln,e,t),E=S(()=>{const{value:K}=v,{value:H}=u,{value:pe}=h;return K===null||H===null||pe===null?0:Math.min(K,pe*K/H+Et(A.value.self.width)*1.5)}),N=S(()=>`${E.value}px`),U=S(()=>{const{value:K}=m,{value:H}=f,{value:pe}=g;return K===null||H===null||pe===null?0:pe*K/H+Et(A.value.self.height)*1.5}),q=S(()=>`${U.value}px`),J=S(()=>{const{value:K}=v,{value:H}=p,{value:pe}=u,{value:$e}=h;if(K===null||pe===null||$e===null)return 0;{const Oe=pe-K;return Oe?H/Oe*($e-E.value):0}}),ve=S(()=>`${J.value}px`),ae=S(()=>{const{value:K}=m,{value:H}=b,{value:pe}=f,{value:$e}=g;if(K===null||pe===null||$e===null)return 0;{const Oe=pe-K;return Oe?H/Oe*($e-U.value):0}}),W=S(()=>`${ae.value}px`),j=S(()=>{const{value:K}=v,{value:H}=u;return K!==null&&H!==null&&H>K}),_=S(()=>{const{value:K}=m,{value:H}=f;return K!==null&&H!==null&&H>K}),L=S(()=>{const{trigger:K}=e;return K==="none"||y.value}),Z=S(()=>{const{trigger:K}=e;return K==="none"||R.value}),ce=S(()=>{const{container:K}=e;return K?K():a.value}),ye=S(()=>{const{content:K}=e;return K?K():l.value}),_e=(K,H)=>{if(!e.scrollable)return;if(typeof K=="number"){je(K,H??0,0,!1,"auto");return}const{left:pe,top:$e,index:Oe,elSize:ne,position:Se,behavior:ee,el:Ce,debounce:Ue=!0}=K;(pe!==void 0||$e!==void 0)&&je(pe??0,$e??0,0,!1,ee),Ce!==void 0?je(0,Ce.offsetTop,Ce.offsetHeight,Ue,ee):Oe!==void 0&&ne!==void 0?je(0,Oe*ne,ne,Ue,ee):Se==="bottom"?je(0,Number.MAX_SAFE_INTEGER,0,!1,ee):Se==="top"&&je(0,0,0,!1,ee)},V=pu(()=>{e.container||_e({top:p.value,left:b.value})}),ze=()=>{V.isDeactivated||he()},Ae=K=>{if(V.isDeactivated)return;const{onResize:H}=e;H&&H(K),he()},Ne=(K,H)=>{if(!e.scrollable)return;const{value:pe}=ce;pe&&(typeof K=="object"?pe.scrollBy(K):pe.scrollBy(K,H||0))};function je(K,H,pe,$e,Oe){const{value:ne}=ce;if(ne){if($e){const{scrollTop:Se,offsetHeight:ee}=ne;if(H>Se){H+pe<=Se+ee||ne.scrollTo({left:K,top:H+pe-ee,behavior:Oe});return}}ne.scrollTo({left:K,top:H,behavior:Oe})}}function qe(){ue(),G(),he()}function gt(){at()}function at(){Te(),Q()}function Te(){k!==void 0&&window.clearTimeout(k),k=window.setTimeout(()=>{R.value=!1},e.duration)}function Q(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{y.value=!1},e.duration)}function ue(){P!==void 0&&window.clearTimeout(P),y.value=!0}function G(){k!==void 0&&window.clearTimeout(k),R.value=!0}function fe(K){const{onScroll:H}=e;H&&H(K),we()}function we(){const{value:K}=ce;K&&(p.value=K.scrollTop,b.value=K.scrollLeft*(o?.value?-1:1))}function te(){const{value:K}=ye;K&&(u.value=K.offsetHeight,f.value=K.offsetWidth);const{value:H}=ce;H&&(v.value=H.offsetHeight,m.value=H.offsetWidth);const{value:pe}=c,{value:$e}=d;pe&&(g.value=pe.offsetWidth),$e&&(h.value=$e.offsetHeight)}function X(){const{value:K}=ce;K&&(p.value=K.scrollTop,b.value=K.scrollLeft*(o?.value?-1:1),v.value=K.offsetHeight,m.value=K.offsetWidth,u.value=K.scrollHeight,f.value=K.scrollWidth);const{value:H}=c,{value:pe}=d;H&&(g.value=H.offsetWidth),pe&&(h.value=pe.offsetHeight)}function he(){e.scrollable&&(e.useUnifiedContainer?X():(te(),we()))}function Ie(K){var H;return!(!((H=i.value)===null||H===void 0)&&H.contains(Jn(K)))}function me(K){K.preventDefault(),K.stopPropagation(),C=!0,Ct("mousemove",window,Ke,!0),Ct("mouseup",window,st,!0),$=b.value,T=o?.value?window.innerWidth-K.clientX:K.clientX}function Ke(K){if(!C)return;P!==void 0&&window.clearTimeout(P),k!==void 0&&window.clearTimeout(k);const{value:H}=m,{value:pe}=f,{value:$e}=U;if(H===null||pe===null)return;const ne=(o?.value?window.innerWidth-K.clientX-T:K.clientX-T)*(pe-H)/(H-$e),Se=pe-H;let ee=$+ne;ee=Math.min(Se,ee),ee=Math.max(ee,0);const{value:Ce}=ce;if(Ce){Ce.scrollLeft=ee*(o?.value?-1:1);const{internalOnUpdateScrollLeft:Ue}=e;Ue&&Ue(ee)}}function st(K){K.preventDefault(),K.stopPropagation(),wt("mousemove",window,Ke,!0),wt("mouseup",window,st,!0),C=!1,he(),Ie(K)&&at()}function xt(K){K.preventDefault(),K.stopPropagation(),w=!0,Ct("mousemove",window,vt,!0),Ct("mouseup",window,bt,!0),O=p.value,D=K.clientY}function vt(K){if(!w)return;P!==void 0&&window.clearTimeout(P),k!==void 0&&window.clearTimeout(k);const{value:H}=v,{value:pe}=u,{value:$e}=E;if(H===null||pe===null)return;const ne=(K.clientY-D)*(pe-H)/(H-$e),Se=pe-H;let ee=O+ne;ee=Math.min(Se,ee),ee=Math.max(ee,0);const{value:Ce}=ce;Ce&&(Ce.scrollTop=ee)}function bt(K){K.preventDefault(),K.stopPropagation(),wt("mousemove",window,vt,!0),wt("mouseup",window,bt,!0),w=!1,he(),Ie(K)&&at()}Ft(()=>{const{value:K}=_,{value:H}=j,{value:pe}=t,{value:$e}=c,{value:Oe}=d;$e&&(K?$e.classList.remove(`${pe}-scrollbar-rail--disabled`):$e.classList.add(`${pe}-scrollbar-rail--disabled`)),Oe&&(H?Oe.classList.remove(`${pe}-scrollbar-rail--disabled`):Oe.classList.add(`${pe}-scrollbar-rail--disabled`))}),It(()=>{e.container||he()}),jt(()=>{P!==void 0&&window.clearTimeout(P),k!==void 0&&window.clearTimeout(k),wt("mousemove",window,vt,!0),wt("mouseup",window,bt,!0)});const pt=S(()=>{const{common:{cubicBezierEaseInOut:K},self:{color:H,colorHover:pe,height:$e,width:Oe,borderRadius:ne,railInsetHorizontalTop:Se,railInsetHorizontalBottom:ee,railInsetVerticalRight:Ce,railInsetVerticalLeft:Ue,railColor:Ye}}=A.value,{top:se,right:Me,bottom:re,left:ke}=cn(Se),{top:De,right:Qe,bottom:rt,left:oe}=cn(ee),{top:Re,right:We,bottom:de,left:Pe}=cn(o?.value?ph(Ce):Ce),{top:Le,right:Ze,bottom:et,left:$t}=cn(o?.value?ph(Ue):Ue);return{"--n-scrollbar-bezier":K,"--n-scrollbar-color":H,"--n-scrollbar-color-hover":pe,"--n-scrollbar-border-radius":ne,"--n-scrollbar-width":Oe,"--n-scrollbar-height":$e,"--n-scrollbar-rail-top-horizontal-top":se,"--n-scrollbar-rail-right-horizontal-top":Me,"--n-scrollbar-rail-bottom-horizontal-top":re,"--n-scrollbar-rail-left-horizontal-top":ke,"--n-scrollbar-rail-top-horizontal-bottom":De,"--n-scrollbar-rail-right-horizontal-bottom":Qe,"--n-scrollbar-rail-bottom-horizontal-bottom":rt,"--n-scrollbar-rail-left-horizontal-bottom":oe,"--n-scrollbar-rail-top-vertical-right":Re,"--n-scrollbar-rail-right-vertical-right":We,"--n-scrollbar-rail-bottom-vertical-right":de,"--n-scrollbar-rail-left-vertical-right":Pe,"--n-scrollbar-rail-top-vertical-left":Le,"--n-scrollbar-rail-right-vertical-left":Ze,"--n-scrollbar-rail-bottom-vertical-left":et,"--n-scrollbar-rail-left-vertical-left":$t,"--n-scrollbar-rail-color":Ye}}),He=n?Xe("scrollbar",void 0,pt,e):void 0;return Object.assign(Object.assign({},{scrollTo:_e,scrollBy:Ne,sync:he,syncUnifiedContainer:X,handleMouseEnterWrapper:qe,handleMouseLeaveWrapper:gt}),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:p,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:d,xRailRef:c,needYBar:j,needXBar:_,yBarSizePx:N,xBarSizePx:q,yBarTopPx:ve,xBarLeftPx:W,isShowXBar:L,isShowYBar:Z,isIos:I,handleScroll:fe,handleContentResize:ze,handleContainerResize:Ae,handleYScrollMouseDown:xt,handleXScrollMouseDown:me,cssVars:n?void 0:pt,themeClass:He?.themeClass,onRender:He?.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:d}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",u=(m,h)=>s("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${a}`,m],"data-scrollbar-rail":!0,style:[h||"",this.verticalRailStyle],"aria-hidden":!0},s(c?gc:_t,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?s("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var m,h;return(m=this.onRender)===null||m===void 0||m.call(this),s("div",Pn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(h=t.default)===null||h===void 0?void 0:h.call(t):s("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},s(Nn,{onResize:this.handleContentResize},{default:()=>s("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:u(void 0,void 0),d&&s("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},s(c?gc:_t,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?s("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},v=this.container?f():s(Nn,{onResize:this.handleContainerResize},{default:f});return i?s(qt,null,v,u(this.themeClass,this.cssVars)):v}}),Ui=Zt;function lv(e){return Array.isArray(e)?e:[e]}const kc={STOP:"STOP"};function eb(e,t){const n=t(e);e.children!==void 0&&n!==kc.STOP&&e.children.forEach(r=>eb(r,t))}function c5(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?a=>{a.isLeaf||(r.push(a.key),i(a.children))}:a=>{a.isLeaf||(a.isGroup||r.push(a.key),i(a.children))};function i(a){a.forEach(o)}return i(e),r}function u5(e,t){const{isLeaf:n}=e;return n!==void 0?n:!t(e)}function f5(e){return e.children}function h5(e){return e.key}function v5(){return!1}function g5(e,t){const{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function m5(e){return e.disabled===!0}function p5(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function xd(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function yd(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function b5(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)||n.add(r)}),Array.from(n)}function x5(e,t){const n=new Set(e);return t.forEach(r=>{n.has(r)&&n.delete(r)}),Array.from(n)}function y5(e){return e?.type==="group"}function tb(e){const t=new Map;return e.forEach((n,r)=>{t.set(n.key,r)}),n=>{var r;return(r=t.get(n))!==null&&r!==void 0?r:null}}class nb extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function w5(e,t,n,r){return fs(t.concat(e),n,r,!1)}function C5(e,t){const n=new Set;return e.forEach(r=>{const o=t.treeNodeMap.get(r);if(o!==void 0){let i=o.parent;for(;i!==null&&!(i.disabled||n.has(i.key));)n.add(i.key),i=i.parent}}),n}function S5(e,t,n,r){const o=fs(t,n,r,!1),i=fs(e,n,r,!0),a=C5(e,n),l=[];return o.forEach(d=>{(i.has(d)||a.has(d))&&l.push(d)}),l.forEach(d=>o.delete(d)),o}function wd(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:l,checkStrategy:d,allowNotLoaded:c}=e;if(!a)return r!==void 0?{checkedKeys:b5(n,r),indeterminateKeys:Array.from(i)}:o!==void 0?{checkedKeys:x5(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let f;o!==void 0?f=S5(o,n,t,c):r!==void 0?f=w5(r,n,t,c):f=fs(n,t,c,!1);const v=d==="parent",m=d==="child"||l,h=f,g=new Set,p=Math.max.apply(null,Array.from(u.keys()));for(let b=p;b>=0;b-=1){const y=b===0,R=u.get(b);for(const w of R){if(w.isLeaf)continue;const{key:C,shallowLoaded:P}=w;if(m&&P&&w.children.forEach(T=>{!T.disabled&&!T.isLeaf&&T.shallowLoaded&&h.has(T.key)&&h.delete(T.key)}),w.disabled||!P)continue;let k=!0,O=!1,$=!0;for(const T of w.children){const D=T.key;if(!T.disabled){if($&&($=!1),h.has(D))O=!0;else if(g.has(D)){O=!0,k=!1;break}else if(k=!1,O)break}}k&&!$?(v&&w.children.forEach(T=>{!T.disabled&&h.has(T.key)&&h.delete(T.key)}),h.add(C)):O&&g.add(C),y&&m&&h.has(C)&&h.delete(C)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(g)}}function fs(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,l=new Set(e);return e.forEach(d=>{const c=o.get(d);c!==void 0&&eb(c,u=>{if(u.disabled)return kc.STOP;const{key:f}=u;if(!a.has(f)&&(a.add(f),l.add(f),p5(u.rawNode,i))){if(r)return kc.STOP;if(!n)throw new nb}})}),l}function R5(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=e==null?null:(o=i.get(e))!==null&&o!==void 0?o:null;const l={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return l.treeNode=null,l;for(;a;)!a.ignored&&(t||!a.isGroup)&&l.treeNodePath.push(a),a=a.parent;return l.treeNodePath.reverse(),n||l.treeNodePath.pop(),l.keyPath=l.treeNodePath.map(d=>d.key),l}function k5(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function P5(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function sv(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o=t==="prev"?z5:P5,i={reverse:t==="prev"};let a=!1,l=null;function d(c){if(c!==null){if(c===e){if(!a)a=!0;else if(!e.disabled&&!e.isGroup){l=e;return}}else if((!c.disabled||r)&&!c.ignored&&!c.isGroup){l=c;return}if(c.isGroup){const u=Bu(c,i);u!==null?l=u:d(o(c,n))}else{const u=o(c,!1);if(u!==null)d(u);else{const f=$5(c);f?.isGroup?d(o(f,n)):n&&d(o(c,!0))}}}}return d(e),l}function z5(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:o===0?null:n[o-1]}function $5(e){return e.parent}function Bu(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:o}=r,i=n?o-1:0,a=n?-1:o,l=n?-1:1;for(let d=i;d!==a;d+=l){const c=r[d];if(!c.disabled&&!c.ignored)if(c.isGroup){const u=Bu(c,t);if(u!==null)return u}else return c}}return null}const T5={getChild(){return this.ignored?null:Bu(this)},getParent(){const{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return sv(this,"next",e)},getPrev(e={}){return sv(this,"prev",e)}};function Pc(e,t){const n=t?new Set(t):void 0,r=[];function o(i){i.forEach(a=>{r.push(a),!(a.isLeaf||!a.children||a.ignored)&&(a.isGroup||n===void 0||n.has(a.key))&&o(a.children)})}return o(e),r}function O5(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function rb(e,t,n,r,o,i=null,a=0){const l=[];return e.forEach((d,c)=>{var u;const f=Object.create(r);if(f.rawNode=d,f.siblings=l,f.level=a,f.index=c,f.isFirstChild=c===0,f.isLastChild=c+1===e.length,f.parent=i,!f.ignored){const v=o(d);Array.isArray(v)&&(f.children=rb(v,t,n,r,o,f,a+1))}l.push(f),t.set(f.key,f),n.has(a)||n.set(a,[]),(u=n.get(a))===null||u===void 0||u.push(f)}),l}function Gn(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=m5,getIgnored:a=v5,getIsGroup:l=y5,getKey:d=h5}=t,c=(n=t.getChildren)!==null&&n!==void 0?n:f5,u=t.ignoreEmptyChildren?w=>{const C=c(w);return Array.isArray(C)?C.length?C:null:C}:c,f=Object.assign({get key(){return d(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return l(this.rawNode)},get isLeaf(){return u5(this.rawNode,u)},get shallowLoaded(){return g5(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(w){return O5(this,w)}},T5),v=rb(e,r,o,f,u);function m(w){if(w==null)return null;const C=r.get(w);return C&&!C.isGroup&&!C.ignored?C:null}function h(w){if(w==null)return null;const C=r.get(w);return C&&!C.ignored?C:null}function g(w,C){const P=h(w);return P?P.getPrev(C):null}function p(w,C){const P=h(w);return P?P.getNext(C):null}function b(w){const C=h(w);return C?C.getParent():null}function y(w){const C=h(w);return C?C.getChild():null}const R={treeNodes:v,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:u,getFlattenedNodes(w){return Pc(v,w)},getNode:m,getPrev:g,getNext:p,getParent:b,getChild:y,getFirstAvailableNode(){return k5(v)},getPath(w,C={}){return R5(w,C,R)},getCheckedKeys(w,C={}){const{cascade:P=!0,leafOnly:k=!1,checkStrategy:O="all",allowNotLoaded:$=!1}=C;return wd({checkedKeys:xd(w),indeterminateKeys:yd(w),cascade:P,leafOnly:k,checkStrategy:O,allowNotLoaded:$},R)},check(w,C,P={}){const{cascade:k=!0,leafOnly:O=!1,checkStrategy:$="all",allowNotLoaded:T=!1}=P;return wd({checkedKeys:xd(C),indeterminateKeys:yd(C),keysToCheck:w==null?[]:lv(w),cascade:k,leafOnly:O,checkStrategy:$,allowNotLoaded:T},R)},uncheck(w,C,P={}){const{cascade:k=!0,leafOnly:O=!1,checkStrategy:$="all",allowNotLoaded:T=!1}=P;return wd({checkedKeys:xd(C),indeterminateKeys:yd(C),keysToUncheck:w==null?[]:lv(w),cascade:k,leafOnly:O,checkStrategy:$,allowNotLoaded:T},R)},getNonLeafKeys(w={}){return c5(v,w)}};return R}const F5={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function M5(e){const{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:o,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:d}=e;return Object.assign(Object.assign({},F5),{fontSizeTiny:o,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:d,textColor:t,iconColor:n,extraTextColor:r})}const Ao={name:"Empty",common:Je,self:M5},I5=x("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[F("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[z("+",[F("description",` + margin-top: 8px; + `)])]),F("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),F("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),ob=Object.assign(Object.assign({},ge.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),to=Y({name:"Empty",props:ob,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=Ee(e),o=ge("Empty","-empty",I5,Ao,e,t),{localeRef:i}=on("Empty"),a=S(()=>{var u,f,v;return(u=e.description)!==null&&u!==void 0?u:(v=(f=r?.value)===null||f===void 0?void 0:f.Empty)===null||v===void 0?void 0:v.description}),l=S(()=>{var u,f;return((f=(u=r?.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.renderIcon)||(()=>s(B3,null))}),d=S(()=>{const{size:u}=e,{common:{cubicBezierEaseInOut:f},self:{[be("iconSize",u)]:v,[be("fontSize",u)]:m,textColor:h,iconColor:g,extraTextColor:p}}=o.value;return{"--n-icon-size":v,"--n-font-size":m,"--n-bezier":f,"--n-text-color":h,"--n-icon-color":g,"--n-extra-text-color":p}}),c=n?Xe("empty",S(()=>{let u="";const{size:f}=e;return u+=f[0],u}),d,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:S(()=>a.value||i.value.description),cssVars:n?void 0:d,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:n}=this;return n?.(),s("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?s("div",{class:`${t}-empty__icon`},e.icon?e.icon():s(lt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?s("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?s("div",{class:`${t}-empty__extra`},e.extra()):null)}}),B5={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function A5(e){const{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:o,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:d,opacityDisabled:c,hoverColor:u,fontSizeTiny:f,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:h,fontSizeHuge:g,heightTiny:p,heightSmall:b,heightMedium:y,heightLarge:R,heightHuge:w}=e;return Object.assign(Object.assign({},B5),{optionFontSizeTiny:f,optionFontSizeSmall:v,optionFontSizeMedium:m,optionFontSizeLarge:h,optionFontSizeHuge:g,optionHeightTiny:p,optionHeightSmall:b,optionHeightMedium:y,optionHeightLarge:R,optionHeightHuge:w,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:o,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:d,optionOpacityDisabled:c,optionCheckColor:d,optionColorPending:u,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:u,actionTextColor:i,loadingColor:d})}const ea={name:"InternalSelectMenu",common:Je,peers:{Scrollbar:Ln,Empty:Ao},self:A5},dv=Y({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=Be(hu);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:n,nodeProps:r,tmNode:{rawNode:o}}=this,i=r?.(o),a=t?t(o,!1):Wt(o[this.labelField],o,!1),l=s("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i?.class]}),a);return o.render?o.render({node:l,option:o}):n?n({node:l,option:o,selected:!1}):l}});function D5(e,t){return s(_t,{name:"fade-in-scale-up-transition"},{default:()=>e?s(lt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>s(Fu)}):null})}const cv=Y({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:o,renderLabelRef:i,renderOptionRef:a,labelFieldRef:l,valueFieldRef:d,showCheckmarkRef:c,nodePropsRef:u,handleOptionClick:f,handleOptionMouseEnter:v}=Be(hu),m=it(()=>{const{value:b}=n;return b?e.tmNode.key===b.key:!1});function h(b){const{tmNode:y}=e;y.disabled||f(b,y)}function g(b){const{tmNode:y}=e;y.disabled||v(b,y)}function p(b){const{tmNode:y}=e,{value:R}=m;y.disabled||R||v(b,y)}return{multiple:r,isGrouped:it(()=>{const{tmNode:b}=e,{parent:y}=b;return y&&y.rawNode.type==="group"}),showCheckmark:c,nodeProps:u,isPending:m,isSelected:it(()=>{const{value:b}=t,{value:y}=r;if(b===null)return!1;const R=e.tmNode.rawNode[d.value];if(y){const{value:w}=o;return w.has(R)}else return b===R}),labelField:l,renderLabel:i,renderOption:a,handleMouseMove:p,handleMouseEnter:g,handleClick:h}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:n,isPending:r,isGrouped:o,showCheckmark:i,nodeProps:a,renderOption:l,renderLabel:d,handleClick:c,handleMouseEnter:u,handleMouseMove:f}=this,v=D5(n,e),m=d?[d(t,n),i&&v]:[Wt(t[this.labelField],t,n),i&&v],h=a?.(t),g=s("div",Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:n,[`${e}-base-select-option--grouped`]:o,[`${e}-base-select-option--pending`]:r,[`${e}-base-select-option--show-checkmark`]:i}],style:[h?.style||"",t.style||""],onClick:Fa([c,h?.onClick]),onMouseenter:Fa([u,h?.onMouseenter]),onMousemove:Fa([f,h?.onMousemove])}),s("div",{class:`${e}-base-select-option__content`},m));return t.render?t.render({node:g,option:t,selected:n}):l?l({node:g,option:t,selected:n}):g}}),{cubicBezierEaseIn:uv,cubicBezierEaseOut:fv}=er;function Cn({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[z("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${uv}, transform ${t} ${uv} ${o&&`,${o}`}`}),z("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${fv}, transform ${t} ${fv} ${o&&`,${o}`}`}),z("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),z("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const _5=x("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[x("scrollbar",` + max-height: var(--n-height); + `),x("virtual-list",` + max-height: var(--n-height); + `),x("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[F("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),x("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),x("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),F("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),F("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),F("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),F("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),x("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),x("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[M("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),z("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),z("&:active",` + color: var(--n-option-text-color-pressed); + `),M("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),M("pending",[z("&::before",` + background-color: var(--n-option-color-pending); + `)]),M("selected",` + color: var(--n-option-text-color-active); + `,[z("&::before",` + background-color: var(--n-option-color-active); + `),M("pending",[z("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),M("disabled",` + cursor: not-allowed; + `,[ft("selected",` + color: var(--n-option-text-color-disabled); + `),M("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),F("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[Cn({enterScale:"0.5"})])])]),tl=Y({name:"InternalSelectMenu",props:Object.assign(Object.assign({},ge.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=Bt("InternalSelectMenu",n,t),o=ge("InternalSelectMenu","-internal-select-menu",_5,ea,e,le(e,"clsPrefix")),i=B(null),a=B(null),l=B(null),d=S(()=>e.treeMate.getFlattenedNodes()),c=S(()=>tb(d.value)),u=B(null);function f(){const{treeMate:j}=e;let _=null;const{value:L}=e;L===null?_=j.getFirstAvailableNode():(e.multiple?_=j.getNode((L||[])[(L||[]).length-1]):_=j.getNode(L),(!_||_.disabled)&&(_=j.getFirstAvailableNode())),E(_||null)}function v(){const{value:j}=u;j&&!e.treeMate.getNode(j.key)&&(u.value=null)}let m;ct(()=>e.show,j=>{j?m=ct(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?f():v(),zt(N)):v()},{immediate:!0}):m?.()},{immediate:!0}),jt(()=>{m?.()});const h=S(()=>Et(o.value.self[be("optionHeight",e.size)])),g=S(()=>cn(o.value.self[be("padding",e.size)])),p=S(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),b=S(()=>{const j=d.value;return j&&j.length===0});function y(j){const{onToggle:_}=e;_&&_(j)}function R(j){const{onScroll:_}=e;_&&_(j)}function w(j){var _;(_=l.value)===null||_===void 0||_.sync(),R(j)}function C(){var j;(j=l.value)===null||j===void 0||j.sync()}function P(){const{value:j}=u;return j||null}function k(j,_){_.disabled||E(_,!1)}function O(j,_){_.disabled||y(_)}function $(j){var _;en(j,"action")||(_=e.onKeyup)===null||_===void 0||_.call(e,j)}function T(j){var _;en(j,"action")||(_=e.onKeydown)===null||_===void 0||_.call(e,j)}function D(j){var _;(_=e.onMousedown)===null||_===void 0||_.call(e,j),!e.focusable&&j.preventDefault()}function I(){const{value:j}=u;j&&E(j.getNext({loop:!0}),!0)}function A(){const{value:j}=u;j&&E(j.getPrev({loop:!0}),!0)}function E(j,_=!1){u.value=j,_&&N()}function N(){var j,_;const L=u.value;if(!L)return;const Z=c.value(L.key);Z!==null&&(e.virtualScroll?(j=a.value)===null||j===void 0||j.scrollTo({index:Z}):(_=l.value)===null||_===void 0||_.scrollTo({index:Z,elSize:h.value}))}function U(j){var _,L;!((_=i.value)===null||_===void 0)&&_.contains(j.target)&&((L=e.onFocus)===null||L===void 0||L.call(e,j))}function q(j){var _,L;!((_=i.value)===null||_===void 0)&&_.contains(j.relatedTarget)||(L=e.onBlur)===null||L===void 0||L.call(e,j)}ot(hu,{handleOptionMouseEnter:k,handleOptionClick:O,valueSetRef:p,pendingTmNodeRef:u,nodePropsRef:le(e,"nodeProps"),showCheckmarkRef:le(e,"showCheckmark"),multipleRef:le(e,"multiple"),valueRef:le(e,"value"),renderLabelRef:le(e,"renderLabel"),renderOptionRef:le(e,"renderOption"),labelFieldRef:le(e,"labelField"),valueFieldRef:le(e,"valueField")}),ot(Rm,i),It(()=>{const{value:j}=l;j&&j.sync()});const J=S(()=>{const{size:j}=e,{common:{cubicBezierEaseInOut:_},self:{height:L,borderRadius:Z,color:ce,groupHeaderTextColor:ye,actionDividerColor:_e,optionTextColorPressed:V,optionTextColor:ze,optionTextColorDisabled:Ae,optionTextColorActive:Ne,optionOpacityDisabled:je,optionCheckColor:qe,actionTextColor:gt,optionColorPending:at,optionColorActive:Te,loadingColor:Q,loadingSize:ue,optionColorActivePending:G,[be("optionFontSize",j)]:fe,[be("optionHeight",j)]:we,[be("optionPadding",j)]:te}}=o.value;return{"--n-height":L,"--n-action-divider-color":_e,"--n-action-text-color":gt,"--n-bezier":_,"--n-border-radius":Z,"--n-color":ce,"--n-option-font-size":fe,"--n-group-header-text-color":ye,"--n-option-check-color":qe,"--n-option-color-pending":at,"--n-option-color-active":Te,"--n-option-color-active-pending":G,"--n-option-height":we,"--n-option-opacity-disabled":je,"--n-option-text-color":ze,"--n-option-text-color-active":Ne,"--n-option-text-color-disabled":Ae,"--n-option-text-color-pressed":V,"--n-option-padding":te,"--n-option-padding-left":cn(te,"left"),"--n-option-padding-right":cn(te,"right"),"--n-loading-color":Q,"--n-loading-size":ue}}),{inlineThemeDisabled:ve}=e,ae=ve?Xe("internal-select-menu",S(()=>e.size[0]),J,e):void 0,W={selfRef:i,next:I,prev:A,getPendingTmNode:P};return Os(i,e.onResize),Object.assign({mergedTheme:o,mergedClsPrefix:t,rtlEnabled:r,virtualListRef:a,scrollbarRef:l,itemSize:h,padding:g,flattenedNodes:d,empty:b,virtualListContainer(){const{value:j}=a;return j?.listElRef},virtualListContent(){const{value:j}=a;return j?.itemsElRef},doScroll:R,handleFocusin:U,handleFocusout:q,handleKeyUp:$,handleKeyDown:T,handleMouseDown:D,handleVirtualListResize:C,handleVirtualListScroll:w,cssVars:ve?void 0:J,themeClass:ae?.themeClass,onRender:ae?.onRender},W)},render(){const{$slots:e,virtualScroll:t,clsPrefix:n,mergedTheme:r,themeClass:o,onRender:i}=this;return i?.(),s("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,this.rtlEnabled&&`${n}-base-select-menu--rtl`,o,this.multiple&&`${n}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},yt(e.header,a=>a&&s("div",{class:`${n}-base-select-menu__header`,"data-header":!0,key:"header"},a)),this.loading?s("div",{class:`${n}-base-select-menu__loading`},s(Tr,{clsPrefix:n,strokeWidth:20})):this.empty?s("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},ht(e.empty,()=>[s(to,{theme:r.peers.Empty,themeOverrides:r.peerOverrides.Empty,size:this.size})])):s(Zt,{ref:"scrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?s($r,{ref:"virtualListRef",class:`${n}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:a})=>a.isGroup?s(dv,{key:a.key,clsPrefix:n,tmNode:a}):a.ignored?null:s(cv,{clsPrefix:n,key:a.key,tmNode:a})}):s("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(a=>a.isGroup?s(dv,{key:a.key,clsPrefix:n,tmNode:a}):s(cv,{clsPrefix:n,key:a.key,tmNode:a})))}),yt(e.action,a=>a&&[s("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},a),s(qr,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),E5={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function N5(e){const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},E5),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}const bi={name:"Popover",common:Je,peers:{Scrollbar:Ln},self:N5},Cd={top:"bottom",bottom:"top",left:"right",right:"left"},Rn="var(--n-arrow-height) * 1.414",L5=z([x("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[z(">",[x("scrollbar",` + height: inherit; + max-height: inherit; + `)]),ft("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[ft("scrollable",[ft("show-header-or-footer","padding: var(--n-padding);")])]),F("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),F("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),M("scrollable, show-header-or-footer",[F("content",` + padding: var(--n-padding); + `)])]),x("popover-shared",` + transform-origin: inherit; + `,[x("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[x("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${Rn}); + height: calc(${Rn}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),z("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),z("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),z("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),z("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),vr("top-start",` + top: calc(${Rn} / -2); + left: calc(${Gr("top-start")} - var(--v-offset-left)); + `),vr("top",` + top: calc(${Rn} / -2); + transform: translateX(calc(${Rn} / -2)) rotate(45deg); + left: 50%; + `),vr("top-end",` + top: calc(${Rn} / -2); + right: calc(${Gr("top-end")} + var(--v-offset-left)); + `),vr("bottom-start",` + bottom: calc(${Rn} / -2); + left: calc(${Gr("bottom-start")} - var(--v-offset-left)); + `),vr("bottom",` + bottom: calc(${Rn} / -2); + transform: translateX(calc(${Rn} / -2)) rotate(45deg); + left: 50%; + `),vr("bottom-end",` + bottom: calc(${Rn} / -2); + right: calc(${Gr("bottom-end")} + var(--v-offset-left)); + `),vr("left-start",` + left: calc(${Rn} / -2); + top: calc(${Gr("left-start")} - var(--v-offset-top)); + `),vr("left",` + left: calc(${Rn} / -2); + transform: translateY(calc(${Rn} / -2)) rotate(45deg); + top: 50%; + `),vr("left-end",` + left: calc(${Rn} / -2); + bottom: calc(${Gr("left-end")} + var(--v-offset-top)); + `),vr("right-start",` + right: calc(${Rn} / -2); + top: calc(${Gr("right-start")} - var(--v-offset-top)); + `),vr("right",` + right: calc(${Rn} / -2); + transform: translateY(calc(${Rn} / -2)) rotate(45deg); + top: 50%; + `),vr("right-end",` + right: calc(${Rn} / -2); + bottom: calc(${Gr("right-end")} + var(--v-offset-top)); + `),...u3({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map(o=>{const i=o.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${Rn}) / 2)`,d=Gr(o);return z(`[v-placement="${o}"] >`,[x("popover-shared",[M("center-arrow",[x("popover-arrow",`${t}: calc(max(${l}, ${d}) ${i?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function Gr(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function vr(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return z(`[v-placement="${e}"] >`,[x("popover-shared",` + margin-${Cd[n]}: var(--n-space); + `,[M("show-arrow",` + margin-${Cd[n]}: var(--n-space-arrow); + `),M("overlap",` + margin: 0; + `),FC("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${n}: 100%; + ${Cd[n]}: auto; + ${r} + `,[x("popover-arrow",t)])])])}const ib=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function ab({arrowClass:e,arrowStyle:t,arrowWrapperClass:n,arrowWrapperStyle:r,clsPrefix:o}){return s("div",{key:"__popover-arrow__",style:r,class:[`${o}-popover-arrow-wrapper`,n]},s("div",{class:[`${o}-popover-arrow`,e],style:t}))}const H5=Y({name:"PopoverBody",inheritAttrs:!1,props:ib,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i,mergedRtlRef:a}=Ee(e),l=ge("Popover","-popover",L5,bi,e,o),d=Bt("Popover",a,o),c=B(null),u=Be("NPopover"),f=B(null),v=B(e.show),m=B(!1);Ft(()=>{const{show:$}=e;$&&!XS()&&!e.internalDeactivateImmediately&&(m.value=!0)});const h=S(()=>{const{trigger:$,onClickoutside:T}=e,D=[],{positionManuallyRef:{value:I}}=u;return I||($==="click"&&!T&&D.push([Qn,P,void 0,{capture:!0}]),$==="hover"&&D.push([iS,C])),T&&D.push([Qn,P,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&m.value)&&D.push([lr,e.show]),D}),g=S(()=>{const{common:{cubicBezierEaseInOut:$,cubicBezierEaseIn:T,cubicBezierEaseOut:D},self:{space:I,spaceArrow:A,padding:E,fontSize:N,textColor:U,dividerColor:q,color:J,boxShadow:ve,borderRadius:ae,arrowHeight:W,arrowOffset:j,arrowOffsetVertical:_}}=l.value;return{"--n-box-shadow":ve,"--n-bezier":$,"--n-bezier-ease-in":T,"--n-bezier-ease-out":D,"--n-font-size":N,"--n-text-color":U,"--n-color":J,"--n-divider-color":q,"--n-border-radius":ae,"--n-arrow-height":W,"--n-arrow-offset":j,"--n-arrow-offset-vertical":_,"--n-padding":E,"--n-space":I,"--n-space-arrow":A}}),p=S(()=>{const $=e.width==="trigger"?void 0:Pt(e.width),T=[];$&&T.push({width:$});const{maxWidth:D,minWidth:I}=e;return D&&T.push({maxWidth:Pt(D)}),I&&T.push({maxWidth:Pt(I)}),i||T.push(g.value),T}),b=i?Xe("popover",void 0,g,e):void 0;u.setBodyInstance({syncPosition:y}),jt(()=>{u.setBodyInstance(null)}),ct(le(e,"show"),$=>{e.animated||($?v.value=!0:v.value=!1)});function y(){var $;($=c.value)===null||$===void 0||$.syncPosition()}function R($){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&u.handleMouseEnter($)}function w($){e.trigger==="hover"&&e.keepAliveOnHover&&u.handleMouseLeave($)}function C($){e.trigger==="hover"&&!k().contains(Jn($))&&u.handleMouseMoveOutside($)}function P($){(e.trigger==="click"&&!k().contains(Jn($))||e.onClickoutside)&&u.handleClickOutside($)}function k(){return u.getTriggerElement()}ot(Zi,f),ot(Ya,null),ot(Ga,null);function O(){if(b?.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&m.value))return null;let T;const D=u.internalRenderBodyRef.value,{value:I}=o;if(D)T=D([`${I}-popover-shared`,d?.value&&`${I}-popover--rtl`,b?.themeClass.value,e.overlap&&`${I}-popover-shared--overlap`,e.showArrow&&`${I}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${I}-popover-shared--center-arrow`],f,p.value,R,w);else{const{value:A}=u.extraClassRef,{internalTrapFocus:E}=e,N=!Qo(t.header)||!Qo(t.footer),U=()=>{var q,J;const ve=N?s(qt,null,yt(t.header,j=>j?s("div",{class:[`${I}-popover__header`,e.headerClass],style:e.headerStyle},j):null),yt(t.default,j=>j?s("div",{class:[`${I}-popover__content`,e.contentClass],style:e.contentStyle},t):null),yt(t.footer,j=>j?s("div",{class:[`${I}-popover__footer`,e.footerClass],style:e.footerStyle},j):null)):e.scrollable?(q=t.default)===null||q===void 0?void 0:q.call(t):s("div",{class:[`${I}-popover__content`,e.contentClass],style:e.contentStyle},t),ae=e.scrollable?s(Ui,{themeOverrides:l.value.peerOverrides.Scrollbar,theme:l.value.peers.Scrollbar,contentClass:N?void 0:`${I}-popover__content ${(J=e.contentClass)!==null&&J!==void 0?J:""}`,contentStyle:N?void 0:e.contentStyle},{default:()=>ve}):ve,W=e.showArrow?ab({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:I}):null;return[ae,W]};T=s("div",Pn({class:[`${I}-popover`,`${I}-popover-shared`,d?.value&&`${I}-popover--rtl`,b?.themeClass.value,A.map(q=>`${I}-${q}`),{[`${I}-popover--scrollable`]:e.scrollable,[`${I}-popover--show-header-or-footer`]:N,[`${I}-popover--raw`]:e.raw,[`${I}-popover-shared--overlap`]:e.overlap,[`${I}-popover-shared--show-arrow`]:e.showArrow,[`${I}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:f,style:p.value,onKeydown:u.handleKeydown,onMouseenter:R,onMouseleave:w},n),E?s(xu,{active:e.show,autoFocus:!0},{default:U}):U())}return rn(T,h.value)}return{displayed:m,namespace:r,isMounted:u.isMountedRef,zIndex:u.zIndexRef,followerRef:c,adjustedTo:Ht(e),followerEnabled:v,renderContentNode:O}},render(){return s(sr,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>this.animated?s(_t,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),j5=Object.keys(ib),V5={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function U5(e,t,n){V5[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const o=e.props[r],i=n[r];o?e.props[r]=(...a)=>{o(...a),i(...a)}:e.props[r]=i})}const di={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ht.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},lb=Object.assign(Object.assign(Object.assign({},ge.props),di),{internalOnAfterLeave:Function,internalRenderBody:Function}),xi=Y({name:"Popover",inheritAttrs:!1,props:lb,slots:Object,__popover__:!0,setup(e){const t=$n(),n=B(null),r=S(()=>e.show),o=B(e.defaultShow),i=St(r,o),a=it(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:N}=e;return!!N?.()},d=()=>l()?!1:i.value,c=Co(e,["arrow","showArrow"]),u=S(()=>e.overlap?!1:c.value);let f=null;const v=B(null),m=B(null),h=it(()=>e.x!==void 0&&e.y!==void 0);function g(N){const{"onUpdate:show":U,onUpdateShow:q,onShow:J,onHide:ve}=e;o.value=N,U&&ie(U,N),q&&ie(q,N),N&&J&&ie(J,!0),N&&ve&&ie(ve,!1)}function p(){f&&f.syncPosition()}function b(){const{value:N}=v;N&&(window.clearTimeout(N),v.value=null)}function y(){const{value:N}=m;N&&(window.clearTimeout(N),m.value=null)}function R(){const N=l();if(e.trigger==="focus"&&!N){if(d())return;g(!0)}}function w(){const N=l();if(e.trigger==="focus"&&!N){if(!d())return;g(!1)}}function C(){const N=l();if(e.trigger==="hover"&&!N){if(y(),v.value!==null||d())return;const U=()=>{g(!0),v.value=null},{delay:q}=e;q===0?U():v.value=window.setTimeout(U,q)}}function P(){const N=l();if(e.trigger==="hover"&&!N){if(b(),m.value!==null||!d())return;const U=()=>{g(!1),m.value=null},{duration:q}=e;q===0?U():m.value=window.setTimeout(U,q)}}function k(){P()}function O(N){var U;d()&&(e.trigger==="click"&&(b(),y(),g(!1)),(U=e.onClickoutside)===null||U===void 0||U.call(e,N))}function $(){if(e.trigger==="click"&&!l()){b(),y();const N=!d();g(N)}}function T(N){e.internalTrapFocus&&N.key==="Escape"&&(b(),y(),g(!1))}function D(N){o.value=N}function I(){var N;return(N=n.value)===null||N===void 0?void 0:N.targetRef}function A(N){f=N}return ot("NPopover",{getTriggerElement:I,handleKeydown:T,handleMouseEnter:C,handleMouseLeave:P,handleClickOutside:O,handleMouseMoveOutside:k,setBodyInstance:A,positionManuallyRef:h,isMountedRef:t,zIndexRef:le(e,"zIndex"),extraClassRef:le(e,"internalExtraClass"),internalRenderBodyRef:le(e,"internalRenderBody")}),Ft(()=>{i.value&&l()&&g(!1)}),{binderInstRef:n,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:u,getMergedShow:d,setShow:D,handleClick:$,handleMouseEnter:C,handleMouseLeave:P,handleFocus:R,handleBlur:w,syncPosition:p}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(r=eR(n,"trigger"),r)){r=ri(r),r=r.type===tC?s("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],d={onBlur:c=>{l.forEach(u=>{u.onBlur(c)})},onFocus:c=>{l.forEach(u=>{u.onFocus(c)})},onClick:c=>{l.forEach(u=>{u.onClick(c)})},onMouseenter:c=>{l.forEach(u=>{u.onMouseenter(c)})},onMouseleave:c=>{l.forEach(u=>{u.onMouseleave(c)})}};U5(r,a?"nested":t?"manual":this.trigger,d)}}return s(yr,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?rn(s("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[Xa,{enabled:i,zIndex:this.zIndex}]]):null,t?null:s(wr,null,{default:()=>r}),s(H5,vn(this.$props,j5,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),W5={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function K5(e){const{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:o,infoColor:i,successColor:a,warningColor:l,errorColor:d,baseColor:c,borderColor:u,opacityDisabled:f,tagColor:v,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:p,fontSizeMini:b,fontSizeTiny:y,fontSizeSmall:R,fontSizeMedium:w,heightMini:C,heightTiny:P,heightSmall:k,heightMedium:O,closeColorHover:$,closeColorPressed:T,buttonColor2Hover:D,buttonColor2Pressed:I,fontWeightStrong:A}=e;return Object.assign(Object.assign({},W5),{closeBorderRadius:p,heightTiny:C,heightSmall:P,heightMedium:k,heightLarge:O,borderRadius:p,opacityDisabled:f,fontSizeTiny:b,fontSizeSmall:y,fontSizeMedium:R,fontSizeLarge:w,fontWeightStrong:A,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:D,colorPressedCheckable:I,colorChecked:o,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:v,colorBordered:"rgb(250, 250, 252)",closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:$,closeColorPressed:T,borderPrimary:`1px solid ${mt(o,{alpha:.3})}`,textColorPrimary:o,colorPrimary:mt(o,{alpha:.12}),colorBorderedPrimary:mt(o,{alpha:.1}),closeIconColorPrimary:o,closeIconColorHoverPrimary:o,closeIconColorPressedPrimary:o,closeColorHoverPrimary:mt(o,{alpha:.12}),closeColorPressedPrimary:mt(o,{alpha:.18}),borderInfo:`1px solid ${mt(i,{alpha:.3})}`,textColorInfo:i,colorInfo:mt(i,{alpha:.12}),colorBorderedInfo:mt(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:mt(i,{alpha:.12}),closeColorPressedInfo:mt(i,{alpha:.18}),borderSuccess:`1px solid ${mt(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:mt(a,{alpha:.12}),colorBorderedSuccess:mt(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:mt(a,{alpha:.12}),closeColorPressedSuccess:mt(a,{alpha:.18}),borderWarning:`1px solid ${mt(l,{alpha:.35})}`,textColorWarning:l,colorWarning:mt(l,{alpha:.15}),colorBorderedWarning:mt(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:mt(l,{alpha:.12}),closeColorPressedWarning:mt(l,{alpha:.18}),borderError:`1px solid ${mt(d,{alpha:.23})}`,textColorError:d,colorError:mt(d,{alpha:.1}),colorBorderedError:mt(d,{alpha:.08}),closeIconColorError:d,closeIconColorHoverError:d,closeIconColorPressedError:d,closeColorHoverError:mt(d,{alpha:.12}),closeColorPressedError:mt(d,{alpha:.18})})}const sb={name:"Tag",common:Je,self:K5},db={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},q5=x("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[M("strong",` + font-weight: var(--n-font-weight-strong); + `),F("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),F("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),F("avatar",` + display: flex; + margin: 0 6px 0 0; + `),F("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),M("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[F("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),F("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),M("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),M("icon, avatar",[M("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),M("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),M("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[ft("disabled",[z("&:hover","background-color: var(--n-color-hover-checkable);",[ft("checked","color: var(--n-text-color-hover-checkable);")]),z("&:active","background-color: var(--n-color-pressed-checkable);",[ft("checked","color: var(--n-text-color-pressed-checkable);")])]),M("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[ft("disabled",[z("&:hover","background-color: var(--n-color-checked-hover);"),z("&:active","background-color: var(--n-color-checked-pressed);")])])])]),cb=Object.assign(Object.assign(Object.assign({},ge.props),db),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),ub="n-tag",ei=Y({name:"Tag",props:cb,slots:Object,setup(e){const t=B(null),{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Ee(e),a=ge("Tag","-tag",q5,sb,e,r);ot(ub,{roundRef:le(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:m,onCheckedChange:h,onUpdateChecked:g,"onUpdate:checked":p}=e;g&&g(!m),p&&p(!m),h&&h(!m)}}function d(m){if(e.triggerClickOnClose||m.stopPropagation(),!e.disabled){const{onClose:h}=e;h&&ie(h,m)}}const c={setTextContent(m){const{value:h}=t;h&&(h.textContent=m)}},u=Bt("Tag",i,r),f=S(()=>{const{type:m,size:h,color:{color:g,textColor:p}={}}=e,{common:{cubicBezierEaseInOut:b},self:{padding:y,closeMargin:R,borderRadius:w,opacityDisabled:C,textColorCheckable:P,textColorHoverCheckable:k,textColorPressedCheckable:O,textColorChecked:$,colorCheckable:T,colorHoverCheckable:D,colorPressedCheckable:I,colorChecked:A,colorCheckedHover:E,colorCheckedPressed:N,closeBorderRadius:U,fontWeightStrong:q,[be("colorBordered",m)]:J,[be("closeSize",h)]:ve,[be("closeIconSize",h)]:ae,[be("fontSize",h)]:W,[be("height",h)]:j,[be("color",m)]:_,[be("textColor",m)]:L,[be("border",m)]:Z,[be("closeIconColor",m)]:ce,[be("closeIconColorHover",m)]:ye,[be("closeIconColorPressed",m)]:_e,[be("closeColorHover",m)]:V,[be("closeColorPressed",m)]:ze}}=a.value,Ae=cn(R);return{"--n-font-weight-strong":q,"--n-avatar-size-override":`calc(${j} - 8px)`,"--n-bezier":b,"--n-border-radius":w,"--n-border":Z,"--n-close-icon-size":ae,"--n-close-color-pressed":ze,"--n-close-color-hover":V,"--n-close-border-radius":U,"--n-close-icon-color":ce,"--n-close-icon-color-hover":ye,"--n-close-icon-color-pressed":_e,"--n-close-icon-color-disabled":ce,"--n-close-margin-top":Ae.top,"--n-close-margin-right":Ae.right,"--n-close-margin-bottom":Ae.bottom,"--n-close-margin-left":Ae.left,"--n-close-size":ve,"--n-color":g||(n.value?J:_),"--n-color-checkable":T,"--n-color-checked":A,"--n-color-checked-hover":E,"--n-color-checked-pressed":N,"--n-color-hover-checkable":D,"--n-color-pressed-checkable":I,"--n-font-size":W,"--n-height":j,"--n-opacity-disabled":C,"--n-padding":y,"--n-text-color":p||L,"--n-text-color-checkable":P,"--n-text-color-checked":$,"--n-text-color-hover-checkable":k,"--n-text-color-pressed-checkable":O}}),v=o?Xe("tag",S(()=>{let m="";const{type:h,size:g,color:{color:p,textColor:b}={}}=e;return m+=h[0],m+=g[0],p&&(m+=`a${ii(p)}`),b&&(m+=`b${ii(b)}`),n.value&&(m+="c"),m}),f,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:u,mergedClsPrefix:r,contentRef:t,mergedBordered:n,handleClick:l,handleCloseClick:d,cssVars:o?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender})},render(){var e,t;const{mergedClsPrefix:n,rtlEnabled:r,closable:o,color:{borderColor:i}={},round:a,onRender:l,$slots:d}=this;l?.();const c=yt(d.avatar,f=>f&&s("div",{class:`${n}-tag__avatar`},f)),u=yt(d.icon,f=>f&&s("div",{class:`${n}-tag__icon`},f));return s("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:a,[`${n}-tag--avatar`]:c,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:o}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||c,s("span",{class:`${n}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&o?s(lo,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?s("div",{class:`${n}-tag__border`,style:{borderColor:i}}):null)}}),fb=Y({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return s(Tr,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?s(Rc,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>s(lt,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>ht(t.default,()=>[s(qp,null)])})}):null})}}}),Y5={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function G5(e){const{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:o,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:f,borderColor:v,iconColor:m,iconColorDisabled:h,clearColor:g,clearColorHover:p,clearColorPressed:b,placeholderColor:y,placeholderColorDisabled:R,fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:P,fontSizeLarge:k,heightTiny:O,heightSmall:$,heightMedium:T,heightLarge:D,fontWeight:I}=e;return Object.assign(Object.assign({},Y5),{fontSizeTiny:w,fontSizeSmall:C,fontSizeMedium:P,fontSizeLarge:k,heightTiny:O,heightSmall:$,heightMedium:T,heightLarge:D,borderRadius:t,fontWeight:I,textColor:n,textColorDisabled:r,placeholderColor:y,placeholderColorDisabled:R,color:o,colorDisabled:i,colorActive:o,border:`1px solid ${v}`,borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${mt(a,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${mt(a,{alpha:.2})}`,caretColor:a,arrowColor:m,arrowColorDisabled:h,loadingColor:a,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${d}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${mt(d,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${mt(d,{alpha:.2})}`,colorActiveWarning:o,caretColorWarning:d,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${f}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${mt(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${mt(u,{alpha:.2})}`,colorActiveError:o,caretColorError:u,clearColor:g,clearColorHover:p,clearColorPressed:b})}const Es={name:"InternalSelection",common:Je,peers:{Popover:bi},self:G5},X5=z([x("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[x("base-loading",` + color: var(--n-loading-color); + `),x("base-selection-tags","min-height: var(--n-height);"),F("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),F("state-border",` + z-index: 1; + border-color: #0000; + `),x("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[F("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),x("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[F("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),x("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[F("inner",` + max-width: 100%; + overflow: hidden; + `)]),x("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),x("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[x("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[F("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),F("render-label",` + color: var(--n-text-color); + `)]),ft("disabled",[z("&:hover",[F("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),M("focus",[F("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),M("active",[F("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),x("base-selection-label","background-color: var(--n-color-active);"),x("base-selection-tags","background-color: var(--n-color-active);")])]),M("disabled","cursor: not-allowed;",[F("arrow",` + color: var(--n-arrow-color-disabled); + `),x("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[x("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),F("render-label",` + color: var(--n-text-color-disabled); + `)]),x("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),x("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),x("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[F("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),F("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>M(`${e}-status`,[F("state-border",`border: var(--n-border-${e});`),ft("disabled",[z("&:hover",[F("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),M("active",[F("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),x("base-selection-label",`background-color: var(--n-color-active-${e});`),x("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),M("focus",[F("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),x("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),x("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[z("&:last-child","padding-right: 0;"),x("tag",` + font-size: 14px; + max-width: 100%; + `,[F("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]),Au=Y({name:"InternalSelection",props:Object.assign(Object.assign({},ge.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=Bt("InternalSelection",n,t),o=B(null),i=B(null),a=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),m=B(null),h=B(!1),g=B(!1),p=B(!1),b=ge("InternalSelection","-internal-selection",X5,Es,e,le(e,"clsPrefix")),y=S(()=>e.clearable&&!e.disabled&&(p.value||e.active)),R=S(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Wt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),w=S(()=>{const X=e.selectedOption;if(X)return X[e.labelField]}),C=S(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function P(){var X;const{value:he}=o;if(he){const{value:Ie}=i;Ie&&(Ie.style.width=`${he.offsetWidth}px`,e.maxTagCount!=="responsive"&&((X=v.value)===null||X===void 0||X.sync({showAllItemsBeforeCalculate:!1})))}}function k(){const{value:X}=m;X&&(X.style.display="none")}function O(){const{value:X}=m;X&&(X.style.display="inline-block")}ct(le(e,"active"),X=>{X||k()}),ct(le(e,"pattern"),()=>{e.multiple&&zt(P)});function $(X){const{onFocus:he}=e;he&&he(X)}function T(X){const{onBlur:he}=e;he&&he(X)}function D(X){const{onDeleteOption:he}=e;he&&he(X)}function I(X){const{onClear:he}=e;he&&he(X)}function A(X){const{onPatternInput:he}=e;he&&he(X)}function E(X){var he;(!X.relatedTarget||!(!((he=a.value)===null||he===void 0)&&he.contains(X.relatedTarget)))&&$(X)}function N(X){var he;!((he=a.value)===null||he===void 0)&&he.contains(X.relatedTarget)||T(X)}function U(X){I(X)}function q(){p.value=!0}function J(){p.value=!1}function ve(X){!e.active||!e.filterable||X.target!==i.value&&X.preventDefault()}function ae(X){D(X)}const W=B(!1);function j(X){if(X.key==="Backspace"&&!W.value&&!e.pattern.length){const{selectedOptions:he}=e;he?.length&&ae(he[he.length-1])}}let _=null;function L(X){const{value:he}=o;if(he){const Ie=X.target.value;he.textContent=Ie,P()}e.ignoreComposition&&W.value?_=X:A(X)}function Z(){W.value=!0}function ce(){W.value=!1,e.ignoreComposition&&A(_),_=null}function ye(X){var he;g.value=!0,(he=e.onPatternFocus)===null||he===void 0||he.call(e,X)}function _e(X){var he;g.value=!1,(he=e.onPatternBlur)===null||he===void 0||he.call(e,X)}function V(){var X,he;if(e.filterable)g.value=!1,(X=c.value)===null||X===void 0||X.blur(),(he=i.value)===null||he===void 0||he.blur();else if(e.multiple){const{value:Ie}=l;Ie?.blur()}else{const{value:Ie}=d;Ie?.blur()}}function ze(){var X,he,Ie;e.filterable?(g.value=!1,(X=c.value)===null||X===void 0||X.focus()):e.multiple?(he=l.value)===null||he===void 0||he.focus():(Ie=d.value)===null||Ie===void 0||Ie.focus()}function Ae(){const{value:X}=i;X&&(O(),X.focus())}function Ne(){const{value:X}=i;X&&X.blur()}function je(X){const{value:he}=u;he&&he.setTextContent(`+${X}`)}function qe(){const{value:X}=f;return X}function gt(){return i.value}let at=null;function Te(){at!==null&&window.clearTimeout(at)}function Q(){e.active||(Te(),at=window.setTimeout(()=>{C.value&&(h.value=!0)},100))}function ue(){Te()}function G(X){X||(Te(),h.value=!1)}ct(C,X=>{X||(h.value=!1)}),It(()=>{Ft(()=>{const X=c.value;X&&(e.disabled?X.removeAttribute("tabindex"):X.tabIndex=g.value?-1:0)})}),Os(a,e.onResize);const{inlineThemeDisabled:fe}=e,we=S(()=>{const{size:X}=e,{common:{cubicBezierEaseInOut:he},self:{fontWeight:Ie,borderRadius:me,color:Ke,placeholderColor:st,textColor:xt,paddingSingle:vt,paddingMultiple:bt,caretColor:pt,colorDisabled:He,textColorDisabled:nt,placeholderColorDisabled:K,colorActive:H,boxShadowFocus:pe,boxShadowActive:$e,boxShadowHover:Oe,border:ne,borderFocus:Se,borderHover:ee,borderActive:Ce,arrowColor:Ue,arrowColorDisabled:Ye,loadingColor:se,colorActiveWarning:Me,boxShadowFocusWarning:re,boxShadowActiveWarning:ke,boxShadowHoverWarning:De,borderWarning:Qe,borderFocusWarning:rt,borderHoverWarning:oe,borderActiveWarning:Re,colorActiveError:We,boxShadowFocusError:de,boxShadowActiveError:Pe,boxShadowHoverError:Le,borderError:Ze,borderFocusError:et,borderHoverError:$t,borderActiveError:Jt,clearColor:Qt,clearColorHover:Tn,clearColorPressed:Dn,clearSize:un,arrowSize:At,[be("height",X)]:xe,[be("fontSize",X)]:Ve}}=b.value,Ge=cn(vt),Tt=cn(bt);return{"--n-bezier":he,"--n-border":ne,"--n-border-active":Ce,"--n-border-focus":Se,"--n-border-hover":ee,"--n-border-radius":me,"--n-box-shadow-active":$e,"--n-box-shadow-focus":pe,"--n-box-shadow-hover":Oe,"--n-caret-color":pt,"--n-color":Ke,"--n-color-active":H,"--n-color-disabled":He,"--n-font-size":Ve,"--n-height":xe,"--n-padding-single-top":Ge.top,"--n-padding-multiple-top":Tt.top,"--n-padding-single-right":Ge.right,"--n-padding-multiple-right":Tt.right,"--n-padding-single-left":Ge.left,"--n-padding-multiple-left":Tt.left,"--n-padding-single-bottom":Ge.bottom,"--n-padding-multiple-bottom":Tt.bottom,"--n-placeholder-color":st,"--n-placeholder-color-disabled":K,"--n-text-color":xt,"--n-text-color-disabled":nt,"--n-arrow-color":Ue,"--n-arrow-color-disabled":Ye,"--n-loading-color":se,"--n-color-active-warning":Me,"--n-box-shadow-focus-warning":re,"--n-box-shadow-active-warning":ke,"--n-box-shadow-hover-warning":De,"--n-border-warning":Qe,"--n-border-focus-warning":rt,"--n-border-hover-warning":oe,"--n-border-active-warning":Re,"--n-color-active-error":We,"--n-box-shadow-focus-error":de,"--n-box-shadow-active-error":Pe,"--n-box-shadow-hover-error":Le,"--n-border-error":Ze,"--n-border-focus-error":et,"--n-border-hover-error":$t,"--n-border-active-error":Jt,"--n-clear-size":un,"--n-clear-color":Qt,"--n-clear-color-hover":Tn,"--n-clear-color-pressed":Dn,"--n-arrow-size":At,"--n-font-weight":Ie}}),te=fe?Xe("internal-selection",S(()=>e.size[0]),we,e):void 0;return{mergedTheme:b,mergedClearable:y,mergedClsPrefix:t,rtlEnabled:r,patternInputFocused:g,filterablePlaceholder:R,label:w,selected:C,showTagsPanel:h,isComposing:W,counterRef:u,counterWrapperRef:f,patternInputMirrorRef:o,patternInputRef:i,selfRef:a,multipleElRef:l,singleElRef:d,patternInputWrapperRef:c,overflowRef:v,inputTagElRef:m,handleMouseDown:ve,handleFocusin:E,handleClear:U,handleMouseEnter:q,handleMouseLeave:J,handleDeleteOption:ae,handlePatternKeyDown:j,handlePatternInputInput:L,handlePatternInputBlur:_e,handlePatternInputFocus:ye,handleMouseEnterCounter:Q,handleMouseLeaveCounter:ue,handleFocusout:N,handleCompositionEnd:ce,handleCompositionStart:Z,onPopoverUpdateShow:G,focus:ze,focusInput:Ae,blur:V,blurInput:Ne,updateCounter:je,getCounter:qe,getTail:gt,renderLabel:e.renderLabel,cssVars:fe?void 0:we,themeClass:te?.themeClass,onRender:te?.onRender}},render(){const{status:e,multiple:t,size:n,disabled:r,filterable:o,maxTagCount:i,bordered:a,clsPrefix:l,ellipsisTagPopoverProps:d,onRender:c,renderTag:u,renderLabel:f}=this;c?.();const v=i==="responsive",m=typeof i=="number",h=v||m,g=s(gc,null,{default:()=>s(fb,{clsPrefix:l,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var b,y;return(y=(b=this.$slots).arrow)===null||y===void 0?void 0:y.call(b)}})});let p;if(t){const{labelField:b}=this,y=A=>s("div",{class:`${l}-base-selection-tag-wrapper`,key:A.value},u?u({option:A,handleClose:()=>{this.handleDeleteOption(A)}}):s(ei,{size:n,closable:!A.disabled,disabled:r,onClose:()=>{this.handleDeleteOption(A)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>f?f(A,!0):Wt(A[b],A,!0)})),R=()=>(m?this.selectedOptions.slice(0,i):this.selectedOptions).map(y),w=o?s("div",{class:`${l}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},s("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:r,value:this.pattern,autofocus:this.autofocus,class:`${l}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),s("span",{ref:"patternInputMirrorRef",class:`${l}-base-selection-input-tag__mirror`},this.pattern)):null,C=v?()=>s("div",{class:`${l}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},s(ei,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:r})):void 0;let P;if(m){const A=this.selectedOptions.length-i;A>0&&(P=s("div",{class:`${l}-base-selection-tag-wrapper`,key:"__counter__"},s(ei,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:r},{default:()=>`+${A}`})))}const k=v?o?s(hc,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:R,counter:C,tail:()=>w}):s(hc,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:R,counter:C}):m&&P?R().concat(P):R(),O=h?()=>s("div",{class:`${l}-base-selection-popover`},v?R():this.selectedOptions.map(y)):void 0,$=h?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},d):null,D=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?s("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`},s("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)):null,I=o?s("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-tags`},k,v?null:w,g):s("div",{ref:"multipleElRef",class:`${l}-base-selection-tags`,tabindex:r?void 0:0},k,g);p=s(qt,null,h?s(xi,Object.assign({},$,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>I,default:O}):I,D)}else if(o){const b=this.pattern||this.isComposing,y=this.active?!b:!this.selected,R=this.active?!1:this.selected;p=s("div",{ref:"patternInputWrapperRef",class:`${l}-base-selection-label`,title:this.patternInputFocused?void 0:Hi(this.label)},s("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${l}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:r,disabled:r,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),R?s("div",{class:`${l}-base-selection-label__render-label ${l}-base-selection-overlay`,key:"input"},s("div",{class:`${l}-base-selection-overlay__wrapper`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):Wt(this.label,this.selectedOption,!0))):null,y?s("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},s("div",{class:`${l}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else p=s("div",{ref:"singleElRef",class:`${l}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?s("div",{class:`${l}-base-selection-input`,title:Hi(this.label),key:"input"},s("div",{class:`${l}-base-selection-input__content`},u?u({option:this.selectedOption,handleClose:()=>{}}):f?f(this.selectedOption,!0):Wt(this.label,this.selectedOption,!0))):s("div",{class:`${l}-base-selection-placeholder ${l}-base-selection-overlay`,key:"placeholder"},s("div",{class:`${l}-base-selection-placeholder__inner`},this.placeholder)),g);return s("div",{ref:"selfRef",class:[`${l}-base-selection`,this.rtlEnabled&&`${l}-base-selection--rtl`,this.themeClass,e&&`${l}-base-selection--${e}-status`,{[`${l}-base-selection--active`]:this.active,[`${l}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${l}-base-selection--disabled`]:this.disabled,[`${l}-base-selection--multiple`]:this.multiple,[`${l}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},p,a?s("div",{class:`${l}-base-selection__border`}):null,a?s("div",{class:`${l}-base-selection__state-border`}):null)}}),hv=Y({name:"SlotMachineNumber",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],required:!0},oldOriginalNumber:{type:Number,default:void 0},newOriginalNumber:{type:Number,default:void 0}},setup(e){const t=B(null),n=B(e.value),r=B(e.value),o=B("up"),i=B(!1),a=S(()=>i.value?`${e.clsPrefix}-base-slot-machine-current-number--${o.value}-scroll`:null),l=S(()=>i.value?`${e.clsPrefix}-base-slot-machine-old-number--${o.value}-scroll`:null);ct(le(e,"value"),(u,f)=>{n.value=f,r.value=u,zt(d)});function d(){const u=e.newOriginalNumber,f=e.oldOriginalNumber;f===void 0||u===void 0||(u>f?c("up"):f>u&&c("down"))}function c(u){o.value=u,i.value=!1,zt(()=>{var f;(f=t.value)===null||f===void 0||f.offsetWidth,i.value=!0})}return()=>{const{clsPrefix:u}=e;return s("span",{ref:t,class:`${u}-base-slot-machine-number`},n.value!==null?s("span",{class:[`${u}-base-slot-machine-old-number ${u}-base-slot-machine-old-number--top`,l.value]},n.value):null,s("span",{class:[`${u}-base-slot-machine-current-number`,a.value]},s("span",{ref:"numberWrapper",class:[`${u}-base-slot-machine-current-number__inner`,typeof e.value!="number"&&`${u}-base-slot-machine-current-number__inner--not-number`]},r.value)),n.value!==null?s("span",{class:[`${u}-base-slot-machine-old-number ${u}-base-slot-machine-old-number--bottom`,l.value]},n.value):null)}}}),{cubicBezierEaseInOut:uo}=er;function hb({duration:e=".2s",delay:t=".1s"}={}){return[z("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),z("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),z("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${uo}, + max-width ${e} ${uo} ${t}, + margin-left ${e} ${uo} ${t}, + margin-right ${e} ${uo} ${t}; + `),z("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${uo} ${t}, + max-width ${e} ${uo}, + margin-left ${e} ${uo}, + margin-right ${e} ${uo}; + `)]}const{cubicBezierEaseOut:ki}=er;function Z5({duration:e=".2s"}={}){return[z("&.fade-up-width-expand-transition-leave-active",{transition:` + opacity ${e} ${ki}, + max-width ${e} ${ki}, + transform ${e} ${ki} + `}),z("&.fade-up-width-expand-transition-enter-active",{transition:` + opacity ${e} ${ki}, + max-width ${e} ${ki}, + transform ${e} ${ki} + `}),z("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),z("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),z("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),z("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}const J5=z([z("@keyframes n-base-slot-machine-fade-up-in",` + from { + transform: translateY(60%); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + `),z("@keyframes n-base-slot-machine-fade-down-in",` + from { + transform: translateY(-60%); + opacity: 0; + } + to { + transform: translateY(0); + opacity: 1; + } + `),z("@keyframes n-base-slot-machine-fade-up-out",` + from { + transform: translateY(0%); + opacity: 1; + } + to { + transform: translateY(-60%); + opacity: 0; + } + `),z("@keyframes n-base-slot-machine-fade-down-out",` + from { + transform: translateY(0%); + opacity: 1; + } + to { + transform: translateY(60%); + opacity: 0; + } + `),x("base-slot-machine",` + overflow: hidden; + white-space: nowrap; + display: inline-block; + height: 18px; + line-height: 18px; + `,[x("base-slot-machine-number",` + display: inline-block; + position: relative; + height: 18px; + width: .6em; + max-width: .6em; + `,[Z5({duration:".2s"}),hb({duration:".2s",delay:"0s"}),x("base-slot-machine-old-number",` + display: inline-block; + opacity: 0; + position: absolute; + left: 0; + right: 0; + `,[M("top",{transform:"translateY(-100%)"}),M("bottom",{transform:"translateY(100%)"}),M("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),x("base-slot-machine-current-number",` + display: inline-block; + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 1; + transform: translateY(0); + width: .6em; + `,[M("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),M("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),F("inner",` + display: inline-block; + position: absolute; + right: 0; + top: 0; + width: .6em; + `,[M("not-number",` + right: unset; + left: 0; + `)])])])])]),Q5=Y({name:"BaseSlotMachine",props:{clsPrefix:{type:String,required:!0},value:{type:[Number,String],default:0},max:{type:Number,default:void 0},appeared:{type:Boolean,required:!0}},setup(e){ur("-base-slot-machine",J5,le(e,"clsPrefix"));const t=B(),n=B(),r=S(()=>{if(typeof e.value=="string")return[];if(e.value<1)return[0];const o=[];let i=e.value;for(e.max!==void 0&&(i=Math.min(e.max,i));i>=1;)o.push(i%10),i/=10,i=Math.floor(i);return o.reverse(),o});return ct(le(e,"value"),(o,i)=>{typeof o=="string"?(n.value=void 0,t.value=void 0):typeof i=="string"?(n.value=o,t.value=void 0):(n.value=o,t.value=i)}),()=>{const{value:o,clsPrefix:i}=e;return typeof o=="number"?s("span",{class:`${i}-base-slot-machine`},s(Rs,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>r.value.map((a,l)=>s(hv,{clsPrefix:i,key:r.value.length-l-1,oldOriginalNumber:t.value,newOriginalNumber:n.value,value:a}))}),s(Kr,{key:"+",width:!0},{default:()=>e.max!==void 0&&e.max{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),zt(()=>{var o;(o=t.value)===null||o===void 0||o.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return s("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),tT={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"};function nT(e){const{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:i,actionColor:a,textColor1:l,textColor2:d,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:m,infoColor:h,successColor:g,warningColor:p,errorColor:b,fontSize:y}=e;return Object.assign(Object.assign({},tT),{fontSize:y,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:l,iconColor:d,contentTextColor:d,closeBorderRadius:n,closeColorHover:c,closeColorPressed:u,closeIconColor:f,closeIconColorHover:v,closeIconColorPressed:m,borderInfo:`1px solid ${dt(o,mt(h,{alpha:.25}))}`,colorInfo:dt(o,mt(h,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:h,contentTextColorInfo:d,closeColorHoverInfo:c,closeColorPressedInfo:u,closeIconColorInfo:f,closeIconColorHoverInfo:v,closeIconColorPressedInfo:m,borderSuccess:`1px solid ${dt(o,mt(g,{alpha:.25}))}`,colorSuccess:dt(o,mt(g,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:g,contentTextColorSuccess:d,closeColorHoverSuccess:c,closeColorPressedSuccess:u,closeIconColorSuccess:f,closeIconColorHoverSuccess:v,closeIconColorPressedSuccess:m,borderWarning:`1px solid ${dt(o,mt(p,{alpha:.33}))}`,colorWarning:dt(o,mt(p,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:p,contentTextColorWarning:d,closeColorHoverWarning:c,closeColorPressedWarning:u,closeIconColorWarning:f,closeIconColorHoverWarning:v,closeIconColorPressedWarning:m,borderError:`1px solid ${dt(o,mt(b,{alpha:.25}))}`,colorError:dt(o,mt(b,{alpha:.08})),titleTextColorError:l,iconColorError:b,contentTextColorError:d,closeColorHoverError:c,closeColorPressedError:u,closeIconColorError:f,closeIconColorHoverError:v,closeIconColorPressedError:m})}const rT={common:Je,self:nT},{cubicBezierEaseInOut:Ir,cubicBezierEaseOut:oT,cubicBezierEaseIn:iT}=er;function no({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const d=l?"leave":"enter",c=l?"enter":"leave";return[z(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${d}-to`,Object.assign(Object.assign({},i),{opacity:1})),z(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${d}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),z(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ir} ${r}, + opacity ${t} ${oT} ${r}, + margin-top ${t} ${Ir} ${r}, + margin-bottom ${t} ${Ir} ${r}, + padding-top ${t} ${Ir} ${r}, + padding-bottom ${t} ${Ir} ${r} + ${n?`,${n}`:""} + `),z(`&.fade-in-height-expand-transition-${d}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Ir}, + opacity ${t} ${iT}, + margin-top ${t} ${Ir}, + margin-bottom ${t} ${Ir}, + padding-top ${t} ${Ir}, + padding-bottom ${t} ${Ir} + ${n?`,${n}`:""} + `)]}const aT=x("alert",` + line-height: var(--n-line-height); + border-radius: var(--n-border-radius); + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-color); + text-align: start; + word-break: break-word; +`,[F("border",` + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + transition: border-color .3s var(--n-bezier); + border: var(--n-border); + pointer-events: none; + `),M("closable",[x("alert-body",[F("title",` + padding-right: 24px; + `)])]),F("icon",{color:"var(--n-icon-color)"}),x("alert-body",{padding:"var(--n-padding)"},[F("title",{color:"var(--n-title-text-color)"}),F("content",{color:"var(--n-content-text-color)"})]),no({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),F("icon",` + position: absolute; + left: 0; + top: 0; + align-items: center; + justify-content: center; + display: flex; + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + margin: var(--n-icon-margin); + `),F("close",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + `),M("show-icon",[x("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),M("right-adjust",[x("alert-body",{paddingRight:"calc(var(--n-close-size) + var(--n-padding) + 2px)"})]),x("alert-body",` + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + `,[F("title",` + transition: color .3s var(--n-bezier); + font-size: 16px; + line-height: 19px; + font-weight: var(--n-title-font-weight); + `,[z("& +",[F("content",{marginTop:"9px"})])]),F("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),F("icon",{transition:"color .3s var(--n-bezier)"})]),gb=Object.assign(Object.assign({},ge.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:"default"},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),lT=Y({name:"Alert",inheritAttrs:!1,props:gb,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=ge("Alert","-alert",aT,rT,e,t),a=Bt("Alert",o,t),l=S(()=>{const{common:{cubicBezierEaseInOut:m},self:h}=i.value,{fontSize:g,borderRadius:p,titleFontWeight:b,lineHeight:y,iconSize:R,iconMargin:w,iconMarginRtl:C,closeIconSize:P,closeBorderRadius:k,closeSize:O,closeMargin:$,closeMarginRtl:T,padding:D}=h,{type:I}=e,{left:A,right:E}=cn(w);return{"--n-bezier":m,"--n-color":h[be("color",I)],"--n-close-icon-size":P,"--n-close-border-radius":k,"--n-close-color-hover":h[be("closeColorHover",I)],"--n-close-color-pressed":h[be("closeColorPressed",I)],"--n-close-icon-color":h[be("closeIconColor",I)],"--n-close-icon-color-hover":h[be("closeIconColorHover",I)],"--n-close-icon-color-pressed":h[be("closeIconColorPressed",I)],"--n-icon-color":h[be("iconColor",I)],"--n-border":h[be("border",I)],"--n-title-text-color":h[be("titleTextColor",I)],"--n-content-text-color":h[be("contentTextColor",I)],"--n-line-height":y,"--n-border-radius":p,"--n-font-size":g,"--n-title-font-weight":b,"--n-icon-size":R,"--n-icon-margin":w,"--n-icon-margin-rtl":C,"--n-close-size":O,"--n-close-margin":$,"--n-close-margin-rtl":T,"--n-padding":D,"--n-icon-margin-left":A,"--n-icon-margin-right":E}}),d=r?Xe("alert",S(()=>e.type[0]),l,e):void 0,c=B(!0),u=()=>{const{onAfterLeave:m,onAfterHide:h}=e;m&&m(),h&&h()};return{rtlEnabled:a,mergedClsPrefix:t,mergedBordered:n,visible:c,handleCloseClick:()=>{var m;Promise.resolve((m=e.onClose)===null||m===void 0?void 0:m.call(e)).then(h=>{h!==!1&&(c.value=!1)})},handleAfterLeave:()=>{u()},mergedTheme:i,cssVars:r?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s(Kr,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?s("div",Object.assign({},Pn(this.$attrs,r)),this.closable&&s(lo,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&s("div",{class:`${t}-alert__border`}),this.showIcon&&s("div",{class:`${t}-alert__icon`,"aria-hidden":"true"},ht(n.icon,()=>[s(lt,{clsPrefix:t},{default:()=>{switch(this.type){case"success":return s(pi,null);case"info":return s(To,null);case"warning":return s(Bo,null);case"error":return s(mi,null);default:return null}}})])),s("div",{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},yt(n.header,o=>{const i=o||this.title;return i?s("div",{class:`${t}-alert-body__title`},i):null}),n.default&&s("div",{class:`${t}-alert-body__content`},n))):null}})}}),sT={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function dT(e){const{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:o,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},sT),{borderRadius:t,railColor:n,railColorActive:r,linkColor:mt(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:o,linkTextColorPressed:i,linkTextColorActive:r})}const cT={common:Je,self:dT},Xl="n-anchor",mb={title:String,href:String},uT=Y({name:"AnchorLink",props:mb,slots:Object,setup(e,{slots:t}){const n=B(null),r=Be(Xl),o=le(e,"href"),i=it(()=>o.value&&o.value===r.activeHref.value);eS(Xl,"collectedLinkHrefs",o),tS(Xl,"titleEls",()=>n.value),ct(i,l=>{l&&n.value&&r.updateBarPosition(n.value)});function a(){e.href!==void 0&&r.setActiveHref(e.href)}return()=>{var l;const{value:d}=r.mergedClsPrefix;return s("div",{class:[`${d}-anchor-link`,i.value&&`${d}-anchor-link--active`]},s("a",{ref:n,class:[`${d}-anchor-link__title`],href:e.href,title:Hi(e.title),onClick:a},{default:()=>ht(t.title,()=>[e.title])}),(l=t.default)===null||l===void 0?void 0:l.call(t))}}});function fT(e,t){const{top:n,height:r}=e.getBoundingClientRect(),o=t instanceof HTMLElement?t.getBoundingClientRect().top:0;return{top:n-o,height:r}}const Du={type:{type:String,default:"rail"},showRail:{type:Boolean,default:!0},showBackground:{type:Boolean,default:!0},bound:{type:Number,default:12},internalScrollable:Boolean,ignoreGap:Boolean,offsetTarget:[String,Object,Function]},hT=In(Du),vT=Y({name:"BaseAnchor",props:Object.assign(Object.assign({},Du),{mergedClsPrefix:{type:String,required:!0}}),setup(e){const t=[],n=[],r=B(null),o=B(null),i=B(null),a=B(null);let l=!1;const d=S(()=>e.type==="block"),c=S(()=>!d.value&&e.showRail);function u(){const{value:y}=i,{value:R}=o;y&&(y.style.transition="none"),R&&(R.style.transition="none"),n&&n.forEach(w=>{w.style.transition="none"}),zt(()=>{const{value:w}=i,{value:C}=o;w&&(w.offsetWidth,w.style.transition=""),C&&(C.offsetWidth,C.style.transition=""),n&&n.forEach(P=>{P.offsetWidth,P.style.transition=""})})}function f(y,R=!0){const{value:w}=i,{value:C}=o,{value:P}=a;if(!P||!w)return;R||(w.style.transition="none",C&&(C.style.transition="none"));const{offsetHeight:k,offsetWidth:O}=y,{top:$,left:T}=y.getBoundingClientRect(),{top:D,left:I}=P.getBoundingClientRect(),A=$-D,E=T-I;w.style.top=`${A}px`,w.style.height=`${k}px`,C&&(C.style.top=`${A}px`,C.style.height=`${k}px`,C.style.maxWidth=`${O+E}px`),w.offsetHeight,C&&C.offsetHeight,R||(w.style.transition="",C&&(C.style.transition=""))}let v,m=!1,h=!1;const g=()=>{if(h)m=!0;else{if(l)return;b(!0),h=!0,clearTimeout(v),v=setTimeout(()=>{h=!1,m&&(m=!1,g())},128)}};function p(y,R=!0){const w=/^#([^#]+)$/.exec(y);if(!w)return;const C=document.getElementById(w[1]);C&&(l=!0,r.value=y,C.scrollIntoView(),R||u(),m=!1,setTimeout(()=>{l=!1},0))}function b(y=!0){var R;const w=[],C=ou((R=e.offsetTarget)!==null&&R!==void 0?R:document);t.forEach(T=>{const D=/#([^#]+)$/.exec(T);if(!D)return;const I=document.getElementById(D[1]);if(I&&C){const{top:A,height:E}=fT(I,C);w.push({top:A,height:E,href:T})}}),w.sort((T,D)=>T.top>D.top?1:(T.top===D.top&&T.heightD.top+D.height<0?O?D:T:D.top<=k?T===null?D:D.top===T.top?D.href===P?D:T:D.top>T.top?D:T:T,null);y||u(),$?r.value=$.href:r.value=null}return ot(Xl,{activeHref:r,mergedClsPrefix:le(e,"mergedClsPrefix"),updateBarPosition:f,setActiveHref:p,collectedLinkHrefs:t,titleEls:n}),It(()=>{document.addEventListener("scroll",g,!0),p(window.location.hash),b(!1)}),$s(()=>{p(window.location.hash),b(!1)}),jt(()=>{clearTimeout(v),document.removeEventListener("scroll",g,!0)}),ct(r,y=>{if(y===null){const{value:R}=o;R&&!d.value&&(R.style.maxWidth="0")}}),{selfRef:a,barRef:i,slotRef:o,setActiveHref:p,activeHref:r,isBlockType:d,mergedShowRail:c}},render(){var e;const{mergedClsPrefix:t,mergedShowRail:n,isBlockType:r,$slots:o}=this,i=s("div",{class:[`${t}-anchor`,r&&`${t}-anchor--block`,n&&`${t}-anchor--show-rail`],ref:"selfRef"},n&&this.showBackground?s("div",{ref:"slotRef",class:`${t}-anchor-link-background`}):null,n?s("div",{class:`${t}-anchor-rail`},s("div",{ref:"barRef",class:[`${t}-anchor-rail__bar`,this.activeHref!==null&&`${t}-anchor-rail__bar--active`]})):null,(e=o.default)===null||e===void 0?void 0:e.call(o));return this.internalScrollable?s(Zt,null,{default:()=>i}):i}}),gT=x("anchor",` + position: relative; +`,[ft("block",` + padding-left: var(--n-rail-width); + `,[x("anchor-link",[z("+, >",[x("anchor-link",` + margin-top: .5em; + `)])]),x("anchor-link-background",` + max-width: 0; + border-top-right-radius: 10.5px; + border-bottom-right-radius: 10.5px; + `),ft("show-rail",[z(">",[x("anchor-link","padding-left: 0;")])])]),M("block",[x("anchor-link",` + margin-bottom: 4px; + padding: 2px 8px; + transition: background-color .3s var(--n-bezier); + background-color: transparent; + border-radius: var(--n-link-border-radius); + `,[M("active",` + background-color: var(--n-link-color); + `)])]),x("anchor-link-background",` + position: absolute; + left: calc(var(--n-rail-width) / 2); + width: 100%; + background-color: var(--n-link-color); + transition: + top .15s var(--n-bezier), + max-width .15s var(--n-bezier), + background-color .3s var(--n-bezier); + `),x("anchor-rail",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + width: var(--n-rail-width); + border-radius: calc(var(--n-rail-width) / 2); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[F("bar",` + position: absolute; + left: 0; + width: var(--n-rail-width); + height: 21px; + background-color: #0000; + transition: + top .15s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[M("active",{backgroundColor:"var(--n-rail-color-active)"})])]),x("anchor-link",` + padding: var(--n-link-padding); + position: relative; + line-height: 1.5; + font-size: var(--n-link-font-size); + min-height: 1.5em; + display: flex; + flex-direction: column; + `,[M("active",[z(">",[F("title",` + color: var(--n-link-text-color-active); + `)])]),F("title",` + outline: none; + max-width: 100%; + text-decoration: none; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + cursor: pointer; + display: inline-block; + padding-right: 16px; + transition: color .3s var(--n-bezier); + color: var(--n-link-text-color); + `,[z("&:hover, &:focus",` + color: var(--n-link-text-color-hover); + `),z("&:active",` + color: var(--n-link-text-color-pressed); + `)])])]),pb=Object.assign(Object.assign(Object.assign(Object.assign({},ge.props),{affix:Boolean}),_s),Du),mT=Y({name:"Anchor",props:pb,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("Anchor","-anchor",gT,cT,e,n),i=B(null),a=S(()=>{const{self:{railColor:d,linkColor:c,railColorActive:u,linkTextColor:f,linkTextColorHover:v,linkTextColorPressed:m,linkTextColorActive:h,linkFontSize:g,railWidth:p,linkPadding:b,borderRadius:y},common:{cubicBezierEaseInOut:R}}=o.value;return{"--n-link-border-radius":y,"--n-link-color":c,"--n-link-font-size":g,"--n-link-text-color":f,"--n-link-text-color-hover":v,"--n-link-text-color-active":h,"--n-link-text-color-pressed":m,"--n-link-padding":b,"--n-bezier":R,"--n-rail-color":d,"--n-rail-color-active":u,"--n-rail-width":p}}),l=r?Xe("anchor",void 0,a,e):void 0;return{scrollTo(d){var c;(c=i.value)===null||c===void 0||c.setActiveHref(d)},renderAnchor:()=>(l?.onRender(),s(vT,Object.assign({ref:i,style:r?void 0:a.value,class:l?.themeClass.value},vn(e,hT),{mergedClsPrefix:n.value}),t))}},render(){return this.affix?s(Wp,Object.assign({},vn(this,P3)),{default:this.renderAnchor}):this.renderAnchor()}}),pT=Wn&&"chrome"in window;Wn&&navigator.userAgent.includes("Firefox");const bb=Wn&&navigator.userAgent.includes("Safari")&&!pT,bT={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function xT(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:o,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:d,warningColor:c,warningColorHover:u,errorColor:f,errorColorHover:v,borderRadius:m,lineHeight:h,fontSizeTiny:g,fontSizeSmall:p,fontSizeMedium:b,fontSizeLarge:y,heightTiny:R,heightSmall:w,heightMedium:C,heightLarge:P,actionColor:k,clearColor:O,clearColorHover:$,clearColorPressed:T,placeholderColor:D,placeholderColorDisabled:I,iconColor:A,iconColorDisabled:E,iconColorHover:N,iconColorPressed:U,fontWeight:q}=e;return Object.assign(Object.assign({},bT),{fontWeight:q,countTextColorDisabled:r,countTextColor:n,heightTiny:R,heightSmall:w,heightMedium:C,heightLarge:P,fontSizeTiny:g,fontSizeSmall:p,fontSizeMedium:b,fontSizeLarge:y,lineHeight:h,lineHeightTextarea:h,borderRadius:m,iconSize:"16px",groupLabelColor:k,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:o,placeholderColor:D,placeholderColorDisabled:I,color:a,colorDisabled:l,colorFocus:a,groupLabelBorder:`1px solid ${d}`,border:`1px solid ${d}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${d}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${mt(o,{alpha:.2})}`,loadingColor:o,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${mt(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${v}`,colorFocusError:a,borderFocusError:`1px solid ${v}`,boxShadowFocusError:`0 0 0 2px ${mt(f,{alpha:.2})}`,caretColorError:f,clearColor:O,clearColorHover:$,clearColorPressed:T,iconColor:A,iconColorDisabled:E,iconColorHover:N,iconColorPressed:U,suffixTextColor:t})}const tr={name:"Input",common:Je,peers:{Scrollbar:Ln},self:xT},xb="n-input",yT=x("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[F("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),F("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),F("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),z("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),z("&:-webkit-autofill ~",[F("placeholder","display: none;")])]),M("round",[ft("textarea","border-radius: calc(var(--n-height) / 2);")]),F("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[z("span",` + width: 100%; + display: inline-block; + `)]),M("textarea",[F("placeholder","overflow: visible;")]),ft("autosize","width: 100%;"),M("autosize",[F("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),x("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),F("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),F("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[z("&[type=password]::-ms-reveal","display: none;"),z("+",[F("placeholder",` + display: flex; + align-items: center; + `)])]),ft("textarea",[F("placeholder","white-space: nowrap;")]),F("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),M("textarea","width: 100%;",[x("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),M("resizable",[x("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),F("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),F("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),M("pair",[F("input-el, placeholder","text-align: center;"),F("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[x("icon",` + color: var(--n-icon-color); + `),x("base-icon",` + color: var(--n-icon-color); + `)])]),M("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[F("border","border: var(--n-border-disabled);"),F("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),F("placeholder","color: var(--n-placeholder-color-disabled);"),F("separator","color: var(--n-text-color-disabled);",[x("icon",` + color: var(--n-icon-color-disabled); + `),x("base-icon",` + color: var(--n-icon-color-disabled); + `)]),x("input-word-count",` + color: var(--n-count-text-color-disabled); + `),F("suffix, prefix","color: var(--n-text-color-disabled);",[x("icon",` + color: var(--n-icon-color-disabled); + `),x("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),ft("disabled",[F("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[z("&:hover",` + color: var(--n-icon-color-hover); + `),z("&:active",` + color: var(--n-icon-color-pressed); + `)]),z("&:hover",[F("state-border","border: var(--n-border-hover);")]),M("focus","background-color: var(--n-color-focus);",[F("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),F("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),F("state-border",` + border-color: #0000; + z-index: 1; + `),F("prefix","margin-right: 4px;"),F("suffix",` + margin-left: 4px; + `),F("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[x("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),x("base-clear",` + font-size: var(--n-icon-size); + `,[F("placeholder",[x("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),z(">",[x("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),x("base-icon",` + font-size: var(--n-icon-size); + `)]),x("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>M(`${e}-status`,[ft("disabled",[x("base-loading",` + color: var(--n-loading-color-${e}) + `),F("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),F("state-border",` + border: var(--n-border-${e}); + `),z("&:hover",[F("state-border",` + border: var(--n-border-hover-${e}); + `)]),z("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[F("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),M("focus",` + background-color: var(--n-color-focus-${e}); + `,[F("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),wT=x("input",[M("disabled",[F("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]);function CT(e){let t=0;for(const n of e)t++;return t}function Pl(e){return e===""||e==null}function ST(e){const t=B(null);function n(){const{value:i}=e;if(!i?.focus){o();return}const{selectionStart:a,selectionEnd:l,value:d}=i;if(a==null||l==null){o();return}t.value={start:a,end:l,beforeText:d.slice(0,a),afterText:d.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:d}=l,{start:c,beforeText:u,afterText:f}=a;let v=d.length;if(d.endsWith(f))v=d.length-f.length;else if(d.startsWith(u))v=u.length;else{const m=u[c-1],h=d.indexOf(m,c-1);h!==-1&&(v=h+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,v,v)}function o(){t.value=null}return ct(e,o),{recordCursor:n,restoreCursor:r}}const vv=Y({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:o,countGraphemesRef:i}=Be(xb),a=S(()=>{const{value:l}=n;return l===null||Array.isArray(l)?0:(i.value||CT)(l)});return()=>{const{value:l}=r,{value:d}=n;return s("span",{class:`${o.value}-input-word-count`},an(t.default,{value:d===null||Array.isArray(d)?"":d},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),yb=Object.assign(Object.assign({},ge.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Sn=Y({name:"Input",props:yb,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=ge("Input","-input",yT,tr,e,t);bb&&ur("-input-safari",wT,t);const a=B(null),l=B(null),d=B(null),c=B(null),u=B(null),f=B(null),v=B(null),m=ST(v),h=B(null),{localeRef:g}=on("Input"),p=B(e.defaultValue),b=le(e,"value"),y=St(b,p),R=ln(e),{mergedSizeRef:w,mergedDisabledRef:C,mergedStatusRef:P}=R,k=B(!1),O=B(!1),$=B(!1),T=B(!1);let D=null;const I=S(()=>{const{placeholder:oe,pair:Re}=e;return Re?Array.isArray(oe)?oe:oe===void 0?["",""]:[oe,oe]:oe===void 0?[g.value.placeholder]:[oe]}),A=S(()=>{const{value:oe}=$,{value:Re}=y,{value:We}=I;return!oe&&(Pl(Re)||Array.isArray(Re)&&Pl(Re[0]))&&We[0]}),E=S(()=>{const{value:oe}=$,{value:Re}=y,{value:We}=I;return!oe&&We[1]&&(Pl(Re)||Array.isArray(Re)&&Pl(Re[1]))}),N=it(()=>e.internalForceFocus||k.value),U=it(()=>{if(C.value||e.readonly||!e.clearable||!N.value&&!O.value)return!1;const{value:oe}=y,{value:Re}=N;return e.pair?!!(Array.isArray(oe)&&(oe[0]||oe[1]))&&(O.value||Re):!!oe&&(O.value||Re)}),q=S(()=>{const{showPasswordOn:oe}=e;if(oe)return oe;if(e.showPasswordToggle)return"click"}),J=B(!1),ve=S(()=>{const{textDecoration:oe}=e;return oe?Array.isArray(oe)?oe.map(Re=>({textDecoration:Re})):[{textDecoration:oe}]:["",""]}),ae=B(void 0),W=()=>{var oe,Re;if(e.type==="textarea"){const{autosize:We}=e;if(We&&(ae.value=(Re=(oe=h.value)===null||oe===void 0?void 0:oe.$el)===null||Re===void 0?void 0:Re.offsetWidth),!l.value||typeof We=="boolean")return;const{paddingTop:de,paddingBottom:Pe,lineHeight:Le}=window.getComputedStyle(l.value),Ze=Number(de.slice(0,-2)),et=Number(Pe.slice(0,-2)),$t=Number(Le.slice(0,-2)),{value:Jt}=d;if(!Jt)return;if(We.minRows){const Qt=Math.max(We.minRows,1),Tn=`${Ze+et+$t*Qt}px`;Jt.style.minHeight=Tn}if(We.maxRows){const Qt=`${Ze+et+$t*We.maxRows}px`;Jt.style.maxHeight=Qt}}},j=S(()=>{const{maxlength:oe}=e;return oe===void 0?void 0:Number(oe)});It(()=>{const{value:oe}=y;Array.isArray(oe)||Ce(oe)});const _=Xi().proxy;function L(oe,Re){const{onUpdateValue:We,"onUpdate:value":de,onInput:Pe}=e,{nTriggerFormInput:Le}=R;We&&ie(We,oe,Re),de&&ie(de,oe,Re),Pe&&ie(Pe,oe,Re),p.value=oe,Le()}function Z(oe,Re){const{onChange:We}=e,{nTriggerFormChange:de}=R;We&&ie(We,oe,Re),p.value=oe,de()}function ce(oe){const{onBlur:Re}=e,{nTriggerFormBlur:We}=R;Re&&ie(Re,oe),We()}function ye(oe){const{onFocus:Re}=e,{nTriggerFormFocus:We}=R;Re&&ie(Re,oe),We()}function _e(oe){const{onClear:Re}=e;Re&&ie(Re,oe)}function V(oe){const{onInputBlur:Re}=e;Re&&ie(Re,oe)}function ze(oe){const{onInputFocus:Re}=e;Re&&ie(Re,oe)}function Ae(){const{onDeactivate:oe}=e;oe&&ie(oe)}function Ne(){const{onActivate:oe}=e;oe&&ie(oe)}function je(oe){const{onClick:Re}=e;Re&&ie(Re,oe)}function qe(oe){const{onWrapperFocus:Re}=e;Re&&ie(Re,oe)}function gt(oe){const{onWrapperBlur:Re}=e;Re&&ie(Re,oe)}function at(){$.value=!0}function Te(oe){$.value=!1,oe.target===f.value?Q(oe,1):Q(oe,0)}function Q(oe,Re=0,We="input"){const de=oe.target.value;if(Ce(de),oe instanceof InputEvent&&!oe.isComposing&&($.value=!1),e.type==="textarea"){const{value:Le}=h;Le&&Le.syncUnifiedContainer()}if(D=de,$.value)return;m.recordCursor();const Pe=ue(de);if(Pe)if(!e.pair)We==="input"?L(de,{source:Re}):Z(de,{source:Re});else{let{value:Le}=y;Array.isArray(Le)?Le=[Le[0],Le[1]]:Le=["",""],Le[Re]=de,We==="input"?L(Le,{source:Re}):Z(Le,{source:Re})}_.$forceUpdate(),Pe||zt(m.restoreCursor)}function ue(oe){const{countGraphemes:Re,maxlength:We,minlength:de}=e;if(Re){let Le;if(We!==void 0&&(Le===void 0&&(Le=Re(oe)),Le>Number(We))||de!==void 0&&(Le===void 0&&(Le=Re(oe)),Le{de.preventDefault(),wt("mouseup",document,Re)};if(Ct("mouseup",document,Re),q.value!=="mousedown")return;J.value=!0;const We=()=>{J.value=!1,wt("mouseup",document,We)};Ct("mouseup",document,We)}function He(oe){e.onKeyup&&ie(e.onKeyup,oe)}function nt(oe){switch(e.onKeydown&&ie(e.onKeydown,oe),oe.key){case"Escape":H();break;case"Enter":K(oe);break}}function K(oe){var Re,We;if(e.passivelyActivated){const{value:de}=T;if(de){e.internalDeactivateOnEnter&&H();return}oe.preventDefault(),e.type==="textarea"?(Re=l.value)===null||Re===void 0||Re.focus():(We=u.value)===null||We===void 0||We.focus()}}function H(){e.passivelyActivated&&(T.value=!1,zt(()=>{var oe;(oe=a.value)===null||oe===void 0||oe.focus()}))}function pe(){var oe,Re,We;C.value||(e.passivelyActivated?(oe=a.value)===null||oe===void 0||oe.focus():((Re=l.value)===null||Re===void 0||Re.focus(),(We=u.value)===null||We===void 0||We.focus()))}function $e(){var oe;!((oe=a.value)===null||oe===void 0)&&oe.contains(document.activeElement)&&document.activeElement.blur()}function Oe(){var oe,Re;(oe=l.value)===null||oe===void 0||oe.select(),(Re=u.value)===null||Re===void 0||Re.select()}function ne(){C.value||(l.value?l.value.focus():u.value&&u.value.focus())}function Se(){const{value:oe}=a;oe?.contains(document.activeElement)&&oe!==document.activeElement&&H()}function ee(oe){if(e.type==="textarea"){const{value:Re}=l;Re?.scrollTo(oe)}else{const{value:Re}=u;Re?.scrollTo(oe)}}function Ce(oe){const{type:Re,pair:We,autosize:de}=e;if(!We&&de)if(Re==="textarea"){const{value:Pe}=d;Pe&&(Pe.textContent=`${oe??""}\r +`)}else{const{value:Pe}=c;Pe&&(oe?Pe.textContent=oe:Pe.innerHTML=" ")}}function Ue(){W()}const Ye=B({top:"0"});function se(oe){var Re;const{scrollTop:We}=oe.target;Ye.value.top=`${-We}px`,(Re=h.value)===null||Re===void 0||Re.syncUnifiedContainer()}let Me=null;Ft(()=>{const{autosize:oe,type:Re}=e;oe&&Re==="textarea"?Me=ct(y,We=>{!Array.isArray(We)&&We!==D&&Ce(We)}):Me?.()});let re=null;Ft(()=>{e.type==="textarea"?re=ct(y,oe=>{var Re;!Array.isArray(oe)&&oe!==D&&((Re=h.value)===null||Re===void 0||Re.syncUnifiedContainer())}):re?.()}),ot(xb,{mergedValueRef:y,maxlengthRef:j,mergedClsPrefixRef:t,countGraphemesRef:le(e,"countGraphemes")});const ke={wrapperElRef:a,inputElRef:u,textareaElRef:l,isCompositing:$,clear:Ke,focus:pe,blur:$e,select:Oe,deactivate:Se,activate:ne,scrollTo:ee},De=Bt("Input",o,t),Qe=S(()=>{const{value:oe}=w,{common:{cubicBezierEaseInOut:Re},self:{color:We,borderRadius:de,textColor:Pe,caretColor:Le,caretColorError:Ze,caretColorWarning:et,textDecorationColor:$t,border:Jt,borderDisabled:Qt,borderHover:Tn,borderFocus:Dn,placeholderColor:un,placeholderColorDisabled:At,lineHeightTextarea:xe,colorDisabled:Ve,colorFocus:Ge,textColorDisabled:Tt,boxShadowFocus:fn,iconSize:Lt,colorFocusWarning:fr,boxShadowFocusWarning:Sr,borderWarning:or,borderFocusWarning:la,borderHoverWarning:sa,colorFocusError:da,boxShadowFocusError:ca,borderError:ua,borderFocusError:fa,borderHoverError:ed,clearSize:Bw,clearColor:Aw,clearColorHover:Dw,clearColorPressed:_w,iconColor:Ew,iconColorDisabled:Nw,suffixTextColor:Lw,countTextColor:Hw,countTextColorDisabled:jw,iconColorHover:Vw,iconColorPressed:Uw,loadingColor:Ww,loadingColorError:Kw,loadingColorWarning:qw,fontWeight:Yw,[be("padding",oe)]:Gw,[be("fontSize",oe)]:Xw,[be("height",oe)]:Zw}}=i.value,{left:Jw,right:Qw}=cn(Gw);return{"--n-bezier":Re,"--n-count-text-color":Hw,"--n-count-text-color-disabled":jw,"--n-color":We,"--n-font-size":Xw,"--n-font-weight":Yw,"--n-border-radius":de,"--n-height":Zw,"--n-padding-left":Jw,"--n-padding-right":Qw,"--n-text-color":Pe,"--n-caret-color":Le,"--n-text-decoration-color":$t,"--n-border":Jt,"--n-border-disabled":Qt,"--n-border-hover":Tn,"--n-border-focus":Dn,"--n-placeholder-color":un,"--n-placeholder-color-disabled":At,"--n-icon-size":Lt,"--n-line-height-textarea":xe,"--n-color-disabled":Ve,"--n-color-focus":Ge,"--n-text-color-disabled":Tt,"--n-box-shadow-focus":fn,"--n-loading-color":Ww,"--n-caret-color-warning":et,"--n-color-focus-warning":fr,"--n-box-shadow-focus-warning":Sr,"--n-border-warning":or,"--n-border-focus-warning":la,"--n-border-hover-warning":sa,"--n-loading-color-warning":qw,"--n-caret-color-error":Ze,"--n-color-focus-error":da,"--n-box-shadow-focus-error":ca,"--n-border-error":ua,"--n-border-focus-error":fa,"--n-border-hover-error":ed,"--n-loading-color-error":Kw,"--n-clear-color":Aw,"--n-clear-size":Bw,"--n-clear-color-hover":Dw,"--n-clear-color-pressed":_w,"--n-icon-color":Ew,"--n-icon-color-hover":Vw,"--n-icon-color-pressed":Uw,"--n-icon-color-disabled":Nw,"--n-suffix-text-color":Lw}}),rt=r?Xe("input",S(()=>{const{value:oe}=w;return oe[0]}),Qe,e):void 0;return Object.assign(Object.assign({},ke),{wrapperElRef:a,inputElRef:u,inputMirrorElRef:c,inputEl2Ref:f,textareaElRef:l,textareaMirrorElRef:d,textareaScrollbarInstRef:h,rtlEnabled:De,uncontrolledValue:p,mergedValue:y,passwordVisible:J,mergedPlaceholder:I,showPlaceholder1:A,showPlaceholder2:E,mergedFocus:N,isComposing:$,activated:T,showClearButton:U,mergedSize:w,mergedDisabled:C,textDecorationStyle:ve,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:q,placeholderStyle:Ye,mergedStatus:P,textAreaScrollContainerWidth:ae,handleTextAreaScroll:se,handleCompositionStart:at,handleCompositionEnd:Te,handleInput:Q,handleInputBlur:G,handleInputFocus:fe,handleWrapperBlur:we,handleWrapperFocus:te,handleMouseEnter:xt,handleMouseLeave:vt,handleMouseDown:st,handleChange:he,handleClick:Ie,handleClear:me,handlePasswordToggleClick:bt,handlePasswordToggleMousedown:pt,handleWrapperKeydown:nt,handleWrapperKeyup:He,handleTextAreaMirrorResize:Ue,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Qe,themeClass:rt?.themeClass,onRender:rt?.onRender})},render(){var e,t,n,r,o,i,a;const{mergedClsPrefix:l,mergedStatus:d,themeClass:c,type:u,countGraphemes:f,onRender:v}=this,m=this.$slots;return v?.(),s("div",{ref:"wrapperElRef",class:[`${l}-input`,c,d&&`${l}-input--${d}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:u==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&u!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},s("div",{class:`${l}-input-wrapper`},yt(m.prefix,h=>h&&s("div",{class:`${l}-input__prefix`},h)),u==="textarea"?s(Zt,{ref:"textareaScrollbarInstRef",class:`${l}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(r=(n=this.themeOverrides)===null||n===void 0?void 0:n.peers)===null||r===void 0?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var h,g;const{textAreaScrollContainerWidth:p}=this,b={width:this.autosize&&p&&`${p}px`};return s(qt,null,s("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-input__textarea-el`,(h=this.inputProps)===null||h===void 0?void 0:h.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,b],onBlur:this.handleInputBlur,onFocus:y=>{this.handleInputFocus(y,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?s("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,b],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?s(Nn,{onResize:this.handleTextAreaMirrorResize},{default:()=>s("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):s("div",{class:`${l}-input__input`},s("input",Object.assign({type:u==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":u},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(o=this.inputProps)===null||o===void 0?void 0:o.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(a=this.inputProps)===null||a===void 0?void 0:a.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,0)},onInput:h=>{this.handleInput(h,0)},onChange:h=>{this.handleChange(h,0)}})),this.showPlaceholder1?s("div",{class:`${l}-input__placeholder`},s("span",null,this.mergedPlaceholder[0])):null,this.autosize?s("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&yt(m.suffix,h=>h||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?s("div",{class:`${l}-input__suffix`},[yt(m["clear-icon-placeholder"],g=>(this.clearable||g)&&s(Rc,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var p,b;return(b=(p=this.$slots)["clear-icon"])===null||b===void 0?void 0:b.call(p)}})),this.internalLoadingBeforeSuffix?null:h,this.loading!==void 0?s(fb,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?h:null,this.showCount&&this.type!=="textarea"?s(vv,null,{default:g=>{var p;const{renderCount:b}=this;return b?b(g):(p=m.count)===null||p===void 0?void 0:p.call(m,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?s("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?ht(m["password-visible-icon"],()=>[s(lt,{clsPrefix:l},{default:()=>s(Gp,null)})]):ht(m["password-invisible-icon"],()=>[s(lt,{clsPrefix:l},{default:()=>s(A3,null)})])):null]):null)),this.pair?s("span",{class:`${l}-input__separator`},ht(m.separator,()=>[this.separator])):null,this.pair?s("div",{class:`${l}-input-wrapper`},s("div",{class:`${l}-input__input`},s("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:f?void 0:this.maxlength,minlength:f?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,1)},onInput:h=>{this.handleInput(h,1)},onChange:h=>{this.handleChange(h,1)}}),this.showPlaceholder2?s("div",{class:`${l}-input__placeholder`},s("span",null,this.mergedPlaceholder[1])):null),yt(m.suffix,h=>(this.clearable||h)&&s("div",{class:`${l}-input__suffix`},[this.clearable&&s(Rc,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=m["clear-icon"])===null||g===void 0?void 0:g.call(m)},placeholder:()=>{var g;return(g=m["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(m)}}),h]))):null,this.mergedBordered?s("div",{class:`${l}-input__border`}):null,this.mergedBordered?s("div",{class:`${l}-input__state-border`}):null,this.showCount&&u==="textarea"?s(vv,null,{default:h=>{var g;const{renderCount:p}=this;return p?p(h):(g=m.count)===null||g===void 0?void 0:g.call(m,h)}}):null)}}),RT=x("input-group",` + display: inline-flex; + width: 100%; + flex-wrap: nowrap; + vertical-align: bottom; +`,[z(">",[x("input",[z("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),z("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + margin-left: -1px!important; + `)]),x("button",[z("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[F("state-border, border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)]),z("&:not(:first-child)",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[F("state-border, border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])]),z("*",[z("&:not(:last-child)",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `,[z(">",[x("input",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),x("base-selection",[x("base-selection-label",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),x("base-selection-tags",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `),F("box-shadow, border, state-border",` + border-top-right-radius: 0!important; + border-bottom-right-radius: 0!important; + `)])])]),z("&:not(:first-child)",` + margin-left: -1px!important; + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `,[z(">",[x("input",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),x("base-selection",[x("base-selection-label",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),x("base-selection-tags",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `),F("box-shadow, border, state-border",` + border-top-left-radius: 0!important; + border-bottom-left-radius: 0!important; + `)])])])])])]),wb={},Cb=Y({name:"InputGroup",props:wb,setup(e){const{mergedClsPrefixRef:t}=Ee(e);return ur("-input-group",RT,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:`${e}-input-group`},this.$slots)}}),kT=x("input-group-label",` + position: relative; + user-select: none; + -webkit-user-select: none; + box-sizing: border-box; + padding: 0 12px; + display: inline-block; + border-radius: var(--n-border-radius); + background-color: var(--n-group-label-color); + color: var(--n-group-label-text-color); + font-size: var(--n-font-size); + line-height: var(--n-height); + height: var(--n-height); + flex-shrink: 0; + white-space: nowrap; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[F("border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-group-label-border); + transition: border-color .3s var(--n-bezier); + `)]),Sb=Object.assign(Object.assign({},ge.props),{size:String,bordered:{type:Boolean,default:void 0}}),PT=Y({name:"InputGroupLabel",props:Sb,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(e),o=ln(e),{mergedSizeRef:i}=o,a=ge("Input","-input-group-label",kT,tr,e,n),l=S(()=>{const{value:c}=i,{common:{cubicBezierEaseInOut:u},self:{groupLabelColor:f,borderRadius:v,groupLabelTextColor:m,lineHeight:h,groupLabelBorder:g,[be("fontSize",c)]:p,[be("height",c)]:b}}=a.value;return{"--n-bezier":u,"--n-group-label-color":f,"--n-group-label-border":g,"--n-border-radius":v,"--n-group-label-text-color":m,"--n-font-size":p,"--n-line-height":h,"--n-height":b}}),d=r?Xe("input-group-label",S(()=>{const{value:c}=i;return c[0]}),l,e):void 0;return{mergedClsPrefix:n,mergedBordered:t,cssVars:r?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${r}-input-group-label`,this.themeClass],style:this.cssVars},(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t),this.mergedBordered?s("div",{class:`${r}-input-group-label__border`}):null)}});function hs(e){return e.type==="group"}function Rb(e){return e.type==="ignored"}function Sd(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ns(e,t){return{getIsGroup:hs,getIgnored:Rb,getKey(r){return hs(r)?r.name||r.key||"key-required":r[e]},getChildren(r){return r[t]}}}function zT(e,t,n,r){if(!t)return e;function o(i){if(!Array.isArray(i))return[];const a=[];for(const l of i)if(hs(l)){const d=o(l[r]);d.length&&a.push(Object.assign({},l,{[r]:d}))}else{if(Rb(l))continue;t(n,l)&&a.push(l)}return a}return o(e)}function $T(e,t,n){const r=new Map;return e.forEach(o=>{hs(o)?o[n].forEach(i=>{r.set(i[t],i)}):r.set(o[t],o)}),r}function TT(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const OT={name:"AutoComplete",common:Je,peers:{InternalSelectMenu:ea,Input:tr},self:TT},FT=z([x("auto-complete",` + z-index: auto; + position: relative; + display: inline-flex; + width: 100%; + `),x("auto-complete-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[Cn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);function MT(e){return e.map(kb)}function kb(e){var t,n;return typeof e=="string"?{label:e,value:e}:e.type==="group"?{type:"group",label:(t=e.label)!==null&&t!==void 0?t:e.name,value:(n=e.value)!==null&&n!==void 0?n:e.name,key:e.key||e.name,children:e.children.map(o=>kb(o))}:e}const Pb=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,menuProps:Object,append:Boolean,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:"bottom-start"},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,showEmpty:Boolean,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],onInput:[Function,Array]}),IT=Y({name:"AutoComplete",props:Pb,slots:Object,setup(e){const{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o}=Ee(e),i=ln(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:d}=i,c=B(null),u=B(null),f=B(e.defaultValue),v=le(e,"value"),m=St(v,f),h=B(!1),g=B(!1),p=ge("AutoComplete","-auto-complete",FT,OT,e,r),b=S(()=>MT(e.options)),y=S(()=>{const{getShow:L}=e;return L?L(m.value||""):!!m.value}),R=S(()=>y.value&&h.value&&(e.showEmpty?!0:!!b.value.length)),w=S(()=>Gn(b.value,Ns("value","children")));function C(L){const{"onUpdate:value":Z,onUpdateValue:ce,onInput:ye}=e,{nTriggerFormInput:_e,nTriggerFormChange:V}=i;ce&&ie(ce,L),Z&&ie(Z,L),ye&&ie(ye,L),f.value=L,_e(),V()}function P(L){const{onSelect:Z}=e,{nTriggerFormInput:ce,nTriggerFormChange:ye}=i;Z&&ie(Z,L),ce(),ye()}function k(L){const{onBlur:Z}=e,{nTriggerFormBlur:ce}=i;Z&&ie(Z,L),ce()}function O(L){const{onFocus:Z}=e,{nTriggerFormFocus:ce}=i;Z&&ie(Z,L),ce()}function $(){g.value=!0}function T(){window.setTimeout(()=>{g.value=!1},0)}function D(L){var Z,ce,ye;switch(L.key){case"Enter":if(!g.value){const _e=(Z=u.value)===null||Z===void 0?void 0:Z.getPendingTmNode();_e&&(I(_e.rawNode),L.preventDefault())}break;case"ArrowDown":(ce=u.value)===null||ce===void 0||ce.next();break;case"ArrowUp":(ye=u.value)===null||ye===void 0||ye.prev();break}}function I(L){L?.value!==void 0&&(P(L.value),e.clearAfterSelect?C(null):L.label!==void 0&&C(e.append?`${m.value}${L.label}`:L.label),h.value=!1,e.blurAfterSelect&&ve())}function A(){C(null)}function E(L){h.value=!0,O(L)}function N(L){h.value=!1,k(L)}function U(L){h.value=!0,C(L)}function q(L){I(L.rawNode)}function J(L){var Z;!((Z=c.value)===null||Z===void 0)&&Z.contains(Jn(L))||(h.value=!1)}function ve(){var L,Z;!((L=c.value)===null||L===void 0)&&L.contains(document.activeElement)&&((Z=document.activeElement)===null||Z===void 0||Z.blur())}const ae=S(()=>{const{common:{cubicBezierEaseInOut:L},self:{menuBoxShadow:Z}}=p.value;return{"--n-menu-box-shadow":Z,"--n-bezier":L}}),W=o?Xe("auto-complete",void 0,ae,e):void 0,j=B(null),_={focus:()=>{var L;(L=j.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=j.value)===null||L===void 0||L.blur()}};return{focus:_.focus,blur:_.blur,inputInstRef:j,uncontrolledValue:f,mergedValue:m,isMounted:$n(),adjustedTo:Ht(e),menuInstRef:u,triggerElRef:c,treeMate:w,mergedSize:a,mergedDisabled:l,active:R,mergedStatus:d,handleClear:A,handleFocus:E,handleBlur:N,handleInput:U,handleToggle:q,handleClickOutsideMenu:J,handleCompositionStart:$,handleCompositionEnd:T,handleKeyDown:D,mergedTheme:p,cssVars:o?void 0:ae,themeClass:W?.themeClass,onRender:W?.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:`${e}-auto-complete`,ref:"triggerElRef",onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},s(yr,null,{default:()=>[s(wr,null,{default:()=>{const t=this.$slots.default;if(t)return qm("default",t,{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});const{mergedTheme:n}=this;return s(Sn,{ref:"inputInstRef",status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var r,o;return(o=(r=this.$slots).suffix)===null||o===void 0?void 0:o.call(r)},prefix:()=>{var r,o;return(o=(r=this.$slots).prefix)===null||o===void 0?void 0:o.call(r)}})}}),s(sr,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement,width:"target"},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var t;if((t=this.onRender)===null||t===void 0||t.call(this),!this.active)return null;const{menuProps:n}=this;return rn(s(tl,Object.assign({},n,{clsPrefix:e,ref:"menuInstRef",theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${e}-auto-complete-menu`,this.themeClass,n?.class],style:[n?.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:"medium",onToggle:this.handleToggle}),{empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}}),[[Qn,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),zb=Wn&&"loading"in document.createElement("img");function BT(e={}){var t;const{root:n=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}}const Rd=new WeakMap,kd=new WeakMap,Pd=new WeakMap,$b=(e,t,n)=>{if(!e)return()=>{};const r=BT(t),{root:o}=r.options;let i;const a=Rd.get(o);a?i=a:(i=new Map,Rd.set(o,i));let l,d;i.has(r.hash)?(d=i.get(r.hash),d[1].has(e)||(l=d[0],d[1].add(e),l.observe(e))):(l=new IntersectionObserver(f=>{f.forEach(v=>{if(v.isIntersecting){const m=kd.get(v.target),h=Pd.get(v.target);m&&m(),h&&(h.value=!0)}})},r.options),l.observe(e),d=[l,new Set([e])],i.set(r.hash,d));let c=!1;const u=()=>{c||(kd.delete(e),Pd.delete(e),c=!0,d[1].has(e)&&(d[0].unobserve(e),d[1].delete(e)),d[1].size<=0&&i.delete(r.hash),i.size||Rd.delete(o))};return kd.set(e,u),Pd.set(e,n),u};function AT(e){const{borderRadius:t,avatarColor:n,cardColor:r,fontSize:o,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:d,heightHuge:c,modalColor:u,popoverColor:f}=e;return{borderRadius:t,fontSize:o,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:d,heightHuge:c,color:dt(r,n),colorModal:dt(u,n),colorPopover:dt(f,n)}}const Tb={name:"Avatar",common:Je,self:AT},Ob="n-avatar-group",DT=x("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[jr(z("&","--n-merged-color: var(--n-color-modal);")),ro(z("&","--n-merged-color: var(--n-color-popover);")),z("img",` + width: 100%; + height: 100%; + `),F("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),x("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),F("text","line-height: 1.25")]),Fb=Object.assign(Object.assign({},ge.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),zc=Y({name:"Avatar",props:Fb,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=B(!1);let o=null;const i=B(null),a=B(null),l=()=>{const{value:y}=i;if(y&&(o===null||o!==y.innerHTML)){o=y.innerHTML;const{value:R}=a;if(R){const{offsetWidth:w,offsetHeight:C}=R,{offsetWidth:P,offsetHeight:k}=y,O=.9,$=Math.min(w/P*O,C/k*O,1);y.style.transform=`translateX(-50%) translateY(-50%) scale(${$})`}}},d=Be(Ob,null),c=S(()=>{const{size:y}=e;if(y)return y;const{size:R}=d||{};return R||"medium"}),u=ge("Avatar","-avatar",DT,Tb,e,t),f=Be(ub,null),v=S(()=>{if(d)return!0;const{round:y,circle:R}=e;return y!==void 0||R!==void 0?y||R:f?f.roundRef.value:!1}),m=S(()=>d?!0:e.bordered||!1),h=S(()=>{const y=c.value,R=v.value,w=m.value,{color:C}=e,{self:{borderRadius:P,fontSize:k,color:O,border:$,colorModal:T,colorPopover:D},common:{cubicBezierEaseInOut:I}}=u.value;let A;return typeof y=="number"?A=`${y}px`:A=u.value.self[be("height",y)],{"--n-font-size":k,"--n-border":w?$:"none","--n-border-radius":R?"50%":P,"--n-color":C||O,"--n-color-modal":C||T,"--n-color-popover":C||D,"--n-bezier":I,"--n-merged-size":`var(--n-avatar-size-override, ${A})`}}),g=n?Xe("avatar",S(()=>{const y=c.value,R=v.value,w=m.value,{color:C}=e;let P="";return y&&(typeof y=="number"?P+=`a${y}`:P+=y[0]),R&&(P+="b"),w&&(P+="c"),C&&(P+=ii(C)),P}),h,e):void 0,p=B(!e.lazy);It(()=>{if(e.lazy&&e.intersectionObserverOptions){let y;const R=Ft(()=>{y?.(),y=void 0,e.lazy&&(y=$b(a.value,e.intersectionObserverOptions,p))});jt(()=>{R(),y?.()})}}),ct(()=>{var y;return e.src||((y=e.imgProps)===null||y===void 0?void 0:y.src)},()=>{r.value=!1});const b=B(!e.lazy);return{textRef:i,selfRef:a,mergedRoundRef:v,mergedClsPrefix:t,fitTextTransform:l,cssVars:n?void 0:h,themeClass:g?.themeClass,onRender:g?.onRender,hasLoadError:r,shouldStartLoading:p,loaded:b,mergedOnError:y=>{if(!p.value)return;r.value=!0;const{onError:R,imgProps:{onError:w}={}}=e;R?.(y),w?.(y)},mergedOnLoad:y=>{const{onLoad:R,imgProps:{onLoad:w}={}}=e;R?.(y),w?.(y),b.value=!0}}},render(){var e,t;const{$slots:n,src:r,mergedClsPrefix:o,lazy:i,onRender:a,loaded:l,hasLoadError:d,imgProps:c={}}=this;a?.();let u;const f=!l&&!d&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?u=this.renderFallback?this.renderFallback():ht(n.fallback,()=>[s("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):u=yt(n.default,v=>{if(v)return s(Nn,{onResize:this.fitTextTransform},{default:()=>s("span",{ref:"textRef",class:`${o}-avatar__text`},v)});if(r||c.src){const m=this.src||c.src;return s("img",Object.assign(Object.assign({},c),{loading:zb&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?m:void 0:m,"data-image-src":m,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},f?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),s("span",{ref:"selfRef",class:[`${o}-avatar`,this.themeClass],style:this.cssVars},u,i&&f)}});function _T(){return{gap:"-12px"}}const ET={name:"AvatarGroup",common:Je,peers:{Avatar:Tb},self:_T},NT=x("avatar-group",` + flex-wrap: nowrap; + display: inline-flex; + position: relative; +`,[M("expand-on-hover",[x("avatar",[z("&:not(:first-child)",` + transition: margin .3s var(--n-bezier); + `)]),z("&:hover",[ft("vertical",[x("avatar",[z("&:not(:first-child)",` + margin-left: 0 !important; + `)])]),M("vertical",[x("avatar",[z("&:not(:first-child)",` + margin-top: 0 !important; + `)])])])]),ft("vertical",` + flex-direction: row; + `,[x("avatar",[z("&:not(:first-child)",` + margin-left: var(--n-gap); + `)])]),M("vertical",` + flex-direction: column; + `,[x("avatar",[z("&:not(:first-child)",` + margin-top: var(--n-gap); + `)])])]),Mb=Object.assign(Object.assign({},ge.props),{max:Number,maxStyle:[Object,String],options:{type:Array,default:()=>[]},vertical:Boolean,expandOnHover:Boolean,size:[String,Number]}),LT=Y({name:"AvatarGroup",props:Mb,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=ge("AvatarGroup","-avatar-group",NT,ET,e,t);ot(Ob,e);const o=Bt("AvatarGroup",n,t),i=S(()=>{const{max:l}=e;if(l===void 0)return;const{options:d}=e;return d.length>l?d.slice(l-1,d.length):[]}),a=S(()=>{const{options:l,max:d}=e;return d===void 0?l:l.length>d?l.slice(0,d-1):l.length===d?l.slice(0,d):l});return{mergedTheme:r,rtlEnabled:o,mergedClsPrefix:t,restOptions:i,displayedOptions:a,cssVars:S(()=>({"--n-gap":r.value.self.gap}))}},render(){const{mergedClsPrefix:e,displayedOptions:t,restOptions:n,mergedTheme:r,$slots:o}=this;return s("div",{class:[`${e}-avatar-group`,this.rtlEnabled&&`${e}-avatar-group--rtl`,this.vertical&&`${e}-avatar-group--vertical`,this.expandOnHover&&`${e}-avatar-group--expand-on-hover`],style:this.cssVars,role:"group"},t.map(i=>o.avatar?o.avatar({option:i}):s(zc,{src:i.src,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar})),n!==void 0&&n.length>0&&(o.rest?o.rest({options:n,rest:n.length}):s(zc,{style:this.maxStyle,theme:r.peers.Avatar,themeOverrides:r.peerOverrides.Avatar},{default:()=>`+${n.length}`})))}}),HT={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};function jT(e){const{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:o}=e;return Object.assign(Object.assign({},HT),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const VT={common:Je,self:jT},UT=()=>s("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},s("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},s("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},s("g",{transform:"translate(120.000000, 4285.000000)"},s("g",{transform:"translate(7.000000, 126.000000)"},s("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},s("g",{transform:"translate(4.000000, 2.000000)"},s("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),s("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),WT=x("back-top",` + position: fixed; + right: 40px; + bottom: 40px; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + height: var(--n-height); + min-width: var(--n-width); + box-shadow: var(--n-box-shadow); + background-color: var(--n-color); +`,[Cn(),M("transition-disabled",{transition:"none !important"}),x("base-icon",` + font-size: var(--n-icon-size); + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),z("svg",{pointerEvents:"none"}),z("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[x("base-icon",{color:"var(--n-icon-color-hover)"})]),z("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[x("base-icon",{color:"var(--n-icon-color-pressed)"})])]),Ib=Object.assign(Object.assign({},ge.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),KT=Y({name:"BackTop",inheritAttrs:!1,props:Ib,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=B(null),o=B(!1);Ft(()=>{const{value:w}=r;if(w===null){o.value=!1;return}o.value=w>=e.visibilityHeight});const i=B(!1);ct(o,w=>{var C;i.value&&((C=e["onUpdate:show"])===null||C===void 0||C.call(e,w))});const a=le(e,"show"),l=St(a,o),d=B(!0),c=B(null),u=S(()=>({right:`calc(${Pt(e.right)} + ${dc.value})`,bottom:Pt(e.bottom)}));let f,v;ct(l,w=>{var C,P;i.value&&(w&&((C=e.onShow)===null||C===void 0||C.call(e)),(P=e.onHide)===null||P===void 0||P.call(e))});const m=ge("BackTop","-back-top",WT,VT,e,t);function h(){var w;if(v)return;v=!0;const C=((w=e.target)===null||w===void 0?void 0:w.call(e))||ou(e.listenTo)||gm(c.value);if(!C)return;f=C===document.documentElement?document:C;const{to:P}=e;typeof P=="string"&&document.querySelector(P),f.addEventListener("scroll",p),p()}function g(){(bh(f)?document.documentElement:f).scrollTo({top:0,behavior:"smooth"})}function p(){r.value=(bh(f)?document.documentElement:f).scrollTop,i.value||zt(()=>{i.value=!0})}function b(){d.value=!1}It(()=>{h(),d.value=l.value}),jt(()=>{f&&f.removeEventListener("scroll",p)});const y=S(()=>{const{self:{color:w,boxShadow:C,boxShadowHover:P,boxShadowPressed:k,iconColor:O,iconColorHover:$,iconColorPressed:T,width:D,height:I,iconSize:A,borderRadius:E,textColor:N},common:{cubicBezierEaseInOut:U}}=m.value;return{"--n-bezier":U,"--n-border-radius":E,"--n-height":I,"--n-width":D,"--n-box-shadow":C,"--n-box-shadow-hover":P,"--n-box-shadow-pressed":k,"--n-color":w,"--n-icon-size":A,"--n-icon-color":O,"--n-icon-color-hover":$,"--n-icon-color-pressed":T,"--n-text-color":N}}),R=n?Xe("back-top",void 0,y,e):void 0;return{placeholderRef:c,style:u,mergedShow:l,isMounted:$n(),scrollElement:B(null),scrollTop:r,DomInfoReady:i,transitionDisabled:d,mergedClsPrefix:t,handleAfterEnter:b,handleScroll:p,handleClick:g,cssVars:n?void 0:y,themeClass:R?.themeClass,onRender:R?.onRender}},render(){const{mergedClsPrefix:e}=this;return s("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},s(Za,{to:this.to,show:this.mergedShow},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?s("div",Pn(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),ht(this.$slots.default,()=>[s(lt,{clsPrefix:e},{default:UT})])):null}})}))}});function qT(e){const{errorColor:t,infoColor:n,successColor:r,warningColor:o,fontFamily:i}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:o,fontSize:"12px",fontFamily:i}}const YT={common:Je,self:qT},GT=z([z("@keyframes badge-wave-spread",{from:{boxShadow:"0 0 0.5px 0px var(--n-ripple-color)",opacity:.6},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)",opacity:0}}),x("badge",` + display: inline-flex; + position: relative; + vertical-align: middle; + font-family: var(--n-font-family); + `,[M("as-is",[x("badge-sup",{position:"static",transform:"translateX(0)"},[Cn({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),M("dot",[x("badge-sup",` + height: 8px; + width: 8px; + padding: 0; + min-width: 8px; + left: 100%; + bottom: calc(100% - 4px); + `,[z("::before","border-radius: 4px;")])]),x("badge-sup",` + background: var(--n-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: #FFF; + position: absolute; + height: 18px; + line-height: 18px; + border-radius: 9px; + padding: 0 6px; + text-align: center; + font-size: var(--n-font-size); + transform: translateX(-50%); + left: 100%; + bottom: calc(100% - 9px); + font-variant-numeric: tabular-nums; + z-index: 2; + display: flex; + align-items: center; + `,[Cn({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),x("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),z("&::before",` + opacity: 0; + transform: scale(1); + border-radius: 9px; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)])])]),Bb=Object.assign(Object.assign({},ge.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array}),XT=Y({name:"Badge",props:Bb,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=ge("Badge","-badge",GT,YT,e,n),a=B(!1),l=()=>{a.value=!0},d=()=>{a.value=!1},c=S(()=>e.show&&(e.dot||e.value!==void 0&&!(!e.showZero&&Number(e.value)<=0)||!Qo(t.value)));It(()=>{c.value&&(a.value=!0)});const u=Bt("Badge",o,n),f=S(()=>{const{type:h,color:g}=e,{common:{cubicBezierEaseInOut:p,cubicBezierEaseOut:b},self:{[be("color",h)]:y,fontFamily:R,fontSize:w}}=i.value;return{"--n-font-size":w,"--n-font-family":R,"--n-color":g||y,"--n-ripple-color":g||y,"--n-bezier":p,"--n-ripple-bezier":b}}),v=r?Xe("badge",S(()=>{let h="";const{type:g,color:p}=e;return g&&(h+=g[0]),p&&(h+=ii(p)),h}),f,e):void 0,m=S(()=>{const{offset:h}=e;if(!h)return;const[g,p]=h,b=typeof g=="number"?`${g}px`:g,y=typeof p=="number"?`${p}px`:p;return{transform:`translate(calc(${u?.value?"50%":"-50%"} + ${b}), ${y})`}});return{rtlEnabled:u,mergedClsPrefix:n,appeared:a,showBadge:c,handleAfterEnter:l,handleAfterLeave:d,cssVars:r?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender,offsetStyle:m}},render(){var e;const{mergedClsPrefix:t,onRender:n,themeClass:r,$slots:o}=this;n?.();const i=(e=o.default)===null||e===void 0?void 0:e.call(o);return s("div",{class:[`${t}-badge`,this.rtlEnabled&&`${t}-badge--rtl`,r,{[`${t}-badge--dot`]:this.dot,[`${t}-badge--as-is`]:!i}],style:this.cssVars},i,s(_t,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?s("sup",{class:`${t}-badge-sup`,title:Hi(this.value),style:this.offsetStyle},ht(o.value,()=>[this.dot?null:s(Q5,{clsPrefix:t,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?s(vb,{clsPrefix:t}):null):null}))}}),ZT={fontWeightActive:"400"};function JT(e){const{fontSize:t,textColor3:n,textColor2:r,borderRadius:o,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},ZT),{fontSize:t,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:o,itemColorHover:i,itemColorPressed:a,separatorColor:n})}const QT={common:Je,self:JT},e4=x("breadcrumb",` + white-space: nowrap; + cursor: default; + line-height: var(--n-item-line-height); +`,[z("ul",` + list-style: none; + padding: 0; + margin: 0; + `),z("a",` + color: inherit; + text-decoration: inherit; + `),x("breadcrumb-item",` + font-size: var(--n-font-size); + transition: color .3s var(--n-bezier); + display: inline-flex; + align-items: center; + `,[x("icon",` + font-size: 18px; + vertical-align: -.2em; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `),z("&:not(:last-child)",[M("clickable",[F("link",` + cursor: pointer; + `,[z("&:hover",` + background-color: var(--n-item-color-hover); + `),z("&:active",` + background-color: var(--n-item-color-pressed); + `)])])]),F("link",` + padding: 4px; + border-radius: var(--n-item-border-radius); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + color: var(--n-item-text-color); + position: relative; + `,[z("&:hover",` + color: var(--n-item-text-color-hover); + `,[x("icon",` + color: var(--n-item-text-color-hover); + `)]),z("&:active",` + color: var(--n-item-text-color-pressed); + `,[x("icon",` + color: var(--n-item-text-color-pressed); + `)])]),F("separator",` + margin: 0 8px; + color: var(--n-separator-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + `),z("&:last-child",[F("link",` + font-weight: var(--n-font-weight-active); + cursor: unset; + color: var(--n-item-text-color-active); + `,[x("icon",` + color: var(--n-item-text-color-active); + `)]),F("separator",` + display: none; + `)])])]),Ab="n-breadcrumb",Db=Object.assign(Object.assign({},ge.props),{separator:{type:String,default:"/"}}),t4=Y({name:"Breadcrumb",props:Db,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Breadcrumb","-breadcrumb",e4,QT,e,t);ot(Ab,{separatorRef:le(e,"separator"),mergedClsPrefixRef:t});const o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{separatorColor:l,itemTextColor:d,itemTextColorHover:c,itemTextColorPressed:u,itemTextColorActive:f,fontSize:v,fontWeightActive:m,itemBorderRadius:h,itemColorHover:g,itemColorPressed:p,itemLineHeight:b}}=r.value;return{"--n-font-size":v,"--n-bezier":a,"--n-item-text-color":d,"--n-item-text-color-hover":c,"--n-item-text-color-pressed":u,"--n-item-text-color-active":f,"--n-separator-color":l,"--n-item-color-hover":g,"--n-item-color-pressed":p,"--n-item-border-radius":h,"--n-font-weight-active":m,"--n-item-line-height":b}}),i=n?Xe("breadcrumb",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},s("ul",null,this.$slots))}});function n4(e=Wn?window:null){const t=()=>{const{hash:o,host:i,hostname:a,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}=e?.location||{};return{hash:o,host:i,hostname:a,href:l,origin:d,pathname:c,port:u,protocol:f,search:v}},n=B(t()),r=()=>{n.value=t()};return It(()=>{e&&(e.addEventListener("popstate",r),e.addEventListener("hashchange",r))}),ks(()=>{e&&(e.removeEventListener("popstate",r),e.removeEventListener("hashchange",r))}),n}const _b={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function},r4=Y({name:"BreadcrumbItem",props:_b,slots:Object,setup(e,{slots:t}){const n=Be(Ab,null);if(!n)return()=>null;const{separatorRef:r,mergedClsPrefixRef:o}=n,i=n4(),a=S(()=>e.href?"a":"span"),l=S(()=>i.value.href===e.href?"location":null);return()=>{const{value:d}=o;return s("li",{class:[`${d}-breadcrumb-item`,e.clickable&&`${d}-breadcrumb-item--clickable`]},s(a.value,{class:`${d}-breadcrumb-item__link`,"aria-current":l.value,href:e.href,onClick:e.onClick},t),s("span",{class:`${d}-breadcrumb-item__separator`,"aria-hidden":"true"},ht(t.separator,()=>{var c;return[(c=e.separator)!==null&&c!==void 0?c:r.value]})))}}});function _o(e){return dt(e,[255,255,255,.16])}function zl(e){return dt(e,[0,0,0,.12])}const Eb="n-button-group",o4={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function i4(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,textColor2:f,textColor3:v,primaryColorHover:m,primaryColorPressed:h,borderColor:g,primaryColor:p,baseColor:b,infoColor:y,infoColorHover:R,infoColorPressed:w,successColor:C,successColorHover:P,successColorPressed:k,warningColor:O,warningColorHover:$,warningColorPressed:T,errorColor:D,errorColorHover:I,errorColorPressed:A,fontWeight:E,buttonColor2:N,buttonColor2Hover:U,buttonColor2Pressed:q,fontWeightStrong:J}=e;return Object.assign(Object.assign({},o4),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:N,colorSecondaryHover:U,colorSecondaryPressed:q,colorTertiary:N,colorTertiaryHover:U,colorTertiaryPressed:q,colorQuaternary:"#0000",colorQuaternaryHover:U,colorQuaternaryPressed:q,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:v,textColorHover:m,textColorPressed:h,textColorFocus:m,textColorDisabled:f,textColorText:f,textColorTextHover:m,textColorTextPressed:h,textColorTextFocus:m,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:m,textColorGhostPressed:h,textColorGhostFocus:m,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${m}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${m}`,borderDisabled:`1px solid ${g}`,rippleColor:p,colorPrimary:p,colorHoverPrimary:m,colorPressedPrimary:h,colorFocusPrimary:m,colorDisabledPrimary:p,textColorPrimary:b,textColorHoverPrimary:b,textColorPressedPrimary:b,textColorFocusPrimary:b,textColorDisabledPrimary:b,textColorTextPrimary:p,textColorTextHoverPrimary:m,textColorTextPressedPrimary:h,textColorTextFocusPrimary:m,textColorTextDisabledPrimary:f,textColorGhostPrimary:p,textColorGhostHoverPrimary:m,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:m,textColorGhostDisabledPrimary:p,borderPrimary:`1px solid ${p}`,borderHoverPrimary:`1px solid ${m}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${m}`,borderDisabledPrimary:`1px solid ${p}`,rippleColorPrimary:p,colorInfo:y,colorHoverInfo:R,colorPressedInfo:w,colorFocusInfo:R,colorDisabledInfo:y,textColorInfo:b,textColorHoverInfo:b,textColorPressedInfo:b,textColorFocusInfo:b,textColorDisabledInfo:b,textColorTextInfo:y,textColorTextHoverInfo:R,textColorTextPressedInfo:w,textColorTextFocusInfo:R,textColorTextDisabledInfo:f,textColorGhostInfo:y,textColorGhostHoverInfo:R,textColorGhostPressedInfo:w,textColorGhostFocusInfo:R,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${R}`,borderPressedInfo:`1px solid ${w}`,borderFocusInfo:`1px solid ${R}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:C,colorHoverSuccess:P,colorPressedSuccess:k,colorFocusSuccess:P,colorDisabledSuccess:C,textColorSuccess:b,textColorHoverSuccess:b,textColorPressedSuccess:b,textColorFocusSuccess:b,textColorDisabledSuccess:b,textColorTextSuccess:C,textColorTextHoverSuccess:P,textColorTextPressedSuccess:k,textColorTextFocusSuccess:P,textColorTextDisabledSuccess:f,textColorGhostSuccess:C,textColorGhostHoverSuccess:P,textColorGhostPressedSuccess:k,textColorGhostFocusSuccess:P,textColorGhostDisabledSuccess:C,borderSuccess:`1px solid ${C}`,borderHoverSuccess:`1px solid ${P}`,borderPressedSuccess:`1px solid ${k}`,borderFocusSuccess:`1px solid ${P}`,borderDisabledSuccess:`1px solid ${C}`,rippleColorSuccess:C,colorWarning:O,colorHoverWarning:$,colorPressedWarning:T,colorFocusWarning:$,colorDisabledWarning:O,textColorWarning:b,textColorHoverWarning:b,textColorPressedWarning:b,textColorFocusWarning:b,textColorDisabledWarning:b,textColorTextWarning:O,textColorTextHoverWarning:$,textColorTextPressedWarning:T,textColorTextFocusWarning:$,textColorTextDisabledWarning:f,textColorGhostWarning:O,textColorGhostHoverWarning:$,textColorGhostPressedWarning:T,textColorGhostFocusWarning:$,textColorGhostDisabledWarning:O,borderWarning:`1px solid ${O}`,borderHoverWarning:`1px solid ${$}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${$}`,borderDisabledWarning:`1px solid ${O}`,rippleColorWarning:O,colorError:D,colorHoverError:I,colorPressedError:A,colorFocusError:I,colorDisabledError:D,textColorError:b,textColorHoverError:b,textColorPressedError:b,textColorFocusError:b,textColorDisabledError:b,textColorTextError:D,textColorTextHoverError:I,textColorTextPressedError:A,textColorTextFocusError:I,textColorTextDisabledError:f,textColorGhostError:D,textColorGhostHoverError:I,textColorGhostPressedError:A,textColorGhostFocusError:I,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${I}`,borderPressedError:`1px solid ${A}`,borderFocusError:`1px solid ${I}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:"0.6",fontWeight:E,fontWeightStrong:J})}const nr={name:"Button",common:Je,self:i4},a4=z([x("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[M("color",[F("border",{borderColor:"var(--n-border-color)"}),M("disabled",[F("border",{borderColor:"var(--n-border-color-disabled)"})]),ft("disabled",[z("&:focus",[F("state-border",{borderColor:"var(--n-border-color-focus)"})]),z("&:hover",[F("state-border",{borderColor:"var(--n-border-color-hover)"})]),z("&:active",[F("state-border",{borderColor:"var(--n-border-color-pressed)"})]),M("pressed",[F("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),M("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[F("border",{border:"var(--n-border-disabled)"})]),ft("disabled",[z("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[F("state-border",{border:"var(--n-border-focus)"})]),z("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[F("state-border",{border:"var(--n-border-hover)"})]),z("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[F("state-border",{border:"var(--n-border-pressed)"})]),M("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[F("state-border",{border:"var(--n-border-pressed)"})])]),M("loading","cursor: wait;"),x("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[M("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Wn&&"MozBoxSizing"in document.createElement("div").style?z("&::moz-focus-inner",{border:0}):null,F("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),F("border",` + border: var(--n-border); + `),F("state-border",` + border: var(--n-border); + border-color: #0000; + z-index: 1; + `),F("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[x("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[Fn({top:"50%",originalTransform:"translateY(-50%)"})]),hb()]),F("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[z("~",[F("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),M("block",` + display: flex; + width: 100%; + `),M("dashed",[F("border, state-border",{borderStyle:"dashed !important"})]),M("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),z("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),z("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Nb=Object.assign(Object.assign({},ge.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!bb}}),Ot=Y({name:"Button",props:Nb,slots:Object,setup(e){const t=B(null),n=B(null),r=B(!1),o=it(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Be(Eb,{}),{mergedSizeRef:a}=ln({},{defaultSize:"medium",mergedSize:w=>{const{size:C}=e;if(C)return C;const{size:P}=i;if(P)return P;const{mergedSize:k}=w||{};return k?k.value:"medium"}}),l=S(()=>e.focusable&&!e.disabled),d=w=>{var C;l.value||w.preventDefault(),!e.nativeFocusBehavior&&(w.preventDefault(),!e.disabled&&l.value&&((C=t.value)===null||C===void 0||C.focus({preventScroll:!0})))},c=w=>{var C;if(!e.disabled&&!e.loading){const{onClick:P}=e;P&&ie(P,w),e.text||(C=n.value)===null||C===void 0||C.play()}},u=w=>{switch(w.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=w=>{switch(w.key){case"Enter":if(!e.keyboard||e.loading){w.preventDefault();return}r.value=!0}},v=()=>{r.value=!1},{inlineThemeDisabled:m,mergedClsPrefixRef:h,mergedRtlRef:g}=Ee(e),p=ge("Button","-button",a4,nr,e,h),b=Bt("Button",g,h),y=S(()=>{const w=p.value,{common:{cubicBezierEaseInOut:C,cubicBezierEaseOut:P},self:k}=w,{rippleDuration:O,opacityDisabled:$,fontWeight:T,fontWeightStrong:D}=k,I=a.value,{dashed:A,type:E,ghost:N,text:U,color:q,round:J,circle:ve,textColor:ae,secondary:W,tertiary:j,quaternary:_,strong:L}=e,Z={"--n-font-weight":L?D:T};let ce={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const ye=E==="tertiary",_e=E==="default",V=ye?"default":E;if(U){const G=ae||q;ce={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":G||k[be("textColorText",V)],"--n-text-color-hover":G?_o(G):k[be("textColorTextHover",V)],"--n-text-color-pressed":G?zl(G):k[be("textColorTextPressed",V)],"--n-text-color-focus":G?_o(G):k[be("textColorTextHover",V)],"--n-text-color-disabled":G||k[be("textColorTextDisabled",V)]}}else if(N||A){const G=ae||q;ce={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":q||k[be("rippleColor",V)],"--n-text-color":G||k[be("textColorGhost",V)],"--n-text-color-hover":G?_o(G):k[be("textColorGhostHover",V)],"--n-text-color-pressed":G?zl(G):k[be("textColorGhostPressed",V)],"--n-text-color-focus":G?_o(G):k[be("textColorGhostHover",V)],"--n-text-color-disabled":G||k[be("textColorGhostDisabled",V)]}}else if(W){const G=_e?k.textColor:ye?k.textColorTertiary:k[be("color",V)],fe=q||G,we=E!=="default"&&E!=="tertiary";ce={"--n-color":we?mt(fe,{alpha:Number(k.colorOpacitySecondary)}):k.colorSecondary,"--n-color-hover":we?mt(fe,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-pressed":we?mt(fe,{alpha:Number(k.colorOpacitySecondaryPressed)}):k.colorSecondaryPressed,"--n-color-focus":we?mt(fe,{alpha:Number(k.colorOpacitySecondaryHover)}):k.colorSecondaryHover,"--n-color-disabled":k.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":fe,"--n-text-color-hover":fe,"--n-text-color-pressed":fe,"--n-text-color-focus":fe,"--n-text-color-disabled":fe}}else if(j||_){const G=_e?k.textColor:ye?k.textColorTertiary:k[be("color",V)],fe=q||G;j?(ce["--n-color"]=k.colorTertiary,ce["--n-color-hover"]=k.colorTertiaryHover,ce["--n-color-pressed"]=k.colorTertiaryPressed,ce["--n-color-focus"]=k.colorSecondaryHover,ce["--n-color-disabled"]=k.colorTertiary):(ce["--n-color"]=k.colorQuaternary,ce["--n-color-hover"]=k.colorQuaternaryHover,ce["--n-color-pressed"]=k.colorQuaternaryPressed,ce["--n-color-focus"]=k.colorQuaternaryHover,ce["--n-color-disabled"]=k.colorQuaternary),ce["--n-ripple-color"]="#0000",ce["--n-text-color"]=fe,ce["--n-text-color-hover"]=fe,ce["--n-text-color-pressed"]=fe,ce["--n-text-color-focus"]=fe,ce["--n-text-color-disabled"]=fe}else ce={"--n-color":q||k[be("color",V)],"--n-color-hover":q?_o(q):k[be("colorHover",V)],"--n-color-pressed":q?zl(q):k[be("colorPressed",V)],"--n-color-focus":q?_o(q):k[be("colorFocus",V)],"--n-color-disabled":q||k[be("colorDisabled",V)],"--n-ripple-color":q||k[be("rippleColor",V)],"--n-text-color":ae||(q?k.textColorPrimary:ye?k.textColorTertiary:k[be("textColor",V)]),"--n-text-color-hover":ae||(q?k.textColorHoverPrimary:k[be("textColorHover",V)]),"--n-text-color-pressed":ae||(q?k.textColorPressedPrimary:k[be("textColorPressed",V)]),"--n-text-color-focus":ae||(q?k.textColorFocusPrimary:k[be("textColorFocus",V)]),"--n-text-color-disabled":ae||(q?k.textColorDisabledPrimary:k[be("textColorDisabled",V)])};let ze={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};U?ze={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ze={"--n-border":k[be("border",V)],"--n-border-hover":k[be("borderHover",V)],"--n-border-pressed":k[be("borderPressed",V)],"--n-border-focus":k[be("borderFocus",V)],"--n-border-disabled":k[be("borderDisabled",V)]};const{[be("height",I)]:Ae,[be("fontSize",I)]:Ne,[be("padding",I)]:je,[be("paddingRound",I)]:qe,[be("iconSize",I)]:gt,[be("borderRadius",I)]:at,[be("iconMargin",I)]:Te,waveOpacity:Q}=k,ue={"--n-width":ve&&!U?Ae:"initial","--n-height":U?"initial":Ae,"--n-font-size":Ne,"--n-padding":ve||U?"initial":J?qe:je,"--n-icon-size":gt,"--n-icon-margin":Te,"--n-border-radius":U?"initial":ve||J?Ae:at};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":C,"--n-bezier-ease-out":P,"--n-ripple-duration":O,"--n-opacity-disabled":$,"--n-wave-opacity":Q},Z),ce),ze),ue)}),R=m?Xe("button",S(()=>{let w="";const{dashed:C,type:P,ghost:k,text:O,color:$,round:T,circle:D,textColor:I,secondary:A,tertiary:E,quaternary:N,strong:U}=e;C&&(w+="a"),k&&(w+="b"),O&&(w+="c"),T&&(w+="d"),D&&(w+="e"),A&&(w+="f"),E&&(w+="g"),N&&(w+="h"),U&&(w+="i"),$&&(w+=`j${ii($)}`),I&&(w+=`k${ii(I)}`);const{value:q}=a;return w+=`l${q[0]}`,w+=`m${P[0]}`,w}),y,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:h,mergedFocusable:l,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:b,handleMousedown:d,handleKeydown:f,handleBlur:v,handleKeyup:u,handleClick:c,customColorCssVars:S(()=>{const{color:w}=e;if(!w)return null;const C=_o(w);return{"--n-border-color":w,"--n-border-color-hover":C,"--n-border-color-pressed":zl(w),"--n-border-color-focus":C,"--n-border-color-disabled":w}}),cssVars:m?void 0:y,themeClass:R?.themeClass,onRender:R?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();const r=yt(this.$slots.default,o=>o&&s("span",{class:`${e}-button__content`},o));return s(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,s(Kr,{width:!0},{default:()=>yt(this.$slots.icon,o=>(this.loading||this.renderIcon||o)&&s("span",{class:`${e}-button__icon`,style:{margin:Qo(this.$slots.default)?"0":""}},s(Wr,null,{default:()=>this.loading?s(Tr,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):s("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():o)})))}),this.iconPlacement==="left"&&r,this.text?null:s(vb,{ref:"waveElRef",clsPrefix:e}),this.showBorder?s("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?s("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),zr=Ot,sn="0!important",Lb="-1px!important";function Pi(e){return M(`${e}-type`,[z("& +",[x("button",{},[M(`${e}-type`,[F("border",{borderLeftWidth:sn}),F("state-border",{left:Lb})])])])])}function zi(e){return M(`${e}-type`,[z("& +",[x("button",[M(`${e}-type`,[F("border",{borderTopWidth:sn}),F("state-border",{top:Lb})])])])])}const l4=x("button-group",` + flex-wrap: nowrap; + display: inline-flex; + position: relative; +`,[ft("vertical",{flexDirection:"row"},[ft("rtl",[x("button",[z("&:first-child:not(:last-child)",` + margin-right: ${sn}; + border-top-right-radius: ${sn}; + border-bottom-right-radius: ${sn}; + `),z("&:last-child:not(:first-child)",` + margin-left: ${sn}; + border-top-left-radius: ${sn}; + border-bottom-left-radius: ${sn}; + `),z("&:not(:first-child):not(:last-child)",` + margin-left: ${sn}; + margin-right: ${sn}; + border-radius: ${sn}; + `),Pi("default"),M("ghost",[Pi("primary"),Pi("info"),Pi("success"),Pi("warning"),Pi("error")])])])]),M("vertical",{flexDirection:"column"},[x("button",[z("&:first-child:not(:last-child)",` + margin-bottom: ${sn}; + margin-left: ${sn}; + margin-right: ${sn}; + border-bottom-left-radius: ${sn}; + border-bottom-right-radius: ${sn}; + `),z("&:last-child:not(:first-child)",` + margin-top: ${sn}; + margin-left: ${sn}; + margin-right: ${sn}; + border-top-left-radius: ${sn}; + border-top-right-radius: ${sn}; + `),z("&:not(:first-child):not(:last-child)",` + margin: ${sn}; + border-radius: ${sn}; + `),zi("default"),M("ghost",[zi("primary"),zi("info"),zi("success"),zi("warning"),zi("error")])])])]),Hb={size:{type:String,default:void 0},vertical:Boolean},_u=Y({name:"ButtonGroup",props:Hb,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e);return ur("-button-group",l4,t),ot(Eb,e),{rtlEnabled:Bt("ButtonGroup",n,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}});function Ko(e,t,n){const r=Rt(e,n?.in);return isNaN(t)?tn(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function kn(e,t,n){const r=Rt(e,n?.in);if(isNaN(t))return tn(e,NaN);if(!t)return r;const o=r.getDate(),i=tn(e,r.getTime());i.setMonth(r.getMonth()+t+1,0);const a=i.getDate();return o>=a?i:(r.setFullYear(i.getFullYear(),i.getMonth(),o),r)}function Wi(e,t){return dr(e,{...t,weekStartsOn:1})}function jb(e,t){const n=Rt(e,t?.in),r=n.getFullYear(),o=tn(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=Wi(o),a=tn(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Wi(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function Ki(e){const t=Rt(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Hr(e,t){const n=Rt(e,t?.in);return n.setHours(0,0,0,0),n}function Vb(e,t,n){const[r,o]=Mo(n?.in,e,t),i=Hr(r),a=Hr(o),l=+i-Ki(i),d=+a-Ki(a);return Math.round((l-d)/lR)}function s4(e,t){const n=jb(e,t),r=tn(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Wi(r)}function d4(e,t,n){return kn(e,t*3,n)}function vs(e,t,n){return kn(e,t*12,n)}function c4(e,t){const n=+Rt(e)-+Rt(t);return n<0?-1:n>0?1:n}function u4(e,t,n){const[r,o]=Mo(n?.in,e,t);return+Hr(r)==+Hr(o)}function f4(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function br(e){return!(!f4(e)&&typeof e!="number"||isNaN(+Rt(e)))}function h4(e,t){const n=Rt(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function v4(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function g4(e,t){const[n,r]=Mo(e,t.start,t.end);return{start:n,end:r}}function Ub(e,t){const{start:n,end:r}=g4(t?.in,e);let o=+n>+r;const i=o?+n:+r,a=o?r:n;a.setHours(0,0,0,0);let l=1;const d=[];for(;+a<=i;)d.push(tn(n,a)),a.setDate(a.getDate()+l),a.setHours(0,0,0,0);return o?d.reverse():d}function Ha(e,t){const n=Rt(e,t?.in),r=n.getMonth(),o=r-r%3;return n.setMonth(o,1),n.setHours(0,0,0,0),n}function mr(e,t){const n=Rt(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function m4(e,t){const n=Rt(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function ta(e,t){const n=Rt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function p4(e,t){const n=Io(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=Rt(e,t?.in),i=o.getDay(),a=(i=+l?r+1:+n>=+c?r:r-1}function x4(e,t){const n=Io(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=Eu(e,t),i=tn(t?.in||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),dr(i,t)}function Kb(e,t){const n=Rt(e,t?.in),r=+dr(n,t)-+x4(n,t);return Math.round(r/Xm)+1}function Xt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const fo={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Xt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Xt(n+1,2)},d(e,t){return Xt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Xt(e.getHours()%12||12,t.length)},H(e,t){return Xt(e.getHours(),t.length)},m(e,t){return Xt(e.getMinutes(),t.length)},s(e,t){return Xt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Xt(o,t.length)}},$i={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gv={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return fo.y(e,t)},Y:function(e,t,n,r){const o=Eu(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return Xt(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Xt(i,t.length)},R:function(e,t){const n=jb(e);return Xt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Xt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Xt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Xt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return fo.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Xt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=Kb(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Xt(o,t.length)},I:function(e,t,n){const r=Wb(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Xt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):fo.d(e,t)},D:function(e,t,n){const r=b4(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Xt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Xt(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Xt(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Xt(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=$i.noon:r===0?o=$i.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=$i.evening:r>=12?o=$i.afternoon:r>=4?o=$i.morning:o=$i.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return fo.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):fo.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Xt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Xt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):fo.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):fo.s(e,t)},S:function(e,t){return fo.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return pv(r);case"XXXX":case"XX":return jo(r);default:return jo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return pv(r);case"xxxx":case"xx":return jo(r);default:return jo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+mv(r,":");default:return"GMT"+jo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+mv(r,":");default:return"GMT"+jo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Xt(r,t.length)},T:function(e,t,n){return Xt(+e,t.length)}};function mv(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+Xt(i,2)}function pv(e,t){return e%60===0?(e>0?"-":"+")+Xt(Math.abs(e)/60,2):jo(e,t)}function jo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Xt(Math.trunc(r/60),2),i=Xt(r%60,2);return n+o+t+i}const bv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qb=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},y4=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return bv(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",bv(r,t)).replace("{{time}}",qb(o,t))},$c={p:qb,P:y4},w4=/^D+$/,C4=/^Y+$/,S4=["D","DD","YY","YYYY"];function Yb(e){return w4.test(e)}function Gb(e){return C4.test(e)}function Tc(e,t,n){const r=R4(e,t,n);if(console.warn(r),S4.includes(e))throw new RangeError(r)}function R4(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const k4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z4=/^'([^]*?)'?$/,$4=/''/g,T4=/[a-zA-Z]/;function Dt(e,t,n){const r=Io(),o=n?.locale??r.locale??Ms,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=Rt(e,n?.in);if(!br(l))throw new RangeError("Invalid time value");let d=t.match(P4).map(u=>{const f=u[0];if(f==="p"||f==="P"){const v=$c[f];return v(u,o.formatLong)}return u}).join("").match(k4).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const f=u[0];if(f==="'")return{isToken:!1,value:O4(u)};if(gv[f])return{isToken:!0,value:u};if(f.match(T4))throw new RangeError("Format string contains an unescaped latin alphabet character `"+f+"`");return{isToken:!1,value:u}});o.localize.preprocessor&&(d=o.localize.preprocessor(l,d));const c={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return d.map(u=>{if(!u.isToken)return u.value;const f=u.value;(!n?.useAdditionalWeekYearTokens&&Gb(f)||!n?.useAdditionalDayOfYearTokens&&Yb(f))&&Tc(f,t,String(e));const v=gv[f[0]];return v(l,f,o.localize,c)}).join("")}function O4(e){const t=e.match(z4);return t?t[1].replace($4,"'"):e}function F4(e,t,n){const r=Io(),o=n?.locale??r.locale??Ms,i=c4(e,t);if(isNaN(i))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:i}),[l,d]=Mo(n?.in,...i>0?[t,e]:[e,t]),c=v4(n?.roundingMethod??"round"),u=d.getTime()-l.getTime(),f=u/_a,v=Ki(d)-Ki(l),m=(u-v)/_a,h=n?.unit;let g;if(h?g=h:f<1?g="second":f<60?g="minute":ftn(n,r))}set(t,n){return n.timestampIsSet?t:tn(t,A4(t,this.context))}}class Yt{run(t,n,r,o){const i=this.parse(t,n,r,o);return i?{setter:new E4(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,n,r){return!0}}class L4 extends Yt{priority=140;parse(t,n,r){switch(n){case"G":case"GG":case"GGG":return r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"});case"GGGGG":return r.era(t,{width:"narrow"});default:return r.era(t,{width:"wide"})||r.era(t,{width:"abbreviated"})||r.era(t,{width:"narrow"})}}set(t,n,r){return n.era=r,t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]}const bn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ar={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function xn(e,t){return e&&{value:t(e.value),rest:e.rest}}function dn(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Dr(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*yu+i*_a+a*sR),rest:t.slice(n[0].length)}}function Qb(e){return dn(bn.anyDigitsSigned,e)}function gn(e,t){switch(e){case 1:return dn(bn.singleDigit,t);case 2:return dn(bn.twoDigits,t);case 3:return dn(bn.threeDigits,t);case 4:return dn(bn.fourDigits,t);default:return dn(new RegExp("^\\d{1,"+e+"}"),t)}}function ps(e,t){switch(e){case 1:return dn(bn.singleDigitSigned,t);case 2:return dn(bn.twoDigitsSigned,t);case 3:return dn(bn.threeDigitsSigned,t);case 4:return dn(bn.fourDigitsSigned,t);default:return dn(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Nu(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function e0(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const i=r+50,a=Math.trunc(i/100)*100,l=e>=i%100;o=e+a-(l?100:0)}return n?o:1-o}function t0(e){return e%400===0||e%4===0&&e%100!==0}class H4 extends Yt{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="yy"});switch(n){case"y":return xn(gn(4,t),o);case"yo":return xn(r.ordinalNumber(t,{unit:"year"}),o);default:return xn(gn(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r){const o=t.getFullYear();if(r.isTwoDigitYear){const a=e0(r.year,o);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}const i=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class j4 extends Yt{priority=130;parse(t,n,r){const o=i=>({year:i,isTwoDigitYear:n==="YY"});switch(n){case"Y":return xn(gn(4,t),o);case"Yo":return xn(r.ordinalNumber(t,{unit:"year"}),o);default:return xn(gn(n.length,t),o)}}validate(t,n){return n.isTwoDigitYear||n.year>0}set(t,n,r,o){const i=Eu(t,o);if(r.isTwoDigitYear){const l=e0(r.year,i);return t.setFullYear(l,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,o)}const a=!("era"in n)||n.era===1?r.year:1-r.year;return t.setFullYear(a,0,o.firstWeekContainsDate),t.setHours(0,0,0,0),dr(t,o)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class V4 extends Yt{priority=130;parse(t,n){return ps(n==="R"?4:n.length,t)}set(t,n,r){const o=tn(t,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Wi(o)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class U4 extends Yt{priority=130;parse(t,n){return ps(n==="u"?4:n.length,t)}set(t,n,r){return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class W4 extends Yt{priority=120;parse(t,n,r){switch(n){case"Q":case"QQ":return gn(n.length,t);case"Qo":return r.ordinalNumber(t,{unit:"quarter"});case"QQQ":return r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(t,{width:"narrow",context:"formatting"});default:return r.quarter(t,{width:"wide",context:"formatting"})||r.quarter(t,{width:"abbreviated",context:"formatting"})||r.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class K4 extends Yt{priority=120;parse(t,n,r){switch(n){case"q":case"qq":return gn(n.length,t);case"qo":return r.ordinalNumber(t,{unit:"quarter"});case"qqq":return r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(t,{width:"narrow",context:"standalone"});default:return r.quarter(t,{width:"wide",context:"standalone"})||r.quarter(t,{width:"abbreviated",context:"standalone"})||r.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=1&&n<=4}set(t,n,r){return t.setMonth((r-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class q4 extends Yt{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"M":return xn(dn(bn.month,t),o);case"MM":return xn(gn(2,t),o);case"Mo":return xn(r.ordinalNumber(t,{unit:"month"}),o);case"MMM":return r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(t,{width:"narrow",context:"formatting"});default:return r.month(t,{width:"wide",context:"formatting"})||r.month(t,{width:"abbreviated",context:"formatting"})||r.month(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}}class Y4 extends Yt{priority=110;parse(t,n,r){const o=i=>i-1;switch(n){case"L":return xn(dn(bn.month,t),o);case"LL":return xn(gn(2,t),o);case"Lo":return xn(r.ordinalNumber(t,{unit:"month"}),o);case"LLL":return r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(t,{width:"narrow",context:"standalone"});default:return r.month(t,{width:"wide",context:"standalone"})||r.month(t,{width:"abbreviated",context:"standalone"})||r.month(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.setMonth(r,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function G4(e,t,n){const r=Rt(e,n?.in),o=Kb(r,n)-t;return r.setDate(r.getDate()-o*7),Rt(r,n?.in)}class X4 extends Yt{priority=100;parse(t,n,r){switch(n){case"w":return dn(bn.week,t);case"wo":return r.ordinalNumber(t,{unit:"week"});default:return gn(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r,o){return dr(G4(t,r,o),o)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function Z4(e,t,n){const r=Rt(e,n?.in),o=Wb(r,n)-t;return r.setDate(r.getDate()-o*7),r}class J4 extends Yt{priority=100;parse(t,n,r){switch(n){case"I":return dn(bn.week,t);case"Io":return r.ordinalNumber(t,{unit:"week"});default:return gn(n.length,t)}}validate(t,n){return n>=1&&n<=53}set(t,n,r){return Wi(Z4(t,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const Q4=[31,28,31,30,31,30,31,31,30,31,30,31],eO=[31,29,31,30,31,30,31,31,30,31,30,31];class tO extends Yt{priority=90;subPriority=1;parse(t,n,r){switch(n){case"d":return dn(bn.date,t);case"do":return r.ordinalNumber(t,{unit:"date"});default:return gn(n.length,t)}}validate(t,n){const r=t.getFullYear(),o=t0(r),i=t.getMonth();return o?n>=1&&n<=eO[i]:n>=1&&n<=Q4[i]}set(t,n,r){return t.setDate(r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class nO extends Yt{priority=90;subpriority=1;parse(t,n,r){switch(n){case"D":case"DD":return dn(bn.dayOfYear,t);case"Do":return r.ordinalNumber(t,{unit:"date"});default:return gn(n.length,t)}}validate(t,n){const r=t.getFullYear();return t0(r)?n>=1&&n<=366:n>=1&&n<=365}set(t,n,r){return t.setMonth(0,r),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function Lu(e,t,n){const r=Io(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Rt(e,n?.in),a=i.getDay(),d=(t%7+7)%7,c=7-o,u=t<0||t>6?t-(a+c)%7:(d+c)%7-(a+c)%7;return Ko(i,u,n)}class rO extends Yt{priority=90;parse(t,n,r){switch(n){case"E":case"EE":case"EEE":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=Lu(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]}class oO extends Yt{priority=90;parse(t,n,r,o){const i=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(n){case"e":case"ee":return xn(gn(n.length,t),i);case"eo":return xn(r.ordinalNumber(t,{unit:"day"}),i);case"eee":return r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});case"eeeee":return r.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"});default:return r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=Lu(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class iO extends Yt{priority=90;parse(t,n,r,o){const i=a=>{const l=Math.floor((a-1)/7)*7;return(a+o.weekStartsOn+6)%7+l};switch(n){case"c":case"cc":return xn(gn(n.length,t),i);case"co":return xn(r.ordinalNumber(t,{unit:"day"}),i);case"ccc":return r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});case"ccccc":return r.day(t,{width:"narrow",context:"standalone"});case"cccccc":return r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"});default:return r.day(t,{width:"wide",context:"standalone"})||r.day(t,{width:"abbreviated",context:"standalone"})||r.day(t,{width:"short",context:"standalone"})||r.day(t,{width:"narrow",context:"standalone"})}}validate(t,n){return n>=0&&n<=6}set(t,n,r,o){return t=Lu(t,r,o),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function aO(e,t,n){const r=Rt(e,n?.in),o=I4(r,n),i=t-o;return Ko(r,i,n)}class lO extends Yt{priority=90;parse(t,n,r){const o=i=>i===0?7:i;switch(n){case"i":case"ii":return gn(n.length,t);case"io":return r.ordinalNumber(t,{unit:"day"});case"iii":return xn(r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiii":return xn(r.day(t,{width:"narrow",context:"formatting"}),o);case"iiiiii":return xn(r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o);default:return xn(r.day(t,{width:"wide",context:"formatting"})||r.day(t,{width:"abbreviated",context:"formatting"})||r.day(t,{width:"short",context:"formatting"})||r.day(t,{width:"narrow",context:"formatting"}),o)}}validate(t,n){return n>=1&&n<=7}set(t,n,r){return t=aO(t,r),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class sO extends Yt{priority=80;parse(t,n,r){switch(n){case"a":case"aa":case"aaa":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(Nu(r),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]}class dO extends Yt{priority=80;parse(t,n,r){switch(n){case"b":case"bb":case"bbb":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(Nu(r),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]}class cO extends Yt{priority=80;parse(t,n,r){switch(n){case"B":case"BB":case"BBB":return r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(t,{width:"narrow",context:"formatting"});default:return r.dayPeriod(t,{width:"wide",context:"formatting"})||r.dayPeriod(t,{width:"abbreviated",context:"formatting"})||r.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,n,r){return t.setHours(Nu(r),0,0,0),t}incompatibleTokens=["a","b","t","T"]}class uO extends Yt{priority=70;parse(t,n,r){switch(n){case"h":return dn(bn.hour12h,t);case"ho":return r.ordinalNumber(t,{unit:"hour"});default:return gn(n.length,t)}}validate(t,n){return n>=1&&n<=12}set(t,n,r){const o=t.getHours()>=12;return o&&r<12?t.setHours(r+12,0,0,0):!o&&r===12?t.setHours(0,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]}class fO extends Yt{priority=70;parse(t,n,r){switch(n){case"H":return dn(bn.hour23h,t);case"Ho":return r.ordinalNumber(t,{unit:"hour"});default:return gn(n.length,t)}}validate(t,n){return n>=0&&n<=23}set(t,n,r){return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]}class hO extends Yt{priority=70;parse(t,n,r){switch(n){case"K":return dn(bn.hour11h,t);case"Ko":return r.ordinalNumber(t,{unit:"hour"});default:return gn(n.length,t)}}validate(t,n){return n>=0&&n<=11}set(t,n,r){return t.getHours()>=12&&r<12?t.setHours(r+12,0,0,0):t.setHours(r,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]}class vO extends Yt{priority=70;parse(t,n,r){switch(n){case"k":return dn(bn.hour24h,t);case"ko":return r.ordinalNumber(t,{unit:"hour"});default:return gn(n.length,t)}}validate(t,n){return n>=1&&n<=24}set(t,n,r){const o=r<=24?r%24:r;return t.setHours(o,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]}class gO extends Yt{priority=60;parse(t,n,r){switch(n){case"m":return dn(bn.minute,t);case"mo":return r.ordinalNumber(t,{unit:"minute"});default:return gn(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setMinutes(r,0,0),t}incompatibleTokens=["t","T"]}class mO extends Yt{priority=50;parse(t,n,r){switch(n){case"s":return dn(bn.second,t);case"so":return r.ordinalNumber(t,{unit:"second"});default:return gn(n.length,t)}}validate(t,n){return n>=0&&n<=59}set(t,n,r){return t.setSeconds(r,0),t}incompatibleTokens=["t","T"]}class pO extends Yt{priority=30;parse(t,n){const r=o=>Math.trunc(o*Math.pow(10,-n.length+3));return xn(gn(n.length,t),r)}set(t,n,r){return t.setMilliseconds(r),t}incompatibleTokens=["t","T"]}class bO extends Yt{priority=10;parse(t,n){switch(n){case"X":return Dr(Ar.basicOptionalMinutes,t);case"XX":return Dr(Ar.basic,t);case"XXXX":return Dr(Ar.basicOptionalSeconds,t);case"XXXXX":return Dr(Ar.extendedOptionalSeconds,t);default:return Dr(Ar.extended,t)}}set(t,n,r){return n.timestampIsSet?t:tn(t,t.getTime()-Ki(t)-r)}incompatibleTokens=["t","T","x"]}class xO extends Yt{priority=10;parse(t,n){switch(n){case"x":return Dr(Ar.basicOptionalMinutes,t);case"xx":return Dr(Ar.basic,t);case"xxxx":return Dr(Ar.basicOptionalSeconds,t);case"xxxxx":return Dr(Ar.extendedOptionalSeconds,t);default:return Dr(Ar.extended,t)}}set(t,n,r){return n.timestampIsSet?t:tn(t,t.getTime()-Ki(t)-r)}incompatibleTokens=["t","T","X"]}class yO extends Yt{priority=40;parse(t){return Qb(t)}set(t,n,r){return[tn(t,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class wO extends Yt{priority=20;parse(t){return Qb(t)}set(t,n,r){return[tn(t,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const CO={G:new L4,y:new H4,Y:new j4,R:new V4,u:new U4,Q:new W4,q:new K4,M:new q4,L:new Y4,w:new X4,I:new J4,d:new tO,D:new nO,E:new rO,e:new oO,c:new iO,i:new lO,a:new sO,b:new dO,B:new cO,h:new uO,H:new fO,K:new hO,k:new vO,m:new gO,s:new mO,S:new pO,X:new bO,x:new xO,t:new yO,T:new wO},SO=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RO=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kO=/^'([^]*?)'?$/,PO=/''/g,zO=/\S/,$O=/[a-zA-Z]/;function TO(e,t,n,r){const o=()=>tn(r?.in||n,NaN),i=Zb(),a=r?.locale??i.locale??Ms,l=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,d=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0;if(!t)return e?o():Rt(n,r?.in);const c={firstWeekContainsDate:l,weekStartsOn:d,locale:a},u=[new N4(r?.in,n)],f=t.match(RO).map(p=>{const b=p[0];if(b in $c){const y=$c[b];return y(p,a.formatLong)}return p}).join("").match(SO),v=[];for(let p of f){!r?.useAdditionalWeekYearTokens&&Gb(p)&&Tc(p,t,e),!r?.useAdditionalDayOfYearTokens&&Yb(p)&&Tc(p,t,e);const b=p[0],y=CO[b];if(y){const{incompatibleTokens:R}=y;if(Array.isArray(R)){const C=v.find(P=>R.includes(P.token)||P.token===b);if(C)throw new RangeError(`The format string mustn't contain \`${C.fullToken}\` and \`${p}\` at the same time`)}else if(y.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${p}\` and any other token at the same time`);v.push({token:b,fullToken:p});const w=y.run(e,p,a.match,c);if(!w)return o();u.push(w.setter),e=w.rest}else{if(b.match($O))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");if(p==="''"?p="'":b==="'"&&(p=OO(p)),e.indexOf(p)===0)e=e.slice(p.length);else return o()}}if(e.length>0&&zO.test(e))return o();const m=u.map(p=>p.priority).sort((p,b)=>b-p).filter((p,b,y)=>y.indexOf(p)===b).map(p=>u.filter(b=>b.priority===p).sort((b,y)=>y.subPriority-b.subPriority)).map(p=>p[0]);let h=Rt(n,r?.in);if(isNaN(+h))return o();const g={};for(const p of m){if(!p.validate(h,c))return o();const b=p.set(h,g,c);Array.isArray(b)?(h=b[0],Object.assign(g,b[1])):h=b}return h}function OO(e){return e.match(kO)[1].replace(PO,"'")}function FO(e,t){const n=Rt(e,t?.in);return n.setMinutes(0,0,0),n}function MO(e,t){const n=Rt(e,t?.in);return n.setSeconds(0,0),n}function nl(e,t,n){const[r,o]=Mo(n?.in,e,t);return r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()}function n0(e,t,n){const[r,o]=Mo(n?.in,e,t);return+Ha(r)==+Ha(o)}function Hu(e,t){const n=Rt(e,t?.in);return n.setMilliseconds(0),n}function r0(e,t,n){const[r,o]=Mo(n?.in,e,t);return r.getFullYear()===o.getFullYear()}function IO(e,t,n){const r=+Rt(e,n?.in),[o,i]=[+Rt(t.start,n?.in),+Rt(t.end,n?.in)].sort((a,l)=>a-l);return r>=o&&r<=i}function BO(e,t){const n=()=>tn(t?.in,NaN),o=EO(e);let i;if(o.date){const c=NO(o.date,2);i=LO(c.restDateString,c.year)}if(!i||isNaN(+i))return n();const a=+i;let l=0,d;if(o.time&&(l=HO(o.time),isNaN(l)))return n();if(o.timezone){if(d=jO(o.timezone),isNaN(d))return n()}else{const c=new Date(a+l),u=Rt(0,t?.in);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return Rt(a+l+d,t?.in)}const $l={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},AO=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,DO=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,_O=/^([+-])(\d{2})(?::?(\d{2}))?$/;function EO(e){const t={},n=e.split($l.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],$l.timeZoneDelimiter.test(t.date)&&(t.date=e.split($l.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=$l.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function NO(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?o:i*100,restDateString:e.slice((r[1]||r[2]).length)}}function LO(e,t){if(t===null)return new Date(NaN);const n=e.match(AO);if(!n)return new Date(NaN);const r=!!n[4],o=xa(n[1]),i=xa(n[2])-1,a=xa(n[3]),l=xa(n[4]),d=xa(n[5])-1;if(r)return qO(t,l,d)?VO(t,l,d):new Date(NaN);{const c=new Date(0);return!WO(t,i,a)||!KO(t,o)?new Date(NaN):(c.setUTCFullYear(t,i,Math.max(o,a)),c)}}function xa(e){return e?parseInt(e):1}function HO(e){const t=e.match(DO);if(!t)return NaN;const n=zd(t[1]),r=zd(t[2]),o=zd(t[3]);return YO(n,r,o)?n*yu+r*_a+o*1e3:NaN}function zd(e){return e&&parseFloat(e.replace(",","."))||0}function jO(e){if(e==="Z")return 0;const t=e.match(_O);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return GO(r,o)?n*(r*yu+o*_a):NaN}function VO(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=(t-1)*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const UO=[31,null,31,30,31,30,31,31,30,31,30,31];function o0(e){return e%400===0||e%4===0&&e%100!==0}function WO(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(UO[t]||(o0(e)?29:28))}function KO(e,t){return t>=1&&t<=(o0(e)?366:365)}function qO(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function YO(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function GO(e,t){return t>=0&&t<=59}function ju(e,t,n){const r=Rt(e,n?.in),o=r.getFullYear(),i=r.getDate(),a=tn(e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const l=M4(a);return r.setMonth(t,Math.min(i,l)),r}function An(e,t,n){let r=Rt(e,n?.in);return isNaN(+r)?tn(e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=ju(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function Eo(e,t,n){const r=Rt(e,n?.in);return r.setHours(t),r}function $d(e,t,n){const r=Rt(e,n?.in);return r.setMinutes(t),r}function XO(e,t,n){const r=Rt(e,n?.in),o=Math.trunc(r.getMonth()/3)+1,i=t-o;return ju(r,r.getMonth()+i*3)}function Td(e,t,n){const r=Rt(e,n?.in);return r.setSeconds(t),r}function Oc(e,t,n){const r=Rt(e,n?.in);return isNaN(+r)?tn(e,NaN):(r.setFullYear(t),r)}function ZO(e,t,n){return vs(e,-1,n)}const JO={date:u4,month:nl,year:r0,quarter:n0};function QO(e){return(t,n)=>{const r=Ii(e);return cR(t,n,{weekStartsOn:r})}}function Ii(e){return(e+1)%7}function Hn(e,t,n,r=0){return(n==="week"?QO(r):JO[n])(e,t)}function Od(e,t,n,r,o,i){return o==="date"?eF(e,t,n,r):tF(e,t,n,r,i)}function eF(e,t,n,r){let o=!1,i=!1,a=!1;Array.isArray(n)&&(n[0]{const{common:{cubicBezierEaseInOut:b},self:{borderColor:y,borderColorModal:R,borderColorPopover:w,borderRadius:C,titleFontSize:P,textColor:k,titleFontWeight:O,titleTextColor:$,dayTextColor:T,fontSize:D,lineHeight:I,dateColorCurrent:A,dateTextColorCurrent:E,cellColorHover:N,cellColor:U,cellColorModal:q,barColor:J,cellColorPopover:ve,cellColorHoverModal:ae,cellColorHoverPopover:W}}=o.value;return{"--n-bezier":b,"--n-border-color":y,"--n-border-color-modal":R,"--n-border-color-popover":w,"--n-border-radius":C,"--n-text-color":k,"--n-title-font-weight":O,"--n-title-font-size":P,"--n-title-text-color":$,"--n-day-text-color":T,"--n-font-size":D,"--n-line-height":I,"--n-date-color-current":A,"--n-date-text-color-current":E,"--n-cell-color":U,"--n-cell-color-modal":q,"--n-cell-color-popover":ve,"--n-cell-color-hover":N,"--n-cell-color-hover-modal":ae,"--n-cell-color-hover-popover":W,"--n-bar-color":J}}),p=r?Xe("calendar",void 0,g,e):void 0;return{mergedClsPrefix:n,locale:i,dateLocale:a,now:l,mergedValue:u,monthTs:d,dateItems:S(()=>bs(d.value,u.value,l,i.value.firstDayOfWeek,!0)),doUpdateValue:f,handleTodayClick:h,handlePrevClick:v,handleNextClick:m,mergedTheme:o,cssVars:r?void 0:g,themeClass:p?.themeClass,onRender:p?.onRender}},render(){const{isDateDisabled:e,mergedClsPrefix:t,monthTs:n,cssVars:r,mergedValue:o,mergedTheme:i,$slots:a,locale:{monthBeforeYear:l,today:d},dateLocale:{locale:c},handleTodayClick:u,handlePrevClick:f,handleNextClick:v,onRender:m}=this;m?.();const h=o&&Hr(o).valueOf(),g=Gt(n),p=Kt(n)+1;return s("div",{class:[`${t}-calendar`,this.themeClass],style:r},s("div",{class:`${t}-calendar-header`},s("div",{class:`${t}-calendar-header__title`},an(a.header,{year:g,month:p},()=>{const b=Dt(n,"MMMM",{locale:c});return[l?`${b} ${g}`:`${g} ${b}`]})),s("div",{class:`${t}-calendar-header__extra`},s(_u,null,{default:()=>s(qt,null,s(Ot,{size:"small",onClick:f,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>s(lt,{clsPrefix:t,class:`${t}-calendar-prev-btn`},{default:()=>s(Mu,null)})}),s(Ot,{size:"small",onClick:u,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{default:()=>d}),s(Ot,{size:"small",onClick:v,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button},{icon:()=>s(lt,{clsPrefix:t,class:`${t}-calendar-next-btn`},{default:()=>s(gi,null)})}))}))),s("div",{class:`${t}-calendar-dates`},this.dateItems.map(({dateObject:b,ts:y,inCurrentMonth:R,isCurrentDate:w},C)=>{var P;const{year:k,month:O,date:$}=b,T=Dt(y,"yyyy-MM-dd"),D=!R,I=e?.(y)===!0,A=h===Hr(y).valueOf();return s("div",{key:`${p}-${C}`,class:[`${t}-calendar-cell`,I&&`${t}-calendar-cell--disabled`,D&&`${t}-calendar-cell--other-month`,I&&`${t}-calendar-cell--not-allowed`,w&&`${t}-calendar-cell--current`,A&&`${t}-calendar-cell--selected`],onClick:()=>{var E;if(I)return;const N=mr(y).valueOf();this.monthTs=N,D&&((E=this.onPanelChange)===null||E===void 0||E.call(this,{year:Gt(N),month:Kt(N)+1})),this.doUpdateValue(y,{year:k,month:O+1,date:$})}},s("div",{class:`${t}-calendar-date`},s("div",{class:`${t}-calendar-date__date`,title:T},$),C<7&&s("div",{class:`${t}-calendar-date__day`,title:T},Dt(y,"EEE",{locale:c}))),(P=a.default)===null||P===void 0?void 0:P.call(a,{year:k,month:O+1,date:$}),s("div",{class:`${t}-calendar-cell__bar`}))})))}}),uF={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function fF(e){const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:o,cardColor:i,textColor2:a,textColor1:l,dividerColor:d,fontWeightStrong:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:p,popoverColor:b,actionColor:y}=e;return Object.assign(Object.assign({},uF),{lineHeight:r,color:i,colorModal:g,colorPopover:b,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:d,actionColor:y,titleFontWeight:c,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,fontSizeSmall:o,fontSizeMedium:o,fontSizeLarge:o,fontSizeHuge:o,boxShadow:p,borderRadius:n})}const d0={name:"Card",common:Je,self:fF},hF=z([x("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[hm({background:"var(--n-color-modal)"}),M("hoverable",[z("&:hover","box-shadow: var(--n-box-shadow);")]),M("content-segmented",[z(">",[F("content",{paddingTop:"var(--n-padding-bottom)"})])]),M("content-soft-segmented",[z(">",[F("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),M("footer-segmented",[z(">",[F("footer",{paddingTop:"var(--n-padding-bottom)"})])]),M("footer-soft-segmented",[z(">",[F("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),z(">",[x("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[F("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),F("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),F("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),F("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),F("content","flex: 1; min-width: 0;"),F("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[z("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),F("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),x("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[z("img",` + display: block; + width: 100%; + `)]),M("bordered",` + border: 1px solid var(--n-border-color); + `,[z("&:target","border-color: var(--n-color-target);")]),M("action-segmented",[z(">",[F("action",[z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),M("content-segmented, content-soft-segmented",[z(">",[F("content",{transition:"border-color 0.3s var(--n-bezier)"},[z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),M("footer-segmented, footer-soft-segmented",[z(">",[F("footer",{transition:"border-color 0.3s var(--n-bezier)"},[z("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),M("embedded",` + background-color: var(--n-color-embedded); + `)]),jr(x("card",` + background: var(--n-color-modal); + `,[M("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),ro(x("card",` + background: var(--n-color-popover); + `,[M("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),Vu={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},vF=In(Vu),c0=Object.assign(Object.assign({},ge.props),Vu),u0=Y({name:"Card",props:c0,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&ie(c)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:o}=Ee(e),i=ge("Card","-card",hF,d0,e,r),a=Bt("Card",o,r),l=S(()=>{const{size:c}=e,{self:{color:u,colorModal:f,colorTarget:v,textColor:m,titleTextColor:h,titleFontWeight:g,borderColor:p,actionColor:b,borderRadius:y,lineHeight:R,closeIconColor:w,closeIconColorHover:C,closeIconColorPressed:P,closeColorHover:k,closeColorPressed:O,closeBorderRadius:$,closeIconSize:T,closeSize:D,boxShadow:I,colorPopover:A,colorEmbedded:E,colorEmbeddedModal:N,colorEmbeddedPopover:U,[be("padding",c)]:q,[be("fontSize",c)]:J,[be("titleFontSize",c)]:ve},common:{cubicBezierEaseInOut:ae}}=i.value,{top:W,left:j,bottom:_}=cn(q);return{"--n-bezier":ae,"--n-border-radius":y,"--n-color":u,"--n-color-modal":f,"--n-color-popover":A,"--n-color-embedded":E,"--n-color-embedded-modal":N,"--n-color-embedded-popover":U,"--n-color-target":v,"--n-text-color":m,"--n-line-height":R,"--n-action-color":b,"--n-title-text-color":h,"--n-title-font-weight":g,"--n-close-icon-color":w,"--n-close-icon-color-hover":C,"--n-close-icon-color-pressed":P,"--n-close-color-hover":k,"--n-close-color-pressed":O,"--n-border-color":p,"--n-box-shadow":I,"--n-padding-top":W,"--n-padding-bottom":_,"--n-padding-left":j,"--n-font-size":J,"--n-title-font-size":ve,"--n-close-size":D,"--n-close-icon-size":T,"--n-close-border-radius":$}}),d=n?Xe("card",S(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:o,onRender:i,embedded:a,tag:l,$slots:d}=this;return i?.(),s(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:o,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},yt(d.cover,c=>{const u=this.cover?pr([this.cover()]):c;return u&&s("div",{class:`${r}-card-cover`,role:"none"},u)}),yt(d.header,c=>{const{title:u}=this,f=u?pr(typeof u=="function"?[u()]:[u]):c;return f||this.closable?s("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},s("div",{class:`${r}-card-header__main`,role:"heading"},f),yt(d["header-extra"],v=>{const m=this.headerExtra?pr([this.headerExtra()]):v;return m&&s("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},m)}),this.closable&&s(lo,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),yt(d.default,c=>{const{content:u}=this,f=u?pr(typeof u=="function"?[u()]:[u]):c;return f&&s("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),yt(d.footer,c=>{const u=this.footer?pr([this.footer()]):c;return u&&s("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},u)}),yt(d.action,c=>{const u=this.action?pr([this.action()]):c;return u&&s("div",{class:`${r}-card__action`,role:"none"},u)}))}});function gF(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const mF={common:Je,self:gF},f0="n-carousel-methods";function pF(e){ot(f0,e)}function Uu(e="unknown",t="component"){const n=Be(f0);return n||mn(e,`\`${t}\` must be placed inside \`n-carousel\`.`),n}function bF(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},s("g",{fill:"none"},s("path",{d:"M10.26 3.2a.75.75 0 0 1 .04 1.06L6.773 8l3.527 3.74a.75.75 0 1 1-1.1 1.02l-4-4.25a.75.75 0 0 1 0-1.02l4-4.25a.75.75 0 0 1 1.06-.04z",fill:"currentColor"})))}function xF(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},s("g",{fill:"none"},s("path",{d:"M5.74 3.2a.75.75 0 0 0-.04 1.06L9.227 8L5.7 11.74a.75.75 0 1 0 1.1 1.02l4-4.25a.75.75 0 0 0 0-1.02l-4-4.25a.75.75 0 0 0-1.06-.04z",fill:"currentColor"})))}const yF=Y({name:"CarouselArrow",setup(e){const{mergedClsPrefixRef:t}=Ee(e),{isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}=Uu();return{mergedClsPrefix:t,isVertical:n,isPrevDisabled:r,isNextDisabled:o,prev:i,next:a}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:`${e}-carousel__arrow-group`},s("div",{class:[`${e}-carousel__arrow`,this.isPrevDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.prev},bF()),s("div",{class:[`${e}-carousel__arrow`,this.isNextDisabled()&&`${e}-carousel__arrow--disabled`],role:"button",onClick:this.next},xF()))}}),wF={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean},CF=Y({name:"CarouselDots",props:wF,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=B([]),r=Uu();function o(c,u){switch(c.key){case"Enter":case" ":c.preventDefault(),r.to(u);return}e.keyboard&&l(c)}function i(c){e.trigger==="hover"&&r.to(c)}function a(c){e.trigger==="click"&&r.to(c)}function l(c){var u;if(c.shiftKey||c.altKey||c.ctrlKey||c.metaKey)return;const f=(u=document.activeElement)===null||u===void 0?void 0:u.nodeName.toLowerCase();if(f==="input"||f==="textarea")return;const{code:v}=c,m=v==="PageUp"||v==="ArrowUp",h=v==="PageDown"||v==="ArrowDown",g=v==="PageUp"||v==="ArrowRight",p=v==="PageDown"||v==="ArrowLeft",b=r.isVertical(),y=b?m:g,R=b?h:p;!y&&!R||(c.preventDefault(),y&&!r.isNextDisabled()?(r.next(),d(r.currentIndexRef.value)):R&&!r.isPrevDisabled()&&(r.prev(),d(r.currentIndexRef.value)))}function d(c){var u;(u=n.value[c])===null||u===void 0||u.focus()}return om(()=>n.value.length=0),{mergedClsPrefix:t,dotEls:n,handleKeydown:o,handleMouseenter:i,handleClick:a}},render(){const{mergedClsPrefix:e,dotEls:t}=this;return s("div",{class:[`${e}-carousel__dots`,`${e}-carousel__dots--${this.dotType}`],role:"tablist"},NC(this.total,n=>{const r=n===this.currentIndex;return s("div",{"aria-selected":r,ref:o=>t.push(o),role:"button",tabindex:"0",class:[`${e}-carousel__dot`,r&&`${e}-carousel__dot--active`],key:n,onClick:()=>{this.handleClick(n)},onMouseenter:()=>{this.handleMouseenter(n)},onKeydown:o=>{this.handleKeydown(o,n)}})}))}}),Zl="CarouselItem";function SF(e){var t;return((t=e.type)===null||t===void 0?void 0:t.name)===Zl}const h0=Y({name:Zl,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=Uu(Vh(Zl),`n-${Vh(Zl)}`),r=B(),o=S(()=>{const{value:u}=r;return u?n.getSlideIndex(u):-1}),i=S(()=>n.isPrev(o.value)),a=S(()=>n.isNext(o.value)),l=S(()=>n.isActive(o.value)),d=S(()=>n.getSlideStyle(o.value));It(()=>{n.addSlide(r.value)}),jt(()=>{n.removeSlide(r.value)});function c(u){const{value:f}=o;f!==void 0&&n?.onCarouselItemClick(f,u)}return{mergedClsPrefix:t,selfElRef:r,isPrev:i,isNext:a,isActive:l,index:o,style:d,handleClick:c}},render(){var e;const{$slots:t,mergedClsPrefix:n,isPrev:r,isNext:o,isActive:i,index:a,style:l}=this,d=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:i,[`${n}-carousel__slide--prev`]:r,[`${n}-carousel__slide--next`]:o}];return s("div",{ref:"selfElRef",class:d,role:"option",tabindex:"-1","data-index":a,"aria-hidden":!i,style:l,onClickCapture:this.handleClick},(e=t.default)===null||e===void 0?void 0:e.call(t,{isPrev:r,isNext:o,isActive:i,index:a}))}}),RF=x("carousel",` + position: relative; + width: 100%; + height: 100%; + touch-action: pan-y; + overflow: hidden; +`,[F("slides",` + display: flex; + width: 100%; + height: 100%; + transition-timing-function: var(--n-bezier); + transition-property: transform; + `,[F("slide",` + flex-shrink: 0; + position: relative; + width: 100%; + height: 100%; + outline: none; + overflow: hidden; + `,[z("> img",` + display: block; + `)])]),F("dots",` + position: absolute; + display: flex; + flex-wrap: nowrap; + `,[M("dot",[F("dot",` + height: var(--n-dot-size); + width: var(--n-dot-size); + background-color: var(--n-dot-color); + border-radius: 50%; + cursor: pointer; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + `,[z("&:focus",` + background-color: var(--n-dot-color-focus); + `),M("active",` + background-color: var(--n-dot-color-active); + `)])]),M("line",[F("dot",` + border-radius: 9999px; + width: var(--n-dot-line-width); + height: 4px; + background-color: var(--n-dot-color); + cursor: pointer; + transition: + width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + `,[z("&:focus",` + background-color: var(--n-dot-color-focus); + `),M("active",` + width: var(--n-dot-line-width-active); + background-color: var(--n-dot-color-active); + `)])])]),F("arrow",` + transition: background-color .3s var(--n-bezier); + cursor: pointer; + height: 28px; + width: 28px; + display: flex; + align-items: center; + justify-content: center; + background-color: rgba(255, 255, 255, .2); + color: var(--n-arrow-color); + border-radius: 8px; + user-select: none; + -webkit-user-select: none; + font-size: 18px; + `,[z("svg",` + height: 1em; + width: 1em; + `),z("&:hover",` + background-color: rgba(255, 255, 255, .3); + `)]),M("vertical",` + touch-action: pan-x; + `,[F("slides",` + flex-direction: column; + `),M("fade",[F("slide",` + top: 50%; + left: unset; + transform: translateY(-50%); + `)]),M("card",[F("slide",` + top: 50%; + left: unset; + transform: translateY(-50%) translateZ(-400px); + `,[M("current",` + transform: translateY(-50%) translateZ(0); + `),M("prev",` + transform: translateY(-100%) translateZ(-200px); + `),M("next",` + transform: translateY(0%) translateZ(-200px); + `)])])]),M("usercontrol",[F("slides",[z(">",[z("div",` + position: absolute; + top: 50%; + left: 50%; + width: 100%; + height: 100%; + transform: translate(-50%, -50%); + `)])])]),M("left",[F("dots",` + transform: translateY(-50%); + top: 50%; + left: 12px; + flex-direction: column; + `,[M("line",[F("dot",` + width: 4px; + height: var(--n-dot-line-width); + margin: 4px 0; + transition: + height .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + `,[M("active",` + height: var(--n-dot-line-width-active); + `)])])]),F("dot",` + margin: 4px 0; + `)]),F("arrow-group",` + position: absolute; + display: flex; + flex-wrap: nowrap; + `),M("vertical",[F("arrow",` + transform: rotate(90deg); + `)]),M("show-arrow",[M("bottom",[F("dots",` + transform: translateX(0); + bottom: 18px; + left: 18px; + `)]),M("top",[F("dots",` + transform: translateX(0); + top: 18px; + left: 18px; + `)]),M("left",[F("dots",` + transform: translateX(0); + top: 18px; + left: 18px; + `)]),M("right",[F("dots",` + transform: translateX(0); + top: 18px; + right: 18px; + `)])]),M("left",[F("arrow-group",` + bottom: 12px; + left: 12px; + flex-direction: column; + `,[z("> *:first-child",` + margin-bottom: 12px; + `)])]),M("right",[F("dots",` + transform: translateY(-50%); + top: 50%; + right: 12px; + flex-direction: column; + `,[M("line",[F("dot",` + width: 4px; + height: var(--n-dot-line-width); + margin: 4px 0; + transition: + height .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + `,[M("active",` + height: var(--n-dot-line-width-active); + `)])])]),F("dot",` + margin: 4px 0; + `),F("arrow-group",` + bottom: 12px; + right: 12px; + flex-direction: column; + `,[z("> *:first-child",` + margin-bottom: 12px; + `)])]),M("top",[F("dots",` + transform: translateX(-50%); + top: 12px; + left: 50%; + `,[M("line",[F("dot",` + margin: 0 4px; + `)])]),F("dot",` + margin: 0 4px; + `),F("arrow-group",` + top: 12px; + right: 12px; + `,[z("> *:first-child",` + margin-right: 12px; + `)])]),M("bottom",[F("dots",` + transform: translateX(-50%); + bottom: 12px; + left: 50%; + `,[M("line",[F("dot",` + margin: 0 4px; + `)])]),F("dot",` + margin: 0 4px; + `),F("arrow-group",` + bottom: 12px; + right: 12px; + `,[z("> *:first-child",` + margin-right: 12px; + `)])]),M("fade",[F("slide",` + position: absolute; + opacity: 0; + transition-property: opacity; + pointer-events: none; + `,[M("current",` + opacity: 1; + pointer-events: auto; + `)])]),M("card",[F("slides",` + perspective: 1000px; + `),F("slide",` + position: absolute; + left: 50%; + opacity: 0; + transform: translateX(-50%) translateZ(-400px); + transition-property: opacity, transform; + `,[M("current",` + opacity: 1; + transform: translateX(-50%) translateZ(0); + z-index: 1; + `),M("prev",` + opacity: 0.4; + transform: translateX(-100%) translateZ(-200px); + `),M("next",` + opacity: 0.4; + transform: translateX(0%) translateZ(-200px); + `)])])]);function kF(e){const{length:t}=e;return t>1&&(e.push(wv(e[0],0,"append")),e.unshift(wv(e[t-1],t-1,"prepend"))),e}function wv(e,t,n){return ri(e,{key:`carousel-item-duplicate-${t}-${n}`})}function Cv(e,t,n){return t===1?0:n?e===0?t-3:e===t-1?0:e-1:e}function Fd(e,t){return t?e+1:e}function PF(e,t,n){return e<0?null:e===0?n?t-1:null:e-1}function zF(e,t,n){return e>t-1?null:e===t-1?n?0:null:e+1}function $F(e,t){return t&&e>3?e-2:e}function Sv(e){return window.TouchEvent&&e instanceof window.TouchEvent}function Rv(e,t){let{offsetWidth:n,offsetHeight:r}=e;if(t){const o=getComputedStyle(e);n=n-Number.parseFloat(o.getPropertyValue("padding-left"))-Number.parseFloat(o.getPropertyValue("padding-right")),r=r-Number.parseFloat(o.getPropertyValue("padding-top"))-Number.parseFloat(o.getPropertyValue("padding-bottom"))}return{width:n,height:r}}function Tl(e,t,n){return en?n:e}function TF(e){if(e===void 0)return 0;if(typeof e=="number")return e;const t=/^((\d+)?\.?\d+?)(ms|s)?$/,n=e.match(t);if(n){const[,r,,o="ms"]=n;return Number(r)*(o==="ms"?1:1e3)}return 0}const OF=["transitionDuration","transitionTimingFunction"],v0=Object.assign(Object.assign({},ge.props),{defaultIndex:{type:Number,default:0},currentIndex:Number,showArrow:Boolean,dotType:{type:String,default:"dot"},dotPlacement:{type:String,default:"bottom"},slidesPerView:{type:[Number,String],default:1},spaceBetween:{type:Number,default:0},centeredSlides:Boolean,direction:{type:String,default:"horizontal"},autoplay:Boolean,interval:{type:Number,default:5e3},loop:{type:Boolean,default:!0},effect:{type:String,default:"slide"},showDots:{type:Boolean,default:!0},trigger:{type:String,default:"click"},transitionStyle:{type:Object,default:()=>({transitionDuration:"300ms"})},transitionProps:Object,draggable:Boolean,prevSlideStyle:[Object,String],nextSlideStyle:[Object,String],touchable:{type:Boolean,default:!0},mousewheel:Boolean,keyboard:Boolean,"onUpdate:currentIndex":Function,onUpdateCurrentIndex:Function});let Md=!1;const FF=Y({name:"Carousel",props:v0,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=B(null),o=B(null),i=B([]),a={value:[]},l=S(()=>e.direction==="vertical"),d=S(()=>l.value?"height":"width"),c=S(()=>l.value?"bottom":"right"),u=S(()=>e.effect==="slide"),f=S(()=>e.loop&&e.slidesPerView===1&&u.value),v=S(()=>e.effect==="custom"),m=S(()=>!u.value||e.centeredSlides?1:e.slidesPerView),h=S(()=>v.value?1:e.slidesPerView),g=S(()=>m.value==="auto"||e.slidesPerView==="auto"&&e.centeredSlides),p=B({width:0,height:0}),b=B(0),y=S(()=>{const{value:re}=i;if(!re.length)return[];b.value;const{value:ke}=g;if(ke)return re.map(We=>Rv(We));const{value:De}=h,{value:Qe}=p,{value:rt}=d;let oe=Qe[rt];if(De!=="auto"){const{spaceBetween:We}=e,de=oe-(De-1)*We,Pe=1/Math.max(1,De);oe=de*Pe}const Re=Object.assign(Object.assign({},Qe),{[rt]:oe});return re.map(()=>Re)}),R=S(()=>{const{value:re}=y;if(!re.length)return[];const{centeredSlides:ke,spaceBetween:De}=e,{value:Qe}=d,{[Qe]:rt}=p.value;let oe=0;return re.map(({[Qe]:Re})=>{let We=oe;return ke&&(We+=(Re-rt)/2),oe+=Re+De,We})}),w=B(!1),C=S(()=>{const{transitionStyle:re}=e;return re?vn(re,OF):{}}),P=S(()=>v.value?0:TF(C.value.transitionDuration)),k=S(()=>{const{value:re}=i;if(!re.length)return[];const ke=!(g.value||h.value===1),De=Re=>{if(ke){const{value:We}=d;return{[We]:`${y.value[Re][We]}px`}}};if(v.value)return re.map((Re,We)=>De(We));const{effect:Qe,spaceBetween:rt}=e,{value:oe}=c;return re.reduce((Re,We,de)=>{const Pe=Object.assign(Object.assign({},De(de)),{[`margin-${oe}`]:`${rt}px`});return Re.push(Pe),w.value&&(Qe==="fade"||Qe==="card")&&Object.assign(Pe,C.value),Re},[])}),O=S(()=>{const{value:re}=m,{length:ke}=i.value;if(re!=="auto")return Math.max(ke-re,0)+1;{const{value:De}=y,{length:Qe}=De;if(!Qe)return ke;const{value:rt}=R,{value:oe}=d,Re=p.value[oe];let We=De[De.length-1][oe],de=Qe;for(;de>1&&We$F(O.value,f.value)),T=Fd(e.defaultIndex,f.value),D=B(Cv(T,O.value,f.value)),I=St(le(e,"currentIndex"),D),A=S(()=>Fd(I.value,f.value));function E(re){var ke,De;re=Tl(re,0,O.value-1);const Qe=Cv(re,O.value,f.value),{value:rt}=I;Qe!==I.value&&(D.value=Qe,(ke=e["onUpdate:currentIndex"])===null||ke===void 0||ke.call(e,Qe,rt),(De=e.onUpdateCurrentIndex)===null||De===void 0||De.call(e,Qe,rt))}function N(re=A.value){return PF(re,O.value,e.loop)}function U(re=A.value){return zF(re,O.value,e.loop)}function q(re){const ke=G(re);return ke!==null&&N()===ke&&O.value>1}function J(re){const ke=G(re);return ke!==null&&U()===ke&&O.value>1}function ve(re){return A.value===G(re)}function ae(re){return I.value===re}function W(){return N()===null}function j(){return U()===null}let _=0;function L(re){const ke=Tl(Fd(re,f.value),0,O.value);(re!==I.value||ke!==A.value)&&E(ke)}function Z(){const re=N();re!==null&&(_=-1,E(re))}function ce(){const re=U();re!==null&&(_=1,E(re))}let ye=!1;function _e(){(!ye||!f.value)&&Z()}function V(){(!ye||!f.value)&&ce()}let ze=0;const Ae=B({});function Ne(re,ke=0){Ae.value=Object.assign({},C.value,{transform:l.value?`translateY(${-re}px)`:`translateX(${-re}px)`,transitionDuration:`${ke}ms`})}function je(re=0){u.value?qe(A.value,re):ze!==0&&(!ye&&re>0&&(ye=!0),Ne(ze=0,re))}function qe(re,ke){const De=gt(re);De!==ze&&ke>0&&(ye=!0),ze=gt(A.value),Ne(De,ke)}function gt(re){let ke;return re>=O.value-1?ke=at():ke=R.value[re]||0,ke}function at(){if(m.value==="auto"){const{value:re}=d,{[re]:ke}=p.value,{value:De}=R,Qe=De[De.length-1];let rt;if(Qe===void 0)rt=ke;else{const{value:oe}=y;rt=Qe+oe[oe.length-1][re]}return rt-ke}else{const{value:re}=R;return re[O.value-1]||0}}const Te={currentIndexRef:I,to:L,prev:_e,next:V,isVertical:()=>l.value,isHorizontal:()=>!l.value,isPrev:q,isNext:J,isActive:ve,isPrevDisabled:W,isNextDisabled:j,getSlideIndex:G,getSlideStyle:fe,addSlide:Q,removeSlide:ue,onCarouselItemClick:Ke};pF(Te);function Q(re){re&&i.value.push(re)}function ue(re){if(!re)return;const ke=G(re);ke!==-1&&i.value.splice(ke,1)}function G(re){return typeof re=="number"?re:re?i.value.indexOf(re):-1}function fe(re){const ke=G(re);if(ke!==-1){const De=[k.value[ke]],Qe=Te.isPrev(ke),rt=Te.isNext(ke);return Qe&&De.push(e.prevSlideStyle||""),rt&&De.push(e.nextSlideStyle||""),im(De)}}let we=0,te=0,X=0,he=0,Ie=!1,me=!1;function Ke(re,ke){let De=!ye&&!Ie&&!me;e.effect==="card"&&De&&!ve(re)&&(L(re),De=!1),De||(ke.preventDefault(),ke.stopPropagation())}let st=null;function xt(){st&&(clearInterval(st),st=null)}function vt(){xt(),!e.autoplay||$.value<2||(st=window.setInterval(ce,e.interval))}function bt(re){var ke;if(Md||!(!((ke=o.value)===null||ke===void 0)&&ke.contains(Jn(re))))return;Md=!0,Ie=!0,me=!1,he=Date.now(),xt(),re.type!=="touchstart"&&!re.target.isContentEditable&&re.preventDefault();const De=Sv(re)?re.touches[0]:re;l.value?te=De.clientY:we=De.clientX,e.touchable&&(Ct("touchmove",document,pt),Ct("touchend",document,He),Ct("touchcancel",document,He)),e.draggable&&(Ct("mousemove",document,pt),Ct("mouseup",document,He))}function pt(re){const{value:ke}=l,{value:De}=d,Qe=Sv(re)?re.touches[0]:re,rt=ke?Qe.clientY-te:Qe.clientX-we,oe=p.value[De];X=Tl(rt,-oe,oe),re.cancelable&&re.preventDefault(),u.value&&Ne(ze-X,0)}function He(){const{value:re}=A;let ke=re;if(!ye&&X!==0&&u.value){const De=ze-X,Qe=[...R.value.slice(0,O.value-1),at()];let rt=null;for(let oe=0;oert/2||X/De>.4?Z():(X<-rt/2||X/De<-.4)&&ce()}ke!==null&&ke!==re?(me=!0,E(ke),zt(()=>{(!f.value||D.value!==I.value)&&je(P.value)})):je(P.value),nt(),vt()}function nt(){Ie&&(Md=!1),Ie=!1,we=0,te=0,X=0,he=0,wt("touchmove",document,pt),wt("touchend",document,He),wt("touchcancel",document,He),wt("mousemove",document,pt),wt("mouseup",document,He)}function K(){if(u.value&&ye){const{value:re}=A;qe(re,0)}else vt();u.value&&(Ae.value.transitionDuration="0ms"),ye=!1}function H(re){if(re.preventDefault(),ye)return;let{deltaX:ke,deltaY:De}=re;re.shiftKey&&!ke&&(ke=De);const Qe=-1,rt=1,oe=(ke||De)>0?rt:Qe;let Re=0,We=0;l.value?We=oe:Re=oe;const de=10;(We*De>=de||Re*ke>=de)&&(oe===rt&&!j()?ce():oe===Qe&&!W()&&Z())}function pe(){p.value=Rv(r.value,!0),vt()}function $e(){g.value&&b.value++}function Oe(){e.autoplay&&xt()}function ne(){e.autoplay&&vt()}It(()=>{Ft(vt),requestAnimationFrame(()=>w.value=!0)}),jt(()=>{nt(),xt()}),nC(()=>{const{value:re}=i,{value:ke}=a,De=new Map,Qe=oe=>De.has(oe)?De.get(oe):-1;let rt=!1;for(let oe=0;oeWe.el===re[oe]);Re!==oe&&(rt=!0),De.set(re[oe],Re)}rt&&re.sort((oe,Re)=>Qe(oe)-Qe(Re))}),ct(A,(re,ke)=>{if(re===ke){_=0;return}if(vt(),u.value){if(f.value){const{value:De}=O;_===-1&&ke===1&&re===De-2?re=0:_===1&&ke===De-2&&re===1&&(re=De-1)}qe(re,P.value)}else je();_=0},{immediate:!0}),ct([f,m],()=>{zt(()=>{E(A.value)})}),ct(R,()=>{u.value&&je()},{deep:!0}),ct(u,re=>{re?je():(ye=!1,Ne(ze=0))});const Se=S(()=>({onTouchstartPassive:e.touchable?bt:void 0,onMousedown:e.draggable?bt:void 0,onWheel:e.mousewheel?H:void 0})),ee=S(()=>Object.assign(Object.assign({},vn(Te,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:$.value,currentIndex:I.value})),Ce=S(()=>({total:$.value,currentIndex:I.value,to:Te.to})),Ue={getCurrentIndex:()=>I.value,to:L,prev:Z,next:ce},Ye=ge("Carousel","-carousel",RF,mF,e,t),se=S(()=>{const{common:{cubicBezierEaseInOut:re},self:{dotSize:ke,dotColor:De,dotColorActive:Qe,dotColorFocus:rt,dotLineWidth:oe,dotLineWidthActive:Re,arrowColor:We}}=Ye.value;return{"--n-bezier":re,"--n-dot-color":De,"--n-dot-color-focus":rt,"--n-dot-color-active":Qe,"--n-dot-size":ke,"--n-dot-line-width":oe,"--n-dot-line-width-active":Re,"--n-arrow-color":We}}),Me=n?Xe("carousel",void 0,se,e):void 0;return Object.assign(Object.assign({mergedClsPrefix:t,selfElRef:r,slidesElRef:o,slideVNodes:a,duplicatedable:f,userWantsControl:v,autoSlideSize:g,realIndex:A,slideStyles:k,translateStyle:Ae,slidesControlListeners:Se,handleTransitionEnd:K,handleResize:pe,handleSlideResize:$e,handleMouseenter:Oe,handleMouseleave:ne,isActive:ae,arrowSlotProps:ee,dotSlotProps:Ce},Ue),{cssVars:n?void 0:se,themeClass:Me?.themeClass,onRender:Me?.onRender})},render(){var e;const{mergedClsPrefix:t,showArrow:n,userWantsControl:r,slideStyles:o,dotType:i,dotPlacement:a,slidesControlListeners:l,transitionProps:d={},arrowSlotProps:c,dotSlotProps:u,$slots:{default:f,dots:v,arrow:m}}=this,h=f&&Yn(f())||[];let g=MF(h);return g.length||(g=h.map(p=>s(h0,null,{default:()=>ri(p)}))),this.duplicatedable&&(g=kF(g)),this.slideVNodes.value=g,this.autoSlideSize&&(g=g.map(p=>s(Nn,{onResize:this.handleSlideResize},{default:()=>p}))),(e=this.onRender)===null||e===void 0||e.call(this),s("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${t}-carousel`,this.direction==="vertical"&&`${t}-carousel--vertical`,this.showArrow&&`${t}-carousel--show-arrow`,`${t}-carousel--${a}`,`${t}-carousel--${this.direction}`,`${t}-carousel--${this.effect}`,r&&`${t}-carousel--usercontrol`],style:this.cssVars},l,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),s(Nn,{onResize:this.handleResize},{default:()=>s("div",{ref:"slidesElRef",class:`${t}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},r?g.map((p,b)=>s("div",{style:o[b],key:b},rn(s(_t,Object.assign({},d),{default:()=>p}),[[lr,this.isActive(b)]]))):g)}),this.showDots&&u.total>1&&an(v,u,()=>[s(CF,{key:i+a,total:u.total,currentIndex:u.currentIndex,dotType:i,trigger:this.trigger,keyboard:this.keyboard})]),n&&an(m,c,()=>[s(yF,null)]))}});function MF(e){return e.reduce((t,n)=>(SF(n)&&t.push(n),t),[])}const IF={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function BF(e){const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:o,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:d,textColor2:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadiusSmall:m,lineHeight:h}=e;return Object.assign(Object.assign({},IF),{labelLineHeight:h,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,borderRadius:m,color:t,colorChecked:d,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:o,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${d}`,borderFocus:`1px solid ${d}`,boxShadowFocus:`0 0 0 2px ${mt(d,{alpha:.3})}`,textColor:c,textColorDisabled:a})}const na={name:"Checkbox",common:Je,self:BF};function AF(e){const{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:o,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:d,hoverColor:c,fontSizeMedium:u,heightMedium:f}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:d,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:f,optionFontSize:u,optionColorHover:c,optionTextColor:o,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const DF={name:"Cascader",common:Je,peers:{InternalSelectMenu:ea,InternalSelection:Es,Scrollbar:Ln,Checkbox:na,Empty:Ao},self:AF},g0="n-checkbox-group",m0={min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},p0=Y({name:"CheckboxGroup",props:m0,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=ln(e),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=B(e.defaultValue),a=S(()=>e.value),l=St(a,i),d=S(()=>{var f;return((f=l.value)===null||f===void 0?void 0:f.length)||0}),c=S(()=>Array.isArray(l.value)?new Set(l.value):new Set);function u(f,v){const{nTriggerFormInput:m,nTriggerFormChange:h}=n,{onChange:g,"onUpdate:value":p,onUpdateValue:b}=e;if(Array.isArray(l.value)){const y=Array.from(l.value),R=y.findIndex(w=>w===v);f?~R||(y.push(v),b&&ie(b,y,{actionType:"check",value:v}),p&&ie(p,y,{actionType:"check",value:v}),m(),h(),i.value=y,g&&ie(g,y)):~R&&(y.splice(R,1),b&&ie(b,y,{actionType:"uncheck",value:v}),p&&ie(p,y,{actionType:"uncheck",value:v}),g&&ie(g,y),i.value=y,m(),h())}else f?(b&&ie(b,[v],{actionType:"check",value:v}),p&&ie(p,[v],{actionType:"check",value:v}),g&&ie(g,[v]),i.value=[v],m(),h()):(b&&ie(b,[],{actionType:"uncheck",value:v}),p&&ie(p,[],{actionType:"uncheck",value:v}),g&&ie(g,[]),i.value=[],m(),h())}return ot(g0,{checkedCountRef:d,maxRef:le(e,"max"),minRef:le(e,"min"),valueSetRef:c,disabledRef:o,mergedSizeRef:r,toggleCheckbox:u}),{mergedClsPrefix:t}},render(){return s("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),_F=()=>s("svg",{viewBox:"0 0 64 64",class:"check-icon"},s("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),EF=()=>s("svg",{viewBox:"0 0 100 100",class:"line-icon"},s("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),NF=z([x("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[M("show-label","line-height: var(--n-label-line-height);"),z("&:hover",[x("checkbox-box",[F("border","border: var(--n-border-checked);")])]),z("&:focus:not(:active)",[x("checkbox-box",[F("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),M("inside-table",[x("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),M("checked",[x("checkbox-box",` + background-color: var(--n-color-checked); + `,[x("checkbox-icon",[z(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),M("indeterminate",[x("checkbox-box",[x("checkbox-icon",[z(".check-icon",` + opacity: 0; + transform: scale(.5); + `),z(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),M("checked, indeterminate",[z("&:focus:not(:active)",[x("checkbox-box",[F("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),x("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[F("border",{border:"var(--n-border-checked)"})])]),M("disabled",{cursor:"not-allowed"},[M("checked",[x("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[F("border",{border:"var(--n-border-disabled-checked)"}),x("checkbox-icon",[z(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),x("checkbox-box",` + background-color: var(--n-color-disabled); + `,[F("border",` + border: var(--n-border-disabled); + `),x("checkbox-icon",[z(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),F("label",` + color: var(--n-text-color-disabled); + `)]),x("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),x("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[F("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),x("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[z(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),Fn({left:"1px",top:"1px"})])]),F("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[z("&:empty",{display:"none"})])]),jr(x("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),ro(x("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]),b0=Object.assign(Object.assign({},ge.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),so=Y({name:"Checkbox",props:b0,setup(e){const t=Be(g0,null),n=B(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Ee(e),a=B(e.defaultChecked),l=le(e,"checked"),d=St(l,a),c=it(()=>{if(t){const P=t.valueSetRef.value;return P&&e.value!==void 0?P.has(e.value):!1}else return d.value===e.checkedValue}),u=ln(e,{mergedSize(P){const{size:k}=e;if(k!==void 0)return k;if(t){const{value:O}=t.mergedSizeRef;if(O!==void 0)return O}if(P){const{mergedSize:O}=P;if(O!==void 0)return O.value}return"medium"},mergedDisabled(P){const{disabled:k}=e;if(k!==void 0)return k;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:O},checkedCountRef:$}=t;if(O!==void 0&&$.value>=O&&!c.value)return!0;const{minRef:{value:T}}=t;if(T!==void 0&&$.value<=T&&c.value)return!0}return P?P.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:v}=u,m=ge("Checkbox","-checkbox",NF,na,e,r);function h(P){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:k,"onUpdate:checked":O,onUpdateChecked:$}=e,{nTriggerFormInput:T,nTriggerFormChange:D}=u,I=c.value?e.uncheckedValue:e.checkedValue;O&&ie(O,I,P),$&&ie($,I,P),k&&ie(k,I,P),T(),D(),a.value=I}}function g(P){f.value||h(P)}function p(P){if(!f.value)switch(P.key){case" ":case"Enter":h(P)}}function b(P){P.key===" "&&P.preventDefault()}const y={focus:()=>{var P;(P=n.value)===null||P===void 0||P.focus()},blur:()=>{var P;(P=n.value)===null||P===void 0||P.blur()}},R=Bt("Checkbox",i,r),w=S(()=>{const{value:P}=v,{common:{cubicBezierEaseInOut:k},self:{borderRadius:O,color:$,colorChecked:T,colorDisabled:D,colorTableHeader:I,colorTableHeaderModal:A,colorTableHeaderPopover:E,checkMarkColor:N,checkMarkColorDisabled:U,border:q,borderFocus:J,borderDisabled:ve,borderChecked:ae,boxShadowFocus:W,textColor:j,textColorDisabled:_,checkMarkColorDisabledChecked:L,colorDisabledChecked:Z,borderDisabledChecked:ce,labelPadding:ye,labelLineHeight:_e,labelFontWeight:V,[be("fontSize",P)]:ze,[be("size",P)]:Ae}}=m.value;return{"--n-label-line-height":_e,"--n-label-font-weight":V,"--n-size":Ae,"--n-bezier":k,"--n-border-radius":O,"--n-border":q,"--n-border-checked":ae,"--n-border-focus":J,"--n-border-disabled":ve,"--n-border-disabled-checked":ce,"--n-box-shadow-focus":W,"--n-color":$,"--n-color-checked":T,"--n-color-table":I,"--n-color-table-modal":A,"--n-color-table-popover":E,"--n-color-disabled":D,"--n-color-disabled-checked":Z,"--n-text-color":j,"--n-text-color-disabled":_,"--n-check-mark-color":N,"--n-check-mark-color-disabled":U,"--n-check-mark-color-disabled-checked":L,"--n-font-size":ze,"--n-label-padding":ye}}),C=o?Xe("checkbox",S(()=>v.value[0]),w,e):void 0;return Object.assign(u,y,{rtlEnabled:R,selfRef:n,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:c,mergedTheme:m,labelId:Vn(),handleClick:g,handleKeyUp:p,handleKeyDown:b,cssVars:o?void 0:w,themeClass:C?.themeClass,onRender:C?.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:o,privateInsideTable:i,cssVars:a,labelId:l,label:d,mergedClsPrefix:c,focusable:u,handleKeyUp:f,handleKeyDown:v,handleClick:m}=this;(e=this.onRender)===null||e===void 0||e.call(this);const h=yt(t.default,g=>d||g?s("span",{class:`${c}-checkbox__label`,id:l},d||g):null);return s("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,n&&`${c}-checkbox--checked`,r&&`${c}-checkbox--disabled`,o&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,h&&`${c}-checkbox--show-label`],tabindex:r||!u?void 0:0,role:"checkbox","aria-checked":o?"mixed":n,"aria-labelledby":l,style:a,onKeyup:f,onKeydown:v,onClick:m,onMousedown:()=>{Ct("selectstart",window,g=>{g.preventDefault()},{once:!0})}},s("div",{class:`${c}-checkbox-box-wrapper`}," ",s("div",{class:`${c}-checkbox-box`},s(Wr,null,{default:()=>this.indeterminate?s("div",{key:"indeterminate",class:`${c}-checkbox-icon`},EF()):s("div",{key:"check",class:`${c}-checkbox-icon`},_F())}),s("div",{class:`${c}-checkbox-box__border`}))),h)}}),rl="n-cascader",kv=Y({name:"NCascaderOption",props:{tmNode:{type:Object,required:!0}},setup(e){const{expandTriggerRef:t,remoteRef:n,multipleRef:r,mergedValueRef:o,checkedKeysRef:i,indeterminateKeysRef:a,hoverKeyPathRef:l,keyboardKeyRef:d,loadingKeySetRef:c,cascadeRef:u,mergedCheckStrategyRef:f,onLoadRef:v,mergedClsPrefixRef:m,mergedThemeRef:h,labelFieldRef:g,showCheckboxRef:p,renderPrefixRef:b,renderSuffixRef:y,updateHoverKey:R,updateKeyboardKey:w,addLoadingKey:C,deleteLoadingKey:P,closeMenu:k,doCheck:O,doUncheck:$,renderLabelRef:T}=Be(rl),D=S(()=>e.tmNode.key),I=S(()=>{const{value:V}=t,{value:ze}=n;return!ze&&V==="hover"}),A=S(()=>{if(I.value)return Z}),E=S(()=>{if(I.value)return ce}),N=it(()=>{const{value:V}=r;return V?i.value.includes(D.value):o.value===D.value}),U=it(()=>r.value?a.value.includes(D.value):!1),q=it(()=>l.value.includes(D.value)),J=it(()=>{const{value:V}=d;return V===null?!1:V===D.value}),ve=it(()=>n.value?c.value.has(D.value):!1),ae=S(()=>e.tmNode.isLeaf),W=S(()=>e.tmNode.disabled),j=S(()=>e.tmNode.rawNode[g.value]),_=S(()=>e.tmNode.shallowLoaded);function L(V){if(W.value)return;const{value:ze}=n,{value:Ae}=c,{value:Ne}=v,{value:je}=D,{value:qe}=ae,{value:gt}=_;en(V,"checkbox")||(ze&&!gt&&!Ae.has(je)&&Ne&&(C(je),Ne(e.tmNode.rawNode).then(()=>{P(je)}).catch(()=>{P(je)})),R(je),w(je)),qe&&_e()}function Z(){if(!I.value||W.value)return;const{value:V}=D;R(V),w(V)}function ce(){I.value&&Z()}function ye(){const{value:V}=ae;V||_e()}function _e(){const{value:V}=r,{value:ze}=D;V?U.value||N.value?$(ze):O(ze):(O(ze),k(!0))}return{checkStrategy:f,multiple:r,cascade:u,checked:N,indeterminate:U,hoverPending:q,keyboardPending:J,isLoading:ve,showCheckbox:p,isLeaf:ae,disabled:W,label:j,mergedClsPrefix:m,mergedTheme:h,handleClick:L,handleCheckboxUpdateValue:ye,mergedHandleMouseEnter:A,mergedHandleMouseMove:E,renderLabel:T,renderPrefix:b,renderSuffix:y}},render(){const{mergedClsPrefix:e,showCheckbox:t,renderLabel:n,renderPrefix:r,renderSuffix:o}=this;let i=null;if(t||r){const d=this.showCheckbox?s(so,{focusable:!1,"data-checkbox":!0,disabled:this.disabled,checked:this.checked,indeterminate:this.indeterminate,theme:this.mergedTheme.peers.Checkbox,themeOverrides:this.mergedTheme.peerOverrides.Checkbox,onUpdateChecked:this.handleCheckboxUpdateValue}):null;i=s("div",{class:`${e}-cascader-option__prefix`},r?r({option:this.tmNode.rawNode,checked:this.checked,node:d}):d)}let a=null;const l=s("div",{class:`${e}-cascader-option-icon-placeholder`},this.isLeaf?this.checkStrategy==="child"&&!(this.multiple&&this.cascade)?s(_t,{name:"fade-in-scale-up-transition"},{default:()=>this.checked?s(lt,{clsPrefix:e,class:`${e}-cascader-option-icon ${e}-cascader-option-icon--checkmark`},{default:()=>s(Fu,null)}):null}):null:s(Tr,{clsPrefix:e,scale:.85,strokeWidth:24,show:this.isLoading,class:`${e}-cascader-option-icon`},{default:()=>s(lt,{clsPrefix:e,key:"arrow",class:`${e}-cascader-option-icon ${e}-cascader-option-icon--arrow`},{default:()=>s(gi,null)})}));return a=s("div",{class:`${e}-cascader-option__suffix`},o?o({option:this.tmNode.rawNode,checked:this.checked,node:l}):l),s("div",{class:[`${e}-cascader-option`,this.keyboardPending||this.hoverPending&&`${e}-cascader-option--pending`,this.disabled&&`${e}-cascader-option--disabled`,this.showCheckbox&&`${e}-cascader-option--show-prefix`],onMouseenter:this.mergedHandleMouseEnter,onMousemove:this.mergedHandleMouseMove,onClick:this.handleClick},i,s("span",{class:`${e}-cascader-option__label`},n?n(this.tmNode.rawNode,this.checked):this.label),a)}}),LF=Y({name:"CascaderSubmenu",props:{depth:{type:Number,required:!0},tmNodes:{type:Array,required:!0}},setup(){const{virtualScrollRef:e,mergedClsPrefixRef:t,mergedThemeRef:n,optionHeightRef:r}=Be(rl),o=B(null),i=B(null),a={scroll(l,d){var c,u;e.value?(c=i.value)===null||c===void 0||c.scrollTo({index:l}):(u=o.value)===null||u===void 0||u.scrollTo({index:l,elSize:d})}};return Object.assign({mergedClsPrefix:t,mergedTheme:n,scrollbarInstRef:o,vlInstRef:i,virtualScroll:e,itemSize:S(()=>Et(r.value)),handleVlScroll:()=>{var l;(l=o.value)===null||l===void 0||l.sync()},getVlContainer:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.listElRef},getVlContent:()=>{var l;return(l=i.value)===null||l===void 0?void 0:l.itemsElRef}},a)},render(){const{mergedClsPrefix:e,mergedTheme:t,virtualScroll:n}=this;return s("div",{class:[n&&`${e}-cascader-submenu--virtual`,`${e}-cascader-submenu`]},s(Zt,{ref:"scrollbarInstRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:n?this.getVlContainer:void 0,content:n?this.getVlContent:void 0},{default:()=>n?s($r,{items:this.tmNodes,itemSize:this.itemSize,onScroll:this.handleVlScroll,showScrollbar:!1,ref:"vlInstRef"},{default:({item:r})=>s(kv,{key:r.key,tmNode:r})}):this.tmNodes.map(r=>s(kv,{key:r.key,tmNode:r}))}))}}),HF=Y({name:"NCascaderMenu",props:{value:[String,Number,Array],placement:{type:String,default:"bottom-start"},show:Boolean,menuModel:{type:Array,required:!0},loading:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onKeydown:{type:Function,required:!0},onMousedown:{type:Function,required:!0},onTabout:{type:Function,required:!0}},setup(e){const{localeRef:t,isMountedRef:n,mergedClsPrefixRef:r,syncCascaderMenuPosition:o,handleCascaderMenuClickOutside:i,mergedThemeRef:a,getColumnStyleRef:l}=Be(rl),d=[],c=B(null),u=B(null);function f(){o()}Os(u,f);function v(b){var y;const{value:{loadingRequiredMessage:R}}=t;(y=c.value)===null||y===void 0||y.showOnce(R(b))}function m(b){i(b)}function h(b){const{value:y}=u;y&&(y.contains(b.relatedTarget)||e.onFocus(b))}function g(b){const{value:y}=u;y&&(y.contains(b.relatedTarget)||e.onBlur(b))}return Object.assign({isMounted:n,mergedClsPrefix:r,selfElRef:u,submenuInstRefs:d,maskInstRef:c,mergedTheme:a,getColumnStyle:l,handleFocusin:h,handleFocusout:g,handleClickOutside:m},{scroll(b,y,R){const w=d[b];w&&w.scroll(y,R)},showErrorMessage:v})},render(){const{submenuInstRefs:e,mergedClsPrefix:t,mergedTheme:n}=this;return s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.show?rn(s("div",{tabindex:"0",ref:"selfElRef",class:`${t}-cascader-menu`,onMousedown:this.onMousedown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeydown:this.onKeydown},this.menuModel[0].length?s("div",{class:`${t}-cascader-submenu-wrapper`},this.menuModel.map((r,o)=>{var i;return s(LF,{style:(i=this.getColumnStyle)===null||i===void 0?void 0:i.call(this,{level:o}),ref:a=>{a&&(e[o]=a)},key:o,tmNodes:r,depth:o+1})}),s(Q3,{clsPrefix:t,ref:"maskInstRef"})):s("div",{class:`${t}-cascader-menu__empty`},ht(this.$slots.empty,()=>[s(to,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty})])),yt(this.$slots.action,r=>r&&s("div",{class:`${t}-cascader-menu-action`,"data-action":!0},r)),s(qr,{onFocus:this.onTabout})),[[Qn,this.handleClickOutside,void 0,{capture:!0}]]):null})}});function Ol(e){return e?e.map(t=>t.rawNode):null}function jF(e,t,n,r){const o=[],i=[];function a(l){for(const d of l){if(d.disabled)continue;const{rawNode:c}=d;i.push(c),(d.isLeaf||!t)&&o.push({label:Bc(d,r,n),value:d.key,rawNode:d.rawNode,path:Array.from(i)}),!d.isLeaf&&d.children&&a(d.children),i.pop()}}return a(e),o}function Bc(e,t,n){const r=[];for(;e;)r.push(e.rawNode[n]),e=e.parent;return r.reverse().join(t)}const VF=Y({name:"NCascaderSelectMenu",props:{value:{type:[String,Number,Array],default:null},show:Boolean,pattern:{type:String,default:""},multiple:Boolean,tmNodes:{type:Array,default:()=>[]},filter:Function,labelField:{type:String,required:!0},separator:{type:String,required:!0}},setup(e){const{isMountedRef:t,mergedValueRef:n,mergedClsPrefixRef:r,mergedThemeRef:o,mergedCheckStrategyRef:i,slots:a,syncSelectMenuPosition:l,closeMenu:d,handleSelectMenuClickOutside:c,doUncheck:u,doCheck:f,clearPattern:v}=Be(rl),m=B(null),h=S(()=>jF(e.tmNodes,i.value==="child",e.labelField,e.separator)),g=S(()=>{const{filter:T}=e;if(T)return T;const{labelField:D}=e;return(I,A,E)=>E.some(N=>N[D]&&~N[D].toLowerCase().indexOf(I.toLowerCase()))}),p=S(()=>{const{pattern:T}=e,{value:D}=g;return(T?h.value.filter(I=>D(T,I.rawNode,I.path)):h.value).map(I=>({value:I.value,label:I.label}))}),b=S(()=>Gn(p.value,Ns("value","children")));function y(){l()}function R(T){w(T)}function w(T){if(e.multiple){const{value:D}=n;Array.isArray(D)?D.includes(T.key)?u(T.key):f(T.key):D===null&&f(T.key),v()}else f(T.key),d(!0)}function C(){var T;(T=m.value)===null||T===void 0||T.prev()}function P(){var T;(T=m.value)===null||T===void 0||T.next()}function k(){var T;if(m){const D=(T=m.value)===null||T===void 0?void 0:T.getPendingTmNode();return D&&w(D),!0}return!1}function O(T){c(T)}return Object.assign({isMounted:t,mergedTheme:o,mergedClsPrefix:r,menuInstRef:m,selectTreeMate:b,handleResize:y,handleToggle:R,handleClickOutside:O,cascaderSlots:a},{prev:C,next:P,enter:k})},render(){const{mergedClsPrefix:e,isMounted:t,mergedTheme:n,cascaderSlots:r}=this;return s(_t,{name:"fade-in-scale-up-transition",appear:t},{default:()=>this.show?rn(s(tl,{ref:"menuInstRef",onResize:this.handleResize,clsPrefix:e,class:`${e}-cascader-menu`,autoPending:!0,themeOverrides:n.peerOverrides.InternalSelectMenu,theme:n.peers.InternalSelectMenu,treeMate:this.selectTreeMate,multiple:this.multiple,value:this.value,onToggle:this.handleToggle},{empty:()=>ht(r["not-found"],()=>[])}),[[Qn,this.handleClickOutside,void 0,{capture:!0}]]):null})}}),UF=z([x("cascader-menu",` + outline: none; + position: relative; + margin: 4px 0; + display: flex; + flex-flow: column nowrap; + border-radius: var(--n-menu-border-radius); + overflow: hidden; + box-shadow: var(--n-menu-box-shadow); + color: var(--n-option-text-color); + background-color: var(--n-menu-color); + `,[Cn({transformOrigin:"inherit",duration:"0.2s"}),F("empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),x("scrollbar",` + width: 100%; + `),x("base-menu-mask",` + background-color: var(--n-menu-mask-color); + `),x("base-loading",` + color: var(--n-loading-color); + `),x("cascader-submenu-wrapper",` + position: relative; + display: flex; + flex-wrap: nowrap; + `),x("cascader-submenu",` + height: var(--n-menu-height); + min-width: var(--n-column-width); + position: relative; + `,[M("virtual",` + width: var(--n-column-width); + `),x("scrollbar-content",` + position: relative; + `),z("&:first-child",` + border-top-left-radius: var(--n-menu-border-radius); + border-bottom-left-radius: var(--n-menu-border-radius); + `),z("&:last-child",` + border-top-right-radius: var(--n-menu-border-radius); + border-bottom-right-radius: var(--n-menu-border-radius); + `),z("&:not(:first-child)",` + border-left: 1px solid var(--n-menu-divider-color); + `)]),x("cascader-menu-action",` + box-sizing: border-box; + padding: 8px; + border-top: 1px solid var(--n-menu-divider-color); + `),x("cascader-option",` + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-option-font-size); + padding: 0 0 0 18px; + box-sizing: border-box; + min-width: 182px; + background-color: #0000; + display: flex; + align-items: center; + white-space: nowrap; + position: relative; + cursor: pointer; + transition: + background-color .2s var(--n-bezier), + color 0.2s var(--n-bezier); + `,[M("show-prefix",` + padding-left: 0; + `),F("label",` + flex: 1 0 0; + overflow: hidden; + text-overflow: ellipsis; + `),F("prefix",` + min-width: 32px; + display: flex; + align-items: center; + justify-content: center; + `),F("suffix",` + min-width: 32px; + display: flex; + align-items: center; + justify-content: center; + `),x("cascader-option-icon-placeholder",` + line-height: 0; + position: relative; + width: 16px; + height: 16px; + font-size: 16px; + `,[x("cascader-option-icon",[M("checkmark",` + color: var(--n-option-check-mark-color); + `,[Cn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})]),M("arrow",` + color: var(--n-option-arrow-color); + `)])]),M("selected",` + color: var(--n-option-text-color-active); + `),M("active",` + color: var(--n-option-text-color-active); + background-color: var(--n-option-color-hover); + `),M("pending",` + background-color: var(--n-option-color-hover); + `),z("&:hover",` + background-color: var(--n-option-color-hover); + `),M("disabled",` + color: var(--n-option-text-color-disabled); + background-color: #0000; + cursor: not-allowed; + `,[x("cascader-option-icon",[M("arrow",` + color: var(--n-option-text-color-disabled); + `)])])])]),x("cascader",` + z-index: auto; + position: relative; + width: 100%; + `)]),x0=Object.assign(Object.assign({},ge.props),{allowCheckingNotLoaded:Boolean,to:Ht.propTo,bordered:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},value:[String,Number,Array],defaultValue:{type:[String,Number,Array],default:null},placeholder:String,multiple:Boolean,size:String,filterable:Boolean,disabled:{type:Boolean,default:void 0},disabledField:{type:String,default:"disabled"},expandTrigger:{type:String,default:"click"},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},remote:Boolean,onLoad:Function,separator:{type:String,default:" / "},filter:Function,placement:{type:String,default:"bottom-start"},cascade:{type:Boolean,default:!0},leafOnly:Boolean,showPath:{type:Boolean,default:!0},show:{type:Boolean,default:void 0},maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,menuProps:Object,filterMenuProps:Object,virtualScroll:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},valueField:{type:String,default:"value"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},renderLabel:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onBlur:Function,onFocus:Function,getColumnStyle:Function,renderPrefix:Function,renderSuffix:Function,onChange:[Function,Array]}),WF=Y({name:"Cascader",props:x0,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,namespaceRef:o,inlineThemeDisabled:i}=Ee(e),a=ge("Cascader","-cascader",UF,DF,e,r),{localeRef:l}=on("Cascader"),d=B(e.defaultValue),c=S(()=>e.value),u=St(c,d),f=S(()=>e.leafOnly?"child":e.checkStrategy),v=B(""),m=ln(e),{mergedSizeRef:h,mergedDisabledRef:g,mergedStatusRef:p}=m,b=B(null),y=B(null),R=B(null),w=B(null),C=B(null),P=B(new Set),k=B(null),O=B(null),$=Ht(e),T=B(!1),D=ee=>{P.value.add(ee)},I=ee=>{P.value.delete(ee)},A=S(()=>{const{valueField:ee,childrenField:Ce,disabledField:Ue}=e;return Gn(e.options,{getDisabled(Ye){return Ye[Ue]},getKey(Ye){return Ye[ee]},getChildren(Ye){return Ye[Ce]}})}),E=S(()=>{const{cascade:ee,multiple:Ce}=e;return Ce&&Array.isArray(u.value)?A.value.getCheckedKeys(u.value,{cascade:ee,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:[],indeterminateKeys:[]}}),N=S(()=>E.value.checkedKeys),U=S(()=>E.value.indeterminateKeys),q=S(()=>{const{treeNodePath:ee,treeNode:Ce}=A.value.getPath(C.value);let Ue;return Ce===null?Ue=[A.value.treeNodes]:(Ue=ee.map(Ye=>Ye.siblings),!Ce.isLeaf&&!P.value.has(Ce.key)&&Ce.children&&Ue.push(Ce.children)),Ue}),J=S(()=>{const{keyPath:ee}=A.value.getPath(C.value);return ee}),ve=S(()=>a.value.self.optionHeight);rC(e.options)&&ct(e.options,(ee,Ce)=>{ee!==Ce&&(C.value=null,w.value=null)});const ae=B(!1);function W(ee){const{onUpdateShow:Ce,"onUpdate:show":Ue}=e;Ce&&ie(Ce,ee),Ue&&ie(Ue,ee),ae.value=ee}function j(ee,Ce,Ue){const{onUpdateValue:Ye,"onUpdate:value":se,onChange:Me}=e,{nTriggerFormInput:re,nTriggerFormChange:ke}=m;Ye&&ie(Ye,ee,Ce,Ue),se&&ie(se,ee,Ce,Ue),Me&&ie(Me,ee,Ce,Ue),d.value=ee,re(),ke()}function _(ee){w.value=ee}function L(ee){C.value=ee}function Z(ee){const{value:{getNode:Ce}}=A;return ee.map(Ue=>{var Ye;return((Ye=Ce(Ue))===null||Ye===void 0?void 0:Ye.rawNode)||null})}function ce(ee){var Ce;const{cascade:Ue,multiple:Ye,filterable:se}=e,{value:{check:Me,getNode:re,getPath:ke}}=A;if(Ye)try{const{checkedKeys:De}=Me(ee,E.value.checkedKeys,{cascade:Ue,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});j(De,Z(De),De.map(Qe=>{var rt;return Ol((rt=ke(Qe))===null||rt===void 0?void 0:rt.treeNodePath)})),se&&at(),w.value=ee,C.value=ee}catch(De){if(De instanceof nb){if(b.value){const Qe=re(ee);Qe!==null&&b.value.showErrorMessage(Qe.rawNode[e.labelField])}}else throw De}else if(f.value==="child"){const De=re(ee);if(De?.isLeaf)j(ee,De.rawNode,Ol(ke(ee).treeNodePath));else return!1}else{const De=re(ee);j(ee,De?.rawNode||null,Ol((Ce=ke(ee))===null||Ce===void 0?void 0:Ce.treeNodePath))}return!0}function ye(ee){const{cascade:Ce,multiple:Ue}=e;if(Ue){const{value:{uncheck:Ye,getNode:se,getPath:Me}}=A,{checkedKeys:re}=Ye(ee,E.value.checkedKeys,{cascade:Ce,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded});j(re,re.map(ke=>{var De;return((De=se(ke))===null||De===void 0?void 0:De.rawNode)||null}),re.map(ke=>{var De;return Ol((De=Me(ke))===null||De===void 0?void 0:De.treeNodePath)})),w.value=ee,C.value=ee}}const _e=S(()=>{if(e.multiple){const{showPath:ee,separator:Ce,labelField:Ue,cascade:Ye}=e,{getCheckedKeys:se,getNode:Me}=A.value;return se(N.value,{cascade:Ye,checkStrategy:f.value,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys.map(ke=>{const De=Me(ke);return De===null?{label:String(ke),value:ke}:{label:ee?Bc(De,Ce,Ue):De.rawNode[Ue],value:De.key}})}else return[]}),V=S(()=>{const{multiple:ee,showPath:Ce,separator:Ue,labelField:Ye}=e,{value:se}=u;if(!ee&&!Array.isArray(se)){const{getNode:Me}=A.value;if(se===null)return null;const re=Me(se);return re===null?{label:String(se),value:se}:{label:Ce?Bc(re,Ue,Ye):re.rawNode[Ye],value:re.key}}else return null}),ze=le(e,"show"),Ae=St(ze,ae),Ne=S(()=>{const{placeholder:ee}=e;return ee!==void 0?ee:l.value.placeholder}),je=S(()=>!!(e.filterable&&v.value));ct(Ae,ee=>{if(!ee||e.multiple)return;const{value:Ce}=u;!Array.isArray(Ce)&&Ce!==null?(w.value=Ce,C.value=Ce,zt(()=>{var Ue;if(!Ae.value)return;const{value:Ye}=C;if(u.value!==null){const se=A.value.getNode(Ye);se&&((Ue=b.value)===null||Ue===void 0||Ue.scroll(se.level,se.index,Et(ve.value)))}})):(w.value=null,C.value=null)},{immediate:!0});function qe(ee){const{onBlur:Ce}=e,{nTriggerFormBlur:Ue}=m;Ce&&ie(Ce,ee),Ue()}function gt(ee){const{onFocus:Ce}=e,{nTriggerFormFocus:Ue}=m;Ce&&ie(Ce,ee),Ue()}function at(){var ee;(ee=R.value)===null||ee===void 0||ee.focusInput()}function Te(){var ee;(ee=R.value)===null||ee===void 0||ee.focus()}function Q(){g.value||(v.value="",W(!0),e.filterable&&at())}function ue(ee=!1){ee&&Te(),W(!1),v.value=""}function G(ee){var Ce;je.value||Ae.value&&(!((Ce=R.value)===null||Ce===void 0)&&Ce.$el.contains(Jn(ee))||ue())}function fe(ee){je.value&&G(ee)}function we(){e.clearFilterAfterSelect&&(v.value="")}function te(ee){var Ce,Ue,Ye;const{value:se}=w,{value:Me}=A;switch(ee){case"prev":if(se!==null){const re=Me.getPrev(se,{loop:!0});re!==null&&(_(re.key),(Ce=b.value)===null||Ce===void 0||Ce.scroll(re.level,re.index,Et(ve.value)))}break;case"next":if(se===null){const re=Me.getFirstAvailableNode();re!==null&&(_(re.key),(Ue=b.value)===null||Ue===void 0||Ue.scroll(re.level,re.index,Et(ve.value)))}else{const re=Me.getNext(se,{loop:!0});re!==null&&(_(re.key),(Ye=b.value)===null||Ye===void 0||Ye.scroll(re.level,re.index,Et(ve.value)))}break;case"child":if(se!==null){const re=Me.getNode(se);if(re!==null)if(re.shallowLoaded){const ke=Me.getChild(se);ke!==null&&(L(se),_(ke.key))}else{const{value:ke}=P;if(!ke.has(se)){D(se),L(se);const{onLoad:De}=e;De&&De(re.rawNode).then(()=>{I(se)}).catch(()=>{I(se)})}}}break;case"parent":if(se!==null){const re=Me.getParent(se);if(re!==null){_(re.key);const ke=re.getParent();L(ke===null?null:ke.key)}}break}}function X(ee){var Ce,Ue;switch(ee.key){case" ":case"ArrowDown":case"ArrowUp":if(e.filterable&&Ae.value)break;ee.preventDefault();break}if(!en(ee,"action"))switch(ee.key){case" ":if(e.filterable)return;case"Enter":if(!Ae.value)Q();else{const{value:Ye}=je,{value:se}=w;if(Ye)y.value&&y.value.enter()&&we();else if(se!==null)if(N.value.includes(se)||U.value.includes(se))ye(se);else{const Me=ce(se);!e.multiple&&Me&&ue(!0)}}break;case"ArrowUp":ee.preventDefault(),Ae.value&&(je.value?(Ce=y.value)===null||Ce===void 0||Ce.prev():te("prev"));break;case"ArrowDown":ee.preventDefault(),Ae.value?je.value?(Ue=y.value)===null||Ue===void 0||Ue.next():te("next"):Q();break;case"ArrowLeft":ee.preventDefault(),Ae.value&&!je.value&&te("parent");break;case"ArrowRight":ee.preventDefault(),Ae.value&&!je.value&&te("child");break;case"Escape":Ae.value&&(ai(ee),ue(!0))}}function he(ee){X(ee)}function Ie(ee){ee.stopPropagation(),e.multiple?j([],[],[]):j(null,null,null)}function me(ee){var Ce;!((Ce=b.value)===null||Ce===void 0)&&Ce.$el.contains(ee.relatedTarget)||(T.value=!0,gt(ee))}function Ke(ee){var Ce;!((Ce=b.value)===null||Ce===void 0)&&Ce.$el.contains(ee.relatedTarget)||(T.value=!1,qe(ee),ue())}function st(ee){var Ce;!((Ce=R.value)===null||Ce===void 0)&&Ce.$el.contains(ee.relatedTarget)||(T.value=!0,gt(ee))}function xt(ee){var Ce;!((Ce=R.value)===null||Ce===void 0)&&Ce.$el.contains(ee.relatedTarget)||(T.value=!1,qe(ee))}function vt(ee){en(ee,"action")||e.multiple&&e.filter&&(ee.preventDefault(),at())}function bt(){ue(!0)}function pt(){e.filterable?Q():Ae.value?ue(!0):Q()}function He(ee){v.value=ee.target.value}function nt(ee){const{multiple:Ce}=e,{value:Ue}=u;Ce&&Array.isArray(Ue)&&ee.value!==void 0?ye(ee.value):j(null,null,null)}function K(){var ee;(ee=k.value)===null||ee===void 0||ee.syncPosition()}function H(){var ee;(ee=O.value)===null||ee===void 0||ee.syncPosition()}function pe(){Ae.value&&(je.value?K():H())}const $e=S(()=>!!(e.multiple&&e.cascade||f.value!=="child"));ot(rl,{slots:t,mergedClsPrefixRef:r,mergedThemeRef:a,mergedValueRef:u,checkedKeysRef:N,indeterminateKeysRef:U,hoverKeyPathRef:J,mergedCheckStrategyRef:f,showCheckboxRef:$e,cascadeRef:le(e,"cascade"),multipleRef:le(e,"multiple"),keyboardKeyRef:w,hoverKeyRef:C,remoteRef:le(e,"remote"),loadingKeySetRef:P,expandTriggerRef:le(e,"expandTrigger"),isMountedRef:$n(),onLoadRef:le(e,"onLoad"),virtualScrollRef:le(e,"virtualScroll"),optionHeightRef:ve,localeRef:l,labelFieldRef:le(e,"labelField"),renderLabelRef:le(e,"renderLabel"),getColumnStyleRef:le(e,"getColumnStyle"),renderPrefixRef:le(e,"renderPrefix"),renderSuffixRef:le(e,"renderSuffix"),syncCascaderMenuPosition:H,syncSelectMenuPosition:K,updateKeyboardKey:_,updateHoverKey:L,addLoadingKey:D,deleteLoadingKey:I,doCheck:ce,doUncheck:ye,closeMenu:ue,handleSelectMenuClickOutside:fe,handleCascaderMenuClickOutside:G,clearPattern:we});const Oe={focus:()=>{var ee;(ee=R.value)===null||ee===void 0||ee.focus()},blur:()=>{var ee;(ee=R.value)===null||ee===void 0||ee.blur()},getCheckedData:()=>{if($e.value){const ee=N.value;return{keys:ee,options:Z(ee)}}return{keys:[],options:[]}},getIndeterminateData:()=>{if($e.value){const ee=U.value;return{keys:ee,options:Z(ee)}}return{keys:[],options:[]}}},ne=S(()=>{const{self:{optionArrowColor:ee,optionTextColor:Ce,optionTextColorActive:Ue,optionTextColorDisabled:Ye,optionCheckMarkColor:se,menuColor:Me,menuBoxShadow:re,menuDividerColor:ke,menuBorderRadius:De,menuHeight:Qe,optionColorHover:rt,optionHeight:oe,optionFontSize:Re,loadingColor:We,columnWidth:de},common:{cubicBezierEaseInOut:Pe}}=a.value;return{"--n-bezier":Pe,"--n-menu-border-radius":De,"--n-menu-box-shadow":re,"--n-menu-height":Qe,"--n-column-width":de,"--n-menu-color":Me,"--n-menu-divider-color":ke,"--n-option-height":oe,"--n-option-font-size":Re,"--n-option-text-color":Ce,"--n-option-text-color-disabled":Ye,"--n-option-text-color-active":Ue,"--n-option-color-hover":rt,"--n-option-check-mark-color":se,"--n-option-arrow-color":ee,"--n-menu-mask-color":mt(Me,{alpha:.75}),"--n-loading-color":We}}),Se=i?Xe("cascader",void 0,ne,e):void 0;return Object.assign(Object.assign({},Oe),{handleTriggerResize:pe,mergedStatus:p,selectMenuFollowerRef:k,cascaderMenuFollowerRef:O,triggerInstRef:R,selectMenuInstRef:y,cascaderMenuInstRef:b,mergedBordered:n,mergedClsPrefix:r,namespace:o,mergedValue:u,mergedShow:Ae,showSelectMenu:je,pattern:v,treeMate:A,mergedSize:h,mergedDisabled:g,localizedPlaceholder:Ne,selectedOption:V,selectedOptions:_e,adjustedTo:$,menuModel:q,handleMenuTabout:bt,handleMenuFocus:st,handleMenuBlur:xt,handleMenuKeydown:he,handleMenuMousedown:vt,handleTriggerFocus:me,handleTriggerBlur:Ke,handleTriggerClick:pt,handleClear:Ie,handleDeleteOption:nt,handlePatternInput:He,handleKeydown:X,focused:T,optionHeight:ve,mergedTheme:a,cssVars:i?void 0:ne,themeClass:Se?.themeClass,onRender:Se?.onRender})},render(){const{mergedClsPrefix:e}=this;return s("div",{class:`${e}-cascader`},s(yr,null,{default:()=>[s(wr,null,{default:()=>s(Au,{onResize:this.handleTriggerResize,ref:"triggerInstRef",status:this.mergedStatus,clsPrefix:e,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,active:this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,focused:this.focused,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onClear:this.handleClear,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onKeydown:this.handleKeydown},{arrow:()=>{var t,n;return(n=(t=this.$slots).arrow)===null||n===void 0?void 0:n.call(t)}})}),s(sr,{key:"cascaderMenu",ref:"cascaderMenuFollowerRef",show:this.mergedShow&&!this.showSelectMenu,containerClass:this.namespace,placement:this.placement,width:this.options.length?void 0:"target",teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{menuProps:n}=this;return s(HF,Object.assign({},n,{ref:"cascaderMenuInstRef",class:[this.themeClass,n?.class],value:this.mergedValue,show:this.mergedShow&&!this.showSelectMenu,menuModel:this.menuModel,style:[this.cssVars,n?.style],onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onMousedown:this.handleMenuMousedown,onTabout:this.handleMenuTabout}),{action:()=>{var r,o;return(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)},empty:()=>{var r,o;return(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)}})}}),s(sr,{key:"selectMenu",ref:"selectMenuFollowerRef",show:this.mergedShow&&this.showSelectMenu,containerClass:this.namespace,width:"target",placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{filterMenuProps:n}=this;return s(VF,Object.assign({},n,{ref:"selectMenuInstRef",class:[this.themeClass,n?.class],value:this.mergedValue,show:this.mergedShow&&this.showSelectMenu,pattern:this.pattern,multiple:this.multiple,tmNodes:this.treeMate.treeNodes,filter:this.filter,labelField:this.labelField,separator:this.separator,style:[this.cssVars,n?.style]}))}})]}))}});function KF(e){const{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:o}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:o}}const y0={name:"Code",common:Je,self:KF},qF=z([x("code",` + font-size: var(--n-font-size); + font-family: var(--n-font-family); + `,[M("show-line-numbers",` + display: flex; + `),F("line-numbers",` + user-select: none; + padding-right: 12px; + text-align: right; + transition: color .3s var(--n-bezier); + color: var(--n-line-number-text-color); + `),M("word-wrap",[z("pre",` + white-space: pre-wrap; + word-break: break-all; + `)]),z("pre",` + margin: 0; + line-height: inherit; + font-size: inherit; + font-family: inherit; + `),z("[class^=hljs]",` + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment, + ${t} .hljs-quote { + color: var(--n-mono-3); + font-style: italic; + }`,`${t} .hljs-doctag, + ${t} .hljs-keyword, + ${t} .hljs-formula { + color: var(--n-hue-3); + }`,`${t} .hljs-section, + ${t} .hljs-name, + ${t} .hljs-selector-tag, + ${t} .hljs-deletion, + ${t} .hljs-subst { + color: var(--n-hue-5); + }`,`${t} .hljs-literal { + color: var(--n-hue-1); + }`,`${t} .hljs-string, + ${t} .hljs-regexp, + ${t} .hljs-addition, + ${t} .hljs-attribute, + ${t} .hljs-meta-string { + color: var(--n-hue-4); + }`,`${t} .hljs-built_in, + ${t} .hljs-class .hljs-title { + color: var(--n-hue-6-2); + }`,`${t} .hljs-attr, + ${t} .hljs-variable, + ${t} .hljs-template-variable, + ${t} .hljs-type, + ${t} .hljs-selector-class, + ${t} .hljs-selector-attr, + ${t} .hljs-selector-pseudo, + ${t} .hljs-number { + color: var(--n-hue-6); + }`,`${t} .hljs-symbol, + ${t} .hljs-bullet, + ${t} .hljs-link, + ${t} .hljs-meta, + ${t} .hljs-selector-id, + ${t} .hljs-title { + color: var(--n-hue-2); + }`,`${t} .hljs-emphasis { + font-style: italic; + }`,`${t} .hljs-strong { + font-weight: var(--n-font-weight-strong); + }`,`${t} .hljs-link { + text-decoration: underline; + }`]}]),w0=Object.assign(Object.assign({},ge.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),C0=Y({name:"Code",props:w0,setup(e,{slots:t}){const{internalNoHighlight:n}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:o}=Ee(),i=B(null),a=n?{value:void 0}:Gm(e),l=(m,h,g)=>{const{value:p}=a;return!p||!(m&&p.getLanguage(m))?null:p.highlight(g?h.trim():h,{language:m}).value},d=S(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),c=()=>{if(t.default)return;const{value:m}=i;if(!m)return;const{language:h}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(h){const b=l(h,g,e.trim);if(b!==null){if(e.inline)m.innerHTML=b;else{const y=m.querySelector(".__code__");y&&m.removeChild(y);const R=document.createElement("pre");R.className="__code__",R.innerHTML=b,m.appendChild(R)}return}}if(e.inline){m.textContent=g;return}const p=m.querySelector(".__code__");if(p)p.textContent=g;else{const b=document.createElement("pre");b.className="__code__",b.textContent=g,m.innerHTML="",m.appendChild(b)}};It(c),ct(le(e,"language"),c),ct(le(e,"code"),c),n||ct(a,c);const u=ge("Code","-code",qF,y0,e,r),f=S(()=>{const{common:{cubicBezierEaseInOut:m,fontFamilyMono:h},self:{textColor:g,fontSize:p,fontWeightStrong:b,lineNumberTextColor:y,"mono-3":R,"hue-1":w,"hue-2":C,"hue-3":P,"hue-4":k,"hue-5":O,"hue-5-2":$,"hue-6":T,"hue-6-2":D}}=u.value,{internalFontSize:I}=e;return{"--n-font-size":I?`${I}px`:p,"--n-font-family":h,"--n-font-weight-strong":b,"--n-bezier":m,"--n-text-color":g,"--n-mono-3":R,"--n-hue-1":w,"--n-hue-2":C,"--n-hue-3":P,"--n-hue-4":k,"--n-hue-5":O,"--n-hue-5-2":$,"--n-hue-6":T,"--n-hue-6-2":D,"--n-line-number-text-color":y}}),v=o?Xe("code",S(()=>`${e.internalFontSize||"a"}`),f,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:d,lineNumbers:S(()=>{let m=1;const h=[];let g=!1;for(const p of e.code)p===` +`?(g=!0,h.push(m++)):g=!1;return g||h.push(m++),h.join(` +`)}),cssVars:o?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender}},render(){var e,t;const{mergedClsPrefix:n,wordWrap:r,mergedShowLineNumbers:o,onRender:i}=this;return i?.(),s("code",{class:[`${n}-code`,this.themeClass,r&&`${n}-code--word-wrap`,o&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},o?s("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function YF(e){const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const GF={common:Je,self:YF},XF=x("collapse","width: 100%;",[x("collapse-item",` + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + margin: var(--n-item-margin); + `,[M("disabled",[F("header","cursor: not-allowed;",[F("header-main",` + color: var(--n-title-text-color-disabled); + `),x("collapse-item-arrow",` + color: var(--n-arrow-color-disabled); + `)])]),x("collapse-item","margin-left: 32px;"),z("&:first-child","margin-top: 0;"),z("&:first-child >",[F("header","padding-top: 0;")]),M("left-arrow-placement",[F("header",[x("collapse-item-arrow","margin-right: 4px;")])]),M("right-arrow-placement",[F("header",[x("collapse-item-arrow","margin-left: 4px;")])]),F("content-wrapper",[F("content-inner","padding-top: 16px;"),no({duration:"0.15s"})]),M("active",[F("header",[M("active",[x("collapse-item-arrow","transform: rotate(90deg);")])])]),z("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),ft("disabled",[M("trigger-area-main",[F("header",[F("header-main","cursor: pointer;"),x("collapse-item-arrow","cursor: default;")])]),M("trigger-area-arrow",[F("header",[x("collapse-item-arrow","cursor: pointer;")])]),M("trigger-area-extra",[F("header",[F("header-extra","cursor: pointer;")])])]),F("header",` + font-size: var(--n-title-font-size); + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: color .3s var(--n-bezier); + position: relative; + padding: var(--n-title-padding); + color: var(--n-title-text-color); + `,[F("header-main",` + display: flex; + flex-wrap: nowrap; + align-items: center; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + color: var(--n-title-text-color); + `),F("header-extra",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),x("collapse-item-arrow",` + display: flex; + transition: + transform .15s var(--n-bezier), + color .3s var(--n-bezier); + font-size: 18px; + color: var(--n-arrow-color); + `)])])]),S0=Object.assign(Object.assign({},ge.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),R0="n-collapse",ZF=Y({name:"Collapse",props:S0,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=B(e.defaultExpandedNames),a=S(()=>e.expandedNames),l=St(a,i),d=ge("Collapse","-collapse",XF,GF,e,n);function c(g){const{"onUpdate:expandedNames":p,onUpdateExpandedNames:b,onExpandedNamesChange:y}=e;b&&ie(b,g),p&&ie(p,g),y&&ie(y,g),i.value=g}function u(g){const{onItemHeaderClick:p}=e;p&&ie(p,g)}function f(g,p,b){const{accordion:y}=e,{value:R}=l;if(y)g?(c([p]),u({name:p,expanded:!0,event:b})):(c([]),u({name:p,expanded:!1,event:b}));else if(!Array.isArray(R))c([p]),u({name:p,expanded:!0,event:b});else{const w=R.slice(),C=w.findIndex(P=>p===P);~C?(w.splice(C,1),c(w),u({name:p,expanded:!1,event:b})):(w.push(p),c(w),u({name:p,expanded:!0,event:b}))}}ot(R0,{props:e,mergedClsPrefixRef:n,expandedNamesRef:l,slots:t,toggleItem:f});const v=Bt("Collapse",o,n),m=S(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:p,dividerColor:b,titlePadding:y,titleTextColor:R,titleTextColorDisabled:w,textColor:C,arrowColor:P,fontSize:k,titleFontSize:O,arrowColorDisabled:$,itemMargin:T}}=d.value;return{"--n-font-size":k,"--n-bezier":g,"--n-text-color":C,"--n-divider-color":b,"--n-title-padding":y,"--n-title-font-size":O,"--n-title-text-color":R,"--n-title-text-color-disabled":w,"--n-title-font-weight":p,"--n-arrow-color":P,"--n-arrow-color-disabled":$,"--n-item-margin":T}}),h=r?Xe("collapse",void 0,m,e):void 0;return{rtlEnabled:v,mergedTheme:d,mergedClsPrefix:n,cssVars:r?void 0:m,themeClass:h?.themeClass,onRender:h?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),JF=Y({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:Sm(le(e,"show"))}},render(){return s(Kr,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o=t==="show"&&n,i=s("div",{class:`${r}-collapse-item__content-wrapper`},s("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?rn(i,[[lr,e]]):e?i:null}})}}),k0={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},QF=Y({name:"CollapseItem",props:k0,setup(e){const{mergedRtlRef:t}=Ee(e),n=Vn(),r=it(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),o=Be(R0);o||mn("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:l,slots:d}=o,c=S(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:v}=r;return!~f.findIndex(m=>m===v)}else if(f){const{value:v}=r;return v!==f}return!0});return{rtlEnabled:Bt("Collapse",t,l),collapseSlots:d,randomName:n,mergedClsPrefix:l,collapsed:c,triggerAreas:le(a,"triggerAreas"),mergedDisplayDirective:S(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:S(()=>a.arrowPlacement),handleClick(f){let v="main";en(f,"arrow")&&(v="arrow"),en(f,"extra")&&(v="extra"),a.triggerAreas.includes(v)&&o&&!e.disabled&&o.toggleItem(c.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a,triggerAreas:l}=this,d=an(t.header,{collapsed:r},()=>[this.title]),c=t["header-extra"]||e["header-extra"],u=t.arrow||e.arrow;return s("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`,l.map(f=>`${i}-collapse-item--trigger-area-${f}`)]},s("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},s("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&d,s("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},an(u,{collapsed:r},()=>[s(lt,{clsPrefix:i},{default:()=>this.rtlEnabled?s(Mu,null):s(gi,null)})])),n==="left"&&d),nR(c,{collapsed:r},f=>s("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},f))),s(JF,{clsPrefix:i,displayDirective:o,show:!r},t))}});function eM(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const tM={common:Je,self:eM},nM=x("collapse-transition",{width:"100%"},[no()]),P0=Object.assign(Object.assign({},ge.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}}),rM=Y({name:"CollapseTransition",props:P0,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=ge("CollapseTransition","-collapse-transition",nM,tM,e,t),i=Bt("CollapseTransition",r,t),a=S(()=>e.collapsed!==void 0?e.collapsed:e.show),l=S(()=>{const{self:{bezier:c}}=o.value;return{"--n-bezier":c}}),d=n?Xe("collapse-transition",void 0,l,e):void 0;return{rtlEnabled:i,mergedShow:a,mergedClsPrefix:t,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){return s(Kr,{appear:this.appear},{default:()=>{var e;if(this.mergedShow)return(e=this.onRender)===null||e===void 0||e.call(this),s("div",Pn({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}});function oM(e){const{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:o,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:m}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:o,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:d,heightLarge:c,fontSizeSmall:u,fontSizeMedium:f,fontSizeLarge:v,dividerColor:m}}const iM={name:"ColorPicker",common:Je,peers:{Input:tr,Button:nr},self:oM};function aM(e,t){switch(e[0]){case"hex":return t?"#000000FF":"#000000";case"rgb":return t?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return t?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return t?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function ja(e){return e===null?null:/^ *#/.test(e)?"hex":e.includes("rgb")?"rgb":e.includes("hsl")?"hsl":e.includes("hsv")?"hsv":null}function lM(e,t=[255,255,255],n="AA"){const[r,o,i,a]=pn(Qr(e));if(a===1){const m=Fl([r,o,i]),h=Fl(t);return(Math.max(m,h)+.05)/(Math.min(m,h)+.05)>=(n==="AA"?4.5:7)}const l=Math.round(r*a+t[0]*(1-a)),d=Math.round(o*a+t[1]*(1-a)),c=Math.round(i*a+t[2]*(1-a)),u=Fl([l,d,c]),f=Fl(t);return(Math.max(u,f)+.05)/(Math.min(u,f)+.05)>=(n==="AA"?4.5:7)}function Fl(e){const[t,n,r]=e.map(o=>(o/=255,o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)));return .2126*t+.7152*n+.0722*r}function sM(e){return e=Math.round(e),e>=360?359:e<0?0:e}function dM(e){return e=Math.round(e*100)/100,e>1?1:e<0?0:e}const cM={rgb:{hex(e){return po(pn(e))},hsl(e){const[t,n,r,o]=pn(e);return Qr([...oc(t,n,r),o])},hsv(e){const[t,n,r,o]=pn(e);return Xo([...rc(t,n,r),o])}},hex:{rgb(e){return Er(pn(e))},hsl(e){const[t,n,r,o]=pn(e);return Qr([...oc(t,n,r),o])},hsv(e){const[t,n,r,o]=pn(e);return Xo([...rc(t,n,r),o])}},hsl:{hex(e){const[t,n,r,o]=Go(e);return po([...rs(t,n,r),o])},rgb(e){const[t,n,r,o]=Go(e);return Er([...rs(t,n,r),o])},hsv(e){const[t,n,r,o]=Go(e);return Xo([...pm(t,n,r),o])}},hsv:{hex(e){const[t,n,r,o]=mo(e);return po([...Xr(t,n,r),o])},rgb(e){const[t,n,r,o]=mo(e);return Er([...Xr(t,n,r),o])},hsl(e){const[t,n,r,o]=mo(e);return Qr([...ql(t,n,r),o])}}};function z0(e,t,n){return n=n||ja(e),n?n===t?e:cM[n][t](e):null}const ya="12px",uM=12,No="6px",fM=Y({name:"AlphaSlider",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},alpha:{type:Number,default:0},onUpdateAlpha:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function n(i){!t.value||!e.rgba||(Ct("mousemove",document,r),Ct("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:d}=a.getBoundingClientRect(),c=(i.clientX-d)/(l-uM);e.onUpdateAlpha(dM(c))}function o(){var i;wt("mousemove",document,r),wt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,railBackgroundImage:S(()=>{const{rgba:i}=e;return i?`linear-gradient(to right, rgba(${i[0]}, ${i[1]}, ${i[2]}, 0) 0%, rgba(${i[0]}, ${i[1]}, ${i[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-color-picker-slider`,ref:"railRef",style:{height:ya,borderRadius:No},onMousedown:this.handleMouseDown},s("div",{style:{borderRadius:No,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},s("div",{class:`${e}-color-picker-checkboard`}),s("div",{class:`${e}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&s("div",{style:{position:"absolute",left:No,right:No,top:0,bottom:0}},s("div",{class:`${e}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${No})`,borderRadius:No,width:ya,height:ya}},s("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:Er(this.rgba),borderRadius:No,width:ya,height:ya}}))))}}),Wu="n-color-picker";function hM(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),255)):!1}function vM(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),360)):!1}function gM(e){return/^\d{1,3}\.?\d*$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e),100)):!1}function mM(e){const t=e.trim();return/^#[0-9a-fA-F]+$/.test(t)?[4,5,7,9].includes(t.length):!1}function pM(e){return/^\d{1,3}\.?\d*%$/.test(e.trim())?Math.max(0,Math.min(Number.parseInt(e)/100,100)):!1}const bM={paddingSmall:"0 4px"},Pv=Y({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(e){const t=B(""),{themeRef:n}=Be(Wu,null);Ft(()=>{t.value=r()});function r(){const{value:a}=e;if(a===null)return"";const{label:l}=e;return l==="HEX"?a:l==="A"?`${Math.floor(a*100)}%`:String(Math.floor(a))}function o(a){t.value=a}function i(a){let l,d;switch(e.label){case"HEX":d=mM(a),d&&e.onUpdateValue(a),t.value=r();break;case"H":l=vM(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"S":case"L":case"V":l=gM(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"A":l=pM(a),l===!1?t.value=r():e.onUpdateValue(l);break;case"R":case"G":case"B":l=hM(a),l===!1?t.value=r():e.onUpdateValue(l);break}}return{mergedTheme:n,inputValue:t,handleInputChange:i,handleInputUpdateValue:o}},render(){const{mergedTheme:e}=this;return s(Sn,{size:"small",placeholder:this.label,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,builtinThemeOverrides:bM,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),xM=Y({name:"ColorInput",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},modes:{type:Array,required:!0},showAlpha:{type:Boolean,required:!0},value:{type:String,default:null},valueArr:{type:Array,default:null},onUpdateValue:{type:Function,required:!0},onUpdateMode:{type:Function,required:!0}},setup(e){return{handleUnitUpdateValue(t,n){const{showAlpha:r}=e;if(e.mode==="hex"){e.onUpdateValue((r?po:za)(n));return}let o;switch(e.valueArr===null?o=[0,0,0,0]:o=Array.from(e.valueArr),e.mode){case"hsv":o[t]=n,e.onUpdateValue((r?Xo:lc)(o));break;case"rgb":o[t]=n,e.onUpdateValue((r?Er:ac)(o));break;case"hsl":o[t]=n,e.onUpdateValue((r?Qr:sc)(o));break}}}},render(){const{clsPrefix:e,modes:t}=this;return s("div",{class:`${e}-color-picker-input`},s("div",{class:`${e}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:t.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),s(Cb,null,{default:()=>{const{mode:n,valueArr:r,showAlpha:o}=this;if(n==="hex"){let i=null;try{i=r===null?null:(o?po:za)(r)}catch{}return s(Pv,{label:"HEX",showAlpha:o,value:i,onUpdateValue:a=>{this.handleUnitUpdateValue(0,a)}})}return(n+(o?"a":"")).split("").map((i,a)=>s(Pv,{label:i.toUpperCase(),value:r===null?null:r[a],onUpdateValue:l=>{this.handleUnitUpdateValue(a,l)}}))}}))}});function yM(e,t){if(t==="hsv"){const[n,r,o,i]=mo(e);return Er([...Xr(n,r,o),i])}return e}function wM(e){const t=document.createElement("canvas").getContext("2d");return t?(t.fillStyle=e,t.fillStyle):"#000000"}const CM=Y({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(e){const t=S(()=>e.swatches.map(i=>{const a=ja(i);return{value:i,mode:a,legalValue:yM(i,a)}}));function n(i){const{mode:a}=e;let{value:l,mode:d}=i;return d||(d="hex",/^[a-zA-Z]+$/.test(l)?l=wM(l):(Mn("color-picker",`color ${l} in swatches is invalid.`),l="#000000")),d===a?l:z0(l,a,d)}function r(i){e.onUpdateColor(n(i))}function o(i,a){i.key==="Enter"&&r(a)}return{parsedSwatchesRef:t,handleSwatchSelect:r,handleSwatchKeyDown:o}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-color-picker-swatches`},this.parsedSwatchesRef.map(t=>s("div",{class:`${e}-color-picker-swatch`,tabindex:0,onClick:()=>{this.handleSwatchSelect(t)},onKeydown:n=>{this.handleSwatchKeyDown(n,t)}},s("div",{class:`${e}-color-picker-swatch__fill`,style:{background:t.legalValue}}))))}}),SM=Y({name:"ColorPickerTrigger",slots:Object,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(e){const{colorPickerSlots:t,renderLabelRef:n}=Be(Wu,null);return()=>{const{hsla:r,value:o,clsPrefix:i,onClick:a,disabled:l}=e,d=t.label||n.value;return s("div",{class:[`${i}-color-picker-trigger`,l&&`${i}-color-picker-trigger--disabled`],onClick:l?void 0:a},s("div",{class:`${i}-color-picker-trigger__fill`},s("div",{class:`${i}-color-picker-checkboard`}),s("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:r?Qr(r):""}}),o&&r?s("div",{class:`${i}-color-picker-trigger__value`,style:{color:lM(r)?"white":"black"}},d?d(o):o):null))}}}),RM=Y({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:e=>{const t=ja(e);return!!(!e||t&&t!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(e){function t(n){var r;const o=n.target.value;(r=e.onUpdateColor)===null||r===void 0||r.call(e,z0(o.toUpperCase(),e.mode,"hex")),n.stopPropagation()}return{handleChange:t}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-color-picker-preview__preview`},s("span",{class:`${e}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),s("input",{class:`${e}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),Oi="12px",kM=12,Lo="6px",PM=6,zM="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)",$M=Y({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function n(i){t.value&&(Ct("mousemove",document,r),Ct("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,left:d}=a.getBoundingClientRect(),c=sM((i.clientX-d-PM)/(l-kM)*360);e.onUpdateHue(c)}function o(){var i;wt("mousemove",document,r),wt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{railRef:t,handleMouseDown:n}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-color-picker-slider`,style:{height:Oi,borderRadius:Lo}},s("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:zM,height:Oi,borderRadius:Lo,position:"relative"},onMousedown:this.handleMouseDown},s("div",{style:{position:"absolute",left:Lo,right:Lo,top:0,bottom:0}},s("div",{class:`${e}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${Lo})`,borderRadius:Lo,width:Oi,height:Oi}},s("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:Lo,width:Oi,height:Oi}})))))}}),Ml="12px",Il="6px",TM=Y({name:"Pallete",props:{clsPrefix:{type:String,required:!0},rgba:{type:Array,default:null},displayedHue:{type:Number,required:!0},displayedSv:{type:Array,required:!0},onUpdateSV:{type:Function,required:!0},onComplete:Function},setup(e){const t=B(null);function n(i){t.value&&(Ct("mousemove",document,r),Ct("mouseup",document,o),r(i))}function r(i){const{value:a}=t;if(!a)return;const{width:l,height:d,left:c,bottom:u}=a.getBoundingClientRect(),f=(u-i.clientY)/d,v=(i.clientX-c)/l,m=100*(v>1?1:v<0?0:v),h=100*(f>1?1:f<0?0:f);e.onUpdateSV(m,h)}function o(){var i;wt("mousemove",document,r),wt("mouseup",document,o),(i=e.onComplete)===null||i===void 0||i.call(e)}return{palleteRef:t,handleColor:S(()=>{const{rgba:i}=e;return i?`rgb(${i[0]}, ${i[1]}, ${i[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},s("div",{class:`${e}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),s("div",{class:`${e}-color-picker-pallete__layer ${e}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&s("div",{class:`${e}-color-picker-handle`,style:{width:Ml,height:Ml,borderRadius:Il,left:`calc(${this.displayedSv[0]}% - ${Il})`,bottom:`calc(${this.displayedSv[1]}% - ${Il})`}},s("div",{class:`${e}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:Il,width:Ml,height:Ml}})))}}),OM=z([x("color-picker",` + display: inline-block; + box-sizing: border-box; + height: var(--n-height); + font-size: var(--n-font-size); + width: 100%; + position: relative; + `),x("color-picker-panel",` + margin: 4px 0; + width: 240px; + font-size: var(--n-panel-font-size); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + `,[Cn(),x("input",` + text-align: center; + `)]),x("color-picker-checkboard",` + background: white; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[z("&::after",` + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 12px 12px; + background-position: 0 0, 0 6px, 6px -6px, -6px 0px; + background-repeat: repeat; + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),x("color-picker-slider",` + margin-bottom: 8px; + position: relative; + box-sizing: border-box; + `,[F("image",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),z("&::after",` + content: ""; + position: absolute; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + pointer-events: none; + `)]),x("color-picker-handle",` + z-index: 1; + box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45); + position: absolute; + background-color: white; + overflow: hidden; + `,[F("fill",` + box-sizing: border-box; + border: 2px solid white; + `)]),x("color-picker-pallete",` + height: 180px; + position: relative; + margin-bottom: 8px; + cursor: crosshair; + `,[F("layer",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[M("shadowed",` + box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24); + `)])]),x("color-picker-preview",` + display: flex; + `,[F("sliders",` + flex: 1 0 auto; + `),F("preview",` + position: relative; + height: 30px; + width: 30px; + margin: 0 0 8px 6px; + border-radius: 50%; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + overflow: hidden; + `),F("fill",` + display: block; + width: 30px; + height: 30px; + `),F("input",` + position: absolute; + top: 0; + left: 0; + width: 30px; + height: 30px; + opacity: 0; + z-index: 1; + `)]),x("color-picker-input",` + display: flex; + align-items: center; + `,[x("input",` + flex-grow: 1; + flex-basis: 0; + `),F("mode",` + width: 72px; + text-align: center; + `)]),x("color-picker-control",` + padding: 12px; + `),x("color-picker-action",` + display: flex; + margin-top: -4px; + border-top: 1px solid var(--n-divider-color); + padding: 8px 12px; + justify-content: flex-end; + `,[x("button","margin-left: 8px;")]),x("color-picker-trigger",` + border: var(--n-border); + height: 100%; + box-sizing: border-box; + border-radius: var(--n-border-radius); + transition: border-color .3s var(--n-bezier); + cursor: pointer; + `,[F("value",` + white-space: nowrap; + position: relative; + `),F("fill",` + border-radius: var(--n-border-radius); + position: absolute; + display: flex; + align-items: center; + justify-content: center; + left: 4px; + right: 4px; + top: 4px; + bottom: 4px; + `),M("disabled","cursor: not-allowed"),x("color-picker-checkboard",` + border-radius: var(--n-border-radius); + `,[z("&::after",` + --n-block-size: calc((var(--n-height) - 8px) / 3); + background-size: calc(var(--n-block-size) * 2) calc(var(--n-block-size) * 2); + background-position: 0 0, 0 var(--n-block-size), var(--n-block-size) calc(-1 * var(--n-block-size)), calc(-1 * var(--n-block-size)) 0px; + `)])]),x("color-picker-swatches",` + display: grid; + grid-gap: 8px; + flex-wrap: wrap; + position: relative; + grid-template-columns: repeat(auto-fill, 18px); + margin-top: 10px; + `,[x("color-picker-swatch",` + width: 18px; + height: 18px; + background-image: linear-gradient(45deg, #DDD 25%, #0000 25%), linear-gradient(-45deg, #DDD 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #DDD 75%), linear-gradient(-45deg, #0000 75%, #DDD 75%); + background-size: 8px 8px; + background-position: 0px 0, 0px 4px, 4px -4px, -4px 0px; + background-repeat: repeat; + `,[F("fill",` + position: relative; + width: 100%; + height: 100%; + border-radius: 3px; + box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset; + cursor: pointer; + `),z("&:focus",` + outline: none; + `,[F("fill",[z("&::after",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + background: inherit; + filter: blur(2px); + content: ""; + `)])])])])]),$0=Object.assign(Object.assign({},ge.props),{value:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,defaultValue:String,modes:{type:Array,default:()=>["rgb","hex","hsl"]},placement:{type:String,default:"bottom-start"},to:Ht.propTo,showAlpha:{type:Boolean,default:!0},showPreview:Boolean,swatches:Array,disabled:{type:Boolean,default:void 0},actions:{type:Array,default:null},internalActions:Array,size:String,renderLabel:Function,onComplete:Function,onConfirm:Function,onClear:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),FM=Y({name:"ColorPicker",props:$0,slots:Object,setup(e,{slots:t}){const n=B(null);let r=null;const o=ln(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,{localeRef:l}=on("global"),{mergedClsPrefixRef:d,namespaceRef:c,inlineThemeDisabled:u}=Ee(e),f=ge("ColorPicker","-color-picker",OM,iM,e,d);ot(Wu,{themeRef:f,renderLabelRef:le(e,"renderLabel"),colorPickerSlots:t});const v=B(e.defaultShow),m=St(le(e,"show"),v);function h(Q){const{onUpdateShow:ue,"onUpdate:show":G}=e;ue&&ie(ue,Q),G&&ie(G,Q),v.value=Q}const{defaultValue:g}=e,p=B(g===void 0?aM(e.modes,e.showAlpha):g),b=St(le(e,"value"),p),y=B([b.value]),R=B(0),w=S(()=>ja(b.value)),{modes:C}=e,P=B(ja(b.value)||C[0]||"rgb");function k(){const{modes:Q}=e,{value:ue}=P,G=Q.findIndex(fe=>fe===ue);~G?P.value=Q[(G+1)%Q.length]:P.value="rgb"}let O,$,T,D,I,A,E,N;const U=S(()=>{const{value:Q}=b;if(!Q)return null;switch(w.value){case"hsv":return mo(Q);case"hsl":return[O,$,T,N]=Go(Q),[...pm(O,$,T),N];case"rgb":case"hex":return[I,A,E,N]=pn(Q),[...rc(I,A,E),N]}}),q=S(()=>{const{value:Q}=b;if(!Q)return null;switch(w.value){case"rgb":case"hex":return pn(Q);case"hsv":return[O,$,D,N]=mo(Q),[...Xr(O,$,D),N];case"hsl":return[O,$,T,N]=Go(Q),[...rs(O,$,T),N]}}),J=S(()=>{const{value:Q}=b;if(!Q)return null;switch(w.value){case"hsl":return Go(Q);case"hsv":return[O,$,D,N]=mo(Q),[...ql(O,$,D),N];case"rgb":case"hex":return[I,A,E,N]=pn(Q),[...oc(I,A,E),N]}}),ve=S(()=>{switch(P.value){case"rgb":case"hex":return q.value;case"hsv":return U.value;case"hsl":return J.value}}),ae=B(0),W=B(1),j=B([0,0]);function _(Q,ue){const{value:G}=U,fe=ae.value,we=G?G[3]:1;j.value=[Q,ue];const{showAlpha:te}=e;switch(P.value){case"hsv":ce((te?Xo:lc)([fe,Q,ue,we]),"cursor");break;case"hsl":ce((te?Qr:sc)([...ql(fe,Q,ue),we]),"cursor");break;case"rgb":ce((te?Er:ac)([...Xr(fe,Q,ue),we]),"cursor");break;case"hex":ce((te?po:za)([...Xr(fe,Q,ue),we]),"cursor");break}}function L(Q){ae.value=Q;const{value:ue}=U;if(!ue)return;const[,G,fe,we]=ue,{showAlpha:te}=e;switch(P.value){case"hsv":ce((te?Xo:lc)([Q,G,fe,we]),"cursor");break;case"rgb":ce((te?Er:ac)([...Xr(Q,G,fe),we]),"cursor");break;case"hex":ce((te?po:za)([...Xr(Q,G,fe),we]),"cursor");break;case"hsl":ce((te?Qr:sc)([...ql(Q,G,fe),we]),"cursor");break}}function Z(Q){switch(P.value){case"hsv":[O,$,D]=U.value,ce(Xo([O,$,D,Q]),"cursor");break;case"rgb":[I,A,E]=q.value,ce(Er([I,A,E,Q]),"cursor");break;case"hex":[I,A,E]=q.value,ce(po([I,A,E,Q]),"cursor");break;case"hsl":[O,$,T]=J.value,ce(Qr([O,$,T,Q]),"cursor");break}W.value=Q}function ce(Q,ue){ue==="cursor"?r=Q:r=null;const{nTriggerFormChange:G,nTriggerFormInput:fe}=o,{onUpdateValue:we,"onUpdate:value":te}=e;we&&ie(we,Q),te&&ie(te,Q),G(),fe(),p.value=Q}function ye(Q){ce(Q,"input"),zt(_e)}function _e(Q=!0){const{value:ue}=b;if(ue){const{nTriggerFormChange:G,nTriggerFormInput:fe}=o,{onComplete:we}=e;we&&we(ue);const{value:te}=y,{value:X}=R;Q&&(te.splice(X+1,te.length,ue),R.value=X+1),G(),fe()}}function V(){const{value:Q}=R;Q-1<0||(ce(y.value[Q-1],"input"),_e(!1),R.value=Q-1)}function ze(){const{value:Q}=R;Q<0||Q+1>=y.value.length||(ce(y.value[Q+1],"input"),_e(!1),R.value=Q+1)}function Ae(){ce(null,"input");const{onClear:Q}=e;Q&&Q(),h(!1)}function Ne(){const{value:Q}=b,{onConfirm:ue}=e;ue&&ue(Q),h(!1)}const je=S(()=>R.value>=1),qe=S(()=>{const{value:Q}=y;return Q.length>1&&R.value{Q||(y.value=[b.value],R.value=0)}),Ft(()=>{if(!(r&&r===b.value)){const{value:Q}=U;Q&&(ae.value=Q[0],W.value=Q[3],j.value=[Q[1],Q[2]])}r=null});const gt=S(()=>{const{value:Q}=i,{common:{cubicBezierEaseInOut:ue},self:{textColor:G,color:fe,panelFontSize:we,boxShadow:te,border:X,borderRadius:he,dividerColor:Ie,[be("height",Q)]:me,[be("fontSize",Q)]:Ke}}=f.value;return{"--n-bezier":ue,"--n-text-color":G,"--n-color":fe,"--n-panel-font-size":we,"--n-font-size":Ke,"--n-box-shadow":te,"--n-border":X,"--n-border-radius":he,"--n-height":me,"--n-divider-color":Ie}}),at=u?Xe("color-picker",S(()=>i.value[0]),gt,e):void 0;function Te(){var Q;const{value:ue}=q,{value:G}=ae,{internalActions:fe,modes:we,actions:te}=e,{value:X}=f,{value:he}=d;return s("div",{class:[`${he}-color-picker-panel`,at?.themeClass.value],onDragstart:Ie=>{Ie.preventDefault()},style:u?void 0:gt.value},s("div",{class:`${he}-color-picker-control`},s(TM,{clsPrefix:he,rgba:ue,displayedHue:G,displayedSv:j.value,onUpdateSV:_,onComplete:_e}),s("div",{class:`${he}-color-picker-preview`},s("div",{class:`${he}-color-picker-preview__sliders`},s($M,{clsPrefix:he,hue:G,onUpdateHue:L,onComplete:_e}),e.showAlpha?s(fM,{clsPrefix:he,rgba:ue,alpha:W.value,onUpdateAlpha:Z,onComplete:_e}):null),e.showPreview?s(RM,{clsPrefix:he,mode:P.value,color:q.value&&za(q.value),onUpdateColor:Ie=>{ce(Ie,"input")}}):null),s(xM,{clsPrefix:he,showAlpha:e.showAlpha,mode:P.value,modes:we,onUpdateMode:k,value:b.value,valueArr:ve.value,onUpdateValue:ye}),((Q=e.swatches)===null||Q===void 0?void 0:Q.length)&&s(CM,{clsPrefix:he,mode:P.value,swatches:e.swatches,onUpdateColor:Ie=>{ce(Ie,"input")}})),te?.length?s("div",{class:`${he}-color-picker-action`},te.includes("confirm")&&s(Ot,{size:"small",onClick:Ne,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.confirm}),te.includes("clear")&&s(Ot,{size:"small",onClick:Ae,disabled:!b.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.clear})):null,t.action?s("div",{class:`${he}-color-picker-action`},{default:t.action}):fe?s("div",{class:`${he}-color-picker-action`},fe.includes("undo")&&s(Ot,{size:"small",onClick:V,disabled:!je.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.undo}),fe.includes("redo")&&s(Ot,{size:"small",onClick:ze,disabled:!qe.value,theme:X.peers.Button,themeOverrides:X.peerOverrides.Button},{default:()=>l.value.redo})):null)}return{mergedClsPrefix:d,namespace:c,selfRef:n,hsla:J,rgba:q,mergedShow:m,mergedDisabled:a,isMounted:$n(),adjustedTo:Ht(e),mergedValue:b,handleTriggerClick(){h(!0)},handleClickOutside(Q){var ue;!((ue=n.value)===null||ue===void 0)&&ue.contains(Jn(Q))||h(!1)},renderPanel:Te,cssVars:u?void 0:gt,themeClass:at?.themeClass,onRender:at?.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t?.(),s("div",{class:[this.themeClass,`${e}-color-picker`],ref:"selfRef",style:this.cssVars},s(yr,null,{default:()=>[s(wr,null,{default:()=>s(SM,{clsPrefix:e,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick})}),s(sr,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===Ht.tdkey,to:this.adjustedTo},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?rn(this.renderPanel(),[[Qn,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),T0={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(Mn("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},Ku=Y({name:"ConfigProvider",alias:["App"],props:T0,setup(e){const t=Be(Un,null),n=S(()=>{const{theme:g}=e;if(g===null)return;const p=t?.mergedThemeRef.value;return g===void 0?p:p===void 0?g:Object.assign({},p,g)}),r=S(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t?.mergedThemeOverridesRef.value;{const p=t?.mergedThemeOverridesRef.value;return p===void 0?g:Di({},p,g)}}}),o=it(()=>{const{namespace:g}=e;return g===void 0?t?.mergedNamespaceRef.value:g}),i=it(()=>{const{bordered:g}=e;return g===void 0?t?.mergedBorderedRef.value:g}),a=S(()=>{const{icons:g}=e;return g===void 0?t?.mergedIconsRef.value:g}),l=S(()=>{const{componentOptions:g}=e;return g!==void 0?g:t?.mergedComponentPropsRef.value}),d=S(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:os}),c=S(()=>{var g;const{rtl:p}=e;if(p===void 0)return t?.mergedRtlRef.value;const b={};for(const y of p)b[y.name]=Af(y),(g=y.peers)===null||g===void 0||g.forEach(R=>{R.name in b||(b[R.name]=Af(R))});return b}),u=S(()=>e.breakpoints||t?.mergedBreakpointsRef.value),f=e.inlineThemeDisabled||t?.inlineThemeDisabled,v=e.preflightStyleDisabled||t?.preflightStyleDisabled,m=e.styleMountTarget||t?.styleMountTarget,h=S(()=>{const{value:g}=n,{value:p}=r,b=p&&Object.keys(p).length!==0,y=g?.name;return y?b?`${y}-${xo(JSON.stringify(r.value))}`:y:b?xo(JSON.stringify(r.value)):""});return ot(Un,{mergedThemeHashRef:h,mergedBreakpointsRef:u,mergedRtlRef:c,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:o,mergedClsPrefixRef:d,mergedLocaleRef:S(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t?.mergedLocaleRef.value:g}),mergedDateLocaleRef:S(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t?.mergedDateLocaleRef.value:g}),mergedHljsRef:S(()=>{const{hljs:g}=e;return g===void 0?t?.mergedHljsRef.value:g}),mergedKatexRef:S(()=>{const{katex:g}=e;return g===void 0?t?.mergedKatexRef.value:g}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:f||!1,preflightStyleDisabled:v||!1,styleMountTarget:m}),{mergedClsPrefix:d,mergedBordered:i,mergedNamespace:o,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t,n,r;return this.abstract?(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n):s(this.as||this.tag,{class:`${this.mergedClsPrefix||os}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),O0={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function},MM=Y({name:"Countdown",props:O0,setup(e){let t=null,n=0,r=!1;const o=B(0);Ft(()=>{o.value=e.duration});let i=-1;function a(m){return e.duration-n+i-m}function l(m){const h=Math.floor(m/36e5),g=Math.floor(m%36e5/6e4),p=Math.floor(m%6e4/1e3),b=Math.floor(m%1e3);return{hours:h,minutes:g,seconds:p,milliseconds:b}}function d(m){const{hours:h,minutes:g,seconds:p,milliseconds:b}=m,{precision:y}=e;return y===0?`${String(h).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(p).padStart(2,"0")}`:`${String(h).padStart(2,"0")}:${String(g).padStart(2,"0")}:${String(p).padStart(2,"0")}.${String(Math.floor(b/(y===1?100:y===2?10:1))).padStart(y,"0")}`}const c=()=>{var m;const{precision:h}=e,g=a(performance.now());if(g<=0){o.value=0,u(),r||(r=!0,(m=e.onFinish)===null||m===void 0||m.call(e));return}let p;switch(h){case 3:case 2:p=g%34;break;case 1:p=g%100;break;default:p=g%1e3}o.value=g,t=window.setTimeout(()=>{c()},p)};function u(){t!==null&&(window.clearTimeout(t),t=null)}It(()=>{Ft(()=>{if(e.active)i=performance.now(),c();else{const m=performance.now();i!==-1&&(n+=m-i),u()}})}),jt(()=>{u()});function f(){o.value=e.duration,n=0,i=performance.now(),e.active&&r&&c(),r=!1}return Object.assign({reset:f},{distance:o,getTimeInfo:l,getDisplayValue:d})},render(){const{render:e,precision:t,distance:n,getTimeInfo:r,getDisplayValue:o}=this;let i;switch(t){case 0:i=r(n+999),i.milliseconds=0;break;case 1:i=r(n+99),i.milliseconds=Math.floor(i.milliseconds/100)*100;break;case 2:i=r(n+9),i.milliseconds=Math.floor(i.milliseconds/10)*10;break;case 3:i=r(n)}return e?e(i):o(i)}});function IM(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const qu={name:"Popselect",common:Je,peers:{Popover:bi,InternalSelectMenu:ea},self:IM},F0="n-popselect",BM=x("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`),Yu={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},zv=In(Yu),AM=Y({name:"PopselectPanel",props:Yu,setup(e){const t=Be(F0),{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("Popselect","-pop-select",BM,qu,t.props,n),i=S(()=>Gn(e.options,Ns("value","children")));function a(v,m){const{onUpdateValue:h,"onUpdate:value":g,onChange:p}=e;h&&ie(h,v,m),g&&ie(g,v,m),p&&ie(p,v,m)}function l(v){c(v.key)}function d(v){!en(v,"action")&&!en(v,"empty")&&!en(v,"header")&&v.preventDefault()}function c(v){const{value:{getNode:m}}=i;if(e.multiple)if(Array.isArray(e.value)){const h=[],g=[];let p=!0;e.value.forEach(b=>{if(b===v){p=!1;return}const y=m(b);y&&(h.push(y.key),g.push(y.rawNode))}),p&&(h.push(v),g.push(m(v).rawNode)),a(h,g)}else{const h=m(v);h&&a([v],[h.rawNode])}else if(e.value===v&&e.cancelable)a(null,null);else{const h=m(v);h&&a(v,h.rawNode);const{"onUpdate:show":g,onUpdateShow:p}=t.props;g&&ie(g,!1),p&&ie(p,!1),t.setShow(!1)}zt(()=>{t.syncPosition()})}ct(le(e,"options"),()=>{zt(()=>{t.syncPosition()})});const u=S(()=>{const{self:{menuBoxShadow:v}}=o.value;return{"--n-menu-box-shadow":v}}),f=r?Xe("select",void 0,u,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:n,treeMate:i,handleToggle:l,handleMenuMousedown:d,cssVars:r?void 0:u,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s(tl,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,n;return((n=(t=this.$slots).header)===null||n===void 0?void 0:n.call(t))||[]},action:()=>{var t,n;return((n=(t=this.$slots).action)===null||n===void 0?void 0:n.call(t))||[]},empty:()=>{var t,n;return((n=(t=this.$slots).empty)===null||n===void 0?void 0:n.call(t))||[]}})}}),M0=Object.assign(Object.assign(Object.assign(Object.assign({},ge.props),Fo(di,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},di.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),Yu),I0=Y({name:"Popselect",props:M0,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=ge("Popselect","-popselect",void 0,qu,e,t),r=B(null);function o(){var l;(l=r.value)===null||l===void 0||l.syncPosition()}function i(l){var d;(d=r.value)===null||d===void 0||d.setShow(l)}return ot(F0,{props:e,mergedThemeRef:n,syncPosition:o,setShow:i}),Object.assign(Object.assign({},{syncPosition:o,setShow:i}),{popoverInstRef:r,mergedTheme:n})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,r,o,i,a)=>{const{$attrs:l}=this;return s(AM,Object.assign({},l,{class:[l.class,n],style:[l.style,...o]},vn(this.$props,zv),{ref:Km(r),onMouseenter:Fa([i,l.onMouseenter]),onMouseleave:Fa([a,l.onMouseleave])}),{header:()=>{var d,c;return(c=(d=this.$slots).header)===null||c===void 0?void 0:c.call(d)},action:()=>{var d,c;return(c=(d=this.$slots).action)===null||c===void 0?void 0:c.call(d)},empty:()=>{var d,c;return(c=(d=this.$slots).empty)===null||c===void 0?void 0:c.call(d)}})}};return s(xi,Object.assign({},Fo(this.$props,zv),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}});function DM(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const B0={name:"Select",common:Je,peers:{InternalSelection:Es,InternalSelectMenu:ea},self:DM},_M=z([x("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + font-weight: var(--n-font-weight); + `),x("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[Cn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),A0=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),D0=Y({name:"Select",props:A0,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:o}=Ee(e),i=ge("Select","-select",_M,B0,e,t),a=B(e.defaultValue),l=le(e,"value"),d=St(l,a),c=B(!1),u=B(""),f=Co(e,["items","options"]),v=B([]),m=B([]),h=S(()=>m.value.concat(v.value).concat(f.value)),g=S(()=>{const{filter:K}=e;if(K)return K;const{labelField:H,valueField:pe}=e;return($e,Oe)=>{if(!Oe)return!1;const ne=Oe[H];if(typeof ne=="string")return Sd($e,ne);const Se=Oe[pe];return typeof Se=="string"?Sd($e,Se):typeof Se=="number"?Sd($e,String(Se)):!1}}),p=S(()=>{if(e.remote)return f.value;{const{value:K}=h,{value:H}=u;return!H.length||!e.filterable?K:zT(K,g.value,H,e.childrenField)}}),b=S(()=>{const{valueField:K,childrenField:H}=e,pe=Ns(K,H);return Gn(p.value,pe)}),y=S(()=>$T(h.value,e.valueField,e.childrenField)),R=B(!1),w=St(le(e,"show"),R),C=B(null),P=B(null),k=B(null),{localeRef:O}=on("Select"),$=S(()=>{var K;return(K=e.placeholder)!==null&&K!==void 0?K:O.value.placeholder}),T=[],D=B(new Map),I=S(()=>{const{fallbackOption:K}=e;if(K===void 0){const{labelField:H,valueField:pe}=e;return $e=>({[H]:String($e),[pe]:$e})}return K===!1?!1:H=>Object.assign(K(H),{value:H})});function A(K){const H=e.remote,{value:pe}=D,{value:$e}=y,{value:Oe}=I,ne=[];return K.forEach(Se=>{if($e.has(Se))ne.push($e.get(Se));else if(H&&pe.has(Se))ne.push(pe.get(Se));else if(Oe){const ee=Oe(Se);ee&&ne.push(ee)}}),ne}const E=S(()=>{if(e.multiple){const{value:K}=d;return Array.isArray(K)?A(K):[]}return null}),N=S(()=>{const{value:K}=d;return!e.multiple&&!Array.isArray(K)?K===null?null:A([K])[0]||null:null}),U=ln(e),{mergedSizeRef:q,mergedDisabledRef:J,mergedStatusRef:ve}=U;function ae(K,H){const{onChange:pe,"onUpdate:value":$e,onUpdateValue:Oe}=e,{nTriggerFormChange:ne,nTriggerFormInput:Se}=U;pe&&ie(pe,K,H),Oe&&ie(Oe,K,H),$e&&ie($e,K,H),a.value=K,ne(),Se()}function W(K){const{onBlur:H}=e,{nTriggerFormBlur:pe}=U;H&&ie(H,K),pe()}function j(){const{onClear:K}=e;K&&ie(K)}function _(K){const{onFocus:H,showOnFocus:pe}=e,{nTriggerFormFocus:$e}=U;H&&ie(H,K),$e(),pe&&_e()}function L(K){const{onSearch:H}=e;H&&ie(H,K)}function Z(K){const{onScroll:H}=e;H&&ie(H,K)}function ce(){var K;const{remote:H,multiple:pe}=e;if(H){const{value:$e}=D;if(pe){const{valueField:Oe}=e;(K=E.value)===null||K===void 0||K.forEach(ne=>{$e.set(ne[Oe],ne)})}else{const Oe=N.value;Oe&&$e.set(Oe[e.valueField],Oe)}}}function ye(K){const{onUpdateShow:H,"onUpdate:show":pe}=e;H&&ie(H,K),pe&&ie(pe,K),R.value=K}function _e(){J.value||(ye(!0),R.value=!0,e.filterable&&vt())}function V(){ye(!1)}function ze(){u.value="",m.value=T}const Ae=B(!1);function Ne(){e.filterable&&(Ae.value=!0)}function je(){e.filterable&&(Ae.value=!1,w.value||ze())}function qe(){J.value||(w.value?e.filterable?vt():V():_e())}function gt(K){var H,pe;!((pe=(H=k.value)===null||H===void 0?void 0:H.selfRef)===null||pe===void 0)&&pe.contains(K.relatedTarget)||(c.value=!1,W(K),V())}function at(K){_(K),c.value=!0}function Te(){c.value=!0}function Q(K){var H;!((H=C.value)===null||H===void 0)&&H.$el.contains(K.relatedTarget)||(c.value=!1,W(K),V())}function ue(){var K;(K=C.value)===null||K===void 0||K.focus(),V()}function G(K){var H;w.value&&(!((H=C.value)===null||H===void 0)&&H.$el.contains(Jn(K))||V())}function fe(K){if(!Array.isArray(K))return[];if(I.value)return Array.from(K);{const{remote:H}=e,{value:pe}=y;if(H){const{value:$e}=D;return K.filter(Oe=>pe.has(Oe)||$e.has(Oe))}else return K.filter($e=>pe.has($e))}}function we(K){te(K.rawNode)}function te(K){if(J.value)return;const{tag:H,remote:pe,clearFilterAfterSelect:$e,valueField:Oe}=e;if(H&&!pe){const{value:ne}=m,Se=ne[0]||null;if(Se){const ee=v.value;ee.length?ee.push(Se):v.value=[Se],m.value=T}}if(pe&&D.value.set(K[Oe],K),e.multiple){const ne=fe(d.value),Se=ne.findIndex(ee=>ee===K[Oe]);if(~Se){if(ne.splice(Se,1),H&&!pe){const ee=X(K[Oe]);~ee&&(v.value.splice(ee,1),$e&&(u.value=""))}}else ne.push(K[Oe]),$e&&(u.value="");ae(ne,A(ne))}else{if(H&&!pe){const ne=X(K[Oe]);~ne?v.value=[v.value[ne]]:v.value=T}xt(),V(),ae(K[Oe],K)}}function X(K){return v.value.findIndex(pe=>pe[e.valueField]===K)}function he(K){w.value||_e();const{value:H}=K.target;u.value=H;const{tag:pe,remote:$e}=e;if(L(H),pe&&!$e){if(!H){m.value=T;return}const{onCreate:Oe}=e,ne=Oe?Oe(H):{[e.labelField]:H,[e.valueField]:H},{valueField:Se,labelField:ee}=e;f.value.some(Ce=>Ce[Se]===ne[Se]||Ce[ee]===ne[ee])||v.value.some(Ce=>Ce[Se]===ne[Se]||Ce[ee]===ne[ee])?m.value=T:m.value=[ne]}}function Ie(K){K.stopPropagation();const{multiple:H}=e;!H&&e.filterable&&V(),j(),H?ae([],[]):ae(null,null)}function me(K){!en(K,"action")&&!en(K,"empty")&&!en(K,"header")&&K.preventDefault()}function Ke(K){Z(K)}function st(K){var H,pe,$e,Oe,ne;if(!e.keyboard){K.preventDefault();return}switch(K.key){case" ":if(e.filterable)break;K.preventDefault();case"Enter":if(!(!((H=C.value)===null||H===void 0)&&H.isComposing)){if(w.value){const Se=(pe=k.value)===null||pe===void 0?void 0:pe.getPendingTmNode();Se?we(Se):e.filterable||(V(),xt())}else if(_e(),e.tag&&Ae.value){const Se=m.value[0];if(Se){const ee=Se[e.valueField],{value:Ce}=d;e.multiple&&Array.isArray(Ce)&&Ce.includes(ee)||te(Se)}}}K.preventDefault();break;case"ArrowUp":if(K.preventDefault(),e.loading)return;w.value&&(($e=k.value)===null||$e===void 0||$e.prev());break;case"ArrowDown":if(K.preventDefault(),e.loading)return;w.value?(Oe=k.value)===null||Oe===void 0||Oe.next():_e();break;case"Escape":w.value&&(ai(K),V()),(ne=C.value)===null||ne===void 0||ne.focus();break}}function xt(){var K;(K=C.value)===null||K===void 0||K.focus()}function vt(){var K;(K=C.value)===null||K===void 0||K.focusInput()}function bt(){var K;w.value&&((K=P.value)===null||K===void 0||K.syncPosition())}ce(),ct(le(e,"options"),ce);const pt={focus:()=>{var K;(K=C.value)===null||K===void 0||K.focus()},focusInput:()=>{var K;(K=C.value)===null||K===void 0||K.focusInput()},blur:()=>{var K;(K=C.value)===null||K===void 0||K.blur()},blurInput:()=>{var K;(K=C.value)===null||K===void 0||K.blurInput()}},He=S(()=>{const{self:{menuBoxShadow:K}}=i.value;return{"--n-menu-box-shadow":K}}),nt=o?Xe("select",void 0,He,e):void 0;return Object.assign(Object.assign({},pt),{mergedStatus:ve,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:b,isMounted:$n(),triggerRef:C,menuRef:k,pattern:u,uncontrolledShow:R,mergedShow:w,adjustedTo:Ht(e),uncontrolledValue:a,mergedValue:d,followerRef:P,localizedPlaceholder:$,selectedOption:N,selectedOptions:E,mergedSize:q,mergedDisabled:J,focused:c,activeWithoutMenuOpen:Ae,inlineThemeDisabled:o,onTriggerInputFocus:Ne,onTriggerInputBlur:je,handleTriggerOrMenuResize:bt,handleMenuFocus:Te,handleMenuBlur:Q,handleMenuTabOut:ue,handleTriggerClick:qe,handleToggle:we,handleDeleteOption:te,handlePatternInput:he,handleClear:Ie,handleTriggerBlur:gt,handleTriggerFocus:at,handleKeydown:st,handleMenuAfterLeave:ze,handleMenuClickOutside:G,handleMenuScroll:Ke,handleMenuKeydown:st,handleMenuMousedown:me,mergedTheme:i,cssVars:o?void 0:He,themeClass:nt?.themeClass,onRender:nt?.onRender})},render(){return s("div",{class:`${this.mergedClsPrefix}-select`},s(yr,null,{default:()=>[s(wr,null,{default:()=>s(Au,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),s(sr,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,n;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),rn(s(tl,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(n=this.menuProps)===null||n===void 0?void 0:n.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var r,o;return[(o=(r=this.$slots).empty)===null||o===void 0?void 0:o.call(r)]},header:()=>{var r,o;return[(o=(r=this.$slots).header)===null||o===void 0?void 0:o.call(r)]},action:()=>{var r,o;return[(o=(r=this.$slots).action)===null||o===void 0?void 0:o.call(r)]}}),this.displayDirective==="show"?[[lr,this.mergedShow],[Qn,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Qn,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),EM={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function NM(e){const{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:o,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:d,fontSizeTiny:c,fontSizeSmall:u,fontSizeMedium:f,heightTiny:v,heightSmall:m,heightMedium:h}=e;return Object.assign(Object.assign({},EM),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:o,itemTextColorActive:n,itemTextColorDisabled:a,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${l}`,itemBorderRadius:d,itemSizeSmall:v,itemSizeMedium:m,itemSizeLarge:h,itemFontSizeSmall:c,itemFontSizeMedium:u,itemFontSizeLarge:f,jumperFontSizeSmall:c,jumperFontSizeMedium:u,jumperFontSizeLarge:f,jumperTextColor:t,jumperTextColorDisabled:a})}const _0={name:"Pagination",common:Je,peers:{Select:B0,Input:tr,Popselect:qu},self:NM},$v=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,Tv=[M("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)],LM=x("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[x("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),x("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),z("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),x("select",` + width: var(--n-select-width); + `),z("&.transition-disabled",[x("pagination-item","transition: none!important;")]),x("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[x("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),x("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[M("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[x("base-icon",` + font-size: var(--n-button-icon-size); + `)]),ft("disabled",[M("hover",$v,Tv),z("&:hover",$v,Tv),z("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[M("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),M("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[z("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),M("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[M("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),M("disabled",` + cursor: not-allowed; + `,[x("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),M("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[x("pagination-quick-jumper",[x("input",` + margin: 0; + `)])])]);function E0(e){var t;if(!e)return 10;const{defaultPageSize:n}=e;if(n!==void 0)return n;const r=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof r=="number"?r:r?.value||10}function HM(e,t,n,r){let o=!1,i=!1,a=1,l=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:l,fastBackwardTo:a,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const d=1,c=t;let u=e,f=e;const v=(n-5)/2;f+=Math.ceil(v),f=Math.min(Math.max(f,d+n-3),c-2),u-=Math.floor(v),u=Math.max(Math.min(u,c-n+3),d+2);let m=!1,h=!1;u>d+2&&(m=!0),f=d+1&&g.push({type:"page",label:d+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===d+1});for(let p=u;p<=f;++p)g.push({type:"page",label:p,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===p});return h?(i=!0,l=f+1,g.push({type:"fast-forward",active:!1,label:void 0,options:r?Ov(f+1,c-1):null})):f===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:o,hasFastForward:i,fastBackwardTo:a,fastForwardTo:l,items:g}}function Ov(e,t){const n=[];for(let r=e;r<=t;++r)n.push({label:`${r}`,value:r});return n}const N0=Object.assign(Object.assign({},ge.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Ht.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),L0=Y({name:"Pagination",props:N0,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=ge("Pagination","-pagination",LM,_0,e,n),{localeRef:a}=on("Pagination"),l=B(null),d=B(e.defaultPage),c=B(E0(e)),u=St(le(e,"page"),d),f=St(le(e,"pageSize"),c),v=S(()=>{const{itemCount:V}=e;if(V!==void 0)return Math.max(1,Math.ceil(V/f.value));const{pageCount:ze}=e;return ze!==void 0?Math.max(ze,1):1}),m=B("");Ft(()=>{e.simple,m.value=String(u.value)});const h=B(!1),g=B(!1),p=B(!1),b=B(!1),y=()=>{e.disabled||(h.value=!0,N())},R=()=>{e.disabled||(h.value=!1,N())},w=()=>{g.value=!0,N()},C=()=>{g.value=!1,N()},P=V=>{U(V)},k=S(()=>HM(u.value,v.value,e.pageSlot,e.showQuickJumpDropdown));Ft(()=>{k.value.hasFastBackward?k.value.hasFastForward||(h.value=!1,p.value=!1):(g.value=!1,b.value=!1)});const O=S(()=>{const V=a.value.selectionSuffix;return e.pageSizes.map(ze=>typeof ze=="number"?{label:`${ze} / ${V}`,value:ze}:ze)}),$=S(()=>{var V,ze;return((ze=(V=t?.value)===null||V===void 0?void 0:V.Pagination)===null||ze===void 0?void 0:ze.inputSize)||vc(e.size)}),T=S(()=>{var V,ze;return((ze=(V=t?.value)===null||V===void 0?void 0:V.Pagination)===null||ze===void 0?void 0:ze.selectSize)||vc(e.size)}),D=S(()=>(u.value-1)*f.value),I=S(()=>{const V=u.value*f.value-1,{itemCount:ze}=e;return ze!==void 0&&V>ze-1?ze-1:V}),A=S(()=>{const{itemCount:V}=e;return V!==void 0?V:(e.pageCount||1)*f.value}),E=Bt("Pagination",o,n);function N(){zt(()=>{var V;const{value:ze}=l;ze&&(ze.classList.add("transition-disabled"),(V=l.value)===null||V===void 0||V.offsetWidth,ze.classList.remove("transition-disabled"))})}function U(V){if(V===u.value)return;const{"onUpdate:page":ze,onUpdatePage:Ae,onChange:Ne,simple:je}=e;ze&&ie(ze,V),Ae&&ie(Ae,V),Ne&&ie(Ne,V),d.value=V,je&&(m.value=String(V))}function q(V){if(V===f.value)return;const{"onUpdate:pageSize":ze,onUpdatePageSize:Ae,onPageSizeChange:Ne}=e;ze&&ie(ze,V),Ae&&ie(Ae,V),Ne&&ie(Ne,V),c.value=V,v.value{u.value,f.value,N()});const ye=S(()=>{const{size:V}=e,{self:{buttonBorder:ze,buttonBorderHover:Ae,buttonBorderPressed:Ne,buttonIconColor:je,buttonIconColorHover:qe,buttonIconColorPressed:gt,itemTextColor:at,itemTextColorHover:Te,itemTextColorPressed:Q,itemTextColorActive:ue,itemTextColorDisabled:G,itemColor:fe,itemColorHover:we,itemColorPressed:te,itemColorActive:X,itemColorActiveHover:he,itemColorDisabled:Ie,itemBorder:me,itemBorderHover:Ke,itemBorderPressed:st,itemBorderActive:xt,itemBorderDisabled:vt,itemBorderRadius:bt,jumperTextColor:pt,jumperTextColorDisabled:He,buttonColor:nt,buttonColorHover:K,buttonColorPressed:H,[be("itemPadding",V)]:pe,[be("itemMargin",V)]:$e,[be("inputWidth",V)]:Oe,[be("selectWidth",V)]:ne,[be("inputMargin",V)]:Se,[be("selectMargin",V)]:ee,[be("jumperFontSize",V)]:Ce,[be("prefixMargin",V)]:Ue,[be("suffixMargin",V)]:Ye,[be("itemSize",V)]:se,[be("buttonIconSize",V)]:Me,[be("itemFontSize",V)]:re,[`${be("itemMargin",V)}Rtl`]:ke,[`${be("inputMargin",V)}Rtl`]:De},common:{cubicBezierEaseInOut:Qe}}=i.value;return{"--n-prefix-margin":Ue,"--n-suffix-margin":Ye,"--n-item-font-size":re,"--n-select-width":ne,"--n-select-margin":ee,"--n-input-width":Oe,"--n-input-margin":Se,"--n-input-margin-rtl":De,"--n-item-size":se,"--n-item-text-color":at,"--n-item-text-color-disabled":G,"--n-item-text-color-hover":Te,"--n-item-text-color-active":ue,"--n-item-text-color-pressed":Q,"--n-item-color":fe,"--n-item-color-hover":we,"--n-item-color-disabled":Ie,"--n-item-color-active":X,"--n-item-color-active-hover":he,"--n-item-color-pressed":te,"--n-item-border":me,"--n-item-border-hover":Ke,"--n-item-border-disabled":vt,"--n-item-border-active":xt,"--n-item-border-pressed":st,"--n-item-padding":pe,"--n-item-border-radius":bt,"--n-bezier":Qe,"--n-jumper-font-size":Ce,"--n-jumper-text-color":pt,"--n-jumper-text-color-disabled":He,"--n-item-margin":$e,"--n-item-margin-rtl":ke,"--n-button-icon-size":Me,"--n-button-icon-color":je,"--n-button-icon-color-hover":qe,"--n-button-icon-color-pressed":gt,"--n-button-color-hover":K,"--n-button-color":nt,"--n-button-color-pressed":H,"--n-button-border":ze,"--n-button-border-hover":Ae,"--n-button-border-pressed":Ne}}),_e=r?Xe("pagination",S(()=>{let V="";const{size:ze}=e;return V+=ze[0],V}),ye,e):void 0;return{rtlEnabled:E,mergedClsPrefix:n,locale:a,selfRef:l,mergedPage:u,pageItems:S(()=>k.value.items),mergedItemCount:A,jumperValue:m,pageSizeOptions:O,mergedPageSize:f,inputSize:$,selectSize:T,mergedTheme:i,mergedPageCount:v,startIndex:D,endIndex:I,showFastForwardMenu:p,showFastBackwardMenu:b,fastForwardActive:h,fastBackwardActive:g,handleMenuSelect:P,handleFastForwardMouseenter:y,handleFastForwardMouseleave:R,handleFastBackwardMouseenter:w,handleFastBackwardMouseleave:C,handleJumperInput:ce,handleBackwardClick:ve,handleForwardClick:J,handlePageItemClick:Z,handleSizePickerChange:j,handleQuickJumperChange:L,cssVars:r?void 0:ye,themeClass:_e?.themeClass,onRender:_e?.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:n,cssVars:r,mergedPage:o,mergedPageCount:i,pageItems:a,showSizePicker:l,showQuickJumper:d,mergedTheme:c,locale:u,inputSize:f,selectSize:v,mergedPageSize:m,pageSizeOptions:h,jumperValue:g,simple:p,prev:b,next:y,prefix:R,suffix:w,label:C,goto:P,handleJumperInput:k,handleSizePickerChange:O,handleBackwardClick:$,handlePageItemClick:T,handleForwardClick:D,handleQuickJumperChange:I,onRender:A}=this;A?.();const E=R||e.prefix,N=w||e.suffix,U=b||e.prev,q=y||e.next,J=C||e.label;return s("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,n&&`${t}-pagination--disabled`,p&&`${t}-pagination--simple`],style:r},E?s("div",{class:`${t}-pagination-prefix`},E({page:o,pageSize:m,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(ve=>{switch(ve){case"pages":return s(qt,null,s("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,(o<=1||o>i||n)&&`${t}-pagination-item--disabled`],onClick:$},U?U({page:o,pageSize:m,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):s(lt,{clsPrefix:t},{default:()=>this.rtlEnabled?s($o,null):s(ko,null)})),p?s(qt,null,s("div",{class:`${t}-pagination-quick-jumper`},s(Sn,{value:g,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:I}))," /"," ",i):a.map((ae,W)=>{let j,_,L;const{type:Z}=ae;switch(Z){case"page":const ye=ae.label;J?j=J({type:"page",node:ye,active:ae.active}):j=ye;break;case"fast-forward":const _e=this.fastForwardActive?s(lt,{clsPrefix:t},{default:()=>this.rtlEnabled?s(Po,null):s(zo,null)}):s(lt,{clsPrefix:t},{default:()=>s(ov,null)});J?j=J({type:"fast-forward",node:_e,active:this.fastForwardActive||this.showFastForwardMenu}):j=_e,_=this.handleFastForwardMouseenter,L=this.handleFastForwardMouseleave;break;case"fast-backward":const V=this.fastBackwardActive?s(lt,{clsPrefix:t},{default:()=>this.rtlEnabled?s(zo,null):s(Po,null)}):s(lt,{clsPrefix:t},{default:()=>s(ov,null)});J?j=J({type:"fast-backward",node:V,active:this.fastBackwardActive||this.showFastBackwardMenu}):j=V,_=this.handleFastBackwardMouseenter,L=this.handleFastBackwardMouseleave;break}const ce=s("div",{key:W,class:[`${t}-pagination-item`,ae.active&&`${t}-pagination-item--active`,Z!=="page"&&(Z==="fast-backward"&&this.showFastBackwardMenu||Z==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,n&&`${t}-pagination-item--disabled`,Z==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{T(ae)},onMouseenter:_,onMouseleave:L},j);if(Z==="page"&&!ae.mayBeFastBackward&&!ae.mayBeFastForward)return ce;{const ye=ae.type==="page"?ae.mayBeFastBackward?"fast-backward":"fast-forward":ae.type;return ae.type!=="page"&&!ae.options?ce:s(I0,{to:this.to,key:ye,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:Z==="page"?!1:Z==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:_e=>{Z!=="page"&&(_e?Z==="fast-backward"?this.showFastBackwardMenu=_e:this.showFastForwardMenu=_e:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ae.type!=="page"&&ae.options?ae.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>ce})}}),s("div",{class:[`${t}-pagination-item`,!q&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:o<1||o>=i||n}],onClick:D},q?q({page:o,pageSize:m,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):s(lt,{clsPrefix:t},{default:()=>this.rtlEnabled?s(ko,null):s($o,null)})));case"size-picker":return!p&&l?s(D0,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:v,options:h,value:m,disabled:n,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:O})):null;case"quick-jumper":return!p&&d?s("div",{class:`${t}-pagination-quick-jumper`},P?P():ht(this.$slots.goto,()=>[u.goto]),s(Sn,{value:g,onUpdateValue:k,size:f,placeholder:"",disabled:n,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:I})):null;default:return null}}),N?s("div",{class:`${t}-pagination-suffix`},N({page:o,pageSize:m,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),jM={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function VM(e){const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,heightSmall:v,heightMedium:m,heightLarge:h,heightHuge:g,textColor3:p,opacityDisabled:b}=e;return Object.assign(Object.assign({},jM),{optionHeightSmall:v,optionHeightMedium:m,optionHeightLarge:h,optionHeightHuge:g,borderRadius:l,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:f,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:mt(t,{alpha:.1}),groupHeaderTextColor:p,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:b})}const Gu={name:"Dropdown",common:Je,peers:{Popover:bi},self:VM},UM={padding:"8px 14px"};function WM(e){const{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},UM),{borderRadius:t,boxShadow:n,color:dt(r,"rgba(0, 0, 0, .85)"),textColor:r})}const Ls={name:"Tooltip",common:Je,peers:{Popover:bi},self:WM},H0={name:"Ellipsis",common:Je,peers:{Tooltip:Ls}},KM={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function qM(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:o,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,heightSmall:v,heightMedium:m,heightLarge:h,lineHeight:g}=e;return Object.assign(Object.assign({},KM),{labelLineHeight:g,buttonHeightSmall:v,buttonHeightMedium:m,buttonHeightLarge:h,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${mt(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:o,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${mt(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:d})}const Xu={name:"Radio",common:Je,self:qM},YM={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function GM(e){const{cardColor:t,modalColor:n,popoverColor:r,textColor2:o,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:d,primaryColor:c,fontWeightStrong:u,borderRadius:f,lineHeight:v,fontSizeSmall:m,fontSizeMedium:h,fontSizeLarge:g,dividerColor:p,heightSmall:b,opacityDisabled:y,tableColorStriped:R}=e;return Object.assign(Object.assign({},YM),{actionDividerColor:p,lineHeight:v,borderRadius:f,fontSizeSmall:m,fontSizeMedium:h,fontSizeLarge:g,borderColor:dt(t,p),tdColorHover:dt(t,l),tdColorSorting:dt(t,l),tdColorStriped:dt(t,R),thColor:dt(t,a),thColorHover:dt(dt(t,a),l),thColorSorting:dt(dt(t,a),l),tdColor:t,tdTextColor:o,thTextColor:i,thFontWeight:u,thButtonColorHover:l,thIconColor:d,thIconColorActive:c,borderColorModal:dt(n,p),tdColorHoverModal:dt(n,l),tdColorSortingModal:dt(n,l),tdColorStripedModal:dt(n,R),thColorModal:dt(n,a),thColorHoverModal:dt(dt(n,a),l),thColorSortingModal:dt(dt(n,a),l),tdColorModal:n,borderColorPopover:dt(r,p),tdColorHoverPopover:dt(r,l),tdColorSortingPopover:dt(r,l),tdColorStripedPopover:dt(r,R),thColorPopover:dt(r,a),thColorHoverPopover:dt(dt(r,a),l),thColorSortingPopover:dt(dt(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:b,opacityLoading:y})}const XM={name:"DataTable",common:Je,peers:{Button:nr,Checkbox:na,Radio:Xu,Pagination:_0,Scrollbar:Ln,Empty:Ao,Popover:bi,Ellipsis:H0,Dropdown:Gu},self:GM},j0=Object.assign(Object.assign({},ge.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),Or="n-data-table",V0=40,U0=40;function Fv(e){if(e.type==="selection")return e.width===void 0?V0:Et(e.width);if(e.type==="expand")return e.width===void 0?U0:Et(e.width);if(!("children"in e))return typeof e.width=="string"?Et(e.width):e.width}function ZM(e){var t,n;if(e.type==="selection")return Pt((t=e.width)!==null&&t!==void 0?t:V0);if(e.type==="expand")return Pt((n=e.width)!==null&&n!==void 0?n:U0);if(!("children"in e))return Pt(e.width)}function kr(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Mv(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function JM(e){return e==="ascend"?1:e==="descend"?-1:0}function QM(e,t,n){return n!==void 0&&(e=Math.min(e,typeof n=="number"?n:Number.parseFloat(n))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function eI(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const n=ZM(e),{minWidth:r,maxWidth:o}=e;return{width:n,minWidth:Pt(r)||n,maxWidth:Pt(o)}}function tI(e,t,n){return typeof n=="function"?n(e,t):n||""}function Id(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Bd(e){return"children"in e?!1:!!e.sorter}function W0(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Iv(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function Bv(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function nI(e,t){if(e.sorter===void 0)return null;const{customNextSortOrder:n}=e;return t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:Bv(!1)}:Object.assign(Object.assign({},t),{order:(n||Bv)(t.order)})}function K0(e,t){return t.find(n=>n.columnKey===e.key&&n.order)!==void 0}function rI(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function oI(e,t,n,r){const o=e.filter(l=>l.type!=="expand"&&l.type!=="selection"&&l.allowExport!==!1),i=o.map(l=>r?r(l):l.title).join(","),a=t.map(l=>o.map(d=>n?n(l[d.key],l,d):rI(l[d.key])).join(","));return[i,...a].join(` +`)}const iI=Y({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:n}=Be(Or);return()=>{const{rowKey:r}=e;return s(so,{privateInsideTable:!0,disabled:e.disabled,indeterminate:n.value.has(r),checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),aI=x("radio",` + line-height: var(--n-label-line-height); + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + align-items: flex-start; + flex-wrap: nowrap; + font-size: var(--n-font-size); + word-break: break-word; +`,[M("checked",[F("dot",` + background-color: var(--n-color-active); + `)]),F("dot-wrapper",` + position: relative; + flex-shrink: 0; + flex-grow: 0; + width: var(--n-radio-size); + `),x("radio-input",` + position: absolute; + border: 0; + width: 0; + height: 0; + opacity: 0; + margin: 0; + `),F("dot",` + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + height: var(--n-radio-size); + width: var(--n-radio-size); + background: var(--n-color); + box-shadow: var(--n-box-shadow); + border-radius: 50%; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[z("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--n-dot-color-active); + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),M("checked",{boxShadow:"var(--n-box-shadow-active)"},[z("&::before",` + opacity: 1; + transform: scale(1); + `)])]),F("label",` + color: var(--n-text-color); + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + display: inline-block; + transition: color .3s var(--n-bezier); + `),ft("disabled",` + cursor: pointer; + `,[z("&:hover",[F("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),M("focus",[z("&:not(:active)",[F("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),M("disabled",` + cursor: not-allowed; + `,[F("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[z("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),M("checked",` + opacity: 1; + `)]),F("label",{color:"var(--n-text-color-disabled)"}),x("radio-input",` + cursor: not-allowed; + `)])]),Zu={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},q0="n-radio-group";function Y0(e){const t=Be(q0,null),n=ln(e,{mergedSize(y){const{size:R}=e;if(R!==void 0)return R;if(t){const{mergedSizeRef:{value:w}}=t;if(w!==void 0)return w}return y?y.mergedSize.value:"medium"},mergedDisabled(y){return!!(e.disabled||t?.disabledRef.value||y?.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:o}=n,i=B(null),a=B(null),l=B(e.defaultChecked),d=le(e,"checked"),c=St(d,l),u=it(()=>t?t.valueRef.value===e.value:c.value),f=it(()=>{const{name:y}=e;if(y!==void 0)return y;if(t)return t.nameRef.value}),v=B(!1);function m(){if(t){const{doUpdateValue:y}=t,{value:R}=e;ie(y,R)}else{const{onUpdateChecked:y,"onUpdate:checked":R}=e,{nTriggerFormInput:w,nTriggerFormChange:C}=n;y&&ie(y,!0),R&&ie(R,!0),w(),C(),l.value=!0}}function h(){o.value||u.value||m()}function g(){h(),i.value&&(i.value.checked=u.value)}function p(){v.value=!1}function b(){v.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Ee(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:f,mergedDisabled:o,renderSafeChecked:u,focus:v,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:p,handleRadioInputFocus:b}}const G0=Object.assign(Object.assign({},ge.props),Zu),Ju=Y({name:"Radio",props:G0,setup(e){const t=Y0(e),n=ge("Radio","-radio",aI,Xu,e,t.mergedClsPrefix),r=S(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:u},self:{boxShadow:f,boxShadowActive:v,boxShadowDisabled:m,boxShadowFocus:h,boxShadowHover:g,color:p,colorDisabled:b,colorActive:y,textColor:R,textColorDisabled:w,dotColorActive:C,dotColorDisabled:P,labelPadding:k,labelLineHeight:O,labelFontWeight:$,[be("fontSize",c)]:T,[be("radioSize",c)]:D}}=n.value;return{"--n-bezier":u,"--n-label-line-height":O,"--n-label-font-weight":$,"--n-box-shadow":f,"--n-box-shadow-active":v,"--n-box-shadow-disabled":m,"--n-box-shadow-focus":h,"--n-box-shadow-hover":g,"--n-color":p,"--n-color-active":y,"--n-color-disabled":b,"--n-dot-color-active":C,"--n-dot-color-disabled":P,"--n-font-size":T,"--n-radio-size":D,"--n-text-color":R,"--n-text-color-disabled":w,"--n-label-padding":k}}),{inlineThemeDisabled:o,mergedClsPrefixRef:i,mergedRtlRef:a}=Ee(e),l=Bt("Radio",a,i),d=o?Xe("radio",S(()=>t.mergedSize.value[0]),r,e):void 0;return Object.assign(t,{rtlEnabled:l,cssVars:o?void 0:r,themeClass:d?.themeClass,onRender:d?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:n,label:r}=this;return n?.(),s("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},s("div",{class:`${t}-radio__dot-wrapper`}," ",s("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),s("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),yt(e.default,o=>!o&&!r?null:s("div",{ref:"labelRef",class:`${t}-radio__label`},o||r)))}}),lI=Zu,sI=Y({name:"RadioButton",props:Zu,setup:Y0,render(){const{mergedClsPrefix:e}=this;return s("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},s("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),s("div",{class:`${e}-radio-button__state-border`}),yt(this.$slots.default,t=>!t&&!this.label?null:s("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),dI=x("radio-group",` + display: inline-block; + font-size: var(--n-font-size); +`,[F("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[M("checked",{backgroundColor:"var(--n-button-border-color-active)"}),M("disabled",{opacity:"var(--n-opacity-disabled)"})]),M("button-group",` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[x("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),F("splitor",{height:"var(--n-height)"})]),x("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[x("radio-input",` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),F("state-border",` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),z("&:first-child",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[F("state-border",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),z("&:last-child",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[F("state-border",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),ft("disabled",` + cursor: pointer; + `,[z("&:hover",[F("state-border",` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),ft("checked",{color:"var(--n-button-text-color-hover)"})]),M("focus",[z("&:not(:active)",[F("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),M("checked",` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),M("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function cI(e,t,n){var r;const o=[];let i=!1;for(let a=0;a{const{value:C}=n,{common:{cubicBezierEaseInOut:P},self:{buttonBorderColor:k,buttonBorderColorActive:O,buttonBorderRadius:$,buttonBoxShadow:T,buttonBoxShadowFocus:D,buttonBoxShadowHover:I,buttonColor:A,buttonColorActive:E,buttonTextColor:N,buttonTextColorActive:U,buttonTextColorHover:q,opacityDisabled:J,[be("buttonHeight",C)]:ve,[be("fontSize",C)]:ae}}=f.value;return{"--n-font-size":ae,"--n-bezier":P,"--n-button-border-color":k,"--n-button-border-color-active":O,"--n-button-border-radius":$,"--n-button-box-shadow":T,"--n-button-box-shadow-focus":D,"--n-button-box-shadow-hover":I,"--n-button-color":A,"--n-button-color-active":E,"--n-button-text-color":N,"--n-button-text-color-hover":q,"--n-button-text-color-active":U,"--n-height":ve,"--n-opacity-disabled":J}}),w=c?Xe("radio-group",S(()=>n.value[0]),R,e):void 0;return{selfElRef:t,rtlEnabled:y,mergedClsPrefix:d,mergedValue:h,handleFocusout:b,handleFocusin:p,cssVars:c?void 0:R,themeClass:w?.themeClass,onRender:w?.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:o}=this,{children:i,isButtonGroup:a}=cI(Yn(Ji(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{onFocusin:r,onFocusout:o,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),uI=Y({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:n}=Be(Or);return()=>{const{rowKey:r}=e;return s(Ju,{name:n,disabled:e.disabled,checked:t.value.has(r),onUpdateChecked:e.onUpdateChecked})}}}),J0=Object.assign(Object.assign({},di),ge.props),ol=Y({name:"Tooltip",props:J0,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=ge("Tooltip","-tooltip",void 0,Ls,e,t),r=B(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(i){r.value.setShow(i)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:S(()=>n.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return s(xi,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),Q0=x("ellipsis",{overflow:"hidden"},[ft("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),M("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),M("cursor-pointer",` + cursor: pointer; + `)]);function Ac(e){return`${e}-ellipsis--line-clamp`}function Dc(e,t){return`${e}-ellipsis--cursor-${t}`}const Qu=Object.assign(Object.assign({},ge.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Hs=Y({name:"Ellipsis",inheritAttrs:!1,props:Qu,slots:Object,setup(e,{slots:t,attrs:n}){const r=Ym(),o=ge("Ellipsis","-ellipsis",Q0,H0,e,r),i=B(null),a=B(null),l=B(null),d=B(!1),c=S(()=>{const{lineClamp:p}=e,{value:b}=d;return p!==void 0?{textOverflow:"","-webkit-line-clamp":b?"":p}:{textOverflow:b?"":"ellipsis","-webkit-line-clamp":""}});function u(){let p=!1;const{value:b}=d;if(b)return!0;const{value:y}=i;if(y){const{lineClamp:R}=e;if(m(y),R!==void 0)p=y.scrollHeight<=y.offsetHeight;else{const{value:w}=a;w&&(p=w.getBoundingClientRect().width<=y.getBoundingClientRect().width)}h(y,p)}return p}const f=S(()=>e.expandTrigger==="click"?()=>{var p;const{value:b}=d;b&&((p=l.value)===null||p===void 0||p.setShow(!1)),d.value=!b}:void 0);nu(()=>{var p;e.tooltip&&((p=l.value)===null||p===void 0||p.setShow(!1))});const v=()=>s("span",Object.assign({},Pn(n,{class:[`${r.value}-ellipsis`,e.lineClamp!==void 0?Ac(r.value):void 0,e.expandTrigger==="click"?Dc(r.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:f.value,onMouseenter:e.expandTrigger==="click"?u:void 0}),e.lineClamp?t:s("span",{ref:"triggerInnerRef"},t));function m(p){if(!p)return;const b=c.value,y=Ac(r.value);e.lineClamp!==void 0?g(p,y,"add"):g(p,y,"remove");for(const R in b)p.style[R]!==b[R]&&(p.style[R]=b[R])}function h(p,b){const y=Dc(r.value,"pointer");e.expandTrigger==="click"&&!b?g(p,y,"add"):g(p,y,"remove")}function g(p,b,y){y==="add"?p.classList.contains(b)||p.classList.add(b):p.classList.contains(b)&&p.classList.remove(b)}return{mergedTheme:o,triggerRef:i,triggerInnerRef:a,tooltipRef:l,handleClick:f,renderTrigger:v,getTooltipDisabled:u}},render(){var e;const{tooltip:t,renderTrigger:n,$slots:r}=this;if(t){const{mergedTheme:o}=this;return s(ol,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip}),{trigger:n,default:(e=r.tooltip)!==null&&e!==void 0?e:r.default})}else return n()}}),ex=Y({name:"PerformantEllipsis",props:Qu,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){const r=B(!1),o=Ym();return ur("-ellipsis",Q0,o),{mouseEntered:r,renderTrigger:()=>{const{lineClamp:a}=e,l=o.value;return s("span",Object.assign({},Pn(t,{class:[`${l}-ellipsis`,a!==void 0?Ac(l):void 0,e.expandTrigger==="click"?Dc(l,"pointer"):void 0],style:a===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":a}}),{onMouseenter:()=>{r.value=!0}}),a?n:s("span",null,n))}}},render(){return this.mouseEntered?s(Hs,Pn({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),fI=Y({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:n,row:r,renderCell:o}=this;let i;const{render:a,key:l,ellipsis:d}=n;if(a&&!t?i=a(r,this.index):t?i=(e=r[l])===null||e===void 0?void 0:e.value:i=o?o(La(r,l),r,n):La(r,l),d)if(typeof d=="object"){const{mergedTheme:c}=this;return n.ellipsisComponent==="performant-ellipsis"?s(ex,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):s(Hs,Object.assign({},d,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return s("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),Av=Y({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return s("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},s(Wr,null,{default:()=>this.loading?s(Tr,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):s(lt,{clsPrefix:e,key:"base-icon"},{default:()=>s(gi,null)})}))}}),hI=Y({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=Bt("DataTable",n,t),{mergedClsPrefixRef:o,mergedThemeRef:i,localeRef:a}=Be(Or),l=B(e.value),d=S(()=>{const{value:h}=l;return Array.isArray(h)?h:null}),c=S(()=>{const{value:h}=l;return Id(e.column)?Array.isArray(h)&&h.length&&h[0]||null:Array.isArray(h)?null:h});function u(h){e.onChange(h)}function f(h){e.multiple&&Array.isArray(h)?l.value=h:Id(e.column)&&!Array.isArray(h)?l.value=[h]:l.value=h}function v(){u(l.value),e.onConfirm()}function m(){e.multiple||Id(e.column)?u([]):u(null),e.onClear()}return{mergedClsPrefix:o,rtlEnabled:r,mergedTheme:i,locale:a,checkboxGroupValue:d,radioGroupValue:c,handleChange:f,handleConfirmClick:v,handleClearClick:m}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:n}=this;return s("div",{class:[`${n}-data-table-filter-menu`,this.rtlEnabled&&`${n}-data-table-filter-menu--rtl`]},s(Zt,null,{default:()=>{const{checkboxGroupValue:r,handleChange:o}=this;return this.multiple?s(p0,{value:r,class:`${n}-data-table-filter-menu__group`,onUpdateValue:o},{default:()=>this.options.map(i=>s(so,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):s(Z0,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>s(Ju,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),s("div",{class:`${n}-data-table-filter-menu__action`},s(Ot,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),s(Ot,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),vI=Y({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:n}=this;return e({active:t,show:n})}});function gI(e,t,n){const r=Object.assign({},e);return r[t]=n,r}const mI=Y({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Ee(),{mergedThemeRef:n,mergedClsPrefixRef:r,mergedFilterStateRef:o,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:a,doUpdatePage:l,doUpdateFilters:d,filterIconPopoverPropsRef:c}=Be(Or),u=B(!1),f=o,v=S(()=>e.column.filterMultiple!==!1),m=S(()=>{const R=f.value[e.column.key];if(R===void 0){const{value:w}=v;return w?[]:null}return R}),h=S(()=>{const{value:R}=m;return Array.isArray(R)?R.length>0:R!==null}),g=S(()=>{var R,w;return((w=(R=t?.value)===null||R===void 0?void 0:R.DataTable)===null||w===void 0?void 0:w.renderFilter)||e.column.renderFilter});function p(R){const w=gI(f.value,e.column.key,R);d(w,e.column),a.value==="first"&&l(1)}function b(){u.value=!1}function y(){u.value=!1}return{mergedTheme:n,mergedClsPrefix:r,active:h,showPopover:u,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:v,mergedFilterValue:m,filterMenuCssVars:i,handleFilterChange:p,handleFilterMenuConfirm:y,handleFilterMenuCancel:b}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:n,filterIconPopoverProps:r}=this;return s(xi,Object.assign({show:this.showPopover,onUpdateShow:o=>this.showPopover=o,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},r,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:o}=this;if(o)return s(vI,{"data-data-table-filter":!0,render:o,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return s("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):s(lt,{clsPrefix:t},{default:()=>s(D3,null)}))},default:()=>{const{renderFilterMenu:o}=this.column;return o?o({hide:n}):s(hI,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),pI=Y({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=Be(Or),n=B(!1);let r=0;function o(d){return d.clientX}function i(d){var c;d.preventDefault();const u=n.value;r=o(d),n.value=!0,u||(Ct("mousemove",window,a),Ct("mouseup",window,l),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function a(d){var c;(c=e.onResize)===null||c===void 0||c.call(e,o(d)-r)}function l(){var d;n.value=!1,(d=e.onResizeEnd)===null||d===void 0||d.call(e),wt("mousemove",window,a),wt("mouseup",window,l)}return jt(()=>{wt("mousemove",window,a),wt("mouseup",window,l)}),{mergedClsPrefix:t,active:n,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return s("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),bI=Y({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),xI=Y({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Ee(),{mergedSortStateRef:n,mergedClsPrefixRef:r}=Be(Or),o=S(()=>n.value.find(d=>d.columnKey===e.column.key)),i=S(()=>o.value!==void 0),a=S(()=>{const{value:d}=o;return d&&i.value?d.order:!1}),l=S(()=>{var d,c;return((c=(d=t?.value)===null||d===void 0?void 0:d.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:r,active:i,mergedSortOrder:a,mergedRenderSorter:l}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:n}=this,{renderSorterIcon:r}=this.column;return e?s(bI,{render:e,order:t}):s("span",{class:[`${n}-data-table-sorter`,t==="ascend"&&`${n}-data-table-sorter--asc`,t==="descend"&&`${n}-data-table-sorter--desc`]},r?r({order:t}):s(lt,{clsPrefix:n},{default:()=>s(Kp,null)}))}}),ef="n-dropdown-menu",js="n-dropdown",Dv="n-dropdown-option",tx=Y({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return s("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),yI=Y({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Be(ef),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Be(js);return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:l}=this.tmNode,d=s("div",Object.assign({class:`${t}-dropdown-option`},o?.(l)),s("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},s("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Wt(l.icon)),s("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(l):Wt((e=l.title)!==null&&e!==void 0?e:l[this.labelField])),s("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:d,option:l}):d}});function wI(e){const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}}const CI={common:Je,self:wI},SI=x("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[M("color-transition",{transition:"color .3s var(--n-bezier)"}),M("depth",{color:"var(--n-color)"},[z("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),z("svg",{height:"1em",width:"1em"})]),nx=Object.assign(Object.assign({},ge.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),Ia=Y({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:nx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Icon","-icon",SI,CI,e,t),o=S(()=>{const{depth:a}=e,{common:{cubicBezierEaseInOut:l},self:d}=r.value;if(a!==void 0){const{color:c,[`opacity${a}Depth`]:u}=d;return{"--n-bezier":l,"--n-color":c,"--n-opacity":u}}return{"--n-bezier":l,"--n-color":"","--n-opacity":""}}),i=n?Xe("icon",S(()=>`${e.depth||"d"}`),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:S(()=>{const{size:a,color:l}=e;return{fontSize:Pt(a),color:l}}),cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return!((e=t?.$options)===null||e===void 0)&&e._n_icon__&&Mn("icon","don't wrap `n-icon` inside `n-icon`"),i?.(),s("i",Pn(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),o?s(o):this.$slots)}});function _c(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function RI(e){return e.type==="group"}function rx(e){return e.type==="divider"}function kI(e){return e.type==="render"}const ox=Y({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Be(js),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:l,mergedShowRef:d,renderLabelRef:c,renderIconRef:u,labelFieldRef:f,childrenFieldRef:v,renderOptionRef:m,nodePropsRef:h,menuPropsRef:g}=t,p=Be(Dv,null),b=Be(ef),y=Be(Zi),R=S(()=>e.tmNode.rawNode),w=S(()=>{const{value:q}=v;return _c(e.tmNode.rawNode,q)}),C=S(()=>{const{disabled:q}=e.tmNode;return q}),P=S(()=>{if(!w.value)return!1;const{key:q,disabled:J}=e.tmNode;if(J)return!1;const{value:ve}=n,{value:ae}=r,{value:W}=o,{value:j}=i;return ve!==null?j.includes(q):ae!==null?j.includes(q)&&j[j.length-1]!==q:W!==null?j.includes(q):!1}),k=S(()=>r.value===null&&!l.value),O=nS(P,300,k),$=S(()=>!!p?.enteringSubmenuRef.value),T=B(!1);ot(Dv,{enteringSubmenuRef:T});function D(){T.value=!0}function I(){T.value=!1}function A(){const{parentKey:q,tmNode:J}=e;J.disabled||d.value&&(o.value=q,r.value=null,n.value=J.key)}function E(){const{tmNode:q}=e;q.disabled||d.value&&n.value!==q.key&&A()}function N(q){if(e.tmNode.disabled||!d.value)return;const{relatedTarget:J}=q;J&&!en({target:J},"dropdownOption")&&!en({target:J},"scrollbarRail")&&(n.value=null)}function U(){const{value:q}=w,{tmNode:J}=e;d.value&&!q&&!J.disabled&&(t.doSelect(J.key,J.rawNode),t.doUpdateShow(!1))}return{labelField:f,renderLabel:c,renderIcon:u,siblingHasIcon:b.showIconRef,siblingHasSubmenu:b.hasSubmenuRef,menuProps:g,popoverBody:y,animated:l,mergedShowSubmenu:S(()=>O.value&&!$.value),rawNode:R,hasSubmenu:w,pending:it(()=>{const{value:q}=i,{key:J}=e.tmNode;return q.includes(J)}),childActive:it(()=>{const{value:q}=a,{key:J}=e.tmNode,ve=q.findIndex(ae=>J===ae);return ve===-1?!1:ve{const{value:q}=a,{key:J}=e.tmNode,ve=q.findIndex(ae=>J===ae);return ve===-1?!1:ve===q.length-1}),mergedDisabled:C,renderOption:m,nodeProps:h,handleClick:U,handleMouseMove:E,handleMouseEnter:A,handleMouseLeave:N,handleSubmenuBeforeEnter:D,handleSubmenuAfterEnter:I}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:l,renderLabel:d,renderIcon:c,renderOption:u,nodeProps:f,props:v,scrollable:m}=this;let h=null;if(o){const y=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,r,r.children);h=s(ix,Object.assign({},y,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},p=f?.(r),b=s("div",Object.assign({class:[`${i}-dropdown-option`,p?.class],"data-dropdown-option":!0},p),s("div",Pn(g,v),[s("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Wt(r.icon)]),s("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},d?d(r):Wt((t=r[this.labelField])!==null&&t!==void 0?t:r.title)),s("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,l&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?s(Ia,null,{default:()=>s(gi,null)}):null)]),this.hasSubmenu?s(yr,null,{default:()=>[s(wr,null,{default:()=>s("div",{class:`${i}-dropdown-offset-container`},s(sr,{show:this.mergedShowSubmenu,placement:this.placement,to:m&&this.popoverBody||void 0,teleportDisabled:!m},{default:()=>s("div",{class:`${i}-dropdown-menu-wrapper`},n?s(_t,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return u?u({node:b,option:r}):b}}),PI=Y({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return s(qt,null,s(yI,{clsPrefix:n,tmNode:e,key:e.key}),r?.map(o=>{const{rawNode:i}=o;return i.show===!1?null:rx(i)?s(tx,{clsPrefix:n,key:o.key}):o.isGroup?(Mn("dropdown","`group` node is not allowed to be put in `group` node."),null):s(ox,{clsPrefix:n,tmNode:o,parentKey:t,key:o.key})}))}}),zI=Y({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return s("div",t,[e?.()])}}),ix=Y({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Be(js);ot(ef,{showIconRef:S(()=>{const o=t.value;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:d})=>o?o(d):d.icon);const{rawNode:l}=i;return o?o(l):l.icon})}),hasSubmenuRef:S(()=>{const{value:o}=n;return e.tmNodes.some(i=>{var a;if(i.isGroup)return(a=i.children)===null||a===void 0?void 0:a.some(({rawNode:d})=>_c(d,o));const{rawNode:l}=i;return _c(l,o)})})});const r=B(null);return ot(Ga,null),ot(Ya,null),ot(Zi,r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map(o=>{const{rawNode:i}=o;return i.show===!1?null:kI(i)?s(zI,{tmNode:o,key:o.key}):rx(i)?s(tx,{clsPrefix:t,key:o.key}):RI(i)?s(PI,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key}):s(ox,{clsPrefix:t,tmNode:o,parentKey:e,key:o.key,props:i.props,scrollable:n})});return s("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?s(Ui,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?ab({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),$I=x("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[Cn(),x("dropdown-option",` + position: relative; + `,[z("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[z("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),x("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[z("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),ft("disabled",[M("pending",` + color: var(--n-option-text-color-hover); + `,[F("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),z("&::before","background-color: var(--n-option-color-hover);")]),M("active",` + color: var(--n-option-text-color-active); + `,[F("prefix, suffix",` + color: var(--n-option-text-color-active); + `),z("&::before","background-color: var(--n-option-color-active);")]),M("child-active",` + color: var(--n-option-text-color-child-active); + `,[F("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),M("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),M("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[F("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[M("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),F("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[M("show-icon",` + width: var(--n-option-icon-prefix-width); + `),x("icon",` + font-size: var(--n-option-icon-size); + `)]),F("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),F("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[M("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),x("icon",` + font-size: var(--n-option-icon-size); + `)]),x("dropdown-menu","pointer-events: all;")]),x("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),x("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),x("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),z(">",[x("scrollbar",` + height: inherit; + max-height: inherit; + `)]),ft("scrollable",` + padding: var(--n-padding); + `),M("scrollable",[F("content",` + padding: var(--n-padding); + `)])]),TI={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},OI=Object.keys(di),ax=Object.assign(Object.assign(Object.assign({},di),TI),ge.props),tf=Y({name:"Dropdown",inheritAttrs:!1,props:ax,setup(e){const t=B(!1),n=St(le(e,"show"),t),r=S(()=>{const{keyField:I,childrenField:A}=e;return Gn(e.options,{getKey(E){return E[I]},getDisabled(E){return E.disabled===!0},getIgnored(E){return E.type==="divider"||E.type==="render"},getChildren(E){return E[A]}})}),o=S(()=>r.value.treeNodes),i=B(null),a=B(null),l=B(null),d=S(()=>{var I,A,E;return(E=(A=(I=i.value)!==null&&I!==void 0?I:a.value)!==null&&A!==void 0?A:l.value)!==null&&E!==void 0?E:null}),c=S(()=>r.value.getPath(d.value).keyPath),u=S(()=>r.value.getPath(e.value).keyPath),f=it(()=>e.keyboard&&n.value);fu({keydown:{ArrowUp:{prevent:!0,handler:C},ArrowRight:{prevent:!0,handler:w},ArrowDown:{prevent:!0,handler:P},ArrowLeft:{prevent:!0,handler:R},Enter:{prevent:!0,handler:k},Escape:y}},f);const{mergedClsPrefixRef:v,inlineThemeDisabled:m}=Ee(e),h=ge("Dropdown","-dropdown",$I,Gu,e,v);ot(js,{labelFieldRef:le(e,"labelField"),childrenFieldRef:le(e,"childrenField"),renderLabelRef:le(e,"renderLabel"),renderIconRef:le(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:l,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:le(e,"animated"),mergedShowRef:n,nodePropsRef:le(e,"nodeProps"),renderOptionRef:le(e,"renderOption"),menuPropsRef:le(e,"menuProps"),doSelect:g,doUpdateShow:p}),ct(n,I=>{!e.animated&&!I&&b()});function g(I,A){const{onSelect:E}=e;E&&ie(E,I,A)}function p(I){const{"onUpdate:show":A,onUpdateShow:E}=e;A&&ie(A,I),E&&ie(E,I),t.value=I}function b(){i.value=null,a.value=null,l.value=null}function y(){p(!1)}function R(){$("left")}function w(){$("right")}function C(){$("up")}function P(){$("down")}function k(){const I=O();I?.isLeaf&&n.value&&(g(I.key,I.rawNode),p(!1))}function O(){var I;const{value:A}=r,{value:E}=d;return!A||E===null?null:(I=A.getNode(E))!==null&&I!==void 0?I:null}function $(I){const{value:A}=d,{value:{getFirstAvailableNode:E}}=r;let N=null;if(A===null){const U=E();U!==null&&(N=U.key)}else{const U=O();if(U){let q;switch(I){case"down":q=U.getNext();break;case"up":q=U.getPrev();break;case"right":q=U.getChild();break;case"left":q=U.getParent();break}q&&(N=q.key)}}N!==null&&(i.value=null,a.value=N)}const T=S(()=>{const{size:I,inverted:A}=e,{common:{cubicBezierEaseInOut:E},self:N}=h.value,{padding:U,dividerColor:q,borderRadius:J,optionOpacityDisabled:ve,[be("optionIconSuffixWidth",I)]:ae,[be("optionSuffixWidth",I)]:W,[be("optionIconPrefixWidth",I)]:j,[be("optionPrefixWidth",I)]:_,[be("fontSize",I)]:L,[be("optionHeight",I)]:Z,[be("optionIconSize",I)]:ce}=N,ye={"--n-bezier":E,"--n-font-size":L,"--n-padding":U,"--n-border-radius":J,"--n-option-height":Z,"--n-option-prefix-width":_,"--n-option-icon-prefix-width":j,"--n-option-suffix-width":W,"--n-option-icon-suffix-width":ae,"--n-option-icon-size":ce,"--n-divider-color":q,"--n-option-opacity-disabled":ve};return A?(ye["--n-color"]=N.colorInverted,ye["--n-option-color-hover"]=N.optionColorHoverInverted,ye["--n-option-color-active"]=N.optionColorActiveInverted,ye["--n-option-text-color"]=N.optionTextColorInverted,ye["--n-option-text-color-hover"]=N.optionTextColorHoverInverted,ye["--n-option-text-color-active"]=N.optionTextColorActiveInverted,ye["--n-option-text-color-child-active"]=N.optionTextColorChildActiveInverted,ye["--n-prefix-color"]=N.prefixColorInverted,ye["--n-suffix-color"]=N.suffixColorInverted,ye["--n-group-header-text-color"]=N.groupHeaderTextColorInverted):(ye["--n-color"]=N.color,ye["--n-option-color-hover"]=N.optionColorHover,ye["--n-option-color-active"]=N.optionColorActive,ye["--n-option-text-color"]=N.optionTextColor,ye["--n-option-text-color-hover"]=N.optionTextColorHover,ye["--n-option-text-color-active"]=N.optionTextColorActive,ye["--n-option-text-color-child-active"]=N.optionTextColorChildActive,ye["--n-prefix-color"]=N.prefixColor,ye["--n-suffix-color"]=N.suffixColor,ye["--n-group-header-text-color"]=N.groupHeaderTextColor),ye}),D=m?Xe("dropdown",S(()=>`${e.size[0]}${e.inverted?"i":""}`),T,e):void 0;return{mergedClsPrefix:v,mergedTheme:h,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{e.animated&&b()},doUpdateShow:p,cssVars:m?void 0:T,themeClass:D?.themeClass,onRender:D?.onRender}},render(){const e=(r,o,i,a,l)=>{var d;const{mergedClsPrefix:c,menuProps:u}=this;(d=this.onRender)===null||d===void 0||d.call(this);const f=u?.(void 0,this.tmNodes.map(m=>m.rawNode))||{},v={ref:Km(o),class:[r,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:a,onMouseleave:l};return s(ix,Pn(this.$attrs,v,f))},{mergedTheme:t}=this,n={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return s(xi,Object.assign({},vn(this.$props,OI),n),{trigger:()=>{var r,o;return(o=(r=this.$slots).default)===null||o===void 0?void 0:o.call(r)}})}}),lx="_n_all__",sx="_n_none__";function FI(e,t,n,r){return e?o=>{for(const i of e)switch(o){case lx:n(!0);return;case sx:r(!0);return;default:if(typeof i=="object"&&i.key===o){i.onSelect(t.value);return}}}:()=>{}}function MI(e,t){return e?e.map(n=>{switch(n){case"all":return{label:t.checkTableAll,key:lx};case"none":return{label:t.uncheckTableAll,key:sx};default:return n}}):[]}const II=Y({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:n,checkOptionsRef:r,rawPaginatedDataRef:o,doCheckAll:i,doUncheckAll:a}=Be(Or),l=S(()=>FI(r.value,o,i,a)),d=S(()=>MI(r.value,n.value));return()=>{var c,u,f,v;const{clsPrefix:m}=e;return s(tf,{theme:(u=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||u===void 0?void 0:u.Dropdown,themeOverrides:(v=(f=t.themeOverrides)===null||f===void 0?void 0:f.peers)===null||v===void 0?void 0:v.Dropdown,options:d.value,onSelect:l.value},{default:()=>s(lt,{clsPrefix:m,class:`${m}-data-table-check-extra`},{default:()=>s(qp,null)})})}}});function Ad(e){return typeof e.title=="function"?e.title(e):e.title}const BI=Y({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:n,width:r}=this;return s("table",{style:{tableLayout:"fixed",width:r},class:`${e}-data-table-table`},s("colgroup",null,n.map(o=>s("col",{key:o.key,style:o.style}))),s("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),dx=Y({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:r,mergedCurrentPageRef:o,allRowsCheckedRef:i,someRowsCheckedRef:a,rowsRef:l,colsRef:d,mergedThemeRef:c,checkOptionsRef:u,mergedSortStateRef:f,componentId:v,mergedTableLayoutRef:m,headerCheckboxDisabledRef:h,virtualScrollHeaderRef:g,headerHeightRef:p,onUnstableColumnResize:b,doUpdateResizableWidth:y,handleTableHeaderScroll:R,deriveNextSorter:w,doUncheckAll:C,doCheckAll:P}=Be(Or),k=B(),O=B({});function $(N){const U=O.value[N];return U?.getBoundingClientRect().width}function T(){i.value?C():P()}function D(N,U){if(en(N,"dataTableFilter")||en(N,"dataTableResizable")||!Bd(U))return;const q=f.value.find(ve=>ve.columnKey===U.key)||null,J=nI(U,q);w(J)}const I=new Map;function A(N){I.set(N.key,$(N.key))}function E(N,U){const q=I.get(N.key);if(q===void 0)return;const J=q+U,ve=QM(J,N.minWidth,N.maxWidth);b(J,ve,N,$),y(N,ve)}return{cellElsRef:O,componentId:v,mergedSortState:f,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:d,mergedTheme:c,checkOptions:u,mergedTableLayout:m,headerCheckboxDisabled:h,headerHeight:p,virtualScrollHeader:g,virtualListRef:k,handleCheckboxUpdateChecked:T,handleColHeaderClick:D,handleTableHeaderScroll:R,handleColumnResizeStart:A,handleColumnResize:E}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:n,fixedColumnRightMap:r,currentPage:o,allRowsChecked:i,someRowsChecked:a,rows:l,cols:d,mergedTheme:c,checkOptions:u,componentId:f,discrete:v,mergedTableLayout:m,headerCheckboxDisabled:h,mergedSortState:g,virtualScrollHeader:p,handleColHeaderClick:b,handleCheckboxUpdateChecked:y,handleColumnResizeStart:R,handleColumnResize:w}=this,C=($,T,D)=>$.map(({column:I,colIndex:A,colSpan:E,rowSpan:N,isLast:U})=>{var q,J;const ve=kr(I),{ellipsis:ae}=I,W=()=>I.type==="selection"?I.multiple!==!1?s(qt,null,s(so,{key:o,privateInsideTable:!0,checked:i,indeterminate:a,disabled:h,onUpdateChecked:y}),u?s(II,{clsPrefix:t}):null):null:s(qt,null,s("div",{class:`${t}-data-table-th__title-wrapper`},s("div",{class:`${t}-data-table-th__title`},ae===!0||ae&&!ae.tooltip?s("div",{class:`${t}-data-table-th__ellipsis`},Ad(I)):ae&&typeof ae=="object"?s(Hs,Object.assign({},ae,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Ad(I)}):Ad(I)),Bd(I)?s(xI,{column:I}):null),Iv(I)?s(mI,{column:I,options:I.filterOptions}):null,W0(I)?s(pI,{onResizeStart:()=>{R(I)},onResize:Z=>{w(I,Z)}}):null),j=ve in n,_=ve in r,L=T&&!I.fixed?"div":"th";return s(L,{ref:Z=>e[ve]=Z,key:ve,style:[T&&!I.fixed?{position:"absolute",left:Vt(T(A)),top:0,bottom:0}:{left:Vt((q=n[ve])===null||q===void 0?void 0:q.start),right:Vt((J=r[ve])===null||J===void 0?void 0:J.start)},{width:Vt(I.width),textAlign:I.titleAlign||I.align,height:D}],colspan:E,rowspan:N,"data-col-key":ve,class:[`${t}-data-table-th`,(j||_)&&`${t}-data-table-th--fixed-${j?"left":"right"}`,{[`${t}-data-table-th--sorting`]:K0(I,g),[`${t}-data-table-th--filterable`]:Iv(I),[`${t}-data-table-th--sortable`]:Bd(I),[`${t}-data-table-th--selection`]:I.type==="selection",[`${t}-data-table-th--last`]:U},I.className],onClick:I.type!=="selection"&&I.type!=="expand"&&!("children"in I)?Z=>{b(Z,I)}:void 0},W())});if(p){const{headerHeight:$}=this;let T=0,D=0;return d.forEach(I=>{I.column.fixed==="left"?T++:I.column.fixed==="right"&&D++}),s($r,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:Vt($)},onScroll:this.handleTableHeaderScroll,columns:d,itemSize:$,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:BI,visibleItemsProps:{clsPrefix:t,id:f,cols:d,width:Pt(this.scrollX)},renderItemWithCols:({startColIndex:I,endColIndex:A,getLeft:E})=>{const N=d.map((q,J)=>({column:q.column,isLast:J===d.length-1,colIndex:q.index,colSpan:1,rowSpan:1})).filter(({column:q},J)=>!!(I<=J&&J<=A||q.fixed)),U=C(N,E,Vt($));return U.splice(T,0,s("th",{colspan:d.length-T-D,style:{pointerEvents:"none",visibility:"hidden",height:0}})),s("tr",{style:{position:"relative"}},U)}},{default:({renderedItemWithCols:I})=>I})}const P=s("thead",{class:`${t}-data-table-thead`,"data-n-id":f},l.map($=>s("tr",{class:`${t}-data-table-tr`},C($,null,void 0))));if(!v)return P;const{handleTableHeaderScroll:k,scrollX:O}=this;return s("div",{class:`${t}-data-table-base-table-header`,onScroll:k},s("table",{class:`${t}-data-table-table`,style:{minWidth:Pt(O),tableLayout:m}},s("colgroup",null,d.map($=>s("col",{key:$.key,style:$.style}))),P))}});function AI(e,t){const n=[];function r(o,i){o.forEach(a=>{a.children&&t.has(a.key)?(n.push({tmNode:a,striped:!1,key:a.key,index:i}),r(a.children,i)):n.push({key:a.key,tmNode:a,striped:!1,index:i})})}return e.forEach(o=>{n.push(o);const{children:i}=o.tmNode;i&&t.has(o.key)&&r(i,o.index)}),n}const DI=Y({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:n,onMouseenter:r,onMouseleave:o}=this;return s("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:r,onMouseleave:o},s("colgroup",null,n.map(i=>s("col",{key:i.key,style:i.style}))),s("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),_I=Y({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:n,mergedExpandedRowKeysRef:r,mergedClsPrefixRef:o,mergedThemeRef:i,scrollXRef:a,colsRef:l,paginatedDataRef:d,rawPaginatedDataRef:c,fixedColumnLeftMapRef:u,fixedColumnRightMapRef:f,mergedCurrentPageRef:v,rowClassNameRef:m,leftActiveFixedColKeyRef:h,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:p,rightActiveFixedChildrenColKeysRef:b,renderExpandRef:y,hoverKeyRef:R,summaryRef:w,mergedSortStateRef:C,virtualScrollRef:P,virtualScrollXRef:k,heightForRowRef:O,minRowHeightRef:$,componentId:T,mergedTableLayoutRef:D,childTriggerColIndexRef:I,indentRef:A,rowPropsRef:E,maxHeightRef:N,stripedRef:U,loadingRef:q,onLoadRef:J,loadingKeySetRef:ve,expandableRef:ae,stickyExpandedRowsRef:W,renderExpandIconRef:j,summaryPlacementRef:_,treeMateRef:L,scrollbarPropsRef:Z,setHeaderScrollLeft:ce,doUpdateExpandedRowKeys:ye,handleTableBodyScroll:_e,doCheck:V,doUncheck:ze,renderCell:Ae}=Be(Or),Ne=Be(Un),je=B(null),qe=B(null),gt=B(null),at=it(()=>d.value.length===0),Te=it(()=>e.showHeader||!at.value),Q=it(()=>e.showHeader||at.value);let ue="";const G=S(()=>new Set(r.value));function fe(He){var nt;return(nt=L.value.getNode(He))===null||nt===void 0?void 0:nt.rawNode}function we(He,nt,K){const H=fe(He.key);if(!H){Mn("data-table",`fail to get row data with key ${He.key}`);return}if(K){const pe=d.value.findIndex($e=>$e.key===ue);if(pe!==-1){const $e=d.value.findIndex(ee=>ee.key===He.key),Oe=Math.min(pe,$e),ne=Math.max(pe,$e),Se=[];d.value.slice(Oe,ne+1).forEach(ee=>{ee.disabled||Se.push(ee.key)}),nt?V(Se,!1,H):ze(Se,H),ue=He.key;return}}nt?V(He.key,!1,H):ze(He.key,H),ue=He.key}function te(He){const nt=fe(He.key);if(!nt){Mn("data-table",`fail to get row data with key ${He.key}`);return}V(He.key,!0,nt)}function X(){if(!Te.value){const{value:nt}=gt;return nt||null}if(P.value)return me();const{value:He}=je;return He?He.containerRef:null}function he(He,nt){var K;if(ve.value.has(He))return;const{value:H}=r,pe=H.indexOf(He),$e=Array.from(H);~pe?($e.splice(pe,1),ye($e)):nt&&!nt.isLeaf&&!nt.shallowLoaded?(ve.value.add(He),(K=J.value)===null||K===void 0||K.call(J,nt.rawNode).then(()=>{const{value:Oe}=r,ne=Array.from(Oe);~ne.indexOf(He)||ne.push(He),ye(ne)}).finally(()=>{ve.value.delete(He)})):($e.push(He),ye($e))}function Ie(){R.value=null}function me(){const{value:He}=qe;return He?.listElRef||null}function Ke(){const{value:He}=qe;return He?.itemsElRef||null}function st(He){var nt;_e(He),(nt=je.value)===null||nt===void 0||nt.sync()}function xt(He){var nt;const{onResize:K}=e;K&&K(He),(nt=je.value)===null||nt===void 0||nt.sync()}const vt={getScrollContainer:X,scrollTo(He,nt){var K,H;P.value?(K=qe.value)===null||K===void 0||K.scrollTo(He,nt):(H=je.value)===null||H===void 0||H.scrollTo(He,nt)}},bt=z([({props:He})=>{const nt=H=>H===null?null:z(`[data-n-id="${He.componentId}"] [data-col-key="${H}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),K=H=>H===null?null:z(`[data-n-id="${He.componentId}"] [data-col-key="${H}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return z([nt(He.leftActiveFixedColKey),K(He.rightActiveFixedColKey),He.leftActiveFixedChildrenColKeys.map(H=>nt(H)),He.rightActiveFixedChildrenColKeys.map(H=>K(H))])}]);let pt=!1;return Ft(()=>{const{value:He}=h,{value:nt}=g,{value:K}=p,{value:H}=b;if(!pt&&He===null&&K===null)return;const pe={leftActiveFixedColKey:He,leftActiveFixedChildrenColKeys:nt,rightActiveFixedColKey:K,rightActiveFixedChildrenColKeys:H,componentId:T};bt.mount({id:`n-${T}`,force:!0,props:pe,anchorMetaName:ji,parent:Ne?.styleMountTarget}),pt=!0}),ks(()=>{bt.unmount({id:`n-${T}`,parent:Ne?.styleMountTarget})}),Object.assign({bodyWidth:n,summaryPlacement:_,dataTableSlots:t,componentId:T,scrollbarInstRef:je,virtualListRef:qe,emptyElRef:gt,summary:w,mergedClsPrefix:o,mergedTheme:i,scrollX:a,cols:l,loading:q,bodyShowHeaderOnly:Q,shouldDisplaySomeTablePart:Te,empty:at,paginatedDataAndInfo:S(()=>{const{value:He}=U;let nt=!1;return{data:d.value.map(He?(H,pe)=>(H.isLeaf||(nt=!0),{tmNode:H,key:H.key,striped:pe%2===1,index:pe}):(H,pe)=>(H.isLeaf||(nt=!0),{tmNode:H,key:H.key,striped:!1,index:pe})),hasChildren:nt}}),rawPaginatedData:c,fixedColumnLeftMap:u,fixedColumnRightMap:f,currentPage:v,rowClassName:m,renderExpand:y,mergedExpandedRowKeySet:G,hoverKey:R,mergedSortState:C,virtualScroll:P,virtualScrollX:k,heightForRow:O,minRowHeight:$,mergedTableLayout:D,childTriggerColIndex:I,indent:A,rowProps:E,maxHeight:N,loadingKeySet:ve,expandable:ae,stickyExpandedRows:W,renderExpandIcon:j,scrollbarProps:Z,setHeaderScrollLeft:ce,handleVirtualListScroll:st,handleVirtualListResize:xt,handleMouseleaveTable:Ie,virtualListContainer:me,virtualListContent:Ke,handleTableBodyScroll:_e,handleCheckboxUpdateChecked:we,handleRadioUpdateChecked:te,handleUpdateExpanded:he,renderCell:Ae},vt)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:n,virtualScroll:r,maxHeight:o,mergedTableLayout:i,flexHeight:a,loadingKeySet:l,onResize:d,setHeaderScrollLeft:c}=this,u=t!==void 0||o!==void 0||a,f=!u&&i==="auto",v=t!==void 0||f,m={minWidth:Pt(t)||"100%"};t&&(m.width="100%");const h=s(Zt,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:u||f,class:`${n}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:m,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:v,onScroll:r?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:d}),{default:()=>{const g={},p={},{cols:b,paginatedDataAndInfo:y,mergedTheme:R,fixedColumnLeftMap:w,fixedColumnRightMap:C,currentPage:P,rowClassName:k,mergedSortState:O,mergedExpandedRowKeySet:$,stickyExpandedRows:T,componentId:D,childTriggerColIndex:I,expandable:A,rowProps:E,handleMouseleaveTable:N,renderExpand:U,summary:q,handleCheckboxUpdateChecked:J,handleRadioUpdateChecked:ve,handleUpdateExpanded:ae,heightForRow:W,minRowHeight:j,virtualScrollX:_}=this,{length:L}=b;let Z;const{data:ce,hasChildren:ye}=y,_e=ye?AI(ce,$):ce;if(q){const ue=q(this.rawPaginatedData);if(Array.isArray(ue)){const G=ue.map((fe,we)=>({isSummaryRow:!0,key:`__n_summary__${we}`,tmNode:{rawNode:fe,disabled:!0},index:-1}));Z=this.summaryPlacement==="top"?[...G,..._e]:[..._e,...G]}else{const G={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ue,disabled:!0},index:-1};Z=this.summaryPlacement==="top"?[G,..._e]:[..._e,G]}}else Z=_e;const V=ye?{width:Vt(this.indent)}:void 0,ze=[];Z.forEach(ue=>{U&&$.has(ue.key)&&(!A||A(ue.tmNode.rawNode))?ze.push(ue,{isExpandedRow:!0,key:`${ue.key}-expand`,tmNode:ue.tmNode,index:ue.index}):ze.push(ue)});const{length:Ae}=ze,Ne={};ce.forEach(({tmNode:ue},G)=>{Ne[G]=ue.key});const je=T?this.bodyWidth:null,qe=je===null?void 0:`${je}px`,gt=this.virtualScrollX?"div":"td";let at=0,Te=0;_&&b.forEach(ue=>{ue.column.fixed==="left"?at++:ue.column.fixed==="right"&&Te++});const Q=({rowInfo:ue,displayedRowIndex:G,isVirtual:fe,isVirtualX:we,startColIndex:te,endColIndex:X,getLeft:he})=>{const{index:Ie}=ue;if("isExpandedRow"in ue){const{tmNode:{key:$e,rawNode:Oe}}=ue;return s("tr",{class:`${n}-data-table-tr ${n}-data-table-tr--expanded`,key:`${$e}__expand`},s("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,G+1===Ae&&`${n}-data-table-td--last-row`],colspan:L},T?s("div",{class:`${n}-data-table-expand`,style:{width:qe}},U(Oe,Ie)):U(Oe,Ie)))}const me="isSummaryRow"in ue,Ke=!me&&ue.striped,{tmNode:st,key:xt}=ue,{rawNode:vt}=st,bt=$.has(xt),pt=E?E(vt,Ie):void 0,He=typeof k=="string"?k:tI(vt,Ie,k),nt=we?b.filter(($e,Oe)=>!!(te<=Oe&&Oe<=X||$e.column.fixed)):b,K=we?Vt(W?.(vt,Ie)||j):void 0,H=nt.map($e=>{var Oe,ne,Se,ee,Ce;const Ue=$e.index;if(G in g){const Ze=g[G],et=Ze.indexOf(Ue);if(~et)return Ze.splice(et,1),null}const{column:Ye}=$e,se=kr($e),{rowSpan:Me,colSpan:re}=Ye,ke=me?((Oe=ue.tmNode.rawNode[se])===null||Oe===void 0?void 0:Oe.colSpan)||1:re?re(vt,Ie):1,De=me?((ne=ue.tmNode.rawNode[se])===null||ne===void 0?void 0:ne.rowSpan)||1:Me?Me(vt,Ie):1,Qe=Ue+ke===L,rt=G+De===Ae,oe=De>1;if(oe&&(p[G]={[Ue]:[]}),ke>1||oe)for(let Ze=G;Ze{ae(xt,ue.tmNode)}})]:null,Ye.type==="selection"?me?null:Ye.multiple===!1?s(uI,{key:P,rowKey:xt,disabled:ue.tmNode.disabled,onUpdateChecked:()=>{ve(ue.tmNode)}}):s(iI,{key:P,rowKey:xt,disabled:ue.tmNode.disabled,onUpdateChecked:(Ze,et)=>{J(ue.tmNode,Ze,et.shiftKey)}}):Ye.type==="expand"?me?null:!Ye.expandable||!((Ce=Ye.expandable)===null||Ce===void 0)&&Ce.call(Ye,vt)?s(Av,{clsPrefix:n,rowData:vt,expanded:bt,renderExpandIcon:this.renderExpandIcon,onClick:()=>{ae(xt,null)}}):null:s(fI,{clsPrefix:n,index:Ie,row:vt,column:Ye,isSummary:me,mergedTheme:R,renderCell:this.renderCell}))});return we&&at&&Te&&H.splice(at,0,s("td",{colspan:b.length-at-Te,style:{pointerEvents:"none",visibility:"hidden",height:0}})),s("tr",Object.assign({},pt,{onMouseenter:$e=>{var Oe;this.hoverKey=xt,(Oe=pt?.onMouseenter)===null||Oe===void 0||Oe.call(pt,$e)},key:xt,class:[`${n}-data-table-tr`,me&&`${n}-data-table-tr--summary`,Ke&&`${n}-data-table-tr--striped`,bt&&`${n}-data-table-tr--expanded`,He,pt?.class],style:[pt?.style,we&&{height:K}]}),H)};return r?s($r,{ref:"virtualListRef",items:ze,itemSize:this.minRowHeight,visibleItemsTag:DI,visibleItemsProps:{clsPrefix:n,id:D,cols:b,onMouseleave:N},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:m,itemResizable:!_,columns:b,renderItemWithCols:_?({itemIndex:ue,item:G,startColIndex:fe,endColIndex:we,getLeft:te})=>Q({displayedRowIndex:ue,isVirtual:!0,isVirtualX:!0,rowInfo:G,startColIndex:fe,endColIndex:we,getLeft:te}):void 0},{default:({item:ue,index:G,renderedItemWithCols:fe})=>fe||Q({rowInfo:ue,displayedRowIndex:G,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(we){return 0}})}):s("table",{class:`${n}-data-table-table`,onMouseleave:N,style:{tableLayout:this.mergedTableLayout}},s("colgroup",null,b.map(ue=>s("col",{key:ue.key,style:ue.style}))),this.showHeader?s(dx,{discrete:!1}):null,this.empty?null:s("tbody",{"data-n-id":D,class:`${n}-data-table-tbody`},ze.map((ue,G)=>Q({rowInfo:ue,displayedRowIndex:G,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(fe){return-1}}))))}});if(this.empty){const g=()=>s("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},ht(this.dataTableSlots.empty,()=>[s(to,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?s(qt,null,h,g()):s(Nn,{onResize:this.onResize},{default:g})}return h}}),EI=Y({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:n,bodyWidthRef:r,maxHeightRef:o,minHeightRef:i,flexHeightRef:a,virtualScrollHeaderRef:l,syncScrollState:d}=Be(Or),c=B(null),u=B(null),f=B(null),v=B(!(n.value.length||t.value.length)),m=S(()=>({maxHeight:Pt(o.value),minHeight:Pt(i.value)}));function h(y){r.value=y.contentRect.width,d(),v.value||(v.value=!0)}function g(){var y;const{value:R}=c;return R?l.value?((y=R.virtualListRef)===null||y===void 0?void 0:y.listElRef)||null:R.$el:null}function p(){const{value:y}=u;return y?y.getScrollContainer():null}const b={getBodyElement:p,getHeaderElement:g,scrollTo(y,R){var w;(w=u.value)===null||w===void 0||w.scrollTo(y,R)}};return Ft(()=>{const{value:y}=f;if(!y)return;const R=`${e.value}-data-table-base-table--transition-disabled`;v.value?setTimeout(()=>{y.classList.remove(R)},0):y.classList.add(R)}),Object.assign({maxHeight:o,mergedClsPrefix:e,selfElRef:f,headerInstRef:c,bodyInstRef:u,bodyStyle:m,flexHeight:a,handleBodyResize:h},b)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:n}=this,r=t===void 0&&!n;return s("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},r?null:s(dx,{ref:"headerInstRef"}),s(_I,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:r,flexHeight:n,onResize:this.handleBodyResize}))}}),_v=LI(),NI=z([x("data-table",` + width: 100%; + font-size: var(--n-font-size); + display: flex; + flex-direction: column; + position: relative; + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + --n-merged-th-color-hover: var(--n-th-color-hover); + --n-merged-th-color-sorting: var(--n-th-color-sorting); + --n-merged-td-color-hover: var(--n-td-color-hover); + --n-merged-td-color-sorting: var(--n-td-color-sorting); + --n-merged-td-color-striped: var(--n-td-color-striped); + `,[x("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `),M("flex-height",[z(">",[x("data-table-wrapper",[z(">",[x("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[z(">",[x("data-table-base-table-body","flex-basis: 0;",[z("&:last-child","flex-grow: 1;")])])])])])])]),z(">",[x("data-table-loading-wrapper",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + justify-content: center; + `,[Cn({originalTransform:"translateX(-50%) translateY(-50%)"})])]),x("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),x("data-table-indent",` + display: inline-block; + height: 1px; + `),x("data-table-expand-trigger",` + display: inline-flex; + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -0.2em; + position: relative; + width: 16px; + height: 16px; + color: var(--n-td-text-color); + transition: color .3s var(--n-bezier); + `,[M("expanded",[x("icon","transform: rotate(90deg);",[Fn({originalTransform:"rotate(90deg)"})]),x("base-icon","transform: rotate(90deg);",[Fn({originalTransform:"rotate(90deg)"})])]),x("base-loading",` + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Fn()]),x("icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Fn()]),x("base-icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Fn()])]),x("data-table-thead",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-merged-th-color); + `),x("data-table-tr",` + position: relative; + box-sizing: border-box; + background-clip: padding-box; + transition: background-color .3s var(--n-bezier); + `,[x("data-table-expand",` + position: sticky; + left: 0; + overflow: hidden; + margin: calc(var(--n-th-padding) * -1); + padding: var(--n-th-padding); + box-sizing: border-box; + `),M("striped","background-color: var(--n-merged-td-color-striped);",[x("data-table-td","background-color: var(--n-merged-td-color-striped);")]),ft("summary",[z("&:hover","background-color: var(--n-merged-td-color-hover);",[z(">",[x("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),x("data-table-th",` + padding: var(--n-th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--n-merged-th-color); + border-color: var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + color: var(--n-th-text-color); + transition: + border-color .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + font-weight: var(--n-th-font-weight); + `,[M("filterable",` + padding-right: 36px; + `,[M("sortable",` + padding-right: calc(var(--n-th-padding) + 36px); + `)]),_v,M("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),F("title-wrapper",` + display: flex; + align-items: center; + flex-wrap: nowrap; + max-width: 100%; + `,[F("title",` + flex: 1; + min-width: 0; + `)]),F("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),M("hover",` + background-color: var(--n-merged-th-color-hover); + `),M("sorting",` + background-color: var(--n-merged-th-color-sorting); + `),M("sortable",` + cursor: pointer; + `,[F("ellipsis",` + max-width: calc(100% - 18px); + `),z("&:hover",` + background-color: var(--n-merged-th-color-hover); + `)]),x("data-table-sorter",` + height: var(--n-sorter-size); + width: var(--n-sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: -0.2em; + color: var(--n-th-icon-color); + transition: color .3s var(--n-bezier); + `,[x("base-icon","transition: transform .3s var(--n-bezier)"),M("desc",[x("base-icon",` + transform: rotate(0deg); + `)]),M("asc",[x("base-icon",` + transform: rotate(-180deg); + `)]),M("asc, desc",` + color: var(--n-th-icon-color-active); + `)]),x("data-table-resize-button",` + width: var(--n-resizable-container-size); + position: absolute; + top: 0; + right: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + cursor: col-resize; + user-select: none; + `,[z("&::after",` + width: var(--n-resizable-size); + height: 50%; + position: absolute; + top: 50%; + left: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + background-color: var(--n-merged-border-color); + transform: translateY(-50%); + transition: background-color .3s var(--n-bezier); + z-index: 1; + content: ''; + `),M("active",[z("&::after",` + background-color: var(--n-th-icon-color-active); + `)]),z("&:hover::after",` + background-color: var(--n-th-icon-color-active); + `)]),x("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + font-size: var(--n-filter-size); + color: var(--n-th-icon-color); + `,[z("&:hover",` + background-color: var(--n-th-button-color-hover); + `),M("show",` + background-color: var(--n-th-button-color-hover); + `),M("active",` + background-color: var(--n-th-button-color-hover); + color: var(--n-th-icon-color-active); + `)])]),x("data-table-td",` + padding: var(--n-td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--n-merged-td-color); + color: var(--n-td-text-color); + border-bottom: 1px solid var(--n-merged-border-color); + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[M("expand",[x("data-table-expand-trigger",` + margin-right: 0; + `)]),M("last-row",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[z("&::after",` + bottom: 0 !important; + `),z("&::before",` + bottom: 0 !important; + `)]),M("summary",` + background-color: var(--n-merged-th-color); + `),M("hover",` + background-color: var(--n-merged-td-color-hover); + `),M("sorting",` + background-color: var(--n-merged-td-color-sorting); + `),F("ellipsis",` + display: inline-block; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + vertical-align: bottom; + max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); + `),M("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),_v]),x("data-table-empty",` + box-sizing: border-box; + padding: var(--n-empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--n-bezier); + `,[M("hide",` + opacity: 0; + `)]),F("pagination",` + margin: var(--n-pagination-margin); + display: flex; + justify-content: flex-end; + `),x("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + line-height: var(--n-line-height); + `),M("loading",[x("data-table-wrapper",` + opacity: var(--n-opacity-loading); + pointer-events: none; + `)]),M("single-column",[x("data-table-td",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[z("&::after, &::before",` + bottom: 0 !important; + `)])]),ft("single-line",[x("data-table-th",` + border-right: 1px solid var(--n-merged-border-color); + `,[M("last",` + border-right: 0 solid var(--n-merged-border-color); + `)]),x("data-table-td",` + border-right: 1px solid var(--n-merged-border-color); + `,[M("last-col",` + border-right: 0 solid var(--n-merged-border-color); + `)])]),M("bordered",[x("data-table-wrapper",` + border: 1px solid var(--n-merged-border-color); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + overflow: hidden; + `)]),x("data-table-base-table",[M("transition-disabled",[x("data-table-th",[z("&::after, &::before","transition: none;")]),x("data-table-td",[z("&::after, &::before","transition: none;")])])]),M("bottom-bordered",[x("data-table-td",[M("last-row",` + border-bottom: 1px solid var(--n-merged-border-color); + `)])]),x("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-break: break-word; + transition: background-color .3s var(--n-bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--n-merged-td-color); + `),x("data-table-base-table-header",` + border-top-left-radius: calc(var(--n-border-radius) - 1px); + border-top-right-radius: calc(var(--n-border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--n-bezier); + scrollbar-width: none; + `,[z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + display: none; + width: 0; + height: 0; + `)]),x("data-table-check-extra",` + transition: color .3s var(--n-bezier); + color: var(--n-th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),x("data-table-filter-menu",[x("scrollbar",` + max-height: 240px; + `),F("group",` + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + `,[x("checkbox",` + margin-bottom: 12px; + margin-right: 0; + `),x("radio",` + margin-bottom: 12px; + margin-right: 0; + `)]),F("action",` + padding: var(--n-action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--n-action-divider-color); + `,[x("button",[z("&:not(:last-child)",` + margin: var(--n-action-button-margin); + `),z("&:last-child",` + margin-right: 0; + `)])]),x("divider",` + margin: 0 !important; + `)]),jr(x("data-table",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + --n-merged-th-color-hover: var(--n-th-color-hover-modal); + --n-merged-td-color-hover: var(--n-td-color-hover-modal); + --n-merged-th-color-sorting: var(--n-th-color-hover-modal); + --n-merged-td-color-sorting: var(--n-td-color-hover-modal); + --n-merged-td-color-striped: var(--n-td-color-striped-modal); + `)),ro(x("data-table",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + --n-merged-th-color-hover: var(--n-th-color-hover-popover); + --n-merged-td-color-hover: var(--n-td-color-hover-popover); + --n-merged-th-color-sorting: var(--n-th-color-hover-popover); + --n-merged-td-color-sorting: var(--n-td-color-hover-popover); + --n-merged-td-color-striped: var(--n-td-color-striped-popover); + `))]);function LI(){return[M("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[z("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + right: -36px; + `)]),M("fixed-right",` + right: 0; + position: sticky; + z-index: 1; + `,[z("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + left: -36px; + `)])]}function HI(e,t){const{paginatedDataRef:n,treeMateRef:r,selectionColumnRef:o}=t,i=B(e.defaultCheckedRowKeys),a=S(()=>{var C;const{checkedRowKeys:P}=e,k=P===void 0?i.value:P;return((C=o.value)===null||C===void 0?void 0:C.multiple)===!1?{checkedKeys:k.slice(0,1),indeterminateKeys:[]}:r.value.getCheckedKeys(k,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),l=S(()=>a.value.checkedKeys),d=S(()=>a.value.indeterminateKeys),c=S(()=>new Set(l.value)),u=S(()=>new Set(d.value)),f=S(()=>{const{value:C}=c;return n.value.reduce((P,k)=>{const{key:O,disabled:$}=k;return P+(!$&&C.has(O)?1:0)},0)}),v=S(()=>n.value.filter(C=>C.disabled).length),m=S(()=>{const{length:C}=n.value,{value:P}=u;return f.value>0&&f.valueP.has(k.key))}),h=S(()=>{const{length:C}=n.value;return f.value!==0&&f.value===C-v.value}),g=S(()=>n.value.length===0);function p(C,P,k){const{"onUpdate:checkedRowKeys":O,onUpdateCheckedRowKeys:$,onCheckedRowKeysChange:T}=e,D=[],{value:{getNode:I}}=r;C.forEach(A=>{var E;const N=(E=I(A))===null||E===void 0?void 0:E.rawNode;D.push(N)}),O&&ie(O,C,D,{row:P,action:k}),$&&ie($,C,D,{row:P,action:k}),T&&ie(T,C,D,{row:P,action:k}),i.value=C}function b(C,P=!1,k){if(!e.loading){if(P){p(Array.isArray(C)?C.slice(0,1):[C],k,"check");return}p(r.value.check(C,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,k,"check")}}function y(C,P){e.loading||p(r.value.uncheck(C,l.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,P,"uncheck")}function R(C=!1){const{value:P}=o;if(!P||e.loading)return;const k=[];(C?r.value.treeNodes:n.value).forEach(O=>{O.disabled||k.push(O.key)}),p(r.value.check(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function w(C=!1){const{value:P}=o;if(!P||e.loading)return;const k=[];(C?r.value.treeNodes:n.value).forEach(O=>{O.disabled||k.push(O.key)}),p(r.value.uncheck(k,l.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:l,mergedInderminateRowKeySetRef:u,someRowsCheckedRef:m,allRowsCheckedRef:h,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:p,doCheckAll:R,doUncheckAll:w,doCheck:b,doUncheck:y}}function jI(e,t){const n=it(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),r=it(()=>{let c;for(const u of e.columns)if(u.type==="expand"){c=u.expandable;break}return c}),o=B(e.defaultExpandAll?n?.value?(()=>{const c=[];return t.value.treeNodes.forEach(u=>{var f;!((f=r.value)===null||f===void 0)&&f.call(r,u.rawNode)&&c.push(u.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=le(e,"expandedRowKeys"),a=le(e,"stickyExpandedRows"),l=St(i,o);function d(c){const{onUpdateExpandedRowKeys:u,"onUpdate:expandedRowKeys":f}=e;u&&ie(u,c),f&&ie(f,c),o.value=c}return{stickyExpandedRowsRef:a,mergedExpandedRowKeysRef:l,renderExpandRef:n,expandableRef:r,doUpdateExpandedRowKeys:d}}function VI(e,t){const n=[],r=[],o=[],i=new WeakMap;let a=-1,l=0,d=!1,c=0;function u(v,m){m>a&&(n[m]=[],a=m),v.forEach(h=>{if("children"in h)u(h.children,m+1);else{const g="key"in h?h.key:void 0;r.push({key:kr(h),style:eI(h,g!==void 0?Pt(t(g)):void 0),column:h,index:c++,width:h.width===void 0?128:Number(h.width)}),l+=1,d||(d=!!h.ellipsis),o.push(h)}})}u(e,0),c=0;function f(v,m){let h=0;v.forEach(g=>{var p;if("children"in g){const b=c,y={column:g,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};f(g.children,m+1),g.children.forEach(R=>{var w,C;y.colSpan+=(C=(w=i.get(R))===null||w===void 0?void 0:w.colSpan)!==null&&C!==void 0?C:0}),b+y.colSpan===l&&(y.isLast=!0),i.set(g,y),n[m].push(y)}else{if(c1&&(h=c+b);const y=c+b===l,R={column:g,colSpan:b,colIndex:c,rowSpan:a-m+1,isLast:y};i.set(g,R),n[m].push(R),c+=1}})}return f(e,0),{hasEllipsis:d,rows:n,cols:r,dataRelatedCols:o}}function UI(e,t){const n=S(()=>VI(e.columns,t));return{rowsRef:S(()=>n.value.rows),colsRef:S(()=>n.value.cols),hasEllipsisRef:S(()=>n.value.hasEllipsis),dataRelatedColsRef:S(()=>n.value.dataRelatedCols)}}function WI(){const e=B({});function t(o){return e.value[o]}function n(o,i){W0(o)&&"key"in o&&(e.value[o.key]=i)}function r(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:n,clearResizableWidth:r}}function KI(e,{mainTableInstRef:t,mergedCurrentPageRef:n,bodyWidthRef:r}){let o=0;const i=B(),a=B(null),l=B([]),d=B(null),c=B([]),u=S(()=>Pt(e.scrollX)),f=S(()=>e.columns.filter($=>$.fixed==="left")),v=S(()=>e.columns.filter($=>$.fixed==="right")),m=S(()=>{const $={};let T=0;function D(I){I.forEach(A=>{const E={start:T,end:0};$[kr(A)]=E,"children"in A?(D(A.children),E.end=T):(T+=Fv(A)||0,E.end=T)})}return D(f.value),$}),h=S(()=>{const $={};let T=0;function D(I){for(let A=I.length-1;A>=0;--A){const E=I[A],N={start:T,end:0};$[kr(E)]=N,"children"in E?(D(E.children),N.end=T):(T+=Fv(E)||0,N.end=T)}}return D(v.value),$});function g(){var $,T;const{value:D}=f;let I=0;const{value:A}=m;let E=null;for(let N=0;N((($=A[U])===null||$===void 0?void 0:$.start)||0)-I)E=U,I=((T=A[U])===null||T===void 0?void 0:T.end)||0;else break}a.value=E}function p(){l.value=[];let $=e.columns.find(T=>kr(T)===a.value);for(;$&&"children"in $;){const T=$.children.length;if(T===0)break;const D=$.children[T-1];l.value.push(kr(D)),$=D}}function b(){var $,T;const{value:D}=v,I=Number(e.scrollX),{value:A}=r;if(A===null)return;let E=0,N=null;const{value:U}=h;for(let q=D.length-1;q>=0;--q){const J=kr(D[q]);if(Math.round(o+((($=U[J])===null||$===void 0?void 0:$.start)||0)+A-E)kr(T)===d.value);for(;$&&"children"in $&&$.children.length;){const T=$.children[0];c.value.push(kr(T)),$=T}}function R(){const $=t.value?t.value.getHeaderElement():null,T=t.value?t.value.getBodyElement():null;return{header:$,body:T}}function w(){const{body:$}=R();$&&($.scrollTop=0)}function C(){i.value!=="body"?oi(k):i.value=void 0}function P($){var T;(T=e.onScroll)===null||T===void 0||T.call(e,$),i.value!=="head"?oi(k):i.value=void 0}function k(){const{header:$,body:T}=R();if(!T)return;const{value:D}=r;if(D!==null){if(e.maxHeight||e.flexHeight){if(!$)return;const I=o-$.scrollLeft;i.value=I!==0?"head":"body",i.value==="head"?(o=$.scrollLeft,T.scrollLeft=o):(o=T.scrollLeft,$.scrollLeft=o)}else o=T.scrollLeft;g(),p(),b(),y()}}function O($){const{header:T}=R();T&&(T.scrollLeft=$,k())}return ct(n,()=>{w()}),{styleScrollXRef:u,fixedColumnLeftMapRef:m,fixedColumnRightMapRef:h,leftFixedColumnsRef:f,rightFixedColumnsRef:v,leftActiveFixedColKeyRef:a,leftActiveFixedChildrenColKeysRef:l,rightActiveFixedColKeyRef:d,rightActiveFixedChildrenColKeysRef:c,syncScrollState:k,handleTableBodyScroll:P,handleTableHeaderScroll:C,setHeaderScrollLeft:O}}function Bl(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function qI(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?YI(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function YI(e){return(t,n)=>{const r=t[e],o=n[e];return r==null?o==null?0:-1:o==null?1:typeof r=="number"&&typeof o=="number"?r-o:typeof r=="string"&&typeof o=="string"?r.localeCompare(o):0}}function GI(e,{dataRelatedColsRef:t,filteredDataRef:n}){const r=[];t.value.forEach(m=>{var h;m.sorter!==void 0&&v(r,{columnKey:m.key,sorter:m.sorter,order:(h=m.defaultSortOrder)!==null&&h!==void 0?h:!1})});const o=B(r),i=S(()=>{const m=t.value.filter(p=>p.type!=="selection"&&p.sorter!==void 0&&(p.sortOrder==="ascend"||p.sortOrder==="descend"||p.sortOrder===!1)),h=m.filter(p=>p.sortOrder!==!1);if(h.length)return h.map(p=>({columnKey:p.key,order:p.sortOrder,sorter:p.sorter}));if(m.length)return[];const{value:g}=o;return Array.isArray(g)?g:g?[g]:[]}),a=S(()=>{const m=i.value.slice().sort((h,g)=>{const p=Bl(h.sorter)||0;return(Bl(g.sorter)||0)-p});return m.length?n.value.slice().sort((g,p)=>{let b=0;return m.some(y=>{const{columnKey:R,sorter:w,order:C}=y,P=qI(w,R);return P&&C&&(b=P(g.rawNode,p.rawNode),b!==0)?(b=b*JM(C),!0):!1}),b}):n.value});function l(m){let h=i.value.slice();return m&&Bl(m.sorter)!==!1?(h=h.filter(g=>Bl(g.sorter)!==!1),v(h,m),h):m||null}function d(m){const h=l(m);c(h)}function c(m){const{"onUpdate:sorter":h,onUpdateSorter:g,onSorterChange:p}=e;h&&ie(h,m),g&&ie(g,m),p&&ie(p,m),o.value=m}function u(m,h="ascend"){if(!m)f();else{const g=t.value.find(b=>b.type!=="selection"&&b.type!=="expand"&&b.key===m);if(!g?.sorter)return;const p=g.sorter;d({columnKey:m,sorter:p,order:h})}}function f(){c(null)}function v(m,h){const g=m.findIndex(p=>h?.columnKey&&p.columnKey===h.columnKey);g!==void 0&&g>=0?m[g]=h:m.push(h)}return{clearSorter:f,sort:u,sortedDataRef:a,mergedSortStateRef:i,deriveNextSorter:d}}function XI(e,{dataRelatedColsRef:t}){const n=S(()=>{const W=j=>{for(let _=0;_{const{childrenKey:W}=e;return Gn(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:j=>j[W],getDisabled:j=>{var _,L;return!!(!((L=(_=n.value)===null||_===void 0?void 0:_.disabled)===null||L===void 0)&&L.call(_,j))}})}),o=it(()=>{const{columns:W}=e,{length:j}=W;let _=null;for(let L=0;L{const W=t.value.filter(L=>L.filterOptionValues!==void 0||L.filterOptionValue!==void 0),j={};return W.forEach(L=>{var Z;L.type==="selection"||L.type==="expand"||(L.filterOptionValues===void 0?j[L.key]=(Z=L.filterOptionValue)!==null&&Z!==void 0?Z:null:j[L.key]=L.filterOptionValues)}),Object.assign(Mv(i.value),j)}),u=S(()=>{const W=c.value,{columns:j}=e;function _(ce){return(ye,_e)=>!!~String(_e[ce]).indexOf(String(ye))}const{value:{treeNodes:L}}=r,Z=[];return j.forEach(ce=>{ce.type==="selection"||ce.type==="expand"||"children"in ce||Z.push([ce.key,ce])}),L?L.filter(ce=>{const{rawNode:ye}=ce;for(const[_e,V]of Z){let ze=W[_e];if(ze==null||(Array.isArray(ze)||(ze=[ze]),!ze.length))continue;const Ae=V.filter==="default"?_(_e):V.filter;if(V&&typeof Ae=="function")if(V.filterMode==="and"){if(ze.some(Ne=>!Ae(Ne,ye)))return!1}else{if(ze.some(Ne=>Ae(Ne,ye)))continue;return!1}}return!0}):[]}),{sortedDataRef:f,deriveNextSorter:v,mergedSortStateRef:m,sort:h,clearSorter:g}=GI(e,{dataRelatedColsRef:t,filteredDataRef:u});t.value.forEach(W=>{var j;if(W.filter){const _=W.defaultFilterOptionValues;W.filterMultiple?i.value[W.key]=_||[]:_!==void 0?i.value[W.key]=_===null?[]:_:i.value[W.key]=(j=W.defaultFilterOptionValue)!==null&&j!==void 0?j:null}});const p=S(()=>{const{pagination:W}=e;if(W!==!1)return W.page}),b=S(()=>{const{pagination:W}=e;if(W!==!1)return W.pageSize}),y=St(p,l),R=St(b,d),w=it(()=>{const W=y.value;return e.remote?W:Math.max(1,Math.min(Math.ceil(u.value.length/R.value),W))}),C=S(()=>{const{pagination:W}=e;if(W){const{pageCount:j}=W;if(j!==void 0)return j}}),P=S(()=>{if(e.remote)return r.value.treeNodes;if(!e.pagination)return f.value;const W=R.value,j=(w.value-1)*W;return f.value.slice(j,j+W)}),k=S(()=>P.value.map(W=>W.rawNode));function O(W){const{pagination:j}=e;if(j){const{onChange:_,"onUpdate:page":L,onUpdatePage:Z}=j;_&&ie(_,W),Z&&ie(Z,W),L&&ie(L,W),I(W)}}function $(W){const{pagination:j}=e;if(j){const{onPageSizeChange:_,"onUpdate:pageSize":L,onUpdatePageSize:Z}=j;_&&ie(_,W),Z&&ie(Z,W),L&&ie(L,W),A(W)}}const T=S(()=>{if(e.remote){const{pagination:W}=e;if(W){const{itemCount:j}=W;if(j!==void 0)return j}return}return u.value.length}),D=S(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":O,"onUpdate:pageSize":$,page:w.value,pageSize:R.value,pageCount:T.value===void 0?C.value:void 0,itemCount:T.value}));function I(W){const{"onUpdate:page":j,onPageChange:_,onUpdatePage:L}=e;L&&ie(L,W),j&&ie(j,W),_&&ie(_,W),l.value=W}function A(W){const{"onUpdate:pageSize":j,onPageSizeChange:_,onUpdatePageSize:L}=e;_&&ie(_,W),L&&ie(L,W),j&&ie(j,W),d.value=W}function E(W,j){const{onUpdateFilters:_,"onUpdate:filters":L,onFiltersChange:Z}=e;_&&ie(_,W,j),L&&ie(L,W,j),Z&&ie(Z,W,j),i.value=W}function N(W,j,_,L){var Z;(Z=e.onUnstableColumnResize)===null||Z===void 0||Z.call(e,W,j,_,L)}function U(W){I(W)}function q(){J()}function J(){ve({})}function ve(W){ae(W)}function ae(W){W?W&&(i.value=Mv(W)):i.value={}}return{treeMateRef:r,mergedCurrentPageRef:w,mergedPaginationRef:D,paginatedDataRef:P,rawPaginatedDataRef:k,mergedFilterStateRef:c,mergedSortStateRef:m,hoverKeyRef:B(null),selectionColumnRef:n,childTriggerColIndexRef:o,doUpdateFilters:E,deriveNextSorter:v,doUpdatePageSize:A,doUpdatePage:I,onUnstableColumnResize:N,filter:ae,filters:ve,clearFilter:q,clearFilters:J,clearSorter:g,page:U,sort:h}}const ZI=Y({name:"DataTable",alias:["AdvancedTable"],props:j0,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:i}=Ee(e),a=Bt("DataTable",i,r),l=S(()=>{const{bottomBordered:K}=e;return n.value?!1:K!==void 0?K:!0}),d=ge("DataTable","-data-table",NI,XM,e,r),c=B(null),u=B(null),{getResizableWidth:f,clearResizableWidth:v,doUpdateResizableWidth:m}=WI(),{rowsRef:h,colsRef:g,dataRelatedColsRef:p,hasEllipsisRef:b}=UI(e,f),{treeMateRef:y,mergedCurrentPageRef:R,paginatedDataRef:w,rawPaginatedDataRef:C,selectionColumnRef:P,hoverKeyRef:k,mergedPaginationRef:O,mergedFilterStateRef:$,mergedSortStateRef:T,childTriggerColIndexRef:D,doUpdatePage:I,doUpdateFilters:A,onUnstableColumnResize:E,deriveNextSorter:N,filter:U,filters:q,clearFilter:J,clearFilters:ve,clearSorter:ae,page:W,sort:j}=XI(e,{dataRelatedColsRef:p}),_=K=>{const{fileName:H="data.csv",keepOriginalData:pe=!1}=K||{},$e=pe?e.data:C.value,Oe=oI(e.columns,$e,e.getCsvCell,e.getCsvHeader),ne=new Blob([Oe],{type:"text/csv;charset=utf-8"}),Se=URL.createObjectURL(ne);Fs(Se,H.endsWith(".csv")?H:`${H}.csv`),URL.revokeObjectURL(Se)},{doCheckAll:L,doUncheckAll:Z,doCheck:ce,doUncheck:ye,headerCheckboxDisabledRef:_e,someRowsCheckedRef:V,allRowsCheckedRef:ze,mergedCheckedRowKeySetRef:Ae,mergedInderminateRowKeySetRef:Ne}=HI(e,{selectionColumnRef:P,treeMateRef:y,paginatedDataRef:w}),{stickyExpandedRowsRef:je,mergedExpandedRowKeysRef:qe,renderExpandRef:gt,expandableRef:at,doUpdateExpandedRowKeys:Te}=jI(e,y),{handleTableBodyScroll:Q,handleTableHeaderScroll:ue,syncScrollState:G,setHeaderScrollLeft:fe,leftActiveFixedColKeyRef:we,leftActiveFixedChildrenColKeysRef:te,rightActiveFixedColKeyRef:X,rightActiveFixedChildrenColKeysRef:he,leftFixedColumnsRef:Ie,rightFixedColumnsRef:me,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:st}=KI(e,{bodyWidthRef:c,mainTableInstRef:u,mergedCurrentPageRef:R}),{localeRef:xt}=on("DataTable"),vt=S(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||b.value?"fixed":e.tableLayout);ot(Or,{props:e,treeMateRef:y,renderExpandIconRef:le(e,"renderExpandIcon"),loadingKeySetRef:B(new Set),slots:t,indentRef:le(e,"indent"),childTriggerColIndexRef:D,bodyWidthRef:c,componentId:Vn(),hoverKeyRef:k,mergedClsPrefixRef:r,mergedThemeRef:d,scrollXRef:S(()=>e.scrollX),rowsRef:h,colsRef:g,paginatedDataRef:w,leftActiveFixedColKeyRef:we,leftActiveFixedChildrenColKeysRef:te,rightActiveFixedColKeyRef:X,rightActiveFixedChildrenColKeysRef:he,leftFixedColumnsRef:Ie,rightFixedColumnsRef:me,fixedColumnLeftMapRef:Ke,fixedColumnRightMapRef:st,mergedCurrentPageRef:R,someRowsCheckedRef:V,allRowsCheckedRef:ze,mergedSortStateRef:T,mergedFilterStateRef:$,loadingRef:le(e,"loading"),rowClassNameRef:le(e,"rowClassName"),mergedCheckedRowKeySetRef:Ae,mergedExpandedRowKeysRef:qe,mergedInderminateRowKeySetRef:Ne,localeRef:xt,expandableRef:at,stickyExpandedRowsRef:je,rowKeyRef:le(e,"rowKey"),renderExpandRef:gt,summaryRef:le(e,"summary"),virtualScrollRef:le(e,"virtualScroll"),virtualScrollXRef:le(e,"virtualScrollX"),heightForRowRef:le(e,"heightForRow"),minRowHeightRef:le(e,"minRowHeight"),virtualScrollHeaderRef:le(e,"virtualScrollHeader"),headerHeightRef:le(e,"headerHeight"),rowPropsRef:le(e,"rowProps"),stripedRef:le(e,"striped"),checkOptionsRef:S(()=>{const{value:K}=P;return K?.options}),rawPaginatedDataRef:C,filterMenuCssVarsRef:S(()=>{const{self:{actionDividerColor:K,actionPadding:H,actionButtonMargin:pe}}=d.value;return{"--n-action-padding":H,"--n-action-button-margin":pe,"--n-action-divider-color":K}}),onLoadRef:le(e,"onLoad"),mergedTableLayoutRef:vt,maxHeightRef:le(e,"maxHeight"),minHeightRef:le(e,"minHeight"),flexHeightRef:le(e,"flexHeight"),headerCheckboxDisabledRef:_e,paginationBehaviorOnFilterRef:le(e,"paginationBehaviorOnFilter"),summaryPlacementRef:le(e,"summaryPlacement"),filterIconPopoverPropsRef:le(e,"filterIconPopoverProps"),scrollbarPropsRef:le(e,"scrollbarProps"),syncScrollState:G,doUpdatePage:I,doUpdateFilters:A,getResizableWidth:f,onUnstableColumnResize:E,clearResizableWidth:v,doUpdateResizableWidth:m,deriveNextSorter:N,doCheck:ce,doUncheck:ye,doCheckAll:L,doUncheckAll:Z,doUpdateExpandedRowKeys:Te,handleTableHeaderScroll:ue,handleTableBodyScroll:Q,setHeaderScrollLeft:fe,renderCell:le(e,"renderCell")});const bt={filter:U,filters:q,clearFilters:ve,clearSorter:ae,page:W,sort:j,clearFilter:J,downloadCsv:_,scrollTo:(K,H)=>{var pe;(pe=u.value)===null||pe===void 0||pe.scrollTo(K,H)}},pt=S(()=>{const{size:K}=e,{common:{cubicBezierEaseInOut:H},self:{borderColor:pe,tdColorHover:$e,tdColorSorting:Oe,tdColorSortingModal:ne,tdColorSortingPopover:Se,thColorSorting:ee,thColorSortingModal:Ce,thColorSortingPopover:Ue,thColor:Ye,thColorHover:se,tdColor:Me,tdTextColor:re,thTextColor:ke,thFontWeight:De,thButtonColorHover:Qe,thIconColor:rt,thIconColorActive:oe,filterSize:Re,borderRadius:We,lineHeight:de,tdColorModal:Pe,thColorModal:Le,borderColorModal:Ze,thColorHoverModal:et,tdColorHoverModal:$t,borderColorPopover:Jt,thColorPopover:Qt,tdColorPopover:Tn,tdColorHoverPopover:Dn,thColorHoverPopover:un,paginationMargin:At,emptyPadding:xe,boxShadowAfter:Ve,boxShadowBefore:Ge,sorterSize:Tt,resizableContainerSize:fn,resizableSize:Lt,loadingColor:fr,loadingSize:Sr,opacityLoading:or,tdColorStriped:la,tdColorStripedModal:sa,tdColorStripedPopover:da,[be("fontSize",K)]:ca,[be("thPadding",K)]:ua,[be("tdPadding",K)]:fa}}=d.value;return{"--n-font-size":ca,"--n-th-padding":ua,"--n-td-padding":fa,"--n-bezier":H,"--n-border-radius":We,"--n-line-height":de,"--n-border-color":pe,"--n-border-color-modal":Ze,"--n-border-color-popover":Jt,"--n-th-color":Ye,"--n-th-color-hover":se,"--n-th-color-modal":Le,"--n-th-color-hover-modal":et,"--n-th-color-popover":Qt,"--n-th-color-hover-popover":un,"--n-td-color":Me,"--n-td-color-hover":$e,"--n-td-color-modal":Pe,"--n-td-color-hover-modal":$t,"--n-td-color-popover":Tn,"--n-td-color-hover-popover":Dn,"--n-th-text-color":ke,"--n-td-text-color":re,"--n-th-font-weight":De,"--n-th-button-color-hover":Qe,"--n-th-icon-color":rt,"--n-th-icon-color-active":oe,"--n-filter-size":Re,"--n-pagination-margin":At,"--n-empty-padding":xe,"--n-box-shadow-before":Ge,"--n-box-shadow-after":Ve,"--n-sorter-size":Tt,"--n-resizable-container-size":fn,"--n-resizable-size":Lt,"--n-loading-size":Sr,"--n-loading-color":fr,"--n-opacity-loading":or,"--n-td-color-striped":la,"--n-td-color-striped-modal":sa,"--n-td-color-striped-popover":da,"--n-td-color-sorting":Oe,"--n-td-color-sorting-modal":ne,"--n-td-color-sorting-popover":Se,"--n-th-color-sorting":ee,"--n-th-color-sorting-modal":Ce,"--n-th-color-sorting-popover":Ue}}),He=o?Xe("data-table",S(()=>e.size[0]),pt,e):void 0,nt=S(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const K=O.value,{pageCount:H}=K;return H!==void 0?H>1:K.itemCount&&K.pageSize&&K.itemCount>K.pageSize});return Object.assign({mainTableInstRef:u,mergedClsPrefix:r,rtlEnabled:a,mergedTheme:d,paginatedData:w,mergedBordered:n,mergedBottomBordered:l,mergedPagination:O,mergedShowPagination:nt,cssVars:o?void 0:pt,themeClass:He?.themeClass,onRender:He?.onRender},bt)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:n,$slots:r,spinProps:o}=this;return n?.(),s("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},s("div",{class:`${e}-data-table-wrapper`},s(EI,{ref:"mainTableInstRef"})),this.mergedShowPagination?s("div",{class:`${e}-data-table__pagination`},s(L0,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,s(_t,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?s("div",{class:`${e}-data-table-loading-wrapper`},ht(r.loading,()=>[s(Tr,Object.assign({clsPrefix:e,strokeWidth:20},o))])):null}))}}),JI={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function QI(e){const{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:o,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:d,iconColor:c,iconColorDisabled:u}=e;return Object.assign(Object.assign({},JI),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:n,itemTextColorActive:r,itemColorHover:o,itemOpacityDisabled:a,itemBorderRadius:d,borderRadius:d,iconColor:c,iconColorDisabled:u})}const cx={name:"TimePicker",common:Je,peers:{Scrollbar:Ln,Button:nr,Input:tr},self:QI},e6={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function t6(e){const{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:o,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:d,iconColorDisabled:c,textColor1:u,dividerColor:f,boxShadow2:v,borderRadius:m,fontWeightStrong:h}=e;return Object.assign(Object.assign({},e6),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:o,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:mt(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:d,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:f,calendarDaysDividerColor:f,calendarDividerColor:f,panelActionDividerColor:f,panelBoxShadow:v,panelBorderRadius:m,calendarTitleFontWeight:h,scrollItemBorderRadius:m,iconColor:d,iconColorDisabled:c})}const n6={name:"DatePicker",common:Je,peers:{Input:tr,Button:nr,TimePicker:cx,Scrollbar:Ln},self:t6},Vs="n-date-picker",ci=40,r6="HH:mm:ss",ux={active:Boolean,dateFormat:String,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,required:!0},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},timePickerFormat:{type:String,value:r6},value:{type:[Array,Number],default:null},shortcuts:Object,defaultTime:[Number,String,Array,Function],inputReadonly:Boolean,onClear:Function,onConfirm:Function,onClose:Function,onTabOut:Function,onKeydown:Function,actions:Array,onUpdateValue:{type:Function,required:!0},themeClass:String,onRender:Function,panel:Boolean,onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function};function fx(e){const{dateLocaleRef:t,timePickerSizeRef:n,timePickerPropsRef:r,localeRef:o,mergedClsPrefixRef:i,mergedThemeRef:a}=Be(Vs),l=S(()=>({locale:t.value.locale})),d=B(null),c=fu();function u(){const{onClear:I}=e;I&&I()}function f(){const{onConfirm:I,value:A}=e;I&&I(A)}function v(I,A){const{onUpdateValue:E}=e;E(I,A)}function m(I=!1){const{onClose:A}=e;A&&A(I)}function h(){const{onTabOut:I}=e;I&&I()}function g(){v(null,!0),m(!0),u()}function p(){h()}function b(){(e.active||e.panel)&&zt(()=>{const{value:I}=d;if(!I)return;const A=I.querySelectorAll("[data-n-date]");A.forEach(E=>{E.classList.add("transition-disabled")}),I.offsetWidth,A.forEach(E=>{E.classList.remove("transition-disabled")})})}function y(I){I.key==="Tab"&&I.target===d.value&&c.shift&&(I.preventDefault(),h())}function R(I){const{value:A}=d;c.tab&&I.target===A&&A?.contains(I.relatedTarget)&&h()}let w=null,C=!1;function P(){w=e.value,C=!0}function k(){C=!1}function O(){C&&(v(w,!1),C=!1)}function $(I){return typeof I=="function"?I():I}const T=B(!1);function D(){T.value=!T.value}return{mergedTheme:a,mergedClsPrefix:i,dateFnsOptions:l,timePickerSize:n,timePickerProps:r,selfRef:d,locale:o,doConfirm:f,doClose:m,doUpdateValue:v,doTabOut:h,handleClearClick:g,handleFocusDetectorFocus:p,disableTransitionOneTick:b,handlePanelKeyDown:y,handlePanelFocus:R,cachePendingValue:P,clearPendingValue:k,restorePendingValue:O,getShortcutValue:$,handleShortcutMouseleave:O,showMonthYearPanel:T,handleOpenQuickSelectMonthPanel:D}}const nf=Object.assign(Object.assign({},ux),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>["now","clear","confirm"]}});function rf(e,t){var n;const r=fx(e),{isValueInvalidRef:o,isDateDisabledRef:i,isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:c,isMinuteDisabledRef:u,isSecondDisabledRef:f,localeRef:v,firstDayOfWeekRef:m,datePickerSlots:h,yearFormatRef:g,monthFormatRef:p,quarterFormatRef:b,yearRangeRef:y}=Be(Vs),R={isValueInvalid:o,isDateDisabled:i,isDateInvalid:a,isTimeInvalid:l,isDateTimeInvalid:d,isHourDisabled:c,isMinuteDisabled:u,isSecondDisabled:f},w=S(()=>e.dateFormat||v.value.dateFormat),C=S(()=>e.calendarDayFormat||v.value.dayFormat),P=B(e.value===null||Array.isArray(e.value)?"":Dt(e.value,w.value)),k=B(e.value===null||Array.isArray(e.value)?(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Date.now():e.value),O=B(null),$=B(null),T=B(null),D=B(Date.now()),I=S(()=>{var me;return bs(k.value,e.value,D.value,(me=m.value)!==null&&me!==void 0?me:v.value.firstDayOfWeek,!1,t==="week")}),A=S(()=>{const{value:me}=e;return Fc(k.value,Array.isArray(me)?null:me,D.value,{monthFormat:p.value})}),E=S(()=>{const{value:me}=e;return Ic(Array.isArray(me)?null:me,D.value,{yearFormat:g.value},y)}),N=S(()=>{const{value:me}=e;return Mc(k.value,Array.isArray(me)?null:me,D.value,{quarterFormat:b.value})}),U=S(()=>I.value.slice(0,7).map(me=>{const{ts:Ke}=me;return Dt(Ke,C.value,r.dateFnsOptions.value)})),q=S(()=>Dt(k.value,e.calendarHeaderMonthFormat||v.value.monthFormat,r.dateFnsOptions.value)),J=S(()=>Dt(k.value,e.calendarHeaderYearFormat||v.value.yearFormat,r.dateFnsOptions.value)),ve=S(()=>{var me;return(me=e.calendarHeaderMonthBeforeYear)!==null&&me!==void 0?me:v.value.monthBeforeYear});ct(k,(me,Ke)=>{(t==="date"||t==="datetime")&&(nl(me,Ke)||r.disableTransitionOneTick())}),ct(S(()=>e.value),me=>{me!==null&&!Array.isArray(me)?(P.value=Dt(me,w.value,r.dateFnsOptions.value),k.value=me):P.value=""});function ae(me){var Ke;if(t==="datetime")return tt(Hu(me));if(t==="month")return tt(mr(me));if(t==="year")return tt(ta(me));if(t==="quarter")return tt(Ha(me));if(t==="week"){const st=(((Ke=m.value)!==null&&Ke!==void 0?Ke:v.value.firstDayOfWeek)+1)%7;return tt(dr(me,{weekStartsOn:st}))}return tt(Hr(me))}function W(me,Ke){const{isDateDisabled:{value:st}}=R;return st?st(me,Ke):!1}function j(me){const Ke=qn(me,w.value,new Date,r.dateFnsOptions.value);if(br(Ke)){if(e.value===null)r.doUpdateValue(tt(ae(Date.now())),e.panel);else if(!Array.isArray(e.value)){const st=An(e.value,{year:Gt(Ke),month:Kt(Ke),date:gr(Ke)});r.doUpdateValue(tt(ae(tt(st))),e.panel)}}else P.value=me}function _(){const me=qn(P.value,w.value,new Date,r.dateFnsOptions.value);if(br(me)){if(e.value===null)r.doUpdateValue(tt(ae(Date.now())),!1);else if(!Array.isArray(e.value)){const Ke=An(e.value,{year:Gt(me),month:Kt(me),date:gr(me)});r.doUpdateValue(tt(ae(tt(Ke))),!1)}}else Ne()}function L(){r.doUpdateValue(null,!0),P.value="",r.doClose(!0),r.handleClearClick()}function Z(){r.doUpdateValue(tt(ae(Date.now())),!0);const me=Date.now();k.value=me,r.doClose(!0),e.panel&&(t==="month"||t==="quarter"||t==="year")&&(r.disableTransitionOneTick(),he(me))}const ce=B(null);function ye(me){me.type==="date"&&t==="week"&&(ce.value=ae(tt(me.ts)))}function _e(me){return me.type==="date"&&t==="week"?ae(tt(me.ts))===ce.value:!1}function V(me){if(W(me.ts,me.type==="date"?{type:"date",year:me.dateObject.year,month:me.dateObject.month,date:me.dateObject.date}:me.type==="month"?{type:"month",year:me.dateObject.year,month:me.dateObject.month}:me.type==="year"?{type:"year",year:me.dateObject.year}:{type:"quarter",year:me.dateObject.year,quarter:me.dateObject.quarter}))return;let Ke;if(e.value!==null&&!Array.isArray(e.value)?Ke=e.value:Ke=Date.now(),t==="datetime"&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){let st;typeof e.defaultTime=="function"?st=iF(me.ts,e.defaultTime):st=Li(e.defaultTime),st&&(Ke=tt(An(Ke,st)))}switch(Ke=tt(me.type==="quarter"&&me.dateObject.quarter?XO(Oc(Ke,me.dateObject.year),me.dateObject.quarter):An(Ke,me.dateObject)),r.doUpdateValue(ae(Ke),e.panel||t==="date"||t==="week"||t==="year"),t){case"date":case"week":r.doClose();break;case"year":e.panel&&r.disableTransitionOneTick(),r.doClose();break;case"month":r.disableTransitionOneTick(),he(Ke);break;case"quarter":r.disableTransitionOneTick(),he(Ke);break}}function ze(me,Ke){let st;e.value!==null&&!Array.isArray(e.value)?st=e.value:st=Date.now(),st=tt(me.type==="month"?ju(st,me.dateObject.month):Oc(st,me.dateObject.year)),Ke(st),he(st)}function Ae(me){k.value=me}function Ne(me){if(e.value===null||Array.isArray(e.value)){P.value="";return}me===void 0&&(me=e.value),P.value=Dt(me,w.value,r.dateFnsOptions.value)}function je(){R.isDateInvalid.value||R.isTimeInvalid.value||(r.doConfirm(),qe())}function qe(){e.active&&r.doClose()}function gt(){var me;k.value=tt(vs(k.value,1)),(me=e.onNextYear)===null||me===void 0||me.call(e)}function at(){var me;k.value=tt(vs(k.value,-1)),(me=e.onPrevYear)===null||me===void 0||me.call(e)}function Te(){var me;k.value=tt(kn(k.value,1)),(me=e.onNextMonth)===null||me===void 0||me.call(e)}function Q(){var me;k.value=tt(kn(k.value,-1)),(me=e.onPrevMonth)===null||me===void 0||me.call(e)}function ue(){const{value:me}=O;return me?.listElRef||null}function G(){const{value:me}=O;return me?.itemsElRef||null}function fe(){var me;(me=$.value)===null||me===void 0||me.sync()}function we(me){me!==null&&r.doUpdateValue(me,e.panel)}function te(me){r.cachePendingValue();const Ke=r.getShortcutValue(me);typeof Ke=="number"&&r.doUpdateValue(Ke,!1)}function X(me){const Ke=r.getShortcutValue(me);typeof Ke=="number"&&(r.doUpdateValue(Ke,e.panel),r.clearPendingValue(),je())}function he(me){const{value:Ke}=e;if(T.value){const st=Kt(me===void 0?Ke===null?Date.now():Ke:me);T.value.scrollTo({top:st*ci})}if(O.value){const st=Gt(me===void 0?Ke===null?Date.now():Ke:me)-y.value[0];O.value.scrollTo({top:st*ci})}}const Ie={monthScrollbarRef:T,yearScrollbarRef:$,yearVlRef:O};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:I,monthArray:A,yearArray:E,quarterArray:N,calendarYear:J,calendarMonth:q,weekdays:U,calendarMonthBeforeYear:ve,mergedIsDateDisabled:W,nextYear:gt,prevYear:at,nextMonth:Te,prevMonth:Q,handleNowClick:Z,handleConfirmClick:je,handleSingleShortcutMouseenter:te,handleSingleShortcutClick:X},R),r),Ie),{handleDateClick:V,handleDateInputBlur:_,handleDateInput:j,handleDateMouseEnter:ye,isWeekHovered:_e,handleTimePickerChange:we,clearSelectedDateTime:L,virtualListContainer:ue,virtualListContent:G,handleVirtualListScroll:fe,timePickerSize:r.timePickerSize,dateInputValue:P,datePickerSlots:h,handleQuickMonthClick:ze,justifyColumnsScrollState:he,calendarValue:k,onUpdateCalendarValue:Ae})}const hx=Y({name:"MonthPanel",props:Object.assign(Object.assign({},nf),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){const t=rf(e,e.type),{dateLocaleRef:n}=on("DatePicker"),r=a=>{switch(a.type){case"year":return a0(a.dateObject.year,a.yearFormat,n.value.locale);case"month":return i0(a.dateObject.month,a.monthFormat,n.value.locale);case"quarter":return l0(a.dateObject.quarter,a.quarterFormat,n.value.locale)}},{useAsQuickJump:o}=e,i=(a,l,d)=>{const{mergedIsDateDisabled:c,handleDateClick:u,handleQuickMonthClick:f}=t;return s("div",{"data-n-date":!0,key:l,class:[`${d}-date-panel-month-calendar__picker-col-item`,a.isCurrent&&`${d}-date-panel-month-calendar__picker-col-item--current`,a.selected&&`${d}-date-panel-month-calendar__picker-col-item--selected`,!o&&c(a.ts,a.type==="year"?{type:"year",year:a.dateObject.year}:a.type==="month"?{type:"month",year:a.dateObject.year,month:a.dateObject.month}:a.type==="quarter"?{type:"month",year:a.dateObject.year,month:a.dateObject.quarter}:null)&&`${d}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{o?f(a,v=>{e.onUpdateValue(v,!1)}):u(a)}},r(a))};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:i})},render(){const{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:o,type:i,onRender:a}=this;return a?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},s("div",{class:`${e}-date-panel-month-calendar`},s(Zt,{ref:"yearScrollbarRef",class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>s($r,{ref:"yearVlRef",items:this.yearArray,itemSize:ci,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:l,index:d})=>o(l,d,e)})}),i==="month"||i==="quarter"?s("div",{class:`${e}-date-panel-month-calendar__picker-col`},s(Zt,{ref:"monthScrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(i==="month"?this.monthArray:this.quarterArray).map((l,d)=>o(l,d,e)),s("div",{class:`${e}-date-panel-${i}-calendar__padding`})]})):null),yt(this.datePickerSlots.footer,l=>l?s("div",{class:`${e}-date-panel-footer`},l):null),r?.length||n?s("div",{class:`${e}-date-panel-actions`},s("div",{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(l=>{const d=n[l];return Array.isArray(d)?null:s(zr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(d)},onClick:()=>{this.handleSingleShortcutClick(d)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>l})})),s("div",{class:`${e}-date-panel-actions__suffix`},r?.includes("clear")?an(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[s(Ot,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r?.includes("now")?an(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[s(Ot,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r?.includes("confirm")?an(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[s(Ot,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}}),qi=Y({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const e=B(null),t=B(null),n=B(!1);function r(i){var a;n.value&&!(!((a=e.value)===null||a===void 0)&&a.contains(Jn(i)))&&(n.value=!1)}function o(){n.value=!n.value}return{show:n,triggerRef:e,monthPanelRef:t,handleHeaderClick:o,handleClickOutside:r}},render(){const{handleClickOutside:e,mergedClsPrefix:t}=this;return s("div",{class:`${t}-date-panel-month__month-year`,ref:"triggerRef"},s(yr,null,{default:()=>[s(wr,null,{default:()=>s("div",{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth,this.monthYearSeparator,this.calendarYear]:[this.calendarYear,this.monthYearSeparator,this.calendarMonth])}),s(sr,{show:this.show,teleportDisabled:!0},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?rn(s(hx,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[Qn,e,void 0,{capture:!0}]]):null})})]}))}}),o6=Y({name:"DatePanel",props:Object.assign(Object.assign({},nf),{type:{type:String,required:!0}}),setup(e){return rf(e,e.type)},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,datePickerSlots:l,type:d}=this;return a?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--${d}`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},s("div",{class:`${r}-date-panel-calendar`},s("div",{class:`${r}-date-panel-month`},s("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.prevYear},ht(l["prev-year"],()=>[s(Po,null)])),s("div",{class:`${r}-date-panel-month__prev`,onClick:this.prevMonth},ht(l["prev-month"],()=>[s(ko,null)])),s(qi,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:r,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),s("div",{class:`${r}-date-panel-month__next`,onClick:this.nextMonth},ht(l["next-month"],()=>[s($o,null)])),s("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.nextYear},ht(l["next-year"],()=>[s(zo,null)]))),s("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>s("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),s("div",{class:`${r}-date-panel-dates`},this.dateArray.map((c,u)=>s("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(c.ts,{type:"date",year:c.dateObject.year,month:c.dateObject.month,date:c.dateObject.date}),[`${r}-date-panel-date--week-hovered`]:this.isWeekHovered(c),[`${r}-date-panel-date--week-selected`]:c.inSelectedWeek}],onClick:()=>{this.handleDateClick(c)},onMouseenter:()=>{this.handleDateMouseEnter(c)}},s("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?s("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?s("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?s("div",{class:`${r}-date-panel-actions`},s("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)?null:s(zr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(u)},onClick:()=>{this.handleSingleShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c})})),s("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?an(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?an(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}}),of=Object.assign(Object.assign({},ux),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function af(e,t){var n,r;const{isDateDisabledRef:o,isStartHourDisabledRef:i,isEndHourDisabledRef:a,isStartMinuteDisabledRef:l,isEndMinuteDisabledRef:d,isStartSecondDisabledRef:c,isEndSecondDisabledRef:u,isStartDateInvalidRef:f,isEndDateInvalidRef:v,isStartTimeInvalidRef:m,isEndTimeInvalidRef:h,isStartValueInvalidRef:g,isEndValueInvalidRef:p,isRangeInvalidRef:b,localeRef:y,rangesRef:R,closeOnSelectRef:w,updateValueOnCloseRef:C,firstDayOfWeekRef:P,datePickerSlots:k,monthFormatRef:O,yearFormatRef:$,quarterFormatRef:T,yearRangeRef:D}=Be(Vs),I={isDateDisabled:o,isStartHourDisabled:i,isEndHourDisabled:a,isStartMinuteDisabled:l,isEndMinuteDisabled:d,isStartSecondDisabled:c,isEndSecondDisabled:u,isStartDateInvalid:f,isEndDateInvalid:v,isStartTimeInvalid:m,isEndTimeInvalid:h,isStartValueInvalid:g,isEndValueInvalid:p,isRangeInvalid:b},A=fx(e),E=B(null),N=B(null),U=B(null),q=B(null),J=B(null),ve=B(null),ae=B(null),W=B(null),{value:j}=e,_=(n=e.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(j)&&typeof j[0]=="number"?j[0]:Date.now(),L=B(_),Z=B((r=e.defaultCalendarEndTime)!==null&&r!==void 0?r:Array.isArray(j)&&typeof j[1]=="number"?j[1]:tt(kn(_,1)));bt(!0);const ce=B(Date.now()),ye=B(!1),_e=B(0),V=S(()=>e.dateFormat||y.value.dateFormat),ze=S(()=>e.calendarDayFormat||y.value.dayFormat),Ae=B(Array.isArray(j)?Dt(j[0],V.value,A.dateFnsOptions.value):""),Ne=B(Array.isArray(j)?Dt(j[1],V.value,A.dateFnsOptions.value):""),je=S(()=>ye.value?"end":"start"),qe=S(()=>{var xe;return bs(L.value,e.value,ce.value,(xe=P.value)!==null&&xe!==void 0?xe:y.value.firstDayOfWeek)}),gt=S(()=>{var xe;return bs(Z.value,e.value,ce.value,(xe=P.value)!==null&&xe!==void 0?xe:y.value.firstDayOfWeek)}),at=S(()=>qe.value.slice(0,7).map(xe=>{const{ts:Ve}=xe;return Dt(Ve,ze.value,A.dateFnsOptions.value)})),Te=S(()=>Dt(L.value,e.calendarHeaderMonthFormat||y.value.monthFormat,A.dateFnsOptions.value)),Q=S(()=>Dt(Z.value,e.calendarHeaderMonthFormat||y.value.monthFormat,A.dateFnsOptions.value)),ue=S(()=>Dt(L.value,e.calendarHeaderYearFormat||y.value.yearFormat,A.dateFnsOptions.value)),G=S(()=>Dt(Z.value,e.calendarHeaderYearFormat||y.value.yearFormat,A.dateFnsOptions.value)),fe=S(()=>{const{value:xe}=e;return Array.isArray(xe)?xe[0]:null}),we=S(()=>{const{value:xe}=e;return Array.isArray(xe)?xe[1]:null}),te=S(()=>{const{shortcuts:xe}=e;return xe||R.value}),X=S(()=>Ic(Ti(e.value,"start"),ce.value,{yearFormat:$.value},D)),he=S(()=>Ic(Ti(e.value,"end"),ce.value,{yearFormat:$.value},D)),Ie=S(()=>{const xe=Ti(e.value,"start");return Mc(xe??Date.now(),xe,ce.value,{quarterFormat:T.value})}),me=S(()=>{const xe=Ti(e.value,"end");return Mc(xe??Date.now(),xe,ce.value,{quarterFormat:T.value})}),Ke=S(()=>{const xe=Ti(e.value,"start");return Fc(xe??Date.now(),xe,ce.value,{monthFormat:O.value})}),st=S(()=>{const xe=Ti(e.value,"end");return Fc(xe??Date.now(),xe,ce.value,{monthFormat:O.value})}),xt=S(()=>{var xe;return(xe=e.calendarHeaderMonthBeforeYear)!==null&&xe!==void 0?xe:y.value.monthBeforeYear});ct(S(()=>e.value),xe=>{if(xe!==null&&Array.isArray(xe)){const[Ve,Ge]=xe;Ae.value=Dt(Ve,V.value,A.dateFnsOptions.value),Ne.value=Dt(Ge,V.value,A.dateFnsOptions.value),ye.value||Ce(xe)}else Ae.value="",Ne.value=""});function vt(xe,Ve){(t==="daterange"||t==="datetimerange")&&(Gt(xe)!==Gt(Ve)||Kt(xe)!==Kt(Ve))&&A.disableTransitionOneTick()}ct(L,vt),ct(Z,vt);function bt(xe){const Ve=mr(L.value),Ge=mr(Z.value);(e.bindCalendarMonths||Ve>=Ge)&&(xe?Z.value=tt(kn(Ve,1)):L.value=tt(kn(Ge,-1)))}function pt(){L.value=tt(kn(L.value,12)),bt(!0)}function He(){L.value=tt(kn(L.value,-12)),bt(!0)}function nt(){L.value=tt(kn(L.value,1)),bt(!0)}function K(){L.value=tt(kn(L.value,-1)),bt(!0)}function H(){Z.value=tt(kn(Z.value,12)),bt(!1)}function pe(){Z.value=tt(kn(Z.value,-12)),bt(!1)}function $e(){Z.value=tt(kn(Z.value,1)),bt(!1)}function Oe(){Z.value=tt(kn(Z.value,-1)),bt(!1)}function ne(xe){L.value=xe,bt(!0)}function Se(xe){Z.value=xe,bt(!1)}function ee(xe){const Ve=o.value;if(!Ve)return!1;if(!Array.isArray(e.value)||je.value==="start")return Ve(xe,"start",null);{const{value:Ge}=_e;return xe<_e.value?Ve(xe,"start",[Ge,Ge]):Ve(xe,"end",[Ge,Ge])}}function Ce(xe){if(xe===null)return;const[Ve,Ge]=xe;L.value=Ve,mr(Ge)<=mr(Ve)?Z.value=tt(mr(kn(Ve,1))):Z.value=tt(mr(Ge))}function Ue(xe){if(!ye.value)ye.value=!0,_e.value=xe.ts,De(xe.ts,xe.ts,"done");else{ye.value=!1;const{value:Ve}=e;e.panel&&Array.isArray(Ve)?De(Ve[0],Ve[1],"done"):w.value&&t==="daterange"&&(C.value?Me():se())}}function Ye(xe){if(ye.value){if(ee(xe.ts))return;xe.ts>=_e.value?De(_e.value,xe.ts,"wipPreview"):De(xe.ts,_e.value,"wipPreview")}}function se(){b.value||(A.doConfirm(),Me())}function Me(){ye.value=!1,e.active&&A.doClose()}function re(xe){typeof xe!="number"&&(xe=tt(xe)),e.value===null?A.doUpdateValue([xe,xe],e.panel):Array.isArray(e.value)&&A.doUpdateValue([xe,Math.max(e.value[1],xe)],e.panel)}function ke(xe){typeof xe!="number"&&(xe=tt(xe)),e.value===null?A.doUpdateValue([xe,xe],e.panel):Array.isArray(e.value)&&A.doUpdateValue([Math.min(e.value[0],xe),xe],e.panel)}function De(xe,Ve,Ge){if(typeof xe!="number"&&(xe=tt(xe)),Ge!=="shortcutPreview"&&Ge!=="shortcutDone"){let Tt,fn;if(t==="datetimerange"){const{defaultTime:Lt}=e;typeof Lt=="function"?(Tt=yv(xe,Lt,"start",[xe,Ve]),fn=yv(Ve,Lt,"end",[xe,Ve])):Array.isArray(Lt)?(Tt=Li(Lt[0]),fn=Li(Lt[1])):(Tt=Li(Lt),fn=Tt)}Tt&&(xe=tt(An(xe,Tt))),fn&&(Ve=tt(An(Ve,fn)))}A.doUpdateValue([xe,Ve],e.panel&&(Ge==="done"||Ge==="shortcutDone"))}function Qe(xe){return tt(t==="datetimerange"?Hu(xe):t==="monthrange"?mr(xe):Hr(xe))}function rt(xe){const Ve=qn(xe,V.value,new Date,A.dateFnsOptions.value);if(br(Ve))if(e.value){if(Array.isArray(e.value)){const Ge=An(e.value[0],{year:Gt(Ve),month:Kt(Ve),date:gr(Ve)});re(Qe(tt(Ge)))}}else{const Ge=An(new Date,{year:Gt(Ve),month:Kt(Ve),date:gr(Ve)});re(Qe(tt(Ge)))}else Ae.value=xe}function oe(xe){const Ve=qn(xe,V.value,new Date,A.dateFnsOptions.value);if(br(Ve)){if(e.value===null){const Ge=An(new Date,{year:Gt(Ve),month:Kt(Ve),date:gr(Ve)});ke(Qe(tt(Ge)))}else if(Array.isArray(e.value)){const Ge=An(e.value[1],{year:Gt(Ve),month:Kt(Ve),date:gr(Ve)});ke(Qe(tt(Ge)))}}else Ne.value=xe}function Re(){const xe=qn(Ae.value,V.value,new Date,A.dateFnsOptions.value),{value:Ve}=e;if(br(xe)){if(Ve===null){const Ge=An(new Date,{year:Gt(xe),month:Kt(xe),date:gr(xe)});re(Qe(tt(Ge)))}else if(Array.isArray(Ve)){const Ge=An(Ve[0],{year:Gt(xe),month:Kt(xe),date:gr(xe)});re(Qe(tt(Ge)))}}else de()}function We(){const xe=qn(Ne.value,V.value,new Date,A.dateFnsOptions.value),{value:Ve}=e;if(br(xe)){if(Ve===null){const Ge=An(new Date,{year:Gt(xe),month:Kt(xe),date:gr(xe)});ke(Qe(tt(Ge)))}else if(Array.isArray(Ve)){const Ge=An(Ve[1],{year:Gt(xe),month:Kt(xe),date:gr(xe)});ke(Qe(tt(Ge)))}}else de()}function de(xe){const{value:Ve}=e;if(Ve===null||!Array.isArray(Ve)){Ae.value="",Ne.value="";return}xe===void 0&&(xe=Ve),Ae.value=Dt(xe[0],V.value,A.dateFnsOptions.value),Ne.value=Dt(xe[1],V.value,A.dateFnsOptions.value)}function Pe(xe){xe!==null&&re(xe)}function Le(xe){xe!==null&&ke(xe)}function Ze(xe){A.cachePendingValue();const Ve=A.getShortcutValue(xe);Array.isArray(Ve)&&De(Ve[0],Ve[1],"shortcutPreview")}function et(xe){const Ve=A.getShortcutValue(xe);Array.isArray(Ve)&&(De(Ve[0],Ve[1],"shortcutDone"),A.clearPendingValue(),se())}function $t(xe,Ve){const Ge=xe===void 0?e.value:xe;if(xe===void 0||Ve==="start"){if(ae.value){const Tt=Array.isArray(Ge)?Kt(Ge[0]):Kt(Date.now());ae.value.scrollTo({debounce:!1,index:Tt,elSize:ci})}if(J.value){const Tt=(Array.isArray(Ge)?Gt(Ge[0]):Gt(Date.now()))-D.value[0];J.value.scrollTo({index:Tt,debounce:!1})}}if(xe===void 0||Ve==="end"){if(W.value){const Tt=Array.isArray(Ge)?Kt(Ge[1]):Kt(Date.now());W.value.scrollTo({debounce:!1,index:Tt,elSize:ci})}if(ve.value){const Tt=(Array.isArray(Ge)?Gt(Ge[1]):Gt(Date.now()))-D.value[0];ve.value.scrollTo({index:Tt,debounce:!1})}}}function Jt(xe,Ve){const{value:Ge}=e,Tt=!Array.isArray(Ge),fn=xe.type==="year"&&t!=="yearrange"?Tt?An(xe.ts,{month:Kt(t==="quarterrange"?Ha(new Date):new Date)}).valueOf():An(xe.ts,{month:Kt(t==="quarterrange"?Ha(Ge[Ve==="start"?0:1]):Ge[Ve==="start"?0:1])}).valueOf():xe.ts;if(Tt){const Sr=Qe(fn),or=[Sr,Sr];A.doUpdateValue(or,e.panel),$t(or,"start"),$t(or,"end"),A.disableTransitionOneTick();return}const Lt=[Ge[0],Ge[1]];let fr=!1;switch(Ve==="start"?(Lt[0]=Qe(fn),Lt[0]>Lt[1]&&(Lt[1]=Lt[0],fr=!0)):(Lt[1]=Qe(fn),Lt[0]>Lt[1]&&(Lt[0]=Lt[1],fr=!0)),A.doUpdateValue(Lt,e.panel),t){case"monthrange":case"quarterrange":A.disableTransitionOneTick(),fr?($t(Lt,"start"),$t(Lt,"end")):$t(Lt,Ve);break;case"yearrange":A.disableTransitionOneTick(),$t(Lt,"start"),$t(Lt,"end")}}function Qt(){var xe;(xe=U.value)===null||xe===void 0||xe.sync()}function Tn(){var xe;(xe=q.value)===null||xe===void 0||xe.sync()}function Dn(xe){var Ve,Ge;return xe==="start"?((Ve=J.value)===null||Ve===void 0?void 0:Ve.listElRef)||null:((Ge=ve.value)===null||Ge===void 0?void 0:Ge.listElRef)||null}function un(xe){var Ve,Ge;return xe==="start"?((Ve=J.value)===null||Ve===void 0?void 0:Ve.itemsElRef)||null:((Ge=ve.value)===null||Ge===void 0?void 0:Ge.itemsElRef)||null}const At={startYearVlRef:J,endYearVlRef:ve,startMonthScrollbarRef:ae,endMonthScrollbarRef:W,startYearScrollbarRef:U,endYearScrollbarRef:q};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:E,endDatesElRef:N,handleDateClick:Ue,handleColItemClick:Jt,handleDateMouseEnter:Ye,handleConfirmClick:se,startCalendarPrevYear:He,startCalendarPrevMonth:K,startCalendarNextYear:pt,startCalendarNextMonth:nt,endCalendarPrevYear:pe,endCalendarPrevMonth:Oe,endCalendarNextMonth:$e,endCalendarNextYear:H,mergedIsDateDisabled:ee,changeStartEndTime:De,ranges:R,calendarMonthBeforeYear:xt,startCalendarMonth:Te,startCalendarYear:ue,endCalendarMonth:Q,endCalendarYear:G,weekdays:at,startDateArray:qe,endDateArray:gt,startYearArray:X,startMonthArray:Ke,startQuarterArray:Ie,endYearArray:he,endMonthArray:st,endQuarterArray:me,isSelecting:ye,handleRangeShortcutMouseenter:Ze,handleRangeShortcutClick:et},A),I),At),{startDateDisplayString:Ae,endDateInput:Ne,timePickerSize:A.timePickerSize,startTimeValue:fe,endTimeValue:we,datePickerSlots:k,shortcuts:te,startCalendarDateTime:L,endCalendarDateTime:Z,justifyColumnsScrollState:$t,handleFocusDetectorFocus:A.handleFocusDetectorFocus,handleStartTimePickerChange:Pe,handleEndTimePickerChange:Le,handleStartDateInput:rt,handleStartDateInputBlur:Re,handleEndDateInput:oe,handleEndDateInputBlur:We,handleStartYearVlScroll:Qt,handleEndYearVlScroll:Tn,virtualListContainer:Dn,virtualListContent:un,onUpdateStartCalendarValue:ne,onUpdateEndCalendarValue:Se})}const i6=Y({name:"DateRangePanel",props:of,setup(e){return af(e,"daterange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,onRender:a,datePickerSlots:l}=this;return a?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},s("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},s("div",{class:`${r}-date-panel-month`},s("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},ht(l["prev-year"],()=>[s(Po,null)])),s("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},ht(l["prev-month"],()=>[s(ko,null)])),s(qi,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),s("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},ht(l["next-month"],()=>[s($o,null)])),s("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},ht(l["next-year"],()=>[s(zo,null)]))),s("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>s("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),s("div",{class:`${r}-date-panel__divider`}),s("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((d,c)=>s("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},s("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?s("div",{class:`${r}-date-panel-date__sup`}):null)))),s("div",{class:`${r}-date-panel__vertical-divider`}),s("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},s("div",{class:`${r}-date-panel-month`},s("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},ht(l["prev-year"],()=>[s(Po,null)])),s("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},ht(l["prev-month"],()=>[s(ko,null)])),s(qi,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),s("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},ht(l["next-month"],()=>[s($o,null)])),s("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},ht(l["next-year"],()=>[s(zo,null)]))),s("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(d=>s("div",{key:d,class:`${r}-date-panel-weekdays__day`},d))),s("div",{class:`${r}-date-panel__divider`}),s("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((d,c)=>s("div",{"data-n-date":!0,key:c,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!d.inCurrentMonth,[`${r}-date-panel-date--current`]:d.isCurrentDate,[`${r}-date-panel-date--selected`]:d.selected,[`${r}-date-panel-date--covered`]:d.inSpan,[`${r}-date-panel-date--start`]:d.startOfSpan,[`${r}-date-panel-date--end`]:d.endOfSpan,[`${r}-date-panel-date--disabled`]:this.mergedIsDateDisabled(d.ts)}],onClick:()=>{this.handleDateClick(d)},onMouseenter:()=>{this.handleDateMouseEnter(d)}},s("div",{class:`${r}-date-panel-date__trigger`}),d.dateObject.date,d.isCurrentDate?s("div",{class:`${r}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?s("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?s("div",{class:`${r}-date-panel-actions`},s("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(d=>{const c=i[d];return Array.isArray(c)||typeof c=="function"?s(zr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(c)},onClick:()=>{this.handleRangeShortcutClick(c)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>d}):null})),s("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?an(l.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?an(l.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}});function Ev(e,t,n){const r=Zb(),o=s6(e,n.timeZone,n.locale??r.locale);return"formatToParts"in o?a6(o,t):l6(o,t)}function a6(e,t){const n=e.formatToParts(t);for(let r=n.length-1;r>=0;--r)if(n[r].type==="timeZoneName")return n[r].value}function l6(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}function s6(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function d6(e,t){const n=v6(t);return"formatToParts"in n?u6(n,e):f6(n,e)}const c6={year:0,month:1,day:2,hour:3,minute:4,second:5};function u6(e,t){try{const n=e.formatToParts(t),r=[];for(let o=0;o=0?i:1e3+i,r-o}function p6(e,t,n){let o=e.getTime()-t;const i=Ec(new Date(o),n);if(t===i)return t;o-=i-t;const a=Ec(new Date(o),n);return i===a?i:Math.max(i,a)}function Hv(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const jv={};function b6(e){if(jv[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),jv[e]=!0,!0}catch{return!1}}const x6=60*1e3,y6={X:function(e,t,n){const r=Ed(n.timeZone,e);if(r===0)return"Z";switch(t){case"X":return Vv(r);case"XXXX":case"XX":return Bi(r);default:return Bi(r,":")}},x:function(e,t,n){const r=Ed(n.timeZone,e);switch(t){case"x":return Vv(r);case"xxxx":case"xx":return Bi(r);default:return Bi(r,":")}},O:function(e,t,n){const r=Ed(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+w6(r,":");default:return"GMT"+Bi(r,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return Ev("short",e,n);default:return Ev("long",e,n)}}};function Ed(e,t){const n=e?lf(e,t,!0)/x6:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function xs(e,t){const n=e<0?"-":"";let r=Math.abs(e).toString();for(;r.length0?"-":"+",r=Math.abs(e),o=xs(Math.floor(r/60),2),i=xs(Math.floor(r%60),2);return n+o+t+i}function Vv(e,t){return e%60===0?(e>0?"-":"+")+xs(Math.abs(e)/60,2):Bi(e,t)}function w6(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+xs(i,2)}function Uv(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const C6=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Nd=36e5,Wv=6e4,S6=2,jn={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:C6};function gx(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?S6:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const r=R6(e),{year:o,restDateString:i}=k6(r.date,n),a=P6(i,o);if(a===null||isNaN(a.getTime()))return new Date(NaN);if(a){const l=a.getTime();let d=0,c;if(r.time&&(d=z6(r.time),d===null||isNaN(d)))return new Date(NaN);if(r.timeZone||t.timeZone){if(c=lf(r.timeZone||t.timeZone,new Date(l+d)),isNaN(c))return new Date(NaN)}else c=Uv(new Date(l+d)),c=Uv(new Date(l+d+c));return new Date(l+d+c)}else return new Date(NaN)}function R6(e){const t={};let n=jn.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=jn.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){const o=jn.timeZone.exec(r);o?(t.time=r.replace(o[1],""),t.timeZone=o[1].trim()):t.time=r}return t}function k6(e,t){if(e){const n=jn.YYY[t],r=jn.YYYYY[t];let o=jn.YYYY.exec(e)||r.exec(e);if(o){const i=o[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(o=jn.YY.exec(e)||n.exec(e),o){const i=o[1];return{year:parseInt(i,10)*100,restDateString:e.slice(i.length)}}}return{year:null}}function P6(e,t){if(t===null)return null;let n,r,o;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let i=jn.MM.exec(e);if(i)return n=new Date(0),r=parseInt(i[1],10)-1,qv(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(i=jn.DDD.exec(e),i){n=new Date(0);const a=parseInt(i[1],10);return O6(t,a)?(n.setUTCFullYear(t,0,a),n):new Date(NaN)}if(i=jn.MMDD.exec(e),i){n=new Date(0),r=parseInt(i[1],10)-1;const a=parseInt(i[2],10);return qv(t,r,a)?(n.setUTCFullYear(t,r,a),n):new Date(NaN)}if(i=jn.Www.exec(e),i)return o=parseInt(i[1],10)-1,Yv(o)?Kv(t,o):new Date(NaN);if(i=jn.WwwD.exec(e),i){o=parseInt(i[1],10)-1;const a=parseInt(i[2],10)-1;return Yv(o,a)?Kv(t,o,a):new Date(NaN)}return null}function z6(e){let t,n,r=jn.HH.exec(e);if(r)return t=parseFloat(r[1].replace(",",".")),Ld(t)?t%24*Nd:NaN;if(r=jn.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(",",".")),Ld(t,n)?t%24*Nd+n*Wv:NaN;if(r=jn.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);const o=parseFloat(r[3].replace(",","."));return Ld(t,n,o)?t%24*Nd+n*Wv+o*1e3:NaN}return null}function Kv(e,t,n){t=t||0,n=n||0;const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=t*7+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}const $6=[31,28,31,30,31,30,31,31,30,31,30,31],T6=[31,29,31,30,31,30,31,31,30,31,30,31];function mx(e){return e%400===0||e%4===0&&e%100!==0}function qv(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const r=mx(e);if(r&&n>T6[t]||!r&&n>$6[t])return!1}return!0}function O6(e,t){if(t<1)return!1;const n=mx(e);return!(n&&t>366||!n&&t>365)}function Yv(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function Ld(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const F6=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function M6(e,t,n={}){t=String(t);const r=t.match(F6);if(r){const o=gx(n.originalDate||e,n);t=r.reduce(function(i,a){if(a[0]==="'")return i;const l=i.indexOf(a),d=i[l-1]==="'",c=i.replace(a,"'"+y6[a[0]](o,a,n)+"'");return d?c.substring(0,l-1)+c.substring(l+1):c},t)}return Dt(e,t,n)}function I6(e,t,n){e=gx(e,n);const r=lf(t,e,!0),o=new Date(e.getTime()-r),i=new Date(0);return i.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),i.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),i}function px(e,t,n,r){return r={...r,timeZone:t,originalDate:e},M6(I6(e,t,{timeZone:r.timeZone}),n,r)}const bx="n-time-picker",Al=Y({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){const{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{const{label:o,disabled:i,value:a}=r,l=e===a;return s("div",{key:o,"data-active":l?"":null,class:[`${n}-time-picker-col__item`,l&&`${n}-time-picker-col__item--active`,i&&`${n}-time-picker-col__item--disabled`],onClick:t&&!i?()=>{t(a)}:void 0},o)})}}),Ra={amHours:["00","01","02","03","04","05","06","07","08","09","10","11"],pmHours:["12","01","02","03","04","05","06","07","08","09","10","11"],hours:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],minutes:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],seconds:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"],period:["AM","PM"]};function Hd(e){return`00${e}`.slice(-2)}function ka(e,t,n){return Array.isArray(t)?(n==="am"?t.filter(r=>r<12):n==="pm"?t.filter(r=>r>=12).map(r=>r===12?12:r-12):t).map(r=>Hd(r)):typeof t=="number"?n==="am"?e.filter(r=>{const o=Number(r);return o<12&&o%t===0}):n==="pm"?e.filter(r=>{const o=Number(r);return o>=12&&o%t===0}).map(r=>{const o=Number(r);return Hd(o===12?12:o-12)}):e.filter(r=>Number(r)%t===0):n==="am"?e.filter(r=>Number(r)<12):n==="pm"?e.map(r=>Number(r)).filter(r=>Number(r)>=12).map(r=>Hd(r===12?12:r-12)):e}function Dl(e,t,n){return n?typeof n=="number"?e%n===0:n.includes(e):!0}function B6(e,t,n){const r=ka(Ra[t],n).map(Number);let o,i;for(let a=0;ae){i=l;break}o=l}return o===void 0?(i||mn("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),i):i===void 0||i-e>e-o?o:i}function A6(e){return go(e)<12?"am":"pm"}const D6={actions:{type:Array,default:()=>["now","confirm"]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},_6=Y({name:"TimePickerPanel",props:D6,setup(e){const{mergedThemeRef:t,mergedClsPrefixRef:n}=Be(bx),r=S(()=>{const{isHourDisabled:l,hours:d,use12Hours:c,amPmValue:u}=e;if(c){const f=u??A6(Date.now());return ka(Ra.hours,d,f).map(v=>{const m=Number(v),h=f==="pm"&&m!==12?m+12:m;return{label:v,value:h,disabled:l?l(h):!1}})}else return ka(Ra.hours,d).map(f=>({label:f,value:Number(f),disabled:l?l(Number(f)):!1}))}),o=S(()=>{const{isMinuteDisabled:l,minutes:d}=e;return ka(Ra.minutes,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.hourValue):!1}))}),i=S(()=>{const{isSecondDisabled:l,seconds:d}=e;return ka(Ra.seconds,d).map(c=>({label:c,value:Number(c),disabled:l?l(Number(c),e.minuteValue,e.hourValue):!1}))}),a=S(()=>{const{isHourDisabled:l}=e;let d=!0,c=!0;for(let u=0;u<12;++u)if(!l?.(u)){d=!1;break}for(let u=12;u<24;++u)if(!l?.(u)){c=!1;break}return[{label:"AM",value:"am",disabled:d},{label:"PM",value:"pm",disabled:c}]});return{mergedTheme:t,mergedClsPrefix:n,hours:r,minutes:o,seconds:i,amPm:a,hourScrollRef:B(null),minuteScrollRef:B(null),secondScrollRef:B(null),amPmScrollRef:B(null)}},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i}=this;return s("div",{tabindex:0,class:`${o}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},s("div",{class:`${o}-time-picker-cols`},this.showHour?s("div",{class:[`${o}-time-picker-col`,this.isHourInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},s(Zt,{ref:"hourScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[s(Al,{clsPrefix:o,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),s("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showMinute?s("div",{class:[`${o}-time-picker-col`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${o}-time-picker-col--invalid`]},s(Zt,{ref:"minuteScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[s(Al,{clsPrefix:o,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),s("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showSecond?s("div",{class:[`${o}-time-picker-col`,this.isSecondInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},s(Zt,{ref:"secondScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[s(Al,{clsPrefix:o,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),s("div",{class:`${o}-time-picker-col__padding`})]})):null,this.use12Hours?s("div",{class:[`${o}-time-picker-col`,this.isAmPmInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},s(Zt,{ref:"amPmScrollRef",theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar},{default:()=>[s(Al,{clsPrefix:o,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),s("div",{class:`${o}-time-picker-col__padding`})]})):null),!((e=this.actions)===null||e===void 0)&&e.length?s("div",{class:`${o}-time-picker-actions`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?s(Ot,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.onClearClick},{default:()=>this.clearText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?s(Ot,{size:"tiny",theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?s(Ot,{size:"tiny",type:"primary",class:`${o}-time-picker-actions__confirm`,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,s(qr,{onFocus:this.onFocusDetectorFocus}))}}),E6=z([x("time-picker",` + z-index: auto; + position: relative; + `,[x("time-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),M("disabled",[x("time-picker-icon",` + color: var(--n-icon-color-disabled-override); + `)])]),x("time-picker-panel",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + outline: none; + font-size: var(--n-item-font-size); + border-radius: var(--n-border-radius); + margin: 4px 0; + min-width: 104px; + overflow: hidden; + background-color: var(--n-panel-color); + box-shadow: var(--n-panel-box-shadow); + `,[Cn(),x("time-picker-actions",` + padding: var(--n-panel-action-padding); + align-items: center; + display: flex; + justify-content: space-evenly; + `),x("time-picker-cols",` + height: calc(var(--n-item-height) * 6); + display: flex; + position: relative; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-panel-divider-color); + `),x("time-picker-col",` + flex-grow: 1; + min-width: var(--n-item-width); + height: calc(var(--n-item-height) * 6); + flex-direction: column; + transition: box-shadow .3s var(--n-bezier); + `,[M("transition-disabled",[F("item","transition: none;",[z("&::before","transition: none;")])]),F("padding",` + height: calc(var(--n-item-height) * 5); + `),z("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[F("item",[z("&::before","left: 4px;")])]),F("item",` + cursor: pointer; + height: var(--n-item-height); + display: flex; + align-items: center; + justify-content: center; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + background: #0000; + text-decoration-color: #0000; + color: var(--n-item-text-color); + z-index: 0; + box-sizing: border-box; + padding-top: 4px; + position: relative; + `,[z("&::before",` + content: ""; + transition: background-color .3s var(--n-bezier); + z-index: -1; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-item-border-radius); + `),ft("disabled",[z("&:hover::before",` + background-color: var(--n-item-color-hover); + `)]),M("active",` + color: var(--n-item-text-color-active); + `,[z("&::before",` + background-color: var(--n-item-color-hover); + `)]),M("disabled",` + opacity: var(--n-item-opacity-disabled); + cursor: not-allowed; + `)]),M("invalid",[F("item",[M("active",` + text-decoration: line-through; + text-decoration-color: var(--n-item-text-color-active); + `)])])])])]);function jd(e,t){return e===void 0?!0:Array.isArray(e)?e.every(n=>n>=0&&n<=t):e>=0&&e<=t}const xx=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:"bottom-start"},value:Number,format:{type:String,default:"HH:mm:ss"},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>jd(e,23)},minutes:{type:[Number,Array],validator:e=>jd(e,59)},seconds:{type:[Number,Array],validator:e=>jd(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),ys=Y({name:"TimePicker",props:xx,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Ee(e),{localeRef:i,dateLocaleRef:a}=on("TimePicker"),l=ln(e),{mergedSizeRef:d,mergedDisabledRef:c,mergedStatusRef:u}=l,f=ge("TimePicker","-time-picker",E6,cx,e,n),v=fu(),m=B(null),h=B(null),g=S(()=>({locale:a.value.locale}));function p(se){return se===null?null:qn(se,e.valueFormat||e.format,new Date,g.value).getTime()}const{defaultValue:b,defaultFormattedValue:y}=e,R=B(y!==void 0?p(y):b),w=S(()=>{const{formattedValue:se}=e;if(se!==void 0)return p(se);const{value:Me}=e;return Me!==void 0?Me:R.value}),C=S(()=>{const{timeZone:se}=e;return se?(Me,re,ke)=>px(Me,se,re,ke):(Me,re,ke)=>Dt(Me,re,ke)}),P=B("");ct(()=>e.timeZone,()=>{const se=w.value;P.value=se===null?"":C.value(se,e.format,g.value)},{immediate:!0});const k=B(!1),O=le(e,"show"),$=St(O,k),T=B(w.value),D=B(!1),I=S(()=>i.value.clear),A=S(()=>i.value.now),E=S(()=>e.placeholder!==void 0?e.placeholder:i.value.placeholder),N=S(()=>i.value.negativeText),U=S(()=>i.value.positiveText),q=S(()=>/H|h|K|k/.test(e.format)),J=S(()=>e.format.includes("m")),ve=S(()=>e.format.includes("s")),ae=S(()=>{const{value:se}=w;return se===null?null:Number(C.value(se,"HH",g.value))}),W=S(()=>{const{value:se}=w;return se===null?null:Number(C.value(se,"mm",g.value))}),j=S(()=>{const{value:se}=w;return se===null?null:Number(C.value(se,"ss",g.value))}),_=S(()=>{const{isHourDisabled:se}=e;return ae.value===null?!1:Dl(ae.value,"hours",e.hours)?se?se(ae.value):!1:!0}),L=S(()=>{const{value:se}=W,{value:Me}=ae;if(se===null||Me===null)return!1;if(!Dl(se,"minutes",e.minutes))return!0;const{isMinuteDisabled:re}=e;return re?re(se,Me):!1}),Z=S(()=>{const{value:se}=W,{value:Me}=ae,{value:re}=j;if(re===null||se===null||Me===null)return!1;if(!Dl(re,"seconds",e.seconds))return!0;const{isSecondDisabled:ke}=e;return ke?ke(re,se,Me):!1}),ce=S(()=>_.value||L.value||Z.value),ye=S(()=>e.format.length+4),_e=S(()=>{const{value:se}=w;return se===null?null:go(se)<12?"am":"pm"});function V(se,Me){const{onUpdateFormattedValue:re,"onUpdate:formattedValue":ke}=e;re&&ie(re,se,Me),ke&&ie(ke,se,Me)}function ze(se){return se===null?null:C.value(se,e.valueFormat||e.format)}function Ae(se){const{onUpdateValue:Me,"onUpdate:value":re,onChange:ke}=e,{nTriggerFormChange:De,nTriggerFormInput:Qe}=l,rt=ze(se);Me&&ie(Me,se,rt),re&&ie(re,se,rt),ke&&ie(ke,se,rt),V(rt,se),R.value=se,De(),Qe()}function Ne(se){const{onFocus:Me}=e,{nTriggerFormFocus:re}=l;Me&&ie(Me,se),re()}function je(se){const{onBlur:Me}=e,{nTriggerFormBlur:re}=l;Me&&ie(Me,se),re()}function qe(){const{onConfirm:se}=e;se&&ie(se,w.value,ze(w.value))}function gt(se){var Me;se.stopPropagation(),Ae(null),Ie(null),(Me=e.onClear)===null||Me===void 0||Me.call(e)}function at(){K({returnFocus:!0})}function Te(){Ae(null),Ie(null),K({returnFocus:!0})}function Q(se){se.key==="Escape"&&$.value&&ai(se)}function ue(se){var Me;switch(se.key){case"Escape":$.value&&(ai(se),K({returnFocus:!0}));break;case"Tab":v.shift&&se.target===((Me=h.value)===null||Me===void 0?void 0:Me.$el)&&(se.preventDefault(),K({returnFocus:!0}));break}}function G(){D.value=!0,zt(()=>{D.value=!1})}function fe(se){c.value||en(se,"clear")||$.value||He()}function we(se){typeof se!="string"&&(w.value===null?Ae(tt(Eo(FO(new Date),se))):Ae(tt(Eo(w.value,se))))}function te(se){typeof se!="string"&&(w.value===null?Ae(tt($d(MO(new Date),se))):Ae(tt($d(w.value,se))))}function X(se){typeof se!="string"&&(w.value===null?Ae(tt(Td(Hu(new Date),se))):Ae(tt(Td(w.value,se))))}function he(se){const{value:Me}=w;if(Me===null){const re=new Date,ke=go(re);se==="pm"&&ke<12?Ae(tt(Eo(re,ke+12))):se==="am"&&ke>=12&&Ae(tt(Eo(re,ke-12))),Ae(tt(re))}else{const re=go(Me);se==="pm"&&re<12?Ae(tt(Eo(Me,re+12))):se==="am"&&re>=12&&Ae(tt(Eo(Me,re-12)))}}function Ie(se){se===void 0&&(se=w.value),se===null?P.value="":P.value=C.value(se,e.format,g.value)}function me(se){pt(se)||Ne(se)}function Ke(se){var Me;if(!pt(se))if($.value){const re=(Me=h.value)===null||Me===void 0?void 0:Me.$el;re?.contains(se.relatedTarget)||(Ie(),je(se),K({returnFocus:!1}))}else Ie(),je(se)}function st(){c.value||$.value||He()}function xt(){c.value||(Ie(),K({returnFocus:!1}))}function vt(){if(!h.value)return;const{hourScrollRef:se,minuteScrollRef:Me,secondScrollRef:re,amPmScrollRef:ke}=h.value;[se,Me,re,ke].forEach(De=>{var Qe;if(!De)return;const rt=(Qe=De.contentRef)===null||Qe===void 0?void 0:Qe.querySelector("[data-active]");rt&&De.scrollTo({top:rt.offsetTop})})}function bt(se){k.value=se;const{onUpdateShow:Me,"onUpdate:show":re}=e;Me&&ie(Me,se),re&&ie(re,se)}function pt(se){var Me,re,ke;return!!(!((re=(Me=m.value)===null||Me===void 0?void 0:Me.wrapperElRef)===null||re===void 0)&&re.contains(se.relatedTarget)||!((ke=h.value)===null||ke===void 0)&&ke.$el.contains(se.relatedTarget))}function He(){T.value=w.value,bt(!0),zt(vt)}function nt(se){var Me,re;$.value&&!(!((re=(Me=m.value)===null||Me===void 0?void 0:Me.wrapperElRef)===null||re===void 0)&&re.contains(Jn(se)))&&K({returnFocus:!1})}function K({returnFocus:se}){var Me;$.value&&(bt(!1),se&&((Me=m.value)===null||Me===void 0||Me.focus()))}function H(se){if(se===""){Ae(null);return}const Me=qn(se,e.format,new Date,g.value);if(P.value=se,br(Me)){const{value:re}=w;if(re!==null){const ke=An(re,{hours:go(Me),minutes:gs(Me),seconds:ms(Me),milliseconds:B4(Me)});Ae(tt(ke))}else Ae(tt(Me))}}function pe(){Ae(T.value),bt(!1)}function $e(){const se=new Date,Me={hours:go,minutes:gs,seconds:ms},[re,ke,De]=["hours","minutes","seconds"].map(rt=>!e[rt]||Dl(Me[rt](se),rt,e[rt])?Me[rt](se):B6(Me[rt](se),rt,e[rt])),Qe=Td($d(Eo(w.value?w.value:tt(se),re),ke),De);Ae(tt(Qe))}function Oe(){Ie(),qe(),K({returnFocus:!0})}function ne(se){pt(se)||(Ie(),je(se),K({returnFocus:!1}))}ct(w,se=>{Ie(se),G(),zt(vt)}),ct($,()=>{ce.value&&Ae(T.value)}),ot(bx,{mergedThemeRef:f,mergedClsPrefixRef:n});const Se={focus:()=>{var se;(se=m.value)===null||se===void 0||se.focus()},blur:()=>{var se;(se=m.value)===null||se===void 0||se.blur()}},ee=S(()=>{const{common:{cubicBezierEaseInOut:se},self:{iconColor:Me,iconColorDisabled:re}}=f.value;return{"--n-icon-color-override":Me,"--n-icon-color-disabled-override":re,"--n-bezier":se}}),Ce=o?Xe("time-picker-trigger",void 0,ee,e):void 0,Ue=S(()=>{const{self:{panelColor:se,itemTextColor:Me,itemTextColorActive:re,itemColorHover:ke,panelDividerColor:De,panelBoxShadow:Qe,itemOpacityDisabled:rt,borderRadius:oe,itemFontSize:Re,itemWidth:We,itemHeight:de,panelActionPadding:Pe,itemBorderRadius:Le},common:{cubicBezierEaseInOut:Ze}}=f.value;return{"--n-bezier":Ze,"--n-border-radius":oe,"--n-item-color-hover":ke,"--n-item-font-size":Re,"--n-item-height":de,"--n-item-opacity-disabled":rt,"--n-item-text-color":Me,"--n-item-text-color-active":re,"--n-item-width":We,"--n-panel-action-padding":Pe,"--n-panel-box-shadow":Qe,"--n-panel-color":se,"--n-panel-divider-color":De,"--n-item-border-radius":Le}}),Ye=o?Xe("time-picker",void 0,Ue,e):void 0;return{focus:Se.focus,blur:Se.blur,mergedStatus:u,mergedBordered:t,mergedClsPrefix:n,namespace:r,uncontrolledValue:R,mergedValue:w,isMounted:$n(),inputInstRef:m,panelInstRef:h,adjustedTo:Ht(e),mergedShow:$,localizedClear:I,localizedNow:A,localizedPlaceholder:E,localizedNegativeText:N,localizedPositiveText:U,hourInFormat:q,minuteInFormat:J,secondInFormat:ve,mergedAttrSize:ye,displayTimeString:P,mergedSize:d,mergedDisabled:c,isValueInvalid:ce,isHourInvalid:_,isMinuteInvalid:L,isSecondInvalid:Z,transitionDisabled:D,hourValue:ae,minuteValue:W,secondValue:j,amPmValue:_e,handleInputKeydown:Q,handleTimeInputFocus:me,handleTimeInputBlur:Ke,handleNowClick:$e,handleConfirmClick:Oe,handleTimeInputUpdateValue:H,handleMenuFocusOut:ne,handleCancelClick:pe,handleClickOutside:nt,handleTimeInputActivate:st,handleTimeInputDeactivate:xt,handleHourClick:we,handleMinuteClick:te,handleSecondClick:X,handleAmPmClick:he,handleTimeInputClear:gt,handleFocusDetectorFocus:at,handleMenuKeydown:ue,handleTriggerClick:fe,mergedTheme:f,triggerCssVars:o?void 0:ee,triggerThemeClass:Ce?.themeClass,triggerOnRender:Ce?.onRender,cssVars:o?void 0:Ue,themeClass:Ye?.themeClass,onRender:Ye?.onRender,clearSelectedValue:Te}},render(){const{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n?.(),s("div",{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},s(yr,null,{default:()=>[s(wr,null,{default:()=>s(Sn,{ref:"inputInstRef",status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?"line-through":void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?"clear-icon-placeholder":"suffix"]:()=>s(lt,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():s(j3,null)})}:null)}),s(sr,{teleportDisabled:this.adjustedTo===Ht.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var r;return this.mergedShow?((r=this.onRender)===null||r===void 0||r.call(this),rn(s(_6,{ref:"panelInstRef",actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[Qn,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),N6=Y({name:"DateTimePanel",props:nf,setup(e){return rf(e,"datetime")},render(){var e,t,n,r;const{mergedClsPrefix:o,mergedTheme:i,shortcuts:a,timePickerProps:l,datePickerSlots:d,onRender:c}=this;return c?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetime`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},s("div",{class:`${o}-date-panel-header`},s(Sn,{value:this.dateInputValue,theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${o}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),s(ys,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(l)?void 0:l,{showIcon:!1,to:!1,theme:i.peers.TimePicker,themeOverrides:i.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),s("div",{class:`${o}-date-panel-calendar`},s("div",{class:`${o}-date-panel-month`},s("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},ht(d["prev-year"],()=>[s(Po,null)])),s("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},ht(d["prev-month"],()=>[s(ko,null)])),s(qi,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),s("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},ht(d["next-month"],()=>[s($o,null)])),s("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},ht(d["next-year"],()=>[s(zo,null)]))),s("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(u=>s("div",{key:u,class:`${o}-date-panel-weekdays__day`},u))),s("div",{class:`${o}-date-panel-dates`},this.dateArray.map((u,f)=>s("div",{"data-n-date":!0,key:f,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:u.isCurrentDate,[`${o}-date-panel-date--selected`]:u.selected,[`${o}-date-panel-date--excluded`]:!u.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(u.ts,{type:"date",year:u.dateObject.year,month:u.dateObject.month,date:u.dateObject.date})}],onClick:()=>{this.handleDateClick(u)}},s("div",{class:`${o}-date-panel-date__trigger`}),u.dateObject.date,u.isCurrentDate?s("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?s("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||a?s("div",{class:`${o}-date-panel-actions`},s("div",{class:`${o}-date-panel-actions__prefix`},a&&Object.keys(a).map(u=>{const f=a[u];return Array.isArray(f)?null:s(zr,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(f)},onClick:()=>{this.handleSingleShortcutClick(f)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>u})})),s("div",{class:`${o}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?an(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[s(Ot,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?an(d.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[s(Ot,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,!((r=this.actions)===null||r===void 0)&&r.includes("confirm")?an(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[s(Ot,{theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}}),L6=Y({name:"DateTimeRangePanel",props:of,setup(e){return af(e,"datetimerange")},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,timePickerProps:a,onRender:l,datePickerSlots:d}=this;return l?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--datetimerange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},s("div",{class:`${r}-date-panel-header`},s(Sn,{value:this.startDateDisplayString,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),s(ys,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(a)?a[0]:a,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),s(Sn,{value:this.endDateInput,theme:o.peers.Input,themeOverrides:o.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${r}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),s(ys,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(a)?a[1]:a,{disabled:this.isSelecting,showIcon:!1,theme:o.peers.TimePicker,themeOverrides:o.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),s("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},s("div",{class:`${r}-date-panel-month`},s("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},ht(d["prev-year"],()=>[s(Po,null)])),s("div",{class:`${r}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},ht(d["prev-month"],()=>[s(ko,null)])),s(qi,{monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:r,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),s("div",{class:`${r}-date-panel-month__next`,onClick:this.startCalendarNextMonth},ht(d["next-month"],()=>[s($o,null)])),s("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},ht(d["next-year"],()=>[s(zo,null)]))),s("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>s("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),s("div",{class:`${r}-date-panel__divider`}),s("div",{class:`${r}-date-panel-dates`},this.startDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return s("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},s("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?s("div",{class:`${r}-date-panel-date__sup`}):null)}))),s("div",{class:`${r}-date-panel__vertical-divider`}),s("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},s("div",{class:`${r}-date-panel-month`},s("div",{class:`${r}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},ht(d["prev-year"],()=>[s(Po,null)])),s("div",{class:`${r}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},ht(d["prev-month"],()=>[s(ko,null)])),s(qi,{monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:r,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),s("div",{class:`${r}-date-panel-month__next`,onClick:this.endCalendarNextMonth},ht(d["next-month"],()=>[s($o,null)])),s("div",{class:`${r}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},ht(d["next-year"],()=>[s(zo,null)]))),s("div",{class:`${r}-date-panel-weekdays`},this.weekdays.map(c=>s("div",{key:c,class:`${r}-date-panel-weekdays__day`},c))),s("div",{class:`${r}-date-panel__divider`}),s("div",{class:`${r}-date-panel-dates`},this.endDateArray.map((c,u)=>{const f=this.mergedIsDateDisabled(c.ts);return s("div",{"data-n-date":!0,key:u,class:[`${r}-date-panel-date`,{[`${r}-date-panel-date--excluded`]:!c.inCurrentMonth,[`${r}-date-panel-date--current`]:c.isCurrentDate,[`${r}-date-panel-date--selected`]:c.selected,[`${r}-date-panel-date--covered`]:c.inSpan,[`${r}-date-panel-date--start`]:c.startOfSpan,[`${r}-date-panel-date--end`]:c.endOfSpan,[`${r}-date-panel-date--disabled`]:f}],onClick:f?void 0:()=>{this.handleDateClick(c)},onMouseenter:f?void 0:()=>{this.handleDateMouseEnter(c)}},s("div",{class:`${r}-date-panel-date__trigger`}),c.dateObject.date,c.isCurrentDate?s("div",{class:`${r}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?s("div",{class:`${r}-date-panel-footer`},this.datePickerSlots.footer()):null,!((e=this.actions)===null||e===void 0)&&e.length||i?s("div",{class:`${r}-date-panel-actions`},s("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?s(zr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),s("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?an(d.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?an(d.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[s(Ot,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}}),H6=Y({name:"MonthRangePanel",props:Object.assign(Object.assign({},of),{type:{type:String,required:!0}}),setup(e){const t=af(e,e.type),{dateLocaleRef:n}=on("DatePicker"),r=(o,i,a,l)=>{const{handleColItemClick:d}=t;return s("div",{"data-n-date":!0,key:i,class:[`${a}-date-panel-month-calendar__picker-col-item`,o.isCurrent&&`${a}-date-panel-month-calendar__picker-col-item--current`,o.selected&&`${a}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{d(o,l)}},o.type==="month"?i0(o.dateObject.month,o.monthFormat,n.value.locale):o.type==="quarter"?l0(o.dateObject.quarter,o.quarterFormat,n.value.locale):a0(o.dateObject.year,o.yearFormat,n.value.locale))};return It(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:r})},render(){var e,t,n;const{mergedClsPrefix:r,mergedTheme:o,shortcuts:i,type:a,renderItem:l,onRender:d}=this;return d?.(),s("div",{ref:"selfRef",tabindex:0,class:[`${r}-date-panel`,`${r}-date-panel--daterange`,!this.panel&&`${r}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},s("div",{ref:"startDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--start`},s("div",{class:`${r}-date-panel-month-calendar`},s(Zt,{ref:"startYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>s($r,{ref:"startYearVlRef",items:this.startYearArray,itemSize:ci,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"start")})}),a==="monthrange"||a==="quarterrange"?s("div",{class:`${r}-date-panel-month-calendar__picker-col`},s(Zt,{ref:"startMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.startMonthArray:this.startQuarterArray).map((c,u)=>l(c,u,r,"start")),a==="monthrange"&&s("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),s("div",{class:`${r}-date-panel__vertical-divider`}),s("div",{ref:"endDatesElRef",class:`${r}-date-panel-calendar ${r}-date-panel-calendar--end`},s("div",{class:`${r}-date-panel-month-calendar`},s(Zt,{ref:"endYearScrollbarRef",class:`${r}-date-panel-month-calendar__picker-col`,theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>s($r,{ref:"endYearVlRef",items:this.endYearArray,itemSize:ci,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:c,index:u})=>l(c,u,r,"end")})}),a==="monthrange"||a==="quarterrange"?s("div",{class:`${r}-date-panel-month-calendar__picker-col`},s(Zt,{ref:"endMonthScrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar},{default:()=>[(a==="monthrange"?this.endMonthArray:this.endQuarterArray).map((c,u)=>l(c,u,r,"end")),a==="monthrange"&&s("div",{class:`${r}-date-panel-month-calendar__padding`})]})):null)),yt(this.datePickerSlots.footer,c=>c?s("div",{class:`${r}-date-panel-footer`},c):null),!((e=this.actions)===null||e===void 0)&&e.length||i?s("div",{class:`${r}-date-panel-actions`},s("div",{class:`${r}-date-panel-actions__prefix`},i&&Object.keys(i).map(c=>{const u=i[c];return Array.isArray(u)||typeof u=="function"?s(zr,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(u)},onClick:()=>{this.handleRangeShortcutClick(u)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>c}):null})),s("div",{class:`${r}-date-panel-actions__suffix`},!((t=this.actions)===null||t===void 0)&&t.includes("clear")?an(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[s(zr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?an(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[s(zr,{theme:o.peers.Button,themeOverrides:o.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,s(qr,{onFocus:this.handleFocusDetectorFocus}))}}),yx=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:" "},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array,Function],disabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom-start"},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:"date"},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:"M"},yearFormat:{type:String,default:"y"},quarterFormat:{type:String,default:"'Q'Q"},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),j6=z([x("date-picker",` + position: relative; + z-index: auto; + `,[x("date-picker-icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),x("icon",` + color: var(--n-icon-color-override); + transition: color .3s var(--n-bezier); + `),M("disabled",[x("date-picker-icon",` + color: var(--n-icon-color-disabled-override); + `),x("icon",` + color: var(--n-icon-color-disabled-override); + `)])]),x("date-panel",` + width: fit-content; + outline: none; + margin: 4px 0; + display: grid; + grid-template-columns: 0fr; + border-radius: var(--n-panel-border-radius); + background-color: var(--n-panel-color); + color: var(--n-panel-text-color); + user-select: none; + `,[Cn(),M("shadow",` + box-shadow: var(--n-panel-box-shadow); + `),x("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[M("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),x("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[F("picker-col",` + min-width: var(--n-scroll-item-width); + height: calc(var(--n-scroll-item-height) * 6); + user-select: none; + -webkit-user-select: none; + `,[z("&:first-child",` + min-width: calc(var(--n-scroll-item-width) + 4px); + `,[F("picker-col-item",[z("&::before","left: 4px;")])]),F("padding",` + height: calc(var(--n-scroll-item-height) * 5) + `)]),F("picker-col-item",` + z-index: 0; + cursor: pointer; + height: var(--n-scroll-item-height); + box-sizing: border-box; + padding-top: 4px; + display: flex; + align-items: center; + justify-content: center; + position: relative; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background: #0000; + color: var(--n-item-text-color); + `,[z("&::before",` + z-index: -1; + content: ""; + position: absolute; + left: 0; + right: 4px; + top: 4px; + bottom: 0; + border-radius: var(--n-scroll-item-border-radius); + transition: + background-color .3s var(--n-bezier); + `),ft("disabled",[z("&:hover::before",` + background-color: var(--n-item-color-hover); + `),M("selected",` + color: var(--n-item-color-active); + `,[z("&::before","background-color: var(--n-item-color-hover);")])]),M("disabled",` + color: var(--n-item-text-color-disabled); + cursor: not-allowed; + `,[M("selected",[z("&::before",` + background-color: var(--n-item-color-disabled); + `)])])])]),M("date",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),M("week",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),M("daterange",{gridTemplateAreas:` + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),M("datetime",{gridTemplateAreas:` + "header" + "left-calendar" + "footer" + "action" + `}),M("datetimerange",{gridTemplateAreas:` + "header header header" + "left-calendar divider right-calendar" + "footer footer footer" + "action action action" + `}),M("month",{gridTemplateAreas:` + "left-calendar" + "footer" + "action" + `}),x("date-panel-footer",{gridArea:"footer"}),x("date-panel-actions",{gridArea:"action"}),x("date-panel-header",{gridArea:"header"}),x("date-panel-header",` + box-sizing: border-box; + width: 100%; + align-items: center; + padding: var(--n-panel-header-padding); + display: flex; + justify-content: space-between; + border-bottom: 1px solid var(--n-panel-header-divider-color); + `,[z(">",[z("*:not(:last-child)",{marginRight:"10px"}),z("*",{flex:1,width:0}),x("time-picker",{zIndex:1})])]),x("date-panel-month",` + box-sizing: border-box; + display: grid; + grid-template-columns: var(--n-calendar-title-grid-template-columns); + align-items: center; + justify-items: center; + padding: var(--n-calendar-title-padding); + height: var(--n-calendar-title-height); + `,[F("prev, next, fast-prev, fast-next",` + line-height: 0; + cursor: pointer; + width: var(--n-arrow-size); + height: var(--n-arrow-size); + color: var(--n-arrow-color); + `),F("month-year",` + user-select: none; + -webkit-user-select: none; + flex-grow: 1; + position: relative; + `,[F("text",` + font-size: var(--n-calendar-title-font-size); + line-height: var(--n-calendar-title-font-size); + font-weight: var(--n-calendar-title-font-weight); + padding: 6px 8px; + text-align: center; + color: var(--n-calendar-title-text-color); + cursor: pointer; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-panel-border-radius); + `,[M("active",` + background-color: var(--n-calendar-title-color-hover); + `),z("&:hover",` + background-color: var(--n-calendar-title-color-hover); + `)])])]),x("date-panel-weekdays",` + display: grid; + margin: auto; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(1, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + margin-bottom: 4px; + border-bottom: 1px solid var(--n-calendar-days-divider-color); + `,[F("day",` + white-space: nowrap; + user-select: none; + -webkit-user-select: none; + line-height: 15px; + width: var(--n-item-size); + text-align: center; + font-size: var(--n-calendar-days-font-size); + color: var(--n-item-text-color); + display: flex; + align-items: center; + justify-content: center; + `)]),x("date-panel-dates",` + margin: auto; + display: grid; + grid-template-columns: repeat(7, var(--n-item-cell-width)); + grid-template-rows: repeat(6, var(--n-item-cell-height)); + align-items: center; + justify-items: center; + flex-wrap: wrap; + `,[x("date-panel-date",` + user-select: none; + -webkit-user-select: none; + position: relative; + width: var(--n-item-size); + height: var(--n-item-size); + line-height: var(--n-item-size); + text-align: center; + font-size: var(--n-item-font-size); + border-radius: var(--n-item-border-radius); + z-index: 0; + cursor: pointer; + transition: + background-color .2s var(--n-bezier), + color .2s var(--n-bezier); + `,[F("trigger",` + position: absolute; + left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); + top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); + width: var(--n-item-cell-width); + height: var(--n-item-cell-height); + `),M("current",[F("sup",` + position: absolute; + top: 2px; + right: 2px; + content: ""; + height: 4px; + width: 4px; + border-radius: 2px; + background-color: var(--n-item-color-active); + transition: + background-color .2s var(--n-bezier); + `)]),z("&::after",` + content: ""; + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + transition: background-color .3s var(--n-bezier); + `),M("covered, start, end",[ft("excluded",[z("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + background-color: var(--n-item-color-included); + `),z("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),z("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),M("selected",{color:"var(--n-item-text-color-active)"},[z("&::after",{backgroundColor:"var(--n-item-color-active)"}),M("start",[z("&::before",{left:"50%"})]),M("end",[z("&::before",{right:"50%"})]),F("sup",{backgroundColor:"var(--n-panel-color)"})]),M("excluded",{color:"var(--n-item-text-color-disabled)"},[M("selected",[z("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),M("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[M("covered",[z("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),M("selected",[z("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),z("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),M("week-hovered",[z("&::before",` + background-color: var(--n-item-color-included); + `),z("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),z("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)]),M("week-selected",` + color: var(--n-item-text-color-active) + `,[z("&::before",` + background-color: var(--n-item-color-active); + `),z("&:nth-child(7n + 1)::before",` + border-top-left-radius: var(--n-item-border-radius); + border-bottom-left-radius: var(--n-item-border-radius); + `),z("&:nth-child(7n + 7)::before",` + border-top-right-radius: var(--n-item-border-radius); + border-bottom-right-radius: var(--n-item-border-radius); + `)])])]),ft("week",[x("date-panel-dates",[x("date-panel-date",[ft("disabled",[ft("selected",[z("&:hover",` + background-color: var(--n-item-color-hover); + `)])])])])]),M("week",[x("date-panel-dates",[x("date-panel-date",[z("&::before",` + content: ""; + z-index: -2; + position: absolute; + left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); + top: 0; + bottom: 0; + transition: background-color .3s var(--n-bezier); + `)])])]),F("vertical-divider",` + grid-area: divider; + height: 100%; + width: 1px; + background-color: var(--n-calendar-divider-color); + `),x("date-panel-footer",` + border-top: 1px solid var(--n-panel-action-divider-color); + padding: var(--n-panel-extra-footer-padding); + `),x("date-panel-actions",` + flex: 1; + padding: var(--n-panel-action-padding); + display: flex; + align-items: center; + justify-content: space-between; + border-top: 1px solid var(--n-panel-action-divider-color); + `,[F("prefix, suffix",` + display: flex; + margin-bottom: -8px; + `),F("suffix",` + align-self: flex-end; + `),F("prefix",` + flex-wrap: wrap; + `),x("button",` + margin-bottom: 8px; + `,[z("&:not(:last-child)",` + margin-right: 8px; + `)])])]),z("[data-n-date].transition-disabled",{transition:"none !important"},[z("&::before, &::after",{transition:"none !important"})])]);function V6(e,t){const n=S(()=>{const{isTimeDisabled:u}=e,{value:f}=t;if(!(f===null||Array.isArray(f)))return u?.(f)}),r=S(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isHourDisabled}),o=S(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isMinuteDisabled}),i=S(()=>{var u;return(u=n.value)===null||u===void 0?void 0:u.isSecondDisabled}),a=S(()=>{const{type:u,isDateDisabled:f}=e,{value:v}=t;return v===null||Array.isArray(v)||!["date","datetime"].includes(u)||!f?!1:f(v,{type:"input"})}),l=S(()=>{const{type:u}=e,{value:f}=t;if(f===null||u==="datetime"||Array.isArray(f))return!1;const v=new Date(f),m=v.getHours(),h=v.getMinutes(),g=v.getMinutes();return(r.value?r.value(m):!1)||(o.value?o.value(h,m):!1)||(i.value?i.value(g,h,m):!1)}),d=S(()=>a.value||l.value);return{isValueInvalidRef:S(()=>{const{type:u}=e;return u==="date"?a.value:u==="datetime"?d.value:!1}),isDateInvalidRef:a,isTimeInvalidRef:l,isDateTimeInvalidRef:d,isHourDisabledRef:r,isMinuteDisabledRef:o,isSecondDisabledRef:i}}function U6(e,t){const n=S(()=>{const{isTimeDisabled:f}=e,{value:v}=t;return!Array.isArray(v)||!f?[void 0,void 0]:[f?.(v[0],"start",v),f?.(v[1],"end",v)]}),r={isStartHourDisabledRef:S(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isHourDisabled}),isEndHourDisabledRef:S(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isHourDisabled}),isStartMinuteDisabledRef:S(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isMinuteDisabled}),isEndMinuteDisabledRef:S(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isMinuteDisabled}),isStartSecondDisabledRef:S(()=>{var f;return(f=n.value[0])===null||f===void 0?void 0:f.isSecondDisabled}),isEndSecondDisabledRef:S(()=>{var f;return(f=n.value[1])===null||f===void 0?void 0:f.isSecondDisabled})},o=S(()=>{const{type:f,isDateDisabled:v}=e,{value:m}=t;return m===null||!Array.isArray(m)||!["daterange","datetimerange"].includes(f)||!v?!1:v(m[0],"start",m)}),i=S(()=>{const{type:f,isDateDisabled:v}=e,{value:m}=t;return m===null||!Array.isArray(m)||!["daterange","datetimerange"].includes(f)||!v?!1:v(m[1],"end",m)}),a=S(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const m=go(v[0]),h=gs(v[0]),g=ms(v[0]),{isStartHourDisabledRef:p,isStartMinuteDisabledRef:b,isStartSecondDisabledRef:y}=r;return(p.value?p.value(m):!1)||(b.value?b.value(h,m):!1)||(y.value?y.value(g,h,m):!1)}),l=S(()=>{const{type:f}=e,{value:v}=t;if(v===null||!Array.isArray(v)||f!=="datetimerange")return!1;const m=go(v[1]),h=gs(v[1]),g=ms(v[1]),{isEndHourDisabledRef:p,isEndMinuteDisabledRef:b,isEndSecondDisabledRef:y}=r;return(p.value?p.value(m):!1)||(b.value?b.value(h,m):!1)||(y.value?y.value(g,h,m):!1)}),d=S(()=>o.value||a.value),c=S(()=>i.value||l.value),u=S(()=>d.value||c.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:o,isEndDateInvalidRef:i,isStartTimeInvalidRef:a,isEndTimeInvalidRef:l,isStartValueInvalidRef:d,isEndValueInvalidRef:c,isRangeInvalidRef:u})}const W6=Y({name:"DatePicker",props:yx,slots:Object,setup(e,{slots:t}){var n;const{localeRef:r,dateLocaleRef:o}=on("DatePicker"),i=ln(e),{mergedSizeRef:a,mergedDisabledRef:l,mergedStatusRef:d}=i,{mergedComponentPropsRef:c,mergedClsPrefixRef:u,mergedBorderedRef:f,namespaceRef:v,inlineThemeDisabled:m}=Ee(e),h=B(null),g=B(null),p=B(null),b=B(!1),y=le(e,"show"),R=St(y,b),w=S(()=>({locale:o.value.locale,useAdditionalWeekYearTokens:!0})),C=S(()=>{const{format:ne}=e;if(ne)return ne;switch(e.type){case"date":case"daterange":return r.value.dateFormat;case"datetime":case"datetimerange":return r.value.dateTimeFormat;case"year":case"yearrange":return r.value.yearTypeFormat;case"month":case"monthrange":return r.value.monthTypeFormat;case"quarter":case"quarterrange":return r.value.quarterFormat;case"week":return r.value.weekFormat}}),P=S(()=>{var ne;return(ne=e.valueFormat)!==null&&ne!==void 0?ne:C.value});function k(ne){if(ne===null)return null;const{value:Se}=P,{value:ee}=w;return Array.isArray(ne)?[qn(ne[0],Se,new Date,ee).getTime(),qn(ne[1],Se,new Date,ee).getTime()]:qn(ne,Se,new Date,ee).getTime()}const{defaultFormattedValue:O,defaultValue:$}=e,T=B((n=O!==void 0?k(O):$)!==null&&n!==void 0?n:null),D=S(()=>{const{formattedValue:ne}=e;return ne!==void 0?k(ne):e.value}),I=St(D,T),A=B(null);Ft(()=>{A.value=I.value});const E=B(""),N=B(""),U=B(""),q=ge("DatePicker","-date-picker",j6,n6,e,u),J=S(()=>{var ne,Se;return((Se=(ne=c?.value)===null||ne===void 0?void 0:ne.DatePicker)===null||Se===void 0?void 0:Se.timePickerSize)||"small"}),ve=S(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(e.type)),ae=S(()=>{const{placeholder:ne}=e;if(ne===void 0){const{type:Se}=e;switch(Se){case"date":return r.value.datePlaceholder;case"datetime":return r.value.datetimePlaceholder;case"month":return r.value.monthPlaceholder;case"year":return r.value.yearPlaceholder;case"quarter":return r.value.quarterPlaceholder;case"week":return r.value.weekPlaceholder;default:return""}}else return ne}),W=S(()=>e.startPlaceholder===void 0?e.type==="daterange"?r.value.startDatePlaceholder:e.type==="datetimerange"?r.value.startDatetimePlaceholder:e.type==="monthrange"?r.value.startMonthPlaceholder:"":e.startPlaceholder),j=S(()=>e.endPlaceholder===void 0?e.type==="daterange"?r.value.endDatePlaceholder:e.type==="datetimerange"?r.value.endDatetimePlaceholder:e.type==="monthrange"?r.value.endMonthPlaceholder:"":e.endPlaceholder),_=S(()=>{const{actions:ne,type:Se,clearable:ee}=e;if(ne===null)return[];if(ne!==void 0)return ne;const Ce=ee?["clear"]:[];switch(Se){case"date":case"week":return Ce.push("now"),Ce;case"datetime":return Ce.push("now","confirm"),Ce;case"daterange":return Ce.push("confirm"),Ce;case"datetimerange":return Ce.push("confirm"),Ce;case"month":return Ce.push("now","confirm"),Ce;case"year":return Ce.push("now"),Ce;case"quarter":return Ce.push("now","confirm"),Ce;case"monthrange":case"yearrange":case"quarterrange":return Ce.push("confirm"),Ce;default:{Mn("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function L(ne){if(ne===null)return null;if(Array.isArray(ne)){const{value:Se}=P,{value:ee}=w;return[Dt(ne[0],Se,ee),Dt(ne[1],Se,w.value)]}else return Dt(ne,P.value,w.value)}function Z(ne){A.value=ne}function ce(ne,Se){const{"onUpdate:formattedValue":ee,onUpdateFormattedValue:Ce}=e;ee&&ie(ee,ne,Se),Ce&&ie(Ce,ne,Se)}function ye(ne,Se){const{"onUpdate:value":ee,onUpdateValue:Ce,onChange:Ue}=e,{nTriggerFormChange:Ye,nTriggerFormInput:se}=i,Me=L(ne);Se.doConfirm&&V(ne,Me),Ce&&ie(Ce,ne,Me),ee&&ie(ee,ne,Me),Ue&&ie(Ue,ne,Me),T.value=ne,ce(Me,ne),Ye(),se()}function _e(){const{onClear:ne}=e;ne?.()}function V(ne,Se){const{onConfirm:ee}=e;ee&&ee(ne,Se)}function ze(ne){const{onFocus:Se}=e,{nTriggerFormFocus:ee}=i;Se&&ie(Se,ne),ee()}function Ae(ne){const{onBlur:Se}=e,{nTriggerFormBlur:ee}=i;Se&&ie(Se,ne),ee()}function Ne(ne){const{"onUpdate:show":Se,onUpdateShow:ee}=e;Se&&ie(Se,ne),ee&&ie(ee,ne),b.value=ne}function je(ne){ne.key==="Escape"&&R.value&&(ai(ne),pt({returnFocus:!0}))}function qe(ne){ne.key==="Escape"&&R.value&&ai(ne)}function gt(){var ne;Ne(!1),(ne=p.value)===null||ne===void 0||ne.deactivate(),_e()}function at(){var ne;(ne=p.value)===null||ne===void 0||ne.deactivate(),_e()}function Te(){pt({returnFocus:!0})}function Q(ne){var Se;R.value&&!(!((Se=g.value)===null||Se===void 0)&&Se.contains(Jn(ne)))&&pt({returnFocus:!1})}function ue(ne){pt({returnFocus:!0,disableUpdateOnClose:ne})}function G(ne,Se){Se?ye(ne,{doConfirm:!1}):Z(ne)}function fe(){const ne=A.value;ye(Array.isArray(ne)?[ne[0],ne[1]]:ne,{doConfirm:!0})}function we(){const{value:ne}=A;ve.value?(Array.isArray(ne)||ne===null)&&X(ne):Array.isArray(ne)||te(ne)}function te(ne){ne===null?E.value="":E.value=Dt(ne,C.value,w.value)}function X(ne){if(ne===null)N.value="",U.value="";else{const Se=w.value;N.value=Dt(ne[0],C.value,Se),U.value=Dt(ne[1],C.value,Se)}}function he(){R.value||bt()}function Ie(ne){var Se;!((Se=h.value)===null||Se===void 0)&&Se.$el.contains(ne.relatedTarget)||(Ae(ne),we(),pt({returnFocus:!1}))}function me(){l.value||(we(),pt({returnFocus:!1}))}function Ke(ne){if(ne===""){ye(null,{doConfirm:!1}),A.value=null,E.value="";return}const Se=qn(ne,C.value,new Date,w.value);br(Se)?(ye(tt(Se),{doConfirm:!1}),we()):E.value=ne}function st(ne,{source:Se}){if(ne[0]===""&&ne[1]===""){ye(null,{doConfirm:!1}),A.value=null,N.value="",U.value="";return}const[ee,Ce]=ne,Ue=qn(ee,C.value,new Date,w.value),Ye=qn(Ce,C.value,new Date,w.value);if(br(Ue)&&br(Ye)){let se=tt(Ue),Me=tt(Ye);Ye{we()}),we(),ct(R,ne=>{ne||(A.value=I.value)});const He=V6(e,A),nt=U6(e,A);ot(Vs,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:u,mergedThemeRef:q,timePickerSizeRef:J,localeRef:r,dateLocaleRef:o,firstDayOfWeekRef:le(e,"firstDayOfWeek"),isDateDisabledRef:le(e,"isDateDisabled"),rangesRef:le(e,"ranges"),timePickerPropsRef:le(e,"timePickerProps"),closeOnSelectRef:le(e,"closeOnSelect"),updateValueOnCloseRef:le(e,"updateValueOnClose"),monthFormatRef:le(e,"monthFormat"),yearFormatRef:le(e,"yearFormat"),quarterFormatRef:le(e,"quarterFormat"),yearRangeRef:le(e,"yearRange")},He),nt),{datePickerSlots:t}));const K={focus:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.focus()},blur:()=>{var ne;(ne=p.value)===null||ne===void 0||ne.blur()}},H=S(()=>{const{common:{cubicBezierEaseInOut:ne},self:{iconColor:Se,iconColorDisabled:ee}}=q.value;return{"--n-bezier":ne,"--n-icon-color-override":Se,"--n-icon-color-disabled-override":ee}}),pe=m?Xe("date-picker-trigger",void 0,H,e):void 0,$e=S(()=>{const{type:ne}=e,{common:{cubicBezierEaseInOut:Se},self:{calendarTitleFontSize:ee,calendarDaysFontSize:Ce,itemFontSize:Ue,itemTextColor:Ye,itemColorDisabled:se,itemColorIncluded:Me,itemColorHover:re,itemColorActive:ke,itemBorderRadius:De,itemTextColorDisabled:Qe,itemTextColorActive:rt,panelColor:oe,panelTextColor:Re,arrowColor:We,calendarTitleTextColor:de,panelActionDividerColor:Pe,panelHeaderDividerColor:Le,calendarDaysDividerColor:Ze,panelBoxShadow:et,panelBorderRadius:$t,calendarTitleFontWeight:Jt,panelExtraFooterPadding:Qt,panelActionPadding:Tn,itemSize:Dn,itemCellWidth:un,itemCellHeight:At,scrollItemWidth:xe,scrollItemHeight:Ve,calendarTitlePadding:Ge,calendarTitleHeight:Tt,calendarDaysHeight:fn,calendarDaysTextColor:Lt,arrowSize:fr,panelHeaderPadding:Sr,calendarDividerColor:or,calendarTitleGridTempateColumns:la,iconColor:sa,iconColorDisabled:da,scrollItemBorderRadius:ca,calendarTitleColorHover:ua,[be("calendarLeftPadding",ne)]:fa,[be("calendarRightPadding",ne)]:ed}}=q.value;return{"--n-bezier":Se,"--n-panel-border-radius":$t,"--n-panel-color":oe,"--n-panel-box-shadow":et,"--n-panel-text-color":Re,"--n-panel-header-padding":Sr,"--n-panel-header-divider-color":Le,"--n-calendar-left-padding":fa,"--n-calendar-right-padding":ed,"--n-calendar-title-color-hover":ua,"--n-calendar-title-height":Tt,"--n-calendar-title-padding":Ge,"--n-calendar-title-font-size":ee,"--n-calendar-title-font-weight":Jt,"--n-calendar-title-text-color":de,"--n-calendar-title-grid-template-columns":la,"--n-calendar-days-height":fn,"--n-calendar-days-divider-color":Ze,"--n-calendar-days-font-size":Ce,"--n-calendar-days-text-color":Lt,"--n-calendar-divider-color":or,"--n-panel-action-padding":Tn,"--n-panel-extra-footer-padding":Qt,"--n-panel-action-divider-color":Pe,"--n-item-font-size":Ue,"--n-item-border-radius":De,"--n-item-size":Dn,"--n-item-cell-width":un,"--n-item-cell-height":At,"--n-item-text-color":Ye,"--n-item-color-included":Me,"--n-item-color-disabled":se,"--n-item-color-hover":re,"--n-item-color-active":ke,"--n-item-text-color-disabled":Qe,"--n-item-text-color-active":rt,"--n-scroll-item-width":xe,"--n-scroll-item-height":Ve,"--n-scroll-item-border-radius":ca,"--n-arrow-size":fr,"--n-arrow-color":We,"--n-icon-color":sa,"--n-icon-color-disabled":da}}),Oe=m?Xe("date-picker",S(()=>e.type),$e,e):void 0;return Object.assign(Object.assign({},K),{mergedStatus:d,mergedClsPrefix:u,mergedBordered:f,namespace:v,uncontrolledValue:T,pendingValue:A,panelInstRef:h,triggerElRef:g,inputInstRef:p,isMounted:$n(),displayTime:E,displayStartTime:N,displayEndTime:U,mergedShow:R,adjustedTo:Ht(e),isRange:ve,localizedStartPlaceholder:W,localizedEndPlaceholder:j,mergedSize:a,mergedDisabled:l,localizedPlacehoder:ae,isValueInvalid:He.isValueInvalidRef,isStartValueInvalid:nt.isStartValueInvalidRef,isEndValueInvalid:nt.isEndValueInvalidRef,handleInputKeydown:qe,handleClickOutside:Q,handleKeydown:je,handleClear:gt,handlePanelClear:at,handleTriggerClick:xt,handleInputActivate:he,handleInputDeactivate:me,handleInputFocus:vt,handleInputBlur:Ie,handlePanelTabOut:Te,handlePanelClose:ue,handleRangeUpdateValue:st,handleSingleUpdateValue:Ke,handlePanelUpdateValue:G,handlePanelConfirm:fe,mergedTheme:q,actions:_,triggerCssVars:m?void 0:H,triggerThemeClass:pe?.themeClass,triggerOnRender:pe?.onRender,cssVars:m?void 0:$e,themeClass:Oe?.themeClass,onRender:Oe?.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){const{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,o={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:"panelInstRef",value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},i=()=>{const{type:l}=this;return l==="datetime"?s(N6,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):l==="daterange"?s(i6,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="datetimerange"?s(L6,Object.assign({},o,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):l==="month"||l==="year"||l==="quarter"?s(hx,Object.assign({},o,{type:l,key:l})):l==="monthrange"||l==="yearrange"||l==="quarterrange"?s(H6,Object.assign({},o,{type:l})):s(o6,Object.assign({},o,{type:l,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return i();t?.();const a={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return s("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},s(yr,null,{default:()=>[s(wr,null,{default:()=>this.isRange?s(Sn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?"line-through":"",this.isEndValueInvalid?"line-through":""],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{separator:()=>this.separator===void 0?ht(r.separator,()=>[s(lt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>s(V3,null)})]):this.separator,[e?"clear-icon-placeholder":"suffix"]:()=>ht(r["date-icon"],()=>[s(lt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>s(rv,null)})])}):s(Sn,Object.assign({ref:"inputInstRef",status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?"line-through":"",onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},a),{[e?"clear-icon-placeholder":"suffix"]:()=>s(lt,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>ht(r["date-icon"],()=>[s(rv,null)])})})}),s(sr,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.placement},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?rn(i(),[[Qn,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),K6={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function q6(e){const{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:o,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:m}=e;return Object.assign(Object.assign({},K6),{lineHeight:u,fontSizeSmall:f,fontSizeMedium:v,fontSizeLarge:m,titleTextColor:r,thColor:dt(o,t),thColorModal:dt(i,t),thColorPopover:dt(a,t),thTextColor:r,thFontWeight:c,tdTextColor:n,tdColor:o,tdColorModal:i,tdColorPopover:a,borderColor:dt(o,l),borderColorModal:dt(i,l),borderColorPopover:dt(a,l),borderRadius:d})}const Y6={common:Je,self:q6},G6=z([x("descriptions",{fontSize:"var(--n-font-size)"},[x("descriptions-separator",` + display: inline-block; + margin: 0 8px 0 2px; + `),x("descriptions-table-wrapper",[x("descriptions-table",[x("descriptions-table-row",[x("descriptions-table-header",{padding:"var(--n-th-padding)"}),x("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),ft("bordered",[x("descriptions-table-wrapper",[x("descriptions-table",[x("descriptions-table-row",[z("&:last-child",[x("descriptions-table-content",{paddingBottom:0})])])])])]),M("left-label-placement",[x("descriptions-table-content",[z("> *",{verticalAlign:"top"})])]),M("left-label-align",[z("th",{textAlign:"left"})]),M("center-label-align",[z("th",{textAlign:"center"})]),M("right-label-align",[z("th",{textAlign:"right"})]),M("bordered",[x("descriptions-table-wrapper",` + border-radius: var(--n-border-radius); + overflow: hidden; + background: var(--n-merged-td-color); + border: 1px solid var(--n-merged-border-color); + `,[x("descriptions-table",[x("descriptions-table-row",[z("&:not(:last-child)",[x("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),x("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),x("descriptions-table-header",` + font-weight: 400; + background-clip: padding-box; + background-color: var(--n-merged-th-color); + `,[z("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),x("descriptions-table-content",[z("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),x("descriptions-header",` + font-weight: var(--n-th-font-weight); + font-size: 18px; + transition: color .3s var(--n-bezier); + line-height: var(--n-line-height); + margin-bottom: 16px; + color: var(--n-title-text-color); + `),x("descriptions-table-wrapper",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[x("descriptions-table",` + width: 100%; + border-collapse: separate; + border-spacing: 0; + box-sizing: border-box; + `,[x("descriptions-table-row",` + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[x("descriptions-table-header",` + font-weight: var(--n-th-font-weight); + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-th-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),x("descriptions-table-content",` + vertical-align: top; + line-height: var(--n-line-height); + display: table-cell; + box-sizing: border-box; + color: var(--n-td-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[F("content",` + transition: color .3s var(--n-bezier); + display: inline-block; + color: var(--n-td-text-color); + `)]),F("label",` + font-weight: var(--n-th-font-weight); + transition: color .3s var(--n-bezier); + display: inline-block; + margin-right: 14px; + color: var(--n-th-text-color); + `)])])])]),x("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + `),jr(x("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),ro(x("descriptions-table-wrapper",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),wx="DESCRIPTION_ITEM_FLAG";function X6(e){return typeof e=="object"&&e&&!Array.isArray(e)?e.type&&e.type[wx]:!1}const Cx=Object.assign(Object.assign({},ge.props),{title:String,column:{type:Number,default:3},columns:Number,labelPlacement:{type:String,default:"top"},labelAlign:{type:String,default:"left"},separator:{type:String,default:":"},size:{type:String,default:"medium"},bordered:Boolean,labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]}),Z6=Y({name:"Descriptions",props:Cx,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Descriptions","-descriptions",G6,Y6,e,t),o=S(()=>{const{size:a,bordered:l}=e,{common:{cubicBezierEaseInOut:d},self:{titleTextColor:c,thColor:u,thColorModal:f,thColorPopover:v,thTextColor:m,thFontWeight:h,tdTextColor:g,tdColor:p,tdColorModal:b,tdColorPopover:y,borderColor:R,borderColorModal:w,borderColorPopover:C,borderRadius:P,lineHeight:k,[be("fontSize",a)]:O,[be(l?"thPaddingBordered":"thPadding",a)]:$,[be(l?"tdPaddingBordered":"tdPadding",a)]:T}}=r.value;return{"--n-title-text-color":c,"--n-th-padding":$,"--n-td-padding":T,"--n-font-size":O,"--n-bezier":d,"--n-th-font-weight":h,"--n-line-height":k,"--n-th-text-color":m,"--n-td-text-color":g,"--n-th-color":u,"--n-th-color-modal":f,"--n-th-color-popover":v,"--n-td-color":p,"--n-td-color-modal":b,"--n-td-color-popover":y,"--n-border-radius":P,"--n-border-color":R,"--n-border-color-modal":w,"--n-border-color-popover":C}}),i=n?Xe("descriptions",S(()=>{let a="";const{size:l,bordered:d}=e;return d&&(a+="a"),a+=l[0],a}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender,compitableColumn:Co(e,["columns","column"]),inlineThemeDisabled:n}},render(){const e=this.$slots.default,t=e?Yn(e()):[];t.length;const{contentClass:n,labelClass:r,compitableColumn:o,labelPlacement:i,labelAlign:a,size:l,bordered:d,title:c,cssVars:u,mergedClsPrefix:f,separator:v,onRender:m}=this;m?.();const h=t.filter(y=>X6(y)),g={span:0,row:[],secondRow:[],rows:[]},b=h.reduce((y,R,w)=>{const C=R.props||{},P=h.length-1===w,k=["label"in C?C.label:wh(R,"label")],O=[wh(R)],$=C.span||1,T=y.span;y.span+=$;const D=C.labelStyle||C["label-style"]||this.labelStyle,I=C.contentStyle||C["content-style"]||this.contentStyle;if(i==="left")d?y.row.push(s("th",{class:[`${f}-descriptions-table-header`,r],colspan:1,style:D},k),s("td",{class:[`${f}-descriptions-table-content`,n],colspan:P?(o-T)*2+1:$*2-1,style:I},O)):y.row.push(s("td",{class:`${f}-descriptions-table-content`,colspan:P?(o-T)*2:$*2},s("span",{class:[`${f}-descriptions-table-content__label`,r],style:D},[...k,v&&s("span",{class:`${f}-descriptions-separator`},v)]),s("span",{class:[`${f}-descriptions-table-content__content`,n],style:I},O)));else{const A=P?(o-T)*2:$*2;y.row.push(s("th",{class:[`${f}-descriptions-table-header`,r],colspan:A,style:D},k)),y.secondRow.push(s("td",{class:[`${f}-descriptions-table-content`,n],colspan:A,style:I},O))}return(y.span>=o||P)&&(y.span=0,y.row.length&&(y.rows.push(y.row),y.row=[]),i!=="left"&&y.secondRow.length&&(y.rows.push(y.secondRow),y.secondRow=[])),y},g).rows.map(y=>s("tr",{class:`${f}-descriptions-table-row`},y));return s("div",{style:u,class:[`${f}-descriptions`,this.themeClass,`${f}-descriptions--${i}-label-placement`,`${f}-descriptions--${a}-label-align`,`${f}-descriptions--${l}-size`,d&&`${f}-descriptions--bordered`]},c||this.$slots.header?s("div",{class:`${f}-descriptions-header`},c||Ji(this,"header")):null,s("div",{class:`${f}-descriptions-table-wrapper`},s("table",{class:`${f}-descriptions-table`},s("tbody",null,i==="top"&&s("tr",{class:`${f}-descriptions-table-row`,style:{visibility:"collapse"}},wo(o*2,s("td",null))),b))))}}),Sx={label:String,span:{type:Number,default:1},labelClass:String,labelStyle:[Object,String],contentClass:String,contentStyle:[Object,String]},J6=Y({name:"DescriptionsItem",[wx]:!0,props:Sx,slots:Object,render(){return null}}),Rx="n-dialog-provider",kx="n-dialog-api",Px="n-dialog-reactive-list";function zx(){const e=Be(kx,null);return e===null&&mn("use-dialog","No outer founded."),e}function Q6(){const e=Be(Px,null);return e===null&&mn("use-dialog-reactive-list","No outer founded."),e}const eB={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function tB(e){const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:d,infoColor:c,successColor:u,warningColor:f,errorColor:v,primaryColor:m,dividerColor:h,borderRadius:g,fontWeightStrong:p,lineHeight:b,fontSize:y}=e;return Object.assign(Object.assign({},eB),{fontSize:y,lineHeight:b,border:`1px solid ${h}`,titleTextColor:t,textColor:n,color:r,closeColorHover:l,closeColorPressed:d,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:m,iconColorInfo:c,iconColorSuccess:u,iconColorWarning:f,iconColorError:v,borderRadius:g,titleFontWeight:p})}const $x={name:"Dialog",common:Je,peers:{Button:nr},self:tB},il={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Tx=In(il),nB=z([x("dialog",` + --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); + word-break: break-word; + line-height: var(--n-line-height); + position: relative; + background: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + margin: auto; + border-radius: var(--n-border-radius); + padding: var(--n-padding); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[F("icon",` + color: var(--n-icon-color); + `),M("bordered",` + border: var(--n-border); + `),M("icon-top",[F("close",` + margin: var(--n-close-margin); + `),F("icon",` + margin: var(--n-icon-margin); + `),F("content",` + text-align: center; + `),F("title",` + justify-content: center; + `),F("action",` + justify-content: center; + `)]),M("icon-left",[F("icon",` + margin: var(--n-icon-margin); + `),M("closable",[F("title",` + padding-right: calc(var(--n-close-size) + 6px); + `)])]),F("close",` + position: absolute; + right: 0; + top: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + z-index: 1; + `),F("content",` + font-size: var(--n-font-size); + margin: var(--n-content-margin); + position: relative; + word-break: break-word; + `,[M("last","margin-bottom: 0;")]),F("action",` + display: flex; + justify-content: flex-end; + `,[z("> *:not(:last-child)",` + margin-right: var(--n-action-space); + `)]),F("icon",` + font-size: var(--n-icon-size); + transition: color .3s var(--n-bezier); + `),F("title",` + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),x("dialog-icon-container",` + display: flex; + justify-content: center; + `)]),jr(x("dialog",` + width: 446px; + max-width: calc(100vw - 32px); + `)),x("dialog",[hm(` + width: 446px; + max-width: calc(100vw - 32px); + `)])]),rB={default:()=>s(To,null),info:()=>s(To,null),success:()=>s(pi,null),warning:()=>s(Bo,null),error:()=>s(mi,null)},sf=Y({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},ge.props),il),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=Bt("Dialog",o,n),a=S(()=>{var m,h;const{iconPlacement:g}=e;return g||((h=(m=t?.value)===null||m===void 0?void 0:m.Dialog)===null||h===void 0?void 0:h.iconPlacement)||"left"});function l(m){const{onPositiveClick:h}=e;h&&h(m)}function d(m){const{onNegativeClick:h}=e;h&&h(m)}function c(){const{onClose:m}=e;m&&m()}const u=ge("Dialog","-dialog",nB,$x,e,n),f=S(()=>{const{type:m}=e,h=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:p,lineHeight:b,border:y,titleTextColor:R,textColor:w,color:C,closeBorderRadius:P,closeColorHover:k,closeColorPressed:O,closeIconColor:$,closeIconColorHover:T,closeIconColorPressed:D,closeIconSize:I,borderRadius:A,titleFontWeight:E,titleFontSize:N,padding:U,iconSize:q,actionSpace:J,contentMargin:ve,closeSize:ae,[h==="top"?"iconMarginIconTop":"iconMargin"]:W,[h==="top"?"closeMarginIconTop":"closeMargin"]:j,[be("iconColor",m)]:_}}=u.value,L=cn(W);return{"--n-font-size":p,"--n-icon-color":_,"--n-bezier":g,"--n-close-margin":j,"--n-icon-margin-top":L.top,"--n-icon-margin-right":L.right,"--n-icon-margin-bottom":L.bottom,"--n-icon-margin-left":L.left,"--n-icon-size":q,"--n-close-size":ae,"--n-close-icon-size":I,"--n-close-border-radius":P,"--n-close-color-hover":k,"--n-close-color-pressed":O,"--n-close-icon-color":$,"--n-close-icon-color-hover":T,"--n-close-icon-color-pressed":D,"--n-color":C,"--n-text-color":w,"--n-border-radius":A,"--n-padding":U,"--n-line-height":b,"--n-border":y,"--n-content-margin":ve,"--n-title-font-size":N,"--n-title-font-weight":E,"--n-title-text-color":R,"--n-action-space":J}}),v=r?Xe("dialog",S(()=>`${e.type[0]}${a.value[0]}`),f,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:u,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:c,cssVars:r?void 0:f,themeClass:v?.themeClass,onRender:v?.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:o,showIcon:i,title:a,content:l,action:d,negativeText:c,positiveText:u,positiveButtonProps:f,negativeButtonProps:v,handlePositiveClick:m,handleNegativeClick:h,mergedTheme:g,loading:p,type:b,mergedClsPrefix:y}=this;(e=this.onRender)===null||e===void 0||e.call(this);const R=i?s(lt,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>yt(this.$slots.icon,C=>C||(this.icon?Wt(this.icon):rB[this.type]()))}):null,w=yt(this.$slots.action,C=>C||u||c||d?s("div",{class:[`${y}-dialog__action`,this.actionClass],style:this.actionStyle},C||(d?[Wt(d)]:[this.negativeText&&s(Ot,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:h},v),{default:()=>Wt(this.negativeText)}),this.positiveText&&s(Ot,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:b==="default"?"primary":b,disabled:p,loading:p,onClick:m},f),{default:()=>Wt(this.positiveText)})])):null);return s("div",{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`,this.rtlEnabled&&`${y}-dialog--rtl`],style:r,role:"dialog"},o?yt(this.$slots.close,C=>{const P=[`${y}-dialog__close`,this.rtlEnabled&&`${y}-dialog--rtl`];return C?s("div",{class:P},C):s(lo,{focusable:this.closeFocusable,clsPrefix:y,class:P,onClick:this.handleCloseClick})}):null,i&&n==="top"?s("div",{class:`${y}-dialog-icon-container`},R):null,s("div",{class:[`${y}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?R:null,ht(this.$slots.header,()=>[Wt(a)])),s("div",{class:[`${y}-dialog__content`,w?"":`${y}-dialog__content--last`,this.contentClass],style:this.contentStyle},ht(this.$slots.default,()=>[Wt(l)])),w)}});function oB(e){const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}const iB={name:"Modal",common:Je,peers:{Scrollbar:Ln,Dialog:$x,Card:d0},self:oB},aB="n-modal-provider",Ox="n-modal-api",Fx="n-modal-reactive-list";function Mx(){const e=Be(Ox,null);return e===null&&mn("use-modal","No outer founded."),e}function lB(){const e=Be(Fx,null);return e===null&&mn("use-modal-reactive-list","No outer founded."),e}const Nc="n-draggable";function sB(e,t){let n;const r=S(()=>e.value!==!1),o=S(()=>r.value?Nc:""),i=S(()=>{const d=e.value;return d===!0||d===!1?!0:d?d.bounds!=="none":!0});function a(d){const c=d.querySelector(`.${Nc}`);if(!c||!o.value)return;let u=0,f=0,v=0,m=0,h=0,g=0,p;function b(w){w.preventDefault(),p=w;const{x:C,y:P,right:k,bottom:O}=d.getBoundingClientRect();f=C,m=P,u=window.innerWidth-k,v=window.innerHeight-O;const{left:$,top:T}=d.style;h=+T.slice(0,-2),g=+$.slice(0,-2)}function y(w){if(!p)return;const{clientX:C,clientY:P}=p;let k=w.clientX-C,O=w.clientY-P;i.value&&(k>u?k=u:-k>f&&(k=-f),O>v?O=v:-O>m&&(O=-m));const $=k+g,T=O+h;d.style.top=`${T}px`,d.style.left=`${$}px`}function R(){p=void 0,t.onEnd(d)}Ct("mousedown",c,b),Ct("mousemove",window,y),Ct("mouseup",window,R),n=()=>{wt("mousedown",c,b),Ct("mousemove",window,y),Ct("mouseup",window,R)}}function l(){n&&(n(),n=void 0)}return ks(l),{stopDrag:l,startDrag:a,draggableRef:r,draggableClassRef:o}}const df=Object.assign(Object.assign({},Vu),il),dB=In(df),cB=Y({name:"ModalBody",inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean},df),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=B(null),n=B(null),r=B(e.show),o=B(null),i=B(null),a=Be(km);let l=null;ct(le(e,"show"),O=>{O&&(l=a.getMousePosition())},{immediate:!0});const{stopDrag:d,startDrag:c,draggableRef:u,draggableClassRef:f}=sB(le(e,"draggable"),{onEnd:O=>{g(O)}}),v=S(()=>tc([e.titleClass,f.value])),m=S(()=>tc([e.headerClass,f.value]));ct(le(e,"show"),O=>{O&&(r.value=!0)}),$m(S(()=>e.blockScroll&&r.value));function h(){if(a.transformOriginRef.value==="center")return"";const{value:O}=o,{value:$}=i;if(O===null||$===null)return"";if(n.value){const T=n.value.containerScrollTop;return`${O}px ${$+T}px`}return""}function g(O){if(a.transformOriginRef.value==="center"||!l||!n.value)return;const $=n.value.containerScrollTop,{offsetLeft:T,offsetTop:D}=O,I=l.y,A=l.x;o.value=-(T-A),i.value=-(D-I-$),O.style.transformOrigin=h()}function p(O){zt(()=>{g(O)})}function b(O){O.style.transformOrigin=h(),e.onBeforeLeave()}function y(O){const $=O;u.value&&c($),e.onAfterEnter&&e.onAfterEnter($)}function R(){r.value=!1,o.value=null,i.value=null,d(),e.onAfterLeave()}function w(){const{onClose:O}=e;O&&O()}function C(){e.onNegativeClick()}function P(){e.onPositiveClick()}const k=B(null);return ct(k,O=>{O&&zt(()=>{const $=O.el;$&&t.value!==$&&(t.value=$)})}),ot(Ga,t),ot(Ya,null),ot(Zi,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:f,displayed:r,childNodeRef:k,cardHeaderClass:m,dialogTitleClass:v,handlePositiveClick:P,handleNegativeClick:C,handleCloseClick:w,handleAfterEnter:y,handleAfterLeave:R,handleBeforeLeave:b,handleEnter:p}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:r,handleAfterLeave:o,handleBeforeLeave:i,preset:a,mergedClsPrefix:l}=this;let d=null;if(!a){if(d=qm("default",e.default,{draggableClass:this.draggableClass}),!d){Mn("modal","default slot is empty");return}d=ri(d),d.props=Pn({class:`${l}-modal`},t,d.props||{})}return this.displayDirective==="show"||this.displayed||this.show?rn(s("div",{role:"none",class:[`${l}-modal-body-wrapper`,this.maskHidden&&`${l}-modal-body-wrapper--mask-hidden`]},s(Zt,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${l}-modal-scroll-content`},{default:()=>{var c;return[(c=this.renderMask)===null||c===void 0?void 0:c.call(this),s(xu,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var u;return s(_t,{name:"fade-in-scale-up-transition",appear:(u=this.appear)!==null&&u!==void 0?u:this.isMounted,onEnter:n,onAfterEnter:r,onAfterLeave:o,onBeforeLeave:i},{default:()=>{const f=[[lr,this.show]],{onClickoutside:v}=this;return v&&f.push([Qn,this.onClickoutside,void 0,{capture:!0}]),rn(this.preset==="confirm"||this.preset==="dialog"?s(sf,Object.assign({},this.$attrs,{class:[`${l}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},vn(this.$props,Tx),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?s(u0,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${l}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},vn(this.$props,vF),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=d,f)}})}})]}})),[[lr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),uB=z([x("modal-container",` + position: fixed; + left: 0; + top: 0; + height: 0; + width: 0; + display: flex; + `),x("modal-mask",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + `,[eo({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),x("modal-body-wrapper",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: visible; + `,[x("modal-scroll-content",` + min-height: 100%; + display: flex; + position: relative; + `),M("mask-hidden","pointer-events: none;",[x("modal-scroll-content",[z("> *",` + pointer-events: all; + `)])])]),x("modal",` + position: relative; + align-self: center; + color: var(--n-text-color); + margin: auto; + box-shadow: var(--n-box-shadow); + `,[Cn({duration:".25s",enterScale:".5"}),z(`.${Nc}`,` + cursor: move; + user-select: none; + `)])]),cf=Object.assign(Object.assign(Object.assign(Object.assign({},ge.props),{show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),df),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}}),uf=Y({name:"Modal",inheritAttrs:!1,props:cf,slots:Object,setup(e){const t=B(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:o}=Ee(e),i=ge("Modal","-modal",uB,iB,e,n),a=uu(64),l=cu(),d=$n(),c=e.internalDialog?Be(Rx,null):null,u=e.internalModal?Be(JC,null):null,f=zm();function v(P){const{onUpdateShow:k,"onUpdate:show":O,onHide:$}=e;k&&ie(k,P),O&&ie(O,P),$&&!P&&$(P)}function m(){const{onClose:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&v(!1)}):v(!1)}function h(){const{onPositiveClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&v(!1)}):v(!1)}function g(){const{onNegativeClick:P}=e;P?Promise.resolve(P()).then(k=>{k!==!1&&v(!1)}):v(!1)}function p(){const{onBeforeLeave:P,onBeforeHide:k}=e;P&&ie(P),k&&k()}function b(){const{onAfterLeave:P,onAfterHide:k}=e;P&&ie(P),k&&k()}function y(P){var k;const{onMaskClick:O}=e;O&&O(P),e.maskClosable&&!((k=t.value)===null||k===void 0)&&k.contains(Jn(P))&&v(!1)}function R(P){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Um(P)&&(f.value||v(!1))}ot(km,{getMousePosition:()=>{const P=c||u;if(P){const{clickedRef:k,clickedPositionRef:O}=P;if(k.value&&O.value)return O.value}return a.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:d,appearRef:le(e,"internalAppear"),transformOriginRef:le(e,"transformOrigin")});const w=S(()=>{const{common:{cubicBezierEaseOut:P},self:{boxShadow:k,color:O,textColor:$}}=i.value;return{"--n-bezier-ease-out":P,"--n-box-shadow":k,"--n-color":O,"--n-text-color":$}}),C=o?Xe("theme-class",void 0,w,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:d,containerRef:t,presetProps:S(()=>vn(e,dB)),handleEsc:R,handleAfterLeave:b,handleClickoutside:y,handleBeforeLeave:p,doUpdateShow:v,handleNegativeClick:g,handlePositiveClick:h,handleCloseClick:m,cssVars:o?void 0:w,themeClass:C?.themeClass,onRender:C?.onRender}},render(){const{mergedClsPrefix:e}=this;return s(Za,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{showMask:n}=this;return rn(s("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},s(cB,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!n},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return s(_t,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?s("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[Xa,{zIndex:this.zIndex,enabled:this.show}]])}})}}),fB=Object.assign(Object.assign({},il),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,blockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},internalStyle:[String,Object],maskClosable:{type:Boolean,default:!0},zIndex:Number,onPositiveClick:Function,onNegativeClick:Function,onClose:Function,onMaskClick:Function,draggable:[Boolean,Object]}),hB=Y({name:"DialogEnvironment",props:Object.assign(Object.assign({},fB),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(u){const{onPositiveClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function o(u){const{onNegativeClick:f}=e;f?Promise.resolve(f(u)).then(v=>{v!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function a(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handlePositiveClick:e,handleUpdateShow:t,handleNegativeClick:n,handleCloseClick:r,handleAfterLeave:o,handleMaskClick:i,handleEsc:a,to:l,zIndex:d,maskClosable:c,show:u}=this;return s(uf,{show:u,onUpdateShow:t,onMaskClick:i,onEsc:a,to:l,zIndex:d,maskClosable:c,onAfterEnter:this.onAfterEnter,onAfterLeave:o,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,draggable:this.draggable,internalAppear:!0,internalDialog:!0},{default:({draggableClass:f})=>s(sf,Object.assign({},vn(this.$props,Tx),{titleClass:tc([this.titleClass,f]),style:this.internalStyle,onClose:r,onNegativeClick:n,onPositiveClick:e}))})}}),Ix={injectionKey:String,to:[String,Object]},ff=Y({name:"DialogProvider",props:Ix,setup(){const e=B([]),t={};function n(l={}){const d=Vn(),c=Ka(Object.assign(Object.assign({},l),{key:d,destroy:()=>{var u;(u=t[`n-dialog-${d}`])===null||u===void 0||u.hide()}}));return e.value.push(c),c}const r=["info","success","warning","error"].map(l=>d=>n(Object.assign(Object.assign({},d),{type:l})));function o(l){const{value:d}=e;d.splice(d.findIndex(c=>c.key===l),1)}function i(){Object.values(t).forEach(l=>{l?.hide()})}const a={create:n,destroyAll:i,info:r[0],success:r[1],warning:r[2],error:r[3]};return ot(kx,a),ot(Rx,{clickedRef:uu(64),clickedPositionRef:cu()}),ot(Px,e),Object.assign(Object.assign({},a),{dialogList:e,dialogInstRefs:t,handleAfterLeave:o})},render(){var e,t;return s(qt,null,[this.dialogList.map(n=>s(hB,Fo(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:r=>{r===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=r},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),Bx="n-loading-bar",Ax="n-loading-bar-api";function vB(e){const{primaryColor:t,errorColor:n}=e;return{colorError:n,colorLoading:t,height:"2px"}}const gB={common:Je,self:vB},mB=x("loading-bar-container",` + z-index: 5999; + position: fixed; + top: 0; + left: 0; + right: 0; + height: 2px; +`,[eo({enterDuration:"0.3s",leaveDuration:"0.8s"}),x("loading-bar",` + width: 100%; + transition: + max-width 4s linear, + background .2s linear; + height: var(--n-height); + `,[M("starting",` + background: var(--n-color-loading); + `),M("finishing",` + background: var(--n-color-loading); + transition: + max-width .2s linear, + background .2s linear; + `),M("error",` + background: var(--n-color-error); + transition: + max-width .2s linear, + background .2s linear; + `)])]);var _l=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function El(e,t){return`${t}-loading-bar ${t}-loading-bar--${e}`}const pB=Y({name:"LoadingBar",props:{containerClass:String,containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:e}=Ee(),{props:t,mergedClsPrefixRef:n}=Be(Bx),r=B(null),o=B(!1),i=B(!1),a=B(!1),l=B(!1);let d=!1;const c=B(!1),u=S(()=>{const{loadingBarStyle:C}=t;return C?C[c.value?"error":"loading"]:""});function f(){return _l(this,void 0,void 0,function*(){o.value=!1,a.value=!1,d=!1,c.value=!1,l.value=!0,yield zt(),l.value=!1})}function v(){return _l(this,arguments,void 0,function*(C=0,P=80,k="starting"){if(i.value=!0,yield f(),d)return;a.value=!0,yield zt();const O=r.value;O&&(O.style.maxWidth=`${C}%`,O.style.transition="none",O.offsetWidth,O.className=El(k,n.value),O.style.transition="",O.style.maxWidth=`${P}%`)})}function m(){return _l(this,void 0,void 0,function*(){if(d||c.value)return;i.value&&(yield zt()),d=!0;const C=r.value;C&&(C.className=El("finishing",n.value),C.style.maxWidth="100%",C.offsetWidth,a.value=!1)})}function h(){if(!(d||c.value))if(!a.value)v(100,100,"error").then(()=>{c.value=!0;const C=r.value;C&&(C.className=El("error",n.value),C.offsetWidth,a.value=!1)});else{c.value=!0;const C=r.value;if(!C)return;C.className=El("error",n.value),C.style.maxWidth="100%",C.offsetWidth,a.value=!1}}function g(){o.value=!0}function p(){o.value=!1}function b(){return _l(this,void 0,void 0,function*(){yield f()})}const y=ge("LoadingBar","-loading-bar",mB,gB,t,n),R=S(()=>{const{self:{height:C,colorError:P,colorLoading:k}}=y.value;return{"--n-height":C,"--n-color-loading":k,"--n-color-error":P}}),w=e?Xe("loading-bar",void 0,R,t):void 0;return{mergedClsPrefix:n,loadingBarRef:r,started:i,loading:a,entering:o,transitionDisabled:l,start:v,error:h,finish:m,handleEnter:g,handleAfterEnter:p,handleAfterLeave:b,mergedLoadingBarStyle:u,cssVars:e?void 0:R,themeClass:w?.themeClass,onRender:w?.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:e}=this;return s(_t,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),rn(s("div",{class:[`${e}-loading-bar-container`,this.themeClass,this.containerClass],style:this.containerStyle},s("div",{ref:"loadingBarRef",class:[`${e}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[lr,this.loading||!this.loading&&this.entering]])}})}}),Dx=Object.assign(Object.assign({},ge.props),{to:{type:[String,Object,Boolean],default:void 0},containerClass:String,containerStyle:[String,Object],loadingBarStyle:{type:Object}}),_x=Y({name:"LoadingBarProvider",props:Dx,setup(e){const t=$n(),n=B(null),r={start(){var i;t.value?(i=n.value)===null||i===void 0||i.start():zt(()=>{var a;(a=n.value)===null||a===void 0||a.start()})},error(){var i;t.value?(i=n.value)===null||i===void 0||i.error():zt(()=>{var a;(a=n.value)===null||a===void 0||a.error()})},finish(){var i;t.value?(i=n.value)===null||i===void 0||i.finish():zt(()=>{var a;(a=n.value)===null||a===void 0||a.finish()})}},{mergedClsPrefixRef:o}=Ee(e);return ot(Ax,r),ot(Bx,{props:e,mergedClsPrefixRef:o}),Object.assign(r,{loadingBarRef:n})},render(){var e,t;return s(qt,null,s(qa,{disabled:this.to===!1,to:this.to||"body"},s(pB,{ref:"loadingBarRef",containerStyle:this.containerStyle,containerClass:this.containerClass})),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function Ex(){const e=Be(Ax,null);return e===null&&mn("use-loading-bar","No outer founded."),e}const Nx="n-message-api",Lx="n-message-provider",bB={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function xB(e){const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:l,warningColor:d,popoverColor:c,boxShadow2:u,primaryColor:f,lineHeight:v,borderRadius:m,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},bB),{closeBorderRadius:m,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:d,iconColorError:l,iconColorLoading:f,closeColorHover:h,closeColorPressed:g,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:f,lineHeight:v,borderRadius:m,border:"0"})}const yB={common:Je,self:xB},Hx={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},wB=z([x("message-wrapper",` + margin: var(--n-margin); + z-index: 0; + transform-origin: top center; + display: flex; + `,[no({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),x("message",` + box-sizing: border-box; + display: flex; + align-items: center; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier), + margin-bottom .3s var(--n-bezier); + padding: var(--n-padding); + border-radius: var(--n-border-radius); + border: var(--n-border); + flex-wrap: nowrap; + overflow: hidden; + max-width: var(--n-max-width); + color: var(--n-text-color); + background-color: var(--n-color); + box-shadow: var(--n-box-shadow); + `,[F("content",` + display: inline-block; + line-height: var(--n-line-height); + font-size: var(--n-font-size); + `),F("icon",` + position: relative; + margin: var(--n-icon-margin); + height: var(--n-icon-size); + width: var(--n-icon-size); + font-size: var(--n-icon-size); + flex-shrink: 0; + `,[["default","info","success","warning","error","loading"].map(e=>M(`${e}-type`,[z("> *",` + color: var(--n-icon-color-${e}); + transition: color .3s var(--n-bezier); + `)])),z("> *",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Fn()])]),F("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + flex-shrink: 0; + `,[z("&:hover",` + color: var(--n-close-icon-color-hover); + `),z("&:active",` + color: var(--n-close-icon-color-pressed); + `)])]),x("message-container",` + z-index: 6000; + position: fixed; + height: 0; + overflow: visible; + display: flex; + flex-direction: column; + align-items: center; + `,[M("top",` + top: 12px; + left: 0; + right: 0; + `),M("top-left",` + top: 12px; + left: 12px; + right: 0; + align-items: flex-start; + `),M("top-right",` + top: 12px; + left: 0; + right: 12px; + align-items: flex-end; + `),M("bottom",` + bottom: 4px; + left: 0; + right: 0; + justify-content: flex-end; + `),M("bottom-left",` + bottom: 4px; + left: 12px; + right: 0; + justify-content: flex-end; + align-items: flex-start; + `),M("bottom-right",` + bottom: 4px; + left: 0; + right: 12px; + justify-content: flex-end; + align-items: flex-end; + `)])]),CB={info:()=>s(To,null),success:()=>s(pi,null),warning:()=>s(Bo,null),error:()=>s(mi,null),default:()=>null},SB=Y({name:"Message",props:Object.assign(Object.assign({},Hx),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=Ee(e),{props:r,mergedClsPrefixRef:o}=Be(Lx),i=Bt("Message",n,o),a=ge("Message","-message",wB,yB,r,o),l=S(()=>{const{type:c}=e,{common:{cubicBezierEaseInOut:u},self:{padding:f,margin:v,maxWidth:m,iconMargin:h,closeMargin:g,closeSize:p,iconSize:b,fontSize:y,lineHeight:R,borderRadius:w,border:C,iconColorInfo:P,iconColorSuccess:k,iconColorWarning:O,iconColorError:$,iconColorLoading:T,closeIconSize:D,closeBorderRadius:I,[be("textColor",c)]:A,[be("boxShadow",c)]:E,[be("color",c)]:N,[be("closeColorHover",c)]:U,[be("closeColorPressed",c)]:q,[be("closeIconColor",c)]:J,[be("closeIconColorPressed",c)]:ve,[be("closeIconColorHover",c)]:ae}}=a.value;return{"--n-bezier":u,"--n-margin":v,"--n-padding":f,"--n-max-width":m,"--n-font-size":y,"--n-icon-margin":h,"--n-icon-size":b,"--n-close-icon-size":D,"--n-close-border-radius":I,"--n-close-size":p,"--n-close-margin":g,"--n-text-color":A,"--n-color":N,"--n-box-shadow":E,"--n-icon-color-info":P,"--n-icon-color-success":k,"--n-icon-color-warning":O,"--n-icon-color-error":$,"--n-icon-color-loading":T,"--n-close-color-hover":U,"--n-close-color-pressed":q,"--n-close-icon-color":J,"--n-close-icon-color-pressed":ve,"--n-close-icon-color-hover":ae,"--n-line-height":R,"--n-border-radius":w,"--n-border":C}}),d=t?Xe("message",S(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var c;(c=e.onClose)===null||c===void 0||c.call(e)},cssVars:t?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:l,icon:d,handleClose:c,showIcon:u}=this;l?.();let f;return s("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):s("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(f=RB(d,t,o))&&u?s("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},s(Wr,null,{default:()=>f})):null,s("div",{class:`${o}-message__content`},Wt(r)),n?s(lo,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});function RB(e,t,n){if(typeof e=="function")return e();{const r=t==="loading"?s(Tr,{clsPrefix:n,strokeWidth:24,scale:.85}):CB[t]();return r?s(lt,{clsPrefix:n,key:t},{default:()=>r}):null}}const kB=Y({name:"MessageEnvironment",props:Object.assign(Object.assign({},Hx),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=B(!0);It(()=>{r()});function r(){const{duration:u}=e;u&&(t=window.setTimeout(a,u))}function o(u){u.currentTarget===u.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(u){u.currentTarget===u.target&&r()}function a(){const{onHide:u}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),u&&u()}function l(){const{onClose:u}=e;u&&u(),a()}function d(){const{onAfterLeave:u,onInternalAfterLeave:f,onAfterHide:v,internalKey:m}=e;u&&u(),f&&f(m),v&&v()}function c(){a()}return{show:n,hide:a,handleClose:l,handleAfterLeave:d,handleMouseleave:i,handleMouseenter:o,deactivate:c}},render(){return s(Kr,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?s(SB,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),jx=Object.assign(Object.assign({},ge.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),hf=Y({name:"MessageProvider",props:jx,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=B([]),r=B({}),o={create(d,c){return i(d,Object.assign({type:"default"},c))},info(d,c){return i(d,Object.assign(Object.assign({},c),{type:"info"}))},success(d,c){return i(d,Object.assign(Object.assign({},c),{type:"success"}))},warning(d,c){return i(d,Object.assign(Object.assign({},c),{type:"warning"}))},error(d,c){return i(d,Object.assign(Object.assign({},c),{type:"error"}))},loading(d,c){return i(d,Object.assign(Object.assign({},c),{type:"loading"}))},destroyAll:l};ot(Lx,{props:e,mergedClsPrefixRef:t}),ot(Nx,o);function i(d,c){const u=Vn(),f=Ka(Object.assign(Object.assign({},c),{content:d,key:u,destroy:()=>{var m;(m=r.value[u])===null||m===void 0||m.hide()}})),{max:v}=e;return v&&n.value.length>=v&&n.value.shift(),n.value.push(f),f}function a(d){n.value.splice(n.value.findIndex(c=>c.key===d),1),delete r.value[d]}function l(){Object.values(r.value).forEach(d=>{d.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:a},o)},render(){var e,t,n;return s(qt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?s(qa,{to:(n=this.to)!==null&&n!==void 0?n:"body"},s("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>s(kB,Object.assign({ref:o=>{o&&(this.messageRefs[r.key]=o)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},Fo(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function Vx(){const e=Be(Nx,null);return e===null&&mn("use-message","No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const PB=Y({name:"ModalEnvironment",props:Object.assign(Object.assign({},cf),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const t=B(!0);function n(){const{onInternalAfterLeave:u,internalKey:f,onAfterLeave:v}=e;u&&u(f),v&&v()}function r(){const{onPositiveClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function o(){const{onNegativeClick:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function i(){const{onClose:u}=e;u?Promise.resolve(u()).then(f=>{f!==!1&&d()}):d()}function a(u){const{onMaskClick:f,maskClosable:v}=e;f&&(f(u),v&&d())}function l(){const{onEsc:u}=e;u&&u()}function d(){t.value=!1}function c(u){t.value=u}return{show:t,hide:d,handleUpdateShow:c,handleAfterLeave:n,handleCloseClick:i,handleNegativeClick:o,handlePositiveClick:r,handleMaskClick:a,handleEsc:l}},render(){const{handleUpdateShow:e,handleAfterLeave:t,handleMaskClick:n,handleEsc:r,show:o}=this;return s(uf,Object.assign({},this.$props,{show:o,onUpdateShow:e,onMaskClick:n,onEsc:r,onAfterLeave:t,internalAppear:!0,internalModal:!0}),this.$slots)}}),Ux={to:[String,Object]},Wx=Y({name:"ModalProvider",props:Ux,setup(){const e=B([]),t={};function n(a={}){const l=Vn(),d=Ka(Object.assign(Object.assign({},a),{key:l,destroy:()=>{var c;(c=t[`n-modal-${l}`])===null||c===void 0||c.hide()}}));return e.value.push(d),d}function r(a){const{value:l}=e;l.splice(l.findIndex(d=>d.key===a),1)}function o(){Object.values(t).forEach(a=>{a?.hide()})}const i={create:n,destroyAll:o};return ot(Ox,i),ot(aB,{clickedRef:uu(64),clickedPositionRef:cu()}),ot(Fx,e),Object.assign(Object.assign({},i),{modalList:e,modalInstRefs:t,handleAfterLeave:r})},render(){var e,t;return s(qt,null,[this.modalList.map(n=>{var r;return s(PB,Fo(n,["destroy","render"],{to:(r=n.to)!==null&&r!==void 0?r:this.to,ref:o=>{o===null?delete this.modalInstRefs[`n-modal-${n.key}`]:this.modalInstRefs[`n-modal-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}),{default:n.render})}),(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)])}}),zB={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function $B(e){const{textColor2:t,successColor:n,infoColor:r,warningColor:o,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeColorHover:u,closeColorPressed:f,textColor1:v,textColor3:m,borderRadius:h,fontWeightStrong:g,boxShadow2:p,lineHeight:b,fontSize:y}=e;return Object.assign(Object.assign({},zB),{borderRadius:h,lineHeight:b,fontSize:y,headerFontWeight:g,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:o,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:d,closeIconColorPressed:c,closeBorderRadius:h,closeColorHover:u,closeColorPressed:f,headerTextColor:v,descriptionTextColor:m,actionTextColor:t,boxShadow:p})}const TB={name:"Notification",common:Je,peers:{Scrollbar:Ln},self:$B},Us="n-notification-provider",OB=Y({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t,wipTransitionCountRef:n}=Be(Us),r=B(null);return Ft(()=>{var o,i;n.value>0?(o=r?.value)===null||o===void 0||o.classList.add("transitioning"):(i=r?.value)===null||i===void 0||i.classList.remove("transitioning")}),{selfRef:r,mergedTheme:e,mergedClsPrefix:t,transitioning:n}},render(){const{$slots:e,scrollable:t,mergedClsPrefix:n,mergedTheme:r,placement:o}=this;return s("div",{ref:"selfRef",class:[`${n}-notification-container`,t&&`${n}-notification-container--scrollable`,`${n}-notification-container--${o}`]},t?s(Zt,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},e):e)}}),FB={info:()=>s(To,null),success:()=>s(pi,null),warning:()=>s(Bo,null),error:()=>s(mi,null),default:()=>null},vf={closable:{type:Boolean,default:!0},type:{type:String,default:"default"},avatar:Function,title:[String,Function],description:[String,Function],content:[String,Function],meta:[String,Function],action:[String,Function],onClose:{type:Function,required:!0},keepAliveOnHover:Boolean,onMouseenter:Function,onMouseleave:Function},MB=In(vf),IB=Y({name:"Notification",props:vf,setup(e){const{mergedClsPrefixRef:t,mergedThemeRef:n,props:r}=Be(Us),{inlineThemeDisabled:o,mergedRtlRef:i}=Ee(),a=Bt("Notification",i,t),l=S(()=>{const{type:c}=e,{self:{color:u,textColor:f,closeIconColor:v,closeIconColorHover:m,closeIconColorPressed:h,headerTextColor:g,descriptionTextColor:p,actionTextColor:b,borderRadius:y,headerFontWeight:R,boxShadow:w,lineHeight:C,fontSize:P,closeMargin:k,closeSize:O,width:$,padding:T,closeIconSize:D,closeBorderRadius:I,closeColorHover:A,closeColorPressed:E,titleFontSize:N,metaFontSize:U,descriptionFontSize:q,[be("iconColor",c)]:J},common:{cubicBezierEaseOut:ve,cubicBezierEaseIn:ae,cubicBezierEaseInOut:W}}=n.value,{left:j,right:_,top:L,bottom:Z}=cn(T);return{"--n-color":u,"--n-font-size":P,"--n-text-color":f,"--n-description-text-color":p,"--n-action-text-color":b,"--n-title-text-color":g,"--n-title-font-weight":R,"--n-bezier":W,"--n-bezier-ease-out":ve,"--n-bezier-ease-in":ae,"--n-border-radius":y,"--n-box-shadow":w,"--n-close-border-radius":I,"--n-close-color-hover":A,"--n-close-color-pressed":E,"--n-close-icon-color":v,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":h,"--n-line-height":C,"--n-icon-color":J,"--n-close-margin":k,"--n-close-size":O,"--n-close-icon-size":D,"--n-width":$,"--n-padding-left":j,"--n-padding-right":_,"--n-padding-top":L,"--n-padding-bottom":Z,"--n-title-font-size":N,"--n-meta-font-size":U,"--n-description-font-size":q}}),d=o?Xe("notification",S(()=>e.type[0]),l,r):void 0;return{mergedClsPrefix:t,showAvatar:S(()=>e.avatar||e.type!=="default"),handleCloseClick(){e.onClose()},rtlEnabled:a,cssVars:o?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},s("div",{class:[`${t}-notification`,this.rtlEnabled&&`${t}-notification--rtl`,this.themeClass,{[`${t}-notification--closable`]:this.closable,[`${t}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?s("div",{class:`${t}-notification__avatar`},this.avatar?Wt(this.avatar):this.type!=="default"?s(lt,{clsPrefix:t},{default:()=>FB[this.type]()}):null):null,this.closable?s(lo,{clsPrefix:t,class:`${t}-notification__close`,onClick:this.handleCloseClick}):null,s("div",{ref:"bodyRef",class:`${t}-notification-main`},this.title?s("div",{class:`${t}-notification-main__header`},Wt(this.title)):null,this.description?s("div",{class:`${t}-notification-main__description`},Wt(this.description)):null,this.content?s("pre",{class:`${t}-notification-main__content`},Wt(this.content)):null,this.meta||this.action?s("div",{class:`${t}-notification-main-footer`},this.meta?s("div",{class:`${t}-notification-main-footer__meta`},Wt(this.meta)):null,this.action?s("div",{class:`${t}-notification-main-footer__action`},Wt(this.action)):null):null)))}}),BB=Object.assign(Object.assign({},vf),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),AB=Y({name:"NotificationEnvironment",props:Object.assign(Object.assign({},BB),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(e){const{wipTransitionCountRef:t}=Be(Us),n=B(!0);let r=null;function o(){n.value=!1,r&&window.clearTimeout(r)}function i(h){t.value++,zt(()=>{h.style.height=`${h.offsetHeight}px`,h.style.maxHeight="0",h.style.transition="none",h.offsetHeight,h.style.transition="",h.style.maxHeight=h.style.height})}function a(h){t.value--,h.style.height="",h.style.maxHeight="";const{onAfterEnter:g,onAfterShow:p}=e;g&&g(),p&&p()}function l(h){t.value++,h.style.maxHeight=`${h.offsetHeight}px`,h.style.height=`${h.offsetHeight}px`,h.offsetHeight}function d(h){const{onHide:g}=e;g&&g(),h.style.maxHeight="0",h.offsetHeight}function c(){t.value--;const{onAfterLeave:h,onInternalAfterLeave:g,onAfterHide:p,internalKey:b}=e;h&&h(),g(b),p&&p()}function u(){const{duration:h}=e;h&&(r=window.setTimeout(o,h))}function f(h){h.currentTarget===h.target&&r!==null&&(window.clearTimeout(r),r=null)}function v(h){h.currentTarget===h.target&&u()}function m(){const{onClose:h}=e;h?Promise.resolve(h()).then(g=>{g!==!1&&o()}):o()}return It(()=>{e.duration&&(r=window.setTimeout(o,e.duration))}),{show:n,hide:o,handleClose:m,handleAfterLeave:c,handleLeave:d,handleBeforeLeave:l,handleAfterEnter:a,handleBeforeEnter:i,handleMouseenter:f,handleMouseleave:v}},render(){return s(_t,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?s(IB,Object.assign({},vn(this.$props,MB),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}}),DB=z([x("notification-container",` + z-index: 4000; + position: fixed; + overflow: visible; + display: flex; + flex-direction: column; + align-items: flex-end; + `,[z(">",[x("scrollbar",` + width: initial; + overflow: visible; + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[z(">",[x("scrollbar-container",` + height: -moz-fit-content !important; + height: fit-content !important; + max-height: 100vh !important; + `,[x("scrollbar-content",` + padding-top: 12px; + padding-bottom: 33px; + `)])])])]),M("top, top-right, top-left",` + top: 12px; + `,[z("&.transitioning >",[x("scrollbar",[z(">",[x("scrollbar-container",` + min-height: 100vh !important; + `)])])])]),M("bottom, bottom-right, bottom-left",` + bottom: 12px; + `,[z(">",[x("scrollbar",[z(">",[x("scrollbar-container",[x("scrollbar-content",` + padding-bottom: 12px; + `)])])])]),x("notification-wrapper",` + display: flex; + align-items: flex-end; + margin-bottom: 0; + margin-top: 12px; + `)]),M("top, bottom",` + left: 50%; + transform: translateX(-50%); + `,[x("notification-wrapper",[z("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: scale(0.85); + `),z("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: scale(1); + `)])]),M("top",[x("notification-wrapper",` + transform-origin: top center; + `)]),M("bottom",[x("notification-wrapper",` + transform-origin: bottom center; + `)]),M("top-right, bottom-right",[x("notification",` + margin-left: 28px; + margin-right: 16px; + `)]),M("top-left, bottom-left",[x("notification",` + margin-left: 16px; + margin-right: 28px; + `)]),M("top-right",` + right: 0; + `,[Nl("top-right")]),M("top-left",` + left: 0; + `,[Nl("top-left")]),M("bottom-right",` + right: 0; + `,[Nl("bottom-right")]),M("bottom-left",` + left: 0; + `,[Nl("bottom-left")]),M("scrollable",[M("top-right",` + top: 0; + `),M("top-left",` + top: 0; + `),M("bottom-right",` + bottom: 0; + `),M("bottom-left",` + bottom: 0; + `)]),x("notification-wrapper",` + margin-bottom: 12px; + `,[z("&.notification-transition-enter-from, &.notification-transition-leave-to",` + opacity: 0; + margin-top: 0 !important; + margin-bottom: 0 !important; + `),z("&.notification-transition-leave-from, &.notification-transition-enter-to",` + opacity: 1; + `),z("&.notification-transition-leave-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-in), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `),z("&.notification-transition-enter-active",` + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + transform .3s var(--n-bezier-ease-out), + max-height .3s var(--n-bezier), + margin-top .3s linear, + margin-bottom .3s linear, + box-shadow .3s var(--n-bezier); + `)]),x("notification",` + background-color: var(--n-color); + color: var(--n-text-color); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + font-family: inherit; + font-size: var(--n-font-size); + font-weight: 400; + position: relative; + display: flex; + overflow: hidden; + flex-shrink: 0; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + width: var(--n-width); + max-width: calc(100vw - 16px - 16px); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + box-sizing: border-box; + opacity: 1; + `,[F("avatar",[x("icon",` + color: var(--n-icon-color); + `),x("base-icon",` + color: var(--n-icon-color); + `)]),M("show-avatar",[x("notification-main",` + margin-left: 40px; + width: calc(100% - 40px); + `)]),M("closable",[x("notification-main",[z("> *:first-child",` + padding-right: 20px; + `)]),F("close",` + position: absolute; + top: 0; + right: 0; + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),F("avatar",` + position: absolute; + top: var(--n-padding-top); + left: var(--n-padding-left); + width: 28px; + height: 28px; + font-size: 28px; + display: flex; + align-items: center; + justify-content: center; + `,[x("icon","transition: color .3s var(--n-bezier);")]),x("notification-main",` + padding-top: var(--n-padding-top); + padding-bottom: var(--n-padding-bottom); + box-sizing: border-box; + display: flex; + flex-direction: column; + margin-left: 8px; + width: calc(100% - 8px); + `,[x("notification-main-footer",` + display: flex; + align-items: center; + justify-content: space-between; + margin-top: 12px; + `,[F("meta",` + font-size: var(--n-meta-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),F("action",` + cursor: pointer; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-action-text-color); + `)]),F("header",` + font-weight: var(--n-title-font-weight); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-title-text-color); + `),F("description",` + margin-top: 8px; + font-size: var(--n-description-font-size); + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-description-text-color); + `),F("content",` + line-height: var(--n-line-height); + margin: 12px 0 0 0; + font-family: inherit; + white-space: pre-wrap; + word-wrap: break-word; + transition: color .3s var(--n-bezier-ease-out); + color: var(--n-text-color); + `,[z("&:first-child","margin: 0;")])])])])]);function Nl(e){const n=e.split("-")[1]==="left"?"calc(-100%)":"calc(100%)";return x("notification-wrapper",[z("&.notification-transition-enter-from, &.notification-transition-leave-to",` + transform: translate(${n}, 0); + `),z("&.notification-transition-leave-from, &.notification-transition-enter-to",` + transform: translate(0, 0); + `)])}const Kx="n-notification-api",qx=Object.assign(Object.assign({},ge.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),Yx=Y({name:"NotificationProvider",props:qx,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=B([]),r={},o=new Set;function i(m){const h=Vn(),g=()=>{o.add(h),r[h]&&r[h].hide()},p=Ka(Object.assign(Object.assign({},m),{key:h,destroy:g,hide:g,deactivate:g})),{max:b}=e;if(b&&n.value.length-o.size>=b){let y=!1,R=0;for(const w of n.value){if(!o.has(w.key)){r[w.key]&&(w.destroy(),y=!0);break}R++}y||n.value.splice(R,1)}return n.value.push(p),p}const a=["info","success","warning","error"].map(m=>h=>i(Object.assign(Object.assign({},h),{type:m})));function l(m){o.delete(m),n.value.splice(n.value.findIndex(h=>h.key===m),1)}const d=ge("Notification","-notification",DB,TB,e,t),c={create:i,info:a[0],success:a[1],warning:a[2],error:a[3],open:f,destroyAll:v},u=B(0);ot(Kx,c),ot(Us,{props:e,mergedClsPrefixRef:t,mergedThemeRef:d,wipTransitionCountRef:u});function f(m){return i(m)}function v(){Object.values(n.value).forEach(m=>{m.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:l},c)},render(){var e,t,n;const{placement:r}=this;return s(qt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?s(qa,{to:(n=this.to)!==null&&n!==void 0?n:"body"},s(OB,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>s(AB,Object.assign({ref:i=>{const a=o.key;i===null?delete this.notificationRefs[a]:this.notificationRefs[a]=i}},Fo(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function Gx(){const e=Be(Kx,null);return e===null&&mn("use-notification","No outer `n-notification-provider` found."),e}const _B=Y({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),EB={message:Vx,notification:Gx,loadingBar:Ex,dialog:zx,modal:Mx};function NB({providersAndProps:e,configProviderProps:t}){let n=am(o);const r={app:n};function o(){return s(Ku,On(t),{default:()=>e.map(({type:l,Provider:d,props:c})=>s(d,On(c),{default:()=>s(_B,{onSetup:()=>r[l]=EB[l]()})}))})}let i;return Wn&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var l;if(n===null||i===null){Mn("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(l=i.parentNode)===null||l===void 0||l.removeChild(i),i=null,n=null}},r)}function LB(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:a}={}){const l=[];return e.forEach(c=>{switch(c){case"message":l.push({type:c,Provider:hf,props:n});break;case"notification":l.push({type:c,Provider:Yx,props:o});break;case"dialog":l.push({type:c,Provider:ff,props:r});break;case"loadingBar":l.push({type:c,Provider:_x,props:i});break;case"modal":l.push({type:c,Provider:Wx,props:a})}}),NB({providersAndProps:l,configProviderProps:t})}function HB(e){const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}const jB={common:Je,self:HB},VB=x("divider",` + position: relative; + display: flex; + width: 100%; + box-sizing: border-box; + font-size: 16px; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); +`,[ft("vertical",` + margin-top: 24px; + margin-bottom: 24px; + `,[ft("no-title",` + display: flex; + align-items: center; + `)]),F("title",` + display: flex; + align-items: center; + margin-left: 12px; + margin-right: 12px; + white-space: nowrap; + font-weight: var(--n-font-weight); + `),M("title-position-left",[F("line",[M("left",{width:"28px"})])]),M("title-position-right",[F("line",[M("right",{width:"28px"})])]),M("dashed",[F("line",` + background-color: #0000; + height: 0px; + width: 100%; + border-style: dashed; + border-width: 1px 0 0; + `)]),M("vertical",` + display: inline-block; + height: 1em; + margin: 0 8px; + vertical-align: middle; + width: 1px; + `),F("line",` + border: none; + transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier); + height: 1px; + width: 100%; + margin: 0; + `),ft("dashed",[F("line",{backgroundColor:"var(--n-color)"})]),M("dashed",[F("line",{borderColor:"var(--n-color)"})]),M("vertical",{backgroundColor:"var(--n-color)"})]),Xx=Object.assign(Object.assign({},ge.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),UB=Y({name:"Divider",props:Xx,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Divider","-divider",VB,jB,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:l,textColor:d,fontWeight:c}}=r.value;return{"--n-bezier":a,"--n-color":l,"--n-text-color":d,"--n-font-weight":c}}),i=n?Xe("divider",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:o,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:o,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:s("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?s(qt,null,s("div",{class:`${a}-divider__title`},this.$slots),s("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}});function WB(e){const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:d,closeColorPressed:c,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,borderRadius:m,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",borderRadius:m,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:u,closeIconColorHover:f,closeIconColorPressed:v,closeSize:"22px",closeIconSize:"18px",closeColorHover:d,closeColorPressed:c,closeBorderRadius:m,resizableTriggerColorHover:h}}const KB={name:"Drawer",common:Je,peers:{Scrollbar:Ln},self:WB},qB=Y({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentClass:String,contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=B(!!e.show),n=B(null),r=Be(vu);let o=0,i="",a=null;const l=B(!1),d=B(!1),c=S(()=>e.placement==="top"||e.placement==="bottom"),{mergedClsPrefixRef:u,mergedRtlRef:f}=Ee(e),v=Bt("Drawer",f,u),m=P,h=$=>{d.value=!0,o=c.value?$.clientY:$.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",C),document.body.addEventListener("mouseleave",m),document.body.addEventListener("mouseup",P)},g=()=>{a!==null&&(window.clearTimeout(a),a=null),d.value?l.value=!0:a=window.setTimeout(()=>{l.value=!0},300)},p=()=>{a!==null&&(window.clearTimeout(a),a=null),l.value=!1},{doUpdateHeight:b,doUpdateWidth:y}=r,R=$=>{const{maxWidth:T}=e;if(T&&$>T)return T;const{minWidth:D}=e;return D&&${const{maxHeight:T}=e;if(T&&$>T)return T;const{minHeight:D}=e;return D&&${e.show&&(t.value=!0)}),ct(()=>e.show,$=>{$||P()}),jt(()=>{P()});const k=S(()=>{const{show:$}=e,T=[[lr,$]];return e.showMask||T.push([Qn,e.onClickoutside,void 0,{capture:!0}]),T});function O(){var $;t.value=!1,($=e.onAfterLeave)===null||$===void 0||$.call(e)}return $m(S(()=>e.blockScroll&&t.value)),ot(Ya,n),ot(Zi,null),ot(Ga,null),{bodyRef:n,rtlEnabled:v,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:S(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[e.placement]),handleAfterLeave:O,bodyDirectives:k,handleMousedownResizeTrigger:h,handleMouseenterResizeTrigger:g,handleMouseleaveResizeTrigger:p,isDragging:d,isHoverOnResizeTrigger:l}},render(){const{$slots:e,mergedClsPrefix:t}=this;return this.displayDirective==="show"||this.displayed||this.show?rn(s("div",{role:"none"},s(xu,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>s(_t,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>rn(s("div",Pn(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?s("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?s("div",{class:[`${t}-drawer-content-wrapper`,this.contentClass],style:this.contentStyle,role:"none"},e):s(Zt,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:[`${t}-drawer-content-wrapper`,this.contentClass],theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[lr,this.displayDirective==="if"||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:YB,cubicBezierEaseOut:GB}=er;function XB({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[z(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${YB}`}),z(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${GB}`}),z(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),z(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),z(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),z(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}const{cubicBezierEaseIn:ZB,cubicBezierEaseOut:JB}=er;function QB({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[z(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${ZB}`}),z(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${JB}`}),z(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),z(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),z(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),z(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:eA,cubicBezierEaseOut:tA}=er;function nA({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[z(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${eA}`}),z(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${tA}`}),z(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),z(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),z(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),z(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:rA,cubicBezierEaseOut:oA}=er;function iA({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[z(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${rA}`}),z(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${oA}`}),z(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),z(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),z(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),z(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const aA=z([x("drawer",` + word-break: break-word; + line-height: var(--n-line-height); + position: absolute; + pointer-events: all; + box-shadow: var(--n-box-shadow); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background-color: var(--n-color); + color: var(--n-text-color); + box-sizing: border-box; + `,[nA(),QB(),iA(),XB(),M("unselectable",` + user-select: none; + -webkit-user-select: none; + `),M("native-scrollbar",[x("drawer-content-wrapper",` + overflow: auto; + height: 100%; + `)]),F("resize-trigger",` + position: absolute; + background-color: #0000; + transition: background-color .3s var(--n-bezier); + `,[M("hover",` + background-color: var(--n-resize-trigger-color-hover); + `)]),x("drawer-content-wrapper",` + box-sizing: border-box; + `),x("drawer-content",` + height: 100%; + display: flex; + flex-direction: column; + `,[M("native-scrollbar",[x("drawer-body-content-wrapper",` + height: 100%; + overflow: auto; + `)]),x("drawer-body",` + flex: 1 0 0; + overflow: hidden; + `),x("drawer-body-content-wrapper",` + box-sizing: border-box; + padding: var(--n-body-padding); + `),x("drawer-header",` + font-weight: var(--n-title-font-weight); + line-height: 1; + font-size: var(--n-title-font-size); + color: var(--n-title-text-color); + padding: var(--n-header-padding); + transition: border .3s var(--n-bezier); + border-bottom: 1px solid var(--n-divider-color); + border-bottom: var(--n-header-border-bottom); + display: flex; + justify-content: space-between; + align-items: center; + `,[F("main",` + flex: 1; + `),F("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),x("drawer-footer",` + display: flex; + justify-content: flex-end; + border-top: var(--n-footer-border-top); + transition: border .3s var(--n-bezier); + padding: var(--n-footer-padding); + `)]),M("right-placement",` + top: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[F("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + left: 0; + transform: translateX(-1.5px); + cursor: ew-resize; + `)]),M("left-placement",` + top: 0; + bottom: 0; + left: 0; + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[F("resize-trigger",` + width: 3px; + height: 100%; + top: 0; + right: 0; + transform: translateX(1.5px); + cursor: ew-resize; + `)]),M("top-placement",` + top: 0; + left: 0; + right: 0; + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[F("resize-trigger",` + width: 100%; + height: 3px; + bottom: 0; + left: 0; + transform: translateY(1.5px); + cursor: ns-resize; + `)]),M("bottom-placement",` + left: 0; + bottom: 0; + right: 0; + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + `,[F("resize-trigger",` + width: 100%; + height: 3px; + top: 0; + left: 0; + transform: translateY(-1.5px); + cursor: ns-resize; + `)])]),z("body",[z(">",[x("drawer-container",` + position: fixed; + `)])]),x("drawer-container",` + position: relative; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + `,[z("> *",` + pointer-events: all; + `)]),x("drawer-mask",` + background-color: rgba(0, 0, 0, .3); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[M("invisible",` + background-color: rgba(0, 0, 0, 0) + `),eo({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),Zx=Object.assign(Object.assign({},ge.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentClass:String,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),lA=Y({name:"Drawer",inheritAttrs:!1,props:Zx,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=Ee(e),o=$n(),i=ge("Drawer","-drawer",aA,KB,e,t),a=B(e.defaultWidth),l=B(e.defaultHeight),d=St(le(e,"width"),a),c=St(le(e,"height"),l),u=S(()=>{const{placement:P}=e;return P==="top"||P==="bottom"?"":Pt(d.value)}),f=S(()=>{const{placement:P}=e;return P==="left"||P==="right"?"":Pt(c.value)}),v=P=>{const{onUpdateWidth:k,"onUpdate:width":O}=e;k&&ie(k,P),O&&ie(O,P),a.value=P},m=P=>{const{onUpdateHeight:k,"onUpdate:width":O}=e;k&&ie(k,P),O&&ie(O,P),l.value=P},h=S(()=>[{width:u.value,height:f.value},e.drawerStyle||""]);function g(P){const{onMaskClick:k,maskClosable:O}=e;O&&R(!1),k&&k(P)}function p(P){g(P)}const b=zm();function y(P){var k;(k=e.onEsc)===null||k===void 0||k.call(e),e.show&&e.closeOnEsc&&Um(P)&&(b.value||R(!1))}function R(P){const{onHide:k,onUpdateShow:O,"onUpdate:show":$}=e;O&&ie(O,P),$&&ie($,P),k&&!P&&ie(k,P)}ot(vu,{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:R,doUpdateHeight:m,doUpdateWidth:v});const w=S(()=>{const{common:{cubicBezierEaseInOut:P,cubicBezierEaseIn:k,cubicBezierEaseOut:O},self:{color:$,textColor:T,boxShadow:D,lineHeight:I,headerPadding:A,footerPadding:E,borderRadius:N,bodyPadding:U,titleFontSize:q,titleTextColor:J,titleFontWeight:ve,headerBorderBottom:ae,footerBorderTop:W,closeIconColor:j,closeIconColorHover:_,closeIconColorPressed:L,closeColorHover:Z,closeColorPressed:ce,closeIconSize:ye,closeSize:_e,closeBorderRadius:V,resizableTriggerColorHover:ze}}=i.value;return{"--n-line-height":I,"--n-color":$,"--n-border-radius":N,"--n-text-color":T,"--n-box-shadow":D,"--n-bezier":P,"--n-bezier-out":O,"--n-bezier-in":k,"--n-header-padding":A,"--n-body-padding":U,"--n-footer-padding":E,"--n-title-text-color":J,"--n-title-font-size":q,"--n-title-font-weight":ve,"--n-header-border-bottom":ae,"--n-footer-border-top":W,"--n-close-icon-color":j,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":L,"--n-close-size":_e,"--n-close-color-hover":Z,"--n-close-color-pressed":ce,"--n-close-icon-size":ye,"--n-close-border-radius":V,"--n-resize-trigger-color-hover":ze}}),C=r?Xe("drawer",void 0,w,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:h,handleOutsideClick:p,handleMaskClick:g,handleEsc:y,mergedTheme:i,cssVars:r?void 0:w,themeClass:C?.themeClass,onRender:C?.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return s(Za,{to:this.to,show:this.show},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),rn(s("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?s(_t,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?s("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,this.showMask==="transparent"&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,s(qB,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,contentClass:this.contentClass,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleOutsideClick}),this.$slots)),[[Xa,{zIndex:this.zIndex,enabled:this.show}]])}})}}),Jx={title:String,headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],bodyClass:String,bodyStyle:[Object,String],bodyContentClass:String,bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},sA=Y({name:"DrawerContent",props:Jx,slots:Object,setup(){const e=Be(vu,null);e||mn("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;function n(){t(!1)}return{handleCloseClick:n,mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyClass:o,bodyStyle:i,bodyContentClass:a,bodyContentStyle:l,headerClass:d,headerStyle:c,footerClass:u,footerStyle:f,scrollbarProps:v,closable:m,$slots:h}=this;return s("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},h.header||e||m?s("div",{class:[`${t}-drawer-header`,d],style:c,role:"none"},s("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},h.header!==void 0?h.header():e),m&&s(lo,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?s("div",{class:[`${t}-drawer-body`,o],style:i,role:"none"},s("div",{class:[`${t}-drawer-body-content-wrapper`,a],style:l,role:"none"},h)):s(Zt,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},v,{class:`${t}-drawer-body`,contentClass:[`${t}-drawer-body-content-wrapper`,a],contentStyle:l}),h),h.footer?s("div",{class:[`${t}-drawer-footer`,u],style:f,role:"none"},h.footer()):null)}}),dA={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};function cA(){return dA}const uA={name:"DynamicInput",common:Je,peers:{Input:tr,Button:nr},self:cA},gf="n-dynamic-input",fA=Y({name:"DynamicInputInputPreset",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:""},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,placeholderRef:t}=Be(gf);return{mergedTheme:e,placeholder:t}},render(){const{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:o,disabled:i}=this;return s("div",{class:`${r}-dynamic-input-preset-input`},s(Sn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:o,disabled:i}))}}),hA=Y({name:"DynamicInputPairPreset",props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:"",value:""})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){const{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=Be(gf);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(o){e.onUpdateValue({key:o,value:e.value.value})},handleValueInput(o){e.onUpdateValue({key:e.value.key,value:o})}}},render(){const{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:o,disabled:i}=this;return s("div",{class:`${o}-dynamic-input-preset-pair`},s(Sn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${o}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:i}),s(Sn,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${o}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:i}))}}),vA=x("dynamic-input",{width:"100%"},[x("dynamic-input-item",` + margin-bottom: 10px; + display: flex; + flex-wrap: nowrap; + `,[x("dynamic-input-preset-input",{flex:1,alignItems:"center"}),x("dynamic-input-preset-pair",` + flex: 1; + display: flex; + align-items: center; + `,[x("dynamic-input-pair-input",[z("&:first-child",{"margin-right":"12px"})])]),F("action",` + align-self: flex-start; + display: flex; + justify-content: flex-end; + flex-shrink: 0; + flex-grow: 0; + margin: var(--action-margin); + `,[M("icon",{cursor:"pointer"})]),z("&:last-child",{marginBottom:0})]),x("form-item",` + padding-top: 0 !important; + margin-right: 0 !important; + `,[x("form-item-blank",{paddingTop:"0 !important"})])]),Ll=new WeakMap,Qx=Object.assign(Object.assign({},ge.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:"input"},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:""},valuePlaceholder:{type:String,default:""},placeholder:{type:String,default:""},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),gA=Y({name:"DynamicInput",props:Qx,setup(e,{slots:t}){const{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:o,inlineThemeDisabled:i}=Ee(),a=Be(is,null),l=B(e.defaultValue),d=le(e,"value"),c=St(d,l),u=ge("DynamicInput","-dynamic-input",vA,uA,e,r),f=S(()=>{const{value:$}=c;if(Array.isArray($)){const{max:T}=e;return T!==void 0&&$.length>=T}return!1}),v=S(()=>{const{value:$}=c;return Array.isArray($)?$.length<=e.min:!0}),m=S(()=>{var $,T;return(T=($=n?.value)===null||$===void 0?void 0:$.DynamicInput)===null||T===void 0?void 0:T.buttonSize});function h($){const{onInput:T,"onUpdate:value":D,onUpdateValue:I}=e;T&&ie(T,$),D&&ie(D,$),I&&ie(I,$),l.value=$}function g($,T){if($==null||typeof $!="object")return T;const D=td($)?nd($):$;let I=Ll.get(D);return I===void 0&&Ll.set(D,I=Vn()),I}function p($,T){const{value:D}=c,I=Array.from(D??[]),A=I[$];if(I[$]=T,A&&T&&typeof A=="object"&&typeof T=="object"){const E=td(A)?nd(A):A,N=td(T)?nd(T):T,U=Ll.get(E);U!==void 0&&Ll.set(N,U)}h(I)}function b(){y(-1)}function y($){const{value:T}=c,{onCreate:D}=e,I=Array.from(T??[]);if(D)I.splice($+1,0,D($+1)),h(I);else if(t.default)I.splice($+1,0,null),h(I);else switch(e.preset){case"input":I.splice($+1,0,""),h(I);break;case"pair":I.splice($+1,0,{key:"",value:""}),h(I);break}}function R($){const{value:T}=c;if(!Array.isArray(T))return;const{min:D}=e;if(T.length<=D)return;const{onRemove:I}=e;I&&I($);const A=Array.from(T);A.splice($,1),h(A)}function w($,T,D){if(T<0||D<0||T>=$.length||D>=$.length||T===D)return;const I=$[T];$[T]=$[D],$[D]=I}function C($,T){const{value:D}=c;if(!Array.isArray(D))return;const I=Array.from(D);$==="up"&&w(I,T,T-1),$==="down"&&w(I,T,T+1),h(I)}ot(gf,{mergedThemeRef:u,keyPlaceholderRef:le(e,"keyPlaceholder"),valuePlaceholderRef:le(e,"valuePlaceholder"),placeholderRef:le(e,"placeholder")});const P=Bt("DynamicInput",o,r),k=S(()=>{const{self:{actionMargin:$,actionMarginRtl:T}}=u.value;return{"--action-margin":$,"--action-margin-rtl":T}}),O=i?Xe("dynamic-input",void 0,k,e):void 0;return{locale:on("DynamicInput").localeRef,rtlEnabled:P,buttonSize:m,mergedClsPrefix:r,NFormItem:a,uncontrolledValue:l,mergedValue:c,insertionDisabled:f,removeDisabled:v,handleCreateClick:b,ensureKey:g,handleValueChange:p,remove:R,move:C,createItem:y,mergedTheme:u,cssVars:i?void 0:k,themeClass:O?.themeClass,onRender:O?.onRender}},render(){const{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:o,locale:i,mergedTheme:a,keyField:l,itemStyle:d,preset:c,showSortButton:u,NFormItem:f,ensureKey:v,handleValueChange:m,remove:h,createItem:g,move:p,onRender:b,disabled:y}=this;return b?.(),s("div",{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(o)||o.length===0?s(Ot,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||y,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>ht(e["create-button-default"],()=>[i.create]),icon:()=>ht(e["create-button-icon"],()=>[s(lt,{clsPrefix:r},{default:()=>s(Vi,null)})])}):o.map((R,w)=>s("div",{key:l?R[l]:v(R,w),"data-key":l?R[l]:v(R,w),class:[`${r}-dynamic-input-item`,t],style:d},an(e.default,{value:o[w],index:w},()=>[c==="input"?s(fA,{disabled:y,clsPrefix:r,value:o[w],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${w}]`:void 0,onUpdateValue:C=>{m(w,C)}}):c==="pair"?s(hA,{disabled:y,clsPrefix:r,value:o[w],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${w}]`:void 0,onUpdateValue:C=>{m(w,C)}}):null]),an(e.action,{value:o[w],index:w,create:g,remove:h,move:p},()=>[s("div",{class:`${r}-dynamic-input-item__action`},s(_u,{size:n},{default:()=>[s(Ot,{disabled:this.removeDisabled||y,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,circle:!0,onClick:()=>{h(w)}},{icon:()=>s(lt,{clsPrefix:r},{default:()=>s(Xp,null)})}),s(Ot,{disabled:this.insertionDisabled||y,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{g(w)}},{icon:()=>s(lt,{clsPrefix:r},{default:()=>s(Vi,null)})}),u?s(Ot,{disabled:w===0||y,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{p("up",w)}},{icon:()=>s(lt,{clsPrefix:r},{default:()=>s(T3,null)})}):null,u?s(Ot,{disabled:w===o.length-1||y,circle:!0,theme:a.peers.Button,themeOverrides:a.peerOverrides.Button,onClick:()=>{p("down",w)}},{icon:()=>s(lt,{clsPrefix:r},{default:()=>s(Kp,null)})}):null]}))]))))}}),mA={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};function pA(){return mA}const ey={name:"Space",self:pA};let Vd;function bA(){if(!Wn)return!0;if(Vd===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Vd=t}return Vd}const ty=Object.assign(Object.assign({},ge.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),mf=Y({name:"Space",props:ty,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=ge("Space","-space",void 0,ey,e,t),o=Bt("Space",n,t);return{useGap:bA(),rtlEnabled:o,mergedClsPrefix:t,margin:S(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[be("gap",i)]:a}}=r.value,{row:l,col:d}=mm(a);return{horizontal:Et(d),vertical:Et(l)}})}},render(){const{vertical:e,reverse:t,align:n,inline:r,justify:o,itemClass:i,itemStyle:a,margin:l,wrap:d,mergedClsPrefix:c,rtlEnabled:u,useGap:f,wrapItem:v,internalUseGap:m}=this,h=Yn(Ji(this),!1);if(!h.length)return null;const g=`${l.horizontal}px`,p=`${l.horizontal/2}px`,b=`${l.vertical}px`,y=`${l.vertical/2}px`,R=h.length-1,w=o.startsWith("space-");return s("div",{role:"none",class:[`${c}-space`,u&&`${c}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(o)?`flex-${o}`:o,flexWrap:!d||e?"nowrap":"wrap",marginTop:f||e?"":`-${y}`,marginBottom:f||e?"":`-${y}`,alignItems:n,gap:f?`${l.vertical}px ${l.horizontal}px`:""}},!v&&(f||m)?h:h.map((C,P)=>C.type===Ss?C:s("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},f?"":e?{marginBottom:P!==R?b:""}:u?{marginLeft:w?o==="space-between"&&P===R?"":p:P!==R?g:"",marginRight:w?o==="space-between"&&P===0?"":p:"",paddingTop:y,paddingBottom:y}:{marginRight:w?o==="space-between"&&P===R?"":p:P!==R?g:"",marginLeft:w?o==="space-between"&&P===0?"":p:"",paddingTop:y,paddingBottom:y}]},C)))}}),xA={name:"DynamicTags",common:Je,peers:{Input:tr,Button:nr,Tag:sb,Space:ey},self(){return{inputWidth:"64px"}}},yA=x("dynamic-tags",[x("input",{minWidth:"var(--n-input-width)"})]),ny=Object.assign(Object.assign(Object.assign({},ge.props),db),{size:{type:String,default:"medium"},closable:{type:Boolean,default:!0},defaultValue:{type:Array,default:()=>[]},value:Array,inputClass:String,inputStyle:[String,Object],inputProps:Object,max:Number,tagClass:String,tagStyle:[String,Object],renderTag:Function,onCreate:{type:Function,default:e=>e},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),wA=Y({name:"DynamicTags",props:ny,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),{localeRef:r}=on("DynamicTags"),o=ln(e),{mergedDisabledRef:i}=o,a=B(""),l=B(!1),d=B(!0),c=B(null),u=ge("DynamicTags","-dynamic-tags",yA,xA,e,t),f=B(e.defaultValue),v=le(e,"value"),m=St(v,f),h=S(()=>r.value.add),g=S(()=>vc(e.size)),p=S(()=>i.value||!!e.max&&m.value.length>=e.max);function b($){const{onChange:T,"onUpdate:value":D,onUpdateValue:I}=e,{nTriggerFormInput:A,nTriggerFormChange:E}=o;T&&ie(T,$),I&&ie(I,$),D&&ie(D,$),f.value=$,A(),E()}function y($){const T=m.value.slice(0);T.splice($,1),b(T)}function R($){$.key==="Enter"&&w()}function w($){const T=$??a.value;if(T){const D=m.value.slice(0);D.push(e.onCreate(T)),b(D)}l.value=!1,d.value=!0,a.value=""}function C(){w()}function P(){l.value=!0,zt(()=>{var $;($=c.value)===null||$===void 0||$.focus(),d.value=!1})}const k=S(()=>{const{self:{inputWidth:$}}=u.value;return{"--n-input-width":$}}),O=n?Xe("dynamic-tags",void 0,k,e):void 0;return{mergedClsPrefix:t,inputInstRef:c,localizedAdd:h,inputSize:g,inputValue:a,showInput:l,inputForceFocused:d,mergedValue:m,mergedDisabled:i,triggerDisabled:p,handleInputKeyDown:R,handleAddClick:P,handleInputBlur:C,handleCloseClick:y,handleInputConfirm:w,mergedTheme:u,cssVars:n?void 0:k,themeClass:O?.themeClass,onRender:O?.onRender}},render(){const{mergedTheme:e,cssVars:t,mergedClsPrefix:n,onRender:r,renderTag:o}=this;return r?.(),s(mf,{class:[`${n}-dynamic-tags`,this.themeClass],size:"small",style:t,theme:e.peers.Space,themeOverrides:e.peerOverrides.Space,itemStyle:"display: flex;"},{default:()=>{const{mergedTheme:i,tagClass:a,tagStyle:l,type:d,round:c,size:u,color:f,closable:v,mergedDisabled:m,showInput:h,inputValue:g,inputClass:p,inputStyle:b,inputSize:y,inputForceFocused:R,triggerDisabled:w,handleInputKeyDown:C,handleInputBlur:P,handleAddClick:k,handleCloseClick:O,handleInputConfirm:$,$slots:T}=this;return this.mergedValue.map((D,I)=>o?o(D,I):s(ei,{key:I,theme:i.peers.Tag,themeOverrides:i.peerOverrides.Tag,class:a,style:l,type:d,round:c,size:u,color:f,closable:v,disabled:m,onClose:()=>{O(I)}},{default:()=>typeof D=="string"?D:D.label})).concat(h?T.input?T.input({submit:$,deactivate:P}):s(Sn,Object.assign({placeholder:"",size:y,style:b,class:p,autosize:!0},this.inputProps,{ref:"inputInstRef",value:g,onUpdateValue:D=>{this.inputValue=D},theme:i.peers.Input,themeOverrides:i.peerOverrides.Input,onKeydown:C,onBlur:P,internalForceFocus:R})):T.trigger?T.trigger({activate:k,disabled:w}):s(Ot,{dashed:!0,disabled:w,theme:i.peers.Button,themeOverrides:i.peerOverrides.Button,size:y,onClick:k},{icon:()=>s(lt,{clsPrefix:n},{default:()=>s(Vi,null)})}))}})}}),CA={common:Je},ry=Object.assign(Object.assign({},ge.props),{tag:{type:String,default:"div"}}),Gv=Y({name:"Element",alias:["El"],props:ry,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Element","-element",void 0,CA,e,t),o=S(()=>{const{common:a}=r.value;return Object.keys(a).reduce((l,d)=>(l[`--${jp(d)}`]=a[d],l),{})}),i=n?Xe("element",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{tag:t,mergedClsPrefix:n,cssVars:r,themeClass:o,onRender:i,$slots:a}=this;return i?.(),s(t,{role:"none",class:[`${n}-element`,o],style:r},(e=a.default)===null||e===void 0?void 0:e.call(a))}}),oy={value:String,katex:Object,katexOptions:Object},SA=Y({name:"Equation",props:oy,setup(e){const t=Be(Un),n=S(()=>{var r;const o=((r=e.katex||t?.mergedKatexRef.value)===null||r===void 0?void 0:r.renderToString(e.value||"",Object.assign({throwOnError:!1},e.katexOptions)))||"no katex provided",i=o.match(/^<([a-z]+)[^>]+class="([^"]+)"[^>]*>/),a=i?.[1]||"span",l=i?.[2],d=o.replace(/^<[a-z]+[^>]*>/,"").replace(/<\/[a-z]+>$/,"");return{wrapperTag:a,innerHtml:d,wrapperClass:l}});return()=>{const{innerHtml:r,wrapperClass:o,wrapperTag:i}=n.value;return s(i,{class:o,innerHTML:r})}}}),RA={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};function kA(){return RA}const PA={self:kA},iy=Object.assign(Object.assign({},ge.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrap:{type:Boolean,default:!0}}),zA=Y({name:"Flex",props:iy,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e),r=ge("Flex","-flex",void 0,PA,e,t);return{rtlEnabled:Bt("Flex",n,t),mergedClsPrefix:t,margin:S(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[be("gap",i)]:a}}=r.value,{row:l,col:d}=mm(a);return{horizontal:Et(d),vertical:Et(l)}})}},render(){const{vertical:e,reverse:t,align:n,inline:r,justify:o,margin:i,wrap:a,mergedClsPrefix:l,rtlEnabled:d}=this,c=Yn(Ji(this),!1);return c.length?s("div",{role:"none",class:[`${l}-flex`,d&&`${l}-flex--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:o,flexWrap:!a||e?"nowrap":"wrap",alignItems:n,gap:`${i.vertical}px ${i.horizontal}px`}},c):null}}),$A={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function TA(e){const{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:o,errorColor:i,warningColor:a,lineHeight:l,textColor3:d}=e;return Object.assign(Object.assign({},$A),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:l,labelTextColor:o,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:d})}const ay={common:Je,self:TA};function OA(e){const{primaryColor:t,successColor:n,warningColor:r,errorColor:o,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:mt(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:mt(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:mt(r,{alpha:.6}),colorEndWarning:r,colorStartError:mt(o,{alpha:.6}),colorEndError:o,colorStartSuccess:mt(n,{alpha:.6}),colorEndSuccess:n}}const FA={common:Je,self:OA};function MA(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}const IA={name:"InputNumber",common:Je,peers:{Button:nr,Input:tr},self:MA};function BA(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const AA={name:"InputOtp",common:Je,peers:{Input:tr},self:BA};function DA(e){const{baseColor:t,textColor2:n,bodyColor:r,cardColor:o,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:d,invertedColor:c}=e;return{textColor:n,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:o,headerColorInverted:c,footerColor:a,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:o,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:dt(r,l),siderToggleBarColorHover:dt(r,d),__invertScrollbar:"true"}}const Ws={name:"Layout",common:Je,peers:{Scrollbar:Ln},self:DA};function _A(e){const{textColor2:t,cardColor:n,modalColor:r,popoverColor:o,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:d}=e;return{textColor:t,color:n,colorHover:d,colorModal:r,colorHoverModal:dt(r,d),colorPopover:o,colorHoverPopover:dt(o,d),borderColor:i,borderColorModal:dt(r,i),borderColorPopover:dt(o,i),borderRadius:a,fontSize:l}}const EA={common:Je,self:_A};function NA(e){const{textColor2:t,modalColor:n,borderColor:r,fontSize:o,primaryColor:i}=e;return{loaderFontSize:o,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid ${r}`,loadingColor:i}}const LA={name:"Log",common:Je,peers:{Scrollbar:Ln,Code:y0},self:NA};function HA(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const jA={name:"Mention",common:Je,peers:{InternalSelectMenu:ea,Input:tr},self:HA};function VA(e,t,n,r){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function UA(e){const{borderRadius:t,textColor3:n,primaryColor:r,textColor2:o,textColor1:i,fontSize:a,dividerColor:l,hoverColor:d,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:n,itemColorHover:d,itemColorActive:mt(r,{alpha:.1}),itemColorActiveHover:mt(r,{alpha:.1}),itemColorActiveCollapsed:mt(r,{alpha:.1}),itemTextColor:o,itemTextColorHover:o,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:o,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:o,arrowColorHover:o,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},VA("#BBB",r,"#FFF","#AAA"))}const WA={name:"Menu",common:Je,peers:{Tooltip:Ls,Dropdown:Gu},self:UA},KA={titleFontSize:"18px",backSize:"22px"};function qA(e){const{textColor1:t,textColor2:n,textColor3:r,fontSize:o,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},KA),{titleFontWeight:i,fontSize:o,titleTextColor:t,backColor:n,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const YA={name:"PageHeader",common:Je,self:qA},GA={iconSize:"22px"};function XA(e){const{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},GA),{fontSize:t,iconColor:n})}const ZA={name:"Popconfirm",common:Je,peers:{Button:nr,Popover:bi},self:XA};function JA(e){const{infoColor:t,successColor:n,warningColor:r,errorColor:o,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:d}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:d,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:o,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:o,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const ly={name:"Progress",common:Je,self:JA};function QA(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#FFCC33",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}const eD={common:Je,self:QA},tD={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function nD(e){const{textColor2:t,textColor1:n,errorColor:r,successColor:o,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:d}=e;return Object.assign(Object.assign({},tD),{lineHeight:l,titleFontWeight:d,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:o,iconColorInfo:i,iconColorWarning:a})}const rD={common:Je,self:nD},oD={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};function iD(e){const t="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:r,primaryColor:o,baseColor:i,cardColor:a,modalColor:l,popoverColor:d,borderRadius:c,fontSize:u,opacityDisabled:f}=e;return Object.assign(Object.assign({},oD),{fontSize:u,markFontSize:u,railColor:r,railColorHover:r,fillColor:o,fillColorHover:o,opacityDisabled:f,handleColor:"#FFF",dotColor:a,dotColorModal:l,dotColorPopover:d,handleBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowHover:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowActive:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",handleBoxShadowFocus:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",indicatorColor:t,indicatorBoxShadow:n,indicatorTextColor:i,indicatorBorderRadius:c,dotBorder:`2px solid ${r}`,dotBorderActive:`2px solid ${o}`,dotBoxShadow:""})}const aD={common:Je,self:iD};function lD(e){const{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:o,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:d}=e;return{fontSize:d,textColor:l,sizeTiny:n,sizeSmall:r,sizeMedium:o,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const sD={common:Je,self:lD};function dD(e){const{textColor2:t,textColor3:n,fontSize:r,fontWeight:o}=e;return{labelFontSize:r,labelFontWeight:o,valueFontWeight:o,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const cD={common:Je,self:dD},uD={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function fD(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:o,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},uD),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:o,indicatorTextColorError:i,indicatorBorderColorProcess:o,indicatorBorderColorWait:r,indicatorBorderColorFinish:o,indicatorBorderColorError:i,indicatorColorProcess:o,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:o,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})}const hD={common:Je,self:fD},vD={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"};function gD(e){const{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:o}=e;return Object.assign(Object.assign({},vD),{iconColor:o,textColor:"white",loadingColor:t,opacityDisabled:n,railColor:"rgba(0, 0, 0, .14)",railColorActive:t,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${mt(t,{alpha:.2})}`})}const mD={common:Je,self:gD},pD={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function bD(e){const{dividerColor:t,cardColor:n,modalColor:r,popoverColor:o,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:d,borderRadius:c,fontWeightStrong:u,lineHeight:f,fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:h}=e;return Object.assign(Object.assign({},pD),{fontSizeSmall:v,fontSizeMedium:m,fontSizeLarge:h,lineHeight:f,borderRadius:c,borderColor:dt(n,t),borderColorModal:dt(r,t),borderColorPopover:dt(o,t),tdColor:n,tdColorModal:r,tdColorPopover:o,tdColorStriped:dt(n,a),tdColorStripedModal:dt(r,a),tdColorStripedPopover:dt(o,a),thColor:dt(n,i),thColorModal:dt(r,i),thColorPopover:dt(o,i),thTextColor:l,tdTextColor:d,thFontWeight:u})}const xD={common:Je,self:bD},yD={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function wD(e){const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:d,tabColor:c,baseColor:u,dividerColor:f,fontWeight:v,textColor1:m,borderRadius:h,fontSize:g,fontWeightStrong:p}=e;return Object.assign(Object.assign({},yD),{colorSegment:c,tabFontSizeCard:g,tabTextColorLine:m,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:m,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:m,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:m,tabTextColorHoverCard:m,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:o,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:d,closeBorderRadius:h,tabColor:c,tabColorSegment:u,tabBorderColor:f,tabFontWeightActive:v,tabFontWeight:v,tabBorderRadius:h,paneTextColor:t,fontWeightStrong:p})}const CD={common:Je,self:wD};function SD(e){const{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:o}=e;return{fontSize:o,titleTextColor:t,textColor:n,titleFontWeight:r}}const RD={common:Je,self:SD},kD={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};function PD(e){const{textColor3:t,infoColor:n,errorColor:r,successColor:o,warningColor:i,textColor1:a,textColor2:l,railColor:d,fontWeightStrong:c,fontSize:u}=e;return Object.assign(Object.assign({},kD),{contentFontSize:u,titleFontWeight:c,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${o}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:o,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:d})}const zD={common:Je,self:PD},$D={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};function TD(e){const{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:o,heightLarge:i,heightMedium:a,borderRadius:l,cardColor:d,tableHeaderColor:c,textColor1:u,textColorDisabled:f,textColor2:v,textColor3:m,borderColor:h,hoverColor:g,closeColorHover:p,closeColorPressed:b,closeIconColor:y,closeIconColorHover:R,closeIconColorPressed:w}=e;return Object.assign(Object.assign({},$D),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:o,fontSizeMedium:r,fontSizeLarge:n,borderRadius:l,dividerColor:h,borderColor:h,listColor:d,headerColor:dt(d,c),titleTextColor:u,titleTextColorDisabled:f,extraTextColor:m,extraTextColorDisabled:f,itemTextColor:v,itemTextColorDisabled:f,itemColorPending:g,titleFontWeight:t,closeColorHover:p,closeColorPressed:b,closeIconColor:y,closeIconColorHover:R,closeIconColorPressed:w})}const OD={name:"Transfer",common:Je,peers:{Checkbox:na,Scrollbar:Ln,Input:tr,Empty:Ao,Button:nr},self:TD};function FD(e){const{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:o,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:d,fontSize:c}=e;return{fontSize:c,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:o,nodeColorActive:mt(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:d,loadingColor:i,dropMarkColor:i,lineColor:n}}const sy={name:"Tree",common:Je,peers:{Checkbox:na,Scrollbar:Ln,Empty:Ao},self:FD};function MD(e){const{popoverColor:t,boxShadow2:n,borderRadius:r,heightMedium:o,dividerColor:i,textColor2:a}=e;return{menuPadding:"4px",menuColor:t,menuBoxShadow:n,menuBorderRadius:r,menuHeight:`calc(${o} * 7.6)`,actionDividerColor:i,actionTextColor:a,actionPadding:"8px 12px",headerDividerColor:i,headerTextColor:a,headerPadding:"8px 12px"}}const ID={name:"TreeSelect",common:Je,peers:{Tree:sy,Empty:Ao,InternalSelection:Es},self:MD},BD={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function AD(e){const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:d,textColor1:c,textColor3:u,infoColor:f,warningColor:v,errorColor:m,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},BD),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:l,headerFontWeight:d,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:f,headerBarColorError:m,headerBarColorWarning:v,headerBarColorSuccess:h,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:f,textColorSuccess:h,textColorWarning:v,textColorError:m,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}const Do={common:Je,self:AD};function DD(e){const{iconColor:t,primaryColor:n,errorColor:r,textColor2:o,successColor:i,opacityDisabled:a,actionColor:l,borderColor:d,hoverColor:c,lineHeight:u,borderRadius:f,fontSize:v}=e;return{fontSize:v,lineHeight:u,borderRadius:f,draggerColor:l,draggerBorder:`1px dashed ${d}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:c,itemColorHoverError:mt(r,{alpha:.06}),itemTextColor:o,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${d}`}}const _D={name:"Upload",common:Je,peers:{Button:nr,Progress:ly},self:DD},ED={name:"Watermark",common:Je,self(e){const{fontFamily:t}=e;return{fontFamily:t}}};function ND(e){const{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}const LD={common:Je,self:ND},HD=x("float-button-group",[x("float-button",` + position: relative; + `),M("square-shape",` + background-color: var(--n-color); + cursor: pointer; + display: flex; + width: fit-content; + align-items: center; + justify-content: center; + border-radius: var(--n-border-radius-square); + flex-direction: column; + box-shadow: var(--n-box-shadow); + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[x("float-button",` + background-color: unset; + border-radius: 0; + box-shadow: none; + box-sizing: content-box; + `,[z("&:not(:last-child)",` + border-bottom: 1px solid var(--n-button-border-color); + `),z("&:first-child",` + border-top-left-radius: 4px; + border-top-right-radius: 4px; + `),z("&:last-child",` + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; + `),F("fill",` + top: 4px; + right: 4px; + bottom: 4px; + left: 4px; + border-radius: var(--n-border-radius-square); + `)])]),M("circle-shape",[z(">:not(:last-child)",` + margin-bottom: 16px; + `)])]),dy=Object.assign(Object.assign({},ge.props),{left:[Number,String],right:[Number,String],top:[Number,String],bottom:[Number,String],shape:{type:String,default:"circle"},position:{type:String,default:"fixed"}}),cy="n-float-button-group",jD=Y({name:"FloatButtonGroup",props:dy,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("FloatButtonGroup","-float-button-group",HD,LD,e,t),o=S(()=>{const{self:{color:a,boxShadow:l,buttonBorderColor:d,borderRadiusSquare:c},common:{cubicBezierEaseInOut:u}}=r.value;return{"--n-bezier":u,"--n-box-shadow":l,"--n-color":a,"--n-button-border-color":d,"--n-border-radius-square":c,position:e.position,left:Pt(e.left)||"",right:Pt(e.right)||"",top:Pt(e.top)||"",bottom:Pt(e.bottom)||""}});ot(cy,{shapeRef:le(e,"shape")});const i=n?Xe("float-button",void 0,o,e):void 0;return{cssVars:n?void 0:o,mergedClsPrefix:t,themeClass:i?.themeClass,onRender:i?.onRender}},render(){const{mergedClsPrefix:e,cssVars:t,shape:n}=this;return s("div",{class:[`${e}-float-button-group`,`${e}-float-button-group--${n}-shape`],style:t,role:"group"},this.$slots)}});function VD(e){const{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:o,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,borderRadius:d}=e;return{color:t,colorHover:r,colorPressed:o,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColor:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .16)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .24)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .24)",textColorPrimary:"#fff",borderRadiusSquare:d}}const UD={common:Je,self:VD},WD=x("float-button",` + user-select: none; + cursor: pointer; + color: var(--n-text-color); + background-color: var(--n-color); + font-size: 18px; + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + box-shadow: var(--n-box-shadow); + display: flex; + align-items: stretch; + box-sizing: border-box; +`,[M("circle-shape",` + border-radius: 4096px; + `),M("square-shape",` + border-radius: var(--n-border-radius-square); + `),F("fill",` + position: absolute; + top: 0; + right: 0; + bottom: 0 + left: 0; + transition: background-color .3s var(--n-bezier); + border-radius: inherit; + `),F("body",` + position: relative; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + transition: transform .3s var(--n-bezier), opacity .3s var(--n-bezier); + border-radius: inherit; + flex-direction: column; + box-sizing: border-box; + padding: 2px 4px; + gap: 2px; + transform: scale(1); + `,[F("description",` + font-size: 12px; + text-align: center; + line-height: 14px; + `)]),z("&:hover","box-shadow: var(--n-box-shadow-hover);",[z(">",[F("fill",` + background-color: var(--n-color-hover); + `)])]),z("&:active","box-shadow: var(--n-box-shadow-pressed);",[z(">",[F("fill",` + background-color: var(--n-color-pressed); + `)])]),M("show-menu",[z(">",[F("menu",` + pointer-events: all; + bottom: 100%; + opacity: 1; + `),F("close",` + transform: scale(1); + opacity: 1; + `),F("body",` + transform: scale(0.75); + opacity: 0; + `)])]),F("close",` + opacity: 0; + transform: scale(0.75); + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + display: flex; + align-items: center; + justify-content: center; + transition: transform .3s var(--n-bezier), opacity .3s var(--n-bezier); + `),F("menu",` + position: absolute; + bottom: calc(100% - 8px); + display: flex; + flex-direction: column; + opacity: 0; + pointer-events: none; + transition: + opacity .3s var(--n-bezier), + bottom .3s var(--n-bezier); + `,[z("> *",` + margin-bottom: 16px; + `),x("float-button",` + position: relative !important; + `)])]),uy=Object.assign(Object.assign({},ge.props),{width:{type:[Number,String],default:40},height:{type:[Number,String],default:40},left:[Number,String],right:[Number,String],top:[Number,String],bottom:[Number,String],shape:{type:String,default:"circle"},position:{type:String,default:"fixed"},type:{type:String,default:"default"},menuTrigger:String,showMenu:{type:Boolean,default:void 0},onUpdateShowMenu:{type:[Function,Array],default:void 0},"onUpdate:showMenu":{type:[Function,Array],default:void 0}}),KD=Y({name:"FloatButton",props:uy,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=B(null),o=ge("FloatButton","-float-button",WD,UD,e,t),i=Be(cy,null),a=B(!1),l=le(e,"showMenu"),d=St(l,a);function c(b){const{onUpdateShowMenu:y,"onUpdate:showMenu":R}=e;a.value=b,y&&ie(y,b),R&&ie(R,b)}const u=S(()=>{const{self:{color:b,textColor:y,boxShadow:R,boxShadowHover:w,boxShadowPressed:C,colorHover:P,colorPrimary:k,colorPrimaryHover:O,textColorPrimary:$,borderRadiusSquare:T,colorPressed:D,colorPrimaryPressed:I},common:{cubicBezierEaseInOut:A}}=o.value,{type:E}=e;return{"--n-bezier":A,"--n-box-shadow":R,"--n-box-shadow-hover":w,"--n-box-shadow-pressed":C,"--n-color":E==="primary"?k:b,"--n-text-color":E==="primary"?$:y,"--n-color-hover":E==="primary"?O:P,"--n-color-pressed":E==="primary"?I:D,"--n-border-radius-square":T}}),f=S(()=>{const{width:b,height:y}=e;return Object.assign({position:i?void 0:e.position,width:Pt(b),minHeight:Pt(y)},i?null:{left:Pt(e.left),right:Pt(e.right),top:Pt(e.top),bottom:Pt(e.bottom)})}),v=S(()=>i?i.shapeRef.value:e.shape),m=()=>{e.menuTrigger==="hover"&&c(!0)},h=()=>{e.menuTrigger==="hover"&&d.value&&c(!1)},g=()=>{e.menuTrigger==="click"&&c(!d.value)},p=n?Xe("float-button",S(()=>e.type[0]),u,e):void 0;return It(()=>{const b=r.value;b&&Ct("mousemoveoutside",b,h)}),jt(()=>{const b=r.value;b&&wt("mousemoveoutside",b,h)}),{inlineStyle:f,selfElRef:r,cssVars:n?void 0:u,mergedClsPrefix:t,mergedShape:v,mergedShowMenu:d,themeClass:p?.themeClass,onRender:p?.onRender,Mouseenter:m,handleMouseleave:h,handleClick:g}},render(){var e;const{mergedClsPrefix:t,cssVars:n,mergedShape:r,type:o,menuTrigger:i,mergedShowMenu:a,themeClass:l,$slots:d,inlineStyle:c,onRender:u}=this;return u?.(),s("div",{ref:"selfElRef",class:[`${t}-float-button`,`${t}-float-button--${r}-shape`,`${t}-float-button--${o}-type`,a&&`${t}-float-button--show-menu`,l],style:[n,c],onMouseenter:this.Mouseenter,onMouseleave:this.handleMouseleave,onClick:this.handleClick,role:"button"},s("div",{class:`${t}-float-button__fill`,"aria-hidden":!0}),s("div",{class:`${t}-float-button__body`},(e=d.default)===null||e===void 0?void 0:e.call(d),yt(d.description,f=>f?s("div",{class:`${t}-float-button__description`},f):null)),i?s("div",{class:`${t}-float-button__close`},s(lt,{clsPrefix:t},{default:()=>s(Iu,null)})):null,i?s("div",{onClick:f=>{f.stopPropagation()},"data-float-button-menu":!0,class:`${t}-float-button__menu`},ht(d.menu,()=>[])):null)}}),al="n-form",fy="n-form-item-insts",qD=x("form",[M("inline",` + width: 100%; + display: inline-flex; + align-items: flex-start; + align-content: space-around; + `,[x("form-item",{width:"auto",marginRight:"18px"},[z("&:last-child",{marginRight:0})])])]);var YD=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const hy=Object.assign(Object.assign({},ge.props),{inline:Boolean,labelWidth:[Number,String],labelAlign:String,labelPlacement:{type:String,default:"top"},model:{type:Object,default:()=>{}},rules:Object,disabled:Boolean,size:String,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:!0},onSubmit:{type:Function,default:e=>{e.preventDefault()}},showLabel:{type:Boolean,default:void 0},validateMessages:Object}),GD=Y({name:"Form",props:hy,setup(e){const{mergedClsPrefixRef:t}=Ee(e);ge("Form","-form",qD,ay,e,t);const n={},r=B(void 0),o=d=>{const c=r.value;(c===void 0||d>=c)&&(r.value=d)};function i(d){return YD(this,arguments,void 0,function*(c,u=()=>!0){return yield new Promise((f,v)=>{const m=[];for(const h of In(n)){const g=n[h];for(const p of g)p.path&&m.push(p.internalValidate(null,u))}Promise.all(m).then(h=>{const g=h.some(y=>!y.valid),p=[],b=[];h.forEach(y=>{var R,w;!((R=y.errors)===null||R===void 0)&&R.length&&p.push(y.errors),!((w=y.warnings)===null||w===void 0)&&w.length&&b.push(y.warnings)}),c&&c(p.length?p:void 0,{warnings:b.length?b:void 0}),g?v(p.length?p:void 0):f({warnings:b.length?b:void 0})})})})}function a(){for(const d of In(n)){const c=n[d];for(const u of c)u.restoreValidation()}}return ot(al,{props:e,maxChildLabelWidthRef:r,deriveMaxChildLabelWidth:o}),ot(fy,{formItems:n}),Object.assign({validate:i,restoreValidation:a},{mergedClsPrefix:t})},render(){const{mergedClsPrefix:e}=this;return s("form",{class:[`${e}-form`,this.inline&&`${e}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jl(e,t,n){return ZD()?Jl=Reflect.construct.bind():Jl=function(o,i,a){var l=[null];l.push.apply(l,i);var d=Function.bind.apply(o,l),c=new d;return a&&Va(c,a.prototype),c},Jl.apply(null,arguments)}function JD(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Hc(e){var t=typeof Map=="function"?new Map:void 0;return Hc=function(r){if(r===null||!JD(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return Jl(r,arguments,Lc(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Va(o,r)},Hc(e)}var QD=/%[sdj%]/g,e_=function(){};function jc(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ar(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return a}return e}function t_(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||t_(t)&&typeof e=="string"&&!e)}function n_(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,l||[]),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function Xv(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pa={integer:function(t){return Pa.number(t)&&parseInt(t,10)===t},float:function(t){return Pa.number(t)&&!Pa.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Pa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(eg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(s_())},hex:function(t){return typeof t=="string"&&!!t.match(eg.hex)}},d_=function(t,n,r,o,i){if(t.required&&n===void 0){vy(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?Pa[l](n)||o.push(ar(i.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(ar(i.messages.types[l],t.fullField,t.type))},c_=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",d=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=n,f=null,v=typeof n=="number",m=typeof n=="string",h=Array.isArray(n);if(v?f="number":m?f="string":h&&(f="array"),!f)return!1;h&&(u=n.length),m&&(u=n.replace(c,"_").length),a?u!==t.len&&o.push(ar(i.messages[f].len,t.fullField,t.len)):l&&!d&&ut.max?o.push(ar(i.messages[f].max,t.fullField,t.max)):l&&d&&(ut.max)&&o.push(ar(i.messages[f].range,t.fullField,t.min,t.max))},Fi="enum",u_=function(t,n,r,o,i){t[Fi]=Array.isArray(t[Fi])?t[Fi]:[],t[Fi].indexOf(n)===-1&&o.push(ar(i.messages[Fi],t.fullField,t[Fi].join(", ")))},f_=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(ar(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(ar(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Nt={required:vy,whitespace:l_,type:d_,range:c_,enum:u_,pattern:f_},h_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n,"string")&&!t.required)return r();Nt.required(t,n,o,a,i,"string"),zn(n,"string")||(Nt.type(t,n,o,a,i),Nt.range(t,n,o,a,i),Nt.pattern(t,n,o,a,i),t.whitespace===!0&&Nt.whitespace(t,n,o,a,i))}r(a)},v_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&Nt.type(t,n,o,a,i)}r(a)},g_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&(Nt.type(t,n,o,a,i),Nt.range(t,n,o,a,i))}r(a)},m_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&Nt.type(t,n,o,a,i)}r(a)},p_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),zn(n)||Nt.type(t,n,o,a,i)}r(a)},b_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&(Nt.type(t,n,o,a,i),Nt.range(t,n,o,a,i))}r(a)},x_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&(Nt.type(t,n,o,a,i),Nt.range(t,n,o,a,i))}r(a)},y_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Nt.required(t,n,o,a,i,"array"),n!=null&&(Nt.type(t,n,o,a,i),Nt.range(t,n,o,a,i))}r(a)},w_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&Nt.type(t,n,o,a,i)}r(a)},C_="enum",S_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i),n!==void 0&&Nt[C_](t,n,o,a,i)}r(a)},R_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n,"string")&&!t.required)return r();Nt.required(t,n,o,a,i),zn(n,"string")||Nt.pattern(t,n,o,a,i)}r(a)},k_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n,"date")&&!t.required)return r();if(Nt.required(t,n,o,a,i),!zn(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Nt.type(t,d,o,a,i),d&&Nt.range(t,d.getTime(),o,a,i)}}r(a)},P_=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":typeof n;Nt.required(t,n,o,a,i,l),r(a)},Ud=function(t,n,r,o,i){var a=t.type,l=[],d=t.required||!t.required&&o.hasOwnProperty(t.field);if(d){if(zn(n,a)&&!t.required)return r();Nt.required(t,n,o,l,i,a),zn(n,a)||Nt.type(t,n,o,l,i)}r(l)},z_=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(zn(n)&&!t.required)return r();Nt.required(t,n,o,a,i)}r(a)},Ba={string:h_,method:v_,number:g_,boolean:m_,regexp:p_,integer:b_,float:x_,array:y_,object:w_,enum:S_,pattern:R_,date:k_,url:Ud,hex:Ud,email:Ud,required:P_,any:z_};function Vc(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Uc=Vc(),Yi=(function(){function e(n){this.rules=null,this._messages=Uc,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var a=r[i];o.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=Qv(Vc(),r)),this._messages},t.validate=function(r,o,i){var a=this;o===void 0&&(o={}),i===void 0&&(i=function(){});var l=r,d=o,c=i;if(typeof d=="function"&&(c=d,d={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(g){var p=[],b={};function y(w){if(Array.isArray(w)){var C;p=(C=p).concat.apply(C,w)}else p.push(w)}for(var R=0;Re.size!==void 0?e.size:t?.props.size!==void 0?t.props.size:"medium")}}function F_(e){const t=Be(al,null),n=S(()=>{const{labelPlacement:h}=e;return h!==void 0?h:t?.props.labelPlacement?t.props.labelPlacement:"top"}),r=S(()=>n.value==="left"&&(e.labelWidth==="auto"||t?.props.labelWidth==="auto")),o=S(()=>{if(n.value==="top")return;const{labelWidth:h}=e;if(h!==void 0&&h!=="auto")return Pt(h);if(r.value){const g=t?.maxChildLabelWidthRef.value;return g!==void 0?Pt(g):void 0}if(t?.props.labelWidth!==void 0)return Pt(t.props.labelWidth)}),i=S(()=>{const{labelAlign:h}=e;if(h)return h;if(t?.props.labelAlign)return t.props.labelAlign}),a=S(()=>{var h;return[(h=e.labelProps)===null||h===void 0?void 0:h.style,e.labelStyle,{width:o.value}]}),l=S(()=>{const{showRequireMark:h}=e;return h!==void 0?h:t?.props.showRequireMark}),d=S(()=>{const{requireMarkPlacement:h}=e;return h!==void 0?h:t?.props.requireMarkPlacement||"right"}),c=B(!1),u=B(!1),f=S(()=>{const{validationStatus:h}=e;if(h!==void 0)return h;if(c.value)return"error";if(u.value)return"warning"}),v=S(()=>{const{showFeedback:h}=e;return h!==void 0?h:t?.props.showFeedback!==void 0?t.props.showFeedback:!0}),m=S(()=>{const{showLabel:h}=e;return h!==void 0?h:t?.props.showLabel!==void 0?t.props.showLabel:!0});return{validationErrored:c,validationWarned:u,mergedLabelStyle:a,mergedLabelPlacement:n,mergedLabelAlign:i,mergedShowRequireMark:l,mergedRequireMarkPlacement:d,mergedValidationStatus:f,mergedShowFeedback:v,mergedShowLabel:m,isAutoLabelWidth:r}}function M_(e){const t=Be(al,null),n=S(()=>{const{rulePath:a}=e;if(a!==void 0)return a;const{path:l}=e;if(l!==void 0)return l}),r=S(()=>{const a=[],{rule:l}=e;if(l!==void 0&&(Array.isArray(l)?a.push(...l):a.push(l)),t){const{rules:d}=t.props,{value:c}=n;if(d!==void 0&&c!==void 0){const u=La(d,c);u!==void 0&&(Array.isArray(u)?a.push(...u):a.push(u))}}return a}),o=S(()=>r.value.some(a=>a.required)),i=S(()=>o.value||e.required);return{mergedRules:r,mergedRequired:i}}var ng=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const ll=Object.assign(Object.assign({},ge.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]}),gy=In(ll);function rg(e,t){return(...n)=>{try{const r=e(...n);return!t&&(typeof r=="boolean"||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||Mn("form-item/validate",`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(r){Mn("form-item/validate","An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(r);return}}}const pf=Y({name:"FormItem",props:ll,setup(e){QC(fy,"formItems",le(e,"path"));const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=Be(al,null),o=O_(e),i=F_(e),{validationErrored:a,validationWarned:l}=i,{mergedRequired:d,mergedRules:c}=M_(e),{mergedSize:u}=o,{mergedLabelPlacement:f,mergedLabelAlign:v,mergedRequireMarkPlacement:m}=i,h=B([]),g=B(Vn()),p=r?le(r.props,"disabled"):B(!1),b=ge("Form","-form-item",T_,ay,e,t);ct(le(e,"path"),()=>{e.ignorePathChange||y()});function y(){h.value=[],a.value=!1,l.value=!1,e.feedback&&(g.value=Vn())}const R=(...E)=>ng(this,[...E],void 0,function*(N=null,U=()=>!0,q={suppressWarning:!0}){const{path:J}=e;q?q.first||(q.first=e.first):q={};const{value:ve}=c,ae=r?La(r.props.model,J||""):void 0,W={},j={},_=(N?ve.filter(Ne=>Array.isArray(Ne.trigger)?Ne.trigger.includes(N):Ne.trigger===N):ve).filter(U).map((Ne,je)=>{const qe=Object.assign({},Ne);if(qe.validator&&(qe.validator=rg(qe.validator,!1)),qe.asyncValidator&&(qe.asyncValidator=rg(qe.asyncValidator,!0)),qe.renderMessage){const gt=`__renderMessage__${je}`;j[gt]=qe.message,qe.message=gt,W[gt]=qe.renderMessage}return qe}),L=_.filter(Ne=>Ne.level!=="warning"),Z=_.filter(Ne=>Ne.level==="warning"),ce={valid:!0,errors:void 0,warnings:void 0};if(!_.length)return ce;const ye=J??"__n_no_path__",_e=new Yi({[ye]:L}),V=new Yi({[ye]:Z}),{validateMessages:ze}=r?.props||{};ze&&(_e.messages(ze),V.messages(ze));const Ae=Ne=>{h.value=Ne.map(je=>{const qe=je?.message||"";return{key:qe,render:()=>qe.startsWith("__renderMessage__")?W[qe]():qe}}),Ne.forEach(je=>{var qe;!((qe=je.message)===null||qe===void 0)&&qe.startsWith("__renderMessage__")&&(je.message=j[je.message])})};if(L.length){const Ne=yield new Promise(je=>{_e.validate({[ye]:ae},q,je)});Ne?.length&&(ce.valid=!1,ce.errors=Ne,Ae(Ne))}if(Z.length&&!ce.errors){const Ne=yield new Promise(je=>{V.validate({[ye]:ae},q,je)});Ne?.length&&(Ae(Ne),ce.warnings=Ne)}return!ce.errors&&!ce.warnings?y():(a.value=!!ce.errors,l.value=!!ce.warnings),ce});function w(){R("blur")}function C(){R("change")}function P(){R("focus")}function k(){R("input")}function O(E,N){return ng(this,void 0,void 0,function*(){let U,q,J,ve;return typeof E=="string"?(U=E,q=N):E!==null&&typeof E=="object"&&(U=E.trigger,q=E.callback,J=E.shouldRuleBeApplied,ve=E.options),yield new Promise((ae,W)=>{R(U,J,ve).then(({valid:j,errors:_,warnings:L})=>{j?(q&&q(void 0,{warnings:L}),ae({warnings:L})):(q&&q(_,{warnings:L}),W(_))})})})}ot(is,{path:le(e,"path"),disabled:p,mergedSize:o.mergedSize,mergedValidationStatus:i.mergedValidationStatus,restoreValidation:y,handleContentBlur:w,handleContentChange:C,handleContentFocus:P,handleContentInput:k});const $={validate:O,restoreValidation:y,internalValidate:R},T=B(null);It(()=>{if(!i.isAutoLabelWidth.value)return;const E=T.value;if(E!==null){const N=E.style.whiteSpace;E.style.whiteSpace="nowrap",E.style.width="",r?.deriveMaxChildLabelWidth(Number(getComputedStyle(E).width.slice(0,-2))),E.style.whiteSpace=N}});const D=S(()=>{var E;const{value:N}=u,{value:U}=f,q=U==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:J},self:{labelTextColor:ve,asteriskColor:ae,lineHeight:W,feedbackTextColor:j,feedbackTextColorWarning:_,feedbackTextColorError:L,feedbackPadding:Z,labelFontWeight:ce,[be("labelHeight",N)]:ye,[be("blankHeight",N)]:_e,[be("feedbackFontSize",N)]:V,[be("feedbackHeight",N)]:ze,[be("labelPadding",q)]:Ae,[be("labelTextAlign",q)]:Ne,[be(be("labelFontSize",U),N)]:je}}=b.value;let qe=(E=v.value)!==null&&E!==void 0?E:Ne;return U==="top"&&(qe=qe==="right"?"flex-end":"flex-start"),{"--n-bezier":J,"--n-line-height":W,"--n-blank-height":_e,"--n-label-font-size":je,"--n-label-text-align":qe,"--n-label-height":ye,"--n-label-padding":Ae,"--n-label-font-weight":ce,"--n-asterisk-color":ae,"--n-label-text-color":ve,"--n-feedback-padding":Z,"--n-feedback-font-size":V,"--n-feedback-height":ze,"--n-feedback-text-color":j,"--n-feedback-text-color-warning":_,"--n-feedback-text-color-error":L}}),I=n?Xe("form-item",S(()=>{var E;return`${u.value[0]}${f.value[0]}${((E=v.value)===null||E===void 0?void 0:E[0])||""}`}),D,e):void 0,A=S(()=>f.value==="left"&&m.value==="left"&&v.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:T,mergedClsPrefix:t,mergedRequired:d,feedbackId:g,renderExplains:h,reverseColSpace:A},i),o),$),{cssVars:n?void 0:D,themeClass:I?.themeClass,onRender:I?.onRender})},render(){const{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:o,onRender:i}=this,a=r!==void 0?r:this.mergedRequired;i?.();const l=()=>{const d=this.$slots.label?this.$slots.label():this.label;if(!d)return null;const c=s("span",{class:`${t}-form-item-label__text`},d),u=a?s("span",{class:`${t}-form-item-label__asterisk`},o!=="left"?" *":"* "):o==="right-hanging"&&s("span",{class:`${t}-form-item-label__asterisk-placeholder`}," *"),{labelProps:f}=this;return s("label",Object.assign({},f,{class:[f?.class,`${t}-form-item-label`,`${t}-form-item-label--${o}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),o==="left"?[u,c]:[c,u])};return s("div",{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&l(),s("div",{class:[`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?s("div",{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},s(_t,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:d}=this;return yt(e.feedback,c=>{var u;const{feedback:f}=this,v=c||f?s("div",{key:"__feedback__",class:`${t}-form-item-feedback__line`},c||f):this.renderExplains.length?(u=this.renderExplains)===null||u===void 0?void 0:u.map(({key:m,render:h})=>s("div",{key:m,class:`${t}-form-item-feedback__line`},h())):null;return v?d==="warning"?s("div",{key:"controlled-warning",class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},v):d==="error"?s("div",{key:"controlled-error",class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},v):d==="success"?s("div",{key:"controlled-success",class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},v):s("div",{key:"controlled-default",class:`${t}-form-item-feedback`},v):null})}})):null)}}),I_=wo(24,null).map((e,t)=>{const n=t+1,r=`calc(100% / 24 * ${n})`;return[M(`${n}-span`,{width:r}),M(`${n}-offset`,{marginLeft:r}),M(`${n}-push`,{left:r}),M(`${n}-pull`,{right:r})]}),B_=z([x("row",{width:"100%",display:"flex",flexWrap:"wrap"}),x("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[F("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),I_])]),my="n-row",Ks={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String},A_=In(Ks),py=Y({name:"Row",props:Ks,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Ee(e);ur("-legacy-grid",B_,t);const r=Bt("Row",n,t),o=it(()=>{const{gutter:a}=e;return Array.isArray(a)&&a[1]||0}),i=it(()=>{const{gutter:a}=e;return Array.isArray(a)?a[0]:Number(a)});return ot(my,{mergedClsPrefixRef:t,gutterRef:le(e,"gutter"),verticalGutterRef:o,horizontalGutterRef:i}),{mergedClsPrefix:t,rtlEnabled:r,styleMargin:it(()=>`-${Pt(o.value,{c:.5})} -${Pt(i.value,{c:.5})}`),styleWidth:it(()=>`calc(100% + ${Pt(i.value)})`)}},render(){return s("div",{class:[`${this.mergedClsPrefix}-row`,this.rtlEnabled&&`${this.mergedClsPrefix}-row--rtl`],style:{margin:this.styleMargin,width:this.styleWidth,alignItems:this.alignItems,justifyContent:this.justifyContent}},this.$slots)}}),qs={span:{type:[String,Number],default:1},push:{type:[String,Number],default:0},pull:{type:[String,Number],default:0},offset:{type:[String,Number],default:0}},D_=In(qs),by=Y({name:"Col",props:qs,setup(e){const t=Be(my,null);return t||mn("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:t.mergedClsPrefixRef,gutter:t.gutterRef,stylePadding:S(()=>`${Pt(t.verticalGutterRef.value,{c:.5})} ${Pt(t.horizontalGutterRef.value,{c:.5})}`),mergedPush:S(()=>Number(e.push)-Number(e.pull))}},render(){const{$slots:e,span:t,mergedPush:n,offset:r,stylePadding:o,gutter:i,mergedClsPrefix:a}=this;return s("div",{class:[`${a}-col`,{[`${a}-col--${t}-span`]:!0,[`${a}-col--${n}-push`]:n>0,[`${a}-col--${-n}-pull`]:n<0,[`${a}-col--${r}-offset`]:r}],style:{padding:o}},i?s("div",null,e):e)}}),bf=Object.assign(Object.assign({},qs),ll),__=In(bf),xy=Y({name:"FormItemCol",props:bf,setup(){const e=B(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return s(by,vn(this.$props,D_),{default:()=>{const e=vn(this.$props,gy);return s(pf,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),og=1,yy="n-grid",wy=1,Ua={span:{type:[Number,String],default:wy},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}},E_=In(Ua),Wc=Y({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:Ua,setup(){const{isSsrRef:e,xGapRef:t,itemStyleRef:n,overflowRef:r,layoutShiftDisabledRef:o}=Be(yy),i=Xi();return{overflow:r,itemStyle:n,layoutShiftDisabled:o,mergedXGap:S(()=>Vt(t.value||0)),deriveStyle:()=>{e.value;const{privateSpan:a=wy,privateShow:l=!0,privateColStart:d=void 0,privateOffset:c=0}=i.vnode.props,{value:u}=t,f=Vt(u||0);return{display:l?"":"none",gridColumn:`${d??`span ${a}`} / span ${a}`,marginLeft:c?`calc((100% - (${a} - 1) * ${f}) / ${a} * ${c} + ${f} * ${c})`:""}}}},render(){var e,t;if(this.layoutShiftDisabled){const{span:n,offset:r,mergedXGap:o}=this;return s("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:r?`calc((100% - (${n} - 1) * ${o}) / ${n} * ${r} + ${o} * ${r})`:""}},this.$slots)}return s("div",{style:[this.itemStyle,this.deriveStyle()]},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e,{overflow:this.overflow}))}}),Kc=Object.assign(Object.assign({},Ua),ll),ig=Y({__GRID_ITEM__:!0,name:"FormItemGridItem",alias:["FormItemGi"],props:Kc,setup(){const e=B(null);return{formItemInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return s(Wc,vn(this.$.vnode.props||{},E_),{default:()=>{const e=vn(this.$props,gy);return s(pf,Object.assign({ref:"formItemInstRef"},e),this.$slots)}})}}),N_=Object.assign(Object.assign({},Ks),bf),L_=Y({name:"FormItemRow",props:N_,setup(){const e=B(null);return{formItemColInstRef:e,validate:(...r)=>{const{value:o}=e;if(o)return o.validate(...r)},restoreValidation:()=>{const{value:r}=e;r&&r.restoreValidation()}}},render(){return s(py,vn(this.$props,A_),{default:()=>{const e=vn(this.$props,__);return s(xy,Object.assign(Object.assign({ref:"formItemColInstRef"},e),{span:24}),this.$slots)}})}}),H_=Y({name:"GlobalStyle",setup(){if(typeof document>"u")return;const e=Be(Un,null),{body:t}=document,{style:n}=t;let r=!1,o=!0;Oo(()=>{Ft(()=>{var i,a;const{textColor2:l,fontSize:d,fontFamily:c,bodyColor:u,cubicBezierEaseInOut:f,lineHeight:v}=e?Di({},((i=e.mergedThemeRef.value)===null||i===void 0?void 0:i.common)||Je,(a=e.mergedThemeOverridesRef.value)===null||a===void 0?void 0:a.common):Je;if(r||!t.hasAttribute("n-styled")){n.setProperty("-webkit-text-size-adjust","100%"),n.setProperty("-webkit-tap-highlight-color","transparent"),n.padding="0",n.margin="0",n.backgroundColor=u,n.color=l,n.fontSize=d,n.fontFamily=c,n.lineHeight=v;const m=`color .3s ${f}, background-color .3s ${f}`;o?setTimeout(()=>{n.transition=m},0):n.transition=m,t.setAttribute("n-styled",""),r=!0,o=!1}})}),ks(()=>{r&&t.removeAttribute("n-styled")})},render(){return null}}),j_=x("gradient-text",` + display: inline-block; + font-weight: var(--n-font-weight); + -webkit-background-clip: text; + background-clip: text; + color: #0000; + white-space: nowrap; + background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%); + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier); +`),Cy=Object.assign(Object.assign({},ge.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),V_=Y({name:"GradientText",props:Cy,setup(e){gu();const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=S(()=>{const{type:c}=e;return c==="danger"?"error":c}),o=S(()=>{let c=e.size||e.fontSize;return c&&(c=Pt(c)),c||void 0}),i=S(()=>{const c=e.color||e.gradient;if(typeof c=="string")return c;if(c){const u=c.deg||0,f=c.from,v=c.to;return`linear-gradient(${u}deg, ${f} 0%, ${v} 100%)`}}),a=ge("GradientText","-gradient-text",j_,FA,e,t),l=S(()=>{const{value:c}=r,{common:{cubicBezierEaseInOut:u},self:{rotate:f,[be("colorStart",c)]:v,[be("colorEnd",c)]:m,fontWeight:h}}=a.value;return{"--n-bezier":u,"--n-rotate":f,"--n-color-start":v,"--n-color-end":m,"--n-font-weight":h}}),d=n?Xe("gradient-text",S(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:o,styleBgImage:i,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t?.(),s("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}}),U_={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},Sy=24,Wd="__ssr__",Ry={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:Sy},itemResponsive:Boolean,collapsed:Boolean,collapsedRows:{type:Number,default:1},itemStyle:[Object,String],xGap:{type:[Number,String],default:0},yGap:{type:[Number,String],default:0}},W_=Y({name:"Grid",inheritAttrs:!1,props:Ry,setup(e){const{mergedClsPrefixRef:t,mergedBreakpointsRef:n}=Ee(e),r=/^\d+$/,o=B(void 0),i=ZC(n?.value||U_),a=it(()=>!!(e.itemResponsive||!r.test(e.cols.toString())||!r.test(e.xGap.toString())||!r.test(e.yGap.toString()))),l=S(()=>{if(a.value)return e.responsive==="self"?o.value:i.value}),d=it(()=>{var b;return(b=Number(yi(e.cols.toString(),l.value)))!==null&&b!==void 0?b:Sy}),c=it(()=>yi(e.xGap.toString(),l.value)),u=it(()=>yi(e.yGap.toString(),l.value)),f=b=>{o.value=b.contentRect.width},v=b=>{oi(f,b)},m=B(!1),h=S(()=>{if(e.responsive==="self")return v}),g=B(!1),p=B();return It(()=>{const{value:b}=p;b&&b.hasAttribute(Wd)&&(b.removeAttribute(Wd),g.value=!0)}),ot(yy,{layoutShiftDisabledRef:le(e,"layoutShiftDisabled"),isSsrRef:g,itemStyleRef:le(e,"itemStyle"),xGapRef:c,overflowRef:m}),{isSsr:!Wn,contentEl:p,mergedClsPrefix:t,style:S(()=>e.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${e.cols}, minmax(0, 1fr))`,columnGap:Vt(e.xGap),rowGap:Vt(e.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${d.value}, minmax(0, 1fr))`,columnGap:Vt(c.value),rowGap:Vt(u.value)}),isResponsive:a,responsiveQuery:l,responsiveCols:d,handleResize:h,overflow:m}},render(){if(this.layoutShiftDisabled)return s("div",Pn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const e=()=>{var t,n,r,o,i,a,l;this.overflow=!1;const d=Yn(Ji(this)),c=[],{collapsed:u,collapsedRows:f,responsiveCols:v,responsiveQuery:m}=this;d.forEach(y=>{var R,w,C,P,k;if(((R=y?.type)===null||R===void 0?void 0:R.__GRID_ITEM__)!==!0)return;if(tR(y)){const T=ri(y);T.props?T.props.privateShow=!1:T.props={privateShow:!1},c.push({child:T,rawChildSpan:0});return}y.dirs=((w=y.dirs)===null||w===void 0?void 0:w.filter(({dir:T})=>T!==lr))||null,((C=y.dirs)===null||C===void 0?void 0:C.length)===0&&(y.dirs=null);const O=ri(y),$=Number((k=yi((P=O.props)===null||P===void 0?void 0:P.span,m))!==null&&k!==void 0?k:og);$!==0&&c.push({child:O,rawChildSpan:$})});let h=0;const g=(t=c[c.length-1])===null||t===void 0?void 0:t.child;if(g?.props){const y=(n=g.props)===null||n===void 0?void 0:n.suffix;y!==void 0&&y!==!1&&(h=Number((o=yi((r=g.props)===null||r===void 0?void 0:r.span,m))!==null&&o!==void 0?o:og),g.props.privateSpan=h,g.props.privateColStart=v+1-h,g.props.privateShow=(i=g.props.privateShow)!==null&&i!==void 0?i:!0)}let p=0,b=!1;for(const{child:y,rawChildSpan:R}of c){if(b&&(this.overflow=!0),!b){const w=Number((l=yi((a=y.props)===null||a===void 0?void 0:a.offset,m))!==null&&l!==void 0?l:0),C=Math.min(R+w,v);if(y.props?(y.props.privateSpan=C,y.props.privateOffset=w):y.props={privateSpan:C,privateOffset:w},u){const P=p%v;C+P>v&&(p+=v-P),C+p+h>f*v?b=!0:p+=C}}b&&(y.props?y.props.privateShow!==!0&&(y.props.privateShow=!1):y.props={privateShow:!1})}return s("div",Pn({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[Wd]:this.isSsr||void 0},this.$attrs),c.map(({child:y})=>y))};return this.isResponsive&&this.responsive==="self"?s(Nn,{onResize:this.handleResize},{default:e}):e()}});function ky(e){const{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:o,fontWeight:i,textColor2:a,cardColor:l,buttonColor2Hover:d}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:l,textColor:a,mininumColor:d,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:o}}const Py={name:"Heatmap",common:Je,self:ky};function K_(e,t){const n=B(""),r=oo(),o=Be(Un,null),i=o?.styleMountTarget;return It(()=>{Ft(()=>{if(!e.loading)return;const{self:{loadingColorStart:a,loadingColorEnd:l}}=t.value,d=xo(a)+xo(l),c=`heatmap-loading-${d}`,u=`heatmap-loading-animation-${d}`;n.value=c,z([z(`.${c}`,` + animation: 2s ${u} infinite cubic-bezier(0.36, 0, 0.64, 1); + `),z(`@keyframes ${u}`,` + 0% { + background: ${a}; + } + 40% { + background: ${l}; + } + 80% { + background: ${a}; + } + 100% { + background: ${a}; + } + `)]).mount({id:d,ssr:r,parent:i})})}),n}const q_=Y({name:"HeatmapColorIndicator",slots:Object,props:{colors:{type:Array,required:!0},clsPrefix:{type:String,required:!0}},setup(e,{slots:t}){return()=>{var n,r;const{colors:o,clsPrefix:i}=e;return s("div",{class:`${i}-heatmap-color-indicator`},s("span",{class:`${i}-heatmap-color-indicator__label`},(n=t["leading-text"])===null||n===void 0?void 0:n.call(t)),s("div",{class:`${i}-heatmap-color-indicator__cells`},o.map((a,l)=>s("div",{key:l,class:`${i}-heatmap-color-indicator__cell`,style:{backgroundColor:a}}))),s("span",{class:`${i}-heatmap-color-indicator__label`},(r=t["trailing-text"])===null||r===void 0?void 0:r.call(t)))}}}),Y_=Y({name:"HeatmapRect",slots:Object,props:{mergedClsPrefix:{type:String,required:!0},data:{type:Object,required:!0},color:{type:String,required:!0},style:Object,loading:Boolean,loadingClass:String,tooltip:{type:[Boolean,Object],default:!0}},setup(e){const t=S(()=>({"--n-rect-color":e.color})),n=S(()=>typeof e.tooltip=="object"?e.tooltip:{}),r=S(()=>{const o=new Date(e.data.timestamp).toLocaleDateString();return e.data.value!==null?`${o} ${e.data.value}`:o});return{cssVars:t,tooltipProps:n,defaultTooltipContent:r}},render(){const{mergedClsPrefix:e,style:t,cssVars:n,tooltip:r,tooltipProps:o,defaultTooltipContent:i,loading:a,data:l}=this,d=s("div",{class:[`${e}-heatmap-rect`,a&&`${e}-heatmap-rect--loading`,a&&this.loadingClass],style:[n,t]});return r===!1||a?d:s(ol,Object.assign({trigger:"hover"},o),{default:()=>an(this.$slots.tooltip,l,()=>[s("div",null,i)]),trigger:()=>d})}}),G_=z([x("heatmap",` + display: flex; + flex-direction: column; + max-width: fit-content; + font-size: var(--n-font-size); + `,[F("content",` + display: block; + `),F("calendar-table",` + border-collapse: separate; + border-spacing: var(--n-y-gap) var(--n-x-gap); + font-size: var(--n-font-size); + `),F("week-header-cell",` + width: 27px; + padding: 0; + border: none; + font-size: var(--n-font-size); + `),F("month-label-cell",` + font-size: var(--n-font-size); + color: var(--n-text-color); + text-align: left; + height: 15px; + line-height: 15px; + font-weight: var(--n-font-weight); + padding: 0 2px 8px; + vertical-align: bottom; + transition: color .3s var(--n-bezier); + `),F("week-label-cell",` + font-size: var(--n-font-size); + color: var(--n-text-color); + text-align: right; + width: 27px; + height: 11px; + line-height: 11px; + padding: 0 4px 0 0; + border: none; + vertical-align: middle; + white-space: nowrap; + font-weight: var(--n-font-weight); + transition: color .3s var(--n-bezier); + `),F("day-cell",` + width: var(--n-rect-size); + height: var(--n-rect-size); + padding: 0; + border: none; + vertical-align: middle; + transition: color .3s var(--n-bezier); + `),F("empty-cell",` + width: var(--n-rect-size); + height: var(--n-rect-size); + border-radius: var(--n-border-radius); + `),F("footer",` + display: flex; + justify-content: space-between; + margin-left: 17px; + align-items: center; + margin-top: 8px; + &:has(> :only-child) { + justify-content: flex-end; + } + `),F("indicator",` + display: flex; + align-items: center; + justify-content: flex-end; + `)]),x("heatmap-rect",` + width: var(--n-rect-size); + height: var(--n-rect-size); + border-radius: var(--n-border-radius); + background-color: var(--n-rect-color); + transition: background-color .3s var(--n-bezier); + `,[M("loading",` + cursor: default; + background: var(--n-loading-color-start); + `)]),x("heatmap-color-indicator",` + display: flex; + align-items: center; + justify-content: flex-end; + gap: 4px; + font-size: var(--n-font-size); + `,[F("cells",` + display: flex; + gap: var(--n-x-gap); + `),F("cell",` + width: var(--n-rect-size); + height: var(--n-rect-size); + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),F("label",` + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + `)])]),X_={green:["#c6e48b","#7bc96f","#239a3b","#196127"],blue:["#c0e7ff","#73b3ff","#0969da","#0550ae"],orange:["#fed7aa","#fb923c","#ea580c","#c2410c"],purple:["#e9d5ff","#c084fc","#9333ea","#7c3aed"],red:["#fecaca","#f87171","#dc2626","#b91c1c"]};function Z_(e,t,n){if(n===0||t===null||t===void 0||t<=0)return e[0];const r=Math.min(t/n,1),o=e.length-1,i=Math.min(Math.ceil(r*o),o);return e[i]}function ag(e,t,n){const r=[...e].sort((f,v)=>f.timestamp-v.timestamp),o=r[0].timestamp,i=r[r.length-1].timestamp,a=dr(o,{weekStartsOn:t}),l=p4(i,{weekStartsOn:t}),d=new Map(r.map(f=>[Hr(f.timestamp).getTime(),f])),c=Ub({start:a,end:l}),u=n?a:o;return c.map(f=>{const v=Hr(f).getTime(),m=d.get(v);if(m)return m;const h=IO(f,{start:u,end:i})?0:null;return{timestamp:f.getTime(),value:h}})}function J_(e,t,n,r,o){const i=Vb(e.timestamp,t),a=Math.floor(i/7),l=Xb(e.timestamp),d=(l-n+7)%7;return{timestamp:e.timestamp,value:e.value,color:Z_(r,e.value,o),dayOfWeek:l,rowIndex:d,colIndex:a}}function Q_(e,t,n,r){const o=Hp(t,n);return Array.from({length:e},(i,a)=>{const l=o[a]||[],d=[];return l.forEach(c=>{d[r(c)]=c}),d})}function eE(e){const r=Date.now();return Array.from({length:7},(o,i)=>Array.from({length:53},(a,l)=>({timestamp:r,value:0,color:"#000000",dayOfWeek:(e+i)%7,rowIndex:i,colIndex:l})))}function tE(e){let t,n;if(e===void 0||e==="recent")n=new Date,t=ZO(n);else{const o=Number(e);t=ta(new Date(o,0,1)),n=m4(new Date(o,11,31))}return Ub({start:t,end:n}).map(o=>{const i=o.getDay(),a=i===0||i===6;if(a&&Math.random()<.7)return{timestamp:o.getTime(),value:0};if(!a&&Math.random()<.15)return{timestamp:o.getTime(),value:0};const l=Math.floor(Math.pow(Math.random(),2)*40)+1;return{timestamp:o.getTime(),value:l}})}const zy=Object.assign(Object.assign({},ge.props),{activeColors:Array,colorTheme:String,data:Array,loadingData:Object,fillCalendarLeading:Boolean,firstDayOfWeek:{type:Number,default:0},loading:Boolean,minimumColor:String,showColorIndicator:{type:Boolean,default:!0},showWeekLabels:{type:Boolean,default:!0},showMonthLabels:{type:Boolean,default:!0},size:{type:String,default:"medium"},tooltip:{type:[Boolean,Object],default:!1},xGap:[Number,String],yGap:[Number,String]}),nE=Y({name:"Heatmap",slots:Object,props:zy,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=Ee(e),{localeRef:o,dateLocaleRef:i}=on("Heatmap"),a=ge("Heatmap","-heatmap",G_,Py,e,t),l=Bt("Heatmap",n,t),d=S(()=>{const{xGap:C,yGap:P,size:k}=e,{common:{cubicBezierEaseInOut:O},self:{fontWeight:$,textColor:T,borderColor:D,loadingColorStart:I,[be("rectSize",k)]:A,[be("borderRadius",k)]:E,[be("xGap",k)]:N,[be("yGap",k)]:U,[be("fontSize",k)]:q}}=a.value;return{"--n-bezier":O,"--n-font-size":q,"--n-font-weight":$,"--n-text-color":T,"--n-border-radius":E,"--n-border-color":D,"--n-loading-color-start":I,"--n-rect-size":A,"--n-x-gap":C!==void 0?typeof C=="number"?Vt(C):C:N,"--n-y-gap":P!==void 0?typeof P=="number"?Vt(P):P:U}}),c=r?Xe("heatmap",S(()=>{const{size:C}=e;return C[0]}),d,e):void 0,u=S(()=>{const{mininumColor:C,activeColors:P}=a.value.self,k=e.minimumColor||C,O=e.colorTheme&&X_[e.colorTheme],$=e.activeColors||O||P;return[k,...$]}),f=S(()=>!e.data||e.data.length===0?[]:ag(e.data,Ii(e.firstDayOfWeek),e.fillCalendarLeading)),v=S(()=>!e.loadingData||e.loadingData.length===0?[]:ag(e.loadingData,Ii(e.firstDayOfWeek),e.fillCalendarLeading)),m=S(()=>{var C,P;const k=f.value.filter(O=>O.value!==null);return(P=(C=p3(k,O=>O.value))===null||C===void 0?void 0:C.value)!==null&&P!==void 0?P:0}),h=S(()=>{const C=f.value,P=v.value;if(e.loading&&!P.length)return eE(Ii(e.firstDayOfWeek));const k=e.loading?P:C;if(!k.length)return[];const O=m.value,$=u.value,T=k[0].timestamp,D=k.map(I=>J_(I,T,Ii(e.firstDayOfWeek),$,O));return Q_(7,D,I=>I.rowIndex,I=>I.colIndex)}),g=S(()=>{const{weekdayFormat:C}=o.value,{locale:P}=i.value,k=dr(new Date,{weekStartsOn:Ii(e.firstDayOfWeek)});return Array.from({length:7},(O,$)=>({label:Dt(Ko(k,$),C,{locale:P}),visible:$%2!==0}))}),p=S(()=>{const{monthFormat:C}=o.value,{locale:P}=i.value,k=new Date().getFullYear(),O=[5,4,5,4,5,4,5,4,4,5,4,4];return Array.from({length:12},($,T)=>{const D=new Date(k,T,1);return{name:Dt(D,C,{locale:P}),colSpan:O[T]}})});function b(C){const P=C[0].length,k=[];for(let O=0;O{const{monthFormat:C}=o.value,{locale:P}=i.value,k=h.value;if(!k||k.length===0||!k[0])return[];const O=b(k),$=g3(Hp(O,"month"),T=>{const D=T.map(I=>I.week);return{weekCount:T.length,start:Math.min(...D),end:Math.max(...D)}});return Object.entries($).filter(([,T])=>T.weekCount>=3).sort(([T],[D])=>T.localeCompare(D)).map(([T,D])=>{const I=new Date(BO(`${T}-01`));return{name:Dt(I,C,{locale:P}),colSpan:D.end-D.start+1}})}),R=S(()=>e.loading&&!e.loadingData?p.value:y.value),w=K_(e,a);return{weekLabels:g,monthLabels:R,mergedColors:u,mergedClsPrefix:t,rtlEnabled:l,locale:o,cssVars:r?void 0:d,themeClass:c?.themeClass,onRender:c?.onRender,heatmapMatrix:h,loadingClass:w}},render(){const{loading:e,showWeekLabels:t,showMonthLabels:n,showColorIndicator:r,mergedClsPrefix:o,themeClass:i,cssVars:a,rtlEnabled:l,locale:d,weekLabels:c,monthLabels:u,mergedColors:f,$slots:v,heatmapMatrix:m,loadingClass:h,onRender:g}=this;return g?.(),s("div",{class:[i,`${o}-heatmap`,l&&`${o}-heatmap--rtl`],style:a},s("div",{class:`${o}-heatmap__content`},s("table",{class:`${o}-heatmap__calendar-table`},n&&s("thead",null,s("tr",null,t&&s("th",{class:`${o}-heatmap__week-header-cell`}),u.map((p,b)=>s("th",{key:`month-${b}`,colspan:p.colSpan,class:`${o}-heatmap__month-label-cell`},p.name)))),s("tbody",null,c.map((p,b)=>s("tr",{key:`row-${b}`},t&&s("td",{class:`${o}-heatmap__week-label-cell`},p.visible?p.label:null),(m[b]||[]).map((y,R)=>y.value!==null?s("td",{key:`day-${b}-${R}`,class:`${o}-heatmap__day-cell`},s(Y_,{mergedClsPrefix:o,data:y,color:y.color,tooltip:this.tooltip,loading:e,loadingClass:h},{tooltip:()=>{var w;return(w=v.tooltip)===null||w===void 0?void 0:w.call(v,y)}})):s("td",{key:`empty-${b}-${R}`,class:`${o}-heatmap__day-cell`},s("div",{class:`${o}-heatmap__empty-cell`})))))))),s("div",{class:`${o}-heatmap__footer`},yt(v.footer,p=>p&&s("div",{class:`${o}-heatmap__footer`},p)),s("div",{class:`${o}-heatmap__indicator`},ht(v.indicator,()=>[r&&s(q_,{colors:f,clsPrefix:o},{"leading-text":()=>ht(v["indicator-leading-text"],()=>[d.less]),"trailing-text":()=>ht(v["indicator-trailing-text"],()=>[d.more])})]))))}}),rE={name:"Heatmap",common:r5,self(e){const t=ky(e);return Object.assign(Object.assign({},t),{activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"})}};function oE(e,t){if(!t.global)throw new Error('splitAndMarkByRegex requires a global regex (with "g" flag)');const n=[];let r=0;for(const o of e.matchAll(t)){const{index:i}=o;i>r&&n.push({text:e.slice(r,i),isMatch:!1}),n.push({text:o[0],isMatch:!0}),r=i+o[0].length}return r[]},highlightClass:String,highlightStyle:[Object,String]},iE=Y({name:"Highlight",props:$y,setup(e){const{mergedClsPrefixRef:t}=Ee(),n=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{highlightedNode:S(()=>{const o=t.value;let i=[];const{patterns:a,text:l}=e;if(a.length===0||!l)i=[l];else{const{highlightTag:d,caseSensitive:c,autoEscape:u,highlightClass:f,highlightStyle:v}=e,m=a.map(p=>u?n(p):p).join("|"),h=new RegExp(`(${m})`,c?"g":"gi");i=oE(l,h).map(({text:p,isMatch:b})=>b?s(d,{class:[`${o}-highlight__mark`,f],style:v},p):p)}return s("span",{class:`${o}-highlight`},i)}),mergedClsPrefix:t}},render(){return this.highlightedNode}});function aE(e){const{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}const lE={common:Je,self:aE},sE=x("icon-wrapper",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-color); + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-icon-color); +`),Ty=Object.assign(Object.assign({},ge.props),{size:{type:Number,default:24},borderRadius:{type:Number,default:6},color:String,iconColor:String}),dE=Y({name:"IconWrapper",props:Ty,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("IconWrapper","-icon-wrapper",sE,lE,e,n),i=S(()=>{const{common:{cubicBezierEaseInOut:l},self:{color:d,iconColor:c}}=o.value;return{"--n-bezier":l,"--n-color":d,"--n-icon-color":c}}),a=r?Xe("icon-wrapper",void 0,i,e):void 0;return()=>{const l=Pt(e.size);return a?.onRender(),s("div",{class:[`${n.value}-icon-wrapper`,a?.themeClass.value],style:[i?.value,{height:l,width:l,borderRadius:Pt(e.borderRadius),backgroundColor:e.color,color:e.iconColor}]},t)}}});function cE(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const uE={name:"Image",common:Je,peers:{Tooltip:Ls},self:cE};function fE(){return s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"}))}function hE(){return s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"}))}function vE(){return s("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"}))}const xf=Object.assign(Object.assign({},ge.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Oy="n-image",gE=z([z("body >",[x("image-container","position: fixed;")]),x("image-preview-container",` + position: fixed; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + `),x("image-preview-overlay",` + z-index: -1; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + background: rgba(0, 0, 0, .3); + `,[eo()]),x("image-preview-toolbar",` + z-index: 1; + position: absolute; + left: 50%; + transform: translateX(-50%); + border-radius: var(--n-toolbar-border-radius); + height: 48px; + bottom: 40px; + padding: 0 12px; + background: var(--n-toolbar-color); + box-shadow: var(--n-toolbar-box-shadow); + color: var(--n-toolbar-icon-color); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[x("base-icon",` + padding: 0 8px; + font-size: 28px; + cursor: pointer; + `),eo()]),x("image-preview-wrapper",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + pointer-events: none; + `,[Cn()]),x("image-preview",` + user-select: none; + -webkit-user-select: none; + pointer-events: all; + margin: auto; + max-height: calc(100vh - 32px); + max-width: calc(100vw - 32px); + transition: transform .3s var(--n-bezier); + `),x("image",` + display: inline-flex; + max-height: 100%; + max-width: 100%; + `,[ft("preview-disabled",` + cursor: pointer; + `),z("img",` + border-radius: inherit; + `)])]),jl=32,Fy=Object.assign(Object.assign({},xf),{src:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onNext:Function,onPrev:Function,onClose:[Function,Array]}),yf=Y({name:"ImagePreview",props:Fy,setup(e){const{src:t}=oC(e),{mergedClsPrefixRef:n}=Ee(e),r=ge("Image","-image",gE,uE,e,n);let o=null;const i=B(null),a=B(null),l=B(!1),{localeRef:d}=on("Image"),c=B(e.defaultShow),u=le(e,"show"),f=St(u,c);function v(){const{value:Q}=a;if(!o||!Q)return;const{style:ue}=Q,G=o.getBoundingClientRect(),fe=G.left+G.width/2,we=G.top+G.height/2;ue.transformOrigin=`${fe}px ${we}px`}function m(Q){var ue,G;switch(Q.key){case" ":Q.preventDefault();break;case"ArrowLeft":(ue=e.onPrev)===null||ue===void 0||ue.call(e);break;case"ArrowRight":(G=e.onNext)===null||G===void 0||G.call(e);break;case"ArrowUp":Q.preventDefault(),ce();break;case"ArrowDown":Q.preventDefault(),ye();break;case"Escape":ze();break}}function h(Q){const{onUpdateShow:ue,"onUpdate:show":G}=e;ue&&ie(ue,Q),G&&ie(G,Q),c.value=Q,l.value=!0}ct(f,Q=>{Q?Ct("keydown",document,m):wt("keydown",document,m)}),jt(()=>{wt("keydown",document,m)});let g=0,p=0,b=0,y=0,R=0,w=0,C=0,P=0,k=!1;function O(Q){const{clientX:ue,clientY:G}=Q;b=ue-g,y=G-p,oi(V)}function $(Q){const{mouseUpClientX:ue,mouseUpClientY:G,mouseDownClientX:fe,mouseDownClientY:we}=Q,te=fe-ue,X=we-G,he=`vertical${X>0?"Top":"Bottom"}`,Ie=`horizontal${te>0?"Left":"Right"}`;return{moveVerticalDirection:he,moveHorizontalDirection:Ie,deltaHorizontal:te,deltaVertical:X}}function T(Q){const{value:ue}=i;if(!ue)return{offsetX:0,offsetY:0};const G=ue.getBoundingClientRect(),{moveVerticalDirection:fe,moveHorizontalDirection:we,deltaHorizontal:te,deltaVertical:X}=Q||{};let he=0,Ie=0;return G.width<=window.innerWidth?he=0:G.left>0?he=(G.width-window.innerWidth)/2:G.right0?Ie=(G.height-window.innerHeight)/2:G.bottom.5){const Q=U;N-=1,U=Math.max(.5,Math.pow(E,N));const ue=Q-U;V(!1);const G=T();U+=ue,V(!1),U-=ue,b=G.offsetX,y=G.offsetY,V()}}function _e(){const Q=t.value;Q&&Fs(Q,void 0)}function V(Q=!0){var ue;const{value:G}=i;if(!G)return;const{style:fe}=G,we=im((ue=I?.previewedImgPropsRef.value)===null||ue===void 0?void 0:ue.style);let te="";if(typeof we=="string")te=`${we};`;else for(const he in we)te+=`${jp(he)}: ${we[he]};`;const X=`transform-origin: center; transform: translateX(${b}px) translateY(${y}px) rotate(${q}deg) scale(${U});`;k?fe.cssText=`${te}cursor: grabbing; transition: none;${X}`:fe.cssText=`${te}cursor: grab;${X}${Q?"":"transition: none;"}`,Q||G.offsetHeight}function ze(){if(f.value){const{onClose:Q}=e;Q&&ie(Q),h(!1),c.value=!1}}function Ae(){U=Z(),N=Math.ceil(Math.log(U)/Math.log(E)),b=0,y=0,V()}const Ne={setThumbnailEl:Q=>{o=Q}};function je(Q,ue){if(e.showToolbarTooltip){const{value:G}=r;return s(ol,{to:!1,theme:G.peers.Tooltip,themeOverrides:G.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>d.value[ue],trigger:()=>Q})}else return Q}const qe=S(()=>{const{common:{cubicBezierEaseInOut:Q},self:{toolbarIconColor:ue,toolbarBorderRadius:G,toolbarBoxShadow:fe,toolbarColor:we}}=r.value;return{"--n-bezier":Q,"--n-toolbar-icon-color":ue,"--n-toolbar-color":we,"--n-toolbar-border-radius":G,"--n-toolbar-box-shadow":fe}}),{inlineThemeDisabled:gt}=Ee(),at=gt?Xe("image-preview",void 0,qe,e):void 0;function Te(Q){Q.preventDefault()}return Object.assign({clsPrefix:n,previewRef:i,previewWrapperRef:a,previewSrc:t,mergedShow:f,appear:$n(),displayed:l,previewedImgProps:I?.previewedImgPropsRef,handleWheel:Te,handlePreviewMousedown:A,handlePreviewDblclick:J,syncTransformOrigin:v,handleAfterLeave:()=>{ve(),q=0,l.value=!1},handleDragStart:Q=>{var ue,G;(G=(ue=I?.previewedImgPropsRef.value)===null||ue===void 0?void 0:ue.onDragstart)===null||G===void 0||G.call(ue,Q),Q.preventDefault()},zoomIn:ce,zoomOut:ye,handleDownloadClick:_e,rotateCounterclockwise:j,rotateClockwise:_,handleSwitchPrev:ae,handleSwitchNext:W,withTooltip:je,resizeToOrignalImageSize:Ae,cssVars:gt?void 0:qe,themeClass:at?.themeClass,onRender:at?.onRender,doUpdateShow:h,close:ze},Ne)},render(){var e,t;const{clsPrefix:n,renderToolbar:r,withTooltip:o}=this,i=o(s(lt,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:fE}),"tipPrevious"),a=o(s(lt,{clsPrefix:n,onClick:this.handleSwitchNext},{default:hE}),"tipNext"),l=o(s(lt,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>s(L3,null)}),"tipCounterclockwise"),d=o(s(lt,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>s(N3,null)}),"tipClockwise"),c=o(s(lt,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>s(_3,null)}),"tipOriginalSize"),u=o(s(lt,{clsPrefix:n,onClick:this.zoomOut},{default:()=>s(K3,null)}),"tipZoomOut"),f=o(s(lt,{clsPrefix:n,onClick:this.handleDownloadClick},{default:()=>s(Yp,null)}),"tipDownload"),v=o(s(lt,{clsPrefix:n,onClick:()=>this.close()},{default:vE}),"tipClose"),m=o(s(lt,{clsPrefix:n,onClick:this.zoomIn},{default:()=>s(W3,null)}),"tipZoomIn");return s(qt,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),s(Za,{show:this.mergedShow},{default:()=>{var h;return this.mergedShow||this.displayed?((h=this.onRender)===null||h===void 0||h.call(this),rn(s("div",{ref:"containerRef",class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},s(_t,{name:"fade-in-transition",appear:this.appear},{default:()=>this.mergedShow?s("div",{class:`${n}-image-preview-overlay`,onClick:()=>this.close()}):null}),this.showToolbar?s(_t,{name:"fade-in-transition",appear:this.appear},{default:()=>this.mergedShow?s("div",{class:`${n}-image-preview-toolbar`},r?r({nodes:{prev:i,next:a,rotateCounterclockwise:l,rotateClockwise:d,resizeToOriginalSize:c,zoomOut:u,zoomIn:m,download:f,close:v}}):s(qt,null,this.onPrev?s(qt,null,i,a):null,l,d,c,u,m,f,v)):null}):null,s(_t,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:g={}}=this;return rn(s("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},s("img",Object.assign({},g,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,g.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[lr,this.mergedShow]])}})),[[Xa,{enabled:this.mergedShow}]])):null}}))}}),My="n-image-group",Iy=Object.assign(Object.assign({},xf),{srcList:Array,current:Number,defaultCurrent:{type:Number,default:0},show:{type:Boolean,default:void 0},defaultShow:Boolean,onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onUpdateCurrent:[Function,Array],"onUpdate:current":[Function,Array]}),By=Y({name:"ImageGroup",props:Iy,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=`c${Vn()}`,r=B(null),o=B(e.defaultShow),i=le(e,"show"),a=St(i,o),l=B(new Map),d=S(()=>{if(e.srcList){const O=new Map;return e.srcList.forEach(($,T)=>{O.set(`p${T}`,$)}),O}return l.value}),c=S(()=>Array.from(d.value.keys())),u=()=>c.value.length;function f(O,$){e.srcList&&mn("image-group","`n-image` can't be placed inside `n-image-group` when image group's `src-list` prop is set.");const T=`r${O}`;return l.value.has(`r${T}`)||l.value.set(T,$),function(){l.value.has(T)||l.value.delete(T)}}const v=B(e.defaultCurrent),m=le(e,"current"),h=St(m,v),g=O=>{if(O!==h.value){const{onUpdateCurrent:$,"onUpdate:current":T}=e;$&&ie($,O),T&&ie(T,O),v.value=O}},p=S(()=>c.value[h.value]),b=O=>{const $=c.value.indexOf(O);$!==h.value&&g($)},y=S(()=>d.value.get(p.value));function R(O){const{onUpdateShow:$,"onUpdate:show":T}=e;$&&ie($,O),T&&ie(T,O),o.value=O}function w(){R(!1)}const C=S(()=>{const O=(T,D)=>{for(let I=T;I<=D;I++){const A=c.value[I];if(d.value.get(A))return I}},$=O(h.value+1,u()-1);return $===void 0?O(0,h.value-1):$}),P=S(()=>{const O=(T,D)=>{for(let I=T;I>=D;I--){const A=c.value[I];if(d.value.get(A))return I}},$=O(h.value-1,0);return $===void 0?O(u()-1,h.value+1):$});function k(O){var $,T;O===1?(P.value!==void 0&&g(C.value),($=e.onPreviewNext)===null||$===void 0||$.call(e)):(C.value!==void 0&&g(P.value),(T=e.onPreviewPrev)===null||T===void 0||T.call(e))}return ot(My,{mergedClsPrefixRef:t,registerImageUrl:f,setThumbnailEl:O=>{var $;($=r.value)===null||$===void 0||$.setThumbnailEl(O)},toggleShow:O=>{R(!0),b(O)},groupId:n,renderToolbarRef:le(e,"renderToolbar")}),{mergedClsPrefix:t,previewInstRef:r,mergedShow:a,src:y,onClose:w,next:()=>{k(1)},prev:()=>{k(-1)}}},render(){return s(yf,{theme:this.theme,themeOverrides:this.themeOverrides,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,src:this.src,show:this.mergedShow,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,onClose:this.onClose},this.$slots)}}),Ay=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},xf);let mE=0;const Dy=Y({name:"Image",props:Ay,slots:Object,inheritAttrs:!1,setup(e){const t=B(null),n=B(!1),r=B(null),o=Be(My,null),{mergedClsPrefixRef:i}=o||Ee(e),a=S(()=>e.previewSrc||e.src),l=B(!1),d=mE++,c=()=>{if(e.previewDisabled||n.value)return;if(o){o.setThumbnailEl(t.value),o.toggleShow(`r${d}`);return}const{value:g}=r;g&&(g.setThumbnailEl(t.value),l.value=!0)},u={click:()=>{c()},showPreview:c},f=B(!e.lazy);It(()=>{var g;(g=t.value)===null||g===void 0||g.setAttribute("data-group-id",o?.groupId||"")}),It(()=>{if(e.lazy&&e.intersectionObserverOptions){let g;const p=Ft(()=>{g?.(),g=void 0,g=$b(t.value,e.intersectionObserverOptions,f)});jt(()=>{p(),g?.()})}}),Ft(()=>{var g;e.src||((g=e.imgProps)===null||g===void 0||g.src),n.value=!1}),Ft(g=>{var p;const b=(p=o?.registerImageUrl)===null||p===void 0?void 0:p.call(o,d,a.value||"");g(()=>{b?.()})});function v(g){var p,b;u.showPreview(),(b=(p=e.imgProps)===null||p===void 0?void 0:p.onClick)===null||b===void 0||b.call(p,g)}function m(){l.value=!1}const h=B(!1);return ot(Oy,{previewedImgPropsRef:le(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:o?.groupId,previewInstRef:r,imageRef:t,mergedPreviewSrc:a,showError:n,shouldStartLoading:f,loaded:h,mergedOnClick:g=>{v(g)},onPreviewClose:m,mergedOnError:g=>{if(!f.value)return;n.value=!0;const{onError:p,imgProps:{onError:b}={}}=e;p?.(g),b?.(g)},mergedOnLoad:g=>{const{onLoad:p,imgProps:{onLoad:b}={}}=e;p?.(g),b?.(g),h.value=!0},previewShow:l},u)},render(){var e,t;const{mergedClsPrefix:n,imgProps:r={},loaded:o,$attrs:i,lazy:a}=this,l=ht(this.$slots.error,()=>[]),d=(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e),c=this.src||r.src,u=this.showError&&l.length?l:s("img",Object.assign(Object.assign({},r),{ref:"imageRef",width:this.width||r.width,height:this.height||r.height,src:this.showError?this.fallbackSrc:a&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||r.alt,"aria-label":this.alt||r.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:zb&&a&&!this.intersectionObserverOptions?"lazy":"eager",style:[r.style||"",d&&!o?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return s("div",Object.assign({},i,{role:"none",class:[i.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?u:s(yf,{theme:this.theme,themeOverrides:this.themeOverrides,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,src:this.mergedPreviewSrc,show:!this.previewDisabled&&this.previewShow,onClose:this.onPreviewClose},{default:()=>u}),!o&&d)}});var pE=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const _y={distance:{type:Number,default:0},onLoad:Function,scrollbarProps:Object},bE=Y({name:"InfiniteScroll",props:_y,setup(e){const t=B(null);let n=!1;const r=()=>pE(this,void 0,void 0,function*(){var a;const{value:l}=t;if(l){const{containerRef:d}=l,c=d?.scrollHeight,u=d?.clientHeight,f=d?.scrollTop;if(d&&c!==void 0&&u!==void 0&&f!==void 0&&f+u>=c-e.distance){n=!0;try{yield(a=e.onLoad)===null||a===void 0?void 0:a.call(e)}catch{}n=!1}}});return{scrollbarInstRef:t,handleScroll:()=>{n||r()},handleWheel:a=>{a.deltaY<=0||n||r()}}},render(){return s(Ui,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",onWheel:this.handleWheel,onScroll:this.handleScroll}),{default:()=>ht(this.$slots.default,()=>[])})}}),xE=z([x("input-number-suffix",` + display: inline-block; + margin-right: 10px; + `),x("input-number-prefix",` + display: inline-block; + margin-left: 10px; + `)]);function yE(e){return e==null||typeof e=="string"&&e.trim()===""?null:Number(e)}function wE(e){return e.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e==="-"||e==="-0"}function Kd(e){return e==null?!0:!Number.isNaN(e)}function lg(e,t){return typeof e!="number"?"":t===void 0?String(e):e.toFixed(t)}function qd(e){if(e===null)return null;if(typeof e=="number")return e;{const t=Number(e);return Number.isNaN(t)?null:t}}const sg=800,dg=100,Ey=Object.assign(Object.assign({},ge.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:"right"},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),CE=Y({name:"InputNumber",props:Ey,slots:Object,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r}=Ee(e),o=ge("InputNumber","-input-number",xE,IA,e,n),{localeRef:i}=on("InputNumber"),a=ln(e),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:c}=a,u=B(null),f=B(null),v=B(null),m=B(e.defaultValue),h=le(e,"value"),g=St(h,m),p=B(""),b=Te=>{const Q=String(Te).split(".")[1];return Q?Q.length:0},y=Te=>{const Q=[e.min,e.max,e.step,Te].map(ue=>ue===void 0?0:b(ue));return Math.max(...Q)},R=it(()=>{const{placeholder:Te}=e;return Te!==void 0?Te:i.value.placeholder}),w=it(()=>{const Te=qd(e.step);return Te!==null?Te===0?1:Math.abs(Te):1}),C=it(()=>{const Te=qd(e.min);return Te!==null?Te:null}),P=it(()=>{const Te=qd(e.max);return Te!==null?Te:null}),k=()=>{const{value:Te}=g;if(Kd(Te)){const{format:Q,precision:ue}=e;Q?p.value=Q(Te):Te===null||ue===void 0||b(Te)>ue?p.value=lg(Te,void 0):p.value=lg(Te,ue)}else p.value=String(Te)};k();const O=Te=>{const{value:Q}=g;if(Te===Q){k();return}const{"onUpdate:value":ue,onUpdateValue:G,onChange:fe}=e,{nTriggerFormInput:we,nTriggerFormChange:te}=a;fe&&ie(fe,Te),G&&ie(G,Te),ue&&ie(ue,Te),m.value=Te,we(),te()},$=({offset:Te,doUpdateIfValid:Q,fixPrecision:ue,isInputing:G})=>{const{value:fe}=p;if(G&&wE(fe))return!1;const we=(e.parse||yE)(fe);if(we===null)return Q&&O(null),null;if(Kd(we)){const te=b(we),{precision:X}=e;if(X!==void 0&&XIe){if(!Q||G)return!1;he=Ie}if(me!==null&&he$({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),D=it(()=>{const{value:Te}=g;if(e.validator&&Te===null)return!1;const{value:Q}=w;return $({offset:-Q,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),I=it(()=>{const{value:Te}=g;if(e.validator&&Te===null)return!1;const{value:Q}=w;return $({offset:+Q,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function A(Te){const{onFocus:Q}=e,{nTriggerFormFocus:ue}=a;Q&&ie(Q,Te),ue()}function E(Te){var Q,ue;if(Te.target===((Q=u.value)===null||Q===void 0?void 0:Q.wrapperElRef))return;const G=$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(G!==!1){const te=(ue=u.value)===null||ue===void 0?void 0:ue.inputElRef;te&&(te.value=String(G||"")),g.value===G&&k()}else k();const{onBlur:fe}=e,{nTriggerFormBlur:we}=a;fe&&ie(fe,Te),we(),zt(()=>{k()})}function N(Te){const{onClear:Q}=e;Q&&ie(Q,Te)}function U(){const{value:Te}=I;if(!Te){_e();return}const{value:Q}=g;if(Q===null)e.validator||O(ae());else{const{value:ue}=w;$({offset:ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function q(){const{value:Te}=D;if(!Te){ce();return}const{value:Q}=g;if(Q===null)e.validator||O(ae());else{const{value:ue}=w;$({offset:-ue,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const J=A,ve=E;function ae(){if(e.validator)return null;const{value:Te}=C,{value:Q}=P;return Te!==null?Math.max(0,Te):Q!==null?Math.min(0,Q):0}function W(Te){N(Te),O(null)}function j(Te){var Q,ue,G;!((Q=v.value)===null||Q===void 0)&&Q.$el.contains(Te.target)&&Te.preventDefault(),!((ue=f.value)===null||ue===void 0)&&ue.$el.contains(Te.target)&&Te.preventDefault(),(G=u.value)===null||G===void 0||G.activate()}let _=null,L=null,Z=null;function ce(){Z&&(window.clearTimeout(Z),Z=null),_&&(window.clearInterval(_),_=null)}let ye=null;function _e(){ye&&(window.clearTimeout(ye),ye=null),L&&(window.clearInterval(L),L=null)}function V(){ce(),Z=window.setTimeout(()=>{_=window.setInterval(()=>{q()},dg)},sg),Ct("mouseup",document,ce,{once:!0})}function ze(){_e(),ye=window.setTimeout(()=>{L=window.setInterval(()=>{U()},dg)},sg),Ct("mouseup",document,_e,{once:!0})}const Ae=()=>{L||U()},Ne=()=>{_||q()};function je(Te){var Q,ue;if(Te.key==="Enter"){if(Te.target===((Q=u.value)===null||Q===void 0?void 0:Q.wrapperElRef))return;$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((ue=u.value)===null||ue===void 0||ue.deactivate())}else if(Te.key==="ArrowUp"){if(!I.value||e.keyboard.ArrowUp===!1)return;Te.preventDefault(),$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&U()}else if(Te.key==="ArrowDown"){if(!D.value||e.keyboard.ArrowDown===!1)return;Te.preventDefault(),$({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&q()}}function qe(Te){p.value=Te,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&$({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}ct(g,()=>{k()});const gt={focus:()=>{var Te;return(Te=u.value)===null||Te===void 0?void 0:Te.focus()},blur:()=>{var Te;return(Te=u.value)===null||Te===void 0?void 0:Te.blur()},select:()=>{var Te;return(Te=u.value)===null||Te===void 0?void 0:Te.select()}},at=Bt("InputNumber",r,n);return Object.assign(Object.assign({},gt),{rtlEnabled:at,inputInstRef:u,minusButtonInstRef:f,addButtonInstRef:v,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:m,mergedValue:g,mergedPlaceholder:R,displayedValueInvalid:T,mergedSize:l,mergedDisabled:d,displayedValue:p,addable:I,minusable:D,mergedStatus:c,handleFocus:J,handleBlur:ve,handleClear:W,handleMouseDown:j,handleAddClick:Ae,handleMinusClick:Ne,handleAddMousedown:ze,handleMinusMousedown:V,handleKeyDown:je,handleUpdateDisplayedValue:qe,mergedTheme:o,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:S(()=>{const{self:{iconColorDisabled:Te}}=o.value,[Q,ue,G,fe]=pn(Te);return{textColorTextDisabled:`rgb(${Q}, ${ue}, ${G})`,opacityDisabled:`${fe}`}})})},render(){const{mergedClsPrefix:e,$slots:t}=this,n=()=>s(zr,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:"minusButtonInstRef"},{icon:()=>ht(t["minus-icon"],()=>[s(lt,{clsPrefix:e},{default:()=>s(Xp,null)})])}),r=()=>s(zr,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:"addButtonInstRef"},{icon:()=>ht(t["add-icon"],()=>[s(lt,{clsPrefix:e},{default:()=>s(Vi,null)})])});return s("div",{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},s(Sn,{ref:"inputInstRef",autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?"line-through":void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>{var o;return this.showButton&&this.buttonPlacement==="both"?[n(),yt(t.prefix,i=>i?s("span",{class:`${e}-input-number-prefix`},i):null)]:(o=t.prefix)===null||o===void 0?void 0:o.call(t)},suffix:()=>{var o;return this.showButton?[yt(t.suffix,i=>i?s("span",{class:`${e}-input-number-suffix`},i):null),this.buttonPlacement==="right"?n():null,r()]:(o=t.suffix)===null||o===void 0?void 0:o.call(t)}}))}}),SE=z([x("input-otp",` + display: flex; + align-items: center; + gap: var(--n-gap); + `,[M("block","",[x("input","",[ft("autosize",` + text-align: center; + min-width: 0; + `),M("autosize",` + text-align: center; + min-width: 0; + `)])]),ft("block","",[x("input","",[ft("autosize",` + width: var(--n-input-width); + text-align: center; + `),M("autosize",` + width: var(--n-input-width); + text-align: center; + `)])])])]);var RE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{const{value:A}=l,{gap:E}=e,{self:{[be("inputWidth",A)]:N,[be("gap",A)]:U}}=o.value;return{"--n-gap":E===void 0?U:typeof E=="number"?Vt(E):E,"--n-input-width":N}}),f=r?Xe("input-otp",S(()=>{const{value:A}=l;return A[0]}),u,e):void 0,v=B(e.defaultValue),m=le(e,"value"),h=St(m,v),g=B([]),p=S(()=>e.mask?"password":"text"),b=(A,E)=>{if(g?.value.some(q=>q.inputElRef===A.relatedTarget))return;const{onFocus:N}=e;N&&ie(N,A,E);const{nTriggerFormFocus:U}=a;U()},y=(A,E)=>{if(g?.value.some(q=>q.inputElRef===A.relatedTarget))return;const{onBlur:N}=e,{nTriggerFormBlur:U}=a;N&&ie(N,A,E),U()},R=A=>{A>=e.length||A<0||(g?.value[A].focus(),g?.value[A].select())},w=A=>{A>=e.length-1||R(A+1)},C=A=>{A<=0||R(A-1)},P=A=>{const E=A?Array.from(A):[],N=e.length;for(;E.length>N;)E.pop();for(;E.lengthW).length===ve&&ae&&ie(ae,A),v.value=A,N(),U()}const O=(A,E)=>{if(e.readonly||d.value)return;A.preventDefault();const{clipboardData:N}=A,U=N?.getData("text");if(!U)return;const q=P(h.value);let J=E;const ve=e.allowInput;let ae=!1,W="";for(let j=0;j=q.length));++j);ae&&(R(J),k(q,{diff:W,index:J,source:"paste"}))},$=(A,E)=>{if(d.value)return;const N=A.code||A.key,U=P(h.value);N==="Backspace"&&!e.readonly?(A.preventDefault(),U[Math.max(E,0)]="",k(U,{diff:"",index:E,source:"delete"}),C(E)):N==="ArrowLeft"?(A.preventDefault(),C(E)):N==="ArrowRight"&&(A.preventDefault(),w(E))},T=(A,E)=>{const N=P(h.value),U=N[E],q=A.replace(U,""),J=q[q.length-1]||A[A.length-1]||"",ve=e.allowInput;ve&&!ve(J,E,N)||(N[E]=J,k(N,{diff:J,index:E,source:"input"}),w(E))},D=A=>({onInput:E=>T(E,A),onPaste:E=>O(E,A),onKeydown:E=>$(E,A),onFocus:E=>b(E,A),onBlur:E=>y(E,A)}),I={focusOnChar:R};return Object.assign({mergedTheme:o,perItemValueArray:S(()=>P(h.value)),mergedClsPrefix:t,inputRefList:g,inputType:p,rtlEnabled:i,mergedStatus:c,mergedDisabled:d,cssVars:r?void 0:u,themeClass:f?.themeClass,getTemplateEvents:D,onRender:f?.onRender},I)},render(){const{mergedTheme:e,mergedClsPrefix:t,perItemValueArray:n,size:r,placeholder:o,mergedDisabled:i,mergedStatus:a,readonly:l,inputType:d,$slots:c,getTemplateEvents:u,themeClass:f,onRender:v}=this;return v?.(),s("div",{style:this.cssVars,class:[`${t}-input-otp`,f,this.rtlEnabled&&`${t}-input-otp--rtl`,this.block&&`${t}-input-otp--block`]},wo(this.length,void 0).map((m,h)=>an(c.default,Object.assign({index:h,value:n[h],type:d,size:r,placeholder:o,disabled:i,readonly:l,status:a,builtinThemeOverrides:{paddingTiny:"0",paddingSmall:"0",paddingMedium:"0",paddingLarge:"0"},theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,ref:g=>this.inputRefList[h]=g},u(h)),g=>{var{index:p}=g,b=RE(g,["index"]);return[s(Sn,Object.assign({},b,{key:p}))]})))}}),Ly="n-layout-sider",Ys={type:String,default:"static"},PE=x("layout",` + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[x("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),M("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),qc={embedded:Boolean,position:Ys,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},Hy="n-layout";function jy(e){return Y({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},ge.props),qc),setup(t){const n=B(null),r=B(null),{mergedClsPrefixRef:o,inlineThemeDisabled:i}=Ee(t),a=ge("Layout","-layout",PE,Ws,t,o);function l(g,p){if(t.nativeScrollbar){const{value:b}=n;b&&(p===void 0?b.scrollTo(g):b.scrollTo(g,p))}else{const{value:b}=r;b&&b.scrollTo(g,p)}}ot(Hy,t);let d=0,c=0;const u=g=>{var p;const b=g.target;d=b.scrollLeft,c=b.scrollTop,(p=t.onScroll)===null||p===void 0||p.call(t,g)};pu(()=>{if(t.nativeScrollbar){const g=n.value;g&&(g.scrollTop=c,g.scrollLeft=d)}});const f={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},v={scrollTo:l},m=S(()=>{const{common:{cubicBezierEaseInOut:g},self:p}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?p.colorEmbedded:p.color,"--n-text-color":p.textColor}}),h=i?Xe("layout",S(()=>t.embedded?"e":""),m,t):void 0;return Object.assign({mergedClsPrefix:o,scrollableElRef:n,scrollbarInstRef:r,hasSiderStyle:f,mergedTheme:a,handleNativeElScroll:u,cssVars:i?void 0:m,themeClass:h?.themeClass,onRender:h?.onRender},v)},render(){var t;const{mergedClsPrefix:n,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const o=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return s("div",{class:i,style:this.cssVars},this.nativeScrollbar?s("div",{ref:"scrollableElRef",class:[`${n}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,o],onScroll:this.handleNativeElScroll},this.$slots):s(Zt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,o]}),this.$slots))}})}const Vy=jy(!1),Uy=jy(!0),zE=x("layout-footer",` + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; +`,[M("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + bottom: 0; + `),M("bordered",` + border-top: solid 1px var(--n-border-color); + `)]),Wy=Object.assign(Object.assign({},ge.props),{inverted:Boolean,position:Ys,bordered:Boolean}),$E=Y({name:"LayoutFooter",props:Wy,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Layout","-layout-footer",zE,Ws,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,d={"--n-bezier":a};return e.inverted?(d["--n-color"]=l.footerColorInverted,d["--n-text-color"]=l.textColorInverted,d["--n-border-color"]=l.footerBorderColorInverted):(d["--n-color"]=l.footerColor,d["--n-text-color"]=l.textColor,d["--n-border-color"]=l.footerBorderColor),d}),i=n?Xe("layout-footer",S(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-layout-footer`,this.themeClass,this.position&&`${t}-layout-footer--${this.position}-positioned`,this.bordered&&`${t}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),TE=x("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[M("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),M("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),Ky={position:Ys,inverted:Boolean,bordered:{type:Boolean,default:!1}},qy=Y({name:"LayoutHeader",props:Object.assign(Object.assign({},ge.props),Ky),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Layout","-layout-header",TE,Ws,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,d={"--n-bezier":a};return e.inverted?(d["--n-color"]=l.headerColorInverted,d["--n-text-color"]=l.textColorInverted,d["--n-border-color"]=l.headerBorderColorInverted):(d["--n-color"]=l.headerColor,d["--n-text-color"]=l.textColor,d["--n-border-color"]=l.headerBorderColor),d}),i=n?Xe("layout-header",S(()=>e.inverted?"a":"b"),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),OE=x("layout-sider",` + flex-shrink: 0; + box-sizing: border-box; + position: relative; + z-index: 1; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + min-width .3s var(--n-bezier), + max-width .3s var(--n-bezier), + transform .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-color); + display: flex; + justify-content: flex-end; +`,[M("bordered",[F("border",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 1px; + background-color: var(--n-border-color); + transition: background-color .3s var(--n-bezier); + `)]),F("left-placement",[M("bordered",[F("border",` + right: 0; + `)])]),M("right-placement",` + justify-content: flex-start; + `,[M("bordered",[F("border",` + left: 0; + `)]),M("collapsed",[x("layout-toggle-button",[x("base-icon",` + transform: rotate(180deg); + `)]),x("layout-toggle-bar",[z("&:hover",[F("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),F("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),x("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[x("base-icon",` + transform: rotate(0); + `)]),x("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[z("&:hover",[F("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),F("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),M("collapsed",[x("layout-toggle-bar",[z("&:hover",[F("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),F("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),x("layout-toggle-button",[x("base-icon",` + transform: rotate(0); + `)])]),x("layout-toggle-button",` + transition: + color .3s var(--n-bezier), + right .3s var(--n-bezier), + left .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + cursor: pointer; + width: 24px; + height: 24px; + position: absolute; + top: 50%; + right: 0; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + color: var(--n-toggle-button-icon-color); + border: var(--n-toggle-button-border); + background-color: var(--n-toggle-button-color); + box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); + transform: translateX(50%) translateY(-50%); + z-index: 1; + `,[x("base-icon",` + transition: transform .3s var(--n-bezier); + transform: rotate(180deg); + `)]),x("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[F("top, bottom",` + position: absolute; + width: 4px; + border-radius: 2px; + height: 38px; + left: 14px; + transition: + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),F("bottom",` + position: absolute; + top: 34px; + `),z("&:hover",[F("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),F("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),F("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),z("&:hover",[F("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),F("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--n-bezier); + `),x("layout-sider-scroll-container",` + flex-grow: 1; + flex-shrink: 0; + box-sizing: border-box; + height: 100%; + opacity: 0; + transition: opacity .3s var(--n-bezier); + max-width: 100%; + `),M("show-content",[x("layout-sider-scroll-container",{opacity:1})]),M("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `)]),FE=Y({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return s("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},s("div",{class:`${e}-layout-toggle-bar__top`}),s("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),ME=Y({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},s(lt,{clsPrefix:e},{default:()=>s(gi,null)}))}}),Yy={position:Ys,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},IE=Y({name:"LayoutSider",props:Object.assign(Object.assign({},ge.props),Yy),setup(e){const t=Be(Hy),n=B(null),r=B(null),o=B(e.defaultCollapsed),i=St(le(e,"collapsed"),o),a=S(()=>Pt(i.value?e.collapsedWidth:e.width)),l=S(()=>e.collapseMode!=="transform"?{}:{minWidth:Pt(e.width)}),d=S(()=>t?t.siderPlacement:"left");function c(C,P){if(e.nativeScrollbar){const{value:k}=n;k&&(P===void 0?k.scrollTo(C):k.scrollTo(C,P))}else{const{value:k}=r;k&&k.scrollTo(C,P)}}function u(){const{"onUpdate:collapsed":C,onUpdateCollapsed:P,onExpand:k,onCollapse:O}=e,{value:$}=i;P&&ie(P,!$),C&&ie(C,!$),o.value=!$,$?k&&ie(k):O&&ie(O)}let f=0,v=0;const m=C=>{var P;const k=C.target;f=k.scrollLeft,v=k.scrollTop,(P=e.onScroll)===null||P===void 0||P.call(e,C)};pu(()=>{if(e.nativeScrollbar){const C=n.value;C&&(C.scrollTop=v,C.scrollLeft=f)}}),ot(Ly,{collapsedRef:i,collapseModeRef:le(e,"collapseMode")});const{mergedClsPrefixRef:h,inlineThemeDisabled:g}=Ee(e),p=ge("Layout","-layout-sider",OE,Ws,e,h);function b(C){var P,k;C.propertyName==="max-width"&&(i.value?(P=e.onAfterLeave)===null||P===void 0||P.call(e):(k=e.onAfterEnter)===null||k===void 0||k.call(e))}const y={scrollTo:c},R=S(()=>{const{common:{cubicBezierEaseInOut:C},self:P}=p.value,{siderToggleButtonColor:k,siderToggleButtonBorder:O,siderToggleBarColor:$,siderToggleBarColorHover:T}=P,D={"--n-bezier":C,"--n-toggle-button-color":k,"--n-toggle-button-border":O,"--n-toggle-bar-color":$,"--n-toggle-bar-color-hover":T};return e.inverted?(D["--n-color"]=P.siderColorInverted,D["--n-text-color"]=P.textColorInverted,D["--n-border-color"]=P.siderBorderColorInverted,D["--n-toggle-button-icon-color"]=P.siderToggleButtonIconColorInverted,D.__invertScrollbar=P.__invertScrollbar):(D["--n-color"]=P.siderColor,D["--n-text-color"]=P.textColor,D["--n-border-color"]=P.siderBorderColor,D["--n-toggle-button-icon-color"]=P.siderToggleButtonIconColor),D}),w=g?Xe("layout-sider",S(()=>e.inverted?"a":"b"),R,e):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:r,mergedClsPrefix:h,mergedTheme:p,styleMaxWidth:a,mergedCollapsed:i,scrollContainerStyle:l,siderPlacement:d,handleNativeElScroll:m,handleTransitionend:b,handleTriggerClick:u,inlineThemeDisabled:g,cssVars:R,themeClass:w?.themeClass,onRender:w?.onRender},y)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:n,showTrigger:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,n&&`${t}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:Pt(this.width)}]},this.nativeScrollbar?s("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):s(Zt,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),r?r==="bar"?s(FE,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):s(ME,{clsPrefix:t,class:n?this.collapsedTriggerClass:this.triggerClass,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?s("div",{class:`${t}-layout-sider__border`}):null)}}),BE={extraFontSize:"12px",width:"440px"};function AE(e){const{fontWeight:t,iconColorDisabled:n,iconColor:r,fontSizeLarge:o,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:d,heightSmall:c,borderRadius:u,cardColor:f,tableHeaderColor:v,textColor1:m,textColorDisabled:h,textColor2:g,borderColor:p,hoverColor:b}=e;return Object.assign(Object.assign({},BE),{itemHeightSmall:c,itemHeightMedium:d,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:o,borderRadius:u,borderColor:p,listColor:f,headerColor:dt(f,v),titleTextColor:m,titleTextColorDisabled:h,extraTextColor:g,filterDividerColor:p,itemTextColor:g,itemTextColorDisabled:h,itemColorPending:b,titleFontWeight:t,iconColor:r,iconColorDisabled:n})}const DE={name:"Transfer",common:Je,peers:{Checkbox:na,Scrollbar:Ln,Input:tr,Empty:Ao,Button:nr},self:AE},sl="n-transfer",_E=z([z("@keyframes legacy-transfer-slide-in-from-left",` + 0% { + transform: translateX(-150%); + } + 100% { + transform: translateX(0); + } + `),z("@keyframes legacy-transfer-slide-out-to-right",` + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(150%); + } + `),z("@keyframes legacy-transfer-slide-in-from-right",` + 0% { + transform: translateX(150%); + } + 100% { + transform: translateX(0); + } + `),z("@keyframes legacy-transfer-slide-out-to-left",` + 0% { + transform: translateX(0); + } + 100% { + transform: translateX(-150%); + } + `),z("@keyframes legacy-transfer-height-collapse",` + 0% { + max-height: var(--n-item-height); + } + 100% { + max-height: 0; + } + `),z("@keyframes legacy-transfer-height-expand",` + 0% { + max-height: 0; + } + 100% { + max-height: var(--n-item-height); + } + `)]),EE=z([x("legacy-transfer",` + display: flex; + width: var(--n-width); + font-size: var(--n-font-size); + height: 240px; + display: flex; + flex-wrap: nowrap; + `,[x("legacy-transfer-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),M("disabled",[x("legacy-transfer-icon",{color:"var(--n-icon-color-disabled)"})]),x("legacy-transfer-list",` + height: inherit; + display: flex; + flex-direction: column; + background-clip: padding-box; + width: calc(50% - 36px); + position: relative; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + background-color: var(--n-list-color); + `,[F("border",` + border: 1px solid var(--n-border-color); + transition: border-color .3s var(--n-bezier); + pointer-events: none; + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),x("legacy-transfer-list-header",` + height: calc(var(--n-item-height) + 4px); + box-sizing: border-box; + display: flex; + align-items: center; + background-clip: padding-box; + border-radius: inherit; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + background-color: var(--n-header-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[F("checkbox",` + display: flex; + align-items: center; + position: relative; + padding: 0 9px 0 14px; + `),F("header",` + flex: 1; + line-height: 1; + font-weight: var(--n-header-font-weight); + transition: color .3s var(--n-bezier); + color: var(--n-header-text-color); + `,[M("disabled",{color:"var(--n-header-text-color-disabled)"})]),F("extra",` + transition: color .3s var(--n-bezier); + font-size: var(--n-extra-font-size); + justify-self: flex-end; + margin-right: 14px; + white-space: nowrap; + color: var(--n-header-extra-text-color); + `)]),x("legacy-transfer-list-body",` + flex-basis: 0; + flex-grow: 1; + box-sizing: border-box; + position: relative; + display: flex; + flex-direction: column; + border-radius: inherit; + border-top-left-radius: 0; + border-top-right-radius: 0; + `,[x("legacy-transfer-filter",` + padding: 0 8px 8px 8px; + box-sizing: border-box; + background-color: var(--n-header-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-filter-divider-color); + `),x("legacy-transfer-list-flex-container",` + flex: 1; + position: relative; + `,[x("scrollbar",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + height: unset; + `,[x("scrollbar-content",{width:"100%"})]),x("empty",` + position: absolute; + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + `,[eo()]),x("legacy-transfer-list-content",` + padding: 0; + margin: 0; + position: relative; + `,[M("transition-disabled",[x("legacy-transfer-list-item",{animation:"none !important"})]),x("legacy-transfer-list-item",` + height: var(--n-item-height); + max-height: var(--n-item-height); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + cursor: pointer; + display: flex; + align-items: center; + color: var(--n-item-text-color); + `,[ft("disabled",[z("&:hover",{backgroundColor:"var(--n-item-color-pending)"})]),F("extra",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + padding-right: 4px; + `),F("checkbox",` + display: flex; + align-items: center; + position: relative; + padding: 0 9px 0 14px; + `),M("disabled",` + cursor: not-allowed + background-color: #0000; + color: var(--n-item-text-color-disabled); + `),M("source",{animationFillMode:"forwards"},[z("&.item-enter-active",` + transform: translateX(150%); + animation-duration: .25s, .25s; + animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); + animation-delay: 0s, .25s; + animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-right; + `),z("&.item-leave-active",` + transform: translateX(-150%); + animation-duration: .25s, .25s; + animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); + animation-delay: .25s, 0s; + animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-right; + `)]),M("target",{animationFillMode:"forwards"},[z("&.item-enter-active",` + transform: translateX(-150%); + animation-duration: .25s, .25s; + animation-timing-function: var(--n-bezier), var(--n-bezier-ease-out); + animation-delay: 0s, .25s; + animation-name: legacy-transfer-height-expand, legacy-transfer-slide-in-from-left; + `),z("&.item-leave-active",` + transform: translateX(150%); + animation-duration: .25s, .25s; + animation-timing-function: var(--n-bezier), var(--n-bezier-ease-in); + animation-delay: .25s, 0s; + animation-name: legacy-transfer-height-collapse, legacy-transfer-slide-out-to-left; + `)])])])])])]),x("legacy-transfer-gap",{width:"72px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"}),x("button",[z("&:first-child",{marginBottom:"12px"})])]),_E]),cg=Y({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onFocus:{type:Function,required:!0},onBlur:{type:Function,required:!0},onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Be(sl);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return s("div",{class:`${t}-legacy-transfer-filter`},s(Sn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small",placeholder:this.placeholder,onFocus:this.onFocus,onBlur:this.onBlur},{"clear-icon-placeholder":()=>s(lt,{clsPrefix:t,class:`${t}-legacy-transfer-icon`},{default:()=>s(Zp,null)})}))}}),ug=Y({name:"TransferHeader",props:{source:{type:Boolean,default:!1},onChange:{type:Function,required:!0},title:String},setup(e){const{srcOptsRef:t,tgtOptsRef:n,srcCheckedStatusRef:r,tgtCheckedStatusRef:o,srcCheckedValuesRef:i,tgtCheckedValuesRef:a,mergedThemeRef:l,disabledRef:d,mergedClsPrefixRef:c}=Be(sl),u=S(()=>{const{source:f}=e;return f?r.value:o.value});return()=>{const{source:f}=e,{value:v}=u,{value:m}=l,{value:h}=c;return s("div",{class:`${h}-legacy-transfer-list-header`},s("div",{class:`${h}-legacy-transfer-list-header__checkbox`},s(so,{theme:m.peers.Checkbox,themeOverrides:m.peerOverrides.Checkbox,checked:v.checked,indeterminate:v.indeterminate,disabled:v.disabled||d.value,onUpdateChecked:e.onChange})),s("div",{class:`${h}-legacy-transfer-list-header__header`},e.title),s("div",{class:`${h}-legacy-transfer-list-header__extra`},f?i.value.length:a.value.length,"/",f?t.value.length:n.value.length))}}}),fg=Y({name:"NTransferListItem",props:{source:{type:Boolean,default:!1},label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},setup(e){const{source:t}=e,{mergedClsPrefixRef:n,mergedThemeRef:r,srcCheckedValuesRef:o,tgtCheckedValuesRef:i,handleSrcCheckboxClick:a,handleTgtCheckboxClick:l}=Be(sl),d=it(t?()=>o.value.includes(e.value):()=>i.value.includes(e.value));return{mergedClsPrefix:n,mergedTheme:r,checked:d,handleClick:t?()=>{e.disabled||a(!d.value,e.value)}:()=>{e.disabled||l(!d.value,e.value)}}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i}=this;return s("div",{class:[`${n}-legacy-transfer-list-item`,e&&`${n}-legacy-transfer-list-item--disabled`,i?`${n}-legacy-transfer-list-item--source`:`${n}-legacy-transfer-list-item--target`],onClick:this.handleClick},s("div",{class:`${n}-legacy-transfer-list-item__checkbox`},s(so,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),s("div",{class:`${n}-legacy-transfer-list-item__label`,title:Hi(r)},r))}}),hg=Y({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},isMounted:{type:Boolean,required:!0},isInputing:{type:Boolean,required:!0},source:{type:Boolean,default:!1}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Be(sl),n=B(null),r=B(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:d}=l;return d}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:d}=l;return d}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,mergedClsPrefix:t,virtualScroll:n,syncVLScroller:r}=this;return s(qt,null,s(Zt,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:n?this.scrollContainer:void 0,content:n?this.scrollContent:void 0},{default:()=>n?s($r,{ref:"vlInstRef",style:{height:"100%"},class:`${t}-legacy-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:r,onScroll:r,keyField:"value"},{default:({item:o})=>{const{source:i,disabled:a}=this;return s(fg,{source:i,key:o.value,value:o.value,disabled:o.disabled||a,label:o.label})}}):s("div",{class:`${t}-legacy-transfer-list-content`},s(Rs,{name:"item",appear:this.isMounted,css:!this.isInputing},{default:()=>{const{source:o,disabled:i}=this;return this.options.map(a=>s(fg,{source:o,key:a.value,value:a.value,disabled:a.disabled||i,label:a.label}))}}))}),s(_t,{name:"fade-in-transition",appear:this.isMounted,css:!this.isInputing},{default:()=>this.options.length?null:s(to,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})}))}});function NE(e,t){const n=B(e.defaultValue),r=le(e,"value"),o=St(r,n),i=S(()=>{const T=new Map;return(e.options||[]).forEach(D=>T.set(D.value,D)),T}),a=S(()=>new Set(o.value||[])),l=S(()=>e.options.filter(T=>!a.value.has(T.value))),d=S(()=>{const T=i.value;return(o.value||[]).map(D=>T.get(D))}),c=B(""),u=B(""),f=S(()=>{if(!e.filterable)return l.value;const{filter:T}=e;return l.value.filter(D=>T(c.value,D,"source"))}),v=S(()=>{if(!e.filterable)return d.value;const{filter:T}=e;return d.value.filter(D=>T(u.value,D,"target"))}),m=S(()=>new Set(f.value.filter(T=>!T.disabled).map(T=>T.value))),h=S(()=>new Set(v.value.filter(T=>!T.disabled).map(T=>T.value))),g=B([]),p=B([]),b=S(()=>{const T=g.value.filter(I=>m.value.has(I)).length,D=m.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:T===0?{checked:!1,indeterminate:!1}:T===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),y=S(()=>{const T=p.value.filter(I=>h.value.has(I)).length,D=h.value.size;return D===0?{checked:!1,indeterminate:!1,disabled:!0}:T===0?{checked:!1,indeterminate:!1}:T===D?{checked:!0,indeterminate:!1}:{checked:!1,indeterminate:!0}}),R=it(()=>t.value?!0:p.value.length===0),w=it(()=>t.value?!0:g.value.length===0),C=B(!1);function P(){C.value=!0}function k(){C.value=!1}function O(T){c.value=T??""}function $(T){u.value=T??""}return{uncontrolledValue:n,mergedValue:o,avlSrcValueSet:m,avlTgtValueSet:h,tgtOpts:d,srcOpts:l,filteredSrcOpts:f,filteredTgtOpts:v,srcCheckedValues:g,tgtCheckedValues:p,srcCheckedStatus:b,tgtCheckedStatus:y,srcPattern:c,tgtPattern:u,isInputing:C,fromButtonDisabled:R,toButtonDisabled:w,handleInputFocus:P,handleInputBlur:k,handleTgtFilterUpdateValue:$,handleSrcFilterUpdateValue:O}}const Gy=Object.assign(Object.assign({},ge.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:String,targetTitle:String,filterable:Boolean,sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~`${t.label}`.toLowerCase().indexOf(`${e}`.toLowerCase()):!0},size:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),LE=Y({name:"LegacyTransfer",props:Gy,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=ge("LegacyTransfer","-legacy-transfer",EE,DE,e,t),r=ln(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=S(()=>{const{value:ae}=o,{self:{[be("itemHeight",ae)]:W}}=n.value;return Et(W)}),{uncontrolledValue:l,mergedValue:d,avlSrcValueSet:c,avlTgtValueSet:u,tgtOpts:f,srcOpts:v,filteredSrcOpts:m,filteredTgtOpts:h,srcCheckedValues:g,tgtCheckedValues:p,srcCheckedStatus:b,tgtCheckedStatus:y,srcPattern:R,tgtPattern:w,isInputing:C,fromButtonDisabled:P,toButtonDisabled:k,handleInputFocus:O,handleInputBlur:$,handleTgtFilterUpdateValue:T,handleSrcFilterUpdateValue:D}=NE(e,i);function I(ae){const{onUpdateValue:W,"onUpdate:value":j,onChange:_}=e,{nTriggerFormInput:L,nTriggerFormChange:Z}=r;W&&ie(W,ae),j&&ie(j,ae),_&&ie(_,ae),l.value=ae,L(),Z()}function A(){const{value:{checked:ae,indeterminate:W}}=b;W||ae?g.value=[]:g.value=Array.from(c.value)}function E(){const{value:{checked:ae,indeterminate:W}}=y;W||ae?p.value=[]:p.value=Array.from(u.value)}function N(ae,W){if(ae)p.value.push(W);else{const j=p.value.findIndex(_=>_===W);~j&&p.value.splice(j,1)}}function U(ae,W){if(ae)g.value.push(W);else{const j=g.value.findIndex(_=>_===W);~j&&g.value.splice(j,1)}}function q(){I(g.value.concat(d.value||[])),g.value=[]}function J(){const ae=new Set(p.value);I((d.value||[]).filter(W=>!ae.has(W))),p.value=[]}ot(sl,{mergedClsPrefixRef:t,mergedSizeRef:o,disabledRef:i,mergedThemeRef:n,srcCheckedValuesRef:g,tgtCheckedValuesRef:p,srcOptsRef:v,tgtOptsRef:f,srcCheckedStatusRef:b,tgtCheckedStatusRef:y,handleSrcCheckboxClick:U,handleTgtCheckboxClick:N});const{localeRef:ve}=on("LegacyTransfer");return{locale:ve,mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:$n(),isInputing:C,mergedTheme:n,filteredSrcOpts:m,filteredTgtOpts:h,srcPattern:R,tgtPattern:w,toButtonDisabled:k,fromButtonDisabled:P,handleSrcHeaderCheck:A,handleTgtHeaderCheck:E,handleToSrcClick:J,handleToTgtClick:q,handleInputFocus:O,handleInputBlur:$,handleTgtFilterUpdateValue:T,handleSrcFilterUpdateValue:D,cssVars:S(()=>{const{value:ae}=o,{common:{cubicBezierEaseInOut:W,cubicBezierEaseIn:j,cubicBezierEaseOut:_},self:{width:L,borderRadius:Z,borderColor:ce,listColor:ye,headerColor:_e,titleTextColor:V,titleTextColorDisabled:ze,extraTextColor:Ae,filterDividerColor:Ne,itemTextColor:je,itemColorPending:qe,itemTextColorDisabled:gt,extraFontSize:at,titleFontWeight:Te,iconColor:Q,iconColorDisabled:ue,[be("fontSize",ae)]:G,[be("itemHeight",ae)]:fe}}=n.value;return{"--n-bezier":W,"--n-bezier-ease-in":j,"--n-bezier-ease-out":_,"--n-border-color":ce,"--n-border-radius":Z,"--n-extra-font-size":at,"--n-filter-divider-color":Ne,"--n-font-size":G,"--n-header-color":_e,"--n-header-extra-text-color":Ae,"--n-header-font-weight":Te,"--n-header-text-color":V,"--n-header-text-color-disabled":ze,"--n-item-color-pending":qe,"--n-item-height":fe,"--n-item-text-color":je,"--n-item-text-color-disabled":gt,"--n-list-color":ye,"--n-width":L,"--n-icon-color":Q,"--n-icon-color-disabled":ue}})}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:[`${e}-legacy-transfer`,this.mergedDisabled&&`${e}-legacy-transfer--disabled`,this.filterable&&`${e}-legacy-transfer--filterable`],style:this.cssVars},s("div",{class:`${e}-legacy-transfer-list`},s(ug,{source:!0,onChange:this.handleSrcHeaderCheck,title:this.sourceTitle||this.locale.sourceTitle}),s("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?s(cg,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,s("div",{class:`${e}-legacy-transfer-list-flex-container`},s(hg,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),s("div",{class:`${e}-legacy-transfer-list__border`})),s("div",{class:`${e}-legacy-transfer-gap`},s(Ot,{disabled:this.toButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToTgtClick},{icon:()=>s(lt,{clsPrefix:e},{default:()=>s(gi,null)})}),s(Ot,{disabled:this.fromButtonDisabled||this.mergedDisabled,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,onClick:this.handleToSrcClick},{icon:()=>s(lt,{clsPrefix:e},{default:()=>s(Mu,null)})})),s("div",{class:`${e}-legacy-transfer-list`},s(ug,{onChange:this.handleTgtHeaderCheck,title:this.targetTitle||this.locale.targetTitle}),s("div",{class:`${e}-legacy-transfer-list-body`},this.filterable?s(cg,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.targetFilterPlaceholder,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur}):null,s("div",{class:`${e}-legacy-transfer-list-flex-container`},s(hg,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,isMounted:this.isMounted,isInputing:this.isInputing,itemSize:this.itemSize}))),s("div",{class:`${e}-legacy-transfer-list__border`})))}}),HE=z([x("list",` + --n-merged-border-color: var(--n-border-color); + --n-merged-color: var(--n-color); + --n-merged-color-hover: var(--n-color-hover); + margin: 0; + font-size: var(--n-font-size); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + padding: 0; + list-style-type: none; + color: var(--n-text-color); + background-color: var(--n-merged-color); + `,[M("show-divider",[x("list-item",[z("&:not(:last-child)",[F("divider",` + background-color: var(--n-merged-border-color); + `)])])]),M("clickable",[x("list-item",` + cursor: pointer; + `)]),M("bordered",` + border: 1px solid var(--n-merged-border-color); + border-radius: var(--n-border-radius); + `),M("hoverable",[x("list-item",` + border-radius: var(--n-border-radius); + `,[z("&:hover",` + background-color: var(--n-merged-color-hover); + `,[F("divider",` + background-color: transparent; + `)])])]),M("bordered, hoverable",[x("list-item",` + padding: 12px 20px; + `),F("header, footer",` + padding: 12px 20px; + `)]),F("header, footer",` + padding: 12px 0; + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); + `,[z("&:not(:last-child)",` + border-bottom: 1px solid var(--n-merged-border-color); + `)]),x("list-item",` + position: relative; + padding: 12px 0; + box-sizing: border-box; + display: flex; + flex-wrap: nowrap; + align-items: center; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[F("prefix",` + margin-right: 20px; + flex: 0; + `),F("suffix",` + margin-left: 20px; + flex: 0; + `),F("main",` + flex: 1; + `),F("divider",` + height: 1px; + position: absolute; + bottom: 0; + left: 0; + right: 0; + background-color: transparent; + transition: background-color .3s var(--n-bezier); + pointer-events: none; + `)])]),jr(x("list",` + --n-merged-color-hover: var(--n-color-hover-modal); + --n-merged-color: var(--n-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `)),ro(x("list",` + --n-merged-color-hover: var(--n-color-hover-popover); + --n-merged-color: var(--n-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `))]),Xy=Object.assign(Object.assign({},ge.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),Zy="n-list",jE=Y({name:"List",props:Xy,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=Bt("List",r,t),i=ge("List","-list",HE,EA,e,t);ot(Zy,{showDividerRef:le(e,"showDivider"),mergedClsPrefixRef:t});const a=S(()=>{const{common:{cubicBezierEaseInOut:d},self:{fontSize:c,textColor:u,color:f,colorModal:v,colorPopover:m,borderColor:h,borderColorModal:g,borderColorPopover:p,borderRadius:b,colorHover:y,colorHoverModal:R,colorHoverPopover:w}}=i.value;return{"--n-font-size":c,"--n-bezier":d,"--n-text-color":u,"--n-color":f,"--n-border-radius":b,"--n-border-color":h,"--n-border-color-modal":g,"--n-border-color-popover":p,"--n-color-modal":v,"--n-color-popover":m,"--n-color-hover":y,"--n-color-hover-modal":R,"--n-color-hover-popover":w}}),l=n?Xe("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:o,cssVars:n?void 0:a,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:n,onRender:r}=this;return r?.(),s("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},t.header?s("div",{class:`${n}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?s("div",{class:`${n}-list__footer`},t.footer()):null)}}),VE=Y({name:"ListItem",slots:Object,setup(){const e=Be(Zy,null);return e||mn("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return s("li",{class:`${t}-list-item`},e.prefix?s("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?s("div",{class:`${t}-list-item__main`},e):null,e.suffix?s("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&s("div",{class:`${t}-list-item__divider`}))}}),Jy="n-log",UE=Y({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:n,languageRef:r,mergedHljsRef:o}=Be(Jy),i=B(null),a=S(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=d(r.value,a.value))}function d(c,u){const{value:f}=o;return f&&c&&f.getLanguage(c)?f.highlight(u,{language:c}).value:u}return It(()=>{n.value&&l()}),ct(le(e,"line"),()=>{n.value&&l()}),{highlight:n,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return s("pre",{ref:"selfRef"},e?null:t)}}),WE=Y({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:on("Log").localeRef}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-log-loader`},s(Tr,{clsPrefix:e,strokeWidth:24,scale:.85}),s("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),KE=x("log",` + position: relative; + box-sizing: border-box; + transition: border-color .3s var(--n-bezier); +`,[z("pre",` + white-space: pre-wrap; + word-break: break-word; + margin: 0; + `),x("log-loader",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + position: absolute; + right: 16px; + top: 8px; + height: 34px; + border-radius: 17px; + line-height: 34px; + white-space: nowrap; + overflow: hidden; + border: var(--n-loader-border); + color: var(--n-loader-text-color); + background-color: var(--n-loader-color); + font-size: var(--n-loader-font-size); + `,[Cn(),F("content",` + display: inline-block; + vertical-align: bottom; + line-height: 34px; + padding-left: 40px; + padding-right: 20px; + white-space: nowrap; + `),x("base-loading",` + color: var(--n-loading-color); + position: absolute; + left: 12px; + top: calc(50% - 10px); + font-size: 20px; + width: 20px; + height: 20px; + display: inline-block; + `)])]),qE=Vp,Qy=Object.assign(Object.assign({},ge.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),YE=Y({name:"Log",props:Qy,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=B(!1),o=S(()=>e.language!==void 0),i=S(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=S(()=>{const{log:y}=e;return y?y.split(` +`):e.lines}),l=B(null),d=ge("Log","-log",KE,LA,e,t);function c(y){const R=y.target,w=R.firstElementChild;if(r.value){zt(()=>{r.value=!1});return}const C=R.offsetHeight,P=R.scrollTop,k=w.offsetHeight,O=P,$=k-P-C;if(O<=e.offsetTop){const{onReachTop:T,onRequireMore:D}=e;D&&D("top"),T&&T()}if($<=e.offsetBottom){const{onReachBottom:T,onRequireMore:D}=e;D&&D("bottom"),T&&T()}}const u=qE(f,300);function f(y){if(r.value){zt(()=>{r.value=!1});return}if(l.value){const{containerRef:R,contentRef:w}=l.value;if(R&&w){const C=R.offsetHeight,P=R.scrollTop,k=w.offsetHeight,O=P,$=k-P-C,T=y.deltaY;if(O===0&&T<0){const{onRequireMore:D}=e;D&&D("top")}if($<=0&&T>0){const{onRequireMore:D}=e;D&&D("bottom")}}}}function v(y){const{value:R}=l;if(!R)return;const{silent:w,top:C,position:P}=y;w&&(r.value=!0),C!==void 0?R.scrollTo({left:0,top:C}):(P==="bottom"||P==="top")&&R.scrollTo({position:P})}function m(y=!1){Mn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),v({position:"top",silent:y})}function h(y=!1){Mn("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),v({position:"bottom",silent:y})}ot(Jy,{languageRef:le(e,"language"),mergedHljsRef:Gm(e),trimRef:le(e,"trim"),highlightRef:o});const g={scrollTo:v},p=S(()=>{const{self:{loaderFontSize:y,loaderTextColor:R,loaderColor:w,loaderBorder:C,loadingColor:P},common:{cubicBezierEaseInOut:k}}=d.value;return{"--n-bezier":k,"--n-loader-font-size":y,"--n-loader-border":C,"--n-loader-color":w,"--n-loader-text-color":R,"--n-loading-color":P}}),b=n?Xe("log",void 0,p,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:d,styleHeight:i,mergedLines:a,scrollToTop:m,scrollToBottom:h,handleWheel:u,handleScroll:c,cssVars:n?void 0:p,themeClass:b?.themeClass,onRender:b?.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:n}=this;return n?.(),s("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[s(Zt,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>s(C0,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,o)=>s(UE,{key:o,line:r}))})}),s(_t,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?s(WE,{clsPrefix:e}):null})])}});function GE(){return{}}const XE={common:Je,self:GE},ZE=Object.assign(Object.assign({},ge.props),{autoFill:Boolean,speed:{type:Number,default:48}}),JE=z([x("marquee",` + overflow: hidden; + display: flex; + `,[F("group",` + flex: 0 0 auto; + min-width: var(--n-min-width); + z-index: 1; + display: flex; + flex-direction: row; + align-items: center; + animation: n-marquee var(--n-duration) linear var(--n-delay) var(--n-iteration-count); + animation-play-state: var(--n-play); + animation-delay: var(--n-delay); + animation-direction: var(--n-direction); + `),ft("auto-fill",[F("group","min-width: 100%;"),F("item","min-width: 100%;")])]),z("@keyframes n-marquee",{from:{transform:"translateX(0)"},to:{transform:"translateX(-100%)"}})]),QE=Y({name:"Marquee",props:ZE,setup(e){const{mergedClsPrefixRef:t}=Ee(e);ge("Marquee","-marquee",JE,XE,e,t);const n=B(null),r=B(-1),o=B(-1),i=B("running"),a=S(()=>{if(!e.autoFill)return 1;const{value:m}=r,{value:h}=o;return m===-1||h===-1?1:Math.ceil(o.value/m)}),l=S(()=>{const{value:m}=r;return m===-1?0:m*a.value/e.speed}),d=S(()=>({"--n-play":i.value,"--n-direction":"normal","--n-duration":`${l.value}s`,"--n-delay":"0s","--n-iteration-count":"infinite","--n-min-width":"auto"}));function c(){i.value="paused",zt().then(()=>{var m;(m=n.value)===null||m===void 0||m.offsetTop,i.value="running"})}function u(m){o.value=m.contentRect.width}function f(m){r.value=m.contentRect.width}function v(){c()}return{mergedClsPrefix:t,animationCssVars:d,containerElRef:n,repeatCountInOneGroup:a,handleContainerResize:u,handleContentResize:f,handleAnimationIteration:v}},render(){const{$slots:e,mergedClsPrefix:t,animationCssVars:n,repeatCountInOneGroup:r,handleAnimationIteration:o}=this,i=s(Nn,{onResize:this.handleContentResize},s("div",{class:`${t}-marquee__item ${t}-marquee__original-item`},e)),a=s("div",{class:`${t}-marquee__item`},e);return this.autoFill?s(Nn,{onResize:this.handleContainerResize},{default:()=>s("div",{class:`${t}-marquee ${t}-marquee--auto-fill`,ref:"containerElRef",style:n},s("div",{class:`${t}-marquee__group`,onAnimationiteration:o},i,wo(r-1,a)),s("div",{class:`${t}-marquee__group`},wo(r,a)))}):s("div",{class:[`${t}-marquee`],ref:"containerElRef",style:n},s("div",{class:`${t}-marquee__group`,onAnimationiteration:o},i),s("div",{class:`${t}-marquee__group`},a))}}),e8=z([x("mention","width: 100%; z-index: auto; position: relative;"),x("mention-menu",` + box-shadow: var(--n-menu-box-shadow); + `,[Cn({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);function t8(e,t={debug:!1,useSelectionEnd:!1,checkWidthOverflow:!0}){const n=e.selectionStart!==null?e.selectionStart:0,r=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?r:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"],a=navigator.userAgent.toLowerCase().includes("firefox");if(!Wn)throw new Error("textarea-caret-position#getCaretPosition should only be called in a browser");const l=t?.debug;if(l){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h?.parentNode&&h.parentNode.removeChild(h)}const d=document.createElement("div");d.id="input-textarea-caret-position-mirror-div",document.body.appendChild(d);const c=d.style,u=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,f=e.nodeName==="INPUT";c.whiteSpace=f?"nowrap":"pre-wrap",f||(c.wordWrap="break-word"),c.position="absolute",l||(c.visibility="hidden"),i.forEach(h=>{if(f&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),b=p+Number.parseInt(u.lineHeight);g>b?c.lineHeight=`${g-p}px`:g===b?c.lineHeight=u.lineHeight:c.lineHeight="0"}else c.lineHeight=u.height;else c[h]=u[h]}),a?e.scrollHeight>Number.parseInt(u.height)&&(c.overflowY="scroll"):c.overflow="hidden",d.textContent=e.value.substring(0,o),f&&d.textContent&&(d.textContent=d.textContent.replace(/\s/g," "));const v=document.createElement("span");v.textContent=e.value.substring(o)||".",v.style.position="relative",v.style.left=`${-e.scrollLeft}px`,v.style.top=`${-e.scrollTop}px`,d.appendChild(v);const m={top:v.offsetTop+Number.parseInt(u.borderTopWidth),left:v.offsetLeft+Number.parseInt(u.borderLeftWidth),absolute:!1,height:Number.parseInt(u.fontSize)*1.5};return l?v.style.backgroundColor="#aaa":document.body.removeChild(d),m.left>=e.clientWidth&&t.checkWidthOverflow&&(m.left=e.clientWidth),m}const e1=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,autosize:[Boolean,Object],options:{type:Array,default:[]},filter:{type:Function,default:(e,t)=>e?typeof t.label=="string"?t.label.startsWith(e):typeof t.value=="string"?t.value.startsWith(e):!1:!0},type:{type:String,default:"text"},separator:{type:String,validator:e=>e.length!==1?(Mn("mention","`separator`'s length must be 1."),!1):!0,default:" "},bordered:{type:Boolean,default:void 0},disabled:Boolean,value:String,defaultValue:{type:String,default:""},loading:Boolean,prefix:{type:[String,Array],default:"@"},placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start"},size:String,renderLabel:Function,status:String,"onUpdate:show":[Array,Function],onUpdateShow:[Array,Function],"onUpdate:value":[Array,Function],onUpdateValue:[Array,Function],onSearch:Function,onSelect:Function,onFocus:Function,onBlur:Function,internalDebug:Boolean}),n8=Y({name:"Mention",props:e1,slots:Object,setup(e){const{namespaceRef:t,mergedClsPrefixRef:n,mergedBorderedRef:r,inlineThemeDisabled:o}=Ee(e),i=ge("Mention","-mention",e8,jA,e,n),a=ln(e),l=B(null),d=B(null),c=B(null),u=B(null),f=B("");let v=null,m=null,h=null;const g=S(()=>{const{value:_}=f;return e.options.filter(L=>e.filter(_,L))}),p=S(()=>Gn(g.value,{getKey:_=>_.value})),b=B(null),y=B(!1),R=B(e.defaultValue),w=le(e,"value"),C=St(w,R),P=S(()=>{const{self:{menuBoxShadow:_}}=i.value;return{"--n-menu-box-shadow":_}}),k=o?Xe("mention",void 0,P,e):void 0;function O(_){if(e.disabled)return;const{onUpdateShow:L,"onUpdate:show":Z}=e;L&&ie(L,_),Z&&ie(Z,_),_||(v=null,m=null,h=null),y.value=_}function $(_){const{onUpdateValue:L,"onUpdate:value":Z}=e,{nTriggerFormChange:ce,nTriggerFormInput:ye}=a;Z&&ie(Z,_),L&&ie(L,_),ye(),ce(),R.value=_}function T(){return e.type==="text"?l.value.inputElRef:l.value.textareaElRef}function D(){var _;const L=T();if(document.activeElement!==L){O(!1);return}const{selectionEnd:Z}=L;if(Z===null){O(!1);return}const ce=L.value,{separator:ye}=e,{prefix:_e}=e,V=typeof _e=="string"?[_e]:_e;for(let ze=Z-1;ze>=0;--ze){const Ae=ce[ze];if(Ae===ye||Ae===` +`||Ae==="\r"){O(!1);return}if(V.includes(Ae)){const Ne=ce.slice(ze+1,Z);O(!0),(_=e.onSearch)===null||_===void 0||_.call(e,Ne,Ae),f.value=Ne,v=Ae,m=ze+1,h=Z;return}}O(!1)}function I(){const{value:_}=d;if(!_)return;const L=T(),Z=t8(L),ce=L.getBoundingClientRect(),ye=u.value.getBoundingClientRect();_.style.left=`${Z.left+ce.left-ye.left}px`,_.style.top=`${Z.top+ce.top-ye.top}px`,_.style.height=`${Z.height}px`}function A(){var _;y.value&&((_=c.value)===null||_===void 0||_.syncPosition())}function E(_){$(_),N()}function N(){setTimeout(()=>{I(),D(),zt().then(A)},0)}function U(_){var L,Z;if(_.key==="ArrowLeft"||_.key==="ArrowRight"){if(!((L=l.value)===null||L===void 0)&&L.isCompositing)return;N()}else if(_.key==="ArrowUp"||_.key==="ArrowDown"||_.key==="Enter"){if(!((Z=l.value)===null||Z===void 0)&&Z.isCompositing)return;const{value:ce}=b;if(y.value){if(ce)if(_.preventDefault(),_.key==="ArrowUp")ce.prev();else if(_.key==="ArrowDown")ce.next();else{const ye=ce.getPendingTmNode();ye?W(ye):O(!1)}}else N()}}function q(_){const{onFocus:L}=e;L?.(_);const{nTriggerFormFocus:Z}=a;Z(),N()}function J(){var _;(_=l.value)===null||_===void 0||_.focus()}function ve(){var _;(_=l.value)===null||_===void 0||_.blur()}function ae(_){const{onBlur:L}=e;L?.(_);const{nTriggerFormBlur:Z}=a;Z(),O(!1)}function W(_){var L;if(v===null||m===null||h===null)return;const{rawNode:{value:Z=""}}=_,ce=T(),ye=ce.value,{separator:_e}=e,V=ye.slice(h),ze=V.startsWith(_e),Ae=`${Z}${ze?"":_e}`;$(ye.slice(0,m)+Ae+V),(L=e.onSelect)===null||L===void 0||L.call(e,_.rawNode,v);const Ne=m+Ae.length+(ze?1:0);zt().then(()=>{ce.selectionStart=Ne,ce.selectionEnd=Ne,D()})}function j(){e.disabled||N()}return{namespace:t,mergedClsPrefix:n,mergedBordered:r,mergedSize:a.mergedSizeRef,mergedStatus:a.mergedStatusRef,mergedTheme:i,treeMate:p,selectMenuInstRef:b,inputInstRef:l,cursorRef:d,followerRef:c,wrapperElRef:u,showMenu:y,adjustedTo:Ht(e),isMounted:$n(),mergedValue:C,handleInputFocus:q,handleInputBlur:ae,handleInputUpdateValue:E,handleInputKeyDown:U,handleSelect:W,handleInputMouseDown:j,focus:J,blur:ve,cssVars:o?void 0:P,themeClass:k?.themeClass,onRender:k?.onRender}},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return s("div",{class:`${t}-mention`,ref:"wrapperElRef"},s(Sn,{status:this.mergedStatus,themeOverrides:e.peerOverrides.Input,theme:e.peers.Input,size:this.mergedSize,autosize:this.autosize,type:this.type,ref:"inputInstRef",placeholder:this.placeholder,onMousedown:this.handleInputMouseDown,onUpdateValue:this.handleInputUpdateValue,onKeydown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,bordered:this.mergedBordered,disabled:this.disabled,value:this.mergedValue}),s(yr,null,{default:()=>[s(wr,null,{default:()=>s("div",{style:{position:"absolute",width:0},ref:"cursorRef"})}),s(sr,{ref:"followerRef",placement:this.placement,show:this.showMenu,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{const{mergedTheme:r,onRender:o}=this;return o?.(),this.showMenu?s(tl,{clsPrefix:t,theme:r.peers.InternalSelectMenu,themeOverrides:r.peerOverrides.InternalSelectMenu,autoPending:!0,ref:"selectMenuInstRef",class:[`${t}-mention-menu`,this.themeClass],loading:this.loading,treeMate:this.treeMate,virtualScroll:!1,style:this.cssVars,onToggle:this.handleSelect,renderLabel:this.renderLabel},n):null}})})]}))}}),dl="n-menu",t1="n-submenu",wf="n-menu-item-group",vg=[z("&::before","background-color: var(--n-item-color-hover);"),F("arrow",` + color: var(--n-arrow-color-hover); + `),F("icon",` + color: var(--n-item-icon-color-hover); + `),x("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[z("a",` + color: var(--n-item-text-color-hover); + `),F("extra",` + color: var(--n-item-text-color-hover); + `)])],gg=[F("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),x("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[z("a",` + color: var(--n-item-text-color-hover-horizontal); + `),F("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],r8=z([x("menu",` + background-color: var(--n-color); + color: var(--n-item-text-color); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + box-sizing: border-box; + font-size: var(--n-font-size); + padding-bottom: 6px; + `,[M("horizontal",` + max-width: 100%; + width: 100%; + display: flex; + overflow: hidden; + padding-bottom: 0; + `,[x("submenu","margin: 0;"),x("menu-item","margin: 0;"),x("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[z("&::before","display: none;"),M("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),x("menu-item-content",[M("selected",[F("icon","color: var(--n-item-icon-color-active-horizontal);"),x("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[z("a","color: var(--n-item-text-color-active-horizontal);"),F("extra","color: var(--n-item-text-color-active-horizontal);")])]),M("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[x("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[z("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),F("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),F("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),ft("disabled",[ft("selected, child-active",[z("&:focus-within",gg)]),M("selected",[Ho(null,[F("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),x("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[z("a","color: var(--n-item-text-color-active-hover-horizontal);"),F("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),M("child-active",[Ho(null,[F("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),x("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[z("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),F("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),Ho("border-bottom: 2px solid var(--n-border-color-horizontal);",gg)]),x("menu-item-content-header",[z("a","color: var(--n-item-text-color-horizontal);")])])]),ft("responsive",[x("menu-item-content-header",` + overflow: hidden; + text-overflow: ellipsis; + `)]),M("collapsed",[x("menu-item-content",[M("selected",[z("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),x("menu-item-content-header","opacity: 0;"),F("arrow","opacity: 0;"),F("icon","color: var(--n-item-icon-color-collapsed);")])]),x("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),x("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + padding-right: 18px; + transition: + background-color .3s var(--n-bezier), + padding-left .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[z("> *","z-index: 1;"),z("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),M("disabled",` + opacity: .45; + cursor: not-allowed; + `),M("collapsed",[F("arrow","transform: rotate(0);")]),M("selected",[z("&::before","background-color: var(--n-item-color-active);"),F("arrow","color: var(--n-arrow-color-active);"),F("icon","color: var(--n-item-icon-color-active);"),x("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[z("a","color: var(--n-item-text-color-active);"),F("extra","color: var(--n-item-text-color-active);")])]),M("child-active",[x("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[z("a",` + color: var(--n-item-text-color-child-active); + `),F("extra",` + color: var(--n-item-text-color-child-active); + `)]),F("arrow",` + color: var(--n-arrow-color-child-active); + `),F("icon",` + color: var(--n-item-icon-color-child-active); + `)]),ft("disabled",[ft("selected, child-active",[z("&:focus-within",vg)]),M("selected",[Ho(null,[F("arrow","color: var(--n-arrow-color-active-hover);"),F("icon","color: var(--n-item-icon-color-active-hover);"),x("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[z("a","color: var(--n-item-text-color-active-hover);"),F("extra","color: var(--n-item-text-color-active-hover);")])])]),M("child-active",[Ho(null,[F("arrow","color: var(--n-arrow-color-child-active-hover);"),F("icon","color: var(--n-item-icon-color-child-active-hover);"),x("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[z("a","color: var(--n-item-text-color-child-active-hover);"),F("extra","color: var(--n-item-text-color-child-active-hover);")])])]),M("selected",[Ho(null,[z("&::before","background-color: var(--n-item-color-active-hover);")])]),Ho(null,vg)]),F("icon",` + grid-area: icon; + color: var(--n-item-icon-color); + transition: + color .3s var(--n-bezier), + font-size .3s var(--n-bezier), + margin-right .3s var(--n-bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),F("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--n-arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--n-bezier), + transform 0.2s var(--n-bezier), + opacity 0.2s var(--n-bezier); + `),x("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + opacity: 1; + white-space: nowrap; + color: var(--n-item-text-color); + `,[z("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[z("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),F("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),x("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[x("menu-item-content",` + height: var(--n-item-height); + `),x("submenu-children",` + overflow: hidden; + padding: 0; + `,[no({duration:".2s"})])]),x("menu-item-group",[x("menu-item-group-title",` + margin-top: 6px; + color: var(--n-group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--n-bezier), + color .3s var(--n-bezier); + `)])]),x("menu-tooltip",[z("a",` + color: inherit; + text-decoration: none; + `)]),x("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function Ho(e,t){return[M("hover",e,t),z("&:hover",e,t)]}const n1=Y({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=Be(dl);return{menuProps:t,style:S(()=>{const{paddingLeft:n}=e;return{paddingLeft:n&&`${n}px`}}),iconStyle:S(()=>{const{maxIconSize:n,activeIconSize:r,iconMarginRight:o}=e;return{width:`${n}px`,height:`${n}px`,fontSize:`${r}px`,marginRight:`${o}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:n,renderLabel:r,renderExtra:o,expandIcon:i}}=this,a=n?n(t.rawNode):Wt(this.icon);return s("div",{onClick:l=>{var d;(d=this.onClick)===null||d===void 0||d.call(this,l)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},a&&s("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[a]),s("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:r?r(t.rawNode):Wt(this.title),this.extra||o?s("span",{class:`${e}-menu-item-content-header__extra`}," ",o?o(t.rawNode):Wt(this.extra)):null),this.showArrow?s(lt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):s(M3,null)}):null)}}),Vl=8;function Cf(e){const t=Be(dl),{props:n,mergedCollapsedRef:r}=t,o=Be(t1,null),i=Be(wf,null),a=S(()=>n.mode==="horizontal"),l=S(()=>a.value?n.dropdownPlacement:"tmNodes"in e?"right-start":"right"),d=S(()=>{var v;return Math.max((v=n.collapsedIconSize)!==null&&v!==void 0?v:n.iconSize,n.iconSize)}),c=S(()=>{var v;return!a.value&&e.root&&r.value&&(v=n.collapsedIconSize)!==null&&v!==void 0?v:n.iconSize}),u=S(()=>{if(a.value)return;const{collapsedWidth:v,indent:m,rootIndent:h}=n,{root:g,isGroup:p}=e,b=h===void 0?m:h;return g?r.value?v/2-d.value/2:b:i&&typeof i.paddingLeftRef.value=="number"?m/2+i.paddingLeftRef.value:o&&typeof o.paddingLeftRef.value=="number"?(p?m/2:m)+o.paddingLeftRef.value:0}),f=S(()=>{const{collapsedWidth:v,indent:m,rootIndent:h}=n,{value:g}=d,{root:p}=e;return a.value||!p||!r.value?Vl:(h===void 0?m:h)+g+Vl-(v+g)/2});return{dropdownPlacement:l,activeIconSize:c,maxIconSize:d,paddingLeft:u,iconMarginRight:f,NMenu:t,NSubmenu:o,NMenuOptionGroup:i}}const Sf={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},o8=Y({name:"MenuDivider",setup(){const e=Be(dl),{mergedClsPrefixRef:t,isHorizontalRef:n}=e;return()=>n.value?null:s("div",{class:`${t.value}-menu-divider`})}}),r1=Object.assign(Object.assign({},Sf),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),i8=In(r1),a8=Y({name:"MenuOption",props:r1,setup(e){const t=Cf(e),{NSubmenu:n,NMenu:r,NMenuOptionGroup:o}=t,{props:i,mergedClsPrefixRef:a,mergedCollapsedRef:l}=r,d=n?n.mergedDisabledRef:o?o.mergedDisabledRef:{value:!1},c=S(()=>d.value||e.disabled);function u(v){const{onClick:m}=e;m&&m(v)}function f(v){c.value||(r.doSelect(e.internalKey,e.tmNode.rawNode),u(v))}return{mergedClsPrefix:a,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:r.mergedThemeRef,menuProps:i,dropdownEnabled:it(()=>e.root&&l.value&&i.mode!=="horizontal"&&!c.value),selected:it(()=>r.mergedValueRef.value===e.internalKey),mergedDisabled:c,handleClick:f}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:n,menuProps:{renderLabel:r,nodeProps:o}}=this,i=o?.(n.rawNode);return s("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i?.class]}),s(ol,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>r?r(n.rawNode):Wt(this.title),trigger:()=>s(n1,{tmNode:n,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),o1=Object.assign(Object.assign({},Sf),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),l8=In(o1),s8=Y({name:"MenuOptionGroup",props:o1,setup(e){const t=Cf(e),{NSubmenu:n}=t,r=S(()=>n?.mergedDisabledRef.value?!0:e.tmNode.disabled);ot(wf,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:r});const{mergedClsPrefixRef:o,props:i}=Be(dl);return function(){const{value:a}=o,l=t.paddingLeft.value,{nodeProps:d}=i,c=d?.(e.tmNode.rawNode);return s("div",{class:`${a}-menu-item-group`,role:"group"},s("div",Object.assign({},c,{class:[`${a}-menu-item-group-title`,c?.class],style:[c?.style||"",l!==void 0?`padding-left: ${l}px;`:""]}),Wt(e.title),e.extra?s(qt,null," ",Wt(e.extra)):null),s("div",null,e.tmNodes.map(u=>Rf(u,i))))}}});function Yc(e){return e.type==="divider"||e.type==="render"}function d8(e){return e.type==="divider"}function Rf(e,t){const{rawNode:n}=e,{show:r}=n;if(r===!1)return null;if(Yc(n))return d8(n)?s(o8,Object.assign({key:e.key},n.props)):null;const{labelField:o}=t,{key:i,level:a,isGroup:l}=e,d=Object.assign(Object.assign({},n),{title:n.title||n[o],extra:n.titleExtra||n.extra,key:i,internalKey:i,level:a,root:a===0,isGroup:l});return e.children?e.isGroup?s(s8,vn(d,l8,{tmNode:e,tmNodes:e.children,key:i})):s(Gc,vn(d,c8,{key:i,rawNodes:n[t.childrenField],tmNodes:e.children,tmNode:e})):s(a8,vn(d,i8,{key:i,tmNode:e}))}const i1=Object.assign(Object.assign({},Sf),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),c8=In(i1),Gc=Y({name:"Submenu",props:i1,setup(e){const t=Cf(e),{NMenu:n,NSubmenu:r}=t,{props:o,mergedCollapsedRef:i,mergedThemeRef:a}=n,l=S(()=>{const{disabled:v}=e;return r?.mergedDisabledRef.value||o.disabled?!0:v}),d=B(!1);ot(t1,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:l}),ot(wf,null);function c(){const{onClick:v}=e;v&&v()}function u(){l.value||(i.value||n.toggleExpand(e.internalKey),c())}function f(v){d.value=v}return{menuProps:o,mergedTheme:a,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:d,paddingLeft:t.paddingLeft,mergedDisabled:l,mergedValue:n.mergedValueRef,childActive:it(()=>{var v;return(v=e.virtualChildActive)!==null&&v!==void 0?v:n.activePathRef.value.includes(e.internalKey)}),collapsed:S(()=>o.mode==="horizontal"?!1:i.value?!0:!n.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:S(()=>!l.value&&(o.mode==="horizontal"||i.value)),handlePopoverShowChange:f,handleClick:u}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:n,renderLabel:r}}=this,o=()=>{const{isHorizontal:a,paddingLeft:l,collapsed:d,mergedDisabled:c,maxIconSize:u,activeIconSize:f,title:v,childActive:m,icon:h,handleClick:g,menuProps:{nodeProps:p},dropdownShow:b,iconMarginRight:y,tmNode:R,mergedClsPrefix:w,isEllipsisPlaceholder:C,extra:P}=this,k=p?.(R.rawNode);return s("div",Object.assign({},k,{class:[`${w}-menu-item`,k?.class],role:"menuitem"}),s(n1,{tmNode:R,paddingLeft:l,collapsed:d,disabled:c,iconMarginRight:y,maxIconSize:u,activeIconSize:f,title:v,extra:P,showArrow:!a,childActive:m,clsPrefix:w,icon:h,hover:b,onClick:g,isEllipsisPlaceholder:C}))},i=()=>s(Kr,null,{default:()=>{const{tmNodes:a,collapsed:l}=this;return l?null:s("div",{class:`${t}-submenu-children`,role:"menu"},a.map(d=>Rf(d,this.menuProps)))}});return this.root?s(tf,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:n,renderLabel:r}),{default:()=>s("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},o(),this.isHorizontal?null:i())}):s("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},o(),i())}}),a1=Object.assign(Object.assign({},ge.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),l1=Y({name:"Menu",inheritAttrs:!1,props:a1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Menu","-menu",r8,WA,e,t),o=Be(Ly,null),i=S(()=>{var W;const{collapsed:j}=e;if(j!==void 0)return j;if(o){const{collapseModeRef:_,collapsedRef:L}=o;if(_.value==="width")return(W=L.value)!==null&&W!==void 0?W:!1}return!1}),a=S(()=>{const{keyField:W,childrenField:j,disabledField:_}=e;return Gn(e.items||e.options,{getIgnored(L){return Yc(L)},getChildren(L){return L[j]},getDisabled(L){return L[_]},getKey(L){var Z;return(Z=L[W])!==null&&Z!==void 0?Z:L.name}})}),l=S(()=>new Set(a.value.treeNodes.map(W=>W.key))),{watchProps:d}=e,c=B(null);d?.includes("defaultValue")?Ft(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const u=le(e,"value"),f=St(u,c),v=B([]),m=()=>{v.value=e.defaultExpandAll?a.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||a.value.getPath(f.value,{includeSelf:!1}).keyPath};d?.includes("defaultExpandedKeys")?Ft(m):m();const h=Co(e,["expandedNames","expandedKeys"]),g=St(h,v),p=S(()=>a.value.treeNodes),b=S(()=>a.value.getPath(f.value).keyPath);ot(dl,{props:e,mergedCollapsedRef:i,mergedThemeRef:r,mergedValueRef:f,mergedExpandedKeysRef:g,activePathRef:b,mergedClsPrefixRef:t,isHorizontalRef:S(()=>e.mode==="horizontal"),invertedRef:le(e,"inverted"),doSelect:y,toggleExpand:w});function y(W,j){const{"onUpdate:value":_,onUpdateValue:L,onSelect:Z}=e;L&&ie(L,W,j),_&&ie(_,W,j),Z&&ie(Z,W,j),c.value=W}function R(W){const{"onUpdate:expandedKeys":j,onUpdateExpandedKeys:_,onExpandedNamesChange:L,onOpenNamesChange:Z}=e;j&&ie(j,W),_&&ie(_,W),L&&ie(L,W),Z&&ie(Z,W),v.value=W}function w(W){const j=Array.from(g.value),_=j.findIndex(L=>L===W);if(~_)j.splice(_,1);else{if(e.accordion&&l.value.has(W)){const L=j.findIndex(Z=>l.value.has(Z));L>-1&&j.splice(L,1)}j.push(W)}R(j)}const C=W=>{const j=a.value.getPath(W??f.value,{includeSelf:!1}).keyPath;if(!j.length)return;const _=Array.from(g.value),L=new Set([..._,...j]);e.accordion&&l.value.forEach(Z=>{L.has(Z)&&!j.includes(Z)&&L.delete(Z)}),R(Array.from(L))},P=S(()=>{const{inverted:W}=e,{common:{cubicBezierEaseInOut:j},self:_}=r.value,{borderRadius:L,borderColorHorizontal:Z,fontSize:ce,itemHeight:ye,dividerColor:_e}=_,V={"--n-divider-color":_e,"--n-bezier":j,"--n-font-size":ce,"--n-border-color-horizontal":Z,"--n-border-radius":L,"--n-item-height":ye};return W?(V["--n-group-text-color"]=_.groupTextColorInverted,V["--n-color"]=_.colorInverted,V["--n-item-text-color"]=_.itemTextColorInverted,V["--n-item-text-color-hover"]=_.itemTextColorHoverInverted,V["--n-item-text-color-active"]=_.itemTextColorActiveInverted,V["--n-item-text-color-child-active"]=_.itemTextColorChildActiveInverted,V["--n-item-text-color-child-active-hover"]=_.itemTextColorChildActiveInverted,V["--n-item-text-color-active-hover"]=_.itemTextColorActiveHoverInverted,V["--n-item-icon-color"]=_.itemIconColorInverted,V["--n-item-icon-color-hover"]=_.itemIconColorHoverInverted,V["--n-item-icon-color-active"]=_.itemIconColorActiveInverted,V["--n-item-icon-color-active-hover"]=_.itemIconColorActiveHoverInverted,V["--n-item-icon-color-child-active"]=_.itemIconColorChildActiveInverted,V["--n-item-icon-color-child-active-hover"]=_.itemIconColorChildActiveHoverInverted,V["--n-item-icon-color-collapsed"]=_.itemIconColorCollapsedInverted,V["--n-item-text-color-horizontal"]=_.itemTextColorHorizontalInverted,V["--n-item-text-color-hover-horizontal"]=_.itemTextColorHoverHorizontalInverted,V["--n-item-text-color-active-horizontal"]=_.itemTextColorActiveHorizontalInverted,V["--n-item-text-color-child-active-horizontal"]=_.itemTextColorChildActiveHorizontalInverted,V["--n-item-text-color-child-active-hover-horizontal"]=_.itemTextColorChildActiveHoverHorizontalInverted,V["--n-item-text-color-active-hover-horizontal"]=_.itemTextColorActiveHoverHorizontalInverted,V["--n-item-icon-color-horizontal"]=_.itemIconColorHorizontalInverted,V["--n-item-icon-color-hover-horizontal"]=_.itemIconColorHoverHorizontalInverted,V["--n-item-icon-color-active-horizontal"]=_.itemIconColorActiveHorizontalInverted,V["--n-item-icon-color-active-hover-horizontal"]=_.itemIconColorActiveHoverHorizontalInverted,V["--n-item-icon-color-child-active-horizontal"]=_.itemIconColorChildActiveHorizontalInverted,V["--n-item-icon-color-child-active-hover-horizontal"]=_.itemIconColorChildActiveHoverHorizontalInverted,V["--n-arrow-color"]=_.arrowColorInverted,V["--n-arrow-color-hover"]=_.arrowColorHoverInverted,V["--n-arrow-color-active"]=_.arrowColorActiveInverted,V["--n-arrow-color-active-hover"]=_.arrowColorActiveHoverInverted,V["--n-arrow-color-child-active"]=_.arrowColorChildActiveInverted,V["--n-arrow-color-child-active-hover"]=_.arrowColorChildActiveHoverInverted,V["--n-item-color-hover"]=_.itemColorHoverInverted,V["--n-item-color-active"]=_.itemColorActiveInverted,V["--n-item-color-active-hover"]=_.itemColorActiveHoverInverted,V["--n-item-color-active-collapsed"]=_.itemColorActiveCollapsedInverted):(V["--n-group-text-color"]=_.groupTextColor,V["--n-color"]=_.color,V["--n-item-text-color"]=_.itemTextColor,V["--n-item-text-color-hover"]=_.itemTextColorHover,V["--n-item-text-color-active"]=_.itemTextColorActive,V["--n-item-text-color-child-active"]=_.itemTextColorChildActive,V["--n-item-text-color-child-active-hover"]=_.itemTextColorChildActiveHover,V["--n-item-text-color-active-hover"]=_.itemTextColorActiveHover,V["--n-item-icon-color"]=_.itemIconColor,V["--n-item-icon-color-hover"]=_.itemIconColorHover,V["--n-item-icon-color-active"]=_.itemIconColorActive,V["--n-item-icon-color-active-hover"]=_.itemIconColorActiveHover,V["--n-item-icon-color-child-active"]=_.itemIconColorChildActive,V["--n-item-icon-color-child-active-hover"]=_.itemIconColorChildActiveHover,V["--n-item-icon-color-collapsed"]=_.itemIconColorCollapsed,V["--n-item-text-color-horizontal"]=_.itemTextColorHorizontal,V["--n-item-text-color-hover-horizontal"]=_.itemTextColorHoverHorizontal,V["--n-item-text-color-active-horizontal"]=_.itemTextColorActiveHorizontal,V["--n-item-text-color-child-active-horizontal"]=_.itemTextColorChildActiveHorizontal,V["--n-item-text-color-child-active-hover-horizontal"]=_.itemTextColorChildActiveHoverHorizontal,V["--n-item-text-color-active-hover-horizontal"]=_.itemTextColorActiveHoverHorizontal,V["--n-item-icon-color-horizontal"]=_.itemIconColorHorizontal,V["--n-item-icon-color-hover-horizontal"]=_.itemIconColorHoverHorizontal,V["--n-item-icon-color-active-horizontal"]=_.itemIconColorActiveHorizontal,V["--n-item-icon-color-active-hover-horizontal"]=_.itemIconColorActiveHoverHorizontal,V["--n-item-icon-color-child-active-horizontal"]=_.itemIconColorChildActiveHorizontal,V["--n-item-icon-color-child-active-hover-horizontal"]=_.itemIconColorChildActiveHoverHorizontal,V["--n-arrow-color"]=_.arrowColor,V["--n-arrow-color-hover"]=_.arrowColorHover,V["--n-arrow-color-active"]=_.arrowColorActive,V["--n-arrow-color-active-hover"]=_.arrowColorActiveHover,V["--n-arrow-color-child-active"]=_.arrowColorChildActive,V["--n-arrow-color-child-active-hover"]=_.arrowColorChildActiveHover,V["--n-item-color-hover"]=_.itemColorHover,V["--n-item-color-active"]=_.itemColorActive,V["--n-item-color-active-hover"]=_.itemColorActiveHover,V["--n-item-color-active-collapsed"]=_.itemColorActiveCollapsed),V}),k=n?Xe("menu",S(()=>e.inverted?"a":"b"),P,e):void 0,O=Vn(),$=B(null),T=B(null);let D=!0;const I=()=>{var W;D?D=!1:(W=$.value)===null||W===void 0||W.sync({showAllItemsBeforeCalculate:!0})};function A(){return document.getElementById(O)}const E=B(-1);function N(W){E.value=e.options.length-W}function U(W){W||(E.value=-1)}const q=S(()=>{const W=E.value;return{children:W===-1?[]:e.options.slice(W)}}),J=S(()=>{const{childrenField:W,disabledField:j,keyField:_}=e;return Gn([q.value],{getIgnored(L){return Yc(L)},getChildren(L){return L[W]},getDisabled(L){return L[j]},getKey(L){var Z;return(Z=L[_])!==null&&Z!==void 0?Z:L.name}})}),ve=S(()=>Gn([{}]).treeNodes[0]);function ae(){var W;if(E.value===-1)return s(Gc,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:ve.value,domId:O,isEllipsisPlaceholder:!0});const j=J.value.treeNodes[0],_=b.value,L=!!(!((W=j.children)===null||W===void 0)&&W.some(Z=>_.includes(Z.key)));return s(Gc,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:L,tmNode:j,domId:O,rawNodes:j.rawNode.children||[],tmNodes:j.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:h,uncontrolledExpanededKeys:v,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:f,activePath:b,tmNodes:p,mergedTheme:r,mergedCollapsed:i,cssVars:n?void 0:P,themeClass:k?.themeClass,overflowRef:$,counterRef:T,updateCounter:()=>{},onResize:I,onUpdateOverflow:U,onUpdateCount:N,renderCounter:ae,getCounter:A,onRender:k?.onRender,showOption:C,deriveResponsiveState:I}},render(){const{mergedClsPrefix:e,mode:t,themeClass:n,onRender:r}=this;r?.();const o=()=>this.tmNodes.map(d=>Rf(d,this.$props)),a=t==="horizontal"&&this.responsive,l=()=>s("div",Pn(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,n,`${e}-menu--${t}`,a&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),a?s(hc,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:o,counter:this.renderCounter}):o());return a?s(Nn,{onResize:this.onResize},{default:l}):l()}}),u8=e=>1-Math.pow(1-e,5);function f8(e){const{from:t,to:n,duration:r,onUpdate:o,onFinish:i}=e,a=performance.now(),l=()=>{const d=performance.now(),c=Math.min(d-a,r),u=t+(n-t)*u8(c/r);if(c===r){i();return}o(u),requestAnimationFrame(l)};l()}const s1={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3},onFinish:Function},h8=Y({name:"NumberAnimation",props:s1,setup(e){const{localeRef:t}=on("name"),{duration:n}=e,r=B(e.from),o=S(()=>{const{locale:v}=e;return v!==void 0?v:t.value});let i=!1;const a=v=>{r.value=v},l=()=>{var v;r.value=e.to,i=!1,(v=e.onFinish)===null||v===void 0||v.call(e)},d=(v=e.from,m=e.to)=>{i=!0,r.value=e.from,v!==m&&f8({from:v,to:m,duration:n,onUpdate:a,onFinish:l})},c=S(()=>{var v;const h=b3(r.value,e.precision).toFixed(e.precision).split("."),g=new Intl.NumberFormat(o.value),p=(v=g.formatToParts(.5).find(R=>R.type==="decimal"))===null||v===void 0?void 0:v.value,b=e.showSeparator?g.format(Number(h[0])):h[0],y=h[1];return{integer:b,decimal:y,decimalSeparator:p}});function u(){i||d()}return It(()=>{Ft(()=>{e.active&&d()})}),Object.assign({formattedValue:c},{play:u})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:n}}=this;return[e,t?n:null,t]}}),v8=z([x("page-header-header",` + margin-bottom: 20px; + `),x("page-header",` + display: flex; + align-items: center; + justify-content: space-between; + line-height: 1.5; + font-size: var(--n-font-size); + `,[F("main",` + display: flex; + flex-wrap: nowrap; + align-items: center; + `),F("back",` + display: flex; + margin-right: 16px; + font-size: var(--n-back-size); + cursor: pointer; + color: var(--n-back-color); + transition: color .3s var(--n-bezier); + `,[z("&:hover","color: var(--n-back-color-hover);"),z("&:active","color: var(--n-back-color-pressed);")]),F("avatar",` + display: flex; + margin-right: 12px + `),F("title",` + margin-right: 16px; + transition: color .3s var(--n-bezier); + font-size: var(--n-title-font-size); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),F("subtitle",` + font-size: 14px; + transition: color .3s var(--n-bezier); + color: var(--n-subtitle-text-color); + `)]),x("page-header-content",` + font-size: var(--n-font-size); + `,[z("&:not(:first-child)","margin-top: 20px;")]),x("page-header-footer",` + font-size: var(--n-font-size); + `,[z("&:not(:first-child)","margin-top: 20px;")])]),d1=Object.assign(Object.assign({},ge.props),{title:String,subtitle:String,extra:String,onBack:Function}),g8=Y({name:"PageHeader",props:d1,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("PageHeader","-page-header",v8,YA,e,t),i=Bt("PageHeader",n,t),a=S(()=>{const{self:{titleTextColor:d,subtitleTextColor:c,backColor:u,fontSize:f,titleFontSize:v,backSize:m,titleFontWeight:h,backColorHover:g,backColorPressed:p},common:{cubicBezierEaseInOut:b}}=o.value;return{"--n-title-text-color":d,"--n-title-font-size":v,"--n-title-font-weight":h,"--n-font-size":f,"--n-back-size":m,"--n-subtitle-text-color":c,"--n-back-color":u,"--n-back-color-hover":g,"--n-back-color-pressed":p,"--n-bezier":b}}),l=r?Xe("page-header",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:r?void 0:a,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;const{onBack:t,title:n,subtitle:r,extra:o,mergedClsPrefix:i,cssVars:a,$slots:l}=this;(e=this.onRender)===null||e===void 0||e.call(this);const{title:d,subtitle:c,extra:u,default:f,header:v,avatar:m,footer:h,back:g}=l,p=t,b=n||d,y=r||c,R=o||u;return s("div",{style:a,class:[`${i}-page-header-wrapper`,this.themeClass,this.rtlEnabled&&`${i}-page-header-wrapper--rtl`]},v?s("div",{class:`${i}-page-header-header`,key:"breadcrumb"},v()):null,(p||m||b||y||R)&&s("div",{class:`${i}-page-header`,key:"header"},s("div",{class:`${i}-page-header__main`,key:"back"},p?s("div",{class:`${i}-page-header__back`,onClick:t},g?g():s(lt,{clsPrefix:i},{default:()=>s($3,null)})):null,m?s("div",{class:`${i}-page-header__avatar`},m()):null,b?s("div",{class:`${i}-page-header__title`,key:"title"},n||d()):null,y?s("div",{class:`${i}-page-header__subtitle`,key:"subtitle"},r||c()):null),R?s("div",{class:`${i}-page-header__extra`},o||u()):null),f?s("div",{class:`${i}-page-header-content`,key:"content"},f()):null,h?s("div",{class:`${i}-page-header-footer`,key:"footer"},h()):null)}}),c1="n-popconfirm",u1={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},mg=In(u1),m8=Y({name:"NPopconfirmPanel",props:u1,setup(e){const{localeRef:t}=on("Popconfirm"),{inlineThemeDisabled:n}=Ee(),{mergedClsPrefixRef:r,mergedThemeRef:o,props:i}=Be(c1),a=S(()=>{const{common:{cubicBezierEaseInOut:d},self:{fontSize:c,iconSize:u,iconColor:f}}=o.value;return{"--n-bezier":d,"--n-font-size":c,"--n-icon-size":u,"--n-icon-color":f}}),l=n?Xe("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},on("Popconfirm")),{mergedClsPrefix:r,cssVars:n?void 0:a,localizedPositiveText:S(()=>e.positiveText||t.value.positiveText),localizedNegativeText:S(()=>e.negativeText||t.value.negativeText),positiveButtonProps:le(i,"positiveButtonProps"),negativeButtonProps:le(i,"negativeButtonProps"),handlePositiveClick(d){e.onPositiveClick(d)},handleNegativeClick(d){e.onNegativeClick(d)},themeClass:l?.themeClass,onRender:l?.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:n,$slots:r}=this,o=ht(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&s(Ot,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&s(Ot,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},yt(r.default,i=>n||i?s("div",{class:`${t}-popconfirm__body`},n?s("div",{class:`${t}-popconfirm__icon`},ht(r.icon,()=>[s(lt,{clsPrefix:t},{default:()=>s(Bo,null)})])):null,i):null),o?s("div",{class:[`${t}-popconfirm__action`]},o):null)}}),p8=x("popconfirm",[F("body",` + font-size: var(--n-font-size); + display: flex; + align-items: center; + flex-wrap: nowrap; + position: relative; + `,[F("icon",` + display: flex; + font-size: var(--n-icon-size); + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + margin: 0 8px 0 0; + `)]),F("action",` + display: flex; + justify-content: flex-end; + `,[z("&:not(:first-child)","margin-top: 8px"),x("button",[z("&:not(:last-child)","margin-right: 8px;")])])]),f1=Object.assign(Object.assign(Object.assign({},ge.props),di),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),b8=Y({name:"Popconfirm",props:f1,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Ee(),n=ge("Popconfirm","-popconfirm",p8,ZA,e,t),r=B(null);function o(l){var d;if(!(!((d=r.value)===null||d===void 0)&&d.getMergedShow()))return;const{onPositiveClick:c,"onUpdate:show":u}=e;Promise.resolve(c?c(l):!0).then(f=>{var v;f!==!1&&((v=r.value)===null||v===void 0||v.setShow(!1),u&&ie(u,!1))})}function i(l){var d;if(!(!((d=r.value)===null||d===void 0)&&d.getMergedShow()))return;const{onNegativeClick:c,"onUpdate:show":u}=e;Promise.resolve(c?c(l):!0).then(f=>{var v;f!==!1&&((v=r.value)===null||v===void 0||v.setShow(!1),u&&ie(u,!1))})}return ot(c1,{mergedThemeRef:n,mergedClsPrefixRef:t,props:e}),{setShow(l){var d;(d=r.value)===null||d===void 0||d.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()},mergedTheme:n,popoverInstRef:r,handlePositiveClick:o,handleNegativeClick:i}},render(){const{$slots:e,$props:t,mergedTheme:n}=this;return s(xi,Object.assign({},Fo(t,mg),{theme:n.peers.Popover,themeOverrides:n.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.trigger,default:()=>{const r=vn(t,mg);return s(m8,Object.assign({},r,{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),x8={success:s(pi,null),error:s(mi,null),warning:s(Bo,null),info:s(To,null)},y8=Y({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){const n=S(()=>{const i="gradient",{fillColor:a}=e;return typeof a=="object"?`${i}-${xo(JSON.stringify(a))}`:i});function r(i,a,l,d){const{gapDegree:c,viewBoxWidth:u,strokeWidth:f}=e,v=50,m=0,h=v,g=0,p=2*v,b=50+f/2,y=`M ${b},${b} m ${m},${h} + a ${v},${v} 0 1 1 ${g},${-p} + a ${v},${v} 0 1 1 ${-g},${p}`,R=Math.PI*2*v,w={stroke:d==="rail"?l:typeof e.fillColor=="object"?`url(#${n.value})`:l,strokeDasharray:`${Math.min(i,100)/100*(R-c)}px ${u*8}px`,strokeDashoffset:`-${c/2}px`,transformOrigin:a?"center":void 0,transform:a?`rotate(${a}deg)`:void 0};return{pathString:y,pathStyle:w}}const o=()=>{const i=typeof e.fillColor=="object",a=i?e.fillColor.stops[0]:"",l=i?e.fillColor.stops[1]:"";return i&&s("defs",null,s("linearGradient",{id:n.value,x1:"0%",y1:"100%",x2:"100%",y2:"0%"},s("stop",{offset:"0%","stop-color":a}),s("stop",{offset:"100%","stop-color":l})))};return()=>{const{fillColor:i,railColor:a,strokeWidth:l,offsetDegree:d,status:c,percentage:u,showIndicator:f,indicatorTextColor:v,unit:m,gapOffsetDegree:h,clsPrefix:g}=e,{pathString:p,pathStyle:b}=r(100,0,a,"rail"),{pathString:y,pathStyle:R}=r(u,d,i,"fill"),w=100+l;return s("div",{class:`${g}-progress-content`,role:"none"},s("div",{class:`${g}-progress-graph`,"aria-hidden":!0},s("div",{class:`${g}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},s("svg",{viewBox:`0 0 ${w} ${w}`},o(),s("g",null,s("path",{class:`${g}-progress-graph-circle-rail`,d:p,"stroke-width":l,"stroke-linecap":"round",fill:"none",style:b})),s("g",null,s("path",{class:[`${g}-progress-graph-circle-fill`,u===0&&`${g}-progress-graph-circle-fill--empty`],d:y,"stroke-width":l,"stroke-linecap":"round",fill:"none",style:R}))))),f?s("div",null,t.default?s("div",{class:`${g}-progress-custom-content`,role:"none"},t.default()):c!=="default"?s("div",{class:`${g}-progress-icon`,"aria-hidden":!0},s(lt,{clsPrefix:g},{default:()=>x8[c]})):s("div",{class:`${g}-progress-text`,style:{color:v},role:"none"},s("span",{class:`${g}-progress-text__percentage`},u),s("span",{class:`${g}-progress-text__unit`},m))):null)}}}),w8={success:s(pi,null),error:s(mi,null),warning:s(Bo,null),info:s(To,null)},C8=Y({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=S(()=>Pt(e.height)),r=S(()=>{var a,l;return typeof e.fillColor=="object"?`linear-gradient(to right, ${(a=e.fillColor)===null||a===void 0?void 0:a.stops[0]} , ${(l=e.fillColor)===null||l===void 0?void 0:l.stops[1]})`:e.fillColor}),o=S(()=>e.railBorderRadius!==void 0?Pt(e.railBorderRadius):e.height!==void 0?Pt(e.height,{c:.5}):""),i=S(()=>e.fillBorderRadius!==void 0?Pt(e.fillBorderRadius):e.railBorderRadius!==void 0?Pt(e.railBorderRadius):e.height!==void 0?Pt(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:a,railColor:l,railStyle:d,percentage:c,unit:u,indicatorTextColor:f,status:v,showIndicator:m,processing:h,clsPrefix:g}=e;return s("div",{class:`${g}-progress-content`,role:"none"},s("div",{class:`${g}-progress-graph`,"aria-hidden":!0},s("div",{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${a}`]:!0}]},s("div",{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:l,height:n.value,borderRadius:o.value},d]},s("div",{class:[`${g}-progress-graph-line-fill`,h&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:r.value,height:n.value,lineHeight:n.value,borderRadius:i.value}},a==="inside"?s("div",{class:`${g}-progress-graph-line-indicator`,style:{color:f}},t.default?t.default():`${c}${u}`):null)))),m&&a==="outside"?s("div",null,t.default?s("div",{class:`${g}-progress-custom-content`,style:{color:f},role:"none"},t.default()):v==="default"?s("div",{role:"none",class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:f}},c,u):s("div",{class:`${g}-progress-icon`,"aria-hidden":!0},s(lt,{clsPrefix:g},{default:()=>w8[v]}))):null)}}});function pg(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const S8=Y({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=S(()=>e.percentage.map((i,a)=>`${Math.PI*i/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*a)-e.circleGap*a)*2}, ${e.viewBoxWidth*8}`)),r=(o,i)=>{const a=e.fillColor[i],l=typeof a=="object"?a.stops[0]:"",d=typeof a=="object"?a.stops[1]:"";return typeof e.fillColor[i]=="object"&&s("linearGradient",{id:`gradient-${i}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},s("stop",{offset:"0%","stop-color":l}),s("stop",{offset:"100%","stop-color":d}))};return()=>{const{viewBoxWidth:o,strokeWidth:i,circleGap:a,showIndicator:l,fillColor:d,railColor:c,railStyle:u,percentage:f,clsPrefix:v}=e;return s("div",{class:`${v}-progress-content`,role:"none"},s("div",{class:`${v}-progress-graph`,"aria-hidden":!0},s("div",{class:`${v}-progress-graph-circle`},s("svg",{viewBox:`0 0 ${o} ${o}`},s("defs",null,f.map((m,h)=>r(m,h))),f.map((m,h)=>s("g",{key:h},s("path",{class:`${v}-progress-graph-circle-rail`,d:pg(o/2-i/2*(1+2*h)-a*h,i,o),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:c[h]},u[h]]}),s("path",{class:[`${v}-progress-graph-circle-fill`,m===0&&`${v}-progress-graph-circle-fill--empty`],d:pg(o/2-i/2*(1+2*h)-a*h,i,o),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[h],strokeDashoffset:0,stroke:typeof d[h]=="object"?`url(#gradient-${h})`:d[h]}})))))),l&&t.default?s("div",null,s("div",{class:`${v}-progress-text`},t.default())):null)}}}),R8=z([x("progress",{display:"inline-block"},[x("progress-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + `),M("line",` + width: 100%; + display: block; + `,[x("progress-content",` + display: flex; + align-items: center; + `,[x("progress-graph",{flex:1})]),x("progress-custom-content",{marginLeft:"14px"}),x("progress-icon",` + width: 30px; + padding-left: 14px; + height: var(--n-icon-size-line); + line-height: var(--n-icon-size-line); + font-size: var(--n-icon-size-line); + `,[M("as-text",` + color: var(--n-text-color-line-outer); + text-align: center; + width: 40px; + font-size: var(--n-font-size); + padding-left: 4px; + transition: color .3s var(--n-bezier); + `)])]),M("circle, dashboard",{width:"120px"},[x("progress-custom-content",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `),x("progress-text",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: inherit; + font-size: var(--n-font-size-circle); + color: var(--n-text-color-circle); + font-weight: var(--n-font-weight-circle); + transition: color .3s var(--n-bezier); + white-space: nowrap; + `),x("progress-icon",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + color: var(--n-icon-color); + font-size: var(--n-icon-size-circle); + `)]),M("multiple-circle",` + width: 200px; + color: inherit; + `,[x("progress-text",` + font-weight: var(--n-font-weight-circle); + color: var(--n-text-color-circle); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `)]),x("progress-content",{position:"relative"}),x("progress-graph",{position:"relative"},[x("progress-graph-circle",[z("svg",{verticalAlign:"bottom"}),x("progress-graph-circle-fill",` + stroke: var(--n-fill-color); + transition: + opacity .3s var(--n-bezier), + stroke .3s var(--n-bezier), + stroke-dasharray .3s var(--n-bezier); + `,[M("empty",{opacity:0})]),x("progress-graph-circle-rail",` + transition: stroke .3s var(--n-bezier); + overflow: hidden; + stroke: var(--n-rail-color); + `)]),x("progress-graph-line",[M("indicator-inside",[x("progress-graph-line-rail",` + height: 16px; + line-height: 16px; + border-radius: 10px; + `,[x("progress-graph-line-fill",` + height: inherit; + border-radius: 10px; + `),x("progress-graph-line-indicator",` + background: #0000; + white-space: nowrap; + text-align: right; + margin-left: 14px; + margin-right: 14px; + height: inherit; + font-size: 12px; + color: var(--n-text-color-line-inner); + transition: color .3s var(--n-bezier); + `)])]),M("indicator-inside-label",` + height: 16px; + display: flex; + align-items: center; + `,[x("progress-graph-line-rail",` + flex: 1; + transition: background-color .3s var(--n-bezier); + `),x("progress-graph-line-indicator",` + background: var(--n-fill-color); + font-size: 12px; + transform: translateZ(0); + display: flex; + vertical-align: middle; + height: 16px; + line-height: 16px; + padding: 0 10px; + border-radius: 10px; + position: absolute; + white-space: nowrap; + color: var(--n-text-color-line-inner); + transition: + right .2s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),x("progress-graph-line-rail",` + position: relative; + overflow: hidden; + height: var(--n-rail-height); + border-radius: 5px; + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + `,[x("progress-graph-line-fill",` + background: var(--n-fill-color); + position: relative; + border-radius: 5px; + height: inherit; + width: 100%; + max-width: 0%; + transition: + background-color .3s var(--n-bezier), + max-width .2s var(--n-bezier); + `,[M("processing",[z("&::after",` + content: ""; + background-image: var(--n-line-bg-processing); + animation: progress-processing-animation 2s var(--n-bezier) infinite; + `)])])])])])]),z("@keyframes progress-processing-animation",` + 0% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 100%; + opacity: 1; + } + 66% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + 100% { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + opacity: 0; + } + `)]),h1=Object.assign(Object.assign({},ge.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),v1=Y({name:"Progress",props:h1,setup(e){const t=S(()=>e.indicatorPlacement||e.indicatorPosition),n=S(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:o}=Ee(e),i=ge("Progress","-progress",R8,ly,e,r),a=S(()=>{const{status:d}=e,{common:{cubicBezierEaseInOut:c},self:{fontSize:u,fontSizeCircle:f,railColor:v,railHeight:m,iconSizeCircle:h,iconSizeLine:g,textColorCircle:p,textColorLineInner:b,textColorLineOuter:y,lineBgProcessing:R,fontWeightCircle:w,[be("iconColor",d)]:C,[be("fillColor",d)]:P}}=i.value;return{"--n-bezier":c,"--n-fill-color":P,"--n-font-size":u,"--n-font-size-circle":f,"--n-font-weight-circle":w,"--n-icon-color":C,"--n-icon-size-circle":h,"--n-icon-size-line":g,"--n-line-bg-processing":R,"--n-rail-color":v,"--n-rail-height":m,"--n-text-color-circle":p,"--n-text-color-line-inner":b,"--n-text-color-line-outer":y}}),l=o?Xe("progress",S(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:o?void 0:a,themeClass:l?.themeClass,onRender:l?.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:o,railColor:i,railStyle:a,color:l,percentage:d,viewBoxWidth:c,strokeWidth:u,mergedIndicatorPlacement:f,unit:v,borderRadius:m,fillBorderRadius:h,height:g,processing:p,circleGap:b,mergedClsPrefix:y,gapDeg:R,gapOffsetDegree:w,themeClass:C,$slots:P,onRender:k}=this;return k?.(),s("div",{class:[C,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${o}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":d,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?s(y8,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,offsetDegree:this.offsetDegree,percentage:d,viewBoxWidth:c,strokeWidth:u,gapDegree:R===void 0?e==="dashboard"?75:0:R,gapOffsetDegree:w,unit:v},P):e==="line"?s(C8,{clsPrefix:y,status:o,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:l,railStyle:a,percentage:d,processing:p,indicatorPlacement:f,unit:v,fillBorderRadius:h,railBorderRadius:m,height:g},P):e==="multiple-circle"?s(S8,{clsPrefix:y,strokeWidth:u,railColor:i,fillColor:l,railStyle:a,viewBoxWidth:c,percentage:d,showIndicator:r,circleGap:b},P):null)}});function k8(e){return{borderRadius:e.borderRadius}}const P8={common:Je,self:k8};var Pr;(function(e){class t{static encodeText(a,l){const d=e.QrSegment.makeSegments(a);return t.encodeSegments(d,l)}static encodeBinary(a,l){const d=e.QrSegment.makeBytes(a);return t.encodeSegments([d],l)}static encodeSegments(a,l,d=1,c=40,u=-1,f=!0){if(!(t.MIN_VERSION<=d&&d<=c&&c<=t.MAX_VERSION)||u<-1||u>7)throw new RangeError("Invalid value");let v,m;for(v=d;;v++){const b=t.getNumDataCodewords(v,l)*8,y=o.getTotalBits(a,v);if(y<=b){m=y;break}if(v>=c)throw new RangeError("Data too long")}for(const b of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&m<=t.getNumDataCodewords(v,b)*8&&(l=b);const h=[];for(const b of a){n(b.mode.modeBits,4,h),n(b.numChars,b.mode.numCharCountBits(v),h);for(const y of b.getData())h.push(y)}const g=t.getNumDataCodewords(v,l)*8;n(0,Math.min(4,g-h.length),h),n(0,(8-h.length%8)%8,h);for(let b=236;h.lengthp[y>>>3]|=b<<7-(y&7)),new t(v,l,p,u)}constructor(a,l,d,c){if(this.version=a,this.errorCorrectionLevel=l,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const u=[];for(let v=0;v=0&&a=0&&l>>9)*1335;const c=(l<<10|d)^21522;for(let u=0;u<=5;u++)this.setFunctionModule(8,u,r(c,u));this.setFunctionModule(8,7,r(c,6)),this.setFunctionModule(8,8,r(c,7)),this.setFunctionModule(7,8,r(c,8));for(let u=9;u<15;u++)this.setFunctionModule(14-u,8,r(c,u));for(let u=0;u<8;u++)this.setFunctionModule(this.size-1-u,8,r(c,u));for(let u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,r(c,u));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let d=0;d<12;d++)a=a<<1^(a>>>11)*7973;const l=this.version<<12|a;for(let d=0;d<18;d++){const c=r(l,d),u=this.size-11+d%3,f=Math.floor(d/3);this.setFunctionModule(u,f,c),this.setFunctionModule(f,u,c)}}drawFinderPattern(a,l){for(let d=-4;d<=4;d++)for(let c=-4;c<=4;c++){const u=Math.max(Math.abs(c),Math.abs(d)),f=a+c,v=l+d;f>=0&&f=0&&v{(b!==m-u||R>=v)&&p.push(y[b])});return p}drawCodewords(a){if(a.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let l=0;for(let d=this.size-1;d>=1;d-=2){d===6&&(d=5);for(let c=0;c>>3],7-(l&7)),l++)}}}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let l=0;l5&&a++):(this.finderPenaltyAddHistory(v,m),f||(a+=this.finderPenaltyCountPatterns(m)*t.PENALTY_N3),f=this.modules[u][h],v=1);a+=this.finderPenaltyTerminateAndCount(f,v,m)*t.PENALTY_N3}for(let u=0;u5&&a++):(this.finderPenaltyAddHistory(v,m),f||(a+=this.finderPenaltyCountPatterns(m)*t.PENALTY_N3),f=this.modules[h][u],v=1);a+=this.finderPenaltyTerminateAndCount(f,v,m)*t.PENALTY_N3}for(let u=0;uf+(v?1:0),l);const d=this.size*this.size,c=Math.ceil(Math.abs(l*20-d*10)/d)-1;return a+=c*t.PENALTY_N4,a}getAlignmentPatternPositions(){if(this.version===1)return[];{const a=Math.floor(this.version/7)+2,l=this.version===32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,d=[6];for(let c=this.size-7;d.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let l=(16*a+128)*a+64;if(a>=2){const d=Math.floor(a/7)+2;l-=(25*d-10)*d-55,a>=7&&(l-=36)}return l}static getNumDataCodewords(a,l){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[l.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[l.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const l=[];for(let c=0;c0);for(const c of a){const u=c^d.shift();d.push(0),l.forEach((f,v)=>d[v]^=t.reedSolomonMultiply(f,u))}return d}static reedSolomonMultiply(a,l){if(a>>>8||l>>>8)throw new RangeError("Byte out of range");let d=0;for(let c=7;c>=0;c--)d=d<<1^(d>>>7)*285,d^=(l>>>c&1)*a;return d}finderPenaltyCountPatterns(a){const l=a[1],d=l>0&&a[2]===l&&a[3]===l*3&&a[4]===l&&a[5]===l;return(d&&a[0]>=l*4&&a[6]>=l?1:0)+(d&&a[6]>=l*4&&a[0]>=l?1:0)}finderPenaltyTerminateAndCount(a,l,d){return a&&(this.finderPenaltyAddHistory(l,d),l=0),l+=this.size,this.finderPenaltyAddHistory(l,d),this.finderPenaltyCountPatterns(d)}finderPenaltyAddHistory(a,l){l[0]===0&&(a+=this.size),l.pop(),l.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,a,l){if(a<0||a>31||i>>>a)throw new RangeError("Value out of range");for(let d=a-1;d>=0;d--)l.push(i>>>d&1)}function r(i,a){return(i>>>a&1)!==0}class o{static makeBytes(a){const l=[];for(const d of a)n(d,8,l);return new o(o.Mode.BYTE,a.length,l)}static makeNumeric(a){if(!o.isNumeric(a))throw new RangeError("String contains non-numeric characters");const l=[];for(let d=0;d=1<({"--n-border-radius":r.value.self.borderRadius})),i=n?Xe("qr-code",void 0,o,e):void 0,a=B(),l=S(()=>{var v;const m=$8[e.errorCorrectionLevel];return Pr.QrCode.encodeText((v=e.value)!==null&&v!==void 0?v:"-",m)});It(()=>{const v=B(0);let m=null;Ft(()=>{e.type!=="svg"&&(v.value,d(l.value,e.size,e.color,e.backgroundColor,m?{icon:m,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null))}),Ft(()=>{if(e.type==="svg")return;const{iconSrc:h}=e;if(h){let g=!1;const p=new Image;return p.src=h,p.onload=()=>{g||(m=p,v.value++)},()=>{g=!0}}})});function d(v,m,h,g,p){const b=a.value;if(!b)return;const y=m*Yd,R=v.size,w=y/R;b.width=y,b.height=y;const C=b.getContext("2d");if(C){C.clearRect(0,0,b.width,b.height);for(let P=0;P=1?T:T*A,N=A<=1?T:T/A,U=D+(T-E)/2,q=I+(T-N)/2;C.drawImage(P,U,q,E,N)}}}function c(v,m=0){const h=[];return v.forEach((g,p)=>{let b=null;g.forEach((y,R)=>{if(!y&&b!==null){h.push(`M${b+m} ${p+m}h${R-b}v1H${b+m}z`),b=null;return}if(R===g.length-1){if(!y)return;b===null?h.push(`M${R+m},${p+m} h1v1H${R+m}z`):h.push(`M${b+m},${p+m} h${R+1-b}v1H${b+m}z`);return}y&&b===null&&(b=R)})}),h.join("")}function u(v,m,h){const g=v.getModules(),p=g.length,b=g;let y="";const R=``,w=``;let C="";if(h){const{iconSrc:P,iconSize:k}=h,$=Math.floor(m*.1),T=p/m,D=(k||$)*T,I=(k||$)*T,A=g.length/2-I/2,E=g.length/2-D/2;C+=``}return y+=R,y+=w,y+=C,{innerHtml:y,numCells:p}}const f=S(()=>u(l.value,e.size,e.iconSrc?{iconSrc:e.iconSrc,iconBorderRadius:e.iconBorderRadius,iconSize:e.iconSize,iconBackgroundColor:e.iconBackgroundColor}:null));return{canvasRef:a,mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,svgInfo:f}},render(){const{mergedClsPrefix:e,backgroundColor:t,padding:n,cssVars:r,themeClass:o,size:i,type:a}=this;return s("div",{class:[`${e}-qr-code`,o],style:Object.assign({padding:typeof n=="number"?`${n}px`:n,backgroundColor:t,width:`${i}px`,height:`${i}px`},r)},a==="canvas"?s("canvas",{ref:"canvasRef",style:{width:`${i}px`,height:`${i}px`}}):s("svg",{height:i,width:i,viewBox:`0 0 ${this.svgInfo.numCells} ${this.svgInfo.numCells}`,role:"img",innerHTML:this.svgInfo.innerHtml}))}}),O8=()=>s("svg",{viewBox:"0 0 512 512"},s("path",{d:"M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z"})),F8=x("rate",{display:"inline-flex",flexWrap:"nowrap"},[z("&:hover",[F("item",` + transition: + transform .1s var(--n-bezier), + color .3s var(--n-bezier); + `)]),F("item",` + position: relative; + display: flex; + transition: + transform .1s var(--n-bezier), + color .3s var(--n-bezier); + transform: scale(1); + font-size: var(--n-item-size); + color: var(--n-item-color); + `,[z("&:not(:first-child)",` + margin-left: 6px; + `),M("active",` + color: var(--n-item-color-active); + `)]),ft("readonly",` + cursor: pointer; + `,[F("item",[z("&:hover",` + transform: scale(1.05); + `),z("&:active",` + transform: scale(0.96); + `)])]),F("half",` + display: flex; + transition: inherit; + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 50%; + overflow: hidden; + color: rgba(255, 255, 255, 0); + `,[M("active",` + color: var(--n-item-color-active); + `)])]),m1=Object.assign(Object.assign({},ge.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:{type:[String,Number],default:"medium"},clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),M8=Y({name:"Rate",props:m1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Rate","-rate",F8,eD,e,t),o=le(e,"value"),i=B(e.defaultValue),a=B(null),l=ln(e),d=St(o,i);function c(R){const{"onUpdate:value":w,onUpdateValue:C}=e,{nTriggerFormChange:P,nTriggerFormInput:k}=l;w&&ie(w,R),C&&ie(C,R),i.value=R,P(),k()}function u(R,w){return e.allowHalf?w.offsetX>=Math.floor(w.currentTarget.offsetWidth/2)?R+1:R+.5:R+1}let f=!1;function v(R,w){f||(a.value=u(R,w))}function m(){a.value=null}function h(R,w){var C;const{clearable:P}=e,k=u(R,w);P&&k===d.value?(f=!0,(C=e.onClear)===null||C===void 0||C.call(e),a.value=null,c(null)):c(k)}function g(){f=!1}const p=S(()=>{const{size:R}=e,{self:w}=r.value;return typeof R=="number"?`${R}px`:w[be("size",R)]}),b=S(()=>{const{common:{cubicBezierEaseInOut:R},self:w}=r.value,{itemColor:C,itemColorActive:P}=w,{color:k}=e;return{"--n-bezier":R,"--n-item-color":C,"--n-item-color-active":k||P,"--n-item-size":p.value}}),y=n?Xe("rate",S(()=>{const R=p.value,{color:w}=e;let C="";return R&&(C+=R[0]),w&&(C+=ii(w)),C}),b,e):void 0;return{mergedClsPrefix:t,mergedValue:d,hoverIndex:a,handleMouseMove:v,handleClick:h,handleMouseLeave:m,handleMouseEnterSomeStar:g,cssVars:n?void 0:b,themeClass:y?.themeClass,onRender:y?.onRender}},render(){const{readonly:e,hoverIndex:t,mergedValue:n,mergedClsPrefix:r,onRender:o,$slots:{default:i}}=this;return o?.(),s("div",{class:[`${r}-rate`,{[`${r}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},iC(this.count,(a,l)=>{const d=i?i({index:l}):s(lt,{clsPrefix:r},{default:O8}),c=t!==null?l+1<=t:l+1<=(n||0);return s("div",{key:l,class:[`${r}-rate__item`,c&&`${r}-rate__item--active`],onClick:e?void 0:u=>{this.handleClick(l,u)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:u=>{this.handleMouseMove(l,u)}},d,this.allowHalf?s("div",{class:[`${r}-rate__half`,{[`${r}-rate__half--active`]:!c&&t!==null?l+.5<=t:l+.5<=(n||0)}]},d):null)}))}});function I8(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},s("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),s("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"}))}function B8(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},s("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),s("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),s("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),s("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),s("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),s("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"}))}function A8(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},s("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),s("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),s("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),s("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),s("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),s("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"}))}function D8(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},s("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),s("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),s("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"}))}const _8=x("result",` + color: var(--n-text-color); + line-height: var(--n-line-height); + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier); +`,[x("result-icon",` + display: flex; + justify-content: center; + transition: color .3s var(--n-bezier); + `,[F("status-image",` + font-size: var(--n-icon-size); + width: 1em; + height: 1em; + `),x("base-icon",` + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),x("result-content",{marginTop:"24px"}),x("result-footer",` + margin-top: 24px; + text-align: center; + `),x("result-header",[F("title",` + margin-top: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + text-align: center; + color: var(--n-title-text-color); + font-size: var(--n-title-font-size); + `),F("description",` + margin-top: 4px; + text-align: center; + font-size: var(--n-font-size); + `)])]),E8={403:I8,404:B8,418:A8,500:D8,info:()=>s(To,null),success:()=>s(pi,null),warning:()=>s(Bo,null),error:()=>s(mi,null)},p1=Object.assign(Object.assign({},ge.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String}),N8=Y({name:"Result",props:p1,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Result","-result",_8,rD,e,t),o=S(()=>{const{size:a,status:l}=e,{common:{cubicBezierEaseInOut:d},self:{textColor:c,lineHeight:u,titleTextColor:f,titleFontWeight:v,[be("iconColor",l)]:m,[be("fontSize",a)]:h,[be("titleFontSize",a)]:g,[be("iconSize",a)]:p}}=r.value;return{"--n-bezier":d,"--n-font-size":h,"--n-icon-size":p,"--n-line-height":u,"--n-text-color":c,"--n-title-font-size":g,"--n-title-font-weight":v,"--n-title-text-color":f,"--n-icon-color":m||""}}),i=n?Xe("result",S(()=>{const{size:a,status:l}=e;let d="";return a&&(d+=a[0]),l&&(d+=l[0]),d}),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{status:t,$slots:n,mergedClsPrefix:r,onRender:o}=this;return o?.(),s("div",{class:[`${r}-result`,this.themeClass],style:this.cssVars},s("div",{class:`${r}-result-icon`},((e=n.icon)===null||e===void 0?void 0:e.call(n))||s(lt,{clsPrefix:r},{default:()=>E8[t]()})),s("div",{class:`${r}-result-header`},this.title?s("div",{class:`${r}-result-header__title`},this.title):null,this.description?s("div",{class:`${r}-result-header__description`},this.description):null),n.default&&s("div",{class:`${r}-result-content`},n),n.footer&&s("div",{class:`${r}-result-footer`},n.footer()))}}),b1=Object.assign(Object.assign({},ge.props),{trigger:String,xScrollable:Boolean,onScroll:Function,contentClass:String,contentStyle:[Object,String],size:Number,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),L8=Y({name:"Scrollbar",props:b1,setup(){const e=B(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var r;(r=e.value)===null||r===void 0||r.scrollBy(n[0],n[1])}}),{scrollbarInstRef:e})},render(){return s(Zt,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});function H8(e){const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}}const j8={common:Je,self:H8},V8=z([x("skeleton",` + height: 1em; + width: 100%; + transition: + --n-color-start .3s var(--n-bezier), + --n-color-end .3s var(--n-bezier), + background-color .3s var(--n-bezier); + animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1); + background-color: var(--n-color-start); + `),z("@keyframes skeleton-loading",` + 0% { + background: var(--n-color-start); + } + 40% { + background: var(--n-color-end); + } + 80% { + background: var(--n-color-start); + } + 100% { + background: var(--n-color-start); + } + `)]),x1=Object.assign(Object.assign({},ge.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),U8=Y({name:"Skeleton",inheritAttrs:!1,props:x1,setup(e){gu();const{mergedClsPrefixRef:t}=Ee(e),n=ge("Skeleton","-skeleton",V8,j8,e,t);return{mergedClsPrefix:t,style:S(()=>{var r,o;const i=n.value,{common:{cubicBezierEaseInOut:a}}=i,l=i.self,{color:d,colorEnd:c,borderRadius:u}=l;let f;const{circle:v,sharp:m,round:h,width:g,height:p,size:b,text:y,animated:R}=e;b!==void 0&&(f=l[be("height",b)]);const w=v?(r=g??p)!==null&&r!==void 0?r:f:g,C=(o=v?g??p:p)!==null&&o!==void 0?o:f;return{display:y?"inline-block":"",verticalAlign:y?"-0.125em":"",borderRadius:v?"50%":h?"4096px":m?"":u,width:typeof w=="number"?Vt(w):w,height:typeof C=="number"?Vt(C):C,animation:R?"":"none","--n-bezier":a,"--n-color-start":d,"--n-color-end":c}})}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=s("div",Pn({class:`${n}-skeleton`,style:t},r));return e>1?s(qt,null,wo(e,null).map(i=>[o,` +`])):o}}),W8=z([x("slider",` + display: block; + padding: calc((var(--n-handle-size) - var(--n-rail-height)) / 2) 0; + position: relative; + z-index: 0; + width: 100%; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + `,[M("reverse",[x("slider-handles",[x("slider-handle-wrapper",` + transform: translate(50%, -50%); + `)]),x("slider-dots",[x("slider-dot",` + transform: translateX(50%, -50%); + `)]),M("vertical",[x("slider-handles",[x("slider-handle-wrapper",` + transform: translate(-50%, -50%); + `)]),x("slider-marks",[x("slider-mark",` + transform: translateY(calc(-50% + var(--n-dot-height) / 2)); + `)]),x("slider-dots",[x("slider-dot",` + transform: translateX(-50%) translateY(0); + `)])])]),M("vertical",` + box-sizing: content-box; + padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2); + width: var(--n-rail-width-vertical); + height: 100%; + `,[x("slider-handles",` + top: calc(var(--n-handle-size) / 2); + right: 0; + bottom: calc(var(--n-handle-size) / 2); + left: 0; + `,[x("slider-handle-wrapper",` + top: unset; + left: 50%; + transform: translate(-50%, 50%); + `)]),x("slider-rail",` + height: 100%; + `,[F("fill",` + top: unset; + right: 0; + bottom: unset; + left: 0; + `)]),M("with-mark",` + width: var(--n-rail-width-vertical); + margin: 0 32px 0 8px; + `),x("slider-marks",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 22px; + font-size: var(--n-mark-font-size); + `,[x("slider-mark",` + transform: translateY(50%); + white-space: nowrap; + `)]),x("slider-dots",` + top: calc(var(--n-handle-size) / 2); + right: unset; + bottom: calc(var(--n-handle-size) / 2); + left: 50%; + `,[x("slider-dot",` + transform: translateX(-50%) translateY(50%); + `)])]),M("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `,[x("slider-handle",` + cursor: not-allowed; + `)]),M("with-mark",` + width: 100%; + margin: 8px 0 32px 0; + `),z("&:hover",[x("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[F("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),x("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),M("active",[x("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[F("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),x("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),x("slider-marks",` + position: absolute; + top: 18px; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[x("slider-mark",` + position: absolute; + transform: translateX(-50%); + white-space: nowrap; + `)]),x("slider-rail",` + width: 100%; + position: relative; + height: var(--n-rail-height); + background-color: var(--n-rail-color); + transition: background-color .3s var(--n-bezier); + border-radius: calc(var(--n-rail-height) / 2); + `,[F("fill",` + position: absolute; + top: 0; + bottom: 0; + border-radius: calc(var(--n-rail-height) / 2); + transition: background-color .3s var(--n-bezier); + background-color: var(--n-fill-color); + `)]),x("slider-handles",` + position: absolute; + top: 0; + right: calc(var(--n-handle-size) / 2); + bottom: 0; + left: calc(var(--n-handle-size) / 2); + `,[x("slider-handle-wrapper",` + outline: none; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + cursor: pointer; + display: flex; + `,[x("slider-handle",` + height: var(--n-handle-size); + width: var(--n-handle-size); + border-radius: 50%; + overflow: hidden; + transition: box-shadow .2s var(--n-bezier), background-color .3s var(--n-bezier); + background-color: var(--n-handle-color); + box-shadow: var(--n-handle-box-shadow); + `,[z("&:hover",` + box-shadow: var(--n-handle-box-shadow-hover); + `)]),z("&:focus",[x("slider-handle",` + box-shadow: var(--n-handle-box-shadow-focus); + `,[z("&:hover",` + box-shadow: var(--n-handle-box-shadow-active); + `)])])])]),x("slider-dots",` + position: absolute; + top: 50%; + left: calc(var(--n-handle-size) / 2); + right: calc(var(--n-handle-size) / 2); + `,[M("transition-disabled",[x("slider-dot","transition: none;")]),x("slider-dot",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + position: absolute; + transform: translate(-50%, -50%); + height: var(--n-dot-height); + width: var(--n-dot-width); + border-radius: var(--n-dot-border-radius); + overflow: hidden; + box-sizing: border-box; + border: var(--n-dot-border); + background-color: var(--n-dot-color); + `,[M("active","border: var(--n-dot-border-active);")])])]),x("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[Cn()]),x("slider-handle-indicator",` + font-size: var(--n-font-size); + padding: 6px 10px; + border-radius: var(--n-indicator-border-radius); + color: var(--n-indicator-text-color); + background-color: var(--n-indicator-color); + box-shadow: var(--n-indicator-box-shadow); + `,[M("top",` + margin-bottom: 12px; + `),M("right",` + margin-left: 12px; + `),M("bottom",` + margin-top: 12px; + `),M("left",` + margin-right: 12px; + `),Cn()]),jr(x("slider",[x("slider-dot","background-color: var(--n-dot-color-modal);")])),ro(x("slider",[x("slider-dot","background-color: var(--n-dot-color-popover);")]))]);function bg(e){return window.TouchEvent&&e instanceof window.TouchEvent}function xg(){const e=new Map,t=n=>r=>{e.set(n,r)};return om(()=>{e.clear()}),[e,t]}const K8=0,y1=Object.assign(Object.assign({},ge.props),{to:Ht.propTo,defaultValue:{type:[Number,Array],default:0},marks:Object,disabled:{type:Boolean,default:void 0},formatTooltip:Function,keyboard:{type:Boolean,default:!0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},range:Boolean,value:[Number,Array],placement:String,showTooltip:{type:Boolean,default:void 0},tooltip:{type:Boolean,default:!0},vertical:Boolean,reverse:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onDragstart:[Function],onDragend:[Function]}),q8=Y({name:"Slider",props:y1,slots:Object,setup(e){const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("Slider","-slider",W8,aD,e,t),i=B(null),[a,l]=xg(),[d,c]=xg(),u=B(new Set),f=ln(e),{mergedDisabledRef:v}=f,m=S(()=>{const{step:te}=e;if(Number(te)<=0||te==="mark")return 0;const X=te.toString();let he=0;return X.includes(".")&&(he=X.length-X.indexOf(".")-1),he}),h=B(e.defaultValue),g=le(e,"value"),p=St(g,h),b=S(()=>{const{value:te}=p;return(e.range?te:[te]).map(j)}),y=S(()=>b.value.length>2),R=S(()=>e.placement===void 0?e.vertical?"right":"top":e.placement),w=S(()=>{const{marks:te}=e;return te?Object.keys(te).map(Number.parseFloat):null}),C=B(-1),P=B(-1),k=B(-1),O=B(!1),$=B(!1),T=S(()=>{const{vertical:te,reverse:X}=e;return te?X?"top":"bottom":X?"right":"left"}),D=S(()=>{if(y.value)return;const te=b.value,X=_(e.range?Math.min(...te):e.min),he=_(e.range?Math.max(...te):te[0]),{value:Ie}=T;return e.vertical?{[Ie]:`${X}%`,height:`${he-X}%`}:{[Ie]:`${X}%`,width:`${he-X}%`}}),I=S(()=>{const te=[],{marks:X}=e;if(X){const he=b.value.slice();he.sort((xt,vt)=>xt-vt);const{value:Ie}=T,{value:me}=y,{range:Ke}=e,st=me?()=>!1:xt=>Ke?xt>=he[0]&&xt<=he[he.length-1]:xt<=he[0];for(const xt of Object.keys(X)){const vt=Number(xt);te.push({active:st(vt),key:vt,label:X[xt],style:{[Ie]:`${_(vt)}%`}})}}return te});function A(te,X){const he=_(te),{value:Ie}=T;return{[Ie]:`${he}%`,zIndex:X===C.value?1:0}}function E(te){return e.showTooltip||k.value===te||C.value===te&&O.value}function N(te){return O.value?!(C.value===te&&P.value===te):!0}function U(te){var X;~te&&(C.value=te,(X=a.get(te))===null||X===void 0||X.focus())}function q(){d.forEach((te,X)=>{E(X)&&te.syncPosition()})}function J(te){const{"onUpdate:value":X,onUpdateValue:he}=e,{nTriggerFormInput:Ie,nTriggerFormChange:me}=f;he&&ie(he,te),X&&ie(X,te),h.value=te,Ie(),me()}function ve(te){const{range:X}=e;if(X){if(Array.isArray(te)){const{value:he}=b;te.join()!==he.join()&&J(te)}}else Array.isArray(te)||b.value[0]!==te&&J(te)}function ae(te,X){if(e.range){const he=b.value.slice();he.splice(X,1,te),ve(he)}else ve(te)}function W(te,X,he){const Ie=he!==void 0;he||(he=te-X>0?1:-1);const me=w.value||[],{step:Ke}=e;if(Ke==="mark"){const vt=ce(te,me.concat(X),Ie?he:void 0);return vt?vt.value:X}if(Ke<=0)return X;const{value:st}=m;let xt;if(Ie){const vt=Number((X/Ke).toFixed(st)),bt=Math.floor(vt),pt=vt>bt?bt:bt-1,He=vt0)&&(Ie===null||st0?1:-1),X)}function ze(te){var X,he;if(v.value||!bg(te)&&te.button!==K8)return;const Ie=ye(te);if(Ie===void 0)return;const me=b.value.slice(),Ke=e.range?(he=(X=ce(Ie,me))===null||X===void 0?void 0:X.index)!==null&&he!==void 0?he:-1:0;Ke!==-1&&(te.preventDefault(),U(Ke),Ae(),ae(W(Ie,b.value[Ke]),Ke))}function Ae(){O.value||(O.value=!0,e.onDragstart&&ie(e.onDragstart),Ct("touchend",document,qe),Ct("mouseup",document,qe),Ct("touchmove",document,je),Ct("mousemove",document,je))}function Ne(){O.value&&(O.value=!1,e.onDragend&&ie(e.onDragend),wt("touchend",document,qe),wt("mouseup",document,qe),wt("touchmove",document,je),wt("mousemove",document,je))}function je(te){const{value:X}=C;if(!O.value||X===-1){Ne();return}const he=ye(te);he!==void 0&&ae(W(he,b.value[X]),X)}function qe(){Ne()}function gt(te){C.value=te,v.value||(k.value=te)}function at(te){C.value===te&&(C.value=-1,Ne()),k.value===te&&(k.value=-1)}function Te(te){k.value=te}function Q(te){k.value===te&&(k.value=-1)}ct(C,(te,X)=>{zt(()=>P.value=X)}),ct(p,()=>{if(e.marks){if($.value)return;$.value=!0,zt(()=>{$.value=!1})}zt(q)}),jt(()=>{Ne()});const ue=S(()=>{const{self:{markFontSize:te,railColor:X,railColorHover:he,fillColor:Ie,fillColorHover:me,handleColor:Ke,opacityDisabled:st,dotColor:xt,dotColorModal:vt,handleBoxShadow:bt,handleBoxShadowHover:pt,handleBoxShadowActive:He,handleBoxShadowFocus:nt,dotBorder:K,dotBoxShadow:H,railHeight:pe,railWidthVertical:$e,handleSize:Oe,dotHeight:ne,dotWidth:Se,dotBorderRadius:ee,fontSize:Ce,dotBorderActive:Ue,dotColorPopover:Ye},common:{cubicBezierEaseInOut:se}}=o.value;return{"--n-bezier":se,"--n-dot-border":K,"--n-dot-border-active":Ue,"--n-dot-border-radius":ee,"--n-dot-box-shadow":H,"--n-dot-color":xt,"--n-dot-color-modal":vt,"--n-dot-color-popover":Ye,"--n-dot-height":ne,"--n-dot-width":Se,"--n-fill-color":Ie,"--n-fill-color-hover":me,"--n-font-size":Ce,"--n-handle-box-shadow":bt,"--n-handle-box-shadow-active":He,"--n-handle-box-shadow-focus":nt,"--n-handle-box-shadow-hover":pt,"--n-handle-color":Ke,"--n-handle-size":Oe,"--n-opacity-disabled":st,"--n-rail-color":X,"--n-rail-color-hover":he,"--n-rail-height":pe,"--n-rail-width-vertical":$e,"--n-mark-font-size":te}}),G=r?Xe("slider",void 0,ue,e):void 0,fe=S(()=>{const{self:{fontSize:te,indicatorColor:X,indicatorBoxShadow:he,indicatorTextColor:Ie,indicatorBorderRadius:me}}=o.value;return{"--n-font-size":te,"--n-indicator-border-radius":me,"--n-indicator-box-shadow":he,"--n-indicator-color":X,"--n-indicator-text-color":Ie}}),we=r?Xe("slider-indicator",void 0,fe,e):void 0;return{mergedClsPrefix:t,namespace:n,uncontrolledValue:h,mergedValue:p,mergedDisabled:v,mergedPlacement:R,isMounted:$n(),adjustedTo:Ht(e),dotTransitionDisabled:$,markInfos:I,isShowTooltip:E,shouldKeepTooltipTransition:N,handleRailRef:i,setHandleRefs:l,setFollowerRefs:c,fillStyle:D,getHandleStyle:A,activeIndex:C,arrifiedValues:b,followerEnabledIndexSet:u,handleRailMouseDown:ze,handleHandleFocus:gt,handleHandleBlur:at,handleHandleMouseEnter:Te,handleHandleMouseLeave:Q,handleRailKeyDown:_e,indicatorCssVars:r?void 0:fe,indicatorThemeClass:we?.themeClass,indicatorOnRender:we?.onRender,cssVars:r?void 0:ue,themeClass:G?.themeClass,onRender:G?.onRender}},render(){var e;const{mergedClsPrefix:t,themeClass:n,formatTooltip:r}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-slider`,n,{[`${t}-slider--disabled`]:this.mergedDisabled,[`${t}-slider--active`]:this.activeIndex!==-1,[`${t}-slider--with-mark`]:this.marks,[`${t}-slider--vertical`]:this.vertical,[`${t}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},s("div",{class:`${t}-slider-rail`},s("div",{class:`${t}-slider-rail__fill`,style:this.fillStyle}),this.marks?s("div",{class:[`${t}-slider-dots`,this.dotTransitionDisabled&&`${t}-slider-dots--transition-disabled`]},this.markInfos.map(o=>s("div",{key:o.key,class:[`${t}-slider-dot`,{[`${t}-slider-dot--active`]:o.active}],style:o.style}))):null,s("div",{ref:"handleRailRef",class:`${t}-slider-handles`},this.arrifiedValues.map((o,i)=>{const a=this.isShowTooltip(i);return s(yr,null,{default:()=>[s(wr,null,{default:()=>s("div",{ref:this.setHandleRefs(i),class:`${t}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,role:"slider","aria-valuenow":o,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-orientation":this.vertical?"vertical":"horizontal","aria-disabled":this.disabled,style:this.getHandleStyle(o,i),onFocus:()=>{this.handleHandleFocus(i)},onBlur:()=>{this.handleHandleBlur(i)},onMouseenter:()=>{this.handleHandleMouseEnter(i)},onMouseleave:()=>{this.handleHandleMouseLeave(i)}},ht(this.$slots.thumb,()=>[s("div",{class:`${t}-slider-handle`})]))}),this.tooltip&&s(sr,{ref:this.setFollowerRefs(i),show:a,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(i),teleportDisabled:this.adjustedTo===Ht.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(i),onEnter:()=>{this.followerEnabledIndexSet.add(i)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(i)}},{default:()=>{var l;return a?((l=this.indicatorOnRender)===null||l===void 0||l.call(this),s("div",{class:[`${t}-slider-handle-indicator`,this.indicatorThemeClass,`${t}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof r=="function"?r(o):o)):null}})})]})})),this.marks?s("div",{class:`${t}-slider-marks`},this.markInfos.map(o=>s("div",{key:o.key,class:`${t}-slider-mark`,style:o.style},typeof o.label=="function"?o.label():o.label))):null))}}),Y8=z([z("@keyframes spin-rotate",` + from { + transform: rotate(0); + } + to { + transform: rotate(360deg); + } + `),x("spin-container",` + position: relative; + `,[x("spin-body",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + `,[eo()])]),x("spin-body",` + display: inline-flex; + align-items: center; + justify-content: center; + flex-direction: column; + `),x("spin",` + display: inline-flex; + height: var(--n-size); + width: var(--n-size); + font-size: var(--n-size); + color: var(--n-color); + `,[M("rotate",` + animation: spin-rotate 2s linear infinite; + `)]),x("spin-description",` + display: inline-block; + font-size: var(--n-font-size); + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + margin-top: 8px; + `),x("spin-content",` + opacity: 1; + transition: opacity .3s var(--n-bezier); + pointer-events: all; + `,[M("spinning",` + user-select: none; + -webkit-user-select: none; + pointer-events: none; + opacity: var(--n-opacity-spinning); + `)])]),G8={small:20,medium:18,large:16},w1=Object.assign(Object.assign({},ge.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),X8=Y({name:"Spin",props:w1,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Spin","-spin",Y8,sD,e,t),o=S(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:c},self:u}=r.value,{opacitySpinning:f,color:v,textColor:m}=u,h=typeof d=="number"?Vt(d):u[be("size",d)];return{"--n-bezier":c,"--n-opacity-spinning":f,"--n-size":h,"--n-color":v,"--n-text-color":m}}),i=n?Xe("spin",S(()=>{const{size:d}=e;return typeof d=="number"?String(d):d[0]}),o,e):void 0,a=Co(e,["spinning","show"]),l=B(!1);return Ft(d=>{let c;if(a.value){const{delay:u}=e;if(u){c=window.setTimeout(()=>{l.value=!0},u),d(()=>{clearTimeout(c)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:S(()=>{const{strokeWidth:d}=e;if(d!==void 0)return d;const{size:c}=e;return G8[typeof c=="number"?"medium":c]}),cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e,t;const{$slots:n,mergedClsPrefix:r,description:o}=this,i=n.icon&&this.rotate,a=(o||n.description)&&s("div",{class:`${r}-spin-description`},o||((e=n.description)===null||e===void 0?void 0:e.call(n))),l=n.icon?s("div",{class:[`${r}-spin-body`,this.themeClass]},s("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),a):s("div",{class:[`${r}-spin-body`,this.themeClass]},s(Tr,{clsPrefix:r,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),n.default?s("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},s("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),s(_t,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}});function Z8(e){const{primaryColorHover:t,borderColor:n}=e;return{resizableTriggerColorHover:t,resizableTriggerColor:n}}const J8={common:Je,self:Z8},Q8=x("split",` + display: flex; + width: 100%; + height: 100%; +`,[M("horizontal",` + flex-direction: row; + `),M("vertical",` + flex-direction: column; + `),x("split-pane-1",` + overflow: hidden; + `),x("split-pane-2",` + overflow: hidden; + flex: 1; + `),F("resize-trigger",` + background-color: var(--n-resize-trigger-color); + transition: background-color .3s var(--n-bezier); + `,[M("hover",` + background-color: var(--n-resize-trigger-color-hover); + `),z("&:hover",` + background-color: var(--n-resize-trigger-color-hover); + `)])]),C1=Object.assign(Object.assign({},ge.props),{direction:{type:String,default:"horizontal"},resizeTriggerSize:{type:Number,default:3},disabled:Boolean,defaultSize:{type:[String,Number],default:.5},"onUpdate:size":[Function,Array],onUpdateSize:[Function,Array],size:[String,Number],min:{type:[String,Number],default:0},max:{type:[String,Number],default:1},pane1Class:String,pane1Style:[Object,String],pane2Class:String,pane2Style:[Object,String],onDragStart:Function,onDragMove:Function,onDragEnd:Function,watchProps:Array}),eN=Y({name:"Split",props:C1,slots:Object,setup(e){var t;const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(e),o=ge("Split","-split",Q8,J8,e,n),i=S(()=>{const{common:{cubicBezierEaseInOut:R},self:{resizableTriggerColor:w,resizableTriggerColorHover:C}}=o.value;return{"--n-bezier":R,"--n-resize-trigger-color":w,"--n-resize-trigger-color-hover":C}}),a=B(null),l=B(!1),d=le(e,"size"),c=B(e.defaultSize);!((t=e.watchProps)===null||t===void 0)&&t.includes("defaultSize")&&Ft(()=>c.value=e.defaultSize);const u=R=>{const w=e["onUpdate:size"];e.onUpdateSize&&ie(e.onUpdateSize,R),w&&ie(w,R),c.value=R},f=St(d,c),v=S(()=>{const R=f.value;if(typeof R=="string")return{flex:`0 0 ${R}`};if(typeof R=="number"){const w=R*100;return{flex:`0 0 calc(${w}% - ${e.resizeTriggerSize*w/100}px)`}}}),m=S(()=>e.direction==="horizontal"?{width:`${e.resizeTriggerSize}px`,height:"100%"}:{width:"100%",height:`${e.resizeTriggerSize}px`}),h=S(()=>{const R=e.direction==="horizontal";return{width:R?`${e.resizeTriggerSize}px`:"",height:R?"":`${e.resizeTriggerSize}px`,cursor:e.direction==="horizontal"?"col-resize":"row-resize"}});let g=0;const p=R=>{R.preventDefault(),l.value=!0,e.onDragStart&&e.onDragStart(R);const w="mousemove",C="mouseup",P=$=>{b($),e.onDragMove&&e.onDragMove($)},k=()=>{wt(w,document,P),wt(C,document,k),l.value=!1,e.onDragEnd&&e.onDragEnd(R),document.body.style.cursor=""};document.body.style.cursor=h.value.cursor,Ct(w,document,P),Ct(C,document,k);const O=a.value;if(O){const $=O.getBoundingClientRect();e.direction==="horizontal"?g=R.clientX-$.left:g=$.top-R.clientY}b(R)};function b(R){var w,C;const P=(C=(w=a.value)===null||w===void 0?void 0:w.parentElement)===null||C===void 0?void 0:C.getBoundingClientRect();if(!P)return;const{direction:k}=e,O=P.width-e.resizeTriggerSize,$=P.height-e.resizeTriggerSize,T=k==="horizontal"?O:$,D=k==="horizontal"?R.clientX-P.left-g:R.clientY-P.top+g,{min:I,max:A}=e,E=typeof I=="string"?Et(I):I*T,N=typeof A=="string"?Et(A):A*T;let U=D;U=Math.max(U,E),U=Math.min(U,N,T),typeof f.value=="string"?u(`${U}px`):u(U/T)}const y=r?Xe("split",void 0,i,e):void 0;return{themeClass:y?.themeClass,onRender:y?.onRender,cssVars:r?void 0:i,resizeTriggerElRef:a,isDragging:l,mergedClsPrefix:n,resizeTriggerWrapperStyle:h,resizeTriggerStyle:m,handleMouseDown:p,firstPaneStyle:v}},render(){var e,t,n,r,o;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${this.mergedClsPrefix}-split`,`${this.mergedClsPrefix}-split--${this.direction}`,this.themeClass],style:this.cssVars},s("div",{class:[`${this.mergedClsPrefix}-split-pane-1`,this.pane1Class],style:[this.firstPaneStyle,this.pane1Style]},(n=(t=this.$slots)[1])===null||n===void 0?void 0:n.call(t)),!this.disabled&&s("div",{ref:"resizeTriggerElRef",class:`${this.mergedClsPrefix}-split__resize-trigger-wrapper`,style:this.resizeTriggerWrapperStyle,onMousedown:this.handleMouseDown},ht(this.$slots["resize-trigger"],()=>[s("div",{style:this.resizeTriggerStyle,class:[`${this.mergedClsPrefix}-split__resize-trigger`,this.isDragging&&`${this.mergedClsPrefix}-split__resize-trigger--hover`]})])),s("div",{class:[`${this.mergedClsPrefix}-split-pane-2`,this.pane2Class],style:this.pane2Style},(o=(r=this.$slots)[2])===null||o===void 0?void 0:o.call(r)))}}),tN=x("statistic",[F("label",` + font-weight: var(--n-label-font-weight); + transition: .3s color var(--n-bezier); + font-size: var(--n-label-font-size); + color: var(--n-label-text-color); + `),x("statistic-value",` + margin-top: 4px; + font-weight: var(--n-value-font-weight); + `,[F("prefix",` + margin: 0 4px 0 0; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-prefix-text-color); + `,[x("icon",{verticalAlign:"-0.125em"})]),F("content",` + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-text-color); + `),F("suffix",` + margin: 0 0 0 4px; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-suffix-text-color); + `,[x("icon",{verticalAlign:"-0.125em"})])])]),S1=Object.assign(Object.assign({},ge.props),{tabularNums:Boolean,label:String,value:[String,Number]}),nN=Y({name:"Statistic",props:S1,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=ge("Statistic","-statistic",tN,cD,e,t),i=Bt("Statistic",r,t),a=S(()=>{const{self:{labelFontWeight:d,valueFontSize:c,valueFontWeight:u,valuePrefixTextColor:f,labelTextColor:v,valueSuffixTextColor:m,valueTextColor:h,labelFontSize:g},common:{cubicBezierEaseInOut:p}}=o.value;return{"--n-bezier":p,"--n-label-font-size":g,"--n-label-font-weight":d,"--n-label-text-color":v,"--n-value-font-weight":u,"--n-value-font-size":c,"--n-value-prefix-text-color":f,"--n-value-suffix-text-color":m,"--n-value-text-color":h}}),l=n?Xe("statistic",void 0,a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:n,label:r,prefix:o,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},yt(r,a=>s("div",{class:`${t}-statistic__label`},this.label||a)),s("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},yt(o,a=>a&&s("span",{class:`${t}-statistic-value__prefix`},a)),this.value!==void 0?s("span",{class:`${t}-statistic-value__content`},this.value):yt(n,a=>a&&s("span",{class:`${t}-statistic-value__content`},a)),yt(i,a=>a&&s("span",{class:`${t}-statistic-value__suffix`},a))))}}),rN=x("steps",` + width: 100%; + display: flex; +`,[x("step",` + position: relative; + display: flex; + flex: 1; + `,[M("disabled","cursor: not-allowed"),M("clickable",` + cursor: pointer; + `),z("&:last-child",[x("step-splitor","display: none;")])]),x("step-splitor",` + background-color: var(--n-splitor-color); + margin-top: calc(var(--n-step-header-font-size) / 2); + height: 1px; + flex: 1; + align-self: flex-start; + margin-left: 12px; + margin-right: 12px; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),x("step-content","flex: 1;",[x("step-content-header",` + color: var(--n-header-text-color); + margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2); + line-height: var(--n-step-header-font-size); + font-size: var(--n-step-header-font-size); + position: relative; + display: flex; + font-weight: var(--n-step-header-font-weight); + margin-left: 9px; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[F("title",` + white-space: nowrap; + flex: 0; + `)]),F("description",` + color: var(--n-description-text-color); + margin-top: 12px; + margin-left: 9px; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `)]),x("step-indicator",` + background-color: var(--n-indicator-color); + box-shadow: 0 0 0 1px var(--n-indicator-border-color); + height: var(--n-indicator-size); + width: var(--n-indicator-size); + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[x("step-indicator-slot",` + position: relative; + width: var(--n-indicator-icon-size); + height: var(--n-indicator-icon-size); + font-size: var(--n-indicator-icon-size); + line-height: var(--n-indicator-icon-size); + `,[F("index",` + display: inline-block; + text-align: center; + position: absolute; + left: 0; + top: 0; + white-space: nowrap; + font-size: var(--n-indicator-index-font-size); + width: var(--n-indicator-icon-size); + height: var(--n-indicator-icon-size); + line-height: var(--n-indicator-icon-size); + color: var(--n-indicator-text-color); + transition: color .3s var(--n-bezier); + `,[Fn()]),x("icon",` + color: var(--n-indicator-text-color); + transition: color .3s var(--n-bezier); + `,[Fn()]),x("base-icon",` + color: var(--n-indicator-text-color); + transition: color .3s var(--n-bezier); + `,[Fn()])])]),M("vertical","flex-direction: column;",[ft("show-description",[z(">",[x("step","padding-bottom: 8px;")])]),z(">",[x("step","margin-bottom: 16px;",[z("&:last-child","margin-bottom: 0;"),z(">",[x("step-indicator",[z(">",[x("step-splitor",` + position: absolute; + bottom: -8px; + width: 1px; + margin: 0 !important; + left: calc(var(--n-indicator-size) / 2); + height: calc(100% - var(--n-indicator-size)); + `)])]),x("step-content",[F("description","margin-top: 8px;")])])])])]),M("content-bottom",[ft("vertical",[z(">",[x("step","flex-direction: column",[z(">",[x("step-line","display: flex;",[z(">",[x("step-splitor",` + margin-top: 0; + align-self: center; + `)])])]),z(">",[x("step-content","margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);",[x("step-content-header",` + margin-left: 0; + `),x("step-content__description",` + margin-left: 0; + `)])])])])])])]);function oN(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function iN(e){return e.map((t,n)=>oN(t,n))}const R1=Object.assign(Object.assign({},ge.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,contentPlacement:{type:String,default:"right"},"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),k1="n-steps",aN=Y({name:"Steps",props:R1,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=Ee(e),o=Bt("Steps",r,n),i=ge("Steps","-steps",rN,hD,e,n);return ot(k1,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:o}},render(){const{mergedClsPrefix:e}=this;return s("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`,this.contentPlacement==="bottom"&&`${e}-steps--content-bottom`]},iN(Yn(Ji(this))))}}),P1={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},lN=Y({name:"Step",props:P1,slots:Object,setup(e){const t=Be(k1,null);t||mn("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=Ee(),{props:r,mergedThemeRef:o,mergedClsPrefixRef:i,stepsSlots:a}=t,l=le(r,"vertical"),d=le(r,"contentPlacement"),c=S(()=>{const{status:m}=e;if(m)return m;{const{internalIndex:h}=e,{current:g}=r;if(g===void 0)return"process";if(hg)return"wait"}return"process"}),u=S(()=>{const{value:m}=c,{size:h}=r,{common:{cubicBezierEaseInOut:g},self:{stepHeaderFontWeight:p,[be("stepHeaderFontSize",h)]:b,[be("indicatorIndexFontSize",h)]:y,[be("indicatorSize",h)]:R,[be("indicatorIconSize",h)]:w,[be("indicatorTextColor",m)]:C,[be("indicatorBorderColor",m)]:P,[be("headerTextColor",m)]:k,[be("splitorColor",m)]:O,[be("indicatorColor",m)]:$,[be("descriptionTextColor",m)]:T}}=o.value;return{"--n-bezier":g,"--n-description-text-color":T,"--n-header-text-color":k,"--n-indicator-border-color":P,"--n-indicator-color":$,"--n-indicator-icon-size":w,"--n-indicator-index-font-size":y,"--n-indicator-size":R,"--n-indicator-text-color":C,"--n-splitor-color":O,"--n-step-header-font-size":b,"--n-step-header-font-weight":p}}),f=n?Xe("step",S(()=>{const{value:m}=c,{size:h}=r;return`${m[0]}${h[0]}`}),u,r):void 0,v=S(()=>{if(e.disabled)return;const{onUpdateCurrent:m,"onUpdate:current":h}=r;return m||h?()=>{m&&ie(m,e.internalIndex),h&&ie(h,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:l,mergedStatus:c,handleStepClick:v,cssVars:n?void 0:u,themeClass:f?.themeClass,onRender:f?.onRender,contentPlacement:d}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r,contentPlacement:o,vertical:i}=this,a=yt(this.$slots.default,f=>{const v=f||this.description;return v?s("div",{class:`${e}-step-content__description`},v):null}),l=s("div",{class:`${e}-step-splitor`}),d=s("div",{class:`${e}-step-indicator`,key:o},s("div",{class:`${e}-step-indicator-slot`},s(Wr,null,{default:()=>yt(this.$slots.icon,f=>{const{mergedStatus:v,stepsSlots:m}=this;return v==="finish"||v==="error"?v==="finish"?s(lt,{clsPrefix:e,key:"finish"},{default:()=>ht(m["finish-icon"],()=>[s(Fu,null)])}):v==="error"?s(lt,{clsPrefix:e,key:"error"},{default:()=>ht(m["error-icon"],()=>[s(Iu,null)])}):null:f||s("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),i?l:null),c=s("div",{class:`${e}-step-content`},s("div",{class:`${e}-step-content-header`},s("div",{class:`${e}-step-content-header__title`},ht(this.$slots.title,()=>[this.title])),!i&&o==="right"?l:null),a);let u;return!i&&o==="bottom"?u=s(qt,null,s("div",{class:`${e}-step-line`},d,l),c):u=s(qt,null,d,c),t?.(),s("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,a&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},u)}}),sN=x("switch",` + height: var(--n-height); + min-width: var(--n-width); + vertical-align: middle; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + outline: none; + justify-content: center; + align-items: center; +`,[F("children-placeholder",` + height: var(--n-rail-height); + display: flex; + flex-direction: column; + overflow: hidden; + pointer-events: none; + visibility: hidden; + `),F("rail-placeholder",` + display: flex; + flex-wrap: none; + `),F("button-placeholder",` + width: calc(1.75 * var(--n-rail-height)); + height: var(--n-rail-height); + `),x("base-loading",` + position: absolute; + top: 50%; + left: 50%; + transform: translateX(-50%) translateY(-50%); + font-size: calc(var(--n-button-width) - 4px); + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + `,[Fn({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),F("checked, unchecked",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + box-sizing: border-box; + position: absolute; + white-space: nowrap; + top: 0; + bottom: 0; + display: flex; + align-items: center; + line-height: 1; + `),F("checked",` + right: 0; + padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),F("unchecked",` + left: 0; + justify-content: flex-end; + padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); + `),z("&:focus",[F("rail",` + box-shadow: var(--n-box-shadow-focus); + `)]),M("round",[F("rail","border-radius: calc(var(--n-rail-height) / 2);",[F("button","border-radius: calc(var(--n-button-height) / 2);")])]),ft("disabled",[ft("icon",[M("rubber-band",[M("pressed",[F("rail",[F("button","max-width: var(--n-button-width-pressed);")])]),F("rail",[z("&:active",[F("button","max-width: var(--n-button-width-pressed);")])]),M("active",[M("pressed",[F("rail",[F("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),F("rail",[z("&:active",[F("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),M("active",[F("rail",[F("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),F("rail",` + overflow: hidden; + height: var(--n-rail-height); + min-width: var(--n-rail-width); + border-radius: var(--n-rail-border-radius); + cursor: pointer; + position: relative; + transition: + opacity .3s var(--n-bezier), + background .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-rail-color); + `,[F("button-icon",` + color: var(--n-icon-color); + transition: color .3s var(--n-bezier); + font-size: calc(var(--n-button-height) - 4px); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + display: flex; + justify-content: center; + align-items: center; + line-height: 1; + `,[Fn()]),F("button",` + align-items: center; + top: var(--n-offset); + left: var(--n-offset); + height: var(--n-button-height); + width: var(--n-button-width-pressed); + max-width: var(--n-button-width); + border-radius: var(--n-button-border-radius); + background-color: var(--n-button-color); + box-shadow: var(--n-button-box-shadow); + box-sizing: border-box; + cursor: inherit; + content: ""; + position: absolute; + transition: + background-color .3s var(--n-bezier), + left .3s var(--n-bezier), + opacity .3s var(--n-bezier), + max-width .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `)]),M("active",[F("rail","background-color: var(--n-rail-color-active);")]),M("loading",[F("rail",` + cursor: wait; + `)]),M("disabled",[F("rail",` + cursor: not-allowed; + opacity: .5; + `)])]),z1=Object.assign(Object.assign({},ge.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let wa;const dN=Y({name:"Switch",props:z1,slots:Object,setup(e){wa===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?wa=CSS.supports("width","max(1px)"):wa=!1:wa=!0);const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Switch","-switch",sN,mD,e,t),o=ln(e),{mergedSizeRef:i,mergedDisabledRef:a}=o,l=B(e.defaultValue),d=le(e,"value"),c=St(d,l),u=S(()=>c.value===e.checkedValue),f=B(!1),v=B(!1),m=S(()=>{const{railStyle:O}=e;if(O)return O({focused:v.value,checked:u.value})});function h(O){const{"onUpdate:value":$,onChange:T,onUpdateValue:D}=e,{nTriggerFormInput:I,nTriggerFormChange:A}=o;$&&ie($,O),D&&ie(D,O),T&&ie(T,O),l.value=O,I(),A()}function g(){const{nTriggerFormFocus:O}=o;O()}function p(){const{nTriggerFormBlur:O}=o;O()}function b(){e.loading||a.value||(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue))}function y(){v.value=!0,g()}function R(){v.value=!1,p(),f.value=!1}function w(O){e.loading||a.value||O.key===" "&&(c.value!==e.checkedValue?h(e.checkedValue):h(e.uncheckedValue),f.value=!1)}function C(O){e.loading||a.value||O.key===" "&&(O.preventDefault(),f.value=!0)}const P=S(()=>{const{value:O}=i,{self:{opacityDisabled:$,railColor:T,railColorActive:D,buttonBoxShadow:I,buttonColor:A,boxShadowFocus:E,loadingColor:N,textColor:U,iconColor:q,[be("buttonHeight",O)]:J,[be("buttonWidth",O)]:ve,[be("buttonWidthPressed",O)]:ae,[be("railHeight",O)]:W,[be("railWidth",O)]:j,[be("railBorderRadius",O)]:_,[be("buttonBorderRadius",O)]:L},common:{cubicBezierEaseInOut:Z}}=r.value;let ce,ye,_e;return wa?(ce=`calc((${W} - ${J}) / 2)`,ye=`max(${W}, ${J})`,_e=`max(${j}, calc(${j} + ${J} - ${W}))`):(ce=Vt((Et(W)-Et(J))/2),ye=Vt(Math.max(Et(W),Et(J))),_e=Et(W)>Et(J)?j:Vt(Et(j)+Et(J)-Et(W))),{"--n-bezier":Z,"--n-button-border-radius":L,"--n-button-box-shadow":I,"--n-button-color":A,"--n-button-width":ve,"--n-button-width-pressed":ae,"--n-button-height":J,"--n-height":ye,"--n-offset":ce,"--n-opacity-disabled":$,"--n-rail-border-radius":_,"--n-rail-color":T,"--n-rail-color-active":D,"--n-rail-height":W,"--n-rail-width":j,"--n-width":_e,"--n-box-shadow-focus":E,"--n-loading-color":N,"--n-text-color":U,"--n-icon-color":q}}),k=n?Xe("switch",S(()=>i.value[0]),P,e):void 0;return{handleClick:b,handleBlur:R,handleFocus:y,handleKeyup:w,handleKeydown:C,mergedRailStyle:m,pressed:f,mergedClsPrefix:t,mergedValue:c,checked:u,mergedDisabled:a,cssVars:n?void 0:P,themeClass:k?.themeClass,onRender:k?.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:o,$slots:i}=this;o?.();const{checked:a,unchecked:l,icon:d,"checked-icon":c,"unchecked-icon":u}=i,f=!(Qo(d)&&Qo(c)&&Qo(u));return s("div",{role:"switch","aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},s("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:r},yt(a,v=>yt(l,m=>v||m?s("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),v),s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),m)):null)),s("div",{class:`${e}-switch__button`},yt(d,v=>yt(c,m=>yt(u,h=>s(Wr,null,{default:()=>this.loading?s(Tr,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(m||v)?s("div",{class:`${e}-switch__button-icon`,key:m?"checked-icon":"icon"},m||v):!this.checked&&(h||v)?s("div",{class:`${e}-switch__button-icon`,key:h?"unchecked-icon":"icon"},h||v):null})))),yt(a,v=>v&&s("div",{key:"checked",class:`${e}-switch__checked`},v)),yt(l,v=>v&&s("div",{key:"unchecked",class:`${e}-switch__unchecked`},v)))))}}),cN=z([x("table",` + font-size: var(--n-font-size); + font-variant-numeric: tabular-nums; + line-height: var(--n-line-height); + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + text-align: left; + border-collapse: separate; + border-spacing: 0; + overflow: hidden; + background-color: var(--n-td-color); + border-color: var(--n-merged-border-color); + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + --n-merged-border-color: var(--n-border-color); + `,[z("th",` + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + text-align: inherit; + padding: var(--n-th-padding); + vertical-align: inherit; + text-transform: none; + border: 0px solid var(--n-merged-border-color); + font-weight: var(--n-th-font-weight); + color: var(--n-th-text-color); + background-color: var(--n-th-color); + border-bottom: 1px solid var(--n-merged-border-color); + border-right: 1px solid var(--n-merged-border-color); + `,[z("&:last-child",` + border-right: 0px solid var(--n-merged-border-color); + `)]),z("td",` + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + padding: var(--n-td-padding); + color: var(--n-td-text-color); + background-color: var(--n-td-color); + border: 0px solid var(--n-merged-border-color); + border-right: 1px solid var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + `,[z("&:last-child",` + border-right: 0px solid var(--n-merged-border-color); + `)]),M("bordered",` + border: 1px solid var(--n-merged-border-color); + border-radius: var(--n-border-radius); + `,[z("tr",[z("&:last-child",[z("td",` + border-bottom: 0 solid var(--n-merged-border-color); + `)])])]),M("single-line",[z("th",` + border-right: 0px solid var(--n-merged-border-color); + `),z("td",` + border-right: 0px solid var(--n-merged-border-color); + `)]),M("single-column",[z("tr",[z("&:not(:last-child)",[z("td",` + border-bottom: 0px solid var(--n-merged-border-color); + `)])])]),M("striped",[z("tr:nth-of-type(even)",[z("td","background-color: var(--n-td-color-striped)")])]),ft("bottom-bordered",[z("tr",[z("&:last-child",[z("td",` + border-bottom: 0px solid var(--n-merged-border-color); + `)])])])]),jr(x("table",` + background-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + `,[z("th",` + background-color: var(--n-th-color-modal); + `),z("td",` + background-color: var(--n-td-color-modal); + `)])),ro(x("table",` + background-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + `,[z("th",` + background-color: var(--n-th-color-popover); + `),z("td",` + background-color: var(--n-td-color-popover); + `)]))]),$1=Object.assign(Object.assign({},ge.props),{bordered:{type:Boolean,default:!0},bottomBordered:{type:Boolean,default:!0},singleLine:{type:Boolean,default:!0},striped:Boolean,singleColumn:Boolean,size:{type:String,default:"medium"}}),uN=Y({name:"Table",props:$1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=ge("Table","-table",cN,xD,e,t),i=Bt("Table",r,t),a=S(()=>{const{size:d}=e,{self:{borderColor:c,tdColor:u,tdColorModal:f,tdColorPopover:v,thColor:m,thColorModal:h,thColorPopover:g,thTextColor:p,tdTextColor:b,borderRadius:y,thFontWeight:R,lineHeight:w,borderColorModal:C,borderColorPopover:P,tdColorStriped:k,tdColorStripedModal:O,tdColorStripedPopover:$,[be("fontSize",d)]:T,[be("tdPadding",d)]:D,[be("thPadding",d)]:I},common:{cubicBezierEaseInOut:A}}=o.value;return{"--n-bezier":A,"--n-td-color":u,"--n-td-color-modal":f,"--n-td-color-popover":v,"--n-td-text-color":b,"--n-border-color":c,"--n-border-color-modal":C,"--n-border-color-popover":P,"--n-border-radius":y,"--n-font-size":T,"--n-th-color":m,"--n-th-color-modal":h,"--n-th-color-popover":g,"--n-th-font-weight":R,"--n-th-text-color":p,"--n-line-height":w,"--n-td-padding":D,"--n-th-padding":I,"--n-td-color-striped":k,"--n-td-color-striped-modal":O,"--n-td-color-striped-popover":$}}),l=n?Xe("table",S(()=>e.size[0]),a,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:n?void 0:a,themeClass:l?.themeClass,onRender:l?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("table",{class:[`${t}-table`,this.themeClass,{[`${t}-table--rtl`]:this.rtlEnabled,[`${t}-table--bottom-bordered`]:this.bottomBordered,[`${t}-table--bordered`]:this.bordered,[`${t}-table--single-line`]:this.singleLine,[`${t}-table--single-column`]:this.singleColumn,[`${t}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}}),fN=Y({name:"Tbody",render(){return s("tbody",null,this.$slots)}}),hN=Y({name:"Td",render(){return s("td",null,this.$slots)}}),vN=Y({name:"Th",render(){return s("th",null,this.$slots)}}),gN=Y({name:"Thead",render(){return s("thead",null,this.$slots)}}),mN=Y({name:"Tr",render(){return s("tr",null,this.$slots)}}),kf="n-tabs",Pf={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},pN=Y({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:Pf,slots:Object,setup(e){const t=Be(kf,null);return t||mn("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return s("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),T1=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},Fo(Pf,["displayDirective"])),ws=Y({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:T1,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:o,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:d,tabChangeIdRef:c,onBeforeLeaveRef:u,triggerRef:f,handleAdd:v,activateTab:m,handleClose:h}=Be(kf);return{trigger:f,mergedClosable:S(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?o.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:d,clsPrefix:t,value:n,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&h(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){v();return}const{name:g}=e,p=++c.id;if(g!==n.value){const{value:b}=u;b?Promise.resolve(b(e.name,n.value)).then(y=>{y&&c.id===p&&m(g)}):m(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:i,value:a,mergedClosable:l,trigger:d,$slots:{default:c}}=this,u=o??i;return s("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?s("div",{class:`${t}-tabs-tab-pad`}):null,s("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},Pn({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:d==="click"?this.activateTab:void 0,onMouseenter:d==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),s("span",{class:`${t}-tabs-tab__label`},e?s(qt,null,s("div",{class:`${t}-tabs-tab__height-placeholder`}," "),s(lt,{clsPrefix:t},{default:()=>s(Vi,null)})):c?c():typeof u=="object"?u:Wt(u??n)),l&&this.type==="card"?s(lo,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),bN=x("tabs",` + box-sizing: border-box; + width: 100%; + display: flex; + flex-direction: column; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[M("segment-type",[x("tabs-rail",[z("&.transition-disabled",[x("tabs-capsule",` + transition: none; + `)])])]),M("top",[x("tab-pane",` + padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); + `)]),M("left",[x("tab-pane",` + padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); + `)]),M("left, right",` + flex-direction: row; + `,[x("tabs-bar",` + width: 2px; + right: 0; + transition: + top .2s var(--n-bezier), + max-height .2s var(--n-bezier), + background-color .3s var(--n-bezier); + `),x("tabs-tab",` + padding: var(--n-tab-padding-vertical); + `)]),M("right",` + flex-direction: row-reverse; + `,[x("tab-pane",` + padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); + `),x("tabs-bar",` + left: 0; + `)]),M("bottom",` + flex-direction: column-reverse; + justify-content: flex-end; + `,[x("tab-pane",` + padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); + `),x("tabs-bar",` + top: 0; + `)]),x("tabs-rail",` + position: relative; + padding: 3px; + border-radius: var(--n-tab-border-radius); + width: 100%; + background-color: var(--n-color-segment); + transition: background-color .3s var(--n-bezier); + display: flex; + align-items: center; + `,[x("tabs-capsule",` + border-radius: var(--n-tab-border-radius); + position: absolute; + pointer-events: none; + background-color: var(--n-tab-color-segment); + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); + transition: transform 0.3s var(--n-bezier); + `),x("tabs-tab-wrapper",` + flex-basis: 0; + flex-grow: 1; + display: flex; + align-items: center; + justify-content: center; + `,[x("tabs-tab",` + overflow: hidden; + border-radius: var(--n-tab-border-radius); + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `,[M("active",` + font-weight: var(--n-font-weight-strong); + color: var(--n-tab-text-color-active); + `),z("&:hover",` + color: var(--n-tab-text-color-hover); + `)])])]),M("flex",[x("tabs-nav",` + width: 100%; + position: relative; + `,[x("tabs-wrapper",` + width: 100%; + `,[x("tabs-tab",` + margin-right: 0; + `)])])]),x("tabs-nav",` + box-sizing: border-box; + line-height: 1.5; + display: flex; + transition: border-color .3s var(--n-bezier); + `,[F("prefix, suffix",` + display: flex; + align-items: center; + `),F("prefix","padding-right: 16px;"),F("suffix","padding-left: 16px;")]),M("top, bottom",[z(">",[x("tabs-nav",[x("tabs-nav-scroll-wrapper",[z("&::before",` + top: 0; + bottom: 0; + left: 0; + width: 20px; + `),z("&::after",` + top: 0; + bottom: 0; + right: 0; + width: 20px; + `),M("shadow-start",[z("&::before",` + box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); + `)]),M("shadow-end",[z("&::after",` + box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),M("left, right",[x("tabs-nav-scroll-content",` + flex-direction: column; + `),z(">",[x("tabs-nav",[x("tabs-nav-scroll-wrapper",[z("&::before",` + top: 0; + left: 0; + right: 0; + height: 20px; + `),z("&::after",` + bottom: 0; + left: 0; + right: 0; + height: 20px; + `),M("shadow-start",[z("&::before",` + box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); + `)]),M("shadow-end",[z("&::after",` + box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); + `)])])])])]),x("tabs-nav-scroll-wrapper",` + flex: 1; + position: relative; + overflow: hidden; + `,[x("tabs-nav-y-scroll",` + height: 100%; + width: 100%; + overflow-y: auto; + scrollbar-width: none; + `,[z("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `)]),z("&::before, &::after",` + transition: box-shadow .3s var(--n-bezier); + pointer-events: none; + content: ""; + position: absolute; + z-index: 1; + `)]),x("tabs-nav-scroll-content",` + display: flex; + position: relative; + min-width: 100%; + min-height: 100%; + width: fit-content; + box-sizing: border-box; + `),x("tabs-wrapper",` + display: inline-flex; + flex-wrap: nowrap; + position: relative; + `),x("tabs-tab-wrapper",` + display: flex; + flex-wrap: nowrap; + flex-shrink: 0; + flex-grow: 0; + `),x("tabs-tab",` + cursor: pointer; + white-space: nowrap; + flex-wrap: nowrap; + display: inline-flex; + align-items: center; + color: var(--n-tab-text-color); + font-size: var(--n-tab-font-size); + background-clip: padding-box; + padding: var(--n-tab-padding); + transition: + box-shadow .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[M("disabled",{cursor:"not-allowed"}),F("close",` + margin-left: 6px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),F("label",` + display: flex; + align-items: center; + z-index: 1; + `)]),x("tabs-bar",` + position: absolute; + bottom: 0; + height: 2px; + border-radius: 1px; + background-color: var(--n-bar-color); + transition: + left .2s var(--n-bezier), + max-width .2s var(--n-bezier), + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[z("&.transition-disabled",` + transition: none; + `),M("disabled",` + background-color: var(--n-tab-text-color-disabled) + `)]),x("tabs-pane-wrapper",` + position: relative; + overflow: hidden; + transition: max-height .2s var(--n-bezier); + `),x("tab-pane",` + color: var(--n-pane-text-color); + width: 100%; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .2s var(--n-bezier); + left: 0; + right: 0; + top: 0; + `,[z("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .2s var(--n-bezier), + opacity .2s var(--n-bezier); + `),z("&.next-transition-leave-active, &.prev-transition-leave-active",` + position: absolute; + `),z("&.next-transition-enter-from, &.prev-transition-leave-to",` + transform: translateX(32px); + opacity: 0; + `),z("&.next-transition-leave-to, &.prev-transition-enter-from",` + transform: translateX(-32px); + opacity: 0; + `),z("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",` + transform: translateX(0); + opacity: 1; + `)]),x("tabs-tab-pad",` + box-sizing: border-box; + width: var(--n-tab-gap); + flex-grow: 0; + flex-shrink: 0; + `),M("line-type, bar-type",[x("tabs-tab",` + font-weight: var(--n-tab-font-weight); + box-sizing: border-box; + vertical-align: bottom; + `,[z("&:hover",{color:"var(--n-tab-text-color-hover)"}),M("active",` + color: var(--n-tab-text-color-active); + font-weight: var(--n-tab-font-weight-active); + `),M("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),x("tabs-nav",[M("line-type",[M("top",[F("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),x("tabs-nav-scroll-content",` + border-bottom: 1px solid var(--n-tab-border-color); + `),x("tabs-bar",` + bottom: -1px; + `)]),M("left",[F("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),x("tabs-nav-scroll-content",` + border-right: 1px solid var(--n-tab-border-color); + `),x("tabs-bar",` + right: -1px; + `)]),M("right",[F("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),x("tabs-nav-scroll-content",` + border-left: 1px solid var(--n-tab-border-color); + `),x("tabs-bar",` + left: -1px; + `)]),M("bottom",[F("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),x("tabs-nav-scroll-content",` + border-top: 1px solid var(--n-tab-border-color); + `),x("tabs-bar",` + top: -1px; + `)]),F("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),x("tabs-nav-scroll-content",` + transition: border-color .3s var(--n-bezier); + `),x("tabs-bar",` + border-radius: 0; + `)]),M("card-type",[F("prefix, suffix",` + transition: border-color .3s var(--n-bezier); + `),x("tabs-pad",` + flex-grow: 1; + transition: border-color .3s var(--n-bezier); + `),x("tabs-tab-pad",` + transition: border-color .3s var(--n-bezier); + `),x("tabs-tab",` + font-weight: var(--n-tab-font-weight); + border: 1px solid var(--n-tab-border-color); + background-color: var(--n-tab-color); + box-sizing: border-box; + position: relative; + vertical-align: bottom; + display: flex; + justify-content: space-between; + font-size: var(--n-tab-font-size); + color: var(--n-tab-text-color); + `,[M("addable",` + padding-left: 8px; + padding-right: 8px; + font-size: 16px; + justify-content: center; + `,[F("height-placeholder",` + width: 0; + font-size: var(--n-tab-font-size); + `),ft("disabled",[z("&:hover",` + color: var(--n-tab-text-color-hover); + `)])]),M("closable","padding-right: 8px;"),M("active",` + background-color: #0000; + font-weight: var(--n-tab-font-weight-active); + color: var(--n-tab-text-color-active); + `),M("disabled","color: var(--n-tab-text-color-disabled);")])]),M("left, right",` + flex-direction: column; + `,[F("prefix, suffix",` + padding: var(--n-tab-padding-vertical); + `),x("tabs-wrapper",` + flex-direction: column; + `),x("tabs-tab-wrapper",` + flex-direction: column; + `,[x("tabs-tab-pad",` + height: var(--n-tab-gap-vertical); + width: 100%; + `)])]),M("top",[M("card-type",[x("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),F("prefix, suffix",` + border-bottom: 1px solid var(--n-tab-border-color); + `),x("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-top-right-radius: var(--n-tab-border-radius); + `,[M("active",` + border-bottom: 1px solid #0000; + `)]),x("tabs-tab-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `),x("tabs-pad",` + border-bottom: 1px solid var(--n-tab-border-color); + `)])]),M("left",[M("card-type",[x("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),F("prefix, suffix",` + border-right: 1px solid var(--n-tab-border-color); + `),x("tabs-tab",` + border-top-left-radius: var(--n-tab-border-radius); + border-bottom-left-radius: var(--n-tab-border-radius); + `,[M("active",` + border-right: 1px solid #0000; + `)]),x("tabs-tab-pad",` + border-right: 1px solid var(--n-tab-border-color); + `),x("tabs-pad",` + border-right: 1px solid var(--n-tab-border-color); + `)])]),M("right",[M("card-type",[x("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),F("prefix, suffix",` + border-left: 1px solid var(--n-tab-border-color); + `),x("tabs-tab",` + border-top-right-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[M("active",` + border-left: 1px solid #0000; + `)]),x("tabs-tab-pad",` + border-left: 1px solid var(--n-tab-border-color); + `),x("tabs-pad",` + border-left: 1px solid var(--n-tab-border-color); + `)])]),M("bottom",[M("card-type",[x("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),F("prefix, suffix",` + border-top: 1px solid var(--n-tab-border-color); + `),x("tabs-tab",` + border-bottom-left-radius: var(--n-tab-border-radius); + border-bottom-right-radius: var(--n-tab-border-radius); + `,[M("active",` + border-top: 1px solid #0000; + `)]),x("tabs-tab-pad",` + border-top: 1px solid var(--n-tab-border-color); + `),x("tabs-pad",` + border-top: 1px solid var(--n-tab-border-color); + `)])])])]),Gd=Vp,O1=Object.assign(Object.assign({},ge.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),xN=Y({name:"Tabs",props:O1,slots:Object,setup(e,{slots:t}){var n,r,o,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=Ee(e),d=ge("Tabs","-tabs",bN,CD,e,a),c=B(null),u=B(null),f=B(null),v=B(null),m=B(null),h=B(null),g=B(!0),p=B(!0),b=Co(e,["labelSize","size"]),y=Co(e,["activeName","value"]),R=B((r=(n=y.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(o=Yn(t.default())[0])===null||o===void 0?void 0:o.props)===null||i===void 0?void 0:i.name:null),w=St(y,R),C={id:0},P=S(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});ct(w,()=>{C.id=0,D(),I()});function k(){var G;const{value:fe}=w;return fe===null?null:(G=c.value)===null||G===void 0?void 0:G.querySelector(`[data-name="${fe}"]`)}function O(G){if(e.type==="card")return;const{value:fe}=u;if(!fe)return;const we=fe.style.opacity==="0";if(G){const te=`${a.value}-tabs-bar--disabled`,{barWidth:X,placement:he}=e;if(G.dataset.disabled==="true"?fe.classList.add(te):fe.classList.remove(te),["top","bottom"].includes(he)){if(T(["top","maxHeight","height"]),typeof X=="number"&&G.offsetWidth>=X){const Ie=Math.floor((G.offsetWidth-X)/2)+G.offsetLeft;fe.style.left=`${Ie}px`,fe.style.maxWidth=`${X}px`}else fe.style.left=`${G.offsetLeft}px`,fe.style.maxWidth=`${G.offsetWidth}px`;fe.style.width="8192px",we&&(fe.style.transition="none"),fe.offsetWidth,we&&(fe.style.transition="",fe.style.opacity="1")}else{if(T(["left","maxWidth","width"]),typeof X=="number"&&G.offsetHeight>=X){const Ie=Math.floor((G.offsetHeight-X)/2)+G.offsetTop;fe.style.top=`${Ie}px`,fe.style.maxHeight=`${X}px`}else fe.style.top=`${G.offsetTop}px`,fe.style.maxHeight=`${G.offsetHeight}px`;fe.style.height="8192px",we&&(fe.style.transition="none"),fe.offsetHeight,we&&(fe.style.transition="",fe.style.opacity="1")}}}function $(){if(e.type==="card")return;const{value:G}=u;G&&(G.style.opacity="0")}function T(G){const{value:fe}=u;if(fe)for(const we of G)fe.style[we]=""}function D(){if(e.type==="card")return;const G=k();G?O(G):$()}function I(){var G;const fe=(G=m.value)===null||G===void 0?void 0:G.$el;if(!fe)return;const we=k();if(!we)return;const{scrollLeft:te,offsetWidth:X}=fe,{offsetLeft:he,offsetWidth:Ie}=we;te>he?fe.scrollTo({top:0,left:he,behavior:"smooth"}):he+Ie>te+X&&fe.scrollTo({top:0,left:he+Ie-X,behavior:"smooth"})}const A=B(null);let E=0,N=null;function U(G){const fe=A.value;if(fe){E=G.getBoundingClientRect().height;const we=`${E}px`,te=()=>{fe.style.height=we,fe.style.maxHeight=we};N?(te(),N(),N=null):N=te}}function q(G){const fe=A.value;if(fe){const we=G.getBoundingClientRect().height,te=()=>{document.body.offsetHeight,fe.style.maxHeight=`${we}px`,fe.style.height=`${Math.max(E,we)}px`};N?(N(),N=null,te()):N=te}}function J(){const G=A.value;if(G){G.style.maxHeight="",G.style.height="";const{paneWrapperStyle:fe}=e;if(typeof fe=="string")G.style.cssText=fe;else if(fe){const{maxHeight:we,height:te}=fe;we!==void 0&&(G.style.maxHeight=we),te!==void 0&&(G.style.height=te)}}}const ve={value:[]},ae=B("next");function W(G){const fe=w.value;let we="next";for(const te of ve.value){if(te===fe)break;if(te===G){we="prev";break}}ae.value=we,j(G)}function j(G){const{onActiveNameChange:fe,onUpdateValue:we,"onUpdate:value":te}=e;fe&&ie(fe,G),we&&ie(we,G),te&&ie(te,G),R.value=G}function _(G){const{onClose:fe}=e;fe&&ie(fe,G)}function L(){const{value:G}=u;if(!G)return;const fe="transition-disabled";G.classList.add(fe),D(),G.classList.remove(fe)}const Z=B(null);function ce({transitionDisabled:G}){const fe=c.value;if(!fe)return;G&&fe.classList.add("transition-disabled");const we=k();we&&Z.value&&(Z.value.style.width=`${we.offsetWidth}px`,Z.value.style.height=`${we.offsetHeight}px`,Z.value.style.transform=`translateX(${we.offsetLeft-Et(getComputedStyle(fe).paddingLeft)}px)`,G&&Z.value.offsetWidth),G&&fe.classList.remove("transition-disabled")}ct([w],()=>{e.type==="segment"&&zt(()=>{ce({transitionDisabled:!1})})}),It(()=>{e.type==="segment"&&ce({transitionDisabled:!0})});let ye=0;function _e(G){var fe;if(G.contentRect.width===0&&G.contentRect.height===0||ye===G.contentRect.width)return;ye=G.contentRect.width;const{type:we}=e;if((we==="line"||we==="bar")&&L(),we!=="segment"){const{placement:te}=e;qe((te==="top"||te==="bottom"?(fe=m.value)===null||fe===void 0?void 0:fe.$el:h.value)||null)}}const V=Gd(_e,64);ct([()=>e.justifyContent,()=>e.size],()=>{zt(()=>{const{type:G}=e;(G==="line"||G==="bar")&&L()})});const ze=B(!1);function Ae(G){var fe;const{target:we,contentRect:{width:te,height:X}}=G,he=we.parentElement.parentElement.offsetWidth,Ie=we.parentElement.parentElement.offsetHeight,{placement:me}=e;if(!ze.value)me==="top"||me==="bottom"?heKe.$el.offsetWidth&&(ze.value=!1):Ie-X>Ke.$el.offsetHeight&&(ze.value=!1)}qe(((fe=m.value)===null||fe===void 0?void 0:fe.$el)||null)}const Ne=Gd(Ae,64);function je(){const{onAdd:G}=e;G&&G(),zt(()=>{const fe=k(),{value:we}=m;!fe||!we||we.scrollTo({left:fe.offsetLeft,top:0,behavior:"smooth"})})}function qe(G){if(!G)return;const{placement:fe}=e;if(fe==="top"||fe==="bottom"){const{scrollLeft:we,scrollWidth:te,offsetWidth:X}=G;g.value=we<=0,p.value=we+X>=te}else{const{scrollTop:we,scrollHeight:te,offsetHeight:X}=G;g.value=we<=0,p.value=we+X>=te}}const gt=Gd(G=>{qe(G.target)},64);ot(kf,{triggerRef:le(e,"trigger"),tabStyleRef:le(e,"tabStyle"),tabClassRef:le(e,"tabClass"),addTabStyleRef:le(e,"addTabStyle"),addTabClassRef:le(e,"addTabClass"),paneClassRef:le(e,"paneClass"),paneStyleRef:le(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:le(e,"type"),closableRef:le(e,"closable"),valueRef:w,tabChangeIdRef:C,onBeforeLeaveRef:le(e,"onBeforeLeave"),activateTab:W,handleClose:_,handleAdd:je}),$s(()=>{D(),I()}),Ft(()=>{const{value:G}=f;if(!G)return;const{value:fe}=a,we=`${fe}-tabs-nav-scroll-wrapper--shadow-start`,te=`${fe}-tabs-nav-scroll-wrapper--shadow-end`;g.value?G.classList.remove(we):G.classList.add(we),p.value?G.classList.remove(te):G.classList.add(te)});const at={syncBarPosition:()=>{D()}},Te=()=>{ce({transitionDisabled:!0})},Q=S(()=>{const{value:G}=b,{type:fe}=e,we={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[fe],te=`${G}${we}`,{self:{barColor:X,closeIconColor:he,closeIconColorHover:Ie,closeIconColorPressed:me,tabColor:Ke,tabBorderColor:st,paneTextColor:xt,tabFontWeight:vt,tabBorderRadius:bt,tabFontWeightActive:pt,colorSegment:He,fontWeightStrong:nt,tabColorSegment:K,closeSize:H,closeIconSize:pe,closeColorHover:$e,closeColorPressed:Oe,closeBorderRadius:ne,[be("panePadding",G)]:Se,[be("tabPadding",te)]:ee,[be("tabPaddingVertical",te)]:Ce,[be("tabGap",te)]:Ue,[be("tabGap",`${te}Vertical`)]:Ye,[be("tabTextColor",fe)]:se,[be("tabTextColorActive",fe)]:Me,[be("tabTextColorHover",fe)]:re,[be("tabTextColorDisabled",fe)]:ke,[be("tabFontSize",G)]:De},common:{cubicBezierEaseInOut:Qe}}=d.value;return{"--n-bezier":Qe,"--n-color-segment":He,"--n-bar-color":X,"--n-tab-font-size":De,"--n-tab-text-color":se,"--n-tab-text-color-active":Me,"--n-tab-text-color-disabled":ke,"--n-tab-text-color-hover":re,"--n-pane-text-color":xt,"--n-tab-border-color":st,"--n-tab-border-radius":bt,"--n-close-size":H,"--n-close-icon-size":pe,"--n-close-color-hover":$e,"--n-close-color-pressed":Oe,"--n-close-border-radius":ne,"--n-close-icon-color":he,"--n-close-icon-color-hover":Ie,"--n-close-icon-color-pressed":me,"--n-tab-color":Ke,"--n-tab-font-weight":vt,"--n-tab-font-weight-active":pt,"--n-tab-padding":ee,"--n-tab-padding-vertical":Ce,"--n-tab-gap":Ue,"--n-tab-gap-vertical":Ye,"--n-pane-padding-left":cn(Se,"left"),"--n-pane-padding-right":cn(Se,"right"),"--n-pane-padding-top":cn(Se,"top"),"--n-pane-padding-bottom":cn(Se,"bottom"),"--n-font-weight-strong":nt,"--n-tab-color-segment":K}}),ue=l?Xe("tabs",S(()=>`${b.value[0]}${e.type[0]}`),Q,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:w,renderedNames:new Set,segmentCapsuleElRef:Z,tabsPaneWrapperRef:A,tabsElRef:c,barElRef:u,addTabInstRef:v,xScrollInstRef:m,scrollWrapperElRef:f,addTabFixed:ze,tabWrapperStyle:P,handleNavResize:V,mergedSize:b,handleScroll:gt,handleTabsResize:Ne,cssVars:l?void 0:Q,themeClass:ue?.themeClass,animationDirection:ae,renderNameListRef:ve,yScrollElRef:h,handleSegmentResize:Te,onAnimationBeforeLeave:U,onAnimationEnter:q,onAnimationAfterEnter:J,onRender:ue?.onRender},at)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:o,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:d,paneWrapperStyle:c,$slots:{default:u,prefix:f,suffix:v}}=this;l?.();const m=u?Yn(u()).filter(C=>C.type.__TAB_PANE__===!0):[],h=u?Yn(u()).filter(C=>C.type.__TAB__===!0):[],g=!h.length,p=t==="card",b=t==="segment",y=!p&&!b&&this.justifyContent;a.value=[];const R=()=>{const C=s("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:s("div",{class:`${e}-tabs-scroll-padding`,style:n==="top"||n==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?m.map((P,k)=>(a.value.push(P.props.name),Xd(s(ws,Object.assign({},P.props,{internalCreatedByPane:!0,internalLeftPadded:k!==0&&(!y||y==="center"||y==="start"||y==="end")}),P.children?{default:P.children.tab}:void 0)))):h.map((P,k)=>(a.value.push(P.props.name),Xd(k!==0&&!y?Cg(P):P))),!r&&o&&p?wg(o,(g?m.length:h.length)!==0):null,y?null:s("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return s("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},p&&o?s(Nn,{onResize:this.handleTabsResize},{default:()=>C}):C,p?s("div",{class:`${e}-tabs-pad`}):null,p?null:s("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},w=b?"top":n;return s("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${w}`],style:this.cssVars},s("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${w}`,`${e}-tabs-nav`]},yt(f,C=>C&&s("div",{class:`${e}-tabs-nav__prefix`},C)),b?s(Nn,{onResize:this.handleSegmentResize},{default:()=>s("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},s("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},s("div",{class:`${e}-tabs-wrapper`},s("div",{class:`${e}-tabs-tab`}))),g?m.map((C,P)=>(a.value.push(C.props.name),s(ws,Object.assign({},C.props,{internalCreatedByPane:!0,internalLeftPadded:P!==0}),C.children?{default:C.children.tab}:void 0))):h.map((C,P)=>(a.value.push(C.props.name),P===0?C:Cg(C))))}):s(Nn,{onResize:this.handleNavResize},{default:()=>s("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(w)?s(WS,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:R}):s("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},R()))}),r&&o&&p?wg(o,!0):null,yt(v,C=>C&&s("div",{class:`${e}-tabs-nav__suffix`},C))),g&&(this.animated&&(w==="top"||w==="bottom")?s("div",{ref:"tabsPaneWrapperRef",style:c,class:[`${e}-tabs-pane-wrapper`,d]},yg(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):yg(m,this.mergedValue,this.renderedNames)))}});function yg(e,t,n,r,o,i,a){const l=[];return e.forEach(d=>{const{name:c,displayDirective:u,"display-directive":f}=d.props,v=h=>u===h||f===h,m=t===c;if(d.key!==void 0&&(d.key=c),m||v("show")||v("show:lazy")&&n.has(c)){n.has(c)||n.add(c);const h=!v("if");l.push(h?rn(d,[[lr,m]]):d)}}),a?s(Rs,{name:`${a}-transition`,onBeforeLeave:r,onEnter:o,onAfterEnter:i},{default:()=>l}):l}function wg(e,t){return s(ws,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function Cg(e){const t=ri(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Xd(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const yN=x("thing",` + display: flex; + transition: color .3s var(--n-bezier); + font-size: var(--n-font-size); + color: var(--n-text-color); +`,[x("thing-avatar",` + margin-right: 12px; + margin-top: 2px; + `),x("thing-avatar-header-wrapper",` + display: flex; + flex-wrap: nowrap; + `,[x("thing-header-wrapper",` + flex: 1; + `)]),x("thing-main",` + flex-grow: 1; + `,[x("thing-header",` + display: flex; + margin-bottom: 4px; + justify-content: space-between; + align-items: center; + `,[F("title",` + font-size: 16px; + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + color: var(--n-title-text-color); + `)]),F("description",[z("&:not(:last-child)",` + margin-bottom: 4px; + `)]),F("content",[z("&:not(:first-child)",` + margin-top: 12px; + `)]),F("footer",[z("&:not(:first-child)",` + margin-top: 12px; + `)]),F("action",[z("&:not(:first-child)",` + margin-top: 12px; + `)])])]),F1=Object.assign(Object.assign({},ge.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),wN=Y({name:"Thing",props:F1,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=Ee(e),i=ge("Thing","-thing",yN,RD,e,n),a=Bt("Thing",o,n),l=S(()=>{const{self:{titleTextColor:c,textColor:u,titleFontWeight:f,fontSize:v},common:{cubicBezierEaseInOut:m}}=i.value;return{"--n-bezier":m,"--n-font-size":v,"--n-text-color":u,"--n-title-font-weight":f,"--n-title-text-color":c}}),d=r?Xe("thing",void 0,l,e):void 0;return()=>{var c;const{value:u}=n,f=a?a.value:!1;return(c=d?.onRender)===null||c===void 0||c.call(d),s("div",{class:[`${u}-thing`,d?.themeClass,f&&`${u}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?s("div",{class:`${u}-thing-avatar`},t.avatar()):null,s("div",{class:`${u}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?s("div",{class:`${u}-thing-avatar-header-wrapper`},t.avatar?s("div",{class:`${u}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?s("div",{class:`${u}-thing-header-wrapper`},s("div",{class:`${u}-thing-header`},t.header||e.title?s("div",{class:`${u}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?s("div",{class:`${u}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?s("div",{class:[`${u}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null):null):s(qt,null,t.header||e.title||t["header-extra"]||e.titleExtra?s("div",{class:`${u}-thing-header`},t.header||e.title?s("div",{class:`${u}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?s("div",{class:`${u}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?s("div",{class:[`${u}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?s("div",{class:[`${u}-thing-main__content`,e.contentClass],style:e.contentStyle},t.default?t.default():e.content):null,t.footer?s("div",{class:`${u}-thing-main__footer`},t.footer()):null,t.action?s("div",{class:`${u}-thing-main__action`},t.action()):null))}}}),M1={time:{type:[Number,Date],default:void 0},type:{type:String,default:"datetime"},to:{type:[Number,Date],default:void 0},unix:Boolean,format:String,text:Boolean,timeZone:String},CN=Y({name:"Time",props:M1,setup(e){const t=Date.now(),{localeRef:n,dateLocaleRef:r}=on("Time"),o=S(()=>{const{timeZone:c}=e;return c?(u,f,v)=>px(u,c,f,v):Dt}),i=S(()=>({locale:r.value.locale})),a=S(()=>{const{time:c}=e;return e.unix?c===void 0?t:xv(typeof c=="number"?c:c.valueOf()):c??t}),l=S(()=>{const{to:c}=e;return e.unix?c===void 0?t:xv(typeof c=="number"?c:c.valueOf()):c??t});return{renderedTime:S(()=>e.format?o.value(a.value,e.format,i.value):e.type==="date"?o.value(a.value,n.value.dateFormat,i.value):e.type==="datetime"?o.value(a.value,n.value.dateTimeFormat,i.value):F4(a.value,l.value,{addSuffix:!0,locale:r.value.locale}))}},render(){return this.text?ni(this.renderedTime):s("time",[this.renderedTime])}}),Sg=1.25,SN=x("timeline",` + position: relative; + width: 100%; + display: flex; + flex-direction: column; + line-height: ${Sg}; +`,[M("horizontal",` + flex-direction: row; + `,[z(">",[x("timeline-item",` + flex-shrink: 0; + padding-right: 40px; + `,[M("dashed-line-type",[z(">",[x("timeline-item-timeline",[F("line",` + background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); + background-size: 10px 1px; + `)])])]),z(">",[x("timeline-item-content",` + margin-top: calc(var(--n-icon-size) + 12px); + `,[z(">",[F("meta",` + margin-top: 6px; + margin-bottom: unset; + `)])]),x("timeline-item-timeline",` + width: 100%; + height: calc(var(--n-icon-size) + 12px); + `,[F("line",` + left: var(--n-icon-size); + top: calc(var(--n-icon-size) / 2 - 1px); + right: 0px; + width: unset; + height: 2px; + `)])])])])]),M("right-placement",[x("timeline-item",[x("timeline-item-content",` + text-align: right; + margin-right: calc(var(--n-icon-size) + 12px); + `),x("timeline-item-timeline",` + width: var(--n-icon-size); + right: 0; + `)])]),M("left-placement",[x("timeline-item",[x("timeline-item-content",` + margin-left: calc(var(--n-icon-size) + 12px); + `),x("timeline-item-timeline",` + left: 0; + `)])]),x("timeline-item",` + position: relative; + `,[z("&:last-child",[x("timeline-item-timeline",[F("line",` + display: none; + `)]),x("timeline-item-content",[F("meta",` + margin-bottom: 0; + `)])]),x("timeline-item-content",[F("title",` + margin: var(--n-title-margin); + font-size: var(--n-title-font-size); + transition: color .3s var(--n-bezier); + font-weight: var(--n-title-font-weight); + color: var(--n-title-text-color); + `),F("content",` + transition: color .3s var(--n-bezier); + font-size: var(--n-content-font-size); + color: var(--n-content-text-color); + `),F("meta",` + transition: color .3s var(--n-bezier); + font-size: 12px; + margin-top: 6px; + margin-bottom: 20px; + color: var(--n-meta-text-color); + `)]),M("dashed-line-type",[x("timeline-item-timeline",[F("line",` + --n-color-start: var(--n-line-color); + transition: --n-color-start .3s var(--n-bezier); + background-color: transparent; + background-image: linear-gradient(180deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%); + background-size: 1px 10px; + `)])]),x("timeline-item-timeline",` + width: calc(var(--n-icon-size) + 12px); + position: absolute; + top: calc(var(--n-title-font-size) * ${Sg} / 2 - var(--n-icon-size) / 2); + height: 100%; + `,[F("circle",` + border: var(--n-circle-border); + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + width: var(--n-icon-size); + height: var(--n-icon-size); + border-radius: var(--n-icon-size); + box-sizing: border-box; + `),F("icon",` + color: var(--n-icon-color); + font-size: var(--n-icon-size); + height: var(--n-icon-size); + width: var(--n-icon-size); + display: flex; + align-items: center; + justify-content: center; + `),F("line",` + transition: background-color .3s var(--n-bezier); + position: absolute; + top: var(--n-icon-size); + left: calc(var(--n-icon-size) / 2 - 1px); + bottom: 0px; + width: 2px; + background-color: var(--n-line-color); + `)])])]),I1=Object.assign(Object.assign({},ge.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),B1="n-timeline",RN=Y({name:"Timeline",props:I1,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=Ee(e),r=ge("Timeline","-timeline",SN,zD,e,n);return ot(B1,{props:e,mergedThemeRef:r,mergedClsPrefixRef:n}),()=>{const{value:o}=n;return s("div",{class:[`${o}-timeline`,e.horizontal&&`${o}-timeline--horizontal`,`${o}-timeline--${e.size}-size`,!e.horizontal&&`${o}-timeline--${e.itemPlacement}-placement`]},t)}}}),A1={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}},kN=Y({name:"TimelineItem",props:A1,slots:Object,setup(e){const t=Be(B1);t||mn("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),gu();const{inlineThemeDisabled:n}=Ee(),r=S(()=>{const{props:{size:i,iconSize:a},mergedThemeRef:l}=t,{type:d}=e,{self:{titleTextColor:c,contentTextColor:u,metaTextColor:f,lineColor:v,titleFontWeight:m,contentFontSize:h,[be("iconSize",i)]:g,[be("titleMargin",i)]:p,[be("titleFontSize",i)]:b,[be("circleBorder",d)]:y,[be("iconColor",d)]:R},common:{cubicBezierEaseInOut:w}}=l.value;return{"--n-bezier":w,"--n-circle-border":y,"--n-icon-color":R,"--n-content-font-size":h,"--n-content-text-color":u,"--n-line-color":v,"--n-meta-text-color":f,"--n-title-font-size":b,"--n-title-font-weight":m,"--n-title-margin":p,"--n-title-text-color":c,"--n-icon-size":Pt(a)||g}}),o=n?Xe("timeline-item",S(()=>{const{props:{size:i,iconSize:a}}=t,{type:l}=e;return`${i[0]}${a||"a"}${l[0]}`}),r,t.props):void 0;return{mergedClsPrefix:t.mergedClsPrefixRef,cssVars:n?void 0:r,themeClass:o?.themeClass,onRender:o?.onRender}},render(){const{mergedClsPrefix:e,color:t,onRender:n,$slots:r}=this;return n?.(),s("div",{class:[`${e}-timeline-item`,this.themeClass,`${e}-timeline-item--${this.type}-type`,`${e}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},s("div",{class:`${e}-timeline-item-timeline`},s("div",{class:`${e}-timeline-item-timeline__line`}),yt(r.icon,o=>o?s("div",{class:`${e}-timeline-item-timeline__icon`,style:{color:t}},o):s("div",{class:`${e}-timeline-item-timeline__circle`,style:{borderColor:t}}))),s("div",{class:`${e}-timeline-item-content`},yt(r.header,o=>o||this.title?s("div",{class:`${e}-timeline-item-content__title`},o||this.title):null),s("div",{class:`${e}-timeline-item-content__content`},ht(r.default,()=>[this.content])),s("div",{class:`${e}-timeline-item-content__meta`},ht(r.footer,()=>[this.time]))))}}),cl="n-transfer",PN=x("transfer",` + width: 100%; + font-size: var(--n-font-size); + height: 300px; + display: flex; + flex-wrap: nowrap; + word-break: break-word; +`,[M("disabled",[x("transfer-list",[x("transfer-list-header",[F("title",` + color: var(--n-header-text-color-disabled); + `),F("extra",` + color: var(--n-header-extra-text-color-disabled); + `)])])]),x("transfer-list",` + flex: 1; + min-width: 0; + height: inherit; + display: flex; + flex-direction: column; + background-clip: padding-box; + position: relative; + transition: background-color .3s var(--n-bezier); + background-color: var(--n-list-color); + `,[M("source",` + border-top-left-radius: var(--n-border-radius); + border-bottom-left-radius: var(--n-border-radius); + `,[F("border","border-right: 1px solid var(--n-divider-color);")]),M("target",` + border-top-right-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `,[F("border","border-left: none;")]),F("border",` + padding: 0 12px; + border: 1px solid var(--n-border-color); + transition: border-color .3s var(--n-bezier); + pointer-events: none; + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `),x("transfer-list-header",` + min-height: var(--n-header-height); + box-sizing: border-box; + display: flex; + padding: 12px 12px 10px 12px; + align-items: center; + background-clip: padding-box; + border-radius: inherit; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + line-height: 1.5; + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `,[z("> *:not(:first-child)",` + margin-left: 8px; + `),F("title",` + flex: 1; + min-width: 0; + line-height: 1.5; + font-size: var(--n-header-font-size); + font-weight: var(--n-header-font-weight); + transition: color .3s var(--n-bezier); + color: var(--n-header-text-color); + `),F("button",` + position: relative; + `),F("extra",` + transition: color .3s var(--n-bezier); + font-size: var(--n-extra-font-size); + margin-right: 0; + white-space: nowrap; + color: var(--n-header-extra-text-color); + `)]),x("transfer-list-body",` + flex-basis: 0; + flex-grow: 1; + box-sizing: border-box; + position: relative; + display: flex; + flex-direction: column; + border-radius: inherit; + border-top-left-radius: 0; + border-top-right-radius: 0; + `,[x("transfer-filter",` + padding: 4px 12px 8px 12px; + box-sizing: border-box; + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),x("transfer-list-flex-container",` + flex: 1; + position: relative; + `,[x("scrollbar",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + height: unset; + `),x("empty",` + position: absolute; + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + `),x("transfer-list-content",` + padding: 0; + margin: 0; + position: relative; + `,[x("transfer-list-item",` + padding: 0 12px; + min-height: var(--n-item-height); + display: flex; + align-items: center; + color: var(--n-item-text-color); + position: relative; + transition: color .3s var(--n-bezier); + `,[F("background",` + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),F("checkbox",` + position: relative; + margin-right: 8px; + `),F("close",` + opacity: 0; + pointer-events: none; + position: relative; + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),F("label",` + position: relative; + min-width: 0; + flex-grow: 1; + `),M("source","cursor: pointer;"),M("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `),ft("disabled",[z("&:hover",[F("background","background-color: var(--n-item-color-pending);"),F("close",` + opacity: 1; + pointer-events: all; + `)])])])])])])])]),Rg=Y({name:"TransferFilter",props:{value:String,placeholder:String,disabled:Boolean,onUpdateValue:{type:Function,required:!0}},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Be(cl);return{mergedClsPrefix:t,mergedTheme:e}},render(){const{mergedTheme:e,mergedClsPrefix:t}=this;return s("div",{class:`${t}-transfer-filter`},s(Sn,{value:this.value,onUpdateValue:this.onUpdateValue,disabled:this.disabled,placeholder:this.placeholder,theme:e.peers.Input,themeOverrides:e.peerOverrides.Input,clearable:!0,size:"small"},{"clear-icon-placeholder":()=>s(lt,{clsPrefix:t},{default:()=>s(Zp,null)})}))}}),kg=Y({name:"TransferHeader",props:{size:{type:String,required:!0},selectAllText:String,clearText:String,source:Boolean,onCheckedAll:Function,onClearAll:Function,title:[String,Function]},setup(e){const{targetOptionsRef:t,canNotSelectAnythingRef:n,canBeClearedRef:r,allCheckedRef:o,mergedThemeRef:i,disabledRef:a,mergedClsPrefixRef:l,srcOptionsLengthRef:d}=Be(cl),{localeRef:c}=on("Transfer");return()=>{const{source:u,onClearAll:f,onCheckedAll:v,selectAllText:m,clearText:h}=e,{value:g}=i,{value:p}=l,{value:b}=c,y=e.size==="large"?"small":"tiny",{title:R}=e;return s("div",{class:`${p}-transfer-list-header`},R&&s("div",{class:`${p}-transfer-list-header__title`},typeof R=="function"?R():R),u&&s(Ot,{class:`${p}-transfer-list-header__button`,theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:y,tertiary:!0,onClick:o.value?f:v,disabled:n.value||a.value},{default:()=>o.value?h||b.unselectAll:m||b.selectAll}),!u&&r.value&&s(Ot,{class:`${p}-transfer-list-header__button`,theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:y,tertiary:!0,onClick:f,disabled:a.value},{default:()=>b.clearAll}),s("div",{class:`${p}-transfer-list-header__extra`},u?b.total(d.value):b.selected(t.value.length)))}}}),Pg=Y({name:"NTransferListItem",props:{source:Boolean,label:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:Boolean,option:{type:Object,required:!0}},setup(e){const{targetValueSetRef:t,mergedClsPrefixRef:n,mergedThemeRef:r,handleItemCheck:o,renderSourceLabelRef:i,renderTargetLabelRef:a,showSelectedRef:l}=Be(cl),d=it(()=>t.value.has(e.value));function c(){e.disabled||o(!d.value,e.value)}return{mergedClsPrefix:n,mergedTheme:r,checked:d,showSelected:l,renderSourceLabel:i,renderTargetLabel:a,handleClick:c}},render(){const{disabled:e,mergedTheme:t,mergedClsPrefix:n,label:r,checked:o,source:i,renderSourceLabel:a,renderTargetLabel:l}=this;return s("div",{class:[`${n}-transfer-list-item`,e&&`${n}-transfer-list-item--disabled`,i?`${n}-transfer-list-item--source`:`${n}-transfer-list-item--target`],onClick:i?this.handleClick:void 0},s("div",{class:`${n}-transfer-list-item__background`}),i&&this.showSelected&&s("div",{class:`${n}-transfer-list-item__checkbox`},s(so,{theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,disabled:e,checked:o})),s("div",{class:`${n}-transfer-list-item__label`,title:Hi(r)},i?a?a({option:this.option}):r:l?l({option:this.option}):r),!i&&!e&&s(lo,{focusable:!1,class:`${n}-transfer-list-item__close`,clsPrefix:n,onClick:this.handleClick}))}}),zg=Y({name:"TransferList",props:{virtualScroll:{type:Boolean,required:!0},itemSize:{type:Number,required:!0},options:{type:Array,required:!0},disabled:{type:Boolean,required:!0},source:Boolean},setup(){const{mergedThemeRef:e,mergedClsPrefixRef:t}=Be(cl),n=B(null),r=B(null);function o(){var l;(l=n.value)===null||l===void 0||l.sync()}function i(){const{value:l}=r;if(!l)return null;const{listElRef:d}=l;return d}function a(){const{value:l}=r;if(!l)return null;const{itemsElRef:d}=l;return d}return{mergedTheme:e,mergedClsPrefix:t,scrollerInstRef:n,vlInstRef:r,syncVLScroller:o,scrollContainer:i,scrollContent:a}},render(){const{mergedTheme:e,options:t}=this;if(t.length===0)return s(to,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty});const{mergedClsPrefix:n,virtualScroll:r,source:o,disabled:i,syncVLScroller:a}=this;return s(Zt,{ref:"scrollerInstRef",theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,container:r?this.scrollContainer:void 0,content:r?this.scrollContent:void 0},{default:()=>r?s($r,{ref:"vlInstRef",style:{height:"100%"},class:`${n}-transfer-list-content`,items:this.options,itemSize:this.itemSize,showScrollbar:!1,onResize:a,onScroll:a,keyField:"value"},{default:({item:l})=>{const{source:d,disabled:c}=this;return s(Pg,{source:d,key:l.value,value:l.value,disabled:l.disabled||c,label:l.label,option:l})}}):s("div",{class:`${n}-transfer-list-content`},t.map(l=>s(Pg,{source:o,key:l.value,value:l.value,disabled:l.disabled||i,label:l.label,option:l})))})}});function zN(e){const t=B(e.defaultValue),n=St(le(e,"value"),t),r=S(()=>{const w=new Map;return(e.options||[]).forEach(C=>w.set(C.value,C)),w}),o=S(()=>new Set(n.value||[])),i=S(()=>{const w=r.value,C=[];return(n.value||[]).forEach(P=>{const k=w.get(P);k&&C.push(k)}),C}),a=B(""),l=B(""),d=S(()=>e.sourceFilterable||!!e.filterable),c=S(()=>{const{showSelected:w,options:C,filter:P}=e;return d.value?C.filter(k=>P(a.value,k,"source")&&(w||!o.value.has(k.value))):w?C:C.filter(k=>!o.value.has(k.value))}),u=S(()=>{if(!e.targetFilterable)return i.value;const{filter:w}=e;return i.value.filter(C=>w(l.value,C,"target"))}),f=S(()=>{const{value:w}=n;return w===null?new Set:new Set(w)}),v=S(()=>{const w=new Set(f.value);return c.value.forEach(C=>{!C.disabled&&!w.has(C.value)&&w.add(C.value)}),w}),m=S(()=>{const w=new Set(f.value);return c.value.forEach(C=>{!C.disabled&&w.has(C.value)&&w.delete(C.value)}),w}),h=S(()=>{const w=new Set(f.value);return u.value.forEach(C=>{C.disabled||w.delete(C.value)}),w}),g=S(()=>c.value.every(w=>w.disabled)),p=S(()=>{if(!c.value.length)return!1;const w=f.value;return c.value.every(C=>C.disabled||w.has(C.value))}),b=S(()=>u.value.some(w=>!w.disabled));function y(w){a.value=w??""}function R(w){l.value=w??""}return{uncontrolledValueRef:t,mergedValueRef:n,targetValueSetRef:o,valueSetForCheckAllRef:v,valueSetForUncheckAllRef:m,valueSetForClearRef:h,filteredTgtOptionsRef:u,filteredSrcOptionsRef:c,targetOptionsRef:i,canNotSelectAnythingRef:g,canBeClearedRef:b,allCheckedRef:p,srcPatternRef:a,tgtPatternRef:l,mergedSrcFilterableRef:d,handleSrcFilterUpdateValue:y,handleTgtFilterUpdateValue:R}}const D1=Object.assign(Object.assign({},ge.props),{value:Array,defaultValue:{type:Array,default:null},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:void 0},virtualScroll:Boolean,sourceTitle:[String,Function],selectAllText:String,clearText:String,targetTitle:[String,Function],filterable:{type:Boolean,default:void 0},sourceFilterable:Boolean,targetFilterable:Boolean,showSelected:{type:Boolean,default:!0},sourceFilterPlaceholder:String,targetFilterPlaceholder:String,filter:{type:Function,default:(e,t)=>e?~`${t.label}`.toLowerCase().indexOf(`${e}`.toLowerCase()):!0},size:String,renderSourceLabel:Function,renderTargetLabel:Function,renderSourceList:Function,renderTargetList:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]}),$N=Y({name:"Transfer",props:D1,setup(e){const{mergedClsPrefixRef:t}=Ee(e),n=ge("Transfer","-transfer",PN,OD,e,t),r=ln(e),{mergedSizeRef:o,mergedDisabledRef:i}=r,a=S(()=>{const{value:E}=o,{self:{[be("itemHeight",E)]:N}}=n.value;return Et(N)}),{uncontrolledValueRef:l,mergedValueRef:d,targetValueSetRef:c,valueSetForCheckAllRef:u,valueSetForUncheckAllRef:f,valueSetForClearRef:v,filteredTgtOptionsRef:m,filteredSrcOptionsRef:h,targetOptionsRef:g,canNotSelectAnythingRef:p,canBeClearedRef:b,allCheckedRef:y,srcPatternRef:R,tgtPatternRef:w,mergedSrcFilterableRef:C,handleSrcFilterUpdateValue:P,handleTgtFilterUpdateValue:k}=zN(e);function O(E){const{onUpdateValue:N,"onUpdate:value":U,onChange:q}=e,{nTriggerFormInput:J,nTriggerFormChange:ve}=r;N&&ie(N,E),U&&ie(U,E),q&&ie(q,E),l.value=E,J(),ve()}function $(){O([...u.value])}function T(){O([...f.value])}function D(){O([...v.value])}function I(E,N){O(E?(d.value||[]).concat(N):(d.value||[]).filter(U=>U!==N))}function A(E){O(E)}return ot(cl,{targetValueSetRef:c,mergedClsPrefixRef:t,disabledRef:i,mergedThemeRef:n,targetOptionsRef:g,canNotSelectAnythingRef:p,canBeClearedRef:b,allCheckedRef:y,srcOptionsLengthRef:S(()=>e.options.length),handleItemCheck:I,renderSourceLabelRef:le(e,"renderSourceLabel"),renderTargetLabelRef:le(e,"renderTargetLabel"),showSelectedRef:le(e,"showSelected")}),{mergedClsPrefix:t,mergedDisabled:i,itemSize:a,isMounted:$n(),mergedTheme:n,filteredSrcOpts:h,filteredTgtOpts:m,srcPattern:R,tgtPattern:w,mergedSize:o,mergedSrcFilterable:C,handleSrcFilterUpdateValue:P,handleTgtFilterUpdateValue:k,handleSourceCheckAll:$,handleSourceUncheckAll:T,handleTargetClearAll:D,handleItemCheck:I,handleChecked:A,cssVars:S(()=>{const{value:E}=o,{common:{cubicBezierEaseInOut:N},self:{borderRadius:U,borderColor:q,listColor:J,titleTextColor:ve,titleTextColorDisabled:ae,extraTextColor:W,itemTextColor:j,itemColorPending:_,itemTextColorDisabled:L,titleFontWeight:Z,closeColorHover:ce,closeColorPressed:ye,closeIconColor:_e,closeIconColorHover:V,closeIconColorPressed:ze,closeIconSize:Ae,closeSize:Ne,dividerColor:je,extraTextColorDisabled:qe,[be("extraFontSize",E)]:gt,[be("fontSize",E)]:at,[be("titleFontSize",E)]:Te,[be("itemHeight",E)]:Q,[be("headerHeight",E)]:ue}}=n.value;return{"--n-bezier":N,"--n-border-color":q,"--n-border-radius":U,"--n-extra-font-size":gt,"--n-font-size":at,"--n-header-font-size":Te,"--n-header-extra-text-color":W,"--n-header-extra-text-color-disabled":qe,"--n-header-font-weight":Z,"--n-header-text-color":ve,"--n-header-text-color-disabled":ae,"--n-item-color-pending":_,"--n-item-height":Q,"--n-item-text-color":j,"--n-item-text-color-disabled":L,"--n-list-color":J,"--n-header-height":ue,"--n-close-size":Ne,"--n-close-icon-size":Ae,"--n-close-color-hover":ce,"--n-close-color-pressed":ye,"--n-close-icon-color":_e,"--n-close-icon-color-hover":V,"--n-close-icon-color-pressed":ze,"--n-divider-color":je}})}},render(){const{mergedClsPrefix:e,renderSourceList:t,renderTargetList:n,mergedTheme:r,mergedSrcFilterable:o,targetFilterable:i}=this;return s("div",{class:[`${e}-transfer`,this.mergedDisabled&&`${e}-transfer--disabled`],style:this.cssVars},s("div",{class:`${e}-transfer-list ${e}-transfer-list--source`},s(kg,{source:!0,selectAllText:this.selectAllText,clearText:this.clearText,title:this.sourceTitle,onCheckedAll:this.handleSourceCheckAll,onClearAll:this.handleSourceUncheckAll,size:this.mergedSize}),s("div",{class:`${e}-transfer-list-body`},o?s(Rg,{onUpdateValue:this.handleSrcFilterUpdateValue,value:this.srcPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,s("div",{class:`${e}-transfer-list-flex-container`},t?s(Zt,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>t({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.srcPattern})}):s(zg,{source:!0,options:this.filteredSrcOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),s("div",{class:`${e}-transfer-list__border`})),s("div",{class:`${e}-transfer-list ${e}-transfer-list--target`},s(kg,{onClearAll:this.handleTargetClearAll,size:this.mergedSize,title:this.targetTitle}),s("div",{class:`${e}-transfer-list-body`},i?s(Rg,{onUpdateValue:this.handleTgtFilterUpdateValue,value:this.tgtPattern,disabled:this.mergedDisabled,placeholder:this.sourceFilterPlaceholder}):null,s("div",{class:`${e}-transfer-list-flex-container`},n?s(Zt,{theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>n({onCheck:this.handleChecked,checkedOptions:this.filteredTgtOpts,pattern:this.tgtPattern})}):s(zg,{options:this.filteredTgtOpts,disabled:this.mergedDisabled,virtualScroll:this.virtualScroll,itemSize:this.itemSize}))),s("div",{class:`${e}-transfer-list__border`})))}}),zf="n-tree-select";function $g({position:e,offsetLevel:t,indent:n,el:r}){const o={position:"absolute",boxSizing:"border-box",right:0};if(e==="inside")o.left=0,o.top=0,o.bottom=0,o.borderRadius="inherit",o.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const i=e==="before"?"top":"bottom";o[i]=0,o.left=`${r.offsetLeft+6-t*n}px`,o.height="2px",o.backgroundColor="var(--n-drop-mark-color)",o.transformOrigin=i,o.borderRadius="1px",o.transform=e==="before"?"translateY(-4px)":"translateY(4px)"}return s("div",{style:o})}function TN({dropPosition:e,node:t}){return t.isLeaf===!1||t.children?!0:e!=="inside"}const ul="n-tree";function ON({props:e,fNodesRef:t,mergedExpandedKeysRef:n,mergedSelectedKeysRef:r,mergedCheckedKeysRef:o,handleCheck:i,handleSelect:a,handleSwitcherClick:l}){const{value:d}=r,c=Be(zf,null),u=c?c.pendingNodeKeyRef:B(d.length?d[d.length-1]:null);function f(v){var m;if(!e.keyboard)return{enterBehavior:null};const{value:h}=u;let g=null;if(h===null){if((v.key==="ArrowDown"||v.key==="ArrowUp")&&v.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(v.key)&&h===null){const{value:p}=t;let b=0;for(;by.key===h);if(!~b)return{enterBehavior:null};if(v.key==="Enter"){const y=p[b];switch(g=((m=e.overrideDefaultNodeClickBehavior)===null||m===void 0?void 0:m.call(e,{option:y.rawNode}))||null,g){case"toggleCheck":i(y,!o.value.includes(y.key));break;case"toggleSelect":a(y);break;case"toggleExpand":l(y);break;case"none":break;default:g="default",a(y)}}else if(v.key==="ArrowDown")for(v.preventDefault(),b+=1;b=0;){if(!p[b].disabled){u.value=p[b].key;break}b-=1}else if(v.key==="ArrowLeft"){const y=p[b];if(y.isLeaf||!n.value.includes(h)){const R=y.getParent();R&&(u.value=R.key)}else l(y)}else if(v.key==="ArrowRight"){const y=p[b];if(y.isLeaf)return{enterBehavior:null};if(!n.value.includes(h))l(y);else for(b+=1;b{const{clsPrefix:n,expanded:r,hide:o,indent:i,onClick:a}=e;return s("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,r&&`${n}-tree-node-switcher--expanded`,o&&`${n}-tree-node-switcher--hide`],style:{width:`${i}px`},onClick:a},s("div",{class:`${n}-tree-node-switcher__icon`},s(Wr,null,{default:()=>{if(e.loading)return s(Tr,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:l}=t;return l?l({expanded:e.expanded,selected:e.selected,option:e.tmNode.rawNode}):s(lt,{clsPrefix:n,key:"switcher"},{default:()=>s(H3,null)})}})))}}});function _1(e){return S(()=>e.leafOnly?"child":e.checkStrategy)}function ho(e,t){return!!e.rawNode[t]}function E1(e,t,n,r){e?.forEach(o=>{n(o),E1(o[t],t,n,r),r(o)})}function BN(e,t,n,r,o){const i=new Set,a=new Set,l=[];return E1(e,r,d=>{if(l.push(d),o(t,d)){a.add(d[n]);for(let c=l.length-2;c>=0;--c)if(!i.has(l[c][n]))i.add(l[c][n]);else return}},()=>{l.pop()}),{expandedKeys:Array.from(i),highlightKeySet:a}}if(Wn&&Image){const e=new Image;e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function AN(e,t,n,r,o){const i=new Set,a=new Set,l=new Set,d=[],c=[],u=[];function f(m){m.forEach(h=>{if(u.push(h),t(n,h)){i.add(h[r]),l.add(h[r]);for(let p=u.length-2;p>=0;--p){const b=u[p][r];if(!a.has(b))a.add(b),i.has(b)&&i.delete(b);else break}}const g=h[o];g&&f(g),u.pop()})}f(e);function v(m,h){m.forEach(g=>{const p=g[r],b=i.has(p),y=a.has(p);if(!b&&!y)return;const R=g[o];if(R)if(b)h.push(g);else{d.push(p);const w=Object.assign(Object.assign({},g),{[o]:[]});h.push(w),v(R,w[o])}else h.push(g)})}return v(e,c),{filteredTree:c,highlightKeySet:l,expandedKeys:d}}function DN(e){return en(e,"checkbox")?"checkbox":en(e,"switcher")?"switcher":"node"}const N1=Y({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const t=Be(ul),{droppingNodeParentRef:n,droppingMouseNodeRef:r,draggingNodeRef:o,droppingPositionRef:i,droppingOffsetLevelRef:a,nodePropsRef:l,indentRef:d,blockLineRef:c,checkboxPlacementRef:u,checkOnClickRef:f,disabledFieldRef:v,showLineRef:m,renderSwitcherIconRef:h,overrideDefaultNodeClickBehaviorRef:g}=t,p=it(()=>!!e.tmNode.rawNode.checkboxDisabled),b=it(()=>ho(e.tmNode,v.value)),y=it(()=>t.disabledRef.value||b.value),R=S(()=>{const{value:_}=l;if(_)return _({option:e.tmNode.rawNode})}),w=B(null),C={value:null};It(()=>{C.value=w.value.$el});function P(){const _=()=>{const{tmNode:L}=e;if(!L.isLeaf&&!L.shallowLoaded){if(!t.loadingKeysRef.value.has(L.key))t.loadingKeysRef.value.add(L.key);else return;const{onLoadRef:{value:Z}}=t;Z&&Z(L.rawNode).then(ce=>{ce!==!1&&t.handleSwitcherClick(L)}).finally(()=>{t.loadingKeysRef.value.delete(L.key)})}else t.handleSwitcherClick(L)};h.value?setTimeout(_,0):_()}const k=it(()=>!b.value&&t.selectableRef.value&&(t.internalTreeSelect?t.mergedCheckStrategyRef.value!=="child"||t.multipleRef.value&&t.cascadeRef.value||e.tmNode.isLeaf:!0)),O=it(()=>t.checkableRef.value&&(t.cascadeRef.value||t.mergedCheckStrategyRef.value!=="child"||e.tmNode.isLeaf)),$=it(()=>t.displayedCheckedKeysRef.value.includes(e.tmNode.key)),T=it(()=>{const{value:_}=O;if(!_)return!1;const{value:L}=f,{tmNode:Z}=e;return typeof L=="boolean"?!Z.disabled&&L:L(e.tmNode.rawNode)});function D(_){const{value:L}=t.expandOnClickRef,{value:Z}=k,{value:ce}=T;if(!Z&&!L&&!ce||en(_,"checkbox")||en(_,"switcher"))return;const{tmNode:ye}=e;Z&&t.handleSelect(ye),L&&!ye.isLeaf&&P(),ce&&N(!$.value)}function I(_){var L,Z;if(!(en(_,"checkbox")||en(_,"switcher"))){if(!y.value){const ce=g.value;let ye=!1;if(ce)switch(ce({option:e.tmNode.rawNode})){case"toggleCheck":ye=!0,N(!$.value);break;case"toggleSelect":ye=!0,t.handleSelect(e.tmNode);break;case"toggleExpand":ye=!0,P(),ye=!0;break;case"none":ye=!0,ye=!0;return}ye||D(_)}(Z=(L=R.value)===null||L===void 0?void 0:L.onClick)===null||Z===void 0||Z.call(L,_)}}function A(_){c.value||I(_)}function E(_){c.value&&I(_)}function N(_){t.handleCheck(e.tmNode,_)}function U(_){t.handleDragStart({event:_,node:e.tmNode})}function q(_){_.currentTarget===_.target&&t.handleDragEnter({event:_,node:e.tmNode})}function J(_){_.preventDefault(),t.handleDragOver({event:_,node:e.tmNode})}function ve(_){t.handleDragEnd({event:_,node:e.tmNode})}function ae(_){_.currentTarget===_.target&&t.handleDragLeave({event:_,node:e.tmNode})}function W(_){_.preventDefault(),i.value!==null&&t.handleDrop({event:_,node:e.tmNode,dropPosition:i.value})}const j=S(()=>{const{clsPrefix:_}=e,{value:L}=d;if(m.value){const Z=[];let ce=e.tmNode.parent;for(;ce;)ce.isLastChild?Z.push(s("div",{class:`${_}-tree-node-indent`},s("div",{style:{width:`${L}px`}}))):Z.push(s("div",{class:[`${_}-tree-node-indent`,`${_}-tree-node-indent--show-line`]},s("div",{style:{width:`${L}px`}}))),ce=ce.parent;return Z.reverse()}else return wo(e.tmNode.level,s("div",{class:`${e.clsPrefix}-tree-node-indent`},s("div",{style:{width:`${L}px`}})))});return{showDropMark:it(()=>{const{value:_}=o;if(!_)return;const{value:L}=i;if(!L)return;const{value:Z}=r;if(!Z)return;const{tmNode:ce}=e;return ce.key===Z.key}),showDropMarkAsParent:it(()=>{const{value:_}=n;if(!_)return!1;const{tmNode:L}=e,{value:Z}=i;return Z==="before"||Z==="after"?_.key===L.key:!1}),pending:it(()=>t.pendingNodeKeyRef.value===e.tmNode.key),loading:it(()=>t.loadingKeysRef.value.has(e.tmNode.key)),highlight:it(()=>{var _;return(_=t.highlightKeySetRef.value)===null||_===void 0?void 0:_.has(e.tmNode.key)}),checked:$,indeterminate:it(()=>t.displayedIndeterminateKeysRef.value.includes(e.tmNode.key)),selected:it(()=>t.mergedSelectedKeysRef.value.includes(e.tmNode.key)),expanded:it(()=>t.mergedExpandedKeysRef.value.includes(e.tmNode.key)),disabled:y,checkable:O,mergedCheckOnClick:T,checkboxDisabled:p,selectable:k,expandOnClick:t.expandOnClickRef,internalScrollable:t.internalScrollableRef,draggable:t.draggableRef,blockLine:c,nodeProps:R,checkboxFocusable:t.internalCheckboxFocusableRef,droppingPosition:i,droppingOffsetLevel:a,indent:d,checkboxPlacement:u,showLine:m,contentInstRef:w,contentElRef:C,indentNodes:j,handleCheck:N,handleDrop:W,handleDragStart:U,handleDragEnter:q,handleDragOver:J,handleDragEnd:ve,handleDragLeave:ae,handleLineClick:E,handleContentClick:A,handleSwitcherClick:P}},render(){const{tmNode:e,clsPrefix:t,checkable:n,expandOnClick:r,selectable:o,selected:i,checked:a,highlight:l,draggable:d,blockLine:c,indent:u,indentNodes:f,disabled:v,pending:m,internalScrollable:h,nodeProps:g,checkboxPlacement:p}=this,b=d&&!v?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,y=h?Wm(e.key):void 0,R=p==="right",w=n?s(FN,{indent:u,right:R,focusable:this.checkboxFocusable,disabled:v||this.checkboxDisabled,clsPrefix:t,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return s("div",Object.assign({class:`${t}-tree-node-wrapper`},b),s("div",Object.assign({},c?g:void 0,{class:[`${t}-tree-node`,{[`${t}-tree-node--selected`]:i,[`${t}-tree-node--checkable`]:n,[`${t}-tree-node--highlight`]:l,[`${t}-tree-node--pending`]:m,[`${t}-tree-node--disabled`]:v,[`${t}-tree-node--selectable`]:o,[`${t}-tree-node--clickable`]:o||r||this.mergedCheckOnClick},g?.class],"data-key":y,draggable:d&&c,onClick:this.handleLineClick,onDragstart:d&&c&&!v?this.handleDragStart:void 0}),f,e.isLeaf&&this.showLine?s("div",{class:[`${t}-tree-node-indent`,`${t}-tree-node-indent--show-line`,e.isLeaf&&`${t}-tree-node-indent--is-leaf`,e.isLastChild&&`${t}-tree-node-indent--last-child`]},s("div",{style:{width:`${u}px`}})):s(IN,{clsPrefix:t,expanded:this.expanded,selected:i,loading:this.loading,hide:e.isLeaf,tmNode:this.tmNode,indent:u,onClick:this.handleSwitcherClick}),R?null:w,s(MN,{ref:"contentInstRef",clsPrefix:t,checked:a,selected:i,onClick:this.handleContentClick,nodeProps:c?void 0:g,onDragstart:d&&!c&&!v?this.handleDragStart:void 0,tmNode:e}),d?this.showDropMark?$g({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:u}):this.showDropMarkAsParent?$g({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:u}):null:null,R?w:null))}}),_N=Y({name:"TreeMotionWrapper",props:{clsPrefix:{type:String,required:!0},height:Number,nodes:{type:Array,required:!0},mode:{type:String,required:!0},onAfterEnter:{type:Function,required:!0}},render(){const{clsPrefix:e}=this;return s(Kr,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>s("div",{class:[`${e}-tree-motion-wrapper`,`${e}-tree-motion-wrapper--${this.mode}`],style:{height:Vt(this.height)}},this.nodes.map(t=>s(N1,{clsPrefix:e,tmNode:t})))})}}),Zd=Fn(),EN=x("tree",` + font-size: var(--n-font-size); + outline: none; +`,[z("ul, li",` + margin: 0; + padding: 0; + list-style: none; + `),z(">",[x("tree-node",[z("&:first-child","margin-top: 0;")])]),x("tree-motion-wrapper",[M("expand",[no({duration:"0.2s"})]),M("collapse",[no({duration:"0.2s",reverse:!0})])]),x("tree-node-wrapper",` + box-sizing: border-box; + padding: var(--n-node-wrapper-padding); + `),x("tree-node",` + position: relative; + display: flex; + border-radius: var(--n-node-border-radius); + transition: background-color .3s var(--n-bezier); + `,[M("highlight",[x("tree-node-content",[F("text","border-bottom-color: var(--n-node-text-color-disabled);")])]),M("disabled",[x("tree-node-content",` + color: var(--n-node-text-color-disabled); + cursor: not-allowed; + `)]),ft("disabled",[M("clickable",[x("tree-node-content",` + cursor: pointer; + `)])])]),M("block-node",[x("tree-node-content",` + flex: 1; + min-width: 0; + `)]),ft("block-line",[x("tree-node",[ft("disabled",[x("tree-node-content",[z("&:hover","background: var(--n-node-color-hover);")]),M("selectable",[x("tree-node-content",[z("&:active","background: var(--n-node-color-pressed);")])]),M("pending",[x("tree-node-content",` + background: var(--n-node-color-hover); + `)]),M("selected",[x("tree-node-content","background: var(--n-node-color-active);")])]),M("selected",[x("tree-node-content","background: var(--n-node-color-active);")])])]),M("block-line",[x("tree-node",[ft("disabled",[z("&:hover","background: var(--n-node-color-hover);"),M("pending",` + background: var(--n-node-color-hover); + `),M("selectable",[ft("selected",[z("&:active","background: var(--n-node-color-pressed);")])]),M("selected","background: var(--n-node-color-active);")]),M("selected","background: var(--n-node-color-active);"),M("disabled",` + cursor: not-allowed; + `)])]),M("ellipsis",[x("tree-node",[x("tree-node-content",` + overflow: hidden; + `,[F("text",` + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + `)])])]),x("tree-node-indent",` + flex-grow: 0; + flex-shrink: 0; + `,[M("show-line","position: relative",[z("&::before",` + position: absolute; + left: 50%; + border-left: 1px solid var(--n-line-color); + transition: border-color .3s var(--n-bezier); + transform: translate(-50%); + content: ""; + top: var(--n-line-offset-top); + bottom: var(--n-line-offset-bottom); + `),M("last-child",[z("&::before",` + bottom: 50%; + `)]),M("is-leaf",[z("&::after",` + position: absolute; + content: ""; + left: calc(50% + 0.5px); + right: 0; + bottom: 50%; + transition: border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-line-color); + `)])]),ft("show-line","height: 0;")]),x("tree-node-switcher",` + cursor: pointer; + display: inline-flex; + flex-shrink: 0; + height: var(--n-node-content-height); + align-items: center; + justify-content: center; + transition: transform .15s var(--n-bezier); + vertical-align: bottom; + `,[F("icon",` + position: relative; + height: 14px; + width: 14px; + display: flex; + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + font-size: 14px; + `,[x("icon",[Zd]),x("base-loading",` + color: var(--n-loading-color); + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + `,[Zd]),x("base-icon",[Zd])]),M("hide","visibility: hidden;"),M("expanded","transform: rotate(90deg);")]),x("tree-node-checkbox",` + display: inline-flex; + height: var(--n-node-content-height); + vertical-align: bottom; + align-items: center; + justify-content: center; + `),x("tree-node-content",` + user-select: none; + position: relative; + display: inline-flex; + align-items: center; + min-height: var(--n-node-content-height); + box-sizing: border-box; + line-height: var(--n-line-height); + vertical-align: bottom; + padding: 0 6px 0 4px; + cursor: default; + border-radius: var(--n-node-border-radius); + color: var(--n-node-text-color); + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[z("&:last-child","margin-bottom: 0;"),F("prefix",` + display: inline-flex; + margin-right: 8px; + `),F("text",` + border-bottom: 1px solid #0000; + transition: border-color .3s var(--n-bezier); + flex-grow: 1; + max-width: 100%; + `),F("suffix",` + display: inline-flex; + `)]),F("empty","margin: auto;")]);var NN=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,[])).next())})};function Xc(e,t,n,r){return{getIsGroup(){return!1},getKey(i){return i[e]},getChildren:r||(i=>i[t]),getDisabled(i){return!!(i[n]||i.checkboxDisabled)}}}const L1={allowCheckingNotLoaded:Boolean,filter:Function,defaultExpandAll:Boolean,expandedKeys:Array,keyField:{type:String,default:"key"},labelField:{type:String,default:"label"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:24},indeterminateKeys:Array,renderSwitcherIcon:Function,onUpdateIndeterminateKeys:[Function,Array],"onUpdate:indeterminateKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],"onUpdate:expandedKeys":[Function,Array],overrideDefaultNodeClickBehavior:Function},H1=Object.assign(Object.assign(Object.assign(Object.assign({},ge.props),{accordion:Boolean,showIrrelevantNodes:{type:Boolean,default:!0},data:{type:Array,default:()=>[]},expandOnDragenter:{type:Boolean,default:!0},expandOnClick:Boolean,checkOnClick:{type:[Boolean,Function],default:!1},cancelable:{type:Boolean,default:!0},checkable:Boolean,draggable:Boolean,blockNode:Boolean,blockLine:Boolean,showLine:Boolean,disabled:Boolean,checkedKeys:Array,defaultCheckedKeys:{type:Array,default:()=>[]},selectedKeys:Array,defaultSelectedKeys:{type:Array,default:()=>[]},multiple:Boolean,pattern:{type:String,default:""},onLoad:Function,cascade:Boolean,selectable:{type:Boolean,default:!0},scrollbarProps:Object,allowDrop:{type:Function,default:TN},animated:{type:Boolean,default:!0},ellipsis:Boolean,checkboxPlacement:{type:String,default:"left"},virtualScroll:Boolean,watchProps:Array,renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,keyboard:{type:Boolean,default:!0},getChildren:Function,onDragenter:[Function,Array],onDragleave:[Function,Array],onDragend:[Function,Array],onDragstart:[Function,Array],onDragover:[Function,Array],onDrop:[Function,Array],onUpdateCheckedKeys:[Function,Array],"onUpdate:checkedKeys":[Function,Array],onUpdateSelectedKeys:[Function,Array],"onUpdate:selectedKeys":[Function,Array]}),L1),{internalTreeSelect:Boolean,internalScrollable:Boolean,internalScrollablePadding:String,internalRenderEmpty:Function,internalHighlightKeySet:Object,internalUnifySelectCheck:Boolean,internalCheckboxFocusable:{type:Boolean,default:!0},internalFocusable:{type:Boolean,default:!0},checkStrategy:{type:String,default:"all"},leafOnly:Boolean}),j1=Y({name:"Tree",props:H1,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=Bt("Tree",r,t),i=ge("Tree","-tree",EN,sy,e,t),a=B(null),l=B(null),d=B(null);function c(){var de;return(de=d.value)===null||de===void 0?void 0:de.listElRef}function u(){var de;return(de=d.value)===null||de===void 0?void 0:de.itemsElRef}const f=S(()=>{const{filter:de}=e;if(de)return de;const{labelField:Pe}=e;return(Le,Ze)=>{if(!Le.length)return!0;const et=Ze[Pe];return typeof et=="string"?et.toLowerCase().includes(Le.toLowerCase()):!1}}),v=S(()=>{const{pattern:de}=e;return de?!de.length||!f.value?{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}:AN(e.data,f.value,de,e.keyField,e.childrenField):{filteredTree:e.data,highlightKeySet:null,expandedKeys:void 0}}),m=S(()=>Gn(e.showIrrelevantNodes?e.data:v.value.filteredTree,Xc(e.keyField,e.childrenField,e.disabledField,e.getChildren))),h=Be(zf,null),g=e.internalTreeSelect?h.dataTreeMate:S(()=>e.showIrrelevantNodes?m.value:Gn(e.data,Xc(e.keyField,e.childrenField,e.disabledField,e.getChildren))),{watchProps:p}=e,b=B([]);p?.includes("defaultCheckedKeys")?Ft(()=>{b.value=e.defaultCheckedKeys}):b.value=e.defaultCheckedKeys;const y=le(e,"checkedKeys"),R=St(y,b),w=S(()=>g.value.getCheckedKeys(R.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})),C=_1(e),P=S(()=>w.value.checkedKeys),k=S(()=>{const{indeterminateKeys:de}=e;return de!==void 0?de:w.value.indeterminateKeys}),O=B([]);p?.includes("defaultSelectedKeys")?Ft(()=>{O.value=e.defaultSelectedKeys}):O.value=e.defaultSelectedKeys;const $=le(e,"selectedKeys"),T=St($,O),D=B([]),I=de=>{D.value=e.defaultExpandAll?g.value.getNonLeafKeys():de===void 0?e.defaultExpandedKeys:de};p?.includes("defaultExpandedKeys")?Ft(()=>{I(void 0)}):Ft(()=>{I(e.defaultExpandedKeys)});const A=le(e,"expandedKeys"),E=St(A,D),N=S(()=>m.value.getFlattenedNodes(E.value)),{pendingNodeKeyRef:U,handleKeydown:q}=ON({props:e,mergedCheckedKeysRef:R,mergedSelectedKeysRef:T,fNodesRef:N,mergedExpandedKeysRef:E,handleCheck:pe,handleSelect:ne,handleSwitcherClick:Oe});let J=null,ve=null;const ae=B(new Set),W=S(()=>e.internalHighlightKeySet||v.value.highlightKeySet),j=St(W,ae),_=B(new Set),L=S(()=>E.value.filter(de=>!_.value.has(de)));let Z=0;const ce=B(null),ye=B(null),_e=B(null),V=B(null),ze=B(0),Ae=S(()=>{const{value:de}=ye;return de?de.parent:null});let Ne=!1;ct(le(e,"data"),()=>{Ne=!0,zt(()=>{Ne=!1}),_.value.clear(),U.value=null,He()},{deep:!1});let je=!1;const qe=()=>{je=!0,zt(()=>{je=!1})};let gt;ct(le(e,"pattern"),(de,Pe)=>{if(e.showIrrelevantNodes)if(gt=void 0,de){const{expandedKeys:Le,highlightKeySet:Ze}=BN(e.data,e.pattern,e.keyField,e.childrenField,f.value);ae.value=Ze,qe(),X(Le,te(Le),{node:null,action:"filter"})}else ae.value=new Set;else if(!de.length)gt!==void 0&&(qe(),X(gt,te(gt),{node:null,action:"filter"}));else{Pe.length||(gt=E.value);const{expandedKeys:Le}=v.value;Le!==void 0&&(qe(),X(Le,te(Le),{node:null,action:"filter"}))}});function at(de){return NN(this,void 0,void 0,function*(){const{onLoad:Pe}=e;if(!Pe){yield Promise.resolve();return}const{value:Le}=_;if(!Le.has(de.key)){Le.add(de.key);try{(yield Pe(de.rawNode))===!1&&H()}catch(Ze){console.error(Ze),H()}Le.delete(de.key)}})}Ft(()=>{var de;const{value:Pe}=m;if(!Pe)return;const{getNode:Le}=Pe;(de=E.value)===null||de===void 0||de.forEach(Ze=>{const et=Le(Ze);et&&!et.shallowLoaded&&at(et)})});const Te=B(!1),Q=B([]);ct(L,(de,Pe)=>{if(!e.animated||je){zt(fe);return}if(Ne)return;const Le=Et(i.value.self.nodeHeight),Ze=new Set(Pe);let et=null,$t=null;for(const At of de)if(!Ze.has(At)){if(et!==null)return;et=At}const Jt=new Set(de);for(const At of Pe)if(!Jt.has(At)){if($t!==null)return;$t=At}if(et===null&&$t===null)return;const{virtualScroll:Qt}=e,Tn=(Qt?d.value.listElRef:a.value).offsetHeight,Dn=Math.ceil(Tn/Le)+1;let un;if(et!==null&&(un=Pe),$t!==null&&(un===void 0?un=de:un=un.filter(At=>At!==$t)),Te.value=!0,Q.value=m.value.getFlattenedNodes(un),et!==null){const At=Q.value.findIndex(xe=>xe.key===et);if(~At){const xe=Q.value[At].children;if(xe){const Ve=Pc(xe,de);Q.value.splice(At+1,0,{__motion:!0,mode:"expand",height:Qt?Ve.length*Le:void 0,nodes:Qt?Ve.slice(0,Dn):Ve})}}}if($t!==null){const At=Q.value.findIndex(xe=>xe.key===$t);if(~At){const xe=Q.value[At].children;if(!xe)return;Te.value=!0;const Ve=Pc(xe,de);Q.value.splice(At+1,0,{__motion:!0,mode:"collapse",height:Qt?Ve.length*Le:void 0,nodes:Qt?Ve.slice(0,Dn):Ve})}}});const ue=S(()=>tb(N.value)),G=S(()=>Te.value?Q.value:N.value);function fe(){const{value:de}=l;de&&de.sync()}function we(){Te.value=!1,e.virtualScroll&&zt(fe)}function te(de){const{getNode:Pe}=g.value;return de.map(Le=>{var Ze;return((Ze=Pe(Le))===null||Ze===void 0?void 0:Ze.rawNode)||null})}function X(de,Pe,Le){const{"onUpdate:expandedKeys":Ze,onUpdateExpandedKeys:et}=e;D.value=de,Ze&&ie(Ze,de,Pe,Le),et&&ie(et,de,Pe,Le)}function he(de,Pe,Le){const{"onUpdate:checkedKeys":Ze,onUpdateCheckedKeys:et}=e;b.value=de,et&&ie(et,de,Pe,Le),Ze&&ie(Ze,de,Pe,Le)}function Ie(de,Pe){const{"onUpdate:indeterminateKeys":Le,onUpdateIndeterminateKeys:Ze}=e;Le&&ie(Le,de,Pe),Ze&&ie(Ze,de,Pe)}function me(de,Pe,Le){const{"onUpdate:selectedKeys":Ze,onUpdateSelectedKeys:et}=e;O.value=de,et&&ie(et,de,Pe,Le),Ze&&ie(Ze,de,Pe,Le)}function Ke(de){const{onDragenter:Pe}=e;Pe&&ie(Pe,de)}function st(de){const{onDragleave:Pe}=e;Pe&&ie(Pe,de)}function xt(de){const{onDragend:Pe}=e;Pe&&ie(Pe,de)}function vt(de){const{onDragstart:Pe}=e;Pe&&ie(Pe,de)}function bt(de){const{onDragover:Pe}=e;Pe&&ie(Pe,de)}function pt(de){const{onDrop:Pe}=e;Pe&&ie(Pe,de)}function He(){nt(),K()}function nt(){ce.value=null}function K(){ze.value=0,ye.value=null,_e.value=null,V.value=null,H()}function H(){J&&(window.clearTimeout(J),J=null),ve=null}function pe(de,Pe){if(e.disabled||ho(de,e.disabledField))return;if(e.internalUnifySelectCheck&&!e.multiple){ne(de);return}const Le=Pe?"check":"uncheck",{checkedKeys:Ze,indeterminateKeys:et}=g.value[Le](de.key,P.value,{cascade:e.cascade,checkStrategy:C.value,allowNotLoaded:e.allowCheckingNotLoaded});he(Ze,te(Ze),{node:de.rawNode,action:Le}),Ie(et,te(et))}function $e(de){if(e.disabled)return;const{key:Pe}=de,{value:Le}=E,Ze=Le.findIndex(et=>et===Pe);if(~Ze){const et=Array.from(Le);et.splice(Ze,1),X(et,te(et),{node:de.rawNode,action:"collapse"})}else{const et=m.value.getNode(Pe);if(!et||et.isLeaf)return;let $t;if(e.accordion){const Jt=new Set(de.siblings.map(({key:Qt})=>Qt));$t=Le.filter(Qt=>!Jt.has(Qt)),$t.push(Pe)}else $t=Le.concat(Pe);X($t,te($t),{node:de.rawNode,action:"expand"})}}function Oe(de){e.disabled||Te.value||$e(de)}function ne(de){if(!(e.disabled||!e.selectable)){if(U.value=de.key,e.internalUnifySelectCheck){const{value:{checkedKeys:Pe,indeterminateKeys:Le}}=w;e.multiple?pe(de,!(Pe.includes(de.key)||Le.includes(de.key))):he([de.key],te([de.key]),{node:de.rawNode,action:"check"})}if(e.multiple){const Pe=Array.from(T.value),Le=Pe.findIndex(Ze=>Ze===de.key);~Le?e.cancelable&&Pe.splice(Le,1):~Le||Pe.push(de.key),me(Pe,te(Pe),{node:de.rawNode,action:~Le?"unselect":"select"})}else T.value.includes(de.key)?e.cancelable&&me([],[],{node:de.rawNode,action:"unselect"}):me([de.key],te([de.key]),{node:de.rawNode,action:"select"})}}function Se(de){if(J&&(window.clearTimeout(J),J=null),de.isLeaf)return;ve=de.key;const Pe=()=>{if(ve!==de.key)return;const{value:Le}=_e;if(Le&&Le.key===de.key&&!E.value.includes(de.key)){const Ze=E.value.concat(de.key);X(Ze,te(Ze),{node:de.rawNode,action:"expand"})}J=null,ve=null};de.shallowLoaded?J=window.setTimeout(()=>{Pe()},1e3):J=window.setTimeout(()=>{at(de).then(()=>{Pe()})},1e3)}function ee({event:de,node:Pe}){!e.draggable||e.disabled||ho(Pe,e.disabledField)||(Me({event:de,node:Pe},!1),Ke({event:de,node:Pe.rawNode}))}function Ce({event:de,node:Pe}){!e.draggable||e.disabled||ho(Pe,e.disabledField)||st({event:de,node:Pe.rawNode})}function Ue(de){de.target===de.currentTarget&&K()}function Ye({event:de,node:Pe}){He(),!(!e.draggable||e.disabled||ho(Pe,e.disabledField))&&xt({event:de,node:Pe.rawNode})}function se({event:de,node:Pe}){!e.draggable||e.disabled||ho(Pe,e.disabledField)||(Z=de.clientX,ce.value=Pe,vt({event:de,node:Pe.rawNode}))}function Me({event:de,node:Pe},Le=!0){var Ze;if(!e.draggable||e.disabled||ho(Pe,e.disabledField))return;const{value:et}=ce;if(!et)return;const{allowDrop:$t,indent:Jt}=e;Le&&bt({event:de,node:Pe.rawNode});const Qt=de.currentTarget,{height:Tn,top:Dn}=Qt.getBoundingClientRect(),un=de.clientY-Dn;let At;$t({node:Pe.rawNode,dropPosition:"inside",phase:"drag"})?un<=8?At="before":un>=Tn-8?At="after":At="inside":un<=Tn/2?At="before":At="after";const{value:Ve}=ue;let Ge,Tt;const fn=Ve(Pe.key);if(fn===null){K();return}let Lt=!1;At==="inside"?(Ge=Pe,Tt="inside"):At==="before"?Pe.isFirstChild?(Ge=Pe,Tt="before"):(Ge=N.value[fn-1],Tt="after"):(Ge=Pe,Tt="after"),!Ge.isLeaf&&E.value.includes(Ge.key)&&(Lt=!0,Tt==="after"&&(Ge=N.value[fn+1],Ge?Tt="before":(Ge=Pe,Tt="inside")));const fr=Ge;if(_e.value=fr,!Lt&&et.isLastChild&&et.key===Ge.key&&(Tt="after"),Tt==="after"){let Sr=Z-de.clientX,or=0;for(;Sr>=Jt/2&&Ge.parent!==null&&Ge.isLastChild&&or<1;)Sr-=Jt,or+=1,Ge=Ge.parent;ze.value=or}else ze.value=0;if((et.contains(Ge)||Tt==="inside"&&((Ze=et.parent)===null||Ze===void 0?void 0:Ze.key)===Ge.key)&&!(et.key===fr.key&&et.key===Ge.key)){K();return}if(!$t({node:Ge.rawNode,dropPosition:Tt,phase:"drag"})){K();return}if(et.key===Ge.key)H();else if(ve!==Ge.key)if(Tt==="inside"){if(e.expandOnDragenter){if(Se(Ge),!Ge.shallowLoaded&&ve!==Ge.key){He();return}}else if(!Ge.shallowLoaded){He();return}}else H();else Tt!=="inside"&&H();V.value=Tt,ye.value=Ge}function re({event:de,node:Pe,dropPosition:Le}){if(!e.draggable||e.disabled||ho(Pe,e.disabledField))return;const{value:Ze}=ce,{value:et}=ye,{value:$t}=V;if(!(!Ze||!et||!$t)&&e.allowDrop({node:et.rawNode,dropPosition:$t,phase:"drag"})&&Ze.key!==et.key){if($t==="before"){const Jt=Ze.getNext({includeDisabled:!0});if(Jt&&Jt.key===et.key){K();return}}if($t==="after"){const Jt=Ze.getPrev({includeDisabled:!0});if(Jt&&Jt.key===et.key){K();return}}pt({event:de,node:et.rawNode,dragNode:Ze.rawNode,dropPosition:Le}),He()}}function ke(){fe()}function De(){fe()}function Qe(de){var Pe;if(e.virtualScroll||e.internalScrollable){const{value:Le}=l;if(!((Pe=Le?.containerRef)===null||Pe===void 0)&&Pe.contains(de.relatedTarget))return;U.value=null}else{const{value:Le}=a;if(Le?.contains(de.relatedTarget))return;U.value=null}}ct(U,de=>{var Pe,Le;if(de!==null){if(e.virtualScroll)(Pe=d.value)===null||Pe===void 0||Pe.scrollTo({key:de});else if(e.internalScrollable){const{value:Ze}=l;if(Ze===null)return;const et=(Le=Ze.contentRef)===null||Le===void 0?void 0:Le.querySelector(`[data-key="${Wm(de)}"]`);if(!et)return;Ze.scrollTo({el:et})}}}),ot(ul,{loadingKeysRef:_,highlightKeySetRef:j,displayedCheckedKeysRef:P,displayedIndeterminateKeysRef:k,mergedSelectedKeysRef:T,mergedExpandedKeysRef:E,mergedThemeRef:i,mergedCheckStrategyRef:C,nodePropsRef:le(e,"nodeProps"),disabledRef:le(e,"disabled"),checkableRef:le(e,"checkable"),selectableRef:le(e,"selectable"),expandOnClickRef:le(e,"expandOnClick"),onLoadRef:le(e,"onLoad"),draggableRef:le(e,"draggable"),blockLineRef:le(e,"blockLine"),indentRef:le(e,"indent"),cascadeRef:le(e,"cascade"),checkOnClickRef:le(e,"checkOnClick"),checkboxPlacementRef:e.checkboxPlacement,droppingMouseNodeRef:_e,droppingNodeParentRef:Ae,draggingNodeRef:ce,droppingPositionRef:V,droppingOffsetLevelRef:ze,fNodesRef:N,pendingNodeKeyRef:U,showLineRef:le(e,"showLine"),disabledFieldRef:le(e,"disabledField"),internalScrollableRef:le(e,"internalScrollable"),internalCheckboxFocusableRef:le(e,"internalCheckboxFocusable"),internalTreeSelect:e.internalTreeSelect,renderLabelRef:le(e,"renderLabel"),renderPrefixRef:le(e,"renderPrefix"),renderSuffixRef:le(e,"renderSuffix"),renderSwitcherIconRef:le(e,"renderSwitcherIcon"),labelFieldRef:le(e,"labelField"),multipleRef:le(e,"multiple"),overrideDefaultNodeClickBehaviorRef:le(e,"overrideDefaultNodeClickBehavior"),handleSwitcherClick:Oe,handleDragEnd:Ye,handleDragEnter:ee,handleDragLeave:Ce,handleDragStart:se,handleDrop:re,handleDragOver:Me,handleSelect:ne,handleCheck:pe});function rt(de,Pe){var Le,Ze;typeof de=="number"?(Le=d.value)===null||Le===void 0||Le.scrollTo(de,Pe||0):(Ze=d.value)===null||Ze===void 0||Ze.scrollTo(de)}const oe={handleKeydown:q,scrollTo:rt,getCheckedData:()=>{if(!e.checkable)return{keys:[],options:[]};const{checkedKeys:de}=w.value;return{keys:de,options:te(de)}},getIndeterminateData:()=>{if(!e.checkable)return{keys:[],options:[]};const{indeterminateKeys:de}=w.value;return{keys:de,options:te(de)}}},Re=S(()=>{const{common:{cubicBezierEaseInOut:de},self:{fontSize:Pe,nodeBorderRadius:Le,nodeColorHover:Ze,nodeColorPressed:et,nodeColorActive:$t,arrowColor:Jt,loadingColor:Qt,nodeTextColor:Tn,nodeTextColorDisabled:Dn,dropMarkColor:un,nodeWrapperPadding:At,nodeHeight:xe,lineHeight:Ve,lineColor:Ge}}=i.value,Tt=cn(At,"top"),fn=cn(At,"bottom"),Lt=Vt(Et(xe)-Et(Tt)-Et(fn));return{"--n-arrow-color":Jt,"--n-loading-color":Qt,"--n-bezier":de,"--n-font-size":Pe,"--n-node-border-radius":Le,"--n-node-color-active":$t,"--n-node-color-hover":Ze,"--n-node-color-pressed":et,"--n-node-text-color":Tn,"--n-node-text-color-disabled":Dn,"--n-drop-mark-color":un,"--n-node-wrapper-padding":At,"--n-line-offset-top":`-${Tt}`,"--n-line-offset-bottom":`-${fn}`,"--n-node-content-height":Lt,"--n-line-height":Ve,"--n-line-color":Ge}}),We=n?Xe("tree",void 0,Re,e):void 0;return Object.assign(Object.assign({},oe),{mergedClsPrefix:t,mergedTheme:i,rtlEnabled:o,fNodes:G,aip:Te,selfElRef:a,virtualListInstRef:d,scrollbarInstRef:l,handleFocusout:Qe,handleDragLeaveTree:Ue,handleScroll:ke,getScrollContainer:c,getScrollContent:u,handleAfterEnter:we,handleResize:De,cssVars:n?void 0:Re,themeClass:We?.themeClass,onRender:We?.onRender})},render(){var e;const{fNodes:t,internalRenderEmpty:n}=this;if(!t.length&&n)return n();const{mergedClsPrefix:r,blockNode:o,blockLine:i,draggable:a,disabled:l,ellipsis:d,internalFocusable:c,checkable:u,handleKeydown:f,rtlEnabled:v,handleFocusout:m,scrollbarProps:h}=this,g=c&&!l,p=g?"0":void 0,b=[`${r}-tree`,v&&`${r}-tree--rtl`,u&&`${r}-tree--checkable`,(i||o)&&`${r}-tree--block-node`,i&&`${r}-tree--block-line`,d&&`${r}-tree--ellipsis`],y=w=>"__motion"in w?s(_N,{height:w.height,nodes:w.nodes,clsPrefix:r,mode:w.mode,onAfterEnter:this.handleAfterEnter}):s(N1,{key:w.key,tmNode:w,clsPrefix:r});if(this.virtualScroll){const{mergedTheme:w,internalScrollablePadding:C}=this,P=cn(C||"0");return s(Ui,Object.assign({},h,{ref:"scrollbarInstRef",onDragleave:a?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:b,theme:w.peers.Scrollbar,themeOverrides:w.peerOverrides.Scrollbar,tabindex:p,onKeydown:g?f:void 0,onFocusout:g?m:void 0}),{default:()=>{var k;return(k=this.onRender)===null||k===void 0||k.call(this),t.length?s($r,{ref:"virtualListInstRef",items:this.fNodes,itemSize:Et(w.self.nodeHeight),ignoreItemResize:this.aip,paddingTop:P.top,paddingBottom:P.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:P.left,paddingRight:P.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:O})=>y(O)}):ht(this.$slots.empty,()=>[s(to,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})])}})}const{internalScrollable:R}=this;return b.push(this.themeClass),(e=this.onRender)===null||e===void 0||e.call(this),R?s(Ui,Object.assign({},h,{class:b,tabindex:p,onKeydown:g?f:void 0,onFocusout:g?m:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}}),{default:()=>s("div",{onDragleave:a?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(y))}):s("div",{class:b,tabindex:p,ref:"selfElRef",style:this.cssVars,onKeydown:g?f:void 0,onFocusout:g?m:void 0,onDragleave:a?this.handleDragLeaveTree:void 0},t.length?t.map(y):ht(this.$slots.empty,()=>[s(to,{class:`${r}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}}),LN=z([x("tree-select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + `),x("tree-select-menu",` + position: relative; + overflow: hidden; + margin: 4px 0; + transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier); + border-radius: var(--n-menu-border-radius); + box-shadow: var(--n-menu-box-shadow); + background-color: var(--n-menu-color); + outline: none; + `,[x("tree","max-height: var(--n-menu-height);"),F("empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),F("header",` + padding: var(--n-header-padding); + transition: + color .3s var(--n-bezier); + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-header-divider-color); + color: var(--n-header-text-color); + `),F("action",` + padding: var(--n-action-padding); + transition: + color .3s var(--n-bezier); + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),Cn()])]);function Tg(e,t){const{rawNode:n}=e;return Object.assign(Object.assign({},n),{label:n[t],value:e.key})}function Og(e,t,n,r){const{rawNode:o}=e;return Object.assign(Object.assign({},o),{value:e.key,label:t.map(i=>i.rawNode[r]).join(n)})}const V1=Object.assign(Object.assign(Object.assign(Object.assign({},ge.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:Ht.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function,ellipsisTagPopoverProps:Object}),L1),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,watchProps:Array,getChildren:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean}),HN=Y({name:"TreeSelect",props:V1,slots:Object,setup(e){const t=B(null),n=B(null),r=B(null),o=B(null),{mergedClsPrefixRef:i,namespaceRef:a,inlineThemeDisabled:l}=Ee(e),{localeRef:d}=on("Select"),{mergedSizeRef:c,mergedDisabledRef:u,mergedStatusRef:f,nTriggerFormBlur:v,nTriggerFormChange:m,nTriggerFormFocus:h,nTriggerFormInput:g}=ln(e),p=B(e.defaultValue),b=le(e,"value"),y=St(b,p),R=B(e.defaultShow),w=le(e,"show"),C=St(w,R),P=B(""),k=S(()=>{const{filter:H}=e;if(H)return H;const{labelField:pe}=e;return($e,Oe)=>$e.length?Oe[pe].toLowerCase().includes($e.toLowerCase()):!0}),O=S(()=>Gn(e.options,Xc(e.keyField,e.childrenField,e.disabledField,void 0))),{value:$}=y,T=B(e.checkable?null:Array.isArray($)&&$.length?$[$.length-1]:null),D=S(()=>e.multiple&&e.cascade&&e.checkable),I=B(e.defaultExpandAll?void 0:e.defaultExpandedKeys||e.expandedKeys),A=le(e,"expandedKeys"),E=St(A,I),N=B(!1),U=S(()=>{const{placeholder:H}=e;return H!==void 0?H:d.value.placeholder}),q=S(()=>{const{value:H}=y;return e.multiple?Array.isArray(H)?H:[]:H===null||Array.isArray(H)?[]:[H]}),J=S(()=>e.checkable?[]:q.value),ve=S(()=>{const{multiple:H,showPath:pe,separator:$e,labelField:Oe}=e;if(H)return null;const{value:ne}=y;if(!Array.isArray(ne)&&ne!==null){const{value:Se}=O,ee=Se.getNode(ne);if(ee!==null)return pe?Og(ee,Se.getPath(ne).treeNodePath,$e,Oe):Tg(ee,Oe)}return null}),ae=S(()=>{const{multiple:H,showPath:pe,separator:$e}=e;if(!H)return null;const{value:Oe}=y;if(Array.isArray(Oe)){const ne=[],{value:Se}=O,{checkedKeys:ee}=Se.getCheckedKeys(Oe,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),{labelField:Ce}=e;return ee.forEach(Ue=>{const Ye=Se.getNode(Ue);Ye!==null&&ne.push(pe?Og(Ye,Se.getPath(Ue).treeNodePath,$e,Ce):Tg(Ye,Ce))}),ne}return[]});function W(){var H;(H=n.value)===null||H===void 0||H.focus()}function j(){var H;(H=n.value)===null||H===void 0||H.focusInput()}function _(H){const{onUpdateShow:pe,"onUpdate:show":$e}=e;pe&&ie(pe,H),$e&&ie($e,H),R.value=H}function L(H,pe,$e){const{onUpdateValue:Oe,"onUpdate:value":ne}=e;Oe&&ie(Oe,H,pe,$e),ne&&ie(ne,H,pe,$e),p.value=H,g(),m()}function Z(H,pe){const{onUpdateIndeterminateKeys:$e,"onUpdate:indeterminateKeys":Oe}=e;$e&&ie($e,H,pe),Oe&&ie(Oe,H,pe)}function ce(H,pe,$e){const{onUpdateExpandedKeys:Oe,"onUpdate:expandedKeys":ne}=e;Oe&&ie(Oe,H,pe,$e),ne&&ie(ne,H,pe,$e),I.value=H}function ye(H){const{onFocus:pe}=e;pe&&pe(H),h()}function _e(H){V();const{onBlur:pe}=e;pe&&pe(H),v()}function V(){_(!1)}function ze(){u.value||(P.value="",_(!0),e.filterable&&j())}function Ae(){P.value=""}function Ne(H){var pe;C.value&&(!((pe=n.value)===null||pe===void 0)&&pe.$el.contains(Jn(H))||V())}function je(){u.value||(C.value?e.filterable||V():ze())}function qe(H){const{value:{getNode:pe}}=O;return H.map($e=>{var Oe;return((Oe=pe($e))===null||Oe===void 0?void 0:Oe.rawNode)||null})}function gt(H,pe,$e){const Oe=qe(H),ne=$e.action==="check"?"select":"unselect",Se=$e.node;e.multiple?(L(H,Oe,{node:Se,action:ne}),e.filterable&&(j(),e.clearFilterAfterSelect&&(P.value=""))):(H.length?L(H[0],Oe[0]||null,{node:Se,action:ne}):L(null,null,{node:Se,action:ne}),V(),W())}function at(H){e.checkable&&Z(H,qe(H))}function Te(H){var pe;!((pe=o.value)===null||pe===void 0)&&pe.contains(H.relatedTarget)||(N.value=!0,ye(H))}function Q(H){var pe;!((pe=o.value)===null||pe===void 0)&&pe.contains(H.relatedTarget)||(N.value=!1,_e(H))}function ue(H){var pe,$e,Oe;!((pe=o.value)===null||pe===void 0)&&pe.contains(H.relatedTarget)||!((Oe=($e=n.value)===null||$e===void 0?void 0:$e.$el)===null||Oe===void 0)&&Oe.contains(H.relatedTarget)||(N.value=!0,ye(H))}function G(H){var pe,$e,Oe;!((pe=o.value)===null||pe===void 0)&&pe.contains(H.relatedTarget)||!((Oe=($e=n.value)===null||$e===void 0?void 0:$e.$el)===null||Oe===void 0)&&Oe.contains(H.relatedTarget)||(N.value=!1,_e(H))}function fe(H){H.stopPropagation();const{multiple:pe}=e;!pe&&e.filterable&&V(),pe?L([],[],{node:null,action:"clear"}):L(null,null,{node:null,action:"clear"})}function we(H){const{value:pe}=y;if(Array.isArray(pe)){const{value:$e}=O,{checkedKeys:Oe}=$e.getCheckedKeys(pe,{cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded}),ne=Oe.findIndex(Se=>Se===H.value);if(~ne){const Se=Oe[ne],ee=qe([Se])[0];if(e.checkable){const{checkedKeys:Ce}=$e.uncheck(H.value,Oe,{checkStrategy:e.checkStrategy,cascade:D.value,allowNotLoaded:e.allowCheckingNotLoaded});L(Ce,qe(Ce),{node:ee,action:"delete"})}else{const Ce=Array.from(Oe);Ce.splice(ne,1),L(Ce,qe(Ce),{node:ee,action:"delete"})}}}}function te(H){const{value:pe}=H.target;P.value=pe}function X(H){const{value:pe}=r;return pe?pe.handleKeydown(H):{enterBehavior:null}}function he(H){if(H.key==="Enter"){if(C.value){const{enterBehavior:pe}=X(H);if(!e.multiple)switch(pe){case"default":case"toggleSelect":V(),W();break}}else ze();H.preventDefault()}else H.key==="Escape"?C.value&&(ai(H),V(),W()):C.value?X(H):H.key==="ArrowDown"&&ze()}function Ie(){V(),W()}function me(H){!en(H,"action")&&!en(H,"header")&&H.preventDefault()}const Ke=S(()=>{const{renderTag:H}=e;if(H)return function({option:$e,handleClose:Oe}){const{value:ne}=$e;if(ne!==void 0){const Se=O.value.getNode(ne);if(Se)return H({option:Se.rawNode,handleClose:Oe})}return ne}});ot(zf,{pendingNodeKeyRef:T,dataTreeMate:O});function st(){var H;C.value&&((H=t.value)===null||H===void 0||H.syncPosition())}Os(o,st);const xt=_1(e),vt=S(()=>{if(e.checkable){const H=y.value;return e.multiple&&Array.isArray(H)?O.value.getCheckedKeys(H,{cascade:e.cascade,checkStrategy:xt.value,allowNotLoaded:e.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(H)||H===null?[]:[H],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),bt={getCheckedData:()=>{const{checkedKeys:H}=vt.value;return{keys:H,options:qe(H)}},getIndeterminateData:()=>{const{indeterminateKeys:H}=vt.value;return{keys:H,options:qe(H)}},focus:()=>{var H;return(H=n.value)===null||H===void 0?void 0:H.focus()},focusInput:()=>{var H;return(H=n.value)===null||H===void 0?void 0:H.focusInput()},blur:()=>{var H;return(H=n.value)===null||H===void 0?void 0:H.blur()},blurInput:()=>{var H;return(H=n.value)===null||H===void 0?void 0:H.blurInput()}},pt=ge("TreeSelect","-tree-select",LN,ID,e,i),He=S(()=>{const{common:{cubicBezierEaseInOut:H},self:{menuBoxShadow:pe,menuBorderRadius:$e,menuColor:Oe,menuHeight:ne,actionPadding:Se,actionDividerColor:ee,actionTextColor:Ce,headerDividerColor:Ue,headerPadding:Ye,headerTextColor:se}}=pt.value;return{"--n-menu-box-shadow":pe,"--n-menu-border-radius":$e,"--n-menu-color":Oe,"--n-menu-height":ne,"--n-bezier":H,"--n-action-padding":Se,"--n-action-text-color":Ce,"--n-action-divider-color":ee,"--n-header-padding":Ye,"--n-header-text-color":se,"--n-header-divider-color":Ue}}),nt=l?Xe("tree-select",void 0,He,e):void 0,K=S(()=>{const{self:{menuPadding:H}}=pt.value;return H});return Object.assign(Object.assign({},bt),{menuElRef:o,mergedStatus:f,triggerInstRef:n,followerInstRef:t,treeInstRef:r,mergedClsPrefix:i,mergedValue:y,mergedShow:C,namespace:a,adjustedTo:Ht(e),isMounted:$n(),focused:N,menuPadding:K,mergedPlaceholder:U,mergedExpandedKeys:E,treeSelectedKeys:J,treeCheckedKeys:q,mergedSize:c,mergedDisabled:u,selectedOption:ve,selectedOptions:ae,pattern:P,pendingNodeKey:T,mergedCascade:D,mergedFilter:k,selectionRenderTag:Ke,handleTriggerOrMenuResize:st,doUpdateExpandedKeys:ce,handleMenuLeave:Ae,handleTriggerClick:je,handleMenuClickoutside:Ne,handleUpdateCheckedKeys:gt,handleUpdateIndeterminateKeys:at,handleTriggerFocus:Te,handleTriggerBlur:Q,handleMenuFocusin:ue,handleMenuFocusout:G,handleClear:fe,handleDeleteOption:we,handlePatternInput:te,handleKeydown:he,handleTabOut:Ie,handleMenuMousedown:me,mergedTheme:pt,cssVars:l?void 0:He,themeClass:nt?.themeClass,onRender:nt?.onRender})},render(){const{mergedTheme:e,mergedClsPrefix:t,$slots:n}=this;return s("div",{class:`${t}-tree-select`},s(yr,null,{default:()=>[s(wr,null,{default:()=>s(Au,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:t,theme:e.peers.InternalSelection,themeOverrides:e.peerOverrides.InternalSelection,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var r,o;return[(o=(r=this.$slots).arrow)===null||o===void 0?void 0:o.call(r)]}})}),s(sr,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Ht.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>s(_t,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var r;if(!this.mergedShow)return null;const{mergedClsPrefix:o,checkable:i,multiple:a,menuProps:l,options:d}=this;return(r=this.onRender)===null||r===void 0||r.call(this),rn(s("div",Object.assign({},l,{class:[`${o}-tree-select-menu`,l?.class,this.themeClass],ref:"menuElRef",style:[l?.style||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),yt(n.header,c=>c?s("div",{class:`${o}-tree-select-menu__header`,"data-header":!0},c):null),s(j1,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,getChildren:this.getChildren,filter:this.mergedFilter,data:d,cancelable:a,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:e.peers.Tree,themeOverrides:e.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,indent:this.indent,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:i,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,watchProps:this.watchProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,overrideDefaultNodeClickBehavior:this.overrideDefaultNodeClickBehavior,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>s("div",{class:`${o}-tree-select-menu__empty`},ht(n.empty,()=>[s(to,{theme:e.peers.Empty,themeOverrides:e.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),yt(n.action,c=>c?s("div",{class:`${o}-tree-select-menu__action`,"data-action":!0},c):null),s(qr,{onFocus:this.handleTabOut})),[[Qn,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),jN=x("a",` + cursor: pointer; + transition: + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + text-decoration-color: var(--n-text-color); + color: var(--n-text-color); +`),U1=Object.assign({},ge.props),VN=Y({name:"A",props:U1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-a",jN,Do,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{aTextColor:l}}=r.value;return{"--n-text-color":l,"--n-bezier":a}}),i=n?Xe("a",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),UN=x("blockquote",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + margin: 0; + margin-top: 12px; + margin-bottom: 12px; + box-sizing: border-box; + padding-left: 12px; + border-left: 4px solid var(--n-prefix-color); + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); +`,[z("&:first-child",{marginTop:0}),z("&:last-child",{marginBottom:0}),M("align-text",{marginLeft:"-16px"})]),W1=Object.assign(Object.assign({},ge.props),{alignText:Boolean}),WN=Y({name:"Blockquote",props:W1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-blockquote",UN,Do,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{blockquoteTextColor:l,blockquotePrefixColor:d,blockquoteLineHeight:c,blockquoteFontSize:u}}=r.value;return{"--n-bezier":a,"--n-font-size":u,"--n-line-height":c,"--n-prefix-color":d,"--n-text-color":l}}),i=n?Xe("blockquote",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("blockquote",{class:[`${t}-blockquote`,this.themeClass,this.alignText&&`${t}-blockquote--align-text`],style:this.cssVars},this.$slots)}}),KN=x("h",` + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + margin: var(--n-margin); + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[z("&:first-child",{marginTop:0}),M("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[M("align-text",{paddingLeft:0},[z("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),z("&::before",` + content: ""; + width: var(--n-bar-width); + border-radius: calc(var(--n-bar-width) / 2); + transition: background-color .3s var(--n-bezier); + left: 0; + top: 0; + bottom: 0; + position: absolute; + `),z("&::before",{backgroundColor:"var(--n-bar-color)"})])]),Vo=Object.assign(Object.assign({},ge.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),ra=e=>Y({name:`H${e}`,props:Vo,setup(t){const{mergedClsPrefixRef:n,inlineThemeDisabled:r}=Ee(t),o=ge("Typography","-h",KN,Do,t,n),i=S(()=>{const{type:l}=t,{common:{cubicBezierEaseInOut:d},self:{headerFontWeight:c,headerTextColor:u,[be("headerPrefixWidth",e)]:f,[be("headerFontSize",e)]:v,[be("headerMargin",e)]:m,[be("headerBarWidth",e)]:h,[be("headerBarColor",l)]:g}}=o.value;return{"--n-bezier":d,"--n-font-size":v,"--n-margin":m,"--n-bar-color":g,"--n-bar-width":h,"--n-font-weight":c,"--n-text-color":u,"--n-prefix-width":f}}),a=r?Xe(`h${e}`,S(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:n,cssVars:r?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){var t;const{prefix:n,alignText:r,mergedClsPrefix:o,cssVars:i,$slots:a}=this;return(t=this.onRender)===null||t===void 0||t.call(this),s(`h${e}`,{class:[`${o}-h`,`${o}-h${e}`,this.themeClass,{[`${o}-h--prefix-bar`]:n,[`${o}-h--align-text`]:r}],style:i},a)}}),qN=ra("1"),YN=ra("2"),GN=ra("3"),XN=ra("4"),ZN=ra("5"),JN=ra("6"),QN=x("hr",` + margin: 12px 0; + transition: border-color .3s var(--n-bezier); + border-left: none; + border-right: none; + border-bottom: none; + border-top: 1px solid var(--n-color); +`),eL=Y({name:"Hr",props:Object.assign({},ge.props),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-hr",QN,Do,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{hrColor:l}}=r.value;return{"--n-bezier":a,"--n-color":l}}),i=n?Xe("hr",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s("hr",{class:[`${this.mergedClsPrefix}-hr`,this.themeClass],style:this.cssVars})}}),tL=Y({name:"Li",render(){return s("li",null,this.$slots)}}),Fg=z("li",{transition:"color .3s var(--n-bezier)",lineHeight:"var(--n-line-height)",margin:"var(--n-li-margin)",marginBottom:0,color:"var(--n-text-color)"}),Mg=[z("&:first-child",` + margin-top: 0; + `),z("&:last-child",` + margin-bottom: 0; + `)],K1=z([x("ol",{fontSize:"var(--n-font-size)",padding:"var(--n-ol-padding)"},[M("align-text",{paddingLeft:0}),Fg,Mg]),x("ul",{fontSize:"var(--n-font-size)",padding:"var(--n-ul-padding)"},[M("align-text",{paddingLeft:0}),Fg,Mg])]),q1=Object.assign(Object.assign({},ge.props),{alignText:Boolean}),nL=Y({name:"Ol",props:q1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-xl",K1,Do,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:d,liMargin:c,liTextColor:u,liLineHeight:f,liFontSize:v}}=r.value;return{"--n-bezier":a,"--n-font-size":v,"--n-line-height":f,"--n-text-color":u,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":d}}),i=n?Xe("ol",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("ol",{class:[`${t}-ol`,this.themeClass,this.alignText&&`${t}-ol--align-text`],style:this.cssVars},this.$slots)}}),rL=x("p",` + box-sizing: border-box; + transition: color .3s var(--n-bezier); + margin: var(--n-margin); + font-size: var(--n-font-size); + line-height: var(--n-line-height); + color: var(--n-text-color); +`,[z("&:first-child","margin-top: 0;"),z("&:last-child","margin-bottom: 0;")]),Y1=Object.assign(Object.assign({},ge.props),{depth:[String,Number]}),oL=Y({name:"P",props:Y1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-p",rL,Do,e,t),o=S(()=>{const{depth:a}=e,l=a||"1",{common:{cubicBezierEaseInOut:d},self:{pFontSize:c,pLineHeight:u,pMargin:f,pTextColor:v,[`pTextColor${l}Depth`]:m}}=r.value;return{"--n-bezier":d,"--n-font-size":c,"--n-line-height":u,"--n-margin":f,"--n-text-color":a===void 0?v:m}}),i=n?Xe("p",S(()=>`${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),s("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),iL=x("text",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[M("strong",` + font-weight: var(--n-font-weight-strong); + `),M("italic",{fontStyle:"italic"}),M("underline",{textDecoration:"underline"}),M("code",` + line-height: 1.4; + display: inline-block; + font-family: var(--n-font-famliy-mono); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + box-sizing: border-box; + padding: .05em .35em 0 .35em; + border-radius: var(--n-code-border-radius); + font-size: .9em; + color: var(--n-code-text-color); + background-color: var(--n-code-color); + border: var(--n-code-border); + `)]),G1=Object.assign(Object.assign({},ge.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),aL=Y({name:"Text",props:G1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-text",iL,Do,e,t),o=S(()=>{const{depth:a,type:l}=e,d=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:be("textColor",l),{common:{fontWeightStrong:c,fontFamilyMono:u,cubicBezierEaseInOut:f},self:{codeTextColor:v,codeBorderRadius:m,codeColor:h,codeBorder:g,[d]:p}}=r.value;return{"--n-bezier":f,"--n-text-color":p,"--n-font-weight-strong":c,"--n-font-famliy-mono":u,"--n-code-border-radius":m,"--n-code-text-color":v,"--n-code-color":h,"--n-code-border":g}}),i=n?Xe("text",S(()=>`${e.type[0]}${e.depth||""}`),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Co(e,["as","tag"]),cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(n=(t=this.$slots).default)===null||n===void 0?void 0:n.call(t);return this.code?s("code",{class:o,style:this.cssVars},this.delete?s("del",null,i):i):this.delete?s("del",{class:o,style:this.cssVars},i):s(this.compitableTag||"span",{class:o,style:this.cssVars},i)}}),X1=Object.assign(Object.assign({},ge.props),{alignText:Boolean}),lL=Y({name:"Ul",props:X1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Ee(e),r=ge("Typography","-xl",K1,Do,e,t),o=S(()=>{const{common:{cubicBezierEaseInOut:a},self:{olPadding:l,ulPadding:d,liMargin:c,liTextColor:u,liLineHeight:f,liFontSize:v}}=r.value;return{"--n-bezier":a,"--n-font-size":v,"--n-line-height":f,"--n-text-color":u,"--n-li-margin":c,"--n-ol-padding":l,"--n-ul-padding":d}}),i=n?Xe("ul",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:o,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),s("ul",{class:[`${t}-ul`,this.themeClass,this.alignText&&`${t}-ul--align-text`],style:this.cssVars},this.$slots)}}),oa="n-upload",sL=z([x("upload","width: 100%;",[M("dragger-inside",[x("upload-trigger",` + display: block; + `)]),M("drag-over",[x("upload-dragger",` + border: var(--n-dragger-border-hover); + `)])]),x("upload-dragger",` + cursor: pointer; + box-sizing: border-box; + width: 100%; + text-align: center; + border-radius: var(--n-border-radius); + padding: 24px; + opacity: 1; + transition: + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-dragger-color); + border: var(--n-dragger-border); + `,[z("&:hover",` + border: var(--n-dragger-border-hover); + `),M("disabled",` + cursor: not-allowed; + `)]),x("upload-trigger",` + display: inline-block; + box-sizing: border-box; + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[z("+",[x("upload-file-list","margin-top: 8px;")]),M("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `),M("image-card",` + width: 96px; + height: 96px; + `,[x("base-icon",` + font-size: 24px; + `),x("upload-dragger",` + padding: 0; + height: 100%; + width: 100%; + display: flex; + align-items: center; + justify-content: center; + `)])]),x("upload-file-list",` + line-height: var(--n-line-height); + opacity: 1; + transition: opacity .3s var(--n-bezier); + `,[z("a, img","outline: none;"),M("disabled",` + opacity: var(--n-item-disabled-opacity); + cursor: not-allowed; + `,[x("upload-file","cursor: not-allowed;")]),M("grid",` + display: grid; + grid-template-columns: repeat(auto-fill, 96px); + grid-gap: 8px; + margin-top: 0; + `),x("upload-file",` + display: block; + box-sizing: border-box; + cursor: default; + padding: 0px 12px 0 6px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `,[no(),x("progress",[no({foldPadding:!0})]),z("&:hover",` + background-color: var(--n-item-color-hover); + `,[x("upload-file-info",[F("action",` + opacity: 1; + `)])]),M("image-type",` + border-radius: var(--n-border-radius); + text-decoration: underline; + text-decoration-color: #0000; + `,[x("upload-file-info",` + padding-top: 0px; + padding-bottom: 0px; + width: 100%; + height: 100%; + display: flex; + justify-content: space-between; + align-items: center; + padding: 6px 0; + `,[x("progress",` + padding: 2px 0; + margin-bottom: 0; + `),F("name",` + padding: 0 8px; + `),F("thumbnail",` + width: 32px; + height: 32px; + font-size: 28px; + display: flex; + justify-content: center; + align-items: center; + `,[z("img",` + width: 100%; + `)])])]),M("text-type",[x("progress",` + box-sizing: border-box; + padding-bottom: 6px; + margin-bottom: 6px; + `)]),M("image-card-type",` + position: relative; + width: 96px; + height: 96px; + border: var(--n-item-border-image-card); + border-radius: var(--n-border-radius); + padding: 0; + display: flex; + align-items: center; + justify-content: center; + transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + overflow: hidden; + `,[x("progress",` + position: absolute; + left: 8px; + bottom: 8px; + right: 8px; + width: unset; + `),x("upload-file-info",` + padding: 0; + width: 100%; + height: 100%; + `,[F("thumbnail",` + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + font-size: 36px; + `,[z("img",` + width: 100%; + `)])]),z("&::before",` + position: absolute; + z-index: 1; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + opacity: 0; + transition: opacity .2s var(--n-bezier); + content: ""; + `),z("&:hover",[z("&::before","opacity: 1;"),x("upload-file-info",[F("thumbnail","opacity: .12;")])])]),M("error-status",[z("&:hover",` + background-color: var(--n-item-color-hover-error); + `),x("upload-file-info",[F("name","color: var(--n-item-text-color-error);"),F("thumbnail","color: var(--n-item-text-color-error);")]),M("image-card-type",` + border: var(--n-item-border-image-card-error); + `)]),M("with-url",` + cursor: pointer; + `,[x("upload-file-info",[F("name",` + color: var(--n-item-text-color-success); + text-decoration-color: var(--n-item-text-color-success); + `,[z("a",` + text-decoration: underline; + `)])])]),x("upload-file-info",` + position: relative; + padding-top: 6px; + padding-bottom: 6px; + display: flex; + flex-wrap: nowrap; + `,[F("thumbnail",` + font-size: 18px; + opacity: 1; + transition: opacity .2s var(--n-bezier); + color: var(--n-item-icon-color); + `,[x("base-icon",` + margin-right: 2px; + vertical-align: middle; + transition: color .3s var(--n-bezier); + `)]),F("action",` + padding-top: inherit; + padding-bottom: inherit; + position: absolute; + right: 0; + top: 0; + bottom: 0; + width: 80px; + display: flex; + align-items: center; + transition: opacity .2s var(--n-bezier); + justify-content: flex-end; + opacity: 0; + `,[x("button",[z("&:not(:last-child)",{marginRight:"4px"}),x("base-icon",[z("svg",[Fn()])])]),M("image-type",` + position: relative; + max-width: 80px; + width: auto; + `),M("image-card-type",` + z-index: 2; + position: absolute; + width: 100%; + height: 100%; + left: 0; + right: 0; + bottom: 0; + top: 0; + display: flex; + justify-content: center; + align-items: center; + `)]),F("name",` + color: var(--n-item-text-color); + flex: 1; + display: flex; + justify-content: center; + text-overflow: ellipsis; + overflow: hidden; + flex-direction: column; + text-decoration-color: #0000; + font-size: var(--n-font-size); + transition: + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `,[z("a",` + color: inherit; + text-decoration: underline; + `)])])])]),x("upload-file-input",` + display: none; + width: 0; + height: 0; + opacity: 0; + `)]),Z1="__UPLOAD_DRAGGER__",J1=Y({name:"UploadDragger",[Z1]:!0,setup(e,{slots:t}){const n=Be(oa,null);return n||mn("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:r},mergedDisabledRef:{value:o},maxReachedRef:{value:i}}=n;return s("div",{class:[`${r}-upload-dragger`,(o||i)&&`${r}-upload-dragger--disabled`]},t)}}});function dL(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},s("g",{fill:"none"},s("path",{d:"M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z",fill:"currentColor"})))}function cL(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},s("g",{fill:"none"},s("path",{d:"M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z",fill:"currentColor"})))}const uL=Y({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:Be(oa).mergedThemeRef}},render(){return s(Kr,null,{default:()=>this.show?s(v1,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}});var Zc=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function Q1(e){return e.includes("image/")}function Ig(e=""){const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]}const Bg=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,ew=e=>{if(e.type)return Q1(e.type);const t=Ig(e.name||"");if(Bg.test(t))return!0;const n=e.thumbnailUrl||e.url||"",r=Ig(n);return!!(/^data:image\//.test(n)||Bg.test(r))};function fL(e){return Zc(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!Q1(e.type)){t("");return}t(window.URL.createObjectURL(e))})})}const hL=Wn&&window.FileReader&&window.File;function vL(e){return e.isDirectory}function gL(e){return e.isFile}function mL(e,t){return Zc(this,void 0,void 0,function*(){const n=[];function r(o){return Zc(this,void 0,void 0,function*(){for(const i of o)if(i){if(t&&vL(i)){const a=i.createReader();let l=[],d;try{do d=yield new Promise((c,u)=>{a.readEntries(c,u)}),l=l.concat(d);while(d.length>0)}catch(c){yh("upload","error happens when handling directory upload",c)}yield r(l)}else if(gL(i))try{const a=yield new Promise((l,d)=>{i.file(l,d)});n.push({file:a,entry:i,source:"dnd"})}catch(a){yh("upload","error happens when handling file upload",a)}}})}return yield r(e),n})}function Wa(e){const{id:t,name:n,percentage:r,status:o,url:i,file:a,thumbnailUrl:l,type:d,fullPath:c,batchId:u}=e;return{id:t,name:n,percentage:r??null,status:o,url:i??null,file:a??null,thumbnailUrl:l??null,type:d??null,fullPath:c??null,batchId:u??null}}function pL(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(o=>o.trim()).filter(Boolean).some(o=>{if(o.startsWith(".")){if(e.endsWith(o))return!0}else if(o.includes("/")){const[i,a]=t.split("/"),[l,d]=o.split("/");if((l==="*"||i&&l&&l===i)&&(d==="*"||a&&d&&d===a))return!0}else return!0;return!1})}var Ag=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};const Ul={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"},bL=Y({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0},index:{type:Number,required:!0}},setup(e){const t=Be(oa),n=B(null),r=B(""),o=S(()=>{const{file:C}=e;return C.status==="finished"?"success":C.status==="error"?"error":"info"}),i=S(()=>{const{file:C}=e;if(C.status==="error")return"error"}),a=S(()=>{const{file:C}=e;return C.status==="uploading"}),l=S(()=>{if(!t.showCancelButtonRef.value)return!1;const{file:C}=e;return["uploading","pending","error"].includes(C.status)}),d=S(()=>{if(!t.showRemoveButtonRef.value)return!1;const{file:C}=e;return["finished"].includes(C.status)}),c=S(()=>{if(!t.showDownloadButtonRef.value)return!1;const{file:C}=e;return["finished"].includes(C.status)}),u=S(()=>{if(!t.showRetryButtonRef.value)return!1;const{file:C}=e;return["error"].includes(C.status)}),f=it(()=>r.value||e.file.thumbnailUrl||e.file.url),v=S(()=>{if(!t.showPreviewButtonRef.value)return!1;const{file:{status:C},listType:P}=e;return["finished"].includes(C)&&f.value&&P==="image-card"});function m(){return Ag(this,void 0,void 0,function*(){const C=t.onRetryRef.value;C&&(yield C({file:e.file}))===!1||t.submit(e.file.id)})}function h(C){C.preventDefault();const{file:P}=e;["finished","pending","error"].includes(P.status)?p(P):["uploading"].includes(P.status)?y(P):Mn("upload","The button clicked type is unknown.")}function g(C){C.preventDefault(),b(e.file)}function p(C){const{xhrMap:P,doChange:k,onRemoveRef:{value:O},mergedFileListRef:{value:$}}=t;Promise.resolve(O?O({file:Object.assign({},C),fileList:$,index:e.index}):!0).then(T=>{if(T===!1)return;const D=Object.assign({},C,{status:"removed"});P.delete(C.id),k(D,void 0,{remove:!0})})}function b(C){const{onDownloadRef:{value:P},customDownloadRef:{value:k}}=t;Promise.resolve(P?P(Object.assign({},C)):!0).then(O=>{O!==!1&&(k?k(Object.assign({},C)):Fs(C.url,C.name))})}function y(C){const{xhrMap:P}=t,k=P.get(C.id);k?.abort(),p(Object.assign({},C))}function R(C){const{onPreviewRef:{value:P}}=t;if(P)P(e.file,{event:C});else if(e.listType==="image-card"){const{value:k}=n;if(!k)return;k.showPreview()}}const w=()=>Ag(this,void 0,void 0,function*(){const{listType:C}=e;C!=="image"&&C!=="image-card"||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return Ft(()=>{w()}),{mergedTheme:t.mergedThemeRef,progressStatus:o,buttonType:i,showProgress:a,disabled:t.mergedDisabledRef,showCancelButton:l,showRemoveButton:d,showDownloadButton:c,showRetryButton:u,showPreviewButton:v,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:h,handleDownloadClick:g,handleRetryClick:m,handlePreviewClick:R}},render(){const{clsPrefix:e,mergedTheme:t,listType:n,file:r,renderIcon:o}=this;let i;const a=n==="image";a||n==="image-card"?i=!this.shouldUseThumbnailUrl(r)||!this.mergedThumbnailUrl?s("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):ew(r)?s(lt,{clsPrefix:e},{default:dL}):s(lt,{clsPrefix:e},{default:cL})):s("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?s(Dy,{src:this.mergedThumbnailUrl||void 0,previewSrc:r.url||void 0,alt:r.name,ref:"imageRef"}):s("img",{src:this.mergedThumbnailUrl||void 0,alt:r.name})):i=s("span",{class:`${e}-upload-file-info__thumbnail`},o?o(r):s(lt,{clsPrefix:e},{default:()=>s(O3,null)}));const d=s(uL,{show:this.showProgress,percentage:r.percentage||0,status:this.progressStatus}),c=n==="text"||n==="image";return s("div",{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,r.url&&r.status!=="error"&&n!=="image-card"&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},s("div",{class:`${e}-upload-file-info`},i,s("div",{class:`${e}-upload-file-info__name`},c&&(r.url&&r.status!=="error"?s("a",{rel:"noopener noreferer",target:"_blank",href:r.url||void 0,onClick:this.handlePreviewClick},r.name):s("span",{onClick:this.handlePreviewClick},r.name)),a&&d),s("div",{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?s(Ot,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ul},{icon:()=>s(lt,{clsPrefix:e},{default:()=>s(Gp,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&s(Ot,{key:"cancelOrTrash",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Ul,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>s(Wr,null,{default:()=>this.showRemoveButton?s(lt,{clsPrefix:e,key:"trash"},{default:()=>s(U3,null)}):s(lt,{clsPrefix:e,key:"cancel"},{default:()=>s(F3,null)})})}),this.showRetryButton&&!this.disabled&&s(Ot,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ul},{icon:()=>s(lt,{clsPrefix:e},{default:()=>s(E3,null)})}),this.showDownloadButton?s(Ot,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Ul},{icon:()=>s(lt,{clsPrefix:e},{default:()=>s(Yp,null)})}):null)),!a&&d)}}),$f=Y({name:"UploadTrigger",props:{abstract:Boolean},slots:Object,setup(e,{slots:t}){const n=Be(oa,null);n||mn("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:r,mergedDisabledRef:o,maxReachedRef:i,listTypeRef:a,dragOverRef:l,openOpenFileDialog:d,draggerInsideRef:c,handleFileAddition:u,mergedDirectoryDndRef:f,triggerClassRef:v,triggerStyleRef:m}=n,h=S(()=>a.value==="image-card");function g(){o.value||i.value||d()}function p(w){w.preventDefault(),l.value=!0}function b(w){w.preventDefault(),l.value=!0}function y(w){w.preventDefault(),l.value=!1}function R(w){var C;if(w.preventDefault(),!c.value||o.value||i.value){l.value=!1;return}const P=(C=w.dataTransfer)===null||C===void 0?void 0:C.items;P?.length?mL(Array.from(P).map(k=>k.webkitGetAsEntry()),f.value).then(k=>{u(k)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{var w;const{value:C}=r;return e.abstract?(w=t.default)===null||w===void 0?void 0:w.call(t,{handleClick:g,handleDrop:R,handleDragOver:p,handleDragEnter:b,handleDragLeave:y}):s("div",{class:[`${C}-upload-trigger`,(o.value||i.value)&&`${C}-upload-trigger--disabled`,h.value&&`${C}-upload-trigger--image-card`,v.value],style:m.value,onClick:g,onDrop:R,onDragover:p,onDragenter:b,onDragleave:y},h.value?s(J1,null,{default:()=>ht(t.default,()=>[s(lt,{clsPrefix:C},{default:()=>s(Vi,null)})])}):t)}}}),tw=Y({name:"UploadFileList",setup(e,{slots:t}){const n=Be(oa,null);n||mn("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:r,mergedClsPrefixRef:o,listTypeRef:i,mergedFileListRef:a,fileListClassRef:l,fileListStyleRef:d,cssVarsRef:c,themeClassRef:u,maxReachedRef:f,showTriggerRef:v,imageGroupPropsRef:m}=n,h=S(()=>i.value==="image-card"),g=()=>a.value.map((b,y)=>s(bL,{clsPrefix:o.value,key:b.id,file:b,index:y,listType:i.value})),p=()=>h.value?s(By,Object.assign({},m.value),{default:g}):s(Kr,{group:!0},{default:g});return()=>{const{value:b}=o,{value:y}=r;return s("div",{class:[`${b}-upload-file-list`,h.value&&`${b}-upload-file-list--grid`,y?u?.value:void 0,l.value],style:[y&&c?c.value:"",d.value]},p(),v.value&&!f.value&&h.value&&s($f,null,t))}}});var Dg=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{c(r.next(u))}catch(f){a(f)}}function d(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(l,d)}c((r=r.apply(e,t||[])).next())})};function xL(e,t,n){const{doChange:r,xhrMap:o}=e;let i=0;function a(d){var c;let u=Object.assign({},t,{status:"error",percentage:i});o.delete(t.id),u=Wa(((c=e.onError)===null||c===void 0?void 0:c.call(e,{file:u,event:d}))||u),r(u,d)}function l(d){var c;if(e.isErrorState){if(e.isErrorState(n)){a(d);return}}else if(n.status<200||n.status>=300){a(d);return}let u=Object.assign({},t,{status:"finished",percentage:i});o.delete(t.id),u=Wa(((c=e.onFinish)===null||c===void 0?void 0:c.call(e,{file:u,event:d}))||u),r(u,d)}return{handleXHRLoad:l,handleXHRError:a,handleXHRAbort(d){const c=Object.assign({},t,{status:"removed",file:null,percentage:i});o.delete(t.id),r(c,d)},handleXHRProgress(d){const c=Object.assign({},t,{status:"uploading"});if(d.lengthComputable){const u=Math.ceil(d.loaded/d.total*100);c.percentage=u,i=u}r(c,d)}}}function yL(e){const{inst:t,file:n,data:r,headers:o,withCredentials:i,action:a,customRequest:l}=e,{doChange:d}=e.inst;let c=0;l({file:n,data:r,headers:o,withCredentials:i,action:a,onProgress(u){const f=Object.assign({},n,{status:"uploading"}),v=u.percent;f.percentage=v,c=v,d(f)},onFinish(){var u;let f=Object.assign({},n,{status:"finished",percentage:c});f=Wa(((u=t.onFinish)===null||u===void 0?void 0:u.call(t,{file:f}))||f),d(f)},onError(){var u;let f=Object.assign({},n,{status:"error",percentage:c});f=Wa(((u=t.onError)===null||u===void 0?void 0:u.call(t,{file:f}))||f),d(f)}})}function wL(e,t,n){const r=xL(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function nw(e,t){return typeof e=="function"?e({file:t}):e||{}}function CL(e,t,n){const r=nw(t,n);r&&Object.keys(r).forEach(o=>{e.setRequestHeader(o,r[o])})}function SL(e,t,n){const r=nw(t,n);r&&Object.keys(r).forEach(o=>{e.append(o,r[o])})}function RL(e,t,n,{method:r,action:o,withCredentials:i,responseType:a,headers:l,data:d}){const c=new XMLHttpRequest;c.responseType=a,e.xhrMap.set(n.id,c),c.withCredentials=i;const u=new FormData;if(SL(u,d,n),n.file!==null&&u.append(t,n.file),wL(e,n,c),o!==void 0){c.open(r.toUpperCase(),o),CL(c,l,n),c.send(u);const f=Object.assign({},n,{status:"uploading"});e.doChange(f)}}const rw=Object.assign(Object.assign({},ge.props),{name:{type:String,default:"file"},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:"POST"},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:""},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onRetry:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,customDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListClass:String,fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:"text"},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>hL?ew(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerClass:String,triggerStyle:[String,Object],renderIcon:Function}),kL=Y({name:"Upload",props:rw,setup(e){e.abstract&&e.listType==="image-card"&&mn("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Ee(e),o=ge("Upload","-upload",sL,_D,e,t),i=Bt("Upload",r,t),a=ln(e),l=B(e.defaultFileList),d=le(e,"fileList"),c=B(null),u={value:!1},f=B(!1),v=new Map,m=St(d,l),h=S(()=>m.value.map(Wa)),g=S(()=>{const{max:D}=e;return D!==void 0?h.value.length>=D:!1});function p(){var D;(D=c.value)===null||D===void 0||D.click()}function b(D){const I=D.target;C(I.files?Array.from(I.files).map(A=>({file:A,entry:null,source:"input"})):null,D),I.value=""}function y(D){const{"onUpdate:fileList":I,onUpdateFileList:A}=e;I&&ie(I,D),A&&ie(A,D),l.value=D}const R=S(()=>e.multiple||e.directory),w=(D,I,A={append:!1,remove:!1})=>{const{append:E,remove:N}=A,U=Array.from(h.value),q=U.findIndex(J=>J.id===D.id);if(E||N||~q){E?U.push(D):N?U.splice(q,1):U.splice(q,1,D);const{onChange:J}=e;J&&J({file:D,fileList:U,event:I}),y(U)}};function C(D,I){if(!D||D.length===0)return;const{onBeforeUpload:A}=e;D=R.value?D:[D[0]];const{max:E,accept:N}=e;D=D.filter(({file:q,source:J})=>J==="dnd"&&N?.trim()?pL(q.name,q.type,N):!0),E&&(D=D.slice(0,E-h.value.length));const U=Vn();Promise.all(D.map(q=>Dg(this,[q],void 0,function*({file:J,entry:ve}){var ae;const W={id:Vn(),batchId:U,name:J.name,status:"pending",percentage:0,file:J,url:null,type:J.type,thumbnailUrl:null,fullPath:(ae=ve?.fullPath)!==null&&ae!==void 0?ae:`/${J.webkitRelativePath||J.name}`};return!A||(yield A({file:W,fileList:h.value}))!==!1?W:null}))).then(q=>Dg(this,void 0,void 0,function*(){let J=Promise.resolve();q.forEach(ve=>{J=J.then(zt).then(()=>{ve&&w(ve,I,{append:!0})})}),yield J})).then(()=>{e.defaultUpload&&P()})}function P(D){const{method:I,action:A,withCredentials:E,headers:N,data:U,name:q}=e,J=D!==void 0?h.value.filter(ae=>ae.id===D):h.value,ve=D!==void 0;J.forEach(ae=>{const{status:W}=ae;(W==="pending"||W==="error"&&ve)&&(e.customRequest?yL({inst:{doChange:w,xhrMap:v,onFinish:e.onFinish,onError:e.onError},file:ae,action:A,withCredentials:E,headers:N,data:U,customRequest:e.customRequest}):RL({doChange:w,xhrMap:v,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},q,ae,{method:I,action:A,withCredentials:E,responseType:e.responseType,headers:N,data:U}))})}function k(D){var I;if(D.thumbnailUrl)return D.thumbnailUrl;const{createThumbnailUrl:A}=e;return A?(I=A(D.file,D))!==null&&I!==void 0?I:D.url||"":D.url?D.url:D.file?fL(D.file):""}const O=S(()=>{const{common:{cubicBezierEaseInOut:D},self:{draggerColor:I,draggerBorder:A,draggerBorderHover:E,itemColorHover:N,itemColorHoverError:U,itemTextColorError:q,itemTextColorSuccess:J,itemTextColor:ve,itemIconColor:ae,itemDisabledOpacity:W,lineHeight:j,borderRadius:_,fontSize:L,itemBorderImageCardError:Z,itemBorderImageCard:ce}}=o.value;return{"--n-bezier":D,"--n-border-radius":_,"--n-dragger-border":A,"--n-dragger-border-hover":E,"--n-dragger-color":I,"--n-font-size":L,"--n-item-color-hover":N,"--n-item-color-hover-error":U,"--n-item-disabled-opacity":W,"--n-item-icon-color":ae,"--n-item-text-color":ve,"--n-item-text-color-error":q,"--n-item-text-color-success":J,"--n-line-height":j,"--n-item-border-image-card-error":Z,"--n-item-border-image-card":ce}}),$=n?Xe("upload",void 0,O,e):void 0;ot(oa,{mergedClsPrefixRef:t,mergedThemeRef:o,showCancelButtonRef:le(e,"showCancelButton"),showDownloadButtonRef:le(e,"showDownloadButton"),showRemoveButtonRef:le(e,"showRemoveButton"),showRetryButtonRef:le(e,"showRetryButton"),onRemoveRef:le(e,"onRemove"),onDownloadRef:le(e,"onDownload"),customDownloadRef:le(e,"customDownload"),mergedFileListRef:h,triggerClassRef:le(e,"triggerClass"),triggerStyleRef:le(e,"triggerStyle"),shouldUseThumbnailUrlRef:le(e,"shouldUseThumbnailUrl"),renderIconRef:le(e,"renderIcon"),xhrMap:v,submit:P,doChange:w,showPreviewButtonRef:le(e,"showPreviewButton"),onPreviewRef:le(e,"onPreview"),getFileThumbnailUrlResolver:k,listTypeRef:le(e,"listType"),dragOverRef:f,openOpenFileDialog:p,draggerInsideRef:u,handleFileAddition:C,mergedDisabledRef:a.mergedDisabledRef,maxReachedRef:g,fileListClassRef:le(e,"fileListClass"),fileListStyleRef:le(e,"fileListStyle"),abstractRef:le(e,"abstract"),acceptRef:le(e,"accept"),cssVarsRef:n?void 0:O,themeClassRef:$?.themeClass,onRender:$?.onRender,showTriggerRef:le(e,"showTrigger"),imageGroupPropsRef:le(e,"imageGroupProps"),mergedDirectoryDndRef:S(()=>{var D;return(D=e.directoryDnd)!==null&&D!==void 0?D:e.directory}),onRetryRef:le(e,"onRetry")});const T={clear:()=>{l.value=[]},submit:P,openOpenFileDialog:p};return Object.assign({mergedClsPrefix:t,draggerInsideRef:u,rtlEnabled:i,inputElRef:c,mergedTheme:o,dragOver:f,mergedMultiple:R,cssVars:n?void 0:O,themeClass:$?.themeClass,onRender:$?.onRender,handleFileInputChange:b},T)},render(){var e,t;const{draggerInsideRef:n,mergedClsPrefix:r,$slots:o,directory:i,onRender:a}=this;if(o.default&&!this.abstract){const d=o.default()[0];!((e=d?.type)===null||e===void 0)&&e[Z1]&&(n.value=!0)}const l=s("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${r}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?s(qt,null,(t=o.default)===null||t===void 0?void 0:t.call(o),s(qa,{to:"body"},l)):(a?.(),s("div",{class:[`${r}-upload`,this.rtlEnabled&&`${r}-upload--rtl`,n.value&&`${r}-upload--dragger-inside`,this.dragOver&&`${r}-upload--drag-over`,this.themeClass],style:this.cssVars},l,this.showTrigger&&this.listType!=="image-card"&&s($f,null,o),this.showFileList&&s(tw,null,o)))}}),ow={scrollbarProps:Object,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},PL=Y({name:"VirtualList",props:ow,setup(e){const t=B(null),n=B(null);function r(){const{value:u}=t;u&&u.sync()}function o(u){var f;r(),(f=e.onScroll)===null||f===void 0||f.call(e,u)}function i(u){var f;r(),(f=e.onResize)===null||f===void 0||f.call(e,u)}function a(u){var f;(f=e.onWheel)===null||f===void 0||f.call(e,u)}function l(u,f){var v,m;typeof u=="number"?(v=n.value)===null||v===void 0||v.scrollTo(u,f??0):(m=n.value)===null||m===void 0||m.scrollTo(u)}function d(){var u;return(u=n.value)===null||u===void 0?void 0:u.listElRef}function c(){var u;return(u=n.value)===null||u===void 0?void 0:u.itemsElRef}return{scrollTo:l,scrollbarInstRef:t,virtualListInstRef:n,getScrollContainer:d,getScrollContent:c,handleScroll:o,handleResize:i,handleWheel:a}},render(){return s(Ui,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",container:this.getScrollContainer,content:this.getScrollContent}),{default:()=>s($r,{ref:"virtualListInstRef",showScrollbar:!1,items:this.items,itemSize:this.itemSize,itemResizable:this.itemResizable,itemsStyle:this.itemsStyle,visibleItemsTag:this.visibleItemsTag,visibleItemsProps:this.visibleItemsProps,ignoreItemResize:this.ignoreItemResize,keyField:this.keyField,defaultScrollKey:this.defaultScrollKey,defaultScrollIndex:this.defaultScrollIndex,paddingTop:this.paddingTop,paddingBottom:this.paddingBottom,onScroll:this.handleScroll,onResize:this.handleResize,onWheel:this.handleWheel},{default:({item:e,index:t})=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n,{item:e,index:t})}})})}}),zL=z([x("watermark-container",` + position: relative; + `,[ft("selectable",` + user-select: none; + -webkit-user-select: none; + `),M("global-rotate",` + overflow: hidden; + `),M("fullscreen",` + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + position: fixed; + `)]),x("watermark",` + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + background-repeat: repeat; + `,[M("fullscreen",` + position: fixed; + `),M("global-rotate",` + position: absolute; + height: max(284vh, 284vw); + width: max(284vh, 284vw); + `)])]);function $L(e){if(!e)return 1;const t=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/t}const iw=Object.assign(Object.assign({},ge.props),{debug:Boolean,cross:Boolean,fullscreen:Boolean,width:{type:Number,default:32},height:{type:Number,default:32},zIndex:{type:Number,default:10},xGap:{type:Number,default:0},yGap:{type:Number,default:0},yOffset:{type:Number,default:0},xOffset:{type:Number,default:0},rotate:{type:Number,default:0},textAlign:{type:String,default:"left"},image:String,imageOpacity:{type:Number,default:1},imageHeight:Number,imageWidth:Number,content:String,selectable:{type:Boolean,default:!0},fontSize:{type:Number,default:14},fontFamily:String,fontStyle:{type:String,default:"normal"},fontVariant:{type:String,default:""},fontWeight:{type:Number,default:400},fontColor:{type:String,default:"rgba(128, 128, 128, .3)"},fontStretch:{type:String,default:""},lineHeight:{type:Number,default:14},globalRotate:{type:Number,default:0}}),TL=Y({name:"Watermark",props:iw,setup(e,{slots:t}){const{mergedClsPrefixRef:n}=Ee(e),r=ge("Watermark","-watermark",zL,ED,e,n),o=B(""),i=Wn?document.createElement("canvas"):null,a=i?i.getContext("2d"):null,l=B(!1);return $s(()=>l.value=!0),Ft(()=>{if(!i)return;l.value;const d=$L(a),{xGap:c,yGap:u,width:f,height:v,yOffset:m,xOffset:h,rotate:g,image:p,content:b,fontColor:y,fontStyle:R,fontVariant:w,fontStretch:C,fontWeight:P,fontFamily:k,fontSize:O,lineHeight:$,debug:T}=e,D=(c+f)*d,I=(u+v)*d,A=h*d,E=m*d;if(i.width=D,i.height=I,a){a.translate(0,0);const N=f*d,U=v*d;if(T&&(a.strokeStyle="grey",a.strokeRect(0,0,N,U)),a.rotate(g*(Math.PI/180)),p){const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=p,q.onload=()=>{a.globalAlpha=e.imageOpacity;const{imageWidth:J,imageHeight:ve}=e;a.drawImage(q,A,E,(e.imageWidth||(ve?q.width*ve/q.height:q.width))*d,(e.imageHeight||(J?q.height*J/q.width:q.height))*d),o.value=i.toDataURL()}}else if(b){T&&(a.strokeStyle="green",a.strokeRect(0,0,N,U)),a.font=`${R} ${w} ${P} ${C} ${O*d}px/${$*d}px ${k||r.value.self.fontFamily}`,a.fillStyle=y;let q=0;const{textAlign:J}=e;b.split(` +`).map(ve=>{const ae=a.measureText(ve).width;return q=Math.max(q,ae),{width:ae,line:ve}}).forEach(({line:ve,width:ae},W)=>{const j=J==="left"?0:J==="center"?(q-ae)/2:q-ae;a.fillText(ve,A+j,E+$*d*(W+1))}),o.value=i.toDataURL()}else b||(a.clearRect(0,0,i.width,i.height),o.value=i.toDataURL())}else QS("watermark","Canvas is not supported in the browser.")}),()=>{var d;const{globalRotate:c,fullscreen:u,zIndex:f}=e,v=n.value,m=c!==0&&u,h="max(142vh, 142vw)",g=s("div",{class:[`${v}-watermark`,c!==0&&`${v}-watermark--global-rotate`,u&&`${v}-watermark--fullscreen`],style:{transform:c?`translateX(-50%) translateY(-50%) rotate(${c}deg)`:void 0,zIndex:m?void 0:f,backgroundSize:`${e.xGap+e.width}px`,backgroundPosition:c===0?e.cross?`${e.width/2}px ${e.height/2}px, 0 0`:"":e.cross?`calc(${h} + ${e.width/2}px) calc(${h} + ${e.height/2}px), ${h} ${h}`:h,backgroundImage:e.cross?`url(${o.value}), url(${o.value})`:`url(${o.value})`}});return e.fullscreen&&!c?g:s("div",{class:[`${v}-watermark-container`,c!==0&&`${v}-watermark-container--global-rotate`,u&&`${v}-watermark-container--fullscreen`,e.selectable&&`${v}-watermark-container--selectable`],style:{zIndex:m?f:void 0}},(d=t.default)===null||d===void 0?void 0:d.call(t),g)}}}),_g=Object.freeze(Object.defineProperty({__proto__:null,NA:VN,NAffix:Wp,NAlert:lT,NAnchor:mT,NAnchorLink:uT,NAutoComplete:IT,NAvatar:zc,NAvatarGroup:LT,NBackTop:KT,NBadge:XT,NBlockquote:WN,NBreadcrumb:t4,NBreadcrumbItem:r4,NButton:Ot,NButtonGroup:_u,NCalendar:cF,NCard:u0,NCarousel:FF,NCarouselItem:h0,NCascader:WF,NCheckbox:so,NCheckboxGroup:p0,NCode:C0,NCol:by,NCollapse:ZF,NCollapseItem:QF,NCollapseTransition:rM,NColorPicker:FM,NConfigProvider:Ku,NCountdown:MM,NDataTable:ZI,NDatePicker:W6,NDescriptions:Z6,NDescriptionsItem:J6,NDialog:sf,NDialogProvider:ff,NDivider:UB,NDrawer:lA,NDrawerContent:sA,NDropdown:tf,NDynamicInput:gA,NDynamicTags:wA,NEl:Gv,NElement:Gv,NEllipsis:Hs,NEmpty:to,NEquation:SA,NFlex:zA,NFloatButton:KD,NFloatButtonGroup:jD,NForm:GD,NFormItem:pf,NFormItemCol:xy,NFormItemGi:ig,NFormItemGridItem:ig,NFormItemRow:L_,NGi:Wc,NGlobalStyle:H_,NGradientText:V_,NGrid:W_,NGridItem:Wc,NH1:qN,NH2:YN,NH3:GN,NH4:XN,NH5:ZN,NH6:JN,NHeatmap:nE,NHighlight:iE,NHr:eL,NIcon:Ia,NIconWrapper:dE,NImage:Dy,NImageGroup:By,NImagePreview:yf,NInfiniteScroll:bE,NInput:Sn,NInputGroup:Cb,NInputGroupLabel:PT,NInputNumber:CE,NInputOtp:kE,NLayout:Vy,NLayoutContent:Uy,NLayoutFooter:$E,NLayoutHeader:qy,NLayoutSider:IE,NLegacyTransfer:LE,NLi:tL,NList:jE,NListItem:VE,NLoadingBarProvider:_x,NLog:YE,NMarquee:QE,NMention:n8,NMenu:l1,NMessageProvider:hf,NModal:uf,NModalProvider:Wx,NNotificationProvider:Yx,NNumberAnimation:h8,NOl:nL,NP:oL,NPageHeader:g8,NPagination:L0,NPerformantEllipsis:ex,NPopconfirm:b8,NPopover:xi,NPopselect:I0,NProgress:v1,NQrCode:T8,NRadio:Ju,NRadioButton:sI,NRadioGroup:Z0,NRate:M8,NResult:N8,NRow:py,NScrollbar:L8,NSelect:D0,NSkeleton:U8,NSlider:q8,NSpace:mf,NSpin:X8,NSplit:eN,NStatistic:nN,NStep:lN,NSteps:aN,NSwitch:dN,NTab:ws,NTabPane:pN,NTable:uN,NTabs:xN,NTag:ei,NTbody:fN,NTd:hN,NText:aL,NTh:vN,NThead:gN,NThing:wN,NTime:CN,NTimePicker:ys,NTimeline:RN,NTimelineItem:kN,NTooltip:ol,NTr:mN,NTransfer:$N,NTree:j1,NTreeSelect:HN,NUl:lL,NUpload:kL,NUploadDragger:J1,NUploadFileList:tw,NUploadTrigger:$f,NVirtualList:PL,NWatermark:TL,NxButton:zr,aProps:U1,affixProps:_s,alertProps:gb,anchorLinkProps:mb,anchorProps:pb,autoCompleteProps:Pb,avatarGroupProps:Mb,avatarProps:Fb,backTopProps:Ib,badgeProps:Bb,blockquoteProps:W1,breadcrumbItemProps:_b,breadcrumbProps:Db,buttonGroupProps:Hb,buttonProps:Nb,calendarProps:s0,cardProps:c0,carouselProps:v0,cascaderProps:x0,checkboxGroupProps:m0,checkboxProps:b0,codeProps:w0,colProps:qs,collapseItemProps:k0,collapseProps:S0,collapseTransitionProps:P0,colorPickerProps:$0,configProviderProps:T0,countdownProps:O0,createDiscreteApi:LB,dataTableProps:j0,datePickerProps:yx,descriptionsItemProps:Sx,descriptionsProps:Cx,dialogProps:il,dialogProviderProps:Ix,dividerProps:Xx,drawerContentProps:Jx,drawerProps:Zx,dropdownProps:ax,dynamicInputProps:Qx,dynamicTagsProps:ny,elementProps:ry,ellipsisProps:Qu,emptyProps:ob,equationProps:oy,flexProps:iy,floatButtonGroupProps:dy,floatButtonProps:uy,formItemGiProps:Kc,formItemGridItemProps:Kc,formItemProps:ll,formProps:hy,giProps:Ua,gradientTextProps:Cy,gridItemProps:Ua,gridProps:Ry,h1Props:Vo,h2Props:Vo,h3Props:Vo,h4Props:Vo,h5Props:Vo,h6Props:Vo,heatmapDark:rE,heatmapLight:Py,heatmapMockData:tE,heatmapProps:zy,highlightProps:$y,iconProps:nx,iconWrapperProps:Ty,imageGroupProps:Iy,imagePreviewProps:Fy,imageProps:Ay,infiniteScrollProps:_y,inputGroupLabelProps:Sb,inputGroupProps:wb,inputNumberProps:Ey,inputOtpProps:Ny,inputProps:yb,layoutContentProps:qc,layoutFooterProps:Wy,layoutHeaderProps:Ky,layoutProps:qc,layoutSiderProps:Yy,legacyTransferProps:Gy,listProps:Xy,loadingBarProviderProps:Dx,logProps:Qy,mentionProps:e1,menuProps:a1,messageProviderProps:jx,modalProps:cf,modalProviderProps:Ux,notificationProviderProps:qx,numberAnimationProps:s1,olProps:q1,pProps:Y1,pageHeaderProps:d1,paginationProps:N0,popconfirmProps:f1,popoverProps:lb,popselectProps:M0,progressProps:h1,qrCodeProps:g1,radioButtonProps:lI,radioGroupProps:X0,radioProps:G0,rateProps:m1,resultProps:p1,rowProps:Ks,scrollbarProps:b1,selectProps:A0,skeletonProps:x1,sliderProps:y1,spaceProps:ty,spinProps:w1,splitProps:C1,statisticProps:S1,stepProps:P1,stepsProps:R1,switchProps:z1,tabPaneProps:Pf,tabProps:T1,tableProps:$1,tabsProps:O1,tagProps:cb,textProps:G1,thingProps:F1,timePickerProps:xx,timeProps:M1,timelineItemProps:A1,timelineProps:I1,tooltipProps:J0,transferProps:D1,treeGetClickTarget:DN,treeProps:H1,treeSelectProps:V1,ulProps:X1,uploadDownload:GS,uploadProps:rw,useDialog:zx,useDialogReactiveList:Q6,useLoadingBar:Ex,useMessage:Vx,useModal:Mx,useModalReactiveList:lB,useNotification:Gx,virtualListProps:ow,watermarkProps:iw},Symbol.toStringTag,{value:"Module"})),OL="2.43.2";function FL({componentPrefix:e="N",components:t=[]}={}){const n=[];function r(i,a,l){i.component(e+a)||i.component(e+a,l)}function o(i){n.includes(i)||(n.push(i),t.forEach(a=>{const{name:l,alias:d}=a;r(i,l,a),d&&d.forEach(c=>{r(i,c,a)})}))}return{version:OL,componentPrefix:e,install:o}}const aw=FL({components:Object.keys(_g).map(e=>_g[e])});aw.install;const ML={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},IL=Y({name:"ExtensionPuzzleOutline",render:function(t,n){return _i(),ru("svg",ML,n[0]||(n[0]=[Zr("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M413.66 246.1H386a2 2 0 0 1-2-2v-77.24A38.86 38.86 0 0 0 345.14 128H267.9a2 2 0 0 1-2-2V98.34c0-27.14-21.5-49.86-48.64-50.33a49.53 49.53 0 0 0-50.4 49.51V126a2 2 0 0 1-2 2H87.62A39.74 39.74 0 0 0 48 167.62V238a2 2 0 0 0 2 2h26.91c29.37 0 53.68 25.48 54.09 54.85c.42 29.87-23.51 57.15-53.29 57.15H50a2 2 0 0 0-2 2v70.38A39.74 39.74 0 0 0 87.62 464H158a2 2 0 0 0 2-2v-20.93c0-30.28 24.75-56.35 55-57.06c30.1-.7 57 20.31 57 50.28V462a2 2 0 0 0 2 2h71.14A38.86 38.86 0 0 0 384 425.14v-78a2 2 0 0 1 2-2h28.48c27.63 0 49.52-22.67 49.52-50.4s-23.2-48.64-50.34-48.64z"},null,-1)]))}}),BL={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},AL=Y({name:"HomeOutline",render:function(t,n){return _i(),ru("svg",BL,n[0]||(n[0]=[Zr("path",{d:"M80 212v236a16 16 0 0 0 16 16h96V328a24 24 0 0 1 24-24h80a24 24 0 0 1 24 24v136h96a16 16 0 0 0 16-16V212",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Zr("path",{d:"M480 256L266.89 52c-5-5.28-16.69-5.34-21.78 0L32 256",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Zr("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M400 179V64h-48v69"},null,-1)]))}}),DL={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},_L=Y({name:"LogOutOutline",render:function(t,n){return _i(),ru("svg",DL,n[0]||(n[0]=[Zr("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Zr("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),Zr("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}});function lw(e,t){return function(){return e.apply(t,arguments)}}const{toString:EL}=Object.prototype,{getPrototypeOf:Tf}=Object,{iterator:Gs,toStringTag:sw}=Symbol,Xs=(e=>t=>{const n=EL.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fr=e=>(e=e.toLowerCase(),t=>Xs(t)===e),Zs=e=>t=>typeof t===e,{isArray:ia}=Array,Gi=Zs("undefined");function fl(e){return e!==null&&!Gi(e)&&e.constructor!==null&&!Gi(e.constructor)&&Xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dw=Fr("ArrayBuffer");function NL(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dw(e.buffer),t}const LL=Zs("string"),Xn=Zs("function"),cw=Zs("number"),hl=e=>e!==null&&typeof e=="object",HL=e=>e===!0||e===!1,Ql=e=>{if(Xs(e)!=="object")return!1;const t=Tf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(sw in e)&&!(Gs in e)},jL=e=>{if(!hl(e)||fl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},VL=Fr("Date"),UL=Fr("File"),WL=Fr("Blob"),KL=Fr("FileList"),qL=e=>hl(e)&&Xn(e.pipe),YL=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xn(e.append)&&((t=Xs(e))==="formdata"||t==="object"&&Xn(e.toString)&&e.toString()==="[object FormData]"))},GL=Fr("URLSearchParams"),[XL,ZL,JL,QL]=["ReadableStream","Request","Response","Headers"].map(Fr),e7=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vl(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ia(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,fw=e=>!Gi(e)&&e!==Yo;function Jc(){const{caseless:e,skipUndefined:t}=fw(this)&&this||{},n={},r=(o,i)=>{const a=e&&uw(n,i)||i;Ql(n[a])&&Ql(o)?n[a]=Jc(n[a],o):Ql(o)?n[a]=Jc({},o):ia(o)?n[a]=o.slice():(!t||!Gi(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o(vl(t,(o,i)=>{n&&Xn(o)?e[i]=lw(o,n):e[i]=o},{allOwnKeys:r}),e),n7=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),r7=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},o7=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Tf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i7=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},a7=e=>{if(!e)return null;if(ia(e))return e;let t=e.length;if(!cw(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},l7=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Tf(Uint8Array)),s7=(e,t)=>{const r=(e&&e[Gs]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},d7=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},c7=Fr("HTMLFormElement"),u7=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Eg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f7=Fr("RegExp"),hw=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};vl(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},h7=e=>{hw(e,(t,n)=>{if(Xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},v7=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ia(e)?r(e):r(String(e).split(t)),n},g7=()=>{},m7=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function p7(e){return!!(e&&Xn(e.append)&&e[sw]==="FormData"&&e[Gs])}const b7=e=>{const t=new Array(10),n=(r,o)=>{if(hl(r)){if(t.indexOf(r)>=0)return;if(fl(r))return r;if(!("toJSON"in r)){t[o]=r;const i=ia(r)?[]:{};return vl(r,(a,l)=>{const d=n(a,o+1);!Gi(d)&&(i[l]=d)}),t[o]=void 0,i}}return r};return n(e,0)},x7=Fr("AsyncFunction"),y7=e=>e&&(hl(e)||Xn(e))&&Xn(e.then)&&Xn(e.catch),vw=((e,t)=>e?setImmediate:t?((n,r)=>(Yo.addEventListener("message",({source:o,data:i})=>{o===Yo&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Yo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xn(Yo.postMessage)),w7=typeof queueMicrotask<"u"?queueMicrotask.bind(Yo):typeof process<"u"&&process.nextTick||vw,C7=e=>e!=null&&Xn(e[Gs]),Fe={isArray:ia,isArrayBuffer:dw,isBuffer:fl,isFormData:YL,isArrayBufferView:NL,isString:LL,isNumber:cw,isBoolean:HL,isObject:hl,isPlainObject:Ql,isEmptyObject:jL,isReadableStream:XL,isRequest:ZL,isResponse:JL,isHeaders:QL,isUndefined:Gi,isDate:VL,isFile:UL,isBlob:WL,isRegExp:f7,isFunction:Xn,isStream:qL,isURLSearchParams:GL,isTypedArray:l7,isFileList:KL,forEach:vl,merge:Jc,extend:t7,trim:e7,stripBOM:n7,inherits:r7,toFlatObject:o7,kindOf:Xs,kindOfTest:Fr,endsWith:i7,toArray:a7,forEachEntry:s7,matchAll:d7,isHTMLForm:c7,hasOwnProperty:Eg,hasOwnProp:Eg,reduceDescriptors:hw,freezeMethods:h7,toObjectSet:v7,toCamelCase:u7,noop:g7,toFiniteNumber:m7,findKey:uw,global:Yo,isContextDefined:fw,isSpecCompliantForm:p7,toJSONObject:b7,isAsyncFn:x7,isThenable:y7,setImmediate:vw,asap:w7,isIterable:C7};function Mt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Fe.inherits(Mt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fe.toJSONObject(this.config),code:this.code,status:this.status}}});const gw=Mt.prototype,mw={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mw[e]={value:e}});Object.defineProperties(Mt,mw);Object.defineProperty(gw,"isAxiosError",{value:!0});Mt.from=(e,t,n,r,o,i)=>{const a=Object.create(gw);Fe.toFlatObject(e,a,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Mt.call(a,l,d,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const S7=null;function Qc(e){return Fe.isPlainObject(e)||Fe.isArray(e)}function pw(e){return Fe.endsWith(e,"[]")?e.slice(0,-2):e}function Ng(e,t,n){return e?e.concat(t).map(function(o,i){return o=pw(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function R7(e){return Fe.isArray(e)&&!e.some(Qc)}const k7=Fe.toFlatObject(Fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Js(e,t,n){if(!Fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!Fe.isUndefined(p[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&Fe.isSpecCompliantForm(t);if(!Fe.isFunction(o))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(Fe.isDate(h))return h.toISOString();if(Fe.isBoolean(h))return h.toString();if(!d&&Fe.isBlob(h))throw new Mt("Blob is not supported. Use a Buffer instead.");return Fe.isArrayBuffer(h)||Fe.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,g,p){let b=h;if(h&&!p&&typeof h=="object"){if(Fe.endsWith(g,"{}"))g=r?g:g.slice(0,-2),h=JSON.stringify(h);else if(Fe.isArray(h)&&R7(h)||(Fe.isFileList(h)||Fe.endsWith(g,"[]"))&&(b=Fe.toArray(h)))return g=pw(g),b.forEach(function(R,w){!(Fe.isUndefined(R)||R===null)&&t.append(a===!0?Ng([g],w,i):a===null?g:g+"[]",c(R))}),!1}return Qc(h)?!0:(t.append(Ng(p,g,i),c(h)),!1)}const f=[],v=Object.assign(k7,{defaultVisitor:u,convertValue:c,isVisitable:Qc});function m(h,g){if(!Fe.isUndefined(h)){if(f.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(h),Fe.forEach(h,function(b,y){(!(Fe.isUndefined(b)||b===null)&&o.call(t,b,Fe.isString(y)?y.trim():y,g,v))===!0&&m(b,g?g.concat(y):[y])}),f.pop()}}if(!Fe.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Lg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Of(e,t){this._pairs=[],e&&Js(e,this,t)}const bw=Of.prototype;bw.append=function(t,n){this._pairs.push([t,n])};bw.toString=function(t){const n=t?function(r){return t.call(this,r,Lg)}:Lg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function P7(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xw(e,t,n){if(!t)return e;const r=n&&n.encode||P7;Fe.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Fe.isURLSearchParams(t)?t.toString():new Of(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Hg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},z7=typeof URLSearchParams<"u"?URLSearchParams:Of,$7=typeof FormData<"u"?FormData:null,T7=typeof Blob<"u"?Blob:null,O7={isBrowser:!0,classes:{URLSearchParams:z7,FormData:$7,Blob:T7},protocols:["http","https","file","blob","url","data"]},Ff=typeof window<"u"&&typeof document<"u",eu=typeof navigator=="object"&&navigator||void 0,F7=Ff&&(!eu||["ReactNative","NativeScript","NS"].indexOf(eu.product)<0),M7=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",I7=Ff&&window.location.href||"http://localhost",B7=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ff,hasStandardBrowserEnv:F7,hasStandardBrowserWebWorkerEnv:M7,navigator:eu,origin:I7},Symbol.toStringTag,{value:"Module"})),En={...B7,...O7};function A7(e,t){return Js(e,new En.classes.URLSearchParams,{visitor:function(n,r,o,i){return En.isNode&&Fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function D7(e){return Fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _7(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&Fe.isArray(o)?o.length:a,d?(Fe.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Fe.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Fe.isArray(o[a])&&(o[a]=_7(o[a])),!l)}if(Fe.isFormData(e)&&Fe.isFunction(e.entries)){const n={};return Fe.forEachEntry(e,(r,o)=>{t(D7(r),o,n,0)}),n}return null}function E7(e,t,n){if(Fe.isString(e))try{return(t||JSON.parse)(e),Fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gl={transitional:yw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Fe.isObject(t);if(i&&Fe.isHTMLForm(t)&&(t=new FormData(t)),Fe.isFormData(t))return o?JSON.stringify(ww(t)):t;if(Fe.isArrayBuffer(t)||Fe.isBuffer(t)||Fe.isStream(t)||Fe.isFile(t)||Fe.isBlob(t)||Fe.isReadableStream(t))return t;if(Fe.isArrayBufferView(t))return t.buffer;if(Fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return A7(t,this.formSerializer).toString();if((l=Fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Js(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),E7(t)):t}],transformResponse:[function(t){const n=this.transitional||gl.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Fe.isResponse(t)||Fe.isReadableStream(t))return t;if(t&&Fe.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Mt.from(l,Mt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:En.classes.FormData,Blob:En.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Fe.forEach(["delete","get","head","post","put","patch"],e=>{gl.headers[e]={}});const N7=Fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),L7=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&N7[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},jg=Symbol("internals");function Ca(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:Fe.isArray(e)?e.map(es):String(e)}function H7(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const j7=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jd(e,t,n,r,o){if(Fe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Fe.isString(t)){if(Fe.isString(r))return t.indexOf(r)!==-1;if(Fe.isRegExp(r))return r.test(t)}}function V7(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function U7(e,t){const n=Fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Zn=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,d,c){const u=Ca(d);if(!u)throw new Error("header name must be a non-empty string");const f=Fe.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||d]=es(l))}const a=(l,d)=>Fe.forEach(l,(c,u)=>i(c,u,d));if(Fe.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Fe.isString(t)&&(t=t.trim())&&!j7(t))a(L7(t),n);else if(Fe.isObject(t)&&Fe.isIterable(t)){let l={},d,c;for(const u of t){if(!Fe.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(d=l[c])?Fe.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ca(t),t){const r=Fe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return H7(o);if(Fe.isFunction(n))return n.call(this,o,r);if(Fe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ca(t),t){const r=Fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=Ca(a),a){const l=Fe.findKey(r,a);l&&(!n||Jd(r,r[l],l,n))&&(delete r[l],o=!0)}}return Fe.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Jd(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Fe.forEach(this,(o,i)=>{const a=Fe.findKey(r,i);if(a){n[a]=es(o),delete n[i];return}const l=t?V7(i):String(i).trim();l!==i&&delete n[i],n[l]=es(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Fe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[jg]=this[jg]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=Ca(a);r[l]||(U7(o,a),r[l]=!0)}return Fe.isArray(t)?t.forEach(i):i(t),this}};Zn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.reduceDescriptors(Zn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Fe.freezeMethods(Zn);function Qd(e,t){const n=this||gl,r=t||n,o=Zn.from(r.headers);let i=r.data;return Fe.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Cw(e){return!!(e&&e.__CANCEL__)}function aa(e,t,n){Mt.call(this,e??"canceled",Mt.ERR_CANCELED,t,n),this.name="CanceledError"}Fe.inherits(aa,Mt,{__CANCEL__:!0});function Sw(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Mt("Request failed with status code "+n.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function W7(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function K7(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=r[i];a||(a=c),n[o]=d,r[o]=c;let f=i,v=0;for(;f!==o;)v+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const Cs=(e,t,n=3)=>{let r=0;const o=K7(50,250);return q7(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,d=a-r,c=o(d),u=a<=l;r=a;const f={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-a)/c:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},Vg=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ug=e=>(...t)=>Fe.asap(()=>e(...t)),Y7=En.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,En.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(En.origin),En.navigator&&/(msie|trident)/i.test(En.navigator.userAgent)):()=>!0,G7=En.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];Fe.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),Fe.isString(r)&&l.push(`path=${r}`),Fe.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),Fe.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function X7(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Z7(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rw(e,t,n){let r=!X7(t);return e&&(r||n==!1)?Z7(e,t):t}const Wg=e=>e instanceof Zn?{...e}:e;function ui(e,t){t=t||{};const n={};function r(c,u,f,v){return Fe.isPlainObject(c)&&Fe.isPlainObject(u)?Fe.merge.call({caseless:v},c,u):Fe.isPlainObject(u)?Fe.merge({},u):Fe.isArray(u)?u.slice():u}function o(c,u,f,v){if(Fe.isUndefined(u)){if(!Fe.isUndefined(c))return r(void 0,c,f,v)}else return r(c,u,f,v)}function i(c,u){if(!Fe.isUndefined(u))return r(void 0,u)}function a(c,u){if(Fe.isUndefined(u)){if(!Fe.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const d={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(c,u,f)=>o(Wg(c),Wg(u),f,!0)};return Fe.forEach(Object.keys({...e,...t}),function(u){const f=d[u]||o,v=f(e[u],t[u],u);Fe.isUndefined(v)&&f!==l||(n[u]=v)}),n}const kw=e=>{const t=ui({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=Zn.from(a),t.url=xw(Rw(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Fe.isFormData(n)){if(En.hasStandardBrowserEnv||En.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Fe.isFunction(n.getHeaders)){const d=n.getHeaders(),c=["content-type","content-length"];Object.entries(d).forEach(([u,f])=>{c.includes(u.toLowerCase())&&a.set(u,f)})}}if(En.hasStandardBrowserEnv&&(r&&Fe.isFunction(r)&&(r=r(t)),r||r!==!1&&Y7(t.url))){const d=o&&i&&G7.read(i);d&&a.set(o,d)}return t},J7=typeof XMLHttpRequest<"u",Q7=J7&&function(e){return new Promise(function(n,r){const o=kw(e);let i=o.data;const a=Zn.from(o.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=o,u,f,v,m,h;function g(){m&&m(),h&&h(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(o.method.toUpperCase(),o.url,!0),p.timeout=o.timeout;function b(){if(!p)return;const R=Zn.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:R,config:e,request:p};Sw(function(k){n(k),g()},function(k){r(k),g()},C),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new Mt("Request aborted",Mt.ECONNABORTED,e,p)),p=null)},p.onerror=function(w){const C=w&&w.message?w.message:"Network Error",P=new Mt(C,Mt.ERR_NETWORK,e,p);P.event=w||null,r(P),p=null},p.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||yw;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new Mt(w,C.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,e,p)),p=null},i===void 0&&a.setContentType(null),"setRequestHeader"in p&&Fe.forEach(a.toJSON(),function(w,C){p.setRequestHeader(C,w)}),Fe.isUndefined(o.withCredentials)||(p.withCredentials=!!o.withCredentials),l&&l!=="json"&&(p.responseType=o.responseType),c&&([v,h]=Cs(c,!0),p.addEventListener("progress",v)),d&&p.upload&&([f,m]=Cs(d),p.upload.addEventListener("progress",f),p.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=R=>{p&&(r(!R||R.type?new aa(null,e,p):R),p.abort(),p=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=W7(o.url);if(y&&En.protocols.indexOf(y)===-1){r(new Mt("Unsupported protocol "+y+":",Mt.ERR_BAD_REQUEST,e));return}p.send(i||null)})},e9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Mt?u:new aa(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new Mt(`timeout ${t} of ms exceeded`,Mt.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:d}=r;return d.unsubscribe=()=>Fe.asap(l),d}},t9=function*(e,t){let n=e.byteLength;if(n{const o=n9(e,t);let i=0,a,l=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await o.next();if(c){l(),d.close();return}let f=u.byteLength;if(n){let v=i+=f;n(v)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),o.return()}},{highWaterMark:2})},qg=64*1024,{isFunction:Wl}=Fe,o9=(({Request:e,Response:t})=>({Request:e,Response:t}))(Fe.global),{ReadableStream:Yg,TextEncoder:Gg}=Fe.global,Xg=(e,...t)=>{try{return!!e(...t)}catch{return!1}},i9=e=>{e=Fe.merge.call({skipUndefined:!0},o9,e);const{fetch:t,Request:n,Response:r}=e,o=t?Wl(t):typeof fetch=="function",i=Wl(n),a=Wl(r);if(!o)return!1;const l=o&&Wl(Yg),d=o&&(typeof Gg=="function"?(h=>g=>h.encode(g))(new Gg):async h=>new Uint8Array(await new n(h).arrayBuffer())),c=i&&l&&Xg(()=>{let h=!1;const g=new n(En.origin,{body:new Yg,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!g}),u=a&&l&&Xg(()=>Fe.isReadableStream(new r("").body)),f={stream:u&&(h=>h.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!f[h]&&(f[h]=(g,p)=>{let b=g&&g[h];if(b)return b.call(g);throw new Mt(`Response type '${h}' is not supported`,Mt.ERR_NOT_SUPPORT,p)})});const v=async h=>{if(h==null)return 0;if(Fe.isBlob(h))return h.size;if(Fe.isSpecCompliantForm(h))return(await new n(En.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(Fe.isArrayBufferView(h)||Fe.isArrayBuffer(h))return h.byteLength;if(Fe.isURLSearchParams(h)&&(h=h+""),Fe.isString(h))return(await d(h)).byteLength},m=async(h,g)=>{const p=Fe.toFiniteNumber(h.getContentLength());return p??v(g)};return async h=>{let{url:g,method:p,data:b,signal:y,cancelToken:R,timeout:w,onDownloadProgress:C,onUploadProgress:P,responseType:k,headers:O,withCredentials:$="same-origin",fetchOptions:T}=kw(h),D=t||fetch;k=k?(k+"").toLowerCase():"text";let I=e9([y,R&&R.toAbortSignal()],w),A=null;const E=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let N;try{if(P&&c&&p!=="get"&&p!=="head"&&(N=await m(O,b))!==0){let W=new n(g,{method:"POST",body:b,duplex:"half"}),j;if(Fe.isFormData(b)&&(j=W.headers.get("content-type"))&&O.setContentType(j),W.body){const[_,L]=Vg(N,Cs(Ug(P)));b=Kg(W.body,qg,_,L)}}Fe.isString($)||($=$?"include":"omit");const U=i&&"credentials"in n.prototype,q={...T,signal:I,method:p.toUpperCase(),headers:O.normalize().toJSON(),body:b,duplex:"half",credentials:U?$:void 0};A=i&&new n(g,q);let J=await(i?D(A,T):D(g,q));const ve=u&&(k==="stream"||k==="response");if(u&&(C||ve&&E)){const W={};["status","statusText","headers"].forEach(Z=>{W[Z]=J[Z]});const j=Fe.toFiniteNumber(J.headers.get("content-length")),[_,L]=C&&Vg(j,Cs(Ug(C),!0))||[];J=new r(Kg(J.body,qg,_,()=>{L&&L(),E&&E()}),W)}k=k||"text";let ae=await f[Fe.findKey(f,k)||"text"](J,h);return!ve&&E&&E(),await new Promise((W,j)=>{Sw(W,j,{data:ae,headers:Zn.from(J.headers),status:J.status,statusText:J.statusText,config:h,request:A})})}catch(U){throw E&&E(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Mt("Network Error",Mt.ERR_NETWORK,h,A),{cause:U.cause||U}):Mt.from(U,U&&U.code,h,A)}}},a9=new Map,Pw=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,l=a,d,c,u=a9;for(;l--;)d=i[l],c=u.get(d),c===void 0&&u.set(d,c=l?new Map:i9(t)),u=c;return c};Pw();const Mf={http:S7,xhr:Q7,fetch:{get:Pw}};Fe.forEach(Mf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zg=e=>`- ${e}`,l9=e=>Fe.isFunction(e)||e===null||e===!1;function s9(e,t){e=Fe.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since : +`+a.map(Zg).join(` +`):" "+Zg(a[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const zw={getAdapter:s9,adapters:Mf};function ec(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new aa(null,e)}function Jg(e){return ec(e),e.headers=Zn.from(e.headers),e.data=Qd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zw.getAdapter(e.adapter||gl.adapter,e)(e).then(function(r){return ec(e),r.data=Qd.call(e,e.transformResponse,r),r.headers=Zn.from(r.headers),r},function(r){return Cw(r)||(ec(e),r&&r.response&&(r.response.data=Qd.call(e,e.transformResponse,r.response),r.response.headers=Zn.from(r.response.headers))),Promise.reject(r)})}const $w="1.13.2",Qs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Qs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Qg={};Qs.transitional=function(t,n,r){function o(i,a){return"[Axios v"+$w+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new Mt(o(a," has been removed"+(n?" in "+n:"")),Mt.ERR_DEPRECATED);return n&&!Qg[a]&&(Qg[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};Qs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function d9(e,t,n){if(typeof e!="object")throw new Mt("options must be an object",Mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],d=l===void 0||a(l,i,e);if(d!==!0)throw new Mt("option "+i+" must be "+d,Mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Mt("Unknown option "+i,Mt.ERR_BAD_OPTION)}}const ts={assertOptions:d9,validators:Qs},Br=ts.validators;let ti=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Hg,response:new Hg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ui(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ts.assertOptions(r,{silentJSONParsing:Br.transitional(Br.boolean),forcedJSONParsing:Br.transitional(Br.boolean),clarifyTimeoutError:Br.transitional(Br.boolean)},!1),o!=null&&(Fe.isFunction(o)?n.paramsSerializer={serialize:o}:ts.assertOptions(o,{encode:Br.function,serialize:Br.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ts.assertOptions(n,{baseUrl:Br.spelling("baseURL"),withXsrfToken:Br.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Fe.merge(i.common,i[n.method]);i&&Fe.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Zn.concat(a,i);const l=[];let d=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(d=d&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,v;if(!d){const h=[Jg.bind(this),void 0];for(h.unshift(...l),h.push(...c),v=h.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new aa(i,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Tw(function(o){t=o}),cancel:t}}};function u9(e){return function(n){return e.apply(null,n)}}function f9(e){return Fe.isObject(e)&&e.isAxiosError===!0}const tu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tu).forEach(([e,t])=>{tu[t]=e});function Ow(e){const t=new ti(e),n=lw(ti.prototype.request,t);return Fe.extend(n,ti.prototype,t,{allOwnKeys:!0}),Fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ow(ui(e,o))},n}const yn=Ow(gl);yn.Axios=ti;yn.CanceledError=aa;yn.CancelToken=c9;yn.isCancel=Cw;yn.VERSION=$w;yn.toFormData=Js;yn.AxiosError=Mt;yn.Cancel=yn.CanceledError;yn.all=function(t){return Promise.all(t)};yn.spread=u9;yn.isAxiosError=f9;yn.mergeConfig=ui;yn.AxiosHeaders=Zn;yn.formToJSON=e=>ww(Fe.isHTMLForm(e)?new FormData(e):e);yn.getAdapter=zw.getAdapter;yn.HttpStatusCode=tu;yn.default=yn;const{Axios:C9,AxiosError:S9,CanceledError:R9,isCancel:k9,CancelToken:P9,VERSION:z9,all:$9,Cancel:T9,isAxiosError:O9,spread:F9,toFormData:M9,AxiosHeaders:I9,HttpStatusCode:B9,formToJSON:A9,getAdapter:D9,mergeConfig:_9}=yn,rr=yn.create({baseURL:"/api",timeout:1e4}),If="gotunnel_token",Fw=()=>localStorage.getItem(If),E9=e=>localStorage.setItem(If,e),Mw=()=>localStorage.removeItem(If);rr.interceptors.request.use(e=>{const t=Fw();return t&&(e.headers.Authorization=`Bearer ${t}`),e});rr.interceptors.response.use(e=>e,e=>(e.response?.status===401&&(Mw(),window.location.href="/login"),Promise.reject(e)));const N9=(e,t)=>rr.post("/auth/login",{username:e,password:t}),h9=()=>rr.get("/status"),L9=()=>rr.get("/clients"),H9=e=>rr.get(`/client/${e}`),j9=(e,t)=>rr.put(`/client/${e}`,t),V9=e=>rr.delete(`/client/${e}`),U9=e=>rr.post(`/client/${e}/push`),W9=e=>rr.post(`/client/${e}/disconnect`),K9=(e,t)=>rr.post(`/client/${e}/install-plugins`,{plugins:t}),q9=()=>rr.get("/plugins"),Y9=e=>rr.post(`/plugin/${e}/enable`),G9=e=>rr.post(`/plugin/${e}/disable`),v9={style:{display:"flex","align-items":"center",gap:"32px"}},g9=Y({__name:"App",setup(e){const t=lC(),n=aC(),r=B({bind_addr:"",bind_port:0}),o=B(0),i=S(()=>n.path==="/login"),a=[{label:"客户端",key:"/",icon:()=>s(Ia,null,{default:()=>s(AL)})},{label:"插件",key:"/plugins",icon:()=>s(Ia,null,{default:()=>s(IL)})}],l=S(()=>n.path.startsWith("/client/")?"/":n.path),d=u=>{t.push(u)};It(async()=>{if(!i.value)try{const{data:u}=await h9();r.value=u.server,o.value=u.client_count}catch(u){console.error("Failed to get server status",u)}});const c=()=>{Mw(),t.push("/login")};return(u,f)=>(_i(),rd(On(Ku),null,{default:Rr(()=>[hr(On(ff),null,{default:Rr(()=>[hr(On(hf),null,{default:Rr(()=>[i.value?(_i(),rd(On(Df),{key:1})):(_i(),rd(On(Vy),{key:0,style:{"min-height":"100vh"}},{default:Rr(()=>[hr(On(qy),{bordered:"",style:{height:"64px",padding:"0 24px",display:"flex","align-items":"center","justify-content":"space-between"}},{default:Rr(()=>[Zr("div",v9,[Zr("div",{style:{"font-size":"20px","font-weight":"600",color:"#18a058",cursor:"pointer"},onClick:f[0]||(f[0]=v=>On(t).push("/"))}," GoTunnel "),hr(On(l1),{mode:"horizontal",options:a,value:l.value,"onUpdate:value":d},null,8,["value"])]),hr(On(mf),{align:"center",size:16},{default:Rr(()=>[hr(On(ei),{type:"info",round:""},{default:Rr(()=>[ni(od(r.value.bind_addr)+":"+od(r.value.bind_port),1)]),_:1}),hr(On(ei),{type:"success",round:""},{default:Rr(()=>[ni(od(o.value)+" 客户端 ",1)]),_:1}),hr(On(Ot),{quaternary:"",circle:"",onClick:c},{icon:Rr(()=>[hr(On(Ia),null,{default:Rr(()=>[hr(On(_L))]),_:1})]),_:1})]),_:1})]),_:1}),hr(On(Uy),{"content-style":"padding: 24px; max-width: 1200px; margin: 0 auto; width: 100%;"},{default:Rr(()=>[hr(On(Df))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1}))}}),m9="modulepreload",p9=function(e){return"/"+e},em={},Kl=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let d=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");o=d(n.map(c=>{if(c=p9(c),c in em)return;em[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const v=document.createElement("link");if(v.rel=u?"stylesheet":m9,u||(v.as="script"),v.crossOrigin="",v.href=c,l&&v.setAttribute("nonce",l),document.head.appendChild(v),u)return new Promise((m,h)=>{v.addEventListener("load",m),v.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return o.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Iw=sC({history:dC(),routes:[{path:"/login",name:"login",component:()=>Kl(()=>import("./LoginView-DM1JApcE.js"),__vite__mapDeps([0,1,2])),meta:{public:!0}},{path:"/",name:"home",component:()=>Kl(()=>import("./HomeView-CC6tujY_.js"),__vite__mapDeps([3,1]))},{path:"/client/:id",name:"client",component:()=>Kl(()=>import("./ClientView-DMo3F6A5.js"),__vite__mapDeps([4,1,5]))},{path:"/plugins",name:"plugins",component:()=>Kl(()=>import("./PluginsView-CPE2IHXI.js"),__vite__mapDeps([6,1,5]))}]});Iw.beforeEach((e,t,n)=>{const r=Fw();!e.meta.public&&!r?n("/login"):e.path==="/login"&&r?n("/"):n()});const Bf=am(g9);Bf.use(Iw);Bf.use(aw);Bf.mount("#app");export{CE as A,Ot as B,so as C,X8 as D,dN as E,IL as F,G9 as G,Y9 as H,u0 as N,GD as a,pf as b,Sn as c,lT as d,W_ as e,to as f,L9 as g,Wc as h,nN as i,mf as j,ei as k,N9 as l,zx as m,uf as n,H9 as o,Ia as p,uN as q,j9 as r,E9 as s,V9 as t,Vx as u,U9 as v,W9 as w,K9 as x,q9 as y,D0 as z}; diff --git a/internal/server/app/dist/assets/index-BvqIwKwu.js b/internal/server/app/dist/assets/index-BvqIwKwu.js deleted file mode 100644 index 3d95e5b..0000000 --- a/internal/server/app/dist/assets/index-BvqIwKwu.js +++ /dev/null @@ -1,7 +0,0 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomeView-DGCTeR78.js","assets/HomeView-fC0dyEJ8.css","assets/ClientView-Dim5xo2q.js","assets/ClientView-kscuBolA.css"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function Js(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ee={},Ht=[],st=()=>{},Fi=()=>!1,Gn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xs=e=>e.startsWith("onUpdate:"),me=Object.assign,Qs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ol=Object.prototype.hasOwnProperty,Q=(e,t)=>Ol.call(e,t),H=Array.isArray,Vt=e=>zn(e)==="[object Map]",Li=e=>zn(e)==="[object Set]",k=e=>typeof e=="function",ce=e=>typeof e=="string",vt=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Mi=e=>(re(e)||k(e))&&k(e.then)&&k(e.catch),Ui=Object.prototype.toString,zn=e=>Ui.call(e),Cl=e=>zn(e).slice(8,-1),Bi=e=>zn(e)==="[object Object]",Ys=e=>ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Js(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Jn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Tl=/-\w/g,Rt=Jn(e=>e.replace(Tl,t=>t.slice(1).toUpperCase())),Pl=/\B([A-Z])/g,Lt=Jn(e=>e.replace(Pl,"-$1").toLowerCase()),ji=Jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),fs=Jn(e=>e?`on${ji(e)}`:""),wt=(e,t)=>!Object.is(e,t),Tn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Zs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let vr;const Xn=()=>vr||(vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function er(e){if(H(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function tr(e){let t="";if(ce(e))t=e;else if(H(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Pn=e=>ce(e)?e:e==null?"":H(e)||re(e)&&(e.toString===Ui||!k(e.toString))?ki(e)?Pn(e.value):JSON.stringify(e,qi,2):String(e),qi=(e,t)=>ki(t)?qi(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[ds(s,i)+" =>"]=r,n),{})}:Li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:vt(t)?ds(t):re(t)&&!H(t)&&!Bi(t)?String(t):t,ds=(e,t="")=>{var n;return vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Se;class Ul{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Se,!t&&Se&&(this.index=(Se.scopes||(Se.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Se=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function zi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),rr(s),jl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ts(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ji(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ji(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===hn)||(e.globalVersion=hn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ts(e))))return;e.flags|=2;const t=e.dep,n=ne,s=Ve;ne=e,Ve=!0;try{Gi(e);const r=e.fn(e._value);(t.version===0||wt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ne=n,Ve=s,zi(e),e.flags&=-3}}function rr(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)rr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ve=!0;const Xi=[];function ft(){Xi.push(Ve),Ve=!1}function dt(){const e=Xi.pop();Ve=e===void 0?!0:e}function Ar(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ne;ne=void 0;try{t()}finally{ne=n}}}let hn=0;class Hl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ir{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ne||!Ve||ne===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ne)n=this.activeLink=new Hl(ne,this),ne.deps?(n.prevDep=ne.depsTail,ne.depsTail.nextDep=n,ne.depsTail=n):ne.deps=ne.depsTail=n,Qi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ne.depsTail,n.nextDep=void 0,ne.depsTail.nextDep=n,ne.depsTail=n,ne.deps===n&&(ne.deps=s)}return n}trigger(t){this.version++,hn++,this.notify(t)}notify(t){nr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{sr()}}}function Qi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Qi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ps=new WeakMap,Pt=Symbol(""),Ns=Symbol(""),pn=Symbol("");function de(e,t,n){if(Ve&&ne){let s=Ps.get(e);s||Ps.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new ir),r.map=s,r.key=n),r.track()}}function at(e,t,n,s,r,i){const o=Ps.get(e);if(!o){hn++;return}const l=c=>{c&&c.trigger()};if(nr(),t==="clear")o.forEach(l);else{const c=H(e),u=c&&Ys(n);if(c&&n==="length"){const a=Number(s);o.forEach((f,p)=>{(p==="length"||p===pn||!vt(p)&&p>=a)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(pn)),t){case"add":c?u&&l(o.get("length")):(l(o.get(Pt)),Vt(e)&&l(o.get(Ns)));break;case"delete":c||(l(o.get(Pt)),Vt(e)&&l(o.get(Ns)));break;case"set":Vt(e)&&l(o.get(Pt));break}}sr()}function Mt(e){const t=X(e);return t===e?t:(de(t,"iterate",pn),Ue(e)?t:t.map(qe))}function Qn(e){return de(e=X(e),"iterate",pn),e}function gt(e,t){return ht(e)?Nt(e)?$t(qe(t)):$t(t):qe(t)}const Vl={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,e=>gt(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>H(t)?Mt(t):t))},entries(){return ps(this,"entries",e=>(e[1]=gt(this,e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(s=>gt(this,s)),arguments)},find(e,t){return ot(this,"find",e,t,n=>gt(this,n),arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,n=>gt(this,n),arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return Zt(this,"pop")},push(...e){return Zt(this,"push",e)},reduce(e,...t){return xr(this,"reduce",e,t)},reduceRight(e,...t){return xr(this,"reduceRight",e,t)},shift(){return Zt(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return Zt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return Zt(this,"unshift",e)},values(){return ps(this,"values",e=>gt(this,e))}};function ps(e,t,n){const s=Qn(e),r=s[t]();return s!==e&&!Ue(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const kl=Array.prototype;function ot(e,t,n,s,r,i){const o=Qn(e),l=o!==e&&!Ue(e),c=o[t];if(c!==kl[t]){const f=c.apply(e,i);return l?qe(f):f}let u=n;o!==e&&(l?u=function(f,p){return n.call(this,gt(e,f),p,e)}:n.length>2&&(u=function(f,p){return n.call(this,f,p,e)}));const a=c.call(o,u,s);return l&&r?r(a):a}function xr(e,t,n,s){const r=Qn(e);let i=n;return r!==e&&(Ue(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,gt(e,l),c,e)}),r[t](i,...s)}function ms(e,t,n){const s=X(e);de(s,"iterate",pn);const r=s[t](...n);return(r===-1||r===!1)&&cr(n[0])?(n[0]=X(n[0]),s[t](...n)):r}function Zt(e,t,n=[]){ft(),nr();const s=X(e)[t].apply(e,n);return sr(),dt(),s}const ql=Js("__proto__,__v_isRef,__isVue"),Yi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(vt));function $l(e){vt(e)||(e=String(e));const t=X(this);return de(t,"has",e),t.hasOwnProperty(e)}class Zi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?ec:so:i?no:to).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=H(t);if(!r){let c;if(o&&(c=Vl[n]))return c;if(n==="hasOwnProperty")return $l}const l=Reflect.get(t,n,pe(t)?t:s);if((vt(n)?Yi.has(n):ql(n))||(r||de(t,"get",n),i))return l;if(pe(l)){const c=o&&Ys(n)?l:l.value;return r&&re(c)?Ds(c):c}return re(l)?r?Ds(l):Yn(l):l}}class eo extends Zi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=H(t)&&Ys(n);if(!this._isShallow){const u=ht(i);if(!Ue(s)&&!ht(s)&&(i=X(i),s=X(s)),!o&&pe(i)&&!pe(s))return u||(i.value=s),!0}const l=o?Number(n)e,An=e=>Reflect.getPrototypeOf(e);function Jl(e,t,n){return function(...s){const r=this.__v_raw,i=X(r),o=Vt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),a=n?Is:t?$t:qe;return!t&&de(i,"iterate",c?Ns:Pt),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:l?[a(f[0]),a(f[1])]:a(f),done:p}},[Symbol.iterator](){return this}}}}function xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Xl(e,t){const n={get(r){const i=this.__v_raw,o=X(i),l=X(r);e||(wt(r,l)&&de(o,"get",r),de(o,"get",l));const{has:c}=An(o),u=t?Is:e?$t:qe;if(c.call(o,r))return u(i.get(r));if(c.call(o,l))return u(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&de(X(r),"iterate",Pt),r.size},has(r){const i=this.__v_raw,o=X(i),l=X(r);return e||(wt(r,l)&&de(o,"has",r),de(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=X(l),u=t?Is:e?$t:qe;return!e&&de(c,"iterate",Pt),l.forEach((a,f)=>r.call(i,u(a),u(f),o))}};return me(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(r){!t&&!Ue(r)&&!ht(r)&&(r=X(r));const i=X(this);return An(i).has.call(i,r)||(i.add(r),at(i,"add",r,r)),this},set(r,i){!t&&!Ue(i)&&!ht(i)&&(i=X(i));const o=X(this),{has:l,get:c}=An(o);let u=l.call(o,r);u||(r=X(r),u=l.call(o,r));const a=c.call(o,r);return o.set(r,i),u?wt(i,a)&&at(o,"set",r,i):at(o,"add",r,i),this},delete(r){const i=X(this),{has:o,get:l}=An(i);let c=o.call(i,r);c||(r=X(r),c=o.call(i,r)),l&&l.call(i,r);const u=i.delete(r);return c&&at(i,"delete",r,void 0),u},clear(){const r=X(this),i=r.size!==0,o=r.clear();return i&&at(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Jl(r,e,t)}),n}function or(e,t){const n=Xl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const Ql={get:or(!1,!1)},Yl={get:or(!1,!0)},Zl={get:or(!0,!1)};const to=new WeakMap,no=new WeakMap,so=new WeakMap,ec=new WeakMap;function tc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function nc(e){return e.__v_skip||!Object.isExtensible(e)?0:tc(Cl(e))}function Yn(e){return ht(e)?e:lr(e,!1,Wl,Ql,to)}function ro(e){return lr(e,!1,zl,Yl,no)}function Ds(e){return lr(e,!0,Gl,Zl,so)}function lr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=nc(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Nt(e){return ht(e)?Nt(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function cr(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function sc(e){return!Q(e,"__v_skip")&&Object.isExtensible(e)&&Hi(e,"__v_skip",!0),e}const qe=e=>re(e)?Yn(e):e,$t=e=>re(e)?Ds(e):e;function pe(e){return e?e.__v_isRef===!0:!1}function Fs(e){return io(e,!1)}function rc(e){return io(e,!0)}function io(e,t){return pe(e)?e:new ic(e,t)}class ic{constructor(t,n){this.dep=new ir,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:X(t),this._value=n?t:qe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ue(t)||ht(t);t=s?t:X(t),wt(t,n)&&(this._rawValue=t,this._value=s?t:qe(t),this.dep.trigger())}}function It(e){return pe(e)?e.value:e}const oc={get:(e,t,n)=>t==="__v_raw"?e:It(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return pe(r)&&!pe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function oo(e){return Nt(e)?e:new Proxy(e,oc)}class lc{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ir(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=hn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ne!==this)return Wi(this,!0),!0}get value(){const t=this.dep.track();return Ji(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cc(e,t,n=!1){let s,r;return k(e)?s=e:(s=e.get,r=e.set),new lc(s,r,n)}const On={},Bn=new WeakMap;let Ot;function ac(e,t=!1,n=Ot){if(n){let s=Bn.get(n);s||Bn.set(n,s=[]),s.push(e)}}function uc(e,t,n=ee){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,u=P=>r?P:Ue(P)||r===!1||r===0?ut(P,1):ut(P);let a,f,p,y,g=!1,R=!1;if(pe(e)?(f=()=>e.value,g=Ue(e)):Nt(e)?(f=()=>u(e),g=!0):H(e)?(R=!0,g=e.some(P=>Nt(P)||Ue(P)),f=()=>e.map(P=>{if(pe(P))return P.value;if(Nt(P))return u(P);if(k(P))return c?c(P,2):P()})):k(e)?t?f=c?()=>c(e,2):e:f=()=>{if(p){ft();try{p()}finally{dt()}}const P=Ot;Ot=a;try{return c?c(e,3,[y]):e(y)}finally{Ot=P}}:f=st,t&&r){const P=f,q=r===!0?1/0:r;f=()=>ut(P(),q)}const v=Bl(),C=()=>{a.stop(),v&&v.active&&Qs(v.effects,a)};if(i&&t){const P=t;t=(...q)=>{P(...q),C()}}let N=R?new Array(e.length).fill(On):On;const D=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const q=a.run();if(r||g||(R?q.some((se,K)=>wt(se,N[K])):wt(q,N))){p&&p();const se=Ot;Ot=a;try{const K=[q,N===On?void 0:R&&N[0]===On?[]:N,y];N=q,c?c(t,3,K):t(...K)}finally{Ot=se}}}else a.run()};return l&&l(D),a=new $i(f),a.scheduler=o?()=>o(D,!1):D,y=P=>ac(P,!1,a),p=a.onStop=()=>{const P=Bn.get(a);if(P){if(c)c(P,4);else for(const q of P)q();Bn.delete(a)}},t?s?D(!0):N=a.run():o?o(D.bind(null,!0),!0):a.run(),C.pause=a.pause.bind(a),C.resume=a.resume.bind(a),C.stop=C,C}function ut(e,t=1/0,n){if(t<=0||!re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,pe(e))ut(e.value,t,n);else if(H(e))for(let s=0;s{ut(s,t,n)});else if(Bi(e)){for(const s in e)ut(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ut(e[s],t,n)}return e}function _n(e,t,n,s){try{return s?e(...s):e()}catch(r){Zn(r,t,n)}}function rt(e,t,n,s){if(k(e)){const r=_n(e,t,n,s);return r&&Mi(r)&&r.catch(i=>{Zn(i,t,n)}),r}if(H(e)){const r=[];for(let i=0;i>>1,r=be[s],i=mn(r);i=mn(n)?be.push(e):be.splice(dc(t),0,e),e.flags|=1,ao()}}function ao(){jn||(jn=lo.then(fo))}function hc(e){H(e)?kt.push(...e):yt&&e.id===-1?yt.splice(Ut+1,0,e):e.flags&1||(kt.push(e),e.flags|=1),ao()}function Or(e,t,n=et+1){for(;nmn(n)-mn(s));if(kt.length=0,yt){yt.push(...t);return}for(yt=t,Ut=0;Ute.id==null?e.flags&2?-1:1/0:e.id;function fo(e){try{for(et=0;et{s._d&&qn(-1);const i=Hn(t);let o;try{o=e(...r)}finally{Hn(i),s._d&&qn(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function kd(e,t){if(Me===null)return e;const n=ss(Me),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&k(t)?t.call(s&&s.proxy):t}}const mc=Symbol.for("v-scx"),gc=()=>ke(mc);function In(e,t,n){return po(e,t,n)}function po(e,t,n=ee){const{immediate:s,deep:r,flush:i,once:o}=n,l=me({},n),c=t&&s||!t&&i!=="post";let u;if(yn){if(i==="sync"){const y=gc();u=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=st,y.resume=st,y.pause=st,y}}const a=_e;l.call=(y,g,R)=>rt(y,a,g,R);let f=!1;i==="post"?l.scheduler=y=>{Ne(y,a&&a.suspense)}:i!=="sync"&&(f=!0,l.scheduler=(y,g)=>{g?y():ar(y)}),l.augmentJob=y=>{t&&(y.flags|=4),f&&(y.flags|=2,a&&(y.id=a.uid,y.i=a))};const p=uc(e,t,l);return yn&&(u?u.push(p):c&&p()),p}function yc(e,t,n){const s=this.proxy,r=ce(e)?e.includes(".")?mo(s,e):()=>s[e]:e.bind(s,s);let i;k(t)?i=t:(i=t.handler,n=t);const o=En(this),l=po(r,i.bind(s),n);return o(),l}function mo(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,Ec=Symbol("_leaveCb");function ur(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ur(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function fr(e,t){return k(e)?me({name:e.name},t,{setup:e}):e}function go(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Vn=new WeakMap;function cn(e,t,n,s,r=!1){if(H(e)){e.forEach((g,R)=>cn(g,t&&(H(t)?t[R]:t),n,s,r));return}if(an(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&cn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ss(s.component):s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,a=l.refs===ee?l.refs={}:l.refs,f=l.setupState,p=X(f),y=f===ee?Fi:g=>Q(p,g);if(u!=null&&u!==c){if(Cr(t),ce(u))a[u]=null,y(u)&&(f[u]=null);else if(pe(u)){u.value=null;const g=t;g.k&&(a[g.k]=null)}}if(k(c))_n(c,l,12,[o,a]);else{const g=ce(c),R=pe(c);if(g||R){const v=()=>{if(e.f){const C=g?y(c)?f[c]:a[c]:c.value;if(r)H(C)&&Qs(C,i);else if(H(C))C.includes(i)||C.push(i);else if(g)a[c]=[i],y(c)&&(f[c]=a[c]);else{const N=[i];c.value=N,e.k&&(a[e.k]=N)}}else g?(a[c]=o,y(c)&&(f[c]=o)):R&&(c.value=o,e.k&&(a[e.k]=o))};if(o){const C=()=>{v(),Vn.delete(e)};C.id=-1,Vn.set(e,C),Ne(C,n)}else Cr(e),v()}}}function Cr(e){const t=Vn.get(e);t&&(t.flags|=8,Vn.delete(e))}Xn().requestIdleCallback;Xn().cancelIdleCallback;const an=e=>!!e.type.__asyncLoader,yo=e=>e.type.__isKeepAlive;function wc(e,t){bo(e,"a",t)}function Rc(e,t){bo(e,"da",t)}function bo(e,t,n=_e){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(es(t,s,n),n){let r=n.parent;for(;r&&r.parent;)yo(r.parent.vnode)&&Sc(s,t,n,r),r=r.parent}}function Sc(e,t,n,s){const r=es(t,e,s,!0);Eo(()=>{Qs(s[t],r)},n)}function es(e,t,n=_e,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ft();const l=En(n),c=rt(t,n,e,o);return l(),dt(),c});return s?r.unshift(i):r.push(i),i}}const pt=e=>(t,n=_e)=>{(!yn||e==="sp")&&es(e,(...s)=>t(...s),n)},vc=pt("bm"),_o=pt("m"),Ac=pt("bu"),xc=pt("u"),Oc=pt("bum"),Eo=pt("um"),Cc=pt("sp"),Tc=pt("rtg"),Pc=pt("rtc");function Nc(e,t=_e){es("ec",e,t)}const Ic=Symbol.for("v-ndc");function qd(e,t,n,s){let r;const i=n,o=H(e);if(o||ce(e)){const l=o&&Nt(e);let c=!1,u=!1;l&&(c=!Ue(e),u=ht(e),e=Qn(e)),r=new Array(e.length);for(let a=0,f=e.length;at(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,u=l.length;ce?Ho(e)?ss(e):Ls(e.parent):null,un=me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ls(e.parent),$root:e=>Ls(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ro(e),$forceUpdate:e=>e.f||(e.f=()=>{ar(e.update)}),$nextTick:e=>e.n||(e.n=co.bind(e.proxy)),$watch:e=>yc.bind(e)}),gs=(e,t)=>e!==ee&&!e.__isScriptSetup&&Q(e,t),Dc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(gs(s,t))return o[t]=1,s[t];if(r!==ee&&Q(r,t))return o[t]=2,r[t];if(Q(i,t))return o[t]=3,i[t];if(n!==ee&&Q(n,t))return o[t]=4,n[t];Ms&&(o[t]=0)}}const u=un[t];let a,f;if(u)return t==="$attrs"&&de(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==ee&&Q(n,t))return o[t]=4,n[t];if(f=c.config.globalProperties,Q(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return gs(r,t)?(r[t]=n,!0):s!==ee&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==ee&&l[0]!=="$"&&Q(e,l)||gs(t,l)||Q(i,l)||Q(s,l)||Q(un,l)||Q(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Tr(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ms=!0;function Fc(e){const t=Ro(e),n=e.proxy,s=e.ctx;Ms=!1,t.beforeCreate&&Pr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:a,beforeMount:f,mounted:p,beforeUpdate:y,updated:g,activated:R,deactivated:v,beforeDestroy:C,beforeUnmount:N,destroyed:D,unmounted:P,render:q,renderTracked:se,renderTriggered:K,errorCaptured:Ee,serverPrefetch:Oe,expose:Ce,inheritAttrs:Be,components:De,directives:fe,filters:Te}=t;if(u&&Lc(u,s,null),o)for(const z in o){const $=o[z];k($)&&(s[z]=$.bind(n))}if(r){const z=r.call(n,n);re(z)&&(e.data=Yn(z))}if(Ms=!0,i)for(const z in i){const $=i[z],Fe=k($)?$.bind(n,n):k($.get)?$.get.bind(n,n):st,We=!k($)&&k($.set)?$.set.bind(n):st,ae=He({get:Fe,set:We});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>ae.value,set:oe=>ae.value=oe})}if(l)for(const z in l)wo(l[z],s,n,z);if(c){const z=k(c)?c.call(n):c;Reflect.ownKeys(z).forEach($=>{Nn($,z[$])})}a&&Pr(a,e,"c");function Y(z,$){H($)?$.forEach(Fe=>z(Fe.bind(n))):$&&z($.bind(n))}if(Y(vc,f),Y(_o,p),Y(Ac,y),Y(xc,g),Y(wc,R),Y(Rc,v),Y(Nc,Ee),Y(Pc,se),Y(Tc,K),Y(Oc,N),Y(Eo,P),Y(Cc,Oe),H(Ce))if(Ce.length){const z=e.exposed||(e.exposed={});Ce.forEach($=>{Object.defineProperty(z,$,{get:()=>n[$],set:Fe=>n[$]=Fe,enumerable:!0})})}else e.exposed||(e.exposed={});q&&e.render===st&&(e.render=q),Be!=null&&(e.inheritAttrs=Be),De&&(e.components=De),fe&&(e.directives=fe),Oe&&go(e)}function Lc(e,t,n=st){H(e)&&(e=Us(e));for(const s in e){const r=e[s];let i;re(r)?"default"in r?i=ke(r.from||s,r.default,!0):i=ke(r.from||s):i=ke(r),pe(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Pr(e,t,n){rt(H(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function wo(e,t,n,s){let r=s.includes(".")?mo(n,s):()=>n[s];if(ce(e)){const i=t[e];k(i)&&In(r,i)}else if(k(e))In(r,e.bind(n));else if(re(e))if(H(e))e.forEach(i=>wo(i,t,n,s));else{const i=k(e.handler)?e.handler.bind(n):t[e.handler];k(i)&&In(r,i,e)}}function Ro(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>kn(c,u,o,!0)),kn(c,t,o)),re(t)&&i.set(t,c),c}function kn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&kn(e,i,n,!0),r&&r.forEach(o=>kn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Mc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Mc={data:Nr,props:Ir,emits:Ir,methods:sn,computed:sn,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:sn,directives:sn,watch:Bc,provide:Nr,inject:Uc};function Nr(e,t){return t?e?function(){return me(k(e)?e.call(this,this):e,k(t)?t.call(this,this):t)}:t:e}function Uc(e,t){return sn(Us(e),Us(t))}function Us(e){if(H(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rt(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function kc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ee;let r=n;const i=t.startsWith("update:"),o=i&&Vc(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>ce(a)?a.trim():a)),o.number&&(r=n.map(Zs)));let l,c=s[l=fs(t)]||s[l=fs(Rt(t))];!c&&i&&(c=s[l=fs(Lt(t))]),c&&rt(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,rt(u,e,6,r)}}const qc=new WeakMap;function vo(e,t,n=!1){const s=n?qc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!k(e)){const c=u=>{const a=vo(u,t,!0);a&&(l=!0,me(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(re(e)&&s.set(e,null),null):(H(i)?i.forEach(c=>o[c]=null):me(o,i),re(e)&&s.set(e,o),o)}function ts(e,t){return!e||!Gn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Lt(t))||Q(e,t))}function Dr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:a,props:f,data:p,setupState:y,ctx:g,inheritAttrs:R}=e,v=Hn(e);let C,N;try{if(n.shapeFlag&4){const P=r||s,q=P;C=nt(u.call(q,P,a,f,y,p,g)),N=l}else{const P=t;C=nt(P.length>1?P(f,{attrs:l,slots:o,emit:c}):P(f,null)),N=t.props?l:$c(l)}}catch(P){fn.length=0,Zn(P,e,1),C=ve(St)}let D=C;if(N&&R!==!1){const P=Object.keys(N),{shapeFlag:q}=D;P.length&&q&7&&(i&&P.some(Xs)&&(N=Kc(N,i)),D=Kt(D,N,!1,!0))}return n.dirs&&(D=Kt(D,null,!1,!0),D.dirs=D.dirs?D.dirs.concat(n.dirs):n.dirs),n.transition&&ur(D,n.transition),C=D,Hn(v),C}const $c=e=>{let t;for(const n in e)(n==="class"||n==="style"||Gn(n))&&((t||(t={}))[n]=e[n]);return t},Kc=(e,t)=>{const n={};for(const s in e)(!Xs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Wc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Fr(s,o,u):!!o;if(c&8){const a=t.dynamicProps;for(let f=0;fObject.create(Ao),Oo=e=>Object.getPrototypeOf(e)===Ao;function zc(e,t,n,s=!1){const r={},i=xo();e.propsDefaults=Object.create(null),Co(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:ro(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Jc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=X(r),[c]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let f=0;f{c=!0;const[p,y]=To(f,t,!0);me(o,p),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return re(e)&&s.set(e,Ht),Ht;if(H(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",hr=e=>H(e)?e.map(nt):[nt(e)],Qc=(e,t,n)=>{if(t._n)return t;const s=pc((...r)=>hr(t(...r)),n);return s._c=!1,s},Po=(e,t,n)=>{const s=e._ctx;for(const r in e){if(dr(r))continue;const i=e[r];if(k(i))t[r]=Qc(r,i,s);else if(i!=null){const o=hr(i);t[r]=()=>o}}},No=(e,t)=>{const n=hr(t);e.slots.default=()=>n},Io=(e,t,n)=>{for(const s in t)(n||!dr(s))&&(e[s]=t[s])},Yc=(e,t,n)=>{const s=e.slots=xo();if(e.vnode.shapeFlag&32){const r=t._;r?(Io(s,t,n),n&&Hi(s,"_",r,!0)):Po(t,s)}else t&&No(e,t)},Zc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=ee;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Io(r,t,n):(i=!t.$stable,Po(t,r)),o=t}else t&&(No(e,t),o={default:1});if(i)for(const l in r)!dr(l)&&o[l]==null&&delete r[l]},Ne=ra;function ea(e){return ta(e)}function ta(e,t){const n=Xn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:a,parentNode:f,nextSibling:p,setScopeId:y=st,insertStaticContent:g}=e,R=(d,h,m,_=null,S=null,E=null,T=void 0,O=null,x=!!h.dynamicChildren)=>{if(d===h)return;d&&!en(d,h)&&(_=w(d),oe(d,S,E,!0),d=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null);const{type:A,ref:B,shapeFlag:F}=h;switch(A){case ns:v(d,h,m,_);break;case St:C(d,h,m,_);break;case bs:d==null&&N(h,m,_,T);break;case tt:De(d,h,m,_,S,E,T,O,x);break;default:F&1?q(d,h,m,_,S,E,T,O,x):F&6?fe(d,h,m,_,S,E,T,O,x):(F&64||F&128)&&A.process(d,h,m,_,S,E,T,O,x,M)}B!=null&&S?cn(B,d&&d.ref,E,h||d,!h):B==null&&d&&d.ref!=null&&cn(d.ref,null,E,d,!0)},v=(d,h,m,_)=>{if(d==null)s(h.el=l(h.children),m,_);else{const S=h.el=d.el;h.children!==d.children&&u(S,h.children)}},C=(d,h,m,_)=>{d==null?s(h.el=c(h.children||""),m,_):h.el=d.el},N=(d,h,m,_)=>{[d.el,d.anchor]=g(d.children,h,m,_,d.el,d.anchor)},D=({el:d,anchor:h},m,_)=>{let S;for(;d&&d!==h;)S=p(d),s(d,m,_),d=S;s(h,m,_)},P=({el:d,anchor:h})=>{let m;for(;d&&d!==h;)m=p(d),r(d),d=m;r(h)},q=(d,h,m,_,S,E,T,O,x)=>{if(h.type==="svg"?T="svg":h.type==="math"&&(T="mathml"),d==null)se(h,m,_,S,E,T,O,x);else{const A=d.el&&d.el._isVueCE?d.el:null;try{A&&A._beginPatch(),Oe(d,h,S,E,T,O,x)}finally{A&&A._endPatch()}}},se=(d,h,m,_,S,E,T,O)=>{let x,A;const{props:B,shapeFlag:F,transition:U,dirs:j}=d;if(x=d.el=o(d.type,E,B&&B.is,B),F&8?a(x,d.children):F&16&&Ee(d.children,x,null,_,S,ys(d,E),T,O),j&&At(d,null,_,"created"),K(x,d,d.scopeId,T,_),B){for(const te in B)te!=="value"&&!rn(te)&&i(x,te,null,B[te],E,_);"value"in B&&i(x,"value",null,B.value,E),(A=B.onVnodeBeforeMount)&&Ye(A,_,d)}j&&At(d,null,_,"beforeMount");const G=na(S,U);G&&U.beforeEnter(x),s(x,h,m),((A=B&&B.onVnodeMounted)||G||j)&&Ne(()=>{A&&Ye(A,_,d),G&&U.enter(x),j&&At(d,null,_,"mounted")},S)},K=(d,h,m,_,S)=>{if(m&&y(d,m),_)for(let E=0;E<_.length;E++)y(d,_[E]);if(S){let E=S.subTree;if(h===E||Mo(E.type)&&(E.ssContent===h||E.ssFallback===h)){const T=S.vnode;K(d,T,T.scopeId,T.slotScopeIds,S.parent)}}},Ee=(d,h,m,_,S,E,T,O,x=0)=>{for(let A=x;A{const O=h.el=d.el;let{patchFlag:x,dynamicChildren:A,dirs:B}=h;x|=d.patchFlag&16;const F=d.props||ee,U=h.props||ee;let j;if(m&&xt(m,!1),(j=U.onVnodeBeforeUpdate)&&Ye(j,m,h,d),B&&At(h,d,m,"beforeUpdate"),m&&xt(m,!0),(F.innerHTML&&U.innerHTML==null||F.textContent&&U.textContent==null)&&a(O,""),A?Ce(d.dynamicChildren,A,O,m,_,ys(h,S),E):T||$(d,h,O,null,m,_,ys(h,S),E,!1),x>0){if(x&16)Be(O,F,U,m,S);else if(x&2&&F.class!==U.class&&i(O,"class",null,U.class,S),x&4&&i(O,"style",F.style,U.style,S),x&8){const G=h.dynamicProps;for(let te=0;te{j&&Ye(j,m,h,d),B&&At(h,d,m,"updated")},_)},Ce=(d,h,m,_,S,E,T)=>{for(let O=0;O{if(h!==m){if(h!==ee)for(const E in h)!rn(E)&&!(E in m)&&i(d,E,h[E],null,S,_);for(const E in m){if(rn(E))continue;const T=m[E],O=h[E];T!==O&&E!=="value"&&i(d,E,O,T,S,_)}"value"in m&&i(d,"value",h.value,m.value,S)}},De=(d,h,m,_,S,E,T,O,x)=>{const A=h.el=d?d.el:l(""),B=h.anchor=d?d.anchor:l("");let{patchFlag:F,dynamicChildren:U,slotScopeIds:j}=h;j&&(O=O?O.concat(j):j),d==null?(s(A,m,_),s(B,m,_),Ee(h.children||[],m,B,S,E,T,O,x)):F>0&&F&64&&U&&d.dynamicChildren&&d.dynamicChildren.length===U.length?(Ce(d.dynamicChildren,U,m,S,E,T,O),(h.key!=null||S&&h===S.subTree)&&Do(d,h,!0)):$(d,h,m,B,S,E,T,O,x)},fe=(d,h,m,_,S,E,T,O,x)=>{h.slotScopeIds=O,d==null?h.shapeFlag&512?S.ctx.activate(h,m,_,T,x):Te(h,m,_,S,E,T,x):it(d,h,x)},Te=(d,h,m,_,S,E,T)=>{const O=d.component=pa(d,_,S);if(yo(d)&&(O.ctx.renderer=M),ga(O,!1,T),O.asyncDep){if(S&&S.registerDep(O,Y,T),!d.el){const x=O.subTree=ve(St);C(null,x,h,m),d.placeholder=x.el}}else Y(O,d,h,m,S,E,T)},it=(d,h,m)=>{const _=h.component=d.component;if(Wc(d,h,m))if(_.asyncDep&&!_.asyncResolved){z(_,h,m);return}else _.next=h,_.update();else h.el=d.el,_.vnode=h},Y=(d,h,m,_,S,E,T)=>{const O=()=>{if(d.isMounted){let{next:F,bu:U,u:j,parent:G,vnode:te}=d;{const Xe=Fo(d);if(Xe){F&&(F.el=te.el,z(d,F,T)),Xe.asyncDep.then(()=>{d.isUnmounted||O()});return}}let Z=F,we;xt(d,!1),F?(F.el=te.el,z(d,F,T)):F=te,U&&Tn(U),(we=F.props&&F.props.onVnodeBeforeUpdate)&&Ye(we,G,F,te),xt(d,!0);const Re=Dr(d),Je=d.subTree;d.subTree=Re,R(Je,Re,f(Je.el),w(Je),d,S,E),F.el=Re.el,Z===null&&Gc(d,Re.el),j&&Ne(j,S),(we=F.props&&F.props.onVnodeUpdated)&&Ne(()=>Ye(we,G,F,te),S)}else{let F;const{el:U,props:j}=h,{bm:G,m:te,parent:Z,root:we,type:Re}=d,Je=an(h);xt(d,!1),G&&Tn(G),!Je&&(F=j&&j.onVnodeBeforeMount)&&Ye(F,Z,h),xt(d,!0);{we.ce&&we.ce._def.shadowRoot!==!1&&we.ce._injectChildStyle(Re);const Xe=d.subTree=Dr(d);R(null,Xe,m,_,d,S,E),h.el=Xe.el}if(te&&Ne(te,S),!Je&&(F=j&&j.onVnodeMounted)){const Xe=h;Ne(()=>Ye(F,Z,Xe),S)}(h.shapeFlag&256||Z&&an(Z.vnode)&&Z.vnode.shapeFlag&256)&&d.a&&Ne(d.a,S),d.isMounted=!0,h=m=_=null}};d.scope.on();const x=d.effect=new $i(O);d.scope.off();const A=d.update=x.run.bind(x),B=d.job=x.runIfDirty.bind(x);B.i=d,B.id=d.uid,x.scheduler=()=>ar(B),xt(d,!0),A()},z=(d,h,m)=>{h.component=d;const _=d.vnode.props;d.vnode=h,d.next=null,Jc(d,h.props,_,m),Zc(d,h.children,m),ft(),Or(d),dt()},$=(d,h,m,_,S,E,T,O,x=!1)=>{const A=d&&d.children,B=d?d.shapeFlag:0,F=h.children,{patchFlag:U,shapeFlag:j}=h;if(U>0){if(U&128){We(A,F,m,_,S,E,T,O,x);return}else if(U&256){Fe(A,F,m,_,S,E,T,O,x);return}}j&8?(B&16&&Le(A,S,E),F!==A&&a(m,F)):B&16?j&16?We(A,F,m,_,S,E,T,O,x):Le(A,S,E,!0):(B&8&&a(m,""),j&16&&Ee(F,m,_,S,E,T,O,x))},Fe=(d,h,m,_,S,E,T,O,x)=>{d=d||Ht,h=h||Ht;const A=d.length,B=h.length,F=Math.min(A,B);let U;for(U=0;UB?Le(d,S,E,!0,!1,F):Ee(h,m,_,S,E,T,O,x,F)},We=(d,h,m,_,S,E,T,O,x)=>{let A=0;const B=h.length;let F=d.length-1,U=B-1;for(;A<=F&&A<=U;){const j=d[A],G=h[A]=x?_t(h[A]):nt(h[A]);if(en(j,G))R(j,G,m,null,S,E,T,O,x);else break;A++}for(;A<=F&&A<=U;){const j=d[F],G=h[U]=x?_t(h[U]):nt(h[U]);if(en(j,G))R(j,G,m,null,S,E,T,O,x);else break;F--,U--}if(A>F){if(A<=U){const j=U+1,G=jU)for(;A<=F;)oe(d[A],S,E,!0),A++;else{const j=A,G=A,te=new Map;for(A=G;A<=U;A++){const Pe=h[A]=x?_t(h[A]):nt(h[A]);Pe.key!=null&&te.set(Pe.key,A)}let Z,we=0;const Re=U-G+1;let Je=!1,Xe=0;const Yt=new Array(Re);for(A=0;A=Re){oe(Pe,S,E,!0);continue}let Qe;if(Pe.key!=null)Qe=te.get(Pe.key);else for(Z=G;Z<=U;Z++)if(Yt[Z-G]===0&&en(Pe,h[Z])){Qe=Z;break}Qe===void 0?oe(Pe,S,E,!0):(Yt[Qe-G]=A+1,Qe>=Xe?Xe=Qe:Je=!0,R(Pe,h[Qe],m,null,S,E,T,O,x),we++)}const wr=Je?sa(Yt):Ht;for(Z=wr.length-1,A=Re-1;A>=0;A--){const Pe=G+A,Qe=h[Pe],Rr=h[Pe+1],Sr=Pe+1{const{el:E,type:T,transition:O,children:x,shapeFlag:A}=d;if(A&6){ae(d.component.subTree,h,m,_);return}if(A&128){d.suspense.move(h,m,_);return}if(A&64){T.move(d,h,m,M);return}if(T===tt){s(E,h,m);for(let F=0;FO.enter(E),S);else{const{leave:F,delayLeave:U,afterLeave:j}=O,G=()=>{d.ctx.isUnmounted?r(E):s(E,h,m)},te=()=>{E._isLeaving&&E[Ec](!0),F(E,()=>{G(),j&&j()})};U?U(E,G,te):te()}else s(E,h,m)},oe=(d,h,m,_=!1,S=!1)=>{const{type:E,props:T,ref:O,children:x,dynamicChildren:A,shapeFlag:B,patchFlag:F,dirs:U,cacheIndex:j}=d;if(F===-2&&(S=!1),O!=null&&(ft(),cn(O,null,m,d,!0),dt()),j!=null&&(h.renderCache[j]=void 0),B&256){h.ctx.deactivate(d);return}const G=B&1&&U,te=!an(d);let Z;if(te&&(Z=T&&T.onVnodeBeforeUnmount)&&Ye(Z,h,d),B&6)ze(d.component,m,_);else{if(B&128){d.suspense.unmount(m,_);return}G&&At(d,null,h,"beforeUnmount"),B&64?d.type.remove(d,h,m,M,_):A&&!A.hasOnce&&(E!==tt||F>0&&F&64)?Le(A,h,m,!1,!0):(E===tt&&F&384||!S&&B&16)&&Le(x,h,m),_&&Ge(d)}(te&&(Z=T&&T.onVnodeUnmounted)||G)&&Ne(()=>{Z&&Ye(Z,h,d),G&&At(d,null,h,"unmounted")},m)},Ge=d=>{const{type:h,el:m,anchor:_,transition:S}=d;if(h===tt){je(m,_);return}if(h===bs){P(d);return}const E=()=>{r(m),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(d.shapeFlag&1&&S&&!S.persisted){const{leave:T,delayLeave:O}=S,x=()=>T(m,E);O?O(d.el,E,x):x()}else E()},je=(d,h)=>{let m;for(;d!==h;)m=p(d),r(d),d=m;r(h)},ze=(d,h,m)=>{const{bum:_,scope:S,job:E,subTree:T,um:O,m:x,a:A}=d;Mr(x),Mr(A),_&&Tn(_),S.stop(),E&&(E.flags|=8,oe(T,d,h,m)),O&&Ne(O,h),Ne(()=>{d.isUnmounted=!0},h)},Le=(d,h,m,_=!1,S=!1,E=0)=>{for(let T=E;T{if(d.shapeFlag&6)return w(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const h=p(d.anchor||d.el),m=h&&h[bc];return m?p(m):h};let L=!1;const I=(d,h,m)=>{let _;d==null?h._vnode&&(oe(h._vnode,null,null,!0),_=h._vnode.component):R(h._vnode||null,d,h,null,null,null,m),h._vnode=d,L||(L=!0,Or(_),uo(),L=!1)},M={p:R,um:oe,m:ae,r:Ge,mt:Te,mc:Ee,pc:$,pbc:Ce,n:w,o:e};return{render:I,hydrate:void 0,createApp:Hc(I)}}function ys({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function xt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function na(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Do(e,t,n=!1){const s=e.children,r=t.children;if(H(s)&&H(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Fo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fo(t)}function Mr(e){if(e)for(let t=0;te.__isSuspense;function ra(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):hc(e)}const tt=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),bs=Symbol.for("v-stc"),fn=[];let Ie=null;function Uo(e=!1){fn.push(Ie=e?null:[])}function ia(){fn.pop(),Ie=fn[fn.length-1]||null}let gn=1;function qn(e,t=!1){gn+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function Bo(e){return e.dynamicChildren=gn>0?Ie||Ht:null,ia(),gn>0&&Ie&&Ie.push(e),e}function oa(e,t,n,s,r,i){return Bo(bt(e,t,n,s,r,i,!0))}function la(e,t,n,s,r){return Bo(ve(e,t,n,s,r,!0))}function $n(e){return e?e.__v_isVNode===!0:!1}function en(e,t){return e.type===t.type&&e.key===t.key}const jo=({key:e})=>e??null,Dn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ce(e)||pe(e)||k(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function bt(e,t=null,n=null,s=0,r=null,i=e===tt?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&jo(t),ref:t&&Dn(t),scopeId:ho,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Me};return l?(pr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ce(n)?8:16),gn>0&&!o&&Ie&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ie.push(c),c}const ve=ca;function ca(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Ic)&&(e=St),$n(e)){const l=Kt(e,t,!0);return n&&pr(l,n),gn>0&&!i&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(Ea(e)&&(e=e.__vccOpts),t){t=aa(t);let{class:l,style:c}=t;l&&!ce(l)&&(t.class=tr(l)),re(c)&&(cr(c)&&!H(c)&&(c=me({},c)),t.style=er(c))}const o=ce(e)?1:Mo(e)?128:_c(e)?64:re(e)?4:k(e)?2:0;return bt(e,t,n,s,r,o,i,!0)}function aa(e){return e?cr(e)||Oo(e)?me({},e):e:null}function Kt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,u=t?fa(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&jo(u),ref:t&&t.ref?n&&i?H(i)?i.concat(Dn(t)):[i,Dn(t)]:Dn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==tt?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ur(a,c.clone(a)),a}function ua(e=" ",t=0){return ve(ns,null,e,t)}function $d(e="",t=!1){return t?(Uo(),la(St,null,e)):ve(St,null,e)}function nt(e){return e==null||typeof e=="boolean"?ve(St):H(e)?ve(tt,null,e.slice()):$n(e)?_t(e):ve(ns,null,String(e))}function _t(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function pr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),pr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Oo(t)?t._ctx=Me:r===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else k(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),s&64?(n=16,t=[ua(t)]):n=8);e.children=t,e.shapeFlag|=n}function fa(...e){const t={};for(let n=0;n_e||Me;let Kn,js;{const e=Xn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Kn=t("__VUE_INSTANCE_SETTERS__",n=>_e=n),js=t("__VUE_SSR_SETTERS__",n=>yn=n)}const En=e=>{const t=_e;return Kn(e),e.scope.on(),()=>{e.scope.off(),Kn(t)}},Ur=()=>{_e&&_e.scope.off(),Kn(null)};function Ho(e){return e.vnode.shapeFlag&4}let yn=!1;function ga(e,t=!1,n=!1){t&&js(t);const{props:s,children:r}=e.vnode,i=Ho(e);zc(e,s,i,t),Yc(e,r,n||t);const o=i?ya(e,t):void 0;return t&&js(!1),o}function ya(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dc);const{setup:s}=n;if(s){ft();const r=e.setupContext=s.length>1?_a(e):null,i=En(e),o=_n(s,e,0,[e.props,r]),l=Mi(o);if(dt(),i(),(l||e.sp)&&!an(e)&&go(e),l){if(o.then(Ur,Ur),t)return o.then(c=>{Br(e,c)}).catch(c=>{Zn(c,e,0)});e.asyncDep=o}else Br(e,o)}else Vo(e)}function Br(e,t,n){k(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=oo(t)),Vo(e)}function Vo(e,t,n){const s=e.type;e.render||(e.render=s.render||st);{const r=En(e);ft();try{Fc(e)}finally{dt(),r()}}}const ba={get(e,t){return de(e,"get",""),e[t]}};function _a(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,ba),slots:e.slots,emit:e.emit,expose:t}}function ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(oo(sc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in un)return un[n](e)},has(t,n){return n in t||n in un}})):e.proxy}function Ea(e){return k(e)&&"__vccOpts"in e}const He=(e,t)=>cc(e,t,yn);function ko(e,t,n){try{qn(-1);const s=arguments.length;return s===2?re(t)&&!H(t)?$n(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&$n(n)&&(n=[n]),ve(e,t,n))}finally{qn(1)}}const wa="3.5.26";let Hs;const jr=typeof window<"u"&&window.trustedTypes;if(jr)try{Hs=jr.createPolicy("vue",{createHTML:e=>e})}catch{}const qo=Hs?e=>Hs.createHTML(e):e=>e,Ra="http://www.w3.org/2000/svg",Sa="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,Hr=ct&&ct.createElement("template"),va={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ct.createElementNS(Ra,e):t==="mathml"?ct.createElementNS(Sa,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Hr.innerHTML=qo(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Hr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Aa=Symbol("_vtc");function xa(e,t,n){const s=e[Aa];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Vr=Symbol("_vod"),Oa=Symbol("_vsh"),Ca=Symbol(""),Ta=/(?:^|;)\s*display\s*:/;function Pa(e,t,n){const s=e.style,r=ce(n);let i=!1;if(n&&!r){if(t)if(ce(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Fn(s,l,"")}else for(const o in t)n[o]==null&&Fn(s,o,"");for(const o in n)o==="display"&&(i=!0),Fn(s,o,n[o])}else if(r){if(t!==n){const o=s[Ca];o&&(n+=";"+o),s.cssText=n,i=Ta.test(n)}}else t&&e.removeAttribute("style");Vr in e&&(e[Vr]=i?s.display:"",e[Oa]&&(s.display="none"))}const kr=/\s*!important$/;function Fn(e,t,n){if(H(n))n.forEach(s=>Fn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Na(e,t);kr.test(n)?e.setProperty(Lt(s),n.replace(kr,""),"important"):e[s]=n}}const qr=["Webkit","Moz","ms"],_s={};function Na(e,t){const n=_s[t];if(n)return n;let s=Rt(t);if(s!=="filter"&&s in e)return _s[t]=s;s=ji(s);for(let r=0;rEs||(La.then(()=>Es=0),Es=Date.now());function Ua(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;rt(Ba(s,n.value),t,5,[s])};return n.value=e,n.attached=Ma(),n}function Ba(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ja=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?xa(e,s,o):t==="style"?Pa(e,n,s):Gn(t)?Xs(t)||Da(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ha(e,t,s,o))?(Wr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Kr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ce(s))?Wr(e,Rt(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kr(e,t,s,o))};function Ha(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Jr(t)&&k(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Jr(t)&&ce(n)?!1:t in e}const Xr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Tn(t,n):t};function Va(e){e.target.composing=!0}function Qr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws=Symbol("_assign");function Yr(e,t,n){return t&&(e=e.trim()),n&&(e=Zs(e)),e}const Kd={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[ws]=Xr(r);const i=s||r.props&&r.props.type==="number";Bt(e,t?"change":"input",o=>{o.target.composing||e[ws](Yr(e.value,n,i))}),(n||i)&&Bt(e,"change",()=>{e.value=Yr(e.value,n,i)}),t||(Bt(e,"compositionstart",Va),Bt(e,"compositionend",Qr),Bt(e,"change",Qr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[ws]=Xr(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Zs(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},ka=["ctrl","shift","alt","meta"],qa={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ka.some(n=>e[`${n}Key`]&&!t.includes(n))},Wd=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o{const t=Ka().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=za(s);if(!r)return;const i=t._component;!k(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Ga(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Ga(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function za(e){return ce(e)?document.querySelector(e):e}const jt=typeof document<"u";function $o(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ja(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&$o(e.default)}const J=Object.assign;function Rs(e,t){const n={};for(const s in t){const r=t[s];n[s]=$e(r)?r.map(e):e(r)}return n}const dn=()=>{},$e=Array.isArray;function ei(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Ko=/#/g,Xa=/&/g,Qa=/\//g,Ya=/=/g,Za=/\?/g,Wo=/\+/g,eu=/%5B/g,tu=/%5D/g,Go=/%5E/g,nu=/%60/g,zo=/%7B/g,su=/%7C/g,Jo=/%7D/g,ru=/%20/g;function mr(e){return e==null?"":encodeURI(""+e).replace(su,"|").replace(eu,"[").replace(tu,"]")}function iu(e){return mr(e).replace(zo,"{").replace(Jo,"}").replace(Go,"^")}function Vs(e){return mr(e).replace(Wo,"%2B").replace(ru,"+").replace(Ko,"%23").replace(Xa,"%26").replace(nu,"`").replace(zo,"{").replace(Jo,"}").replace(Go,"^")}function ou(e){return Vs(e).replace(Ya,"%3D")}function lu(e){return mr(e).replace(Ko,"%23").replace(Za,"%3F")}function cu(e){return lu(e).replace(Qa,"%2F")}function bn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const au=/\/$/,uu=e=>e.replace(au,"");function Ss(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=pu(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:bn(o)}}function fu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ti(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function du(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Wt(t.matched[s],n.matched[r])&&Xo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!hu(e[n],t[n]))return!1;return!0}function hu(e,t){return $e(e)?ni(e,t):$e(t)?ni(t,e):e?.valueOf()===t?.valueOf()}function ni(e,t){return $e(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const mt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ks=(function(e){return e.pop="pop",e.push="push",e})({}),vs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function mu(e){if(!e)if(jt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uu(e)}const gu=/^[^#]+#/;function yu(e,t){return e.replace(gu,"#")+t}function bu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const rs=()=>({left:window.scrollX,top:window.scrollY});function _u(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=bu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function si(e,t){return(history.state?history.state.position-t:-1)+e}const qs=new Map;function Eu(e,t){qs.set(e,t)}function wu(e){const t=qs.get(e);return qs.delete(e),t}function Ru(e){return typeof e=="string"||e&&typeof e=="object"}function Qo(e){return typeof e=="string"||typeof e=="symbol"}let ie=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Yo=Symbol("");ie.MATCHER_NOT_FOUND+"",ie.NAVIGATION_GUARD_REDIRECT+"",ie.NAVIGATION_ABORTED+"",ie.NAVIGATION_CANCELLED+"",ie.NAVIGATION_DUPLICATED+"";function Gt(e,t){return J(new Error,{type:e,[Yo]:!0},t)}function lt(e,t){return e instanceof Error&&Yo in e&&(t==null||!!(e.type&t))}const Su=["params","query","hash"];function vu(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Su)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Au(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Vs(r)):[s&&Vs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function xu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=$e(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Ou=Symbol(""),ii=Symbol(""),is=Symbol(""),gr=Symbol(""),$s=Symbol("");function tn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Et(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Gt(ie.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):Ru(p)?c(Gt(ie.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),l())},a=i(()=>e.call(s&&s.instances[r],t,n,u));let f=Promise.resolve(a);e.length<3&&(f=f.then(u)),f.catch(p=>c(p))})}function As(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if($o(c)){const u=(c.__vccOpts||c)[t];u&&i.push(Et(u,n,s,o,l,r))}else{let u=c();i.push(()=>u.then(a=>{if(!a)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const f=Ja(a)?a.default:a;o.mods[l]=a,o.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&Et(p,n,s,o,l,r)()}))}}return i}function Cu(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oWt(u,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(u=>Wt(u,c))||r.push(c))}return[n,s,r]}let Tu=()=>location.protocol+"//"+location.host;function Zo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),ti(l,"")}return ti(n,e)+s+r}function Pu(e,t,n,s){let r=[],i=[],o=null;const l=({state:p})=>{const y=Zo(e,location),g=n.value,R=t.value;let v=0;if(p){if(n.value=y,t.value=p,o&&o===g){o=null;return}v=R?p.position-R.position:0}else s(y);r.forEach(C=>{C(n.value,g,{delta:v,type:ks.pop,direction:v?v>0?vs.forward:vs.back:vs.unknown})})};function c(){o=n.value}function u(p){r.push(p);const y=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return i.push(y),y}function a(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(J({},p.state,{scroll:rs()}),"")}}function f(){for(const p of i)p();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",a),document.removeEventListener("visibilitychange",a)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",a),document.addEventListener("visibilitychange",a),{pauseListeners:c,listen:u,destroy:f}}function oi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?rs():null}}function Nu(e){const{history:t,location:n}=window,s={value:Zo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,a){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+c:Tu()+e+c;try{t[a?"replaceState":"pushState"](u,"",p),r.value=u}catch(y){console.error(y),n[a?"replace":"assign"](p)}}function o(c,u){i(c,J({},t.state,oi(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const a=J({},r.value,t.state,{forward:c,scroll:rs()});i(a.current,a,!0),i(c,J({},oi(s.value,c,null),{position:a.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function Iu(e){e=mu(e);const t=Nu(e),n=Pu(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=J({location:"",base:e,go:s,createHref:yu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ct=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ue=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ue||{});const Du={type:Ct.Static,value:""},Fu=/[a-zA-Z0-9_]/;function Lu(e){if(!e)return[[]];if(e==="/")return[[Du]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${u}": ${y}`)}let n=ue.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,u="",a="";function f(){u&&(n===ue.Static?i.push({type:Ct.Static,value:u}):n===ue.Param||n===ue.ParamRegExp||n===ue.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ct.Param,value:u,regexp:a,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;lt.length?t.length===1&&t[0]===ye.Static+ye.Segment?1:-1:0}function el(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Hu={strict:!1,end:!0,sensitive:!1};function Vu(e,t,n){const s=Bu(Lu(e.path),n),r=J(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ku(e,t){const n=[],s=new Map;t=ei(Hu,t);function r(f){return s.get(f)}function i(f,p,y){const g=!y,R=ui(f);R.aliasOf=y&&y.record;const v=ei(t,f),C=[R];if("alias"in f){const P=typeof f.alias=="string"?[f.alias]:f.alias;for(const q of P)C.push(ui(J({},R,{components:y?y.record.components:R.components,path:q,aliasOf:y?y.record:R})))}let N,D;for(const P of C){const{path:q}=P;if(p&&q[0]!=="/"){const se=p.record.path,K=se[se.length-1]==="/"?"":"/";P.path=p.record.path+(q&&K+q)}if(N=Vu(P,p,v),y?y.alias.push(N):(D=D||N,D!==N&&D.alias.push(N),g&&f.name&&!fi(N)&&o(f.name)),tl(N)&&c(N),R.children){const se=R.children;for(let K=0;K{o(D)}:dn}function o(f){if(Qo(f)){const p=s.get(f);p&&(s.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&s.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function l(){return n}function c(f){const p=Ku(f,n);n.splice(p,0,f),f.record.name&&!fi(f)&&s.set(f.record.name,f)}function u(f,p){let y,g={},R,v;if("name"in f&&f.name){if(y=s.get(f.name),!y)throw Gt(ie.MATCHER_NOT_FOUND,{location:f});v=y.record.name,g=J(ai(p.params,y.keys.filter(D=>!D.optional).concat(y.parent?y.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),f.params&&ai(f.params,y.keys.map(D=>D.name))),R=y.stringify(g)}else if(f.path!=null)R=f.path,y=n.find(D=>D.re.test(R)),y&&(g=y.parse(R),v=y.record.name);else{if(y=p.name?s.get(p.name):n.find(D=>D.re.test(p.path)),!y)throw Gt(ie.MATCHER_NOT_FOUND,{location:f,currentLocation:p});v=y.record.name,g=J({},p.params,f.params),R=y.stringify(g)}const C=[];let N=y;for(;N;)C.unshift(N.record),N=N.parent;return{name:v,path:R,params:g,matched:C,meta:$u(C)}}e.forEach(f=>i(f));function a(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:a,getRoutes:l,getRecordMatcher:r}}function ai(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ui(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:qu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function qu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function fi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $u(e){return e.reduce((t,n)=>J(t,n.meta),{})}function Ku(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;el(e,t[i])<0?s=i:n=i+1}const r=Wu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Wu(e){let t=e;for(;t=t.parent;)if(tl(t)&&el(e,t)===0)return t}function tl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function di(e){const t=ke(is),n=ke(gr),s=He(()=>{const c=It(e.to);return t.resolve(c)}),r=He(()=>{const{matched:c}=s.value,{length:u}=c,a=c[u-1],f=n.matched;if(!a||!f.length)return-1;const p=f.findIndex(Wt.bind(null,a));if(p>-1)return p;const y=hi(c[u-2]);return u>1&&hi(a)===y&&f[f.length-1].path!==y?f.findIndex(Wt.bind(null,c[u-2])):p}),i=He(()=>r.value>-1&&Qu(n.params,s.value.params)),o=He(()=>r.value>-1&&r.value===n.matched.length-1&&Xo(n.params,s.value.params));function l(c={}){if(Xu(c)){const u=t[It(e.replace)?"replace":"push"](It(e.to)).catch(dn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:He(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function Gu(e){return e.length===1?e[0]:e}const zu=fr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:di,setup(e,{slots:t}){const n=Yn(di(e)),{options:s}=ke(is),r=He(()=>({[pi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[pi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Gu(t.default(n));return e.custom?i:ko("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Ju=zu;function Xu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Qu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!$e(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function hi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pi=(e,t,n)=>e??t??n,Yu=fr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ke($s),r=He(()=>e.route||s.value),i=ke(ii,0),o=He(()=>{let u=It(i);const{matched:a}=r.value;let f;for(;(f=a[u])&&!f.components;)u++;return u}),l=He(()=>r.value.matched[o.value]);Nn(ii,He(()=>o.value+1)),Nn(Ou,l),Nn($s,r);const c=Fs();return In(()=>[c.value,l.value,e.name],([u,a,f],[p,y,g])=>{a&&(a.instances[f]=u,y&&y!==a&&u&&u===p&&(a.leaveGuards.size||(a.leaveGuards=y.leaveGuards),a.updateGuards.size||(a.updateGuards=y.updateGuards))),u&&a&&(!y||!Wt(a,y)||!p)&&(a.enterCallbacks[f]||[]).forEach(R=>R(u))},{flush:"post"}),()=>{const u=r.value,a=e.name,f=l.value,p=f&&f.components[a];if(!p)return mi(n.default,{Component:p,route:u});const y=f.props[a],g=y?y===!0?u.params:typeof y=="function"?y(u):y:null,v=ko(p,J({},g,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(f.instances[a]=null)},ref:c}));return mi(n.default,{Component:v,route:u})||v}}});function mi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const nl=Yu;function Zu(e){const t=ku(e.routes,e),n=e.parseQuery||Au,s=e.stringifyQuery||ri,r=e.history,i=tn(),o=tn(),l=tn(),c=rc(mt);let u=mt;jt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Rs.bind(null,w=>""+w),f=Rs.bind(null,cu),p=Rs.bind(null,bn);function y(w,L){let I,M;return Qo(w)?(I=t.getRecordMatcher(w),M=L):M=w,t.addRoute(M,I)}function g(w){const L=t.getRecordMatcher(w);L&&t.removeRoute(L)}function R(){return t.getRoutes().map(w=>w.record)}function v(w){return!!t.getRecordMatcher(w)}function C(w,L){if(L=J({},L||c.value),typeof w=="string"){const m=Ss(n,w,L.path),_=t.resolve({path:m.path},L),S=r.createHref(m.fullPath);return J(m,_,{params:p(_.params),hash:bn(m.hash),redirectedFrom:void 0,href:S})}let I;if(w.path!=null)I=J({},w,{path:Ss(n,w.path,L.path).path});else{const m=J({},w.params);for(const _ in m)m[_]==null&&delete m[_];I=J({},w,{params:f(m)}),L.params=f(L.params)}const M=t.resolve(I,L),W=w.hash||"";M.params=a(p(M.params));const d=fu(s,J({},w,{hash:iu(W),path:M.path})),h=r.createHref(d);return J({fullPath:d,hash:W,query:s===ri?xu(w.query):w.query||{}},M,{redirectedFrom:void 0,href:h})}function N(w){return typeof w=="string"?Ss(n,w,c.value.path):J({},w)}function D(w,L){if(u!==w)return Gt(ie.NAVIGATION_CANCELLED,{from:L,to:w})}function P(w){return K(w)}function q(w){return P(J(N(w),{replace:!0}))}function se(w,L){const I=w.matched[w.matched.length-1];if(I&&I.redirect){const{redirect:M}=I;let W=typeof M=="function"?M(w,L):M;return typeof W=="string"&&(W=W.includes("?")||W.includes("#")?W=N(W):{path:W},W.params={}),J({query:w.query,hash:w.hash,params:W.path!=null?{}:w.params},W)}}function K(w,L){const I=u=C(w),M=c.value,W=w.state,d=w.force,h=w.replace===!0,m=se(I,M);if(m)return K(J(N(m),{state:typeof m=="object"?J({},W,m.state):W,force:d,replace:h}),L||I);const _=I;_.redirectedFrom=L;let S;return!d&&du(s,M,I)&&(S=Gt(ie.NAVIGATION_DUPLICATED,{to:_,from:M}),ae(M,M,!0,!1)),(S?Promise.resolve(S):Ce(_,M)).catch(E=>lt(E)?lt(E,ie.NAVIGATION_GUARD_REDIRECT)?E:We(E):$(E,_,M)).then(E=>{if(E){if(lt(E,ie.NAVIGATION_GUARD_REDIRECT))return K(J({replace:h},N(E.to),{state:typeof E.to=="object"?J({},W,E.to.state):W,force:d}),L||_)}else E=De(_,M,!0,h,W);return Be(_,M,E),E})}function Ee(w,L){const I=D(w,L);return I?Promise.reject(I):Promise.resolve()}function Oe(w){const L=je.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(w):w()}function Ce(w,L){let I;const[M,W,d]=Cu(w,L);I=As(M.reverse(),"beforeRouteLeave",w,L);for(const m of M)m.leaveGuards.forEach(_=>{I.push(Et(_,w,L))});const h=Ee.bind(null,w,L);return I.push(h),Le(I).then(()=>{I=[];for(const m of i.list())I.push(Et(m,w,L));return I.push(h),Le(I)}).then(()=>{I=As(W,"beforeRouteUpdate",w,L);for(const m of W)m.updateGuards.forEach(_=>{I.push(Et(_,w,L))});return I.push(h),Le(I)}).then(()=>{I=[];for(const m of d)if(m.beforeEnter)if($e(m.beforeEnter))for(const _ of m.beforeEnter)I.push(Et(_,w,L));else I.push(Et(m.beforeEnter,w,L));return I.push(h),Le(I)}).then(()=>(w.matched.forEach(m=>m.enterCallbacks={}),I=As(d,"beforeRouteEnter",w,L,Oe),I.push(h),Le(I))).then(()=>{I=[];for(const m of o.list())I.push(Et(m,w,L));return I.push(h),Le(I)}).catch(m=>lt(m,ie.NAVIGATION_CANCELLED)?m:Promise.reject(m))}function Be(w,L,I){l.list().forEach(M=>Oe(()=>M(w,L,I)))}function De(w,L,I,M,W){const d=D(w,L);if(d)return d;const h=L===mt,m=jt?history.state:{};I&&(M||h?r.replace(w.fullPath,J({scroll:h&&m&&m.scroll},W)):r.push(w.fullPath,W)),c.value=w,ae(w,L,I,h),We()}let fe;function Te(){fe||(fe=r.listen((w,L,I)=>{if(!ze.listening)return;const M=C(w),W=se(M,ze.currentRoute.value);if(W){K(J(W,{replace:!0,force:!0}),M).catch(dn);return}u=M;const d=c.value;jt&&Eu(si(d.fullPath,I.delta),rs()),Ce(M,d).catch(h=>lt(h,ie.NAVIGATION_ABORTED|ie.NAVIGATION_CANCELLED)?h:lt(h,ie.NAVIGATION_GUARD_REDIRECT)?(K(J(N(h.to),{force:!0}),M).then(m=>{lt(m,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&!I.delta&&I.type===ks.pop&&r.go(-1,!1)}).catch(dn),Promise.reject()):(I.delta&&r.go(-I.delta,!1),$(h,M,d))).then(h=>{h=h||De(M,d,!1),h&&(I.delta&&!lt(h,ie.NAVIGATION_CANCELLED)?r.go(-I.delta,!1):I.type===ks.pop&<(h,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),Be(M,d,h)}).catch(dn)}))}let it=tn(),Y=tn(),z;function $(w,L,I){We(w);const M=Y.list();return M.length?M.forEach(W=>W(w,L,I)):console.error(w),Promise.reject(w)}function Fe(){return z&&c.value!==mt?Promise.resolve():new Promise((w,L)=>{it.add([w,L])})}function We(w){return z||(z=!w,Te(),it.list().forEach(([L,I])=>w?I(w):L()),it.reset()),w}function ae(w,L,I,M){const{scrollBehavior:W}=e;if(!jt||!W)return Promise.resolve();const d=!I&&wu(si(w.fullPath,0))||(M||!I)&&history.state&&history.state.scroll||null;return co().then(()=>W(w,L,d)).then(h=>h&&_u(h)).catch(h=>$(h,w,L))}const oe=w=>r.go(w);let Ge;const je=new Set,ze={currentRoute:c,listening:!0,addRoute:y,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:R,resolve:C,options:e,push:P,replace:q,go:oe,back:()=>oe(-1),forward:()=>oe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:Y.add,isReady:Fe,install(w){w.component("RouterLink",Ju),w.component("RouterView",nl),w.config.globalProperties.$router=ze,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>It(c)}),jt&&!Ge&&c.value===mt&&(Ge=!0,P(r.location).catch(M=>{}));const L={};for(const M in mt)Object.defineProperty(L,M,{get:()=>c.value[M],enumerable:!0});w.provide(is,ze),w.provide(gr,ro(L)),w.provide($s,c);const I=w.unmount;je.add(w),w.unmount=function(){je.delete(w),je.size<1&&(u=mt,fe&&fe(),fe=null,c.value=mt,Ge=!1,z=!1),I()}}};function Le(w){return w.reduce((L,I)=>L.then(()=>Oe(I)),Promise.resolve())}return ze}function Gd(){return ke(is)}function zd(e){return ke(gr)}function sl(e,t){return function(){return e.apply(t,arguments)}}const{toString:ef}=Object.prototype,{getPrototypeOf:yr}=Object,{iterator:os,toStringTag:rl}=Symbol,ls=(e=>t=>{const n=ef.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ke=e=>(e=e.toLowerCase(),t=>ls(t)===e),cs=e=>t=>typeof t===e,{isArray:Jt}=Array,zt=cs("undefined");function wn(e){return e!==null&&!zt(e)&&e.constructor!==null&&!zt(e.constructor)&&Ae(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const il=Ke("ArrayBuffer");function tf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&il(e.buffer),t}const nf=cs("string"),Ae=cs("function"),ol=cs("number"),Rn=e=>e!==null&&typeof e=="object",sf=e=>e===!0||e===!1,Ln=e=>{if(ls(e)!=="object")return!1;const t=yr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(rl in e)&&!(os in e)},rf=e=>{if(!Rn(e)||wn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},of=Ke("Date"),lf=Ke("File"),cf=Ke("Blob"),af=Ke("FileList"),uf=e=>Rn(e)&&Ae(e.pipe),ff=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ae(e.append)&&((t=ls(e))==="formdata"||t==="object"&&Ae(e.toString)&&e.toString()==="[object FormData]"))},df=Ke("URLSearchParams"),[hf,pf,mf,gf]=["ReadableStream","Request","Response","Headers"].map(Ke),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Sn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Jt(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Tt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cl=e=>!zt(e)&&e!==Tt;function Ks(){const{caseless:e,skipUndefined:t}=cl(this)&&this||{},n={},s=(r,i)=>{const o=e&&ll(n,i)||i;Ln(n[o])&&Ln(r)?n[o]=Ks(n[o],r):Ln(r)?n[o]=Ks({},r):Jt(r)?n[o]=r.slice():(!t||!zt(r))&&(n[o]=r)};for(let r=0,i=arguments.length;r(Sn(t,(r,i)=>{n&&Ae(r)?e[i]=sl(r,n):e[i]=r},{allOwnKeys:s}),e),_f=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ef=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wf=(e,t,n,s)=>{let r,i,o;const l={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&yr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rf=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},Sf=e=>{if(!e)return null;if(Jt(e))return e;let t=e.length;if(!ol(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yr(Uint8Array)),Af=(e,t)=>{const s=(e&&e[os]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},xf=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Of=Ke("HTMLFormElement"),Cf=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),gi=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tf=Ke("RegExp"),al=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Sn(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},Pf=e=>{al(e,(t,n)=>{if(Ae(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Ae(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nf=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Jt(e)?s(e):s(String(e).split(t)),n},If=()=>{},Df=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ff(e){return!!(e&&Ae(e.append)&&e[rl]==="FormData"&&e[os])}const Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Rn(s)){if(t.indexOf(s)>=0)return;if(wn(s))return s;if(!("toJSON"in s)){t[r]=s;const i=Jt(s)?[]:{};return Sn(s,(o,l)=>{const c=n(o,r+1);!zt(c)&&(i[l]=c)}),t[r]=void 0,i}}return s};return n(e,0)},Mf=Ke("AsyncFunction"),Uf=e=>e&&(Rn(e)||Ae(e))&&Ae(e.then)&&Ae(e.catch),ul=((e,t)=>e?setImmediate:t?((n,s)=>(Tt.addEventListener("message",({source:r,data:i})=>{r===Tt&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),Tt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ae(Tt.postMessage)),Bf=typeof queueMicrotask<"u"?queueMicrotask.bind(Tt):typeof process<"u"&&process.nextTick||ul,jf=e=>e!=null&&Ae(e[os]),b={isArray:Jt,isArrayBuffer:il,isBuffer:wn,isFormData:ff,isArrayBufferView:tf,isString:nf,isNumber:ol,isBoolean:sf,isObject:Rn,isPlainObject:Ln,isEmptyObject:rf,isReadableStream:hf,isRequest:pf,isResponse:mf,isHeaders:gf,isUndefined:zt,isDate:of,isFile:lf,isBlob:cf,isRegExp:Tf,isFunction:Ae,isStream:uf,isURLSearchParams:df,isTypedArray:vf,isFileList:af,forEach:Sn,merge:Ks,extend:bf,trim:yf,stripBOM:_f,inherits:Ef,toFlatObject:wf,kindOf:ls,kindOfTest:Ke,endsWith:Rf,toArray:Sf,forEachEntry:Af,matchAll:xf,isHTMLForm:Of,hasOwnProperty:gi,hasOwnProp:gi,reduceDescriptors:al,freezeMethods:Pf,toObjectSet:Nf,toCamelCase:Cf,noop:If,toFiniteNumber:Df,findKey:ll,global:Tt,isContextDefined:cl,isSpecCompliantForm:Ff,toJSONObject:Lf,isAsyncFn:Mf,isThenable:Uf,setImmediate:ul,asap:Bf,isIterable:jf};function V(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}b.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const fl=V.prototype,dl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dl[e]={value:e}});Object.defineProperties(V,dl);Object.defineProperty(fl,"isAxiosError",{value:!0});V.from=(e,t,n,s,r,i)=>{const o=Object.create(fl);b.toFlatObject(e,o,function(a){return a!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return V.call(o,l,c,n,s,r),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const Hf=null;function Ws(e){return b.isPlainObject(e)||b.isArray(e)}function hl(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function yi(e,t,n){return e?e.concat(t).map(function(r,i){return r=hl(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Vf(e){return b.isArray(e)&&!e.some(Ws)}const kf=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function as(e,t,n){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(R,v){return!b.isUndefined(v[R])});const s=n.metaTokens,r=n.visitor||a,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(b.isDate(g))return g.toISOString();if(b.isBoolean(g))return g.toString();if(!c&&b.isBlob(g))throw new V("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(g)||b.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function a(g,R,v){let C=g;if(g&&!v&&typeof g=="object"){if(b.endsWith(R,"{}"))R=s?R:R.slice(0,-2),g=JSON.stringify(g);else if(b.isArray(g)&&Vf(g)||(b.isFileList(g)||b.endsWith(R,"[]"))&&(C=b.toArray(g)))return R=hl(R),C.forEach(function(D,P){!(b.isUndefined(D)||D===null)&&t.append(o===!0?yi([R],P,i):o===null?R:R+"[]",u(D))}),!1}return Ws(g)?!0:(t.append(yi(v,R,i),u(g)),!1)}const f=[],p=Object.assign(kf,{defaultVisitor:a,convertValue:u,isVisitable:Ws});function y(g,R){if(!b.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+R.join("."));f.push(g),b.forEach(g,function(C,N){(!(b.isUndefined(C)||C===null)&&r.call(t,C,b.isString(N)?N.trim():N,R,p))===!0&&y(C,R?R.concat(N):[N])}),f.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return y(e),t}function bi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function br(e,t){this._pairs=[],e&&as(e,this,t)}const pl=br.prototype;pl.append=function(t,n){this._pairs.push([t,n])};pl.toString=function(t){const n=t?function(s){return t.call(this,s,bi)}:bi;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function qf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ml(e,t,n){if(!t)return e;const s=n&&n.encode||qf;b.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=b.isURLSearchParams(t)?t.toString():new br(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _i{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(s){s!==null&&t(s)})}}const gl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},$f=typeof URLSearchParams<"u"?URLSearchParams:br,Kf=typeof FormData<"u"?FormData:null,Wf=typeof Blob<"u"?Blob:null,Gf={isBrowser:!0,classes:{URLSearchParams:$f,FormData:Kf,Blob:Wf},protocols:["http","https","file","blob","url","data"]},_r=typeof window<"u"&&typeof document<"u",Gs=typeof navigator=="object"&&navigator||void 0,zf=_r&&(!Gs||["ReactNative","NativeScript","NS"].indexOf(Gs.product)<0),Jf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xf=_r&&window.location.href||"http://localhost",Qf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_r,hasStandardBrowserEnv:zf,hasStandardBrowserWebWorkerEnv:Jf,navigator:Gs,origin:Xf},Symbol.toStringTag,{value:"Module"})),he={...Qf,...Gf};function Yf(e,t){return as(e,new he.classes.URLSearchParams,{visitor:function(n,s,r,i){return he.isNode&&b.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Zf(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ed(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&b.isArray(r)?r.length:o,c?(b.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!l):((!r[o]||!b.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&b.isArray(r[o])&&(r[o]=ed(r[o])),!l)}if(b.isFormData(e)&&b.isFunction(e.entries)){const n={};return b.forEachEntry(e,(s,r)=>{t(Zf(s),r,n,0)}),n}return null}function td(e,t,n){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const vn={transitional:gl,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=b.isObject(t);if(i&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return r?JSON.stringify(yl(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Yf(t,this.formSerializer).toString();if((l=b.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return as(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),td(t)):t}],transformResponse:[function(t){const n=this.transitional||vn.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?V.from(l,V.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:he.classes.FormData,Blob:he.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{vn.headers[e]={}});const nd=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sd=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&nd[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Ei=Symbol("internals");function nn(e){return e&&String(e).trim().toLowerCase()}function Mn(e){return e===!1||e==null?e:b.isArray(e)?e.map(Mn):String(e)}function rd(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const id=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xs(e,t,n,s,r){if(b.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!b.isString(t)){if(b.isString(s))return t.indexOf(s)!==-1;if(b.isRegExp(s))return s.test(t)}}function od(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function ld(e,t){const n=b.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}let xe=class{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(l,c,u){const a=nn(c);if(!a)throw new Error("header name must be a non-empty string");const f=b.findKey(r,a);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||c]=Mn(l))}const o=(l,c)=>b.forEach(l,(u,a)=>i(u,a,c));if(b.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(b.isString(t)&&(t=t.trim())&&!id(t))o(sd(t),n);else if(b.isObject(t)&&b.isIterable(t)){let l={},c,u;for(const a of t){if(!b.isArray(a))throw TypeError("Object iterator must return a key-value pair");l[u=a[0]]=(c=l[u])?b.isArray(c)?[...c,a[1]]:[c,a[1]]:a[1]}o(l,n)}else t!=null&&i(n,t,s);return this}get(t,n){if(t=nn(t),t){const s=b.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return rd(r);if(b.isFunction(n))return n.call(this,r,s);if(b.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nn(t),t){const s=b.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||xs(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=nn(o),o){const l=b.findKey(s,o);l&&(!n||xs(s,s[l],l,n))&&(delete s[l],r=!0)}}return b.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||xs(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return b.forEach(this,(r,i)=>{const o=b.findKey(s,i);if(o){n[o]=Mn(r),delete n[i];return}const l=t?od(i):String(i).trim();l!==i&&delete n[i],n[l]=Mn(r),s[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return b.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&b.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Ei]=this[Ei]={accessors:{}}).accessors,r=this.prototype;function i(o){const l=nn(o);s[l]||(ld(r,o),s[l]=!0)}return b.isArray(t)?t.forEach(i):i(t),this}};xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});b.freezeMethods(xe);function Os(e,t){const n=this||vn,s=t||n,r=xe.from(s.headers);let i=s.data;return b.forEach(e,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function bl(e){return!!(e&&e.__CANCEL__)}function Xt(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}b.inherits(Xt,V,{__CANCEL__:!0});function _l(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function cd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ad(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),a=s[i];o||(o=u),n[r]=c,s[r]=u;let f=i,p=0;for(;f!==r;)p+=n[f++],f=f%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-o{n=a,r=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const a=Date.now(),f=a-n;f>=s?o(u,a):(r=u,i||(i=setTimeout(()=>{i=null,o(r)},s-f)))},()=>r&&o(r)]}const Wn=(e,t,n=3)=>{let s=0;const r=ad(50,250);return ud(i=>{const o=i.loaded,l=i.lengthComputable?i.total:void 0,c=o-s,u=r(c),a=o<=l;s=o;const f={loaded:o,total:l,progress:l?o/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-o)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},wi=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ri=e=>(...t)=>b.asap(()=>e(...t)),fd=he.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,he.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(he.origin),he.navigator&&/(msie|trident)/i.test(he.navigator.userAgent)):()=>!0,dd=he.hasStandardBrowserEnv?{write(e,t,n,s,r,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];b.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),b.isString(s)&&l.push(`path=${s}`),b.isString(r)&&l.push(`domain=${r}`),i===!0&&l.push("secure"),b.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function hd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pd(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function El(e,t,n){let s=!hd(t);return e&&(s||n==!1)?pd(e,t):t}const Si=e=>e instanceof xe?{...e}:e;function Ft(e,t){t=t||{};const n={};function s(u,a,f,p){return b.isPlainObject(u)&&b.isPlainObject(a)?b.merge.call({caseless:p},u,a):b.isPlainObject(a)?b.merge({},a):b.isArray(a)?a.slice():a}function r(u,a,f,p){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u,f,p)}else return s(u,a,f,p)}function i(u,a){if(!b.isUndefined(a))return s(void 0,a)}function o(u,a){if(b.isUndefined(a)){if(!b.isUndefined(u))return s(void 0,u)}else return s(void 0,a)}function l(u,a,f){if(f in t)return s(u,a);if(f in e)return s(void 0,u)}const c={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,a,f)=>r(Si(u),Si(a),f,!0)};return b.forEach(Object.keys({...e,...t}),function(a){const f=c[a]||r,p=f(e[a],t[a],a);b.isUndefined(p)&&f!==l||(n[a]=p)}),n}const wl=e=>{const t=Ft({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:l}=t;if(t.headers=o=xe.from(o),t.url=ml(El(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),b.isFormData(n)){if(he.hasStandardBrowserEnv||he.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(b.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([a,f])=>{u.includes(a.toLowerCase())&&o.set(a,f)})}}if(he.hasStandardBrowserEnv&&(s&&b.isFunction(s)&&(s=s(t)),s||s!==!1&&fd(t.url))){const c=r&&i&&dd.read(i);c&&o.set(r,c)}return t},md=typeof XMLHttpRequest<"u",gd=md&&function(e){return new Promise(function(n,s){const r=wl(e);let i=r.data;const o=xe.from(r.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=r,a,f,p,y,g;function R(){y&&y(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let v=new XMLHttpRequest;v.open(r.method.toUpperCase(),r.url,!0),v.timeout=r.timeout;function C(){if(!v)return;const D=xe.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),q={data:!l||l==="text"||l==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:D,config:e,request:v};_l(function(K){n(K),R()},function(K){s(K),R()},q),v=null}"onloadend"in v?v.onloadend=C:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(C)},v.onabort=function(){v&&(s(new V("Request aborted",V.ECONNABORTED,e,v)),v=null)},v.onerror=function(P){const q=P&&P.message?P.message:"Network Error",se=new V(q,V.ERR_NETWORK,e,v);se.event=P||null,s(se),v=null},v.ontimeout=function(){let P=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const q=r.transitional||gl;r.timeoutErrorMessage&&(P=r.timeoutErrorMessage),s(new V(P,q.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&b.forEach(o.toJSON(),function(P,q){v.setRequestHeader(q,P)}),b.isUndefined(r.withCredentials)||(v.withCredentials=!!r.withCredentials),l&&l!=="json"&&(v.responseType=r.responseType),u&&([p,g]=Wn(u,!0),v.addEventListener("progress",p)),c&&v.upload&&([f,y]=Wn(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",y)),(r.cancelToken||r.signal)&&(a=D=>{v&&(s(!D||D.type?new Xt(null,e,v):D),v.abort(),v=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const N=cd(r.url);if(N&&he.protocols.indexOf(N)===-1){s(new V("Unsupported protocol "+N+":",V.ERR_BAD_REQUEST,e));return}v.send(i||null)})},yd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let s=new AbortController,r;const i=function(u){if(!r){r=!0,l();const a=u instanceof Error?u:this.reason;s.abort(a instanceof V?a:new Xt(a instanceof Error?a.message:a))}};let o=t&&setTimeout(()=>{o=null,i(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=s;return c.unsubscribe=()=>b.asap(l),c}},bd=function*(e,t){let n=e.byteLength;if(n{const r=_d(e,t);let i=0,o,l=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:a}=await r.next();if(u){l(),c.close();return}let f=a.byteLength;if(n){let p=i+=f;n(p)}c.enqueue(new Uint8Array(a))}catch(u){throw l(u),u}},cancel(c){return l(c),r.return()}},{highWaterMark:2})},Ai=64*1024,{isFunction:Cn}=b,wd=(({Request:e,Response:t})=>({Request:e,Response:t}))(b.global),{ReadableStream:xi,TextEncoder:Oi}=b.global,Ci=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Rd=e=>{e=b.merge.call({skipUndefined:!0},wd,e);const{fetch:t,Request:n,Response:s}=e,r=t?Cn(t):typeof fetch=="function",i=Cn(n),o=Cn(s);if(!r)return!1;const l=r&&Cn(xi),c=r&&(typeof Oi=="function"?(g=>R=>g.encode(R))(new Oi):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=i&&l&&Ci(()=>{let g=!1;const R=new n(he.origin,{body:new xi,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!R}),a=o&&l&&Ci(()=>b.isReadableStream(new s("").body)),f={stream:a&&(g=>g.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(R,v)=>{let C=R&&R[g];if(C)return C.call(R);throw new V(`Response type '${g}' is not supported`,V.ERR_NOT_SUPPORT,v)})});const p=async g=>{if(g==null)return 0;if(b.isBlob(g))return g.size;if(b.isSpecCompliantForm(g))return(await new n(he.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(b.isArrayBufferView(g)||b.isArrayBuffer(g))return g.byteLength;if(b.isURLSearchParams(g)&&(g=g+""),b.isString(g))return(await c(g)).byteLength},y=async(g,R)=>{const v=b.toFiniteNumber(g.getContentLength());return v??p(R)};return async g=>{let{url:R,method:v,data:C,signal:N,cancelToken:D,timeout:P,onDownloadProgress:q,onUploadProgress:se,responseType:K,headers:Ee,withCredentials:Oe="same-origin",fetchOptions:Ce}=wl(g),Be=t||fetch;K=K?(K+"").toLowerCase():"text";let De=yd([N,D&&D.toAbortSignal()],P),fe=null;const Te=De&&De.unsubscribe&&(()=>{De.unsubscribe()});let it;try{if(se&&u&&v!=="get"&&v!=="head"&&(it=await y(Ee,C))!==0){let ae=new n(R,{method:"POST",body:C,duplex:"half"}),oe;if(b.isFormData(C)&&(oe=ae.headers.get("content-type"))&&Ee.setContentType(oe),ae.body){const[Ge,je]=wi(it,Wn(Ri(se)));C=vi(ae.body,Ai,Ge,je)}}b.isString(Oe)||(Oe=Oe?"include":"omit");const Y=i&&"credentials"in n.prototype,z={...Ce,signal:De,method:v.toUpperCase(),headers:Ee.normalize().toJSON(),body:C,duplex:"half",credentials:Y?Oe:void 0};fe=i&&new n(R,z);let $=await(i?Be(fe,Ce):Be(R,z));const Fe=a&&(K==="stream"||K==="response");if(a&&(q||Fe&&Te)){const ae={};["status","statusText","headers"].forEach(ze=>{ae[ze]=$[ze]});const oe=b.toFiniteNumber($.headers.get("content-length")),[Ge,je]=q&&wi(oe,Wn(Ri(q),!0))||[];$=new s(vi($.body,Ai,Ge,()=>{je&&je(),Te&&Te()}),ae)}K=K||"text";let We=await f[b.findKey(f,K)||"text"]($,g);return!Fe&&Te&&Te(),await new Promise((ae,oe)=>{_l(ae,oe,{data:We,headers:xe.from($.headers),status:$.status,statusText:$.statusText,config:g,request:fe})})}catch(Y){throw Te&&Te(),Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,g,fe),{cause:Y.cause||Y}):V.from(Y,Y&&Y.code,g,fe)}}},Sd=new Map,Rl=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:r}=t,i=[s,r,n];let o=i.length,l=o,c,u,a=Sd;for(;l--;)c=i[l],u=a.get(c),u===void 0&&a.set(c,u=l?new Map:Rd(t)),a=u;return u};Rl();const Er={http:Hf,xhr:gd,fetch:{get:Rl}};b.forEach(Er,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ti=e=>`- ${e}`,vd=e=>b.isFunction(e)||e===null||e===!1;function Ad(e,t){e=b.isArray(e)?e:[e];const{length:n}=e;let s,r;const i={};for(let o=0;o`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since : -`+o.map(Ti).join(` -`):" "+Ti(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r}const Sl={getAdapter:Ad,adapters:Er};function Cs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function Pi(e){return Cs(e),e.headers=xe.from(e.headers),e.data=Os.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Sl.getAdapter(e.adapter||vn.adapter,e)(e).then(function(s){return Cs(e),s.data=Os.call(e,e.transformResponse,s),s.headers=xe.from(s.headers),s},function(s){return bl(s)||(Cs(e),s&&s.response&&(s.response.data=Os.call(e,e.transformResponse,s.response),s.response.headers=xe.from(s.response.headers))),Promise.reject(s)})}const vl="1.13.2",us={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{us[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ni={};us.transitional=function(t,n,s){function r(i,o){return"[Axios v"+vl+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,l)=>{if(t===!1)throw new V(r(o," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!Ni[o]&&(Ni[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};us.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function xd(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const l=e[i],c=l===void 0||o(l,i,e);if(c!==!0)throw new V("option "+i+" must be "+c,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const Un={assertOptions:xd,validators:us},Ze=Un.validators;let Dt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new _i,response:new _i}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=` -`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ft(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&Un.assertOptions(s,{silentJSONParsing:Ze.transitional(Ze.boolean),forcedJSONParsing:Ze.transitional(Ze.boolean),clarifyTimeoutError:Ze.transitional(Ze.boolean)},!1),r!=null&&(b.isFunction(r)?n.paramsSerializer={serialize:r}:Un.assertOptions(r,{encode:Ze.function,serialize:Ze.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Un.assertOptions(n,{baseUrl:Ze.spelling("baseURL"),withXsrfToken:Ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&b.merge(i.common,i[n.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=xe.concat(o,i);const l=[];let c=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(n)===!1||(c=c&&R.synchronous,l.unshift(R.fulfilled,R.rejected))});const u=[];this.interceptors.response.forEach(function(R){u.push(R.fulfilled,R.rejected)});let a,f=0,p;if(!c){const g=[Pi.bind(this),void 0];for(g.unshift(...l),g.push(...u),p=g.length,a=Promise.resolve(n);f{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(l=>{s.subscribe(l),i=l}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,l){s.reason||(s.reason=new Xt(i,o,l),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Al(function(r){t=r}),cancel:t}}};function Cd(e){return function(n){return e.apply(null,n)}}function Td(e){return b.isObject(e)&&e.isAxiosError===!0}const zs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zs).forEach(([e,t])=>{zs[t]=e});function xl(e){const t=new Dt(e),n=sl(Dt.prototype.request,t);return b.extend(n,Dt.prototype,t,{allOwnKeys:!0}),b.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return xl(Ft(e,r))},n}const le=xl(vn);le.Axios=Dt;le.CanceledError=Xt;le.CancelToken=Od;le.isCancel=bl;le.VERSION=vl;le.toFormData=as;le.AxiosError=V;le.Cancel=le.CanceledError;le.all=function(t){return Promise.all(t)};le.spread=Cd;le.isAxiosError=Td;le.mergeConfig=Ft;le.AxiosHeaders=xe;le.formToJSON=e=>yl(b.isHTMLForm(e)?new FormData(e):e);le.getAdapter=Sl.getAdapter;le.HttpStatusCode=zs;le.default=le;const{Axios:Qd,AxiosError:Yd,CanceledError:Zd,isCancel:eh,CancelToken:th,VERSION:nh,all:sh,Cancel:rh,isAxiosError:ih,spread:oh,toFormData:lh,AxiosHeaders:ch,HttpStatusCode:ah,formToJSON:uh,getAdapter:fh,mergeConfig:dh}=le,Qt=le.create({baseURL:"/api",timeout:1e4}),Pd=()=>Qt.get("/status"),hh=()=>Qt.get("/clients"),ph=e=>Qt.get(`/client/${e}`),mh=e=>Qt.post("/clients",e),gh=(e,t)=>Qt.put(`/client/${e}`,t),yh=e=>Qt.delete(`/client/${e}`),Nd={class:"app"},Id={class:"header"},Dd={class:"server-info"},Fd={class:"badge"},Ld={class:"main"},Md=fr({__name:"App",setup(e){const t=Fs({bind_addr:"",bind_port:0}),n=Fs(0);return _o(async()=>{try{const{data:s}=await Pd();t.value=s.server,n.value=s.client_count}catch(s){console.error("Failed to get server status",s)}}),(s,r)=>(Uo(),oa("div",Nd,[bt("header",Id,[r[0]||(r[0]=bt("h1",null,"GoTunnel 控制台",-1)),bt("div",Dd,[bt("span",null,Pn(t.value.bind_addr)+":"+Pn(t.value.bind_port),1),bt("span",Fd,Pn(n.value)+" 客户端",1)])]),bt("main",Ld,[ve(It(nl))])]))}}),Ud=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Bd=Ud(Md,[["__scopeId","data-v-dc56de06"]]),jd="modulepreload",Hd=function(e){return"/"+e},Ii={},Di=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(a=>Promise.resolve(a).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");r=c(n.map(u=>{if(u=Hd(u),u in Ii)return;Ii[u]=!0;const a=u.endsWith(".css"),f=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const p=document.createElement("link");if(p.rel=a?"stylesheet":jd,a||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),a)return new Promise((y,g)=>{p.addEventListener("load",y),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})},Vd=Zu({history:Iu(),routes:[{path:"/",name:"home",component:()=>Di(()=>import("./HomeView-DGCTeR78.js"),__vite__mapDeps([0,1]))},{path:"/client/:id",name:"client",component:()=>Di(()=>import("./ClientView-Dim5xo2q.js"),__vite__mapDeps([2,3]))}]});Wa(Bd).use(Vd).mount("#app");export{tt as F,Ud as _,bt as a,$d as b,oa as c,fr as d,qd as e,kd as f,hh as g,mh as h,Uo as i,zd as j,It as k,ph as l,gh as m,tr as n,_o as o,yh as p,Fs as r,Pn as t,Gd as u,Kd as v,Wd as w}; diff --git a/internal/server/app/dist/assets/index-cn54chxY.css b/internal/server/app/dist/assets/index-cn54chxY.css new file mode 100644 index 0000000..2271060 --- /dev/null +++ b/internal/server/app/dist/assets/index-cn54chxY.css @@ -0,0 +1 @@ +*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{min-height:100vh} diff --git a/internal/server/app/dist/assets/index-fTDfeMRP.css b/internal/server/app/dist/assets/index-fTDfeMRP.css deleted file mode 100644 index dcdc7f4..0000000 --- a/internal/server/app/dist/assets/index-fTDfeMRP.css +++ /dev/null @@ -1 +0,0 @@ -:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app[data-v-dc56de06]{min-height:100vh;background:#f5f7fa}.header[data-v-dc56de06]{background:#fff;padding:16px 24px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000001a}.header h1[data-v-dc56de06]{font-size:20px;color:#2c3e50}.server-info[data-v-dc56de06]{display:flex;align-items:center;gap:12px;color:#666}.badge[data-v-dc56de06]{background:#3498db;color:#fff;padding:4px 12px;border-radius:12px;font-size:12px}.main[data-v-dc56de06]{padding:24px;max-width:1200px;margin:0 auto} diff --git a/internal/server/app/dist/assets/vue-vendor-k28cQfDw.js b/internal/server/app/dist/assets/vue-vendor-k28cQfDw.js new file mode 100644 index 0000000..fcacf14 --- /dev/null +++ b/internal/server/app/dist/assets/vue-vendor-k28cQfDw.js @@ -0,0 +1 @@ +function Ms(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},Ft=[],ze=()=>{},ni=()=>!1,Bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),de=Object.assign,Ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Go=Object.prototype.hasOwnProperty,Z=(e,t)=>Go.call(e,t),j=Array.isArray,Bt=e=>Hn(e)==="[object Map]",si=e=>Hn(e)==="[object Set]",G=e=>typeof e=="function",fe=e=>typeof e=="string",ot=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",ri=e=>(re(e)||G(e))&&G(e.then)&&G(e.catch),ii=Object.prototype.toString,Hn=e=>ii.call(e),ko=e=>Hn(e).slice(8,-1),oi=e=>Hn(e)==="[object Object]",Vn=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Yt=Ms(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ko=/-\w/g,_t=jn(e=>e.replace(Ko,t=>t.slice(1).toUpperCase())),Wo=/\B([A-Z])/g,Pt=jn(e=>e.replace(Wo,"-$1").toLowerCase()),li=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zn=jn(e=>e?`on${li(e)}`:""),mt=(e,t)=>!Object.is(e,t),es=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},$o=e=>{const t=parseFloat(e);return isNaN(t)?e:t},qo=e=>{const t=fe(e)?Number(e):NaN;return isNaN(t)?e:t};let rr;const Un=()=>rr||(rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fs(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(zo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;n!!(e&&e.__v_isRef===!0),el=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ii||!G(e.toString))?ai(e)?el(e.value):JSON.stringify(e,ui,2):String(e),ui=(e,t)=>ai(t)?ui(e,t.value):Bt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[ts(s,i)+" =>"]=r,n),{})}:si(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ts(n))}:ot(t)?ts(t):re(t)&&!j(t)&&!oi(t)?String(t):t,ts=(e,t="")=>{var n;return ot(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let we;class tl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(Zt){let t=Zt;for(Zt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Xt;){let t=Xt;for(Xt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),js(s),sl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function gs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(_i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function _i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on)||(e.globalVersion=on,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!gs(e))))return;e.flags|=2;const t=e.dep,n=oe,s=Fe;oe=e,Fe=!0;try{gi(e);const r=e.fn(e._value);(t.version===0||mt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{oe=n,Fe=s,mi(e),e.flags&=-3}}function js(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)js(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function sl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const yi=[];function st(){yi.push(Fe),Fe=!1}function rt(){const e=yi.pop();Fe=e===void 0?!0:e}function ir(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=oe;oe=void 0;try{t()}finally{oe=n}}}let on=0;class rl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Us{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!oe||!Fe||oe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==oe)n=this.activeLink=new rl(oe,this),oe.deps?(n.prevDep=oe.depsTail,oe.depsTail.nextDep=n,oe.depsTail=n):oe.deps=oe.depsTail=n,vi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=oe.depsTail,n.nextDep=void 0,oe.depsTail.nextDep=n,oe.depsTail=n,oe.deps===n&&(oe.deps=s)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Hs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Vs()}}}function vi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)vi(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Tn=new WeakMap,xt=Symbol(""),ms=Symbol(""),ln=Symbol("");function ge(e,t,n){if(Fe&&oe){let s=Tn.get(e);s||Tn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Us),r.map=s,r.key=n),r.track()}}function tt(e,t,n,s,r,i){const o=Tn.get(e);if(!o){on++;return}const l=c=>{c&&c.trigger()};if(Hs(),t==="clear")o.forEach(l);else{const c=j(e),u=c&&Vn(n);if(c&&n==="length"){const f=Number(s);o.forEach((h,p)=>{(p==="length"||p===ln||!ot(p)&&p>=f)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(ln)),t){case"add":c?u&&l(o.get("length")):(l(o.get(xt)),Bt(e)&&l(o.get(ms)));break;case"delete":c||(l(o.get(xt)),Bt(e)&&l(o.get(ms)));break;case"set":Bt(e)&&l(o.get(xt));break}}Vs()}function il(e,t){const n=Tn.get(e);return n&&n.get(t)}function Mt(e){const t=z(e);return t===e?t:(ge(t,"iterate",ln),Ne(e)?t:t.map(He))}function Gn(e){return ge(e=z(e),"iterate",ln),e}function ht(e,t){return it(e)?Tt(e)?Ut(He(t)):Ut(t):He(t)}const ol={__proto__:null,[Symbol.iterator](){return ss(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>j(t)?Mt(t):t))},entries(){return ss(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return Ye(this,"every",e,t,void 0,arguments)},filter(e,t){return Ye(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return Ye(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return Ye(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ye(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return Ye(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ye(this,"forEach",e,t,void 0,arguments)},includes(...e){return rs(this,"includes",e)},indexOf(...e){return rs(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return rs(this,"lastIndexOf",e)},map(e,t){return Ye(this,"map",e,t,void 0,arguments)},pop(){return $t(this,"pop")},push(...e){return $t(this,"push",e)},reduce(e,...t){return or(this,"reduce",e,t)},reduceRight(e,...t){return or(this,"reduceRight",e,t)},shift(){return $t(this,"shift")},some(e,t){return Ye(this,"some",e,t,void 0,arguments)},splice(...e){return $t(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return $t(this,"unshift",e)},values(){return ss(this,"values",e=>ht(this,e))}};function ss(e,t,n){const s=Gn(e),r=s[t]();return s!==e&&!Ne(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const ll=Array.prototype;function Ye(e,t,n,s,r,i){const o=Gn(e),l=o!==e&&!Ne(e),c=o[t];if(c!==ll[t]){const h=c.apply(e,i);return l?He(h):h}let u=n;o!==e&&(l?u=function(h,p){return n.call(this,ht(e,h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const f=c.call(o,u,s);return l&&r?r(f):f}function or(e,t,n,s){const r=Gn(e);let i=n;return r!==e&&(Ne(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ht(e,l),c,e)}),r[t](i,...s)}function rs(e,t,n){const s=z(e);ge(s,"iterate",ln);const r=s[t](...n);return(r===-1||r===!1)&&Kn(n[0])?(n[0]=z(n[0]),s[t](...n)):r}function $t(e,t,n=[]){st(),Hs();const s=z(e)[t].apply(e,n);return Vs(),rt(),s}const cl=Ms("__proto__,__v_isRef,__isVue"),bi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ot));function fl(e){ot(e)||(e=String(e));const t=z(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Ei{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?vl:Ri:i?Si:Ci).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=j(t);if(!r){let c;if(o&&(c=ol[n]))return c;if(n==="hasOwnProperty")return fl}const l=Reflect.get(t,n,he(t)?t:s);if((ot(n)?bi.has(n):cl(n))||(r||ge(t,"get",n),i))return l;if(he(l)){const c=o&&Vn(n)?l:l.value;return r&&re(c)?ys(c):c}return re(l)?r?ys(l):kn(l):l}}class Ai extends Ei{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=j(t)&&Vn(n);if(!this._isShallow){const u=it(i);if(!Ne(s)&&!it(s)&&(i=z(i),s=z(s)),!o&&he(i)&&!he(s))return u||(i.value=s),!0}const l=o?Number(n)e,mn=e=>Reflect.getPrototypeOf(e);function pl(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=Bt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),f=n?_s:t?Ut:He;return!t&&ge(i,"iterate",c?ms:xt),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:l?[f(h[0]),f(h[1])]:f(h),done:p}},[Symbol.iterator](){return this}}}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function gl(e,t){const n={get(r){const i=this.__v_raw,o=z(i),l=z(r);e||(mt(r,l)&&ge(o,"get",r),ge(o,"get",l));const{has:c}=mn(o),u=t?_s:e?Ut:He;if(c.call(o,r))return u(i.get(r));if(c.call(o,l))return u(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ge(z(r),"iterate",xt),r.size},has(r){const i=this.__v_raw,o=z(i),l=z(r);return e||(mt(r,l)&&ge(o,"has",r),ge(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=z(l),u=t?_s:e?Ut:He;return!e&&ge(c,"iterate",xt),l.forEach((f,h)=>r.call(i,u(f),u(h),o))}};return de(n,e?{add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear")}:{add(r){!t&&!Ne(r)&&!it(r)&&(r=z(r));const i=z(this);return mn(i).has.call(i,r)||(i.add(r),tt(i,"add",r,r)),this},set(r,i){!t&&!Ne(i)&&!it(i)&&(i=z(i));const o=z(this),{has:l,get:c}=mn(o);let u=l.call(o,r);u||(r=z(r),u=l.call(o,r));const f=c.call(o,r);return o.set(r,i),u?mt(i,f)&&tt(o,"set",r,i):tt(o,"add",r,i),this},delete(r){const i=z(this),{has:o,get:l}=mn(i);let c=o.call(i,r);c||(r=z(r),c=o.call(i,r)),l&&l.call(i,r);const u=i.delete(r);return c&&tt(i,"delete",r,void 0),u},clear(){const r=z(this),i=r.size!==0,o=r.clear();return i&&tt(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=pl(r,e,t)}),n}function Gs(e,t){const n=gl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,i)}const ml={get:Gs(!1,!1)},_l={get:Gs(!1,!0)},yl={get:Gs(!0,!1)};const Ci=new WeakMap,Si=new WeakMap,Ri=new WeakMap,vl=new WeakMap;function bl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function El(e){return e.__v_skip||!Object.isExtensible(e)?0:bl(ko(e))}function kn(e){return it(e)?e:ks(e,!1,ul,ml,Ci)}function xi(e){return ks(e,!1,dl,_l,Si)}function ys(e){return ks(e,!0,hl,yl,Ri)}function ks(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=El(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Tt(e){return it(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function it(e){return!!(e&&e.__v_isReadonly)}function Ne(e){return!!(e&&e.__v_isShallow)}function Kn(e){return e?!!e.__v_raw:!1}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Al(e){return!Z(e,"__v_skip")&&Object.isExtensible(e)&&ci(e,"__v_skip",!0),e}const He=e=>re(e)?kn(e):e,Ut=e=>re(e)?ys(e):e;function he(e){return e?e.__v_isRef===!0:!1}function Ti(e){return wi(e,!1)}function Cl(e){return wi(e,!0)}function wi(e,t){return he(e)?e:new Sl(e,t)}class Sl{constructor(t,n){this.dep=new Us,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:z(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ne(t)||it(t);t=s?t:z(t),mt(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function wt(e){return he(e)?e.value:e}const Rl={get:(e,t,n)=>t==="__v_raw"?e:wt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Oi(e){return Tt(e)?e:new Proxy(e,Rl)}function Aa(e){const t=j(e)?new Array(e.length):{};for(const n in e)t[n]=Pi(e,n);return t}class xl{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=z(t);let r=!0,i=t;if(!j(t)||!Vn(String(n)))do r=!Kn(i)||Ne(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=wt(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&he(this._raw[this._key])){const n=this._object[this._key];if(he(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return il(this._raw,this._key)}}class Tl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ca(e,t,n){return he(e)?e:G(e)?new Tl(e):re(e)&&arguments.length>1?Pi(e,t,n):Ti(e)}function Pi(e,t,n){return new xl(e,t,n)}class wl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Us(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return pi(this,!0),!0}get value(){const t=this.dep.track();return _i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ol(e,t,n=!1){let s,r;return G(e)?s=e:(s=e.get,r=e.set),new wl(s,r,n)}const yn={},wn=new WeakMap;let Ct;function Pl(e,t=!1,n=Ct){if(n){let s=wn.get(n);s||wn.set(n,s=[]),s.push(e)}}function Il(e,t,n=se){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,u=I=>r?I:Ne(I)||r===!1||r===0?nt(I,1):nt(I);let f,h,p,m,A=!1,C=!1;if(he(e)?(h=()=>e.value,A=Ne(e)):Tt(e)?(h=()=>u(e),A=!0):j(e)?(C=!0,A=e.some(I=>Tt(I)||Ne(I)),h=()=>e.map(I=>{if(he(I))return I.value;if(Tt(I))return u(I);if(G(I))return c?c(I,2):I()})):G(e)?t?h=c?()=>c(e,2):e:h=()=>{if(p){st();try{p()}finally{rt()}}const I=Ct;Ct=f;try{return c?c(e,3,[m]):e(m)}finally{Ct=I}}:h=ze,t&&r){const I=h,k=r===!0?1/0:r;h=()=>nt(I(),k)}const D=nl(),P=()=>{f.stop(),D&&D.active&&Ls(D.effects,f)};if(i&&t){const I=t;t=(...k)=>{I(...k),P()}}let O=C?new Array(e.length).fill(yn):yn;const L=I=>{if(!(!(f.flags&1)||!f.dirty&&!I))if(t){const k=f.run();if(r||A||(C?k.some((W,$)=>mt(W,O[$])):mt(k,O))){p&&p();const W=Ct;Ct=f;try{const $=[k,O===yn?void 0:C&&O[0]===yn?[]:O,m];O=k,c?c(t,3,$):t(...$)}finally{Ct=W}}}else f.run()};return l&&l(L),f=new hi(h),f.scheduler=o?()=>o(L,!1):L,m=I=>Pl(I,!1,f),p=f.onStop=()=>{const I=wn.get(f);if(I){if(c)c(I,4);else for(const k of I)k();wn.delete(f)}},t?s?L(!0):O=f.run():o?o(L.bind(null,!0),!0):f.run(),P.pause=f.pause.bind(f),P.resume=f.resume.bind(f),P.stop=P,P}function nt(e,t=1/0,n){if(t<=0||!re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,he(e))nt(e.value,t,n);else if(j(e))for(let s=0;s{nt(s,t,n)});else if(oi(e)){for(const s in e)nt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&nt(e[s],t,n)}return e}function pn(e,t,n,s){try{return s?e(...s):e()}catch(r){Wn(r,t,n)}}function Ve(e,t,n,s){if(G(e)){const r=pn(e,t,n,s);return r&&ri(r)&&r.catch(i=>{Wn(i,t,n)}),r}if(j(e)){const r=[];for(let i=0;i>>1,r=Ae[s],i=cn(r);i=cn(n)?Ae.push(e):Ae.splice(Ml(t),0,e),e.flags|=1,Mi()}}function Mi(){On||(On=Ii.then(Li))}function Dl(e){j(e)?Ht.push(...e):dt&&e.id===-1?dt.splice(Dt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),Mi()}function lr(e,t,n=qe+1){for(;ncn(n)-cn(s));if(Ht.length=0,dt){dt.push(...t);return}for(dt=t,Dt=0;Dte.id==null?e.flags&2?-1:1/0:e.id;function Li(e){try{for(qe=0;qe{s._d&&Mn(-1);const i=Pn(t);let o;try{o=e(...r)}finally{Pn(i),s._d&&Mn(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Sa(e,t){if(_e===null)return e;const n=Qn(_e),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&G(t)?t.call(s&&s.proxy):t}}const Fl=Symbol.for("v-scx"),Bl=()=>Be(Fl);function Ra(e,t){return Ws(e,null,t)}function An(e,t,n){return Ws(e,t,n)}function Ws(e,t,n=se){const{immediate:s,deep:r,flush:i,once:o}=n,l=de({},n),c=t&&s||!t&&i!=="post";let u;if(hn){if(i==="sync"){const m=Bl();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=ze,m.resume=ze,m.pause=ze,m}}const f=Se;l.call=(m,A,C)=>Ve(m,f,A,C);let h=!1;i==="post"?l.scheduler=m=>{be(m,f&&f.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(m,A)=>{A?m():Ks(m)}),l.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const p=Il(e,t,l);return hn&&(u?u.push(p):c&&p()),p}function Hl(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?Bi(s,e):()=>s[e]:e.bind(s,s);let i;G(t)?i=t:(i=t.handler,n=t);const o=gn(this),l=Ws(r,i.bind(s),n);return o(),l}function Bi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,en=e=>e&&(e.disabled||e.disabled===""),cr=e=>e&&(e.defer||e.defer===""),fr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ar=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,vs=(e,t)=>{const n=e&&e.to;return fe(n)?t?t(n):null:n},ji={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,u){const{mc:f,pc:h,pbc:p,o:{insert:m,querySelector:A,createText:C,createComment:D}}=u,P=en(t.props);let{shapeFlag:O,children:L,dynamicChildren:I}=t;if(e==null){const k=t.el=C(""),W=t.anchor=C("");m(k,n,s),m(W,n,s);const $=(F,K)=>{O&16&&f(L,F,K,r,i,o,l,c)},le=()=>{const F=t.target=vs(t.props,A),K=Ui(F,t,C,m);F&&(o!=="svg"&&fr(F)?o="svg":o!=="mathml"&&ar(F)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(F),P||($(F,K),Cn(t,!1)))};P&&($(n,W),Cn(t,!0)),cr(t.props)?(t.el.__isMounted=!1,be(()=>{le(),delete t.el.__isMounted},i)):le()}else{if(cr(t.props)&&e.el.__isMounted===!1){be(()=>{ji.process(e,t,n,s,r,i,o,l,c,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,W=t.target=e.target,$=t.targetAnchor=e.targetAnchor,le=en(e.props),F=le?n:W,K=le?k:$;if(o==="svg"||fr(W)?o="svg":(o==="mathml"||ar(W))&&(o="mathml"),I?(p(e.dynamicChildren,I,F,r,i,o,l),zs(e,t,!0)):c||h(e,t,F,K,r,i,o,l,!1),P)le?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):vn(t,n,k,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ee=t.target=vs(t.props,A);ee&&vn(t,ee,null,u,0)}else le&&vn(t,W,$,u,1);Cn(t,P)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:u,targetAnchor:f,target:h,props:p}=e;if(h&&(r(u),r(f)),i&&r(c),o&16){const m=i||!en(p);for(let A=0;A{e.isMounted=!0}),Xi(()=>{e.isUnmounting=!0}),e}const De=[Function,Array],ki={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:De,onEnter:De,onAfterEnter:De,onEnterCancelled:De,onBeforeLeave:De,onLeave:De,onAfterLeave:De,onLeaveCancelled:De,onBeforeAppear:De,onAppear:De,onAfterAppear:De,onAppearCancelled:De},Ki=e=>{const t=e.subTree;return t.component?Ki(t.component):t},jl={name:"BaseTransition",props:ki,setup(e,{slots:t}){const n=Ys(),s=Gi();return()=>{const r=t.default&&$s(t.default(),!0);if(!r||!r.length)return;const i=Wi(r),o=z(e),{mode:l}=o;if(s.isLeaving)return is(i);const c=ur(i);if(!c)return is(i);let u=fn(c,o,s,n,h=>u=h);c.type!==me&&Ot(c,u);let f=n.subTree&&ur(n.subTree);if(f&&f.type!==me&&!St(f,c)&&Ki(n).type!==me){let h=fn(f,o,s,n);if(Ot(f,h),l==="out-in"&&c.type!==me)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},is(i);l==="in-out"&&c.type!==me?h.delayLeave=(p,m,A)=>{const C=$i(s,f);C[String(f.key)]=f,p[et]=()=>{m(),p[et]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{A(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function Wi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==me){t=n;break}}return t}const Ul=jl;function $i(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function fn(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:p,onLeave:m,onAfterLeave:A,onLeaveCancelled:C,onBeforeAppear:D,onAppear:P,onAfterAppear:O,onAppearCancelled:L}=t,I=String(e.key),k=$i(n,e),W=(F,K)=>{F&&Ve(F,s,9,K)},$=(F,K)=>{const ee=K[1];W(F,K),j(F)?F.every(N=>N.length<=1)&&ee():F.length<=1&&ee()},le={mode:o,persisted:l,beforeEnter(F){let K=c;if(!n.isMounted)if(i)K=D||c;else return;F[et]&&F[et](!0);const ee=k[I];ee&&St(e,ee)&&ee.el[et]&&ee.el[et](),W(K,[F])},enter(F){let K=u,ee=f,N=h;if(!n.isMounted)if(i)K=P||u,ee=O||f,N=L||h;else return;let Q=!1;const pe=F[bn]=Oe=>{Q||(Q=!0,Oe?W(N,[F]):W(ee,[F]),le.delayedLeave&&le.delayedLeave(),F[bn]=void 0)};K?$(K,[F,pe]):pe()},leave(F,K){const ee=String(e.key);if(F[bn]&&F[bn](!0),n.isUnmounting)return K();W(p,[F]);let N=!1;const Q=F[et]=pe=>{N||(N=!0,K(),pe?W(C,[F]):W(A,[F]),F[et]=void 0,k[ee]===e&&delete k[ee])};k[ee]=e,m?$(m,[F,Q]):Q()},clone(F){const K=fn(F,t,n,s,r);return r&&r(K),K}};return le}function is(e){if($n(e))return e=yt(e),e.children=null,e}function ur(e){if(!$n(e))return Vi(e.type)&&e.children?Wi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&G(n.default))return n.default()}}function Ot(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ot(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $s(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;itn(A,t&&(j(t)?t[C]:t),n,s,r));return}if(Vt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&tn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Qn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,f=l.refs===se?l.refs={}:l.refs,h=l.setupState,p=z(h),m=h===se?ni:A=>Z(p,A);if(u!=null&&u!==c){if(hr(t),fe(u))f[u]=null,m(u)&&(h[u]=null);else if(he(u)){u.value=null;const A=t;A.k&&(f[A.k]=null)}}if(G(c))pn(c,l,12,[o,f]);else{const A=fe(c),C=he(c);if(A||C){const D=()=>{if(e.f){const P=A?m(c)?h[c]:f[c]:c.value;if(r)j(P)&&Ls(P,i);else if(j(P))P.includes(i)||P.push(i);else if(A)f[c]=[i],m(c)&&(h[c]=f[c]);else{const O=[i];c.value=O,e.k&&(f[e.k]=O)}}else A?(f[c]=o,m(c)&&(h[c]=o)):C&&(c.value=o,e.k&&(f[e.k]=o))};if(o){const P=()=>{D(),In.delete(e)};P.id=-1,In.set(e,P),be(P,n)}else hr(e),D()}}}function hr(e){const t=In.get(e);t&&(t.flags|=8,In.delete(e))}Un().requestIdleCallback;Un().cancelIdleCallback;const Vt=e=>!!e.type.__asyncLoader,$n=e=>e.type.__isKeepAlive;function Gl(e,t){zi(e,"a",t)}function kl(e,t){zi(e,"da",t)}function zi(e,t,n=Se){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(qn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)$n(r.parent.vnode)&&Kl(s,t,n,r),r=r.parent}}function Kl(e,t,n,s){const r=qn(t,e,s,!0);Zi(()=>{Ls(s[t],r)},n)}function qn(e,t,n=Se,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{st();const l=gn(n),c=Ve(t,n,e,o);return l(),rt(),c});return s?r.unshift(i):r.push(i),i}}const lt=e=>(t,n=Se)=>{(!hn||e==="sp")&&qn(e,(...s)=>t(...s),n)},Wl=lt("bm"),Qi=lt("m"),$l=lt("bu"),Yi=lt("u"),Xi=lt("bum"),Zi=lt("um"),ql=lt("sp"),Jl=lt("rtg"),zl=lt("rtc");function Ql(e,t=Se){qn("ec",e,t)}const Yl=Symbol.for("v-ndc");function Ta(e,t,n,s){let r;const i=n,o=j(e);if(o||fe(e)){const l=o&&Tt(e);let c=!1,u=!1;l&&(c=!Ne(e),u=it(e),e=Gn(e)),r=new Array(e.length);for(let f=0,h=e.length;ft(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,u=l.length;c{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Oa(e,t,n={},s,r){if(_e.ce||_e.parent&&Vt(_e.parent)&&_e.parent.ce){const u=Object.keys(n).length>0;return Ss(),Rs(Ce,null,[ye("slot",n,s)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Ss();const o=i&&eo(i(n)),l=n.key||o&&o.key,c=Rs(Ce,{key:(l&&!ot(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||[],o&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function eo(e){return e.some(t=>un(t)?!(t.type===me||t.type===Ce&&!eo(t.children)):!0)?e:null}const bs=e=>e?bo(e)?Qn(e):bs(e.parent):null,nn=de(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>bs(e.parent),$root:e=>bs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>no(e),$forceUpdate:e=>e.f||(e.f=()=>{Ks(e.update)}),$nextTick:e=>e.n||(e.n=Ni.bind(e.proxy)),$watch:e=>Hl.bind(e)}),os=(e,t)=>e!==se&&!e.__isScriptSetup&&Z(e,t),Xl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(os(s,t))return o[t]=1,s[t];if(r!==se&&Z(r,t))return o[t]=2,r[t];if(Z(i,t))return o[t]=3,i[t];if(n!==se&&Z(n,t))return o[t]=4,n[t];Es&&(o[t]=0)}}const u=nn[t];let f,h;if(u)return t==="$attrs"&&ge(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==se&&Z(n,t))return o[t]=4,n[t];if(h=c.config.globalProperties,Z(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return os(r,t)?(r[t]=n,!0):s!==se&&Z(s,t)?(s[t]=n,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==se&&l[0]!=="$"&&Z(e,l)||os(t,l)||Z(i,l)||Z(s,l)||Z(nn,l)||Z(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function dr(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Es=!0;function Zl(e){const t=no(e),n=e.proxy,s=e.ctx;Es=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:f,beforeMount:h,mounted:p,beforeUpdate:m,updated:A,activated:C,deactivated:D,beforeDestroy:P,beforeUnmount:O,destroyed:L,unmounted:I,render:k,renderTracked:W,renderTriggered:$,errorCaptured:le,serverPrefetch:F,expose:K,inheritAttrs:ee,components:N,directives:Q,filters:pe}=t;if(u&&ec(u,s,null),o)for(const ne in o){const Y=o[ne];G(Y)&&(s[ne]=Y.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=kn(ne))}if(Es=!0,i)for(const ne in i){const Y=i[ne],Qe=G(Y)?Y.bind(n,n):G(Y.get)?Y.get.bind(n,n):ze,ct=!G(Y)&&G(Y.set)?Y.set.bind(n):ze,Ue=Le({get:Qe,set:ct});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Re=>Ue.value=Re})}if(l)for(const ne in l)to(l[ne],s,n,ne);if(c){const ne=G(c)?c.call(n):c;Reflect.ownKeys(ne).forEach(Y=>{En(Y,ne[Y])})}f&&pr(f,e,"c");function ae(ne,Y){j(Y)?Y.forEach(Qe=>ne(Qe.bind(n))):Y&&ne(Y.bind(n))}if(ae(Wl,h),ae(Qi,p),ae($l,m),ae(Yi,A),ae(Gl,C),ae(kl,D),ae(Ql,le),ae(zl,W),ae(Jl,$),ae(Xi,O),ae(Zi,I),ae(ql,F),j(K))if(K.length){const ne=e.exposed||(e.exposed={});K.forEach(Y=>{Object.defineProperty(ne,Y,{get:()=>n[Y],set:Qe=>n[Y]=Qe,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===ze&&(e.render=k),ee!=null&&(e.inheritAttrs=ee),N&&(e.components=N),Q&&(e.directives=Q),F&&Ji(e)}function ec(e,t,n=ze){j(e)&&(e=As(e));for(const s in e){const r=e[s];let i;re(r)?"default"in r?i=Be(r.from||s,r.default,!0):i=Be(r.from||s):i=Be(r),he(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function pr(e,t,n){Ve(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function to(e,t,n,s){let r=s.includes(".")?Bi(n,s):()=>n[s];if(fe(e)){const i=t[e];G(i)&&An(r,i)}else if(G(e))An(r,e.bind(n));else if(re(e))if(j(e))e.forEach(i=>to(i,t,n,s));else{const i=G(e.handler)?e.handler.bind(n):t[e.handler];G(i)&&An(r,i,e)}}function no(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>Nn(c,u,o,!0)),Nn(c,t,o)),re(t)&&i.set(t,c),c}function Nn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Nn(e,i,n,!0),r&&r.forEach(o=>Nn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=tc[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const tc={data:gr,props:mr,emits:mr,methods:Qt,computed:Qt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:Qt,directives:Qt,watch:sc,provide:gr,inject:nc};function gr(e,t){return t?e?function(){return de(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function nc(e,t){return Qt(As(e),As(t))}function As(e){if(j(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_t(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function lc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||se;let r=n;const i=t.startsWith("update:"),o=i&&oc(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>fe(f)?f.trim():f)),o.number&&(r=n.map($o)));let l,c=s[l=Zn(t)]||s[l=Zn(_t(t))];!c&&i&&(c=s[l=Zn(Pt(t))]),c&&Ve(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ve(u,e,6,r)}}const cc=new WeakMap;function ro(e,t,n=!1){const s=n?cc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!G(e)){const c=u=>{const f=ro(u,t,!0);f&&(l=!0,de(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(re(e)&&s.set(e,null),null):(j(i)?i.forEach(c=>o[c]=null):de(o,i),re(e)&&s.set(e,o),o)}function Jn(e,t){return!e||!Bn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,Pt(t))||Z(e,t))}function _r(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:f,props:h,data:p,setupState:m,ctx:A,inheritAttrs:C}=e,D=Pn(e);let P,O;try{if(n.shapeFlag&4){const I=r||s,k=I;P=Je(u.call(k,I,f,h,m,p,A)),O=l}else{const I=t;P=Je(I.length>1?I(h,{attrs:l,slots:o,emit:c}):I(h,null)),O=t.props?l:fc(l)}}catch(I){sn.length=0,Wn(I,e,1),P=ye(me)}let L=P;if(O&&C!==!1){const I=Object.keys(O),{shapeFlag:k}=L;I.length&&k&7&&(i&&I.some(Ds)&&(O=ac(O,i)),L=yt(L,O,!1,!0))}return n.dirs&&(L=yt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Ot(L,n.transition),P=L,Pn(D),P}const fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bn(n))&&((t||(t={}))[n]=e[n]);return t},ac=(e,t)=>{const n={};for(const s in e)(!Ds(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function uc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?yr(s,o,u):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;hObject.create(io),lo=e=>Object.getPrototypeOf(e)===io;function dc(e,t,n,s=!1){const r={},i=oo();e.propsDefaults=Object.create(null),co(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:xi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function pc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[c]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,m]=fo(h,t,!0);de(o,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return re(e)&&s.set(e,Ft),Ft;if(j(i))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",Js=e=>j(e)?e.map(Je):[Je(e)],mc=(e,t,n)=>{if(t._n)return t;const s=Ll((...r)=>Js(t(...r)),n);return s._c=!1,s},ao=(e,t,n)=>{const s=e._ctx;for(const r in e){if(qs(r))continue;const i=e[r];if(G(i))t[r]=mc(r,i,s);else if(i!=null){const o=Js(i);t[r]=()=>o}}},uo=(e,t)=>{const n=Js(t);e.slots.default=()=>n},ho=(e,t,n)=>{for(const s in t)(n||!qs(s))&&(e[s]=t[s])},_c=(e,t,n)=>{const s=e.slots=oo();if(e.vnode.shapeFlag&32){const r=t._;r?(ho(s,t,n),n&&ci(s,"_",r,!0)):ao(t,s)}else t&&uo(e,t)},yc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=se;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ho(r,t,n):(i=!t.$stable,ao(t,r)),o=t}else t&&(uo(e,t),o={default:1});if(i)for(const l in r)!qs(l)&&o[l]==null&&delete r[l]},be=Cc;function vc(e){return bc(e)}function bc(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:p,setScopeId:m=ze,insertStaticContent:A}=e,C=(a,d,g,_=null,b=null,y=null,x=void 0,R=null,S=!!d.dynamicChildren)=>{if(a===d)return;a&&!St(a,d)&&(_=v(a),Re(a,b,y,!0),a=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:E,ref:V,shapeFlag:w}=d;switch(E){case zn:D(a,d,g,_);break;case me:P(a,d,g,_);break;case Sn:a==null&&O(d,g,_,x);break;case Ce:N(a,d,g,_,b,y,x,R,S);break;default:w&1?k(a,d,g,_,b,y,x,R,S):w&6?Q(a,d,g,_,b,y,x,R,S):(w&64||w&128)&&E.process(a,d,g,_,b,y,x,R,S,B)}V!=null&&b?tn(V,a&&a.ref,y,d||a,!d):V==null&&a&&a.ref!=null&&tn(a.ref,null,y,a,!0)},D=(a,d,g,_)=>{if(a==null)s(d.el=l(d.children),g,_);else{const b=d.el=a.el;d.children!==a.children&&u(b,d.children)}},P=(a,d,g,_)=>{a==null?s(d.el=c(d.children||""),g,_):d.el=a.el},O=(a,d,g,_)=>{[a.el,a.anchor]=A(a.children,d,g,_,a.el,a.anchor)},L=({el:a,anchor:d},g,_)=>{let b;for(;a&&a!==d;)b=p(a),s(a,g,_),a=b;s(d,g,_)},I=({el:a,anchor:d})=>{let g;for(;a&&a!==d;)g=p(a),r(a),a=g;r(d)},k=(a,d,g,_,b,y,x,R,S)=>{if(d.type==="svg"?x="svg":d.type==="math"&&(x="mathml"),a==null)W(d,g,_,b,y,x,R,S);else{const E=a.el&&a.el._isVueCE?a.el:null;try{E&&E._beginPatch(),F(a,d,b,y,x,R,S)}finally{E&&E._endPatch()}}},W=(a,d,g,_,b,y,x,R)=>{let S,E;const{props:V,shapeFlag:w,transition:H,dirs:U}=a;if(S=a.el=o(a.type,y,V&&V.is,V),w&8?f(S,a.children):w&16&&le(a.children,S,null,_,b,ls(a,y),x,R),U&&bt(a,null,_,"created"),$(S,a,a.scopeId,x,_),V){for(const ie in V)ie!=="value"&&!Yt(ie)&&i(S,ie,null,V[ie],y,_);"value"in V&&i(S,"value",null,V.value,y),(E=V.onVnodeBeforeMount)&&We(E,_,a)}U&&bt(a,null,_,"beforeMount");const J=Ec(b,H);J&&H.beforeEnter(S),s(S,d,g),((E=V&&V.onVnodeMounted)||J||U)&&be(()=>{E&&We(E,_,a),J&&H.enter(S),U&&bt(a,null,_,"mounted")},b)},$=(a,d,g,_,b)=>{if(g&&m(a,g),_)for(let y=0;y<_.length;y++)m(a,_[y]);if(b){let y=b.subTree;if(d===y||mo(y.type)&&(y.ssContent===d||y.ssFallback===d)){const x=b.vnode;$(a,x,x.scopeId,x.slotScopeIds,b.parent)}}},le=(a,d,g,_,b,y,x,R,S=0)=>{for(let E=S;E{const R=d.el=a.el;let{patchFlag:S,dynamicChildren:E,dirs:V}=d;S|=a.patchFlag&16;const w=a.props||se,H=d.props||se;let U;if(g&&Et(g,!1),(U=H.onVnodeBeforeUpdate)&&We(U,g,d,a),V&&bt(d,a,g,"beforeUpdate"),g&&Et(g,!0),(w.innerHTML&&H.innerHTML==null||w.textContent&&H.textContent==null)&&f(R,""),E?K(a.dynamicChildren,E,R,g,_,ls(d,b),y):x||Y(a,d,R,null,g,_,ls(d,b),y,!1),S>0){if(S&16)ee(R,w,H,g,b);else if(S&2&&w.class!==H.class&&i(R,"class",null,H.class,b),S&4&&i(R,"style",w.style,H.style,b),S&8){const J=d.dynamicProps;for(let ie=0;ie{U&&We(U,g,d,a),V&&bt(d,a,g,"updated")},_)},K=(a,d,g,_,b,y,x)=>{for(let R=0;R{if(d!==g){if(d!==se)for(const y in d)!Yt(y)&&!(y in g)&&i(a,y,d[y],null,b,_);for(const y in g){if(Yt(y))continue;const x=g[y],R=d[y];x!==R&&y!=="value"&&i(a,y,R,x,b,_)}"value"in g&&i(a,"value",d.value,g.value,b)}},N=(a,d,g,_,b,y,x,R,S)=>{const E=d.el=a?a.el:l(""),V=d.anchor=a?a.anchor:l("");let{patchFlag:w,dynamicChildren:H,slotScopeIds:U}=d;U&&(R=R?R.concat(U):U),a==null?(s(E,g,_),s(V,g,_),le(d.children||[],g,V,b,y,x,R,S)):w>0&&w&64&&H&&a.dynamicChildren&&a.dynamicChildren.length===H.length?(K(a.dynamicChildren,H,g,b,y,x,R),(d.key!=null||b&&d===b.subTree)&&zs(a,d,!0)):Y(a,d,g,V,b,y,x,R,S)},Q=(a,d,g,_,b,y,x,R,S)=>{d.slotScopeIds=R,a==null?d.shapeFlag&512?b.ctx.activate(d,g,_,x,S):pe(d,g,_,b,y,x,S):Oe(a,d,S)},pe=(a,d,g,_,b,y,x)=>{const R=a.component=Ic(a,_,b);if($n(a)&&(R.ctx.renderer=B),Nc(R,!1,x),R.asyncDep){if(b&&b.registerDep(R,ae,x),!a.el){const S=R.subTree=ye(me);P(null,S,d,g),a.placeholder=S.el}}else ae(R,a,d,g,b,y,x)},Oe=(a,d,g)=>{const _=d.component=a.component;if(uc(a,d,g))if(_.asyncDep&&!_.asyncResolved){ne(_,d,g);return}else _.next=d,_.update();else d.el=a.el,_.vnode=d},ae=(a,d,g,_,b,y,x)=>{const R=()=>{if(a.isMounted){let{next:w,bu:H,u:U,parent:J,vnode:ie}=a;{const ke=po(a);if(ke){w&&(w.el=ie.el,ne(a,w,x)),ke.asyncDep.then(()=>{a.isUnmounted||R()});return}}let te=w,xe;Et(a,!1),w?(w.el=ie.el,ne(a,w,x)):w=ie,H&&es(H),(xe=w.props&&w.props.onVnodeBeforeUpdate)&&We(xe,J,w,ie),Et(a,!0);const Te=_r(a),Ge=a.subTree;a.subTree=Te,C(Ge,Te,h(Ge.el),v(Ge),a,b,y),w.el=Te.el,te===null&&hc(a,Te.el),U&&be(U,b),(xe=w.props&&w.props.onVnodeUpdated)&&be(()=>We(xe,J,w,ie),b)}else{let w;const{el:H,props:U}=d,{bm:J,m:ie,parent:te,root:xe,type:Te}=a,Ge=Vt(d);Et(a,!1),J&&es(J),!Ge&&(w=U&&U.onVnodeBeforeMount)&&We(w,te,d),Et(a,!0);{xe.ce&&xe.ce._def.shadowRoot!==!1&&xe.ce._injectChildStyle(Te);const ke=a.subTree=_r(a);C(null,ke,g,_,a,b,y),d.el=ke.el}if(ie&&be(ie,b),!Ge&&(w=U&&U.onVnodeMounted)){const ke=d;be(()=>We(w,te,ke),b)}(d.shapeFlag&256||te&&Vt(te.vnode)&&te.vnode.shapeFlag&256)&&a.a&&be(a.a,b),a.isMounted=!0,d=g=_=null}};a.scope.on();const S=a.effect=new hi(R);a.scope.off();const E=a.update=S.run.bind(S),V=a.job=S.runIfDirty.bind(S);V.i=a,V.id=a.uid,S.scheduler=()=>Ks(V),Et(a,!0),E()},ne=(a,d,g)=>{d.component=a;const _=a.vnode.props;a.vnode=d,a.next=null,pc(a,d.props,_,g),yc(a,d.children,g),st(),lr(a),rt()},Y=(a,d,g,_,b,y,x,R,S=!1)=>{const E=a&&a.children,V=a?a.shapeFlag:0,w=d.children,{patchFlag:H,shapeFlag:U}=d;if(H>0){if(H&128){ct(E,w,g,_,b,y,x,R,S);return}else if(H&256){Qe(E,w,g,_,b,y,x,R,S);return}}U&8?(V&16&&Me(E,b,y),w!==E&&f(g,w)):V&16?U&16?ct(E,w,g,_,b,y,x,R,S):Me(E,b,y,!0):(V&8&&f(g,""),U&16&&le(w,g,_,b,y,x,R,S))},Qe=(a,d,g,_,b,y,x,R,S)=>{a=a||Ft,d=d||Ft;const E=a.length,V=d.length,w=Math.min(E,V);let H;for(H=0;HV?Me(a,b,y,!0,!1,w):le(d,g,_,b,y,x,R,S,w)},ct=(a,d,g,_,b,y,x,R,S)=>{let E=0;const V=d.length;let w=a.length-1,H=V-1;for(;E<=w&&E<=H;){const U=a[E],J=d[E]=S?pt(d[E]):Je(d[E]);if(St(U,J))C(U,J,g,null,b,y,x,R,S);else break;E++}for(;E<=w&&E<=H;){const U=a[w],J=d[H]=S?pt(d[H]):Je(d[H]);if(St(U,J))C(U,J,g,null,b,y,x,R,S);else break;w--,H--}if(E>w){if(E<=H){const U=H+1,J=UH)for(;E<=w;)Re(a[E],b,y,!0),E++;else{const U=E,J=E,ie=new Map;for(E=J;E<=H;E++){const Pe=d[E]=S?pt(d[E]):Je(d[E]);Pe.key!=null&&ie.set(Pe.key,E)}let te,xe=0;const Te=H-J+1;let Ge=!1,ke=0;const Wt=new Array(Te);for(E=0;E=Te){Re(Pe,b,y,!0);continue}let Ke;if(Pe.key!=null)Ke=ie.get(Pe.key);else for(te=J;te<=H;te++)if(Wt[te-J]===0&&St(Pe,d[te])){Ke=te;break}Ke===void 0?Re(Pe,b,y,!0):(Wt[Ke-J]=E+1,Ke>=ke?ke=Ke:Ge=!0,C(Pe,d[Ke],g,null,b,y,x,R,S),xe++)}const tr=Ge?Ac(Wt):Ft;for(te=tr.length-1,E=Te-1;E>=0;E--){const Pe=J+E,Ke=d[Pe],nr=d[Pe+1],sr=Pe+1{const{el:y,type:x,transition:R,children:S,shapeFlag:E}=a;if(E&6){Ue(a.component.subTree,d,g,_);return}if(E&128){a.suspense.move(d,g,_);return}if(E&64){x.move(a,d,g,B);return}if(x===Ce){s(y,d,g);for(let w=0;wR.enter(y),b);else{const{leave:w,delayLeave:H,afterLeave:U}=R,J=()=>{a.ctx.isUnmounted?r(y):s(y,d,g)},ie=()=>{y._isLeaving&&y[et](!0),w(y,()=>{J(),U&&U()})};H?H(y,J,ie):ie()}else s(y,d,g)},Re=(a,d,g,_=!1,b=!1)=>{const{type:y,props:x,ref:R,children:S,dynamicChildren:E,shapeFlag:V,patchFlag:w,dirs:H,cacheIndex:U}=a;if(w===-2&&(b=!1),R!=null&&(st(),tn(R,null,g,a,!0),rt()),U!=null&&(d.renderCache[U]=void 0),V&256){d.ctx.deactivate(a);return}const J=V&1&&H,ie=!Vt(a);let te;if(ie&&(te=x&&x.onVnodeBeforeUnmount)&&We(te,d,a),V&6)vt(a.component,g,_);else{if(V&128){a.suspense.unmount(g,_);return}J&&bt(a,null,d,"beforeUnmount"),V&64?a.type.remove(a,d,g,B,_):E&&!E.hasOnce&&(y!==Ce||w>0&&w&64)?Me(E,d,g,!1,!0):(y===Ce&&w&384||!b&&V&16)&&Me(S,d,g),_&&It(a)}(ie&&(te=x&&x.onVnodeUnmounted)||J)&&be(()=>{te&&We(te,d,a),J&&bt(a,null,d,"unmounted")},g)},It=a=>{const{type:d,el:g,anchor:_,transition:b}=a;if(d===Ce){Nt(g,_);return}if(d===Sn){I(a);return}const y=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:x,delayLeave:R}=b,S=()=>x(g,y);R?R(a.el,y,S):S()}else y()},Nt=(a,d)=>{let g;for(;a!==d;)g=p(a),r(a),a=g;r(d)},vt=(a,d,g)=>{const{bum:_,scope:b,job:y,subTree:x,um:R,m:S,a:E}=a;br(S),br(E),_&&es(_),b.stop(),y&&(y.flags|=8,Re(x,a,d,g)),R&&be(R,d),be(()=>{a.isUnmounted=!0},d)},Me=(a,d,g,_=!1,b=!1,y=0)=>{for(let x=y;x{if(a.shapeFlag&6)return v(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=p(a.anchor||a.el),g=d&&d[Hi];return g?p(g):d};let M=!1;const T=(a,d,g)=>{let _;a==null?d._vnode&&(Re(d._vnode,null,null,!0),_=d._vnode.component):C(d._vnode||null,a,d,null,null,null,g),d._vnode=a,M||(M=!0,lr(_),Di(),M=!1)},B={p:C,um:Re,m:Ue,r:It,mt:pe,mc:le,pc:Y,pbc:K,n:v,o:e};return{render:T,hydrate:void 0,createApp:ic(T)}}function ls({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zs(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:po(t)}function br(e){if(e)for(let t=0;te.__isSuspense;function Cc(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Dl(e)}const Ce=Symbol.for("v-fgt"),zn=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),Sn=Symbol.for("v-stc"),sn=[];let Ie=null;function Ss(e=!1){sn.push(Ie=e?null:[])}function Sc(){sn.pop(),Ie=sn[sn.length-1]||null}let an=1;function Mn(e,t=!1){an+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function _o(e){return e.dynamicChildren=an>0?Ie||Ft:null,Sc(),an>0&&Ie&&Ie.push(e),e}function Pa(e,t,n,s,r,i){return _o(vo(e,t,n,s,r,i,!0))}function Rs(e,t,n,s,r){return _o(ye(e,t,n,s,r,!0))}function un(e){return e?e.__v_isVNode===!0:!1}function St(e,t){return e.type===t.type&&e.key===t.key}const yo=({key:e})=>e??null,Rn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||he(e)||G(e)?{i:_e,r:e,k:t,f:!!n}:e:null);function vo(e,t=null,n=null,s=0,r=null,i=e===Ce?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yo(t),ref:t&&Rn(t),scopeId:Fi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_e};return l?(Qs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=fe(n)?8:16),an>0&&!o&&Ie&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ie.push(c),c}const ye=Rc;function Rc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Yl)&&(e=me),un(e)){const l=yt(e,t,!0);return n&&Qs(l,n),an>0&&!i&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(Fc(e)&&(e=e.__vccOpts),t){t=xc(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=Bs(l)),re(c)&&(Kn(c)&&!j(c)&&(c=de({},c)),t.style=Fs(c))}const o=fe(e)?1:mo(e)?128:Vi(e)?64:re(e)?4:G(e)?2:0;return vo(e,t,n,s,r,o,i,!0)}function xc(e){return e?Kn(e)||lo(e)?de({},e):e:null}function yt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,u=t?wc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&yo(u),ref:t&&t.ref?n&&i?j(i)?i.concat(Rn(t)):[i,Rn(t)]:Rn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yt(e.ssContent),ssFallback:e.ssFallback&&yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Ot(f,c.clone(f)),f}function Tc(e=" ",t=0){return ye(zn,null,e,t)}function Ia(e,t){const n=ye(Sn,null,e);return n.staticCount=t,n}function Na(e="",t=!1){return t?(Ss(),Rs(me,null,e)):ye(me,null,e)}function Je(e){return e==null||typeof e=="boolean"?ye(me):j(e)?ye(Ce,null,e.slice()):un(e)?pt(e):ye(zn,null,String(e))}function pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yt(e)}function Qs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Qs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!lo(t)?t._ctx=_e:r===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),s&64?(n=16,t=[Tc(t)]):n=8);e.children=t,e.shapeFlag|=n}function wc(...e){const t={};for(let n=0;nSe||_e;let Dn,xs;{const e=Un(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Dn=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),xs=t("__VUE_SSR_SETTERS__",n=>hn=n)}const gn=e=>{const t=Se;return Dn(e),e.scope.on(),()=>{e.scope.off(),Dn(t)}},Er=()=>{Se&&Se.scope.off(),Dn(null)};function bo(e){return e.vnode.shapeFlag&4}let hn=!1;function Nc(e,t=!1,n=!1){t&&xs(t);const{props:s,children:r}=e.vnode,i=bo(e);dc(e,s,i,t),_c(e,r,n||t);const o=i?Mc(e,t):void 0;return t&&xs(!1),o}function Mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Xl);const{setup:s}=n;if(s){st();const r=e.setupContext=s.length>1?Lc(e):null,i=gn(e),o=pn(s,e,0,[e.props,r]),l=ri(o);if(rt(),i(),(l||e.sp)&&!Vt(e)&&Ji(e),l){if(o.then(Er,Er),t)return o.then(c=>{Ar(e,c)}).catch(c=>{Wn(c,e,0)});e.asyncDep=o}else Ar(e,o)}else Eo(e)}function Ar(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=Oi(t)),Eo(e)}function Eo(e,t,n){const s=e.type;e.render||(e.render=s.render||ze);{const r=gn(e);st();try{Zl(e)}finally{rt(),r()}}}const Dc={get(e,t){return ge(e,"get",""),e[t]}};function Lc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Dc),slots:e.slots,emit:e.emit,expose:t}}function Qn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Oi(Al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}})):e.proxy}function Fc(e){return G(e)&&"__vccOpts"in e}const Le=(e,t)=>Ol(e,t,hn);function Xs(e,t,n){try{Mn(-1);const s=arguments.length;return s===2?re(t)&&!j(t)?un(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&un(n)&&(n=[n]),ye(e,t,n))}finally{Mn(1)}}const Bc="3.5.26";let Ts;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{Ts=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const Ao=Ts?e=>Ts.createHTML(e):e=>e,Hc="http://www.w3.org/2000/svg",Vc="http://www.w3.org/1998/Math/MathML",Ze=typeof document<"u"?document:null,Sr=Ze&&Ze.createElement("template"),jc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ze.createElementNS(Hc,e):t==="mathml"?Ze.createElementNS(Vc,e):n?Ze.createElement(e,{is:n}):Ze.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ze.createTextNode(e),createComment:e=>Ze.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ze.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Sr.innerHTML=Ao(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=Sr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ft="transition",qt="animation",Gt=Symbol("_vtc"),Co={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},So=de({},ki,Co),Uc=e=>(e.displayName="Transition",e.props=So,e),Ma=Uc((e,{slots:t})=>Xs(Ul,Ro(e),t)),At=(e,t=[])=>{j(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rr=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function Ro(e){const t={};for(const N in e)N in Co||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:f=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,A=Gc(r),C=A&&A[0],D=A&&A[1],{onBeforeEnter:P,onEnter:O,onEnterCancelled:L,onLeave:I,onLeaveCancelled:k,onBeforeAppear:W=P,onAppear:$=O,onAppearCancelled:le=L}=t,F=(N,Q,pe,Oe)=>{N._enterCancelled=Oe,ut(N,Q?f:l),ut(N,Q?u:o),pe&&pe()},K=(N,Q)=>{N._isLeaving=!1,ut(N,h),ut(N,m),ut(N,p),Q&&Q()},ee=N=>(Q,pe)=>{const Oe=N?$:O,ae=()=>F(Q,N,pe);At(Oe,[Q,ae]),xr(()=>{ut(Q,N?c:i),$e(Q,N?f:l),Rr(Oe)||Tr(Q,s,C,ae)})};return de(t,{onBeforeEnter(N){At(P,[N]),$e(N,i),$e(N,o)},onBeforeAppear(N){At(W,[N]),$e(N,c),$e(N,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(N,Q){N._isLeaving=!0;const pe=()=>K(N,Q);$e(N,h),N._enterCancelled?($e(N,p),ws(N)):(ws(N),$e(N,p)),xr(()=>{N._isLeaving&&(ut(N,h),$e(N,m),Rr(I)||Tr(N,s,D,pe))}),At(I,[N,pe])},onEnterCancelled(N){F(N,!1,void 0,!0),At(L,[N])},onAppearCancelled(N){F(N,!0,void 0,!0),At(le,[N])},onLeaveCancelled(N){K(N),At(k,[N])}})}function Gc(e){if(e==null)return null;if(re(e))return[cs(e.enter),cs(e.leave)];{const t=cs(e);return[t,t]}}function cs(e){return qo(e)}function $e(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Gt]||(e[Gt]=new Set)).add(t)}function ut(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Gt];n&&(n.delete(t),n.size||(e[Gt]=void 0))}function xr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kc=0;function Tr(e,t,n,s){const r=e._endId=++kc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=xo(e,t);if(!o)return s();const u=o+"end";let f=0;const h=()=>{e.removeEventListener(u,p),i()},p=m=>{m.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[A]||"").split(", "),r=s(`${ft}Delay`),i=s(`${ft}Duration`),o=wr(r,i),l=s(`${qt}Delay`),c=s(`${qt}Duration`),u=wr(l,c);let f=null,h=0,p=0;t===ft?o>0&&(f=ft,h=o,p=i.length):t===qt?u>0&&(f=qt,h=u,p=c.length):(h=Math.max(o,u),f=h>0?o>u?ft:qt:null,p=f?f===ft?i.length:c.length:0);const m=f===ft&&/\b(?:transform|all)(?:,|$)/.test(s(`${ft}Property`).toString());return{type:f,timeout:h,propCount:p,hasTransform:m}}function wr(e,t){for(;e.lengthOr(n)+Or(e[s])))}function Or(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ws(e){return(e?e.ownerDocument:document).body.offsetHeight}function Kc(e,t,n){const s=e[Gt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ln=Symbol("_vod"),To=Symbol("_vsh"),Da={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ln]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Jt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Jt(e,!0),s.enter(e)):s.leave(e,()=>{Jt(e,!1)}):Jt(e,t))},beforeUnmount(e,{value:t}){Jt(e,t)}};function Jt(e,t){e.style.display=t?e[Ln]:"none",e[To]=!t}const Wc=Symbol(""),$c=/(?:^|;)\s*display\s*:/;function qc(e,t,n){const s=e.style,r=fe(n);let i=!1;if(n&&!r){if(t)if(fe(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&xn(s,l,"")}else for(const o in t)n[o]==null&&xn(s,o,"");for(const o in n)o==="display"&&(i=!0),xn(s,o,n[o])}else if(r){if(t!==n){const o=s[Wc];o&&(n+=";"+o),s.cssText=n,i=$c.test(n)}}else t&&e.removeAttribute("style");Ln in e&&(e[Ln]=i?s.display:"",e[To]&&(s.display="none"))}const Pr=/\s*!important$/;function xn(e,t,n){if(j(n))n.forEach(s=>xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Jc(e,t);Pr.test(n)?e.setProperty(Pt(s),n.replace(Pr,""),"important"):e[s]=n}}const Ir=["Webkit","Moz","ms"],fs={};function Jc(e,t){const n=fs[t];if(n)return n;let s=_t(t);if(s!=="filter"&&s in e)return fs[t]=s;s=li(s);for(let r=0;ras||(Zc.then(()=>as=0),as=Date.now());function tf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ve(nf(s,n.value),t,5,[s])};return n.value=e,n.attached=ef(),n}function nf(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Br=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,sf=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Kc(e,s,o):t==="style"?qc(e,n,s):Bn(t)?Ds(t)||Yc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rf(e,t,s,o))?(Dr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Mr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fe(s))?Dr(e,_t(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Mr(e,t,s,o))};function rf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Br(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Br(t)&&fe(n)?!1:t in e}const wo=new WeakMap,Oo=new WeakMap,Fn=Symbol("_moveCb"),Hr=Symbol("_enterCb"),of=e=>(delete e.props.mode,e),lf=of({name:"TransitionGroup",props:de({},So,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ys(),s=Gi();let r,i;return Yi(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!uf(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(cf),r.forEach(ff);const l=r.filter(af);ws(n.vnode.el),l.forEach(c=>{const u=c.el,f=u.style;$e(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=u[Fn]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",h),u[Fn]=null,ut(u,o))};u.addEventListener("transitionend",h)}),r=[]}),()=>{const o=z(e),l=Ro(o);let c=o.tag||Ce;if(r=[],i)for(let u=0;u{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=xo(s);return i.removeChild(s),o}const hf=["ctrl","shift","alt","meta"],df={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>hf.some(n=>e[`${n}Key`]&&!t.includes(n))},Fa=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o{const t=gf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=_f(s);if(!r)return;const i=t._component;!G(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,mf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function mf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function _f(e){return fe(e)?document.querySelector(e):e}const Lt=typeof document<"u";function Po(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function yf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Po(e.default)}const X=Object.assign;function us(e,t){const n={};for(const s in t){const r=t[s];n[s]=je(r)?r.map(e):e(r)}return n}const rn=()=>{},je=Array.isArray;function jr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Io=/#/g,vf=/&/g,bf=/\//g,Ef=/=/g,Af=/\?/g,No=/\+/g,Cf=/%5B/g,Sf=/%5D/g,Mo=/%5E/g,Rf=/%60/g,Do=/%7B/g,xf=/%7C/g,Lo=/%7D/g,Tf=/%20/g;function Zs(e){return e==null?"":encodeURI(""+e).replace(xf,"|").replace(Cf,"[").replace(Sf,"]")}function wf(e){return Zs(e).replace(Do,"{").replace(Lo,"}").replace(Mo,"^")}function Os(e){return Zs(e).replace(No,"%2B").replace(Tf,"+").replace(Io,"%23").replace(vf,"%26").replace(Rf,"`").replace(Do,"{").replace(Lo,"}").replace(Mo,"^")}function Of(e){return Os(e).replace(Ef,"%3D")}function Pf(e){return Zs(e).replace(Io,"%23").replace(Af,"%3F")}function If(e){return Pf(e).replace(bf,"%2F")}function dn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Nf=/\/$/,Mf=e=>e.replace(Nf,"");function hs(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Bf(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:dn(o)}}function Df(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ur(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Lf(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&kt(t.matched[s],n.matched[r])&&Fo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function kt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ff(e[n],t[n]))return!1;return!0}function Ff(e,t){return je(e)?Gr(e,t):je(t)?Gr(t,e):e?.valueOf()===t?.valueOf()}function Gr(e,t){return je(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Bf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ps=(function(e){return e.pop="pop",e.push="push",e})({}),ds=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Hf(e){if(!e)if(Lt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Mf(e)}const Vf=/^[^#]+#/;function jf(e,t){return e.replace(Vf,"#")+t}function Uf(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Yn=()=>({left:window.scrollX,top:window.scrollY});function Gf(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Uf(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function kr(e,t){return(history.state?history.state.position-t:-1)+e}const Is=new Map;function kf(e,t){Is.set(e,t)}function Kf(e){const t=Is.get(e);return Is.delete(e),t}function Wf(e){return typeof e=="string"||e&&typeof e=="object"}function Bo(e){return typeof e=="string"||typeof e=="symbol"}let ce=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Ho=Symbol("");ce.MATCHER_NOT_FOUND+"",ce.NAVIGATION_GUARD_REDIRECT+"",ce.NAVIGATION_ABORTED+"",ce.NAVIGATION_CANCELLED+"",ce.NAVIGATION_DUPLICATED+"";function Kt(e,t){return X(new Error,{type:e,[Ho]:!0},t)}function Xe(e,t){return e instanceof Error&&Ho in e&&(t==null||!!(e.type&t))}const $f=["params","query","hash"];function qf(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of $f)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Jf(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&Os(r)):[s&&Os(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function zf(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=je(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Qf=Symbol(""),Wr=Symbol(""),Xn=Symbol(""),er=Symbol(""),Ns=Symbol("");function zt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function gt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(Kt(ce.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):Wf(p)?c(Kt(ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),l())},f=i(()=>e.call(s&&s.instances[r],t,n,u));let h=Promise.resolve(f);e.length<3&&(h=h.then(u)),h.catch(p=>c(p))})}function ps(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Po(c)){const u=(c.__vccOpts||c)[t];u&&i.push(gt(u,n,s,o,l,r))}else{let u=c();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const h=yf(f)?f.default:f;o.mods[l]=f,o.components[l]=h;const p=(h.__vccOpts||h)[t];return p&>(p,n,s,o,l,r)()}))}}return i}function Yf(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;okt(u,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(u=>kt(u,c))||r.push(c))}return[n,s,r]}let Xf=()=>location.protocol+"//"+location.host;function Vo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Ur(l,"")}return Ur(n,e)+s+r}function Zf(e,t,n,s){let r=[],i=[],o=null;const l=({state:p})=>{const m=Vo(e,location),A=n.value,C=t.value;let D=0;if(p){if(n.value=m,t.value=p,o&&o===A){o=null;return}D=C?p.position-C.position:0}else s(m);r.forEach(P=>{P(n.value,A,{delta:D,type:Ps.pop,direction:D?D>0?ds.forward:ds.back:ds.unknown})})};function c(){o=n.value}function u(p){r.push(p);const m=()=>{const A=r.indexOf(p);A>-1&&r.splice(A,1)};return i.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(X({},p.state,{scroll:Yn()}),"")}}function h(){for(const p of i)p();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:c,listen:u,destroy:h}}function $r(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Yn():null}}function ea(e){const{history:t,location:n}=window,s={value:Vo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,f){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Xf()+e+c;try{t[f?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[f?"replace":"assign"](p)}}function o(c,u){i(c,X({},t.state,$r(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const f=X({},r.value,t.state,{forward:c,scroll:Yn()});i(f.current,f,!0),i(c,X({},$r(s.value,c,null),{position:f.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function Ha(e){e=Hf(e);const t=ea(e),n=Zf(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=X({location:"",base:e,go:s,createHref:jf.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Rt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ue=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(ue||{});const ta={type:Rt.Static,value:""},na=/[a-zA-Z0-9_]/;function sa(e){if(!e)return[[]];if(e==="/")return[[ta]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=ue.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,u="",f="";function h(){u&&(n===ue.Static?i.push({type:Rt.Static,value:u}):n===ue.Param||n===ue.ParamRegExp||n===ue.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Rt.Param,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;lt.length?t.length===1&&t[0]===Ee.Static+Ee.Segment?1:-1:0}function jo(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ca={strict:!1,end:!0,sensitive:!1};function fa(e,t,n){const s=oa(sa(e.path),n),r=X(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function aa(e,t){const n=[],s=new Map;t=jr(ca,t);function r(h){return s.get(h)}function i(h,p,m){const A=!m,C=Qr(h);C.aliasOf=m&&m.record;const D=jr(t,h),P=[C];if("alias"in h){const I=typeof h.alias=="string"?[h.alias]:h.alias;for(const k of I)P.push(Qr(X({},C,{components:m?m.record.components:C.components,path:k,aliasOf:m?m.record:C})))}let O,L;for(const I of P){const{path:k}=I;if(p&&k[0]!=="/"){const W=p.record.path,$=W[W.length-1]==="/"?"":"/";I.path=p.record.path+(k&&$+k)}if(O=fa(I,p,D),m?m.alias.push(O):(L=L||O,L!==O&&L.alias.push(O),A&&h.name&&!Yr(O)&&o(h.name)),Uo(O)&&c(O),C.children){const W=C.children;for(let $=0;${o(L)}:rn}function o(h){if(Bo(h)){const p=s.get(h);p&&(s.delete(h),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(h);p>-1&&(n.splice(p,1),h.record.name&&s.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function l(){return n}function c(h){const p=da(h,n);n.splice(p,0,h),h.record.name&&!Yr(h)&&s.set(h.record.name,h)}function u(h,p){let m,A={},C,D;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw Kt(ce.MATCHER_NOT_FOUND,{location:h});D=m.record.name,A=X(zr(p.params,m.keys.filter(L=>!L.optional).concat(m.parent?m.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),h.params&&zr(h.params,m.keys.map(L=>L.name))),C=m.stringify(A)}else if(h.path!=null)C=h.path,m=n.find(L=>L.re.test(C)),m&&(A=m.parse(C),D=m.record.name);else{if(m=p.name?s.get(p.name):n.find(L=>L.re.test(p.path)),!m)throw Kt(ce.MATCHER_NOT_FOUND,{location:h,currentLocation:p});D=m.record.name,A=X({},p.params,h.params),C=m.stringify(A)}const P=[];let O=m;for(;O;)P.unshift(O.record),O=O.parent;return{name:D,path:C,params:A,matched:P,meta:ha(P)}}e.forEach(h=>i(h));function f(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function zr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Qr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ua(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ua(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Yr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ha(e){return e.reduce((t,n)=>X(t,n.meta),{})}function da(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;jo(e,t[i])<0?s=i:n=i+1}const r=pa(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function pa(e){let t=e;for(;t=t.parent;)if(Uo(t)&&jo(e,t)===0)return t}function Uo({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xr(e){const t=Be(Xn),n=Be(er),s=Le(()=>{const c=wt(e.to);return t.resolve(c)}),r=Le(()=>{const{matched:c}=s.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const p=h.findIndex(kt.bind(null,f));if(p>-1)return p;const m=Zr(c[u-2]);return u>1&&Zr(f)===m&&h[h.length-1].path!==m?h.findIndex(kt.bind(null,c[u-2])):p}),i=Le(()=>r.value>-1&&va(n.params,s.value.params)),o=Le(()=>r.value>-1&&r.value===n.matched.length-1&&Fo(n.params,s.value.params));function l(c={}){if(ya(c)){const u=t[wt(e.replace)?"replace":"push"](wt(e.to)).catch(rn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Le(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function ga(e){return e.length===1?e[0]:e}const ma=qi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Xr,setup(e,{slots:t}){const n=kn(Xr(e)),{options:s}=Be(Xn),r=Le(()=>({[ei(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ei(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&ga(t.default(n));return e.custom?i:Xs("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),_a=ma;function ya(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function va(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!je(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function Zr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ei=(e,t,n)=>e??t??n,ba=qi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Be(Ns),r=Le(()=>e.route||s.value),i=Be(Wr,0),o=Le(()=>{let u=wt(i);const{matched:f}=r.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),l=Le(()=>r.value.matched[o.value]);En(Wr,Le(()=>o.value+1)),En(Qf,l),En(Ns,r);const c=Ti();return An(()=>[c.value,l.value,e.name],([u,f,h],[p,m,A])=>{f&&(f.instances[h]=u,m&&m!==f&&u&&u===p&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),u&&f&&(!m||!kt(f,m)||!p)&&(f.enterCallbacks[h]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,f=e.name,h=l.value,p=h&&h.components[f];if(!p)return ti(n.default,{Component:p,route:u});const m=h.props[f],A=m?m===!0?u.params:typeof m=="function"?m(u):m:null,D=Xs(p,X({},A,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return ti(n.default,{Component:D,route:u})||D}}});function ti(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ea=ba;function Va(e){const t=aa(e.routes,e),n=e.parseQuery||Jf,s=e.stringifyQuery||Kr,r=e.history,i=zt(),o=zt(),l=zt(),c=Cl(at);let u=at;Lt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=us.bind(null,v=>""+v),h=us.bind(null,If),p=us.bind(null,dn);function m(v,M){let T,B;return Bo(v)?(T=t.getRecordMatcher(v),B=M):B=v,t.addRoute(B,T)}function A(v){const M=t.getRecordMatcher(v);M&&t.removeRoute(M)}function C(){return t.getRoutes().map(v=>v.record)}function D(v){return!!t.getRecordMatcher(v)}function P(v,M){if(M=X({},M||c.value),typeof v=="string"){const g=hs(n,v,M.path),_=t.resolve({path:g.path},M),b=r.createHref(g.fullPath);return X(g,_,{params:p(_.params),hash:dn(g.hash),redirectedFrom:void 0,href:b})}let T;if(v.path!=null)T=X({},v,{path:hs(n,v.path,M.path).path});else{const g=X({},v.params);for(const _ in g)g[_]==null&&delete g[_];T=X({},v,{params:h(g)}),M.params=h(M.params)}const B=t.resolve(T,M),q=v.hash||"";B.params=f(p(B.params));const a=Df(s,X({},v,{hash:wf(q),path:B.path})),d=r.createHref(a);return X({fullPath:a,hash:q,query:s===Kr?zf(v.query):v.query||{}},B,{redirectedFrom:void 0,href:d})}function O(v){return typeof v=="string"?hs(n,v,c.value.path):X({},v)}function L(v,M){if(u!==v)return Kt(ce.NAVIGATION_CANCELLED,{from:M,to:v})}function I(v){return $(v)}function k(v){return I(X(O(v),{replace:!0}))}function W(v,M){const T=v.matched[v.matched.length-1];if(T&&T.redirect){const{redirect:B}=T;let q=typeof B=="function"?B(v,M):B;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=O(q):{path:q},q.params={}),X({query:v.query,hash:v.hash,params:q.path!=null?{}:v.params},q)}}function $(v,M){const T=u=P(v),B=c.value,q=v.state,a=v.force,d=v.replace===!0,g=W(T,B);if(g)return $(X(O(g),{state:typeof g=="object"?X({},q,g.state):q,force:a,replace:d}),M||T);const _=T;_.redirectedFrom=M;let b;return!a&&Lf(s,B,T)&&(b=Kt(ce.NAVIGATION_DUPLICATED,{to:_,from:B}),Ue(B,B,!0,!1)),(b?Promise.resolve(b):K(_,B)).catch(y=>Xe(y)?Xe(y,ce.NAVIGATION_GUARD_REDIRECT)?y:ct(y):Y(y,_,B)).then(y=>{if(y){if(Xe(y,ce.NAVIGATION_GUARD_REDIRECT))return $(X({replace:d},O(y.to),{state:typeof y.to=="object"?X({},q,y.to.state):q,force:a}),M||_)}else y=N(_,B,!0,d,q);return ee(_,B,y),y})}function le(v,M){const T=L(v,M);return T?Promise.reject(T):Promise.resolve()}function F(v){const M=Nt.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(v):v()}function K(v,M){let T;const[B,q,a]=Yf(v,M);T=ps(B.reverse(),"beforeRouteLeave",v,M);for(const g of B)g.leaveGuards.forEach(_=>{T.push(gt(_,v,M))});const d=le.bind(null,v,M);return T.push(d),Me(T).then(()=>{T=[];for(const g of i.list())T.push(gt(g,v,M));return T.push(d),Me(T)}).then(()=>{T=ps(q,"beforeRouteUpdate",v,M);for(const g of q)g.updateGuards.forEach(_=>{T.push(gt(_,v,M))});return T.push(d),Me(T)}).then(()=>{T=[];for(const g of a)if(g.beforeEnter)if(je(g.beforeEnter))for(const _ of g.beforeEnter)T.push(gt(_,v,M));else T.push(gt(g.beforeEnter,v,M));return T.push(d),Me(T)}).then(()=>(v.matched.forEach(g=>g.enterCallbacks={}),T=ps(a,"beforeRouteEnter",v,M,F),T.push(d),Me(T))).then(()=>{T=[];for(const g of o.list())T.push(gt(g,v,M));return T.push(d),Me(T)}).catch(g=>Xe(g,ce.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function ee(v,M,T){l.list().forEach(B=>F(()=>B(v,M,T)))}function N(v,M,T,B,q){const a=L(v,M);if(a)return a;const d=M===at,g=Lt?history.state:{};T&&(B||d?r.replace(v.fullPath,X({scroll:d&&g&&g.scroll},q)):r.push(v.fullPath,q)),c.value=v,Ue(v,M,T,d),ct()}let Q;function pe(){Q||(Q=r.listen((v,M,T)=>{if(!vt.listening)return;const B=P(v),q=W(B,vt.currentRoute.value);if(q){$(X(q,{replace:!0,force:!0}),B).catch(rn);return}u=B;const a=c.value;Lt&&kf(kr(a.fullPath,T.delta),Yn()),K(B,a).catch(d=>Xe(d,ce.NAVIGATION_ABORTED|ce.NAVIGATION_CANCELLED)?d:Xe(d,ce.NAVIGATION_GUARD_REDIRECT)?($(X(O(d.to),{force:!0}),B).then(g=>{Xe(g,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&!T.delta&&T.type===Ps.pop&&r.go(-1,!1)}).catch(rn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),Y(d,B,a))).then(d=>{d=d||N(B,a,!1),d&&(T.delta&&!Xe(d,ce.NAVIGATION_CANCELLED)?r.go(-T.delta,!1):T.type===Ps.pop&&Xe(d,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ee(B,a,d)}).catch(rn)}))}let Oe=zt(),ae=zt(),ne;function Y(v,M,T){ct(v);const B=ae.list();return B.length?B.forEach(q=>q(v,M,T)):console.error(v),Promise.reject(v)}function Qe(){return ne&&c.value!==at?Promise.resolve():new Promise((v,M)=>{Oe.add([v,M])})}function ct(v){return ne||(ne=!v,pe(),Oe.list().forEach(([M,T])=>v?T(v):M()),Oe.reset()),v}function Ue(v,M,T,B){const{scrollBehavior:q}=e;if(!Lt||!q)return Promise.resolve();const a=!T&&Kf(kr(v.fullPath,0))||(B||!T)&&history.state&&history.state.scroll||null;return Ni().then(()=>q(v,M,a)).then(d=>d&&Gf(d)).catch(d=>Y(d,v,M))}const Re=v=>r.go(v);let It;const Nt=new Set,vt={currentRoute:c,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:C,resolve:P,options:e,push:I,replace:k,go:Re,back:()=>Re(-1),forward:()=>Re(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:ae.add,isReady:Qe,install(v){v.component("RouterLink",_a),v.component("RouterView",Ea),v.config.globalProperties.$router=vt,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>wt(c)}),Lt&&!It&&c.value===at&&(It=!0,I(r.location).catch(B=>{}));const M={};for(const B in at)Object.defineProperty(M,B,{get:()=>c.value[B],enumerable:!0});v.provide(Xn,vt),v.provide(er,xi(M)),v.provide(Ns,c);const T=v.unmount;Nt.add(v),v.unmount=function(){Nt.delete(v),Nt.size<1&&(u=at,Q&&Q(),Q=null,c.value=at,It=!1,ne=!1),T()}}};function Me(v){return v.reduce((M,T)=>M.then(()=>F(T)),Promise.resolve())}return vt}function ja(){return Be(Xn)}function Ua(e){return Be(er)}export{el as $,La as A,yt as B,me as C,zn as D,Zi as E,Ce as F,$l as G,Yi as H,Fs as I,Tt as J,Al as K,Bs as L,Ba as M,wt as N,Kn as O,z as P,Aa as Q,Ta as R,Pa as S,xa as T,Ss as U,vo as V,Ua as W,Rs as X,Ll as Y,ja as Z,ye as _,ys as a,Ea as a0,Va as a1,Ha as a2,Fa as a3,Na as a4,Ia as a5,wa as a6,Xi as b,Le as c,Wl as d,kn as e,Gl as f,Ys as g,kl as h,Be as i,Tc as j,qi as k,Sa as l,Xs as m,Ni as n,Qi as o,En as p,Oa as q,Ti as r,wc as s,Ca as t,un as u,Da as v,An as w,Cl as x,Ra as y,Ma as z}; diff --git a/internal/server/app/dist/index.html b/internal/server/app/dist/index.html index ffd14f5..d2a3993 100644 --- a/internal/server/app/dist/index.html +++ b/internal/server/app/dist/index.html @@ -5,8 +5,9 @@ webui - - + + +
diff --git a/internal/server/db/interface.go b/internal/server/db/interface.go index 1073f98..1bab761 100644 --- a/internal/server/db/interface.go +++ b/internal/server/db/interface.go @@ -4,33 +4,50 @@ import "github.com/gotunnel/pkg/protocol" // Client 客户端数据 type Client struct { - ID string `json:"id"` - Rules []protocol.ProxyRule `json:"rules"` + ID string `json:"id"` + Nickname string `json:"nickname,omitempty"` + Rules []protocol.ProxyRule `json:"rules"` +} + +// PluginData 插件数据 +type PluginData struct { + Name string `json:"name"` + Version string `json:"version"` + Type string `json:"type"` + Source string `json:"source"` + Description string `json:"description"` + Author string `json:"author"` + Checksum string `json:"checksum"` + Size int64 `json:"size"` + Enabled bool `json:"enabled"` + WASMData []byte `json:"-"` } // ClientStore 客户端存储接口 type ClientStore interface { - // GetAllClients 获取所有客户端 GetAllClients() ([]Client, error) - - // GetClient 获取单个客户端 GetClient(id string) (*Client, error) - - // CreateClient 创建客户端 CreateClient(c *Client) error - - // UpdateClient 更新客户端 UpdateClient(c *Client) error - - // DeleteClient 删除客户端 DeleteClient(id string) error - - // ClientExists 检查客户端是否存在 ClientExists(id string) (bool, error) - - // GetClientRules 获取客户端规则 GetClientRules(id string) ([]protocol.ProxyRule, error) - - // Close 关闭连接 + Close() error +} + +// PluginStore 插件存储接口 +type PluginStore interface { + GetAllPlugins() ([]PluginData, error) + GetPlugin(name string) (*PluginData, error) + SavePlugin(p *PluginData) error + DeletePlugin(name string) error + SetPluginEnabled(name string, enabled bool) error + GetPluginWASM(name string) ([]byte, error) +} + +// Store 统一存储接口 +type Store interface { + ClientStore + PluginStore Close() error } diff --git a/internal/server/db/sqlite.go b/internal/server/db/sqlite.go index 77b7d08..fe0aa3f 100644 --- a/internal/server/db/sqlite.go +++ b/internal/server/db/sqlite.go @@ -34,11 +34,35 @@ func NewSQLiteStore(dbPath string) (*SQLiteStore, error) { // init 初始化数据库表 func (s *SQLiteStore) init() error { + // 创建客户端表 _, err := s.db.Exec(` CREATE TABLE IF NOT EXISTS clients ( id TEXT PRIMARY KEY, + nickname TEXT NOT NULL DEFAULT '', rules TEXT NOT NULL DEFAULT '[]' - ); + ) + `) + if err != nil { + return err + } + + // 迁移:添加 nickname 列 + s.db.Exec(`ALTER TABLE clients ADD COLUMN nickname TEXT NOT NULL DEFAULT ''`) + + // 创建插件表 + _, err = s.db.Exec(` + CREATE TABLE IF NOT EXISTS plugins ( + name TEXT PRIMARY KEY, + version TEXT NOT NULL, + type TEXT NOT NULL DEFAULT 'proxy', + source TEXT NOT NULL DEFAULT 'wasm', + description TEXT, + author TEXT, + checksum TEXT, + size INTEGER DEFAULT 0, + enabled INTEGER DEFAULT 1, + wasm_data BLOB + ) `) return err } @@ -53,7 +77,7 @@ func (s *SQLiteStore) GetAllClients() ([]Client, error) { s.mu.RLock() defer s.mu.RUnlock() - rows, err := s.db.Query(`SELECT id, rules FROM clients`) + rows, err := s.db.Query(`SELECT id, nickname, rules FROM clients`) if err != nil { return nil, err } @@ -63,7 +87,7 @@ func (s *SQLiteStore) GetAllClients() ([]Client, error) { for rows.Next() { var c Client var rulesJSON string - if err := rows.Scan(&c.ID, &rulesJSON); err != nil { + if err := rows.Scan(&c.ID, &c.Nickname, &rulesJSON); err != nil { return nil, err } if err := json.Unmarshal([]byte(rulesJSON), &c.Rules); err != nil { @@ -81,7 +105,7 @@ func (s *SQLiteStore) GetClient(id string) (*Client, error) { var c Client var rulesJSON string - err := s.db.QueryRow(`SELECT id, rules FROM clients WHERE id = ?`, id).Scan(&c.ID, &rulesJSON) + err := s.db.QueryRow(`SELECT id, nickname, rules FROM clients WHERE id = ?`, id).Scan(&c.ID, &c.Nickname, &rulesJSON) if err != nil { return nil, err } @@ -100,7 +124,7 @@ func (s *SQLiteStore) CreateClient(c *Client) error { if err != nil { return err } - _, err = s.db.Exec(`INSERT INTO clients (id, rules) VALUES (?, ?)`, c.ID, string(rulesJSON)) + _, err = s.db.Exec(`INSERT INTO clients (id, nickname, rules) VALUES (?, ?, ?)`, c.ID, c.Nickname, string(rulesJSON)) return err } @@ -113,7 +137,7 @@ func (s *SQLiteStore) UpdateClient(c *Client) error { if err != nil { return err } - _, err = s.db.Exec(`UPDATE clients SET rules = ? WHERE id = ?`, string(rulesJSON), c.ID) + _, err = s.db.Exec(`UPDATE clients SET nickname = ?, rules = ? WHERE id = ?`, c.Nickname, string(rulesJSON), c.ID) return err } @@ -144,3 +168,100 @@ func (s *SQLiteStore) GetClientRules(id string) ([]protocol.ProxyRule, error) { } return c.Rules, nil } + +// ========== 插件存储方法 ========== + +// GetAllPlugins 获取所有插件 +func (s *SQLiteStore) GetAllPlugins() ([]PluginData, error) { + s.mu.RLock() + defer s.mu.RUnlock() + + rows, err := s.db.Query(` + SELECT name, version, type, source, description, author, checksum, size, enabled + FROM plugins + `) + if err != nil { + return nil, err + } + defer rows.Close() + + var plugins []PluginData + for rows.Next() { + var p PluginData + var enabled int + err := rows.Scan(&p.Name, &p.Version, &p.Type, &p.Source, + &p.Description, &p.Author, &p.Checksum, &p.Size, &enabled) + if err != nil { + return nil, err + } + p.Enabled = enabled == 1 + plugins = append(plugins, p) + } + return plugins, nil +} + +// GetPlugin 获取单个插件 +func (s *SQLiteStore) GetPlugin(name string) (*PluginData, error) { + s.mu.RLock() + defer s.mu.RUnlock() + + var p PluginData + var enabled int + err := s.db.QueryRow(` + SELECT name, version, type, source, description, author, checksum, size, enabled + FROM plugins WHERE name = ? + `, name).Scan(&p.Name, &p.Version, &p.Type, &p.Source, + &p.Description, &p.Author, &p.Checksum, &p.Size, &enabled) + if err != nil { + return nil, err + } + p.Enabled = enabled == 1 + return &p, nil +} + +// SavePlugin 保存插件 +func (s *SQLiteStore) SavePlugin(p *PluginData) error { + s.mu.Lock() + defer s.mu.Unlock() + + enabled := 0 + if p.Enabled { + enabled = 1 + } + _, err := s.db.Exec(` + INSERT OR REPLACE INTO plugins + (name, version, type, source, description, author, checksum, size, enabled, wasm_data) + VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) + `, p.Name, p.Version, p.Type, p.Source, p.Description, p.Author, + p.Checksum, p.Size, enabled, p.WASMData) + return err +} + +// DeletePlugin 删除插件 +func (s *SQLiteStore) DeletePlugin(name string) error { + s.mu.Lock() + defer s.mu.Unlock() + _, err := s.db.Exec(`DELETE FROM plugins WHERE name = ?`, name) + return err +} + +// SetPluginEnabled 设置插件启用状态 +func (s *SQLiteStore) SetPluginEnabled(name string, enabled bool) error { + s.mu.Lock() + defer s.mu.Unlock() + val := 0 + if enabled { + val = 1 + } + _, err := s.db.Exec(`UPDATE plugins SET enabled = ? WHERE name = ?`, val, name) + return err +} + +// GetPluginWASM 获取插件 WASM 数据 +func (s *SQLiteStore) GetPluginWASM(name string) ([]byte, error) { + s.mu.RLock() + defer s.mu.RUnlock() + var data []byte + err := s.db.QueryRow(`SELECT wasm_data FROM plugins WHERE name = ?`, name).Scan(&data) + return data, err +} diff --git a/internal/server/plugin/manager.go b/internal/server/plugin/manager.go index 6bd2217..45be645 100644 --- a/internal/server/plugin/manager.go +++ b/internal/server/plugin/manager.go @@ -2,28 +2,26 @@ package plugin import ( "context" - "crypto/sha256" - "encoding/hex" "fmt" "log" "sync" + "github.com/gotunnel/internal/server/db" "github.com/gotunnel/pkg/plugin" "github.com/gotunnel/pkg/plugin/builtin" - "github.com/gotunnel/pkg/plugin/store" "github.com/gotunnel/pkg/plugin/wasm" ) // Manager 服务端 plugin 管理器 type Manager struct { registry *plugin.Registry - store store.PluginStore + store db.PluginStore runtime *wasm.Runtime mu sync.RWMutex } // NewManager 创建 plugin 管理器 -func NewManager(pluginStore store.PluginStore) (*Manager, error) { +func NewManager(pluginStore db.PluginStore) (*Manager, error) { ctx := context.Background() runtime, err := wasm.NewRuntime(ctx) @@ -51,12 +49,11 @@ func NewManager(pluginStore store.PluginStore) (*Manager, error) { // 注意: tcp, udp, http, https 是内置类型,直接在 tunnel 中处理 // 这里只注册需要通过 plugin 系统提供的协议 func (m *Manager) registerBuiltins() error { - // 注册 SOCKS5 plugin - if err := m.registry.RegisterBuiltin(builtin.NewSOCKS5Plugin()); err != nil { - return fmt.Errorf("register socks5: %w", err) + // 使用统一的插件注册入口 + if err := m.registry.RegisterAll(builtin.GetAll()); err != nil { + return err } - - log.Println("[Plugin] Builtin plugins registered: socks5") + log.Printf("[Plugin] Registered %d builtin plugins", len(builtin.GetAll())) return nil } @@ -71,15 +68,15 @@ func (m *Manager) LoadStoredPlugins(ctx context.Context) error { return err } - for _, meta := range plugins { - data, err := m.store.GetPluginData(meta.Name) + for _, p := range plugins { + data, err := m.store.GetPluginWASM(p.Name) if err != nil { - log.Printf("[Plugin] Failed to load %s: %v", meta.Name, err) + log.Printf("[Plugin] Failed to load %s: %v", p.Name, err) continue } - if err := m.loadWASMPlugin(ctx, meta.Name, data); err != nil { - log.Printf("[Plugin] Failed to init %s: %v", meta.Name, err) + if err := m.loadWASMPlugin(ctx, p.Name, data); err != nil { + log.Printf("[Plugin] Failed to init %s: %v", p.Name, err) } } @@ -97,28 +94,19 @@ func (m *Manager) loadWASMPlugin(ctx context.Context, name string, data []byte) } // InstallPlugin 安装新的 WASM plugin -func (m *Manager) InstallPlugin(ctx context.Context, meta plugin.PluginMetadata, wasmData []byte) error { +func (m *Manager) InstallPlugin(ctx context.Context, p *db.PluginData) error { m.mu.Lock() defer m.mu.Unlock() - // 验证 checksum - hash := sha256.Sum256(wasmData) - checksum := hex.EncodeToString(hash[:]) - if meta.Checksum != "" && meta.Checksum != checksum { - return fmt.Errorf("checksum mismatch") - } - meta.Checksum = checksum - meta.Size = int64(len(wasmData)) - // 存储到数据库 if m.store != nil { - if err := m.store.SavePlugin(meta, wasmData); err != nil { + if err := m.store.SavePlugin(p); err != nil { return err } } // 加载到运行时 - return m.loadWASMPlugin(ctx, meta.Name, wasmData) + return m.loadWASMPlugin(ctx, p.Name, p.WASMData) } // GetHandler 返回指定代理类型的 handler diff --git a/internal/server/router/api.go b/internal/server/router/api.go index 24d9639..6f2b2ec 100644 --- a/internal/server/router/api.go +++ b/internal/server/router/api.go @@ -21,6 +21,7 @@ func validateClientID(id string) bool { // ClientStatus 客户端状态 type ClientStatus struct { ID string `json:"id"` + Nickname string `json:"nickname,omitempty"` Online bool `json:"online"` LastPing string `json:"last_ping,omitempty"` RuleCount int `json:"rule_count"` @@ -36,6 +37,23 @@ type ServerInterface interface { ReloadConfig() error GetBindAddr() string GetBindPort() int + // 客户端控制 + PushConfigToClient(clientID string) error + DisconnectClient(clientID string) error + GetPluginList() []PluginInfo + EnablePlugin(name string) error + DisablePlugin(name string) error + InstallPluginsToClient(clientID string, plugins []string) error +} + +// PluginInfo 插件信息 +type PluginInfo struct { + Name string `json:"name"` + Version string `json:"version"` + Type string `json:"type"` + Description string `json:"description"` + Source string `json:"source"` + Enabled bool `json:"enabled"` } // AppInterface 应用接口 @@ -68,6 +86,8 @@ func RegisterRoutes(r *Router, app AppInterface) { api.HandleFunc("/client/", h.handleClient) api.HandleFunc("/config", h.handleConfig) api.HandleFunc("/config/reload", h.handleReload) + api.HandleFunc("/plugins", h.handlePlugins) + api.HandleFunc("/plugin/", h.handlePlugin) } func (h *APIHandler) handleStatus(rw http.ResponseWriter, r *http.Request) { @@ -108,7 +128,7 @@ func (h *APIHandler) getClients(rw http.ResponseWriter) { statusMap := h.server.GetAllClientStatus() var result []ClientStatus for _, c := range clients { - cs := ClientStatus{ID: c.ID, RuleCount: len(c.Rules)} + cs := ClientStatus{ID: c.ID, Nickname: c.Nickname, RuleCount: len(c.Rules)} if s, ok := statusMap[c.ID]; ok { cs.Online = s.Online cs.LastPing = s.LastPing @@ -156,6 +176,32 @@ func (h *APIHandler) handleClient(rw http.ResponseWriter, r *http.Request) { http.Error(rw, "client id required", http.StatusBadRequest) return } + + // 处理子路径操作 + if idx := len(clientID) - 1; idx > 0 { + if clientID[idx] == '/' { + clientID = clientID[:idx] + } + } + + // 检查是否是特殊操作 + parts := splitPath(clientID) + if len(parts) == 2 { + clientID = parts[0] + action := parts[1] + switch action { + case "push": + h.pushConfigToClient(rw, r, clientID) + return + case "disconnect": + h.disconnectClient(rw, r, clientID) + return + case "install-plugins": + h.installPluginsToClient(rw, r, clientID) + return + } + } + switch r.Method { case http.MethodGet: h.getClient(rw, clientID) @@ -168,6 +214,16 @@ func (h *APIHandler) handleClient(rw http.ResponseWriter, r *http.Request) { } } +// splitPath 分割路径 +func splitPath(path string) []string { + for i, c := range path { + if c == '/' { + return []string{path[:i], path[i+1:]} + } + } + return []string{path} +} + func (h *APIHandler) getClient(rw http.ResponseWriter, clientID string) { client, err := h.clientStore.GetClient(clientID) if err != nil { @@ -176,27 +232,29 @@ func (h *APIHandler) getClient(rw http.ResponseWriter, clientID string) { } online, lastPing := h.server.GetClientStatus(clientID) h.jsonResponse(rw, map[string]interface{}{ - "id": client.ID, "rules": client.Rules, + "id": client.ID, "nickname": client.Nickname, "rules": client.Rules, "online": online, "last_ping": lastPing, }) } func (h *APIHandler) updateClient(rw http.ResponseWriter, r *http.Request, clientID string) { var req struct { - Rules []protocol.ProxyRule `json:"rules"` + Nickname string `json:"nickname"` + Rules []protocol.ProxyRule `json:"rules"` } if err := json.NewDecoder(r.Body).Decode(&req); err != nil { http.Error(rw, err.Error(), http.StatusBadRequest) return } - exists, _ := h.clientStore.ClientExists(clientID) - if !exists { + client, err := h.clientStore.GetClient(clientID) + if err != nil { http.Error(rw, "client not found", http.StatusNotFound) return } - client := &db.Client{ID: clientID, Rules: req.Rules} + client.Nickname = req.Nickname + client.Rules = req.Rules if err := h.clientStore.UpdateClient(client); err != nil { http.Error(rw, err.Error(), http.StatusInternalServerError) return @@ -333,3 +391,130 @@ func (h *APIHandler) jsonResponse(rw http.ResponseWriter, data interface{}) { rw.Header().Set("Content-Type", "application/json") json.NewEncoder(rw).Encode(data) } + +// pushConfigToClient 推送配置到客户端 +func (h *APIHandler) pushConfigToClient(rw http.ResponseWriter, r *http.Request, clientID string) { + if r.Method != http.MethodPost { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + + online, _ := h.server.GetClientStatus(clientID) + if !online { + http.Error(rw, "client not online", http.StatusBadRequest) + return + } + + if err := h.server.PushConfigToClient(clientID); err != nil { + http.Error(rw, err.Error(), http.StatusInternalServerError) + return + } + h.jsonResponse(rw, map[string]string{"status": "ok"}) +} + +// disconnectClient 断开客户端连接 +func (h *APIHandler) disconnectClient(rw http.ResponseWriter, r *http.Request, clientID string) { + if r.Method != http.MethodPost { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + + if err := h.server.DisconnectClient(clientID); err != nil { + http.Error(rw, err.Error(), http.StatusInternalServerError) + return + } + h.jsonResponse(rw, map[string]string{"status": "ok"}) +} + +// handlePlugins 处理插件列表 +func (h *APIHandler) handlePlugins(rw http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodGet { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + plugins := h.server.GetPluginList() + h.jsonResponse(rw, plugins) +} + +// handlePlugin 处理单个插件操作 +func (h *APIHandler) handlePlugin(rw http.ResponseWriter, r *http.Request) { + path := r.URL.Path[len("/api/plugin/"):] + if path == "" { + http.Error(rw, "plugin name required", http.StatusBadRequest) + return + } + + parts := splitPath(path) + pluginName := parts[0] + + if len(parts) == 2 { + action := parts[1] + switch action { + case "enable": + h.enablePlugin(rw, r, pluginName) + return + case "disable": + h.disablePlugin(rw, r, pluginName) + return + } + } + + http.Error(rw, "invalid action", http.StatusBadRequest) +} + +func (h *APIHandler) enablePlugin(rw http.ResponseWriter, r *http.Request, name string) { + if r.Method != http.MethodPost { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + if err := h.server.EnablePlugin(name); err != nil { + http.Error(rw, err.Error(), http.StatusBadRequest) + return + } + h.jsonResponse(rw, map[string]string{"status": "ok"}) +} + +func (h *APIHandler) disablePlugin(rw http.ResponseWriter, r *http.Request, name string) { + if r.Method != http.MethodPost { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + if err := h.server.DisablePlugin(name); err != nil { + http.Error(rw, err.Error(), http.StatusBadRequest) + return + } + h.jsonResponse(rw, map[string]string{"status": "ok"}) +} + +// installPluginsToClient 安装插件到客户端 +func (h *APIHandler) installPluginsToClient(rw http.ResponseWriter, r *http.Request, clientID string) { + if r.Method != http.MethodPost { + http.Error(rw, "Method not allowed", http.StatusMethodNotAllowed) + return + } + + online, _ := h.server.GetClientStatus(clientID) + if !online { + http.Error(rw, "client not online", http.StatusBadRequest) + return + } + + var req struct { + Plugins []string `json:"plugins"` + } + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(rw, err.Error(), http.StatusBadRequest) + return + } + + if len(req.Plugins) == 0 { + http.Error(rw, "no plugins specified", http.StatusBadRequest) + return + } + + if err := h.server.InstallPluginsToClient(clientID, req.Plugins); err != nil { + http.Error(rw, err.Error(), http.StatusInternalServerError) + return + } + h.jsonResponse(rw, map[string]string{"status": "ok"}) +} diff --git a/internal/server/router/auth.go b/internal/server/router/auth.go new file mode 100644 index 0000000..20b5135 --- /dev/null +++ b/internal/server/router/auth.go @@ -0,0 +1,80 @@ +package router + +import ( + "crypto/subtle" + "encoding/json" + "net/http" + + "github.com/gotunnel/pkg/auth" +) + +// AuthHandler 认证处理器 +type AuthHandler struct { + username string + password string + jwtAuth *auth.JWTAuth +} + +// NewAuthHandler 创建认证处理器 +func NewAuthHandler(username, password string, jwtAuth *auth.JWTAuth) *AuthHandler { + return &AuthHandler{ + username: username, + password: password, + jwtAuth: jwtAuth, + } +} + +// RegisterAuthRoutes 注册认证路由 +func RegisterAuthRoutes(r *Router, h *AuthHandler) { + r.HandleFunc("/api/auth/login", h.handleLogin) + r.HandleFunc("/api/auth/check", h.handleCheck) +} + +// handleLogin 处理登录请求 +func (h *AuthHandler) handleLogin(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodPost { + http.Error(w, `{"error":"method not allowed"}`, http.StatusMethodNotAllowed) + return + } + + var req struct { + Username string `json:"username"` + Password string `json:"password"` + } + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + http.Error(w, `{"error":"invalid request"}`, http.StatusBadRequest) + return + } + + // 验证用户名密码 + userMatch := subtle.ConstantTimeCompare([]byte(req.Username), []byte(h.username)) == 1 + passMatch := subtle.ConstantTimeCompare([]byte(req.Password), []byte(h.password)) == 1 + + if !userMatch || !passMatch { + http.Error(w, `{"error":"invalid credentials"}`, http.StatusUnauthorized) + return + } + + // 生成 token + token, err := h.jwtAuth.GenerateToken(req.Username) + if err != nil { + http.Error(w, `{"error":"failed to generate token"}`, http.StatusInternalServerError) + return + } + + w.Header().Set("Content-Type", "application/json") + json.NewEncoder(w).Encode(map[string]string{ + "token": token, + }) +} + +// handleCheck 检查 token 是否有效 +func (h *AuthHandler) handleCheck(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodGet { + http.Error(w, `{"error":"method not allowed"}`, http.StatusMethodNotAllowed) + return + } + + w.Header().Set("Content-Type", "application/json") + json.NewEncoder(w).Encode(map[string]bool{"valid": true}) +} diff --git a/internal/server/router/router.go b/internal/server/router/router.go index c70cdaf..0a09da3 100644 --- a/internal/server/router/router.go +++ b/internal/server/router/router.go @@ -3,6 +3,9 @@ package router import ( "crypto/subtle" "net/http" + "strings" + + "github.com/gotunnel/pkg/auth" ) // Router 路由管理器 @@ -84,3 +87,37 @@ func BasicAuthMiddleware(auth *AuthConfig, next http.Handler) http.Handler { next.ServeHTTP(w, r) }) } + +// JWTMiddleware JWT 认证中间件 +func JWTMiddleware(jwtAuth *auth.JWTAuth, skipPaths []string, next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + // 只对 /api/ 路径进行认证 + if !strings.HasPrefix(r.URL.Path, "/api/") { + next.ServeHTTP(w, r) + return + } + + // 检查是否跳过认证 + for _, path := range skipPaths { + if strings.HasPrefix(r.URL.Path, path) { + next.ServeHTTP(w, r) + return + } + } + + // 从 Header 获取 token + authHeader := r.Header.Get("Authorization") + if authHeader == "" || !strings.HasPrefix(authHeader, "Bearer ") { + http.Error(w, `{"error":"unauthorized"}`, http.StatusUnauthorized) + return + } + + token := strings.TrimPrefix(authHeader, "Bearer ") + if _, err := jwtAuth.ValidateToken(token); err != nil { + http.Error(w, `{"error":"invalid token"}`, http.StatusUnauthorized) + return + } + + next.ServeHTTP(w, r) + }) +} diff --git a/internal/server/tunnel/server.go b/internal/server/tunnel/server.go index 3b39a29..976e070 100644 --- a/internal/server/tunnel/server.go +++ b/internal/server/tunnel/server.go @@ -1,7 +1,9 @@ package tunnel import ( + "crypto/rand" "crypto/tls" + "encoding/hex" "fmt" "log" "net" @@ -9,6 +11,7 @@ import ( "time" "github.com/gotunnel/internal/server/db" + "github.com/gotunnel/internal/server/router" "github.com/gotunnel/pkg/plugin" "github.com/gotunnel/pkg/protocol" "github.com/gotunnel/pkg/proxy" @@ -19,11 +22,18 @@ import ( // 服务端常量 const ( - authTimeout = 10 * time.Second - heartbeatTimeout = 10 * time.Second - udpBufferSize = 65535 + authTimeout = 10 * time.Second + heartbeatTimeout = 10 * time.Second + udpBufferSize = 65535 ) +// generateClientID 生成随机客户端 ID +func generateClientID() string { + bytes := make([]byte, 8) + rand.Read(bytes) + return hex.EncodeToString(bytes) +} + // Server 隧道服务端 type Server struct { clientStore db.ClientStore @@ -130,24 +140,44 @@ func (s *Server) handleConnection(conn net.Conn) { } if authReq.Token != s.token { - s.sendAuthResponse(conn, false, "invalid token") + s.sendAuthResponse(conn, false, "invalid token", "") return } - rules, err := s.clientStore.GetClientRules(authReq.ClientID) - if err != nil || rules == nil { - s.sendAuthResponse(conn, false, "client not configured") + // 如果客户端没有提供 ID,则生成一个新的 + clientID := authReq.ClientID + if clientID == "" { + clientID = generateClientID() + // 创建新客户端记录 + newClient := &db.Client{ID: clientID, Rules: []protocol.ProxyRule{}} + if err := s.clientStore.CreateClient(newClient); err != nil { + log.Printf("[Server] Create client error: %v", err) + s.sendAuthResponse(conn, false, "failed to create client", "") + return + } + log.Printf("[Server] New client registered: %s", clientID) + } + + // 检查客户端是否存在 + exists, err := s.clientStore.ClientExists(clientID) + if err != nil || !exists { + s.sendAuthResponse(conn, false, "client not found", "") return } + rules, _ := s.clientStore.GetClientRules(clientID) + if rules == nil { + rules = []protocol.ProxyRule{} + } + conn.SetReadDeadline(time.Time{}) - if err := s.sendAuthResponse(conn, true, "ok"); err != nil { + if err := s.sendAuthResponse(conn, true, "ok", clientID); err != nil { return } - log.Printf("[Server] Client %s authenticated", authReq.ClientID) - s.setupClientSession(conn, authReq.ClientID, rules) + log.Printf("[Server] Client %s authenticated", clientID) + s.setupClientSession(conn, clientID, rules) } // setupClientSession 建立客户端会话 @@ -183,8 +213,8 @@ func (s *Server) setupClientSession(conn net.Conn, clientID string, rules []prot } // sendAuthResponse 发送认证响应 -func (s *Server) sendAuthResponse(conn net.Conn, success bool, message string) error { - resp := protocol.AuthResponse{Success: success, Message: message} +func (s *Server) sendAuthResponse(conn net.Conn, success bool, message, clientID string) error { + resp := protocol.AuthResponse{Success: success, Message: message, ClientID: clientID} msg, err := protocol.NewMessage(protocol.MsgTypeAuthResp, resp) if err != nil { return err @@ -458,6 +488,103 @@ func (s *Server) GetBindPort() int { return s.bindPort } +// PushConfigToClient 推送配置到客户端 +func (s *Server) PushConfigToClient(clientID string) error { + s.mu.RLock() + cs, ok := s.clients[clientID] + s.mu.RUnlock() + + if !ok { + return fmt.Errorf("client %s not found", clientID) + } + + rules, err := s.clientStore.GetClientRules(clientID) + if err != nil { + return err + } + + return s.sendProxyConfig(cs.Session, rules) +} + +// DisconnectClient 断开客户端连接 +func (s *Server) DisconnectClient(clientID string) error { + s.mu.RLock() + cs, ok := s.clients[clientID] + s.mu.RUnlock() + + if !ok { + return fmt.Errorf("client %s not found", clientID) + } + + return cs.Session.Close() +} + +// GetPluginList 获取插件列表 +func (s *Server) GetPluginList() []router.PluginInfo { + var result []router.PluginInfo + + if s.pluginRegistry == nil { + return result + } + + for _, info := range s.pluginRegistry.List() { + result = append(result, router.PluginInfo{ + Name: info.Metadata.Name, + Version: info.Metadata.Version, + Type: string(info.Metadata.Type), + Description: info.Metadata.Description, + Source: string(info.Metadata.Source), + Enabled: info.Enabled, + }) + } + return result +} + +// EnablePlugin 启用插件 +func (s *Server) EnablePlugin(name string) error { + if s.pluginRegistry == nil { + return fmt.Errorf("plugin registry not initialized") + } + return s.pluginRegistry.Enable(name) +} + +// DisablePlugin 禁用插件 +func (s *Server) DisablePlugin(name string) error { + if s.pluginRegistry == nil { + return fmt.Errorf("plugin registry not initialized") + } + return s.pluginRegistry.Disable(name) +} + +// InstallPluginsToClient 安装插件到客户端 +func (s *Server) InstallPluginsToClient(clientID string, plugins []string) error { + s.mu.RLock() + cs, ok := s.clients[clientID] + s.mu.RUnlock() + + if !ok { + return fmt.Errorf("client %s not found", clientID) + } + + return s.sendInstallPlugins(cs.Session, plugins) +} + +// sendInstallPlugins 发送安装插件请求 +func (s *Server) sendInstallPlugins(session *yamux.Session, plugins []string) error { + stream, err := session.Open() + if err != nil { + return err + } + defer stream.Close() + + req := protocol.InstallPluginsRequest{Plugins: plugins} + msg, err := protocol.NewMessage(protocol.MsgTypeInstallPlugins, req) + if err != nil { + return err + } + return protocol.WriteMessage(stream, msg) +} + // startUDPListener 启动 UDP 监听 func (s *Server) startUDPListener(cs *ClientSession, rule protocol.ProxyRule) { if err := s.portManager.Reserve(rule.RemotePort, cs.ID); err != nil { diff --git a/pkg/auth/jwt.go b/pkg/auth/jwt.go new file mode 100644 index 0000000..beb414a --- /dev/null +++ b/pkg/auth/jwt.go @@ -0,0 +1,68 @@ +package auth + +import ( + "crypto/rand" + "encoding/hex" + "time" + + "github.com/golang-jwt/jwt/v5" +) + +// Claims JWT claims +type Claims struct { + Username string `json:"username"` + jwt.RegisteredClaims +} + +// JWTAuth JWT 认证管理器 +type JWTAuth struct { + secret []byte + expiration time.Duration +} + +// NewJWTAuth 创建 JWT 认证管理器 +func NewJWTAuth(secret string, expHours int) *JWTAuth { + if secret == "" { + secret = generateSecret() + } + return &JWTAuth{ + secret: []byte(secret), + expiration: time.Duration(expHours) * time.Hour, + } +} + +// GenerateToken 生成 JWT token +func (j *JWTAuth) GenerateToken(username string) (string, error) { + claims := &Claims{ + Username: username, + RegisteredClaims: jwt.RegisteredClaims{ + ExpiresAt: jwt.NewNumericDate(time.Now().Add(j.expiration)), + IssuedAt: jwt.NewNumericDate(time.Now()), + Issuer: "gotunnel", + }, + } + + token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) + return token.SignedString(j.secret) +} + +// ValidateToken 验证 JWT token +func (j *JWTAuth) ValidateToken(tokenString string) (*Claims, error) { + token, err := jwt.ParseWithClaims(tokenString, &Claims{}, func(token *jwt.Token) (interface{}, error) { + return j.secret, nil + }) + if err != nil { + return nil, err + } + + if claims, ok := token.Claims.(*Claims); ok && token.Valid { + return claims, nil + } + return nil, jwt.ErrSignatureInvalid +} + +func generateSecret() string { + b := make([]byte, 32) + rand.Read(b) + return hex.EncodeToString(b) +} diff --git a/pkg/plugin/builtin.go b/pkg/plugin/builtin.go index eb45d1a..4420b28 100644 --- a/pkg/plugin/builtin.go +++ b/pkg/plugin/builtin.go @@ -1,11 +1,6 @@ package plugin // RegisterBuiltins 注册所有内置 plugins -// 注意:此函数需要在调用方导入 builtin 包并手动注册 -// 示例: -// registry := plugin.NewRegistry() -// registry.RegisterBuiltin(builtin.NewSOCKS5Plugin()) -// registry.RegisterBuiltin(builtin.NewHTTPPlugin()) func RegisterBuiltins(registry *Registry, handlers ...ProxyHandler) error { for _, handler := range handlers { if err := registry.RegisterBuiltin(handler); err != nil { diff --git a/pkg/plugin/builtin/register.go b/pkg/plugin/builtin/register.go new file mode 100644 index 0000000..b1f8af6 --- /dev/null +++ b/pkg/plugin/builtin/register.go @@ -0,0 +1,16 @@ +package builtin + +import "github.com/gotunnel/pkg/plugin" + +// 全局插件注册表 +var registry []plugin.ProxyHandler + +// Register 插件自注册函数,由各插件的 init() 调用 +func Register(handler plugin.ProxyHandler) { + registry = append(registry, handler) +} + +// GetAll 返回所有已注册的内置插件 +func GetAll() []plugin.ProxyHandler { + return registry +} diff --git a/pkg/plugin/builtin/socks5.go b/pkg/plugin/builtin/socks5.go index 1109304..5285597 100644 --- a/pkg/plugin/builtin/socks5.go +++ b/pkg/plugin/builtin/socks5.go @@ -10,6 +10,10 @@ import ( "github.com/gotunnel/pkg/plugin" ) +func init() { + Register(NewSOCKS5Plugin()) +} + const ( socks5Version = 0x05 noAuth = 0x00 diff --git a/pkg/plugin/builtin/vnc.go b/pkg/plugin/builtin/vnc.go new file mode 100644 index 0000000..52a3d30 --- /dev/null +++ b/pkg/plugin/builtin/vnc.go @@ -0,0 +1,86 @@ +package builtin + +import ( + "io" + "log" + "net" + + "github.com/gotunnel/pkg/plugin" +) + +func init() { + Register(NewVNCPlugin()) +} + +// VNCPlugin VNC 远程桌面插件 +type VNCPlugin struct { + config map[string]string +} + +// NewVNCPlugin 创建 VNC plugin +func NewVNCPlugin() *VNCPlugin { + return &VNCPlugin{} +} + +// Metadata 返回 plugin 信息 +func (p *VNCPlugin) Metadata() plugin.PluginMetadata { + return plugin.PluginMetadata{ + Name: "vnc", + Version: "1.0.0", + Type: plugin.PluginTypeApp, + Source: plugin.PluginSourceBuiltin, + Description: "VNC remote desktop relay (connects to client's local VNC server)", + Author: "GoTunnel", + Capabilities: []string{ + "dial", "read", "write", "close", + }, + } +} + +// Init 初始化 plugin +func (p *VNCPlugin) Init(config map[string]string) error { + p.config = config + return nil +} + +// HandleConn 处理 VNC 连接 +// 将外部 VNC 客户端连接转发到客户端本地的 VNC 服务 +func (p *VNCPlugin) HandleConn(conn net.Conn, dialer plugin.Dialer) error { + defer conn.Close() + + // 默认连接客户端本地的 VNC 服务 (5900) + vncAddr := "127.0.0.1:5900" + if addr, ok := p.config["vnc_addr"]; ok && addr != "" { + vncAddr = addr + } + + log.Printf("[VNC] New connection from %s, forwarding to %s", conn.RemoteAddr(), vncAddr) + + // 通过隧道连接到客户端本地的 VNC 服务 + remote, err := dialer.Dial("tcp", vncAddr) + if err != nil { + log.Printf("[VNC] Failed to connect to %s: %v", vncAddr, err) + return err + } + defer remote.Close() + + // 双向转发 VNC 流量 + errCh := make(chan error, 2) + go func() { + _, err := io.Copy(remote, conn) + errCh <- err + }() + go func() { + _, err := io.Copy(conn, remote) + errCh <- err + }() + + // 等待任一方向完成 + <-errCh + return nil +} + +// Close 释放资源 +func (p *VNCPlugin) Close() error { + return nil +} diff --git a/pkg/plugin/registry.go b/pkg/plugin/registry.go index c592d1c..d7a8002 100644 --- a/pkg/plugin/registry.go +++ b/pkg/plugin/registry.go @@ -8,14 +8,16 @@ import ( // Registry 管理可用的 plugins type Registry struct { - builtin map[string]ProxyHandler // 内置 Go 实现 - mu sync.RWMutex + builtin map[string]ProxyHandler // 内置 Go 实现 + enabled map[string]bool // 启用状态 + mu sync.RWMutex } // NewRegistry 创建 plugin 注册表 func NewRegistry() *Registry { return &Registry{ builtin: make(map[string]ProxyHandler), + enabled: make(map[string]bool), } } @@ -34,6 +36,7 @@ func (r *Registry) RegisterBuiltin(handler ProxyHandler) error { } r.builtin[meta.Name] = handler + r.enabled[meta.Name] = true // 默认启用 return nil } @@ -44,6 +47,9 @@ func (r *Registry) Get(proxyType string) (ProxyHandler, error) { // 先查找内置 plugin if handler, ok := r.builtin[proxyType]; ok { + if !r.enabled[proxyType] { + return nil, fmt.Errorf("plugin %s is disabled", proxyType) + } return handler, nil } @@ -58,10 +64,11 @@ func (r *Registry) List() []PluginInfo { var plugins []PluginInfo // 内置 plugins - for _, handler := range r.builtin { + for name, handler := range r.builtin { plugins = append(plugins, PluginInfo{ Metadata: handler.Metadata(), Loaded: true, + Enabled: r.enabled[name], }) } @@ -91,3 +98,44 @@ func (r *Registry) Close(ctx context.Context) error { return lastErr } + +// Enable 启用插件 +func (r *Registry) Enable(name string) error { + r.mu.Lock() + defer r.mu.Unlock() + + if _, ok := r.builtin[name]; !ok { + return fmt.Errorf("plugin %s not found", name) + } + r.enabled[name] = true + return nil +} + +// Disable 禁用插件 +func (r *Registry) Disable(name string) error { + r.mu.Lock() + defer r.mu.Unlock() + + if _, ok := r.builtin[name]; !ok { + return fmt.Errorf("plugin %s not found", name) + } + r.enabled[name] = false + return nil +} + +// IsEnabled 检查插件是否启用 +func (r *Registry) IsEnabled(name string) bool { + r.mu.RLock() + defer r.mu.RUnlock() + return r.enabled[name] +} + +// RegisterAll 批量注册插件 +func (r *Registry) RegisterAll(handlers []ProxyHandler) error { + for _, handler := range handlers { + if err := r.RegisterBuiltin(handler); err != nil { + return err + } + } + return nil +} diff --git a/pkg/plugin/store/interface.go b/pkg/plugin/store/interface.go deleted file mode 100644 index c3d9578..0000000 --- a/pkg/plugin/store/interface.go +++ /dev/null @@ -1,29 +0,0 @@ -package store - -import ( - "github.com/gotunnel/pkg/plugin" -) - -// PluginStore 管理 plugin 持久化 -type PluginStore interface { - // GetAllPlugins 返回所有存储的 plugins - GetAllPlugins() ([]plugin.PluginMetadata, error) - - // GetPlugin 返回指定 plugin 的元数据 - GetPlugin(name string) (*plugin.PluginMetadata, error) - - // GetPluginData 返回 WASM 二进制 - GetPluginData(name string) ([]byte, error) - - // SavePlugin 存储 plugin - SavePlugin(metadata plugin.PluginMetadata, wasmData []byte) error - - // DeletePlugin 删除 plugin - DeletePlugin(name string) error - - // PluginExists 检查 plugin 是否存在 - PluginExists(name string) (bool, error) - - // Close 关闭存储 - Close() error -} diff --git a/pkg/plugin/store/sqlite.go b/pkg/plugin/store/sqlite.go deleted file mode 100644 index 137f938..0000000 --- a/pkg/plugin/store/sqlite.go +++ /dev/null @@ -1,168 +0,0 @@ -package store - -import ( - "database/sql" - "encoding/json" - "fmt" - "sync" - "time" - - "github.com/gotunnel/pkg/plugin" - _ "modernc.org/sqlite" -) - -// SQLiteStore SQLite 实现的 PluginStore -type SQLiteStore struct { - db *sql.DB - mu sync.RWMutex -} - -// NewSQLiteStore 创建 SQLite plugin 存储 -func NewSQLiteStore(dbPath string) (*SQLiteStore, error) { - db, err := sql.Open("sqlite", dbPath) - if err != nil { - return nil, err - } - - store := &SQLiteStore{db: db} - if err := store.init(); err != nil { - db.Close() - return nil, err - } - - return store, nil -} - -// init 初始化数据库表 -func (s *SQLiteStore) init() error { - query := ` - CREATE TABLE IF NOT EXISTS plugins ( - name TEXT PRIMARY KEY, - version TEXT NOT NULL, - type TEXT NOT NULL DEFAULT 'proxy', - source TEXT NOT NULL DEFAULT 'wasm', - description TEXT, - author TEXT, - checksum TEXT NOT NULL, - size INTEGER NOT NULL, - capabilities TEXT NOT NULL DEFAULT '[]', - config_schema TEXT NOT NULL DEFAULT '{}', - wasm_data BLOB NOT NULL, - created_at DATETIME DEFAULT CURRENT_TIMESTAMP, - updated_at DATETIME DEFAULT CURRENT_TIMESTAMP - )` - _, err := s.db.Exec(query) - return err -} - -// GetAllPlugins 返回所有存储的 plugins -func (s *SQLiteStore) GetAllPlugins() ([]plugin.PluginMetadata, error) { - s.mu.RLock() - defer s.mu.RUnlock() - - rows, err := s.db.Query(` - SELECT name, version, type, source, description, author, - checksum, size, capabilities, config_schema - FROM plugins`) - if err != nil { - return nil, err - } - defer rows.Close() - - var plugins []plugin.PluginMetadata - for rows.Next() { - var m plugin.PluginMetadata - var capJSON, configJSON string - err := rows.Scan(&m.Name, &m.Version, &m.Type, &m.Source, - &m.Description, &m.Author, &m.Checksum, &m.Size, - &capJSON, &configJSON) - if err != nil { - return nil, err - } - json.Unmarshal([]byte(capJSON), &m.Capabilities) - json.Unmarshal([]byte(configJSON), &m.ConfigSchema) - plugins = append(plugins, m) - } - return plugins, rows.Err() -} - -// GetPlugin 返回指定 plugin 的元数据 -func (s *SQLiteStore) GetPlugin(name string) (*plugin.PluginMetadata, error) { - s.mu.RLock() - defer s.mu.RUnlock() - - var m plugin.PluginMetadata - var capJSON, configJSON string - err := s.db.QueryRow(` - SELECT name, version, type, source, description, author, - checksum, size, capabilities, config_schema - FROM plugins WHERE name = ?`, name).Scan( - &m.Name, &m.Version, &m.Type, &m.Source, - &m.Description, &m.Author, &m.Checksum, &m.Size, - &capJSON, &configJSON) - if err == sql.ErrNoRows { - return nil, nil - } - if err != nil { - return nil, err - } - json.Unmarshal([]byte(capJSON), &m.Capabilities) - json.Unmarshal([]byte(configJSON), &m.ConfigSchema) - return &m, nil -} - -// GetPluginData 返回 WASM 二进制 -func (s *SQLiteStore) GetPluginData(name string) ([]byte, error) { - s.mu.RLock() - defer s.mu.RUnlock() - - var data []byte - err := s.db.QueryRow(`SELECT wasm_data FROM plugins WHERE name = ?`, name).Scan(&data) - if err == sql.ErrNoRows { - return nil, fmt.Errorf("plugin %s not found", name) - } - return data, err -} - -// SavePlugin 存储 plugin -func (s *SQLiteStore) SavePlugin(metadata plugin.PluginMetadata, wasmData []byte) error { - s.mu.Lock() - defer s.mu.Unlock() - - capJSON, _ := json.Marshal(metadata.Capabilities) - configJSON, _ := json.Marshal(metadata.ConfigSchema) - - _, err := s.db.Exec(` - INSERT OR REPLACE INTO plugins - (name, version, type, source, description, author, checksum, size, - capabilities, config_schema, wasm_data, updated_at) - VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, - metadata.Name, metadata.Version, metadata.Type, metadata.Source, - metadata.Description, metadata.Author, metadata.Checksum, metadata.Size, - string(capJSON), string(configJSON), wasmData, time.Now()) - return err -} - -// DeletePlugin 删除 plugin -func (s *SQLiteStore) DeletePlugin(name string) error { - s.mu.Lock() - defer s.mu.Unlock() - - _, err := s.db.Exec(`DELETE FROM plugins WHERE name = ?`, name) - return err -} - -// PluginExists 检查 plugin 是否存在 -func (s *SQLiteStore) PluginExists(name string) (bool, error) { - s.mu.RLock() - defer s.mu.RUnlock() - - var count int - err := s.db.QueryRow(`SELECT COUNT(*) FROM plugins WHERE name = ?`, name).Scan(&count) - return count > 0, err -} - -// Close 关闭存储 -func (s *SQLiteStore) Close() error { - return s.db.Close() -} diff --git a/pkg/plugin/types.go b/pkg/plugin/types.go index 5b91f88..dd59322 100644 --- a/pkg/plugin/types.go +++ b/pkg/plugin/types.go @@ -9,7 +9,10 @@ import ( type PluginType string const ( - PluginTypeProxy PluginType = "proxy" // 代理处理器 (SOCKS5, HTTP 等) + PluginTypeProxy PluginType = "proxy" // 代理协议插件 (SOCKS5 等) + PluginTypeApp PluginType = "app" // 应用插件 (VNC, 文件管理等) + PluginTypeService PluginType = "service" // 服务插件 (Web服务等) + PluginTypeTool PluginType = "tool" // 工具插件 (监控、日志等) ) // PluginSource 表示 plugin 来源 @@ -38,6 +41,7 @@ type PluginMetadata struct { type PluginInfo struct { Metadata PluginMetadata `json:"metadata"` Loaded bool `json:"loaded"` + Enabled bool `json:"enabled"` LoadedAt time.Time `json:"loaded_at,omitempty"` Error string `json:"error,omitempty"` } diff --git a/pkg/protocol/message.go b/pkg/protocol/message.go index 044e1ae..6e5e1e8 100644 --- a/pkg/protocol/message.go +++ b/pkg/protocol/message.go @@ -34,6 +34,9 @@ const ( // UDP 相关消息 MsgTypeUDPData uint8 = 30 // UDP 数据包 + + // 插件安装消息 + MsgTypeInstallPlugins uint8 = 24 // 服务端推送安装插件列表 ) // Message 基础消息结构 @@ -50,8 +53,9 @@ type AuthRequest struct { // AuthResponse 认证响应 type AuthResponse struct { - Success bool `json:"success"` - Message string `json:"message"` + Success bool `json:"success"` + Message string `json:"message"` + ClientID string `json:"client_id,omitempty"` // 服务端分配的客户端 ID } // ProxyRule 代理规则 @@ -137,6 +141,11 @@ type PluginReadyNotification struct { Error string `json:"error,omitempty"` } +// InstallPluginsRequest 安装插件请求 +type InstallPluginsRequest struct { + Plugins []string `json:"plugins"` // 要安装的插件名称列表 +} + // UDPPacket UDP 数据包 type UDPPacket struct { RemotePort int `json:"remote_port"` // 服务端监听端口 diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..99e9e9c --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,200 @@ +#!/bin/bash + +set -e + +# 项目根目录 +ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)" +BUILD_DIR="$ROOT_DIR/build" + +# 版本信息 +VERSION="${VERSION:-dev}" +BUILD_TIME=$(date -u '+%Y-%m-%d %H:%M:%S') +GIT_COMMIT=$(git -C "$ROOT_DIR" rev-parse --short HEAD 2>/dev/null || echo "unknown") + +# 默认目标平台 +DEFAULT_PLATFORMS="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64" + +# 是否启用 UPX 压缩 +USE_UPX="${USE_UPX:-true}" + +# 颜色输出 +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +NC='\033[0m' # No Color + +log_info() { + echo -e "${GREEN}[INFO]${NC} $1" +} + +log_warn() { + echo -e "${YELLOW}[WARN]${NC} $1" +} + +log_error() { + echo -e "${RED}[ERROR]${NC} $1" +} + +# 检查 UPX 是否可用 +check_upx() { + if command -v upx &> /dev/null; then + return 0 + fi + return 1 +} + +# UPX 压缩二进制 +compress_binary() { + local file=$1 + if [ "$USE_UPX" != "true" ]; then + return + fi + if ! check_upx; then + log_warn "UPX not found, skipping compression" + return + fi + # macOS 二进制不支持 UPX + if [[ "$file" == *"darwin"* ]]; then + log_warn "Skipping UPX for macOS binary: $file" + return + fi + log_info "Compressing $file with UPX..." + upx -9 -q "$file" 2>/dev/null || log_warn "UPX compression failed for $file" +} + +# 构建 Web UI +build_web() { + log_info "Building web UI..." + cd "$ROOT_DIR/web" + if [ ! -d "node_modules" ]; then + log_info "Installing npm dependencies..." + npm install + fi + npm run build + cd "$ROOT_DIR" + + # 复制到 embed 目录 + log_info "Copying dist to embed directory..." + rm -rf "$ROOT_DIR/internal/server/app/dist" + cp -r "$ROOT_DIR/web/dist" "$ROOT_DIR/internal/server/app/dist" + + log_info "Web UI built successfully" +} + +# 构建单个二进制 +build_binary() { + local os=$1 + local arch=$2 + local component=$3 # server 或 client + + local output_name="${component}" + if [ "$os" = "windows" ]; then + output_name="${component}.exe" + fi + + local output_dir="$BUILD_DIR/${os}_${arch}" + mkdir -p "$output_dir" + + log_info "Building $component for $os/$arch..." + + GOOS=$os GOARCH=$arch go build \ + -ldflags "-s -w -X 'main.Version=$VERSION' -X 'main.BuildTime=$BUILD_TIME' -X 'main.GitCommit=$GIT_COMMIT'" \ + -o "$output_dir/$output_name" \ + "$ROOT_DIR/cmd/$component" + + # UPX 压缩 + compress_binary "$output_dir/$output_name" +} + +# 构建所有平台 +build_all() { + local platforms="${1:-$DEFAULT_PLATFORMS}" + + for platform in $platforms; do + local os="${platform%/*}" + local arch="${platform#*/}" + build_binary "$os" "$arch" "server" + build_binary "$os" "$arch" "client" + done +} + +# 仅构建当前平台 +build_current() { + local os=$(go env GOOS) + local arch=$(go env GOARCH) + + build_binary "$os" "$arch" "server" + build_binary "$os" "$arch" "client" + + log_info "Binaries built in $BUILD_DIR/${os}_${arch}/" +} + +# 清理构建产物 +clean() { + log_info "Cleaning build directory..." + rm -rf "$BUILD_DIR" + log_info "Clean completed" +} + +# 显示帮助 +show_help() { + echo "Usage: $0 [command] [options]" + echo "" + echo "Commands:" + echo " all Build for all platforms (default: $DEFAULT_PLATFORMS)" + echo " current Build for current platform only" + echo " web Build web UI only" + echo " server Build server for current platform" + echo " client Build client for current platform" + echo " clean Clean build directory" + echo " help Show this help message" + echo "" + echo "Environment variables:" + echo " VERSION Set version string (default: dev)" + echo " USE_UPX Enable UPX compression (default: true)" + echo "" + echo "Examples:" + echo " $0 current # Build for current platform" + echo " $0 all # Build for all platforms" + echo " VERSION=1.0.0 $0 all # Build with version" +} + +# 主函数 +main() { + cd "$ROOT_DIR" + + case "${1:-current}" in + all) + build_web + build_all "${2:-}" + ;; + current) + build_web + build_current + ;; + web) + build_web + ;; + server) + build_binary "$(go env GOOS)" "$(go env GOARCH)" "server" + ;; + client) + build_binary "$(go env GOOS)" "$(go env GOARCH)" "client" + ;; + clean) + clean + ;; + help|--help|-h) + show_help + ;; + *) + log_error "Unknown command: $1" + show_help + exit 1 + ;; + esac + + log_info "Done!" +} + +main "$@" diff --git a/web/auto-imports.d.ts b/web/auto-imports.d.ts new file mode 100644 index 0000000..341fc51 --- /dev/null +++ b/web/auto-imports.d.ts @@ -0,0 +1,77 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// noinspection JSUnusedGlobalSymbols +// Generated by unplugin-auto-import +// biome-ignore lint: disable +export {} +declare global { + const EffectScope: typeof import('vue').EffectScope + const computed: typeof import('vue').computed + const createApp: typeof import('vue').createApp + const customRef: typeof import('vue').customRef + const defineAsyncComponent: typeof import('vue').defineAsyncComponent + const defineComponent: typeof import('vue').defineComponent + const effectScope: typeof import('vue').effectScope + const getCurrentInstance: typeof import('vue').getCurrentInstance + const getCurrentScope: typeof import('vue').getCurrentScope + const getCurrentWatcher: typeof import('vue').getCurrentWatcher + const h: typeof import('vue').h + const inject: typeof import('vue').inject + const isProxy: typeof import('vue').isProxy + const isReactive: typeof import('vue').isReactive + const isReadonly: typeof import('vue').isReadonly + const isRef: typeof import('vue').isRef + const isShallow: typeof import('vue').isShallow + const markRaw: typeof import('vue').markRaw + const nextTick: typeof import('vue').nextTick + const onActivated: typeof import('vue').onActivated + const onBeforeMount: typeof import('vue').onBeforeMount + const onBeforeUnmount: typeof import('vue').onBeforeUnmount + const onBeforeUpdate: typeof import('vue').onBeforeUpdate + const onDeactivated: typeof import('vue').onDeactivated + const onErrorCaptured: typeof import('vue').onErrorCaptured + const onMounted: typeof import('vue').onMounted + const onRenderTracked: typeof import('vue').onRenderTracked + const onRenderTriggered: typeof import('vue').onRenderTriggered + const onScopeDispose: typeof import('vue').onScopeDispose + const onServerPrefetch: typeof import('vue').onServerPrefetch + const onUnmounted: typeof import('vue').onUnmounted + const onUpdated: typeof import('vue').onUpdated + const onWatcherCleanup: typeof import('vue').onWatcherCleanup + const provide: typeof import('vue').provide + const reactive: typeof import('vue').reactive + const readonly: typeof import('vue').readonly + const ref: typeof import('vue').ref + const resolveComponent: typeof import('vue').resolveComponent + const shallowReactive: typeof import('vue').shallowReactive + const shallowReadonly: typeof import('vue').shallowReadonly + const shallowRef: typeof import('vue').shallowRef + const toRaw: typeof import('vue').toRaw + const toRef: typeof import('vue').toRef + const toRefs: typeof import('vue').toRefs + const toValue: typeof import('vue').toValue + const triggerRef: typeof import('vue').triggerRef + const unref: typeof import('vue').unref + const useAttrs: typeof import('vue').useAttrs + const useCssModule: typeof import('vue').useCssModule + const useCssVars: typeof import('vue').useCssVars + const useDialog: typeof import('naive-ui').useDialog + const useId: typeof import('vue').useId + const useLoadingBar: typeof import('naive-ui').useLoadingBar + const useMessage: typeof import('naive-ui').useMessage + const useModel: typeof import('vue').useModel + const useNotification: typeof import('naive-ui').useNotification + const useSlots: typeof import('vue').useSlots + const useTemplateRef: typeof import('vue').useTemplateRef + const watch: typeof import('vue').watch + const watchEffect: typeof import('vue').watchEffect + const watchPostEffect: typeof import('vue').watchPostEffect + const watchSyncEffect: typeof import('vue').watchSyncEffect +} +// for type re-export +declare global { + // @ts-ignore + export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + import('vue') +} diff --git a/web/components.d.ts b/web/components.d.ts new file mode 100644 index 0000000..142cf0c --- /dev/null +++ b/web/components.d.ts @@ -0,0 +1,18 @@ +/* eslint-disable */ +// @ts-nocheck +// biome-ignore lint: disable +// oxlint-disable +// ------ +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 + +export {} + +/* prettier-ignore */ +declare module 'vue' { + export interface GlobalComponents { + HelloWorld: typeof import('./src/components/HelloWorld.vue')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] + } +} diff --git a/web/package-lock.json b/web/package-lock.json index 6c4ede6..cff56fa 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -8,7 +8,9 @@ "name": "webui", "version": "0.0.0", "dependencies": { + "@vicons/ionicons5": "^0.13.0", "axios": "^1.13.2", + "naive-ui": "^2.43.2", "vue": "^3.5.24", "vue-router": "^4.6.4" }, @@ -17,6 +19,8 @@ "@vitejs/plugin-vue": "^6.0.1", "@vue/tsconfig": "^0.8.1", "typescript": "~5.9.3", + "unplugin-auto-import": "^20.3.0", + "unplugin-vue-components": "^30.0.0", "vite": "^7.2.4", "vue-tsc": "^3.1.4" } @@ -67,6 +71,30 @@ "node": ">=6.9.0" } }, + "node_modules/@css-render/plugin-bem": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/@css-render/plugin-bem/-/plugin-bem-0.15.14.tgz", + "integrity": "sha512-QK513CJ7yEQxm/P3EwsI+d+ha8kSOcjGvD6SevM41neEMxdULE+18iuQK6tEChAWMOQNQPLG/Rw3Khb69r5neg==", + "license": "MIT", + "peerDependencies": { + "css-render": "~0.15.14" + } + }, + "node_modules/@css-render/vue3-ssr": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/@css-render/vue3-ssr/-/vue3-ssr-0.15.14.tgz", + "integrity": "sha512-//8027GSbxE9n3QlD73xFY6z4ZbHbvrOVB7AO6hsmrEzGbg+h2A09HboUyDgu+xsmj7JnvJD39Irt+2D0+iV8g==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.0.11" + } + }, + "node_modules/@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", + "license": "MIT" + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.27.2", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.2.tgz", @@ -509,12 +537,61 @@ "node": ">=18" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.5", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "license": "MIT" }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@juggle/resize-observer": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", + "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", + "license": "Apache-2.0" + }, "node_modules/@rolldown/pluginutils": { "version": "1.0.0-beta.53", "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.53.tgz", @@ -837,6 +914,27 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/katex": { + "version": "0.16.7", + "resolved": "https://registry.npmjs.org/@types/katex/-/katex-0.16.7.tgz", + "integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ==", + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-FOvQ0YPD5NOfPgMzJihoT+Za5pdkDJWcbpuj1DjaKZIr/gxodQjY/uWEFlTNqW2ugXHUiL8lRQgw63dzKHZdeQ==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "license": "MIT", + "dependencies": { + "@types/lodash": "*" + } + }, "node_modules/@types/node": { "version": "24.10.4", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.10.4.tgz", @@ -848,6 +946,12 @@ "undici-types": "~7.16.0" } }, + "node_modules/@vicons/ionicons5": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@vicons/ionicons5/-/ionicons5-0.13.0.tgz", + "integrity": "sha512-zvZKBPjEXKN7AXNo2Na2uy+nvuv6SP4KAMQxpKL2vfHMj0fSvuw7JZcOPCjQC3e7ayssKnaoFVAhbYcW6v41qQ==", + "license": "MIT" + }, "node_modules/@vitejs/plugin-vue": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.3.tgz", @@ -1035,6 +1139,19 @@ } } }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/alien-signals": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/alien-signals/-/alien-signals-3.1.2.tgz", @@ -1042,6 +1159,12 @@ "dev": true, "license": "MIT" }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -1072,6 +1195,22 @@ "node": ">= 0.4" } }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", @@ -1084,12 +1223,74 @@ "node": ">= 0.8" } }, + "node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/css-render": { + "version": "0.15.14", + "resolved": "https://registry.npmjs.org/css-render/-/css-render-0.15.14.tgz", + "integrity": "sha512-9nF4PdUle+5ta4W5SyZdLCCmFd37uVimSjg1evcTqKJCyvCEEj12WKzOSBNak6r4im4J4iYXKH1OWpUV5LBYFg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@emotion/hash": "~0.8.0", + "csstype": "~3.0.5" + } + }, + "node_modules/css-render/node_modules/csstype": { + "version": "3.0.11", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.11.tgz", + "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", + "license": "MIT" + }, "node_modules/csstype": { "version": "3.2.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", "license": "MIT" }, + "node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "peer": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/date-fns-tz": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/date-fns-tz/-/date-fns-tz-3.2.0.tgz", + "integrity": "sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ==", + "license": "MIT", + "peerDependencies": { + "date-fns": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -1212,12 +1413,38 @@ "@esbuild/win32-x64": "0.27.2" } }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", "license": "MIT" }, + "node_modules/evtd": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/evtd/-/evtd-0.2.4.tgz", + "integrity": "sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==", + "license": "MIT" + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "dev": true, + "license": "MIT" + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -1384,6 +1611,52 @@ "node": ">= 0.4" } }, + "node_modules/highlight.js": { + "version": "11.11.1", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz", + "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/local-pkg": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.2.tgz", + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.22", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.22.tgz", + "integrity": "sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==", + "license": "MIT" + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -1423,6 +1696,45 @@ "node": ">= 0.6" } }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, "node_modules/muggle-string": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz", @@ -1430,6 +1742,36 @@ "dev": true, "license": "MIT" }, + "node_modules/naive-ui": { + "version": "2.43.2", + "resolved": "https://registry.npmjs.org/naive-ui/-/naive-ui-2.43.2.tgz", + "integrity": "sha512-YlLMnGrwGTOc+zMj90sG3ubaH5/7czsgLgGcjTLA981IUaz8r6t4WIujNt8r9PNr+dqv6XNEr0vxkARgPPjfBQ==", + "license": "MIT", + "dependencies": { + "@css-render/plugin-bem": "^0.15.14", + "@css-render/vue3-ssr": "^0.15.14", + "@types/katex": "^0.16.2", + "@types/lodash": "^4.17.20", + "@types/lodash-es": "^4.17.12", + "async-validator": "^4.2.5", + "css-render": "^0.15.14", + "csstype": "^3.1.3", + "date-fns": "^4.1.0", + "date-fns-tz": "^3.2.0", + "evtd": "^0.2.4", + "highlight.js": "^11.8.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "seemly": "^0.3.10", + "treemate": "^0.3.11", + "vdirs": "^0.1.8", + "vooks": "^0.2.12", + "vueuc": "^0.4.65" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/nanoid": { "version": "3.3.11", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", @@ -1455,6 +1797,13 @@ "dev": true, "license": "MIT" }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -1467,7 +1816,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -1475,6 +1823,18 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, "node_modules/postcss": { "version": "8.5.6", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", @@ -1509,6 +1869,37 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "license": "MIT" }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/rollup": { "version": "4.54.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.54.0.tgz", @@ -1551,6 +1942,19 @@ "fsevents": "~2.3.2" } }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "dev": true, + "license": "MIT" + }, + "node_modules/seemly": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/seemly/-/seemly-0.3.10.tgz", + "integrity": "sha512-2+SMxtG1PcsL0uyhkumlOU6Qo9TAQ/WyH7tthnPIOQB05/12jz9naq6GZ6iZ6ApVsO3rr2gsnTf3++OV63kE1Q==", + "license": "MIT" + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -1560,6 +1964,19 @@ "node": ">=0.10.0" } }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, "node_modules/tinyglobby": { "version": "0.2.15", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", @@ -1577,6 +1994,12 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/treemate": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/treemate/-/treemate-0.3.11.tgz", + "integrity": "sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==", + "license": "MIT" + }, "node_modules/typescript": { "version": "5.9.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", @@ -1592,6 +2015,13 @@ "node": ">=14.17" } }, + "node_modules/ufo": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.1.tgz", + "integrity": "sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==", + "dev": true, + "license": "MIT" + }, "node_modules/undici-types": { "version": "7.16.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz", @@ -1599,6 +2029,156 @@ "dev": true, "license": "MIT" }, + "node_modules/unimport": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/unimport/-/unimport-5.6.0.tgz", + "integrity": "sha512-8rqAmtJV8o60x46kBAJKtHpJDJWkA2xcBqWKPI14MgUb05o1pnpnCnXSxedUXyeq7p8fR5g3pTo2BaswZ9lD9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "escape-string-regexp": "^5.0.0", + "estree-walker": "^3.0.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "pkg-types": "^2.3.0", + "scule": "^1.3.0", + "strip-literal": "^3.1.0", + "tinyglobby": "^0.2.15", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unimport/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/unplugin": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/unplugin/-/unplugin-2.3.11.tgz", + "integrity": "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "acorn": "^8.15.0", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unplugin-auto-import": { + "version": "20.3.0", + "resolved": "https://registry.npmjs.org/unplugin-auto-import/-/unplugin-auto-import-20.3.0.tgz", + "integrity": "sha512-RcSEQiVv7g0mLMMXibYVKk8mpteKxvyffGuDKqZZiFr7Oq3PB1HwgHdK5O7H4AzbhzHoVKG0NnMnsk/1HIVYzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "picomatch": "^4.0.3", + "unimport": "^5.5.0", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@nuxt/kit": "^4.0.0", + "@vueuse/core": "*" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "@vueuse/core": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/unplugin-utils/-/unplugin-utils-0.3.1.tgz", + "integrity": "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==", + "dev": true, + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/unplugin-vue-components": { + "version": "30.0.0", + "resolved": "https://registry.npmjs.org/unplugin-vue-components/-/unplugin-vue-components-30.0.0.tgz", + "integrity": "sha512-4qVE/lwCgmdPTp6h0qsRN2u642tt4boBQtcpn4wQcWZAsr8TQwq+SPT3NDu/6kBFxzo/sSEK4ioXhOOBrXc3iw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^4.0.3", + "debug": "^4.4.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.19", + "mlly": "^1.8.0", + "tinyglobby": "^0.2.15", + "unplugin": "^2.3.10", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@babel/parser": "^7.15.8", + "@nuxt/kit": "^3.2.2 || ^4.0.0", + "vue": "2 || 3" + }, + "peerDependenciesMeta": { + "@babel/parser": { + "optional": true + }, + "@nuxt/kit": { + "optional": true + } + } + }, + "node_modules/vdirs": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/vdirs/-/vdirs-0.1.8.tgz", + "integrity": "sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==", + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.11" + } + }, "node_modules/vite": { "version": "7.3.0", "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.0.tgz", @@ -1675,6 +2255,18 @@ } } }, + "node_modules/vooks": { + "version": "0.2.12", + "resolved": "https://registry.npmjs.org/vooks/-/vooks-0.2.12.tgz", + "integrity": "sha512-iox0I3RZzxtKlcgYaStQYKEzWWGAduMmq+jS7OrNdQo1FgGfPMubGL3uGHOU9n97NIvfFDBGnpSvkWyb/NSn/Q==", + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, "node_modules/vscode-uri": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.1.0.tgz", @@ -1735,6 +2327,31 @@ "peerDependencies": { "typescript": ">=5.0.0" } + }, + "node_modules/vueuc": { + "version": "0.4.65", + "resolved": "https://registry.npmjs.org/vueuc/-/vueuc-0.4.65.tgz", + "integrity": "sha512-lXuMl+8gsBmruudfxnMF9HW4be8rFziylXFu1VHVNbLVhRTXXV4njvpRuJapD/8q+oFEMSfQMH16E/85VoWRyQ==", + "license": "MIT", + "dependencies": { + "@css-render/vue3-ssr": "^0.15.10", + "@juggle/resize-observer": "^3.3.1", + "css-render": "^0.15.10", + "evtd": "^0.2.4", + "seemly": "^0.3.6", + "vdirs": "^0.1.4", + "vooks": "^0.2.4" + }, + "peerDependencies": { + "vue": "^3.0.11" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "dev": true, + "license": "MIT" } } } diff --git a/web/package.json b/web/package.json index 823634f..66ffbac 100644 --- a/web/package.json +++ b/web/package.json @@ -9,7 +9,9 @@ "preview": "vite preview" }, "dependencies": { + "@vicons/ionicons5": "^0.13.0", "axios": "^1.13.2", + "naive-ui": "^2.43.2", "vue": "^3.5.24", "vue-router": "^4.6.4" }, @@ -18,6 +20,8 @@ "@vitejs/plugin-vue": "^6.0.1", "@vue/tsconfig": "^0.8.1", "typescript": "~5.9.3", + "unplugin-auto-import": "^20.3.0", + "unplugin-vue-components": "^30.0.0", "vite": "^7.2.4", "vue-tsc": "^3.1.4" } diff --git a/web/src/App.vue b/web/src/App.vue index 327bd11..9ef46fd 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,12 +1,42 @@ - - diff --git a/web/src/api/index.ts b/web/src/api/index.ts index e1b44e1..c8ea68f 100644 --- a/web/src/api/index.ts +++ b/web/src/api/index.ts @@ -1,11 +1,44 @@ import axios from 'axios' -import type { ClientConfig, ClientStatus, ClientDetail, ServerStatus } from '../types' +import type { ClientConfig, ClientStatus, ClientDetail, ServerStatus, PluginInfo } from '../types' const api = axios.create({ baseURL: '/api', timeout: 10000, }) +// Token 管理 +const TOKEN_KEY = 'gotunnel_token' + +export const getToken = () => localStorage.getItem(TOKEN_KEY) +export const setToken = (token: string) => localStorage.setItem(TOKEN_KEY, token) +export const removeToken = () => localStorage.removeItem(TOKEN_KEY) + +// 请求拦截器:添加 token +api.interceptors.request.use((config) => { + const token = getToken() + if (token) { + config.headers.Authorization = `Bearer ${token}` + } + return config +}) + +// 响应拦截器:处理 401 +api.interceptors.response.use( + (response) => response, + (error) => { + if (error.response?.status === 401) { + removeToken() + window.location.href = '/login' + } + return Promise.reject(error) + } +) + +// 认证 API +export const login = (username: string, password: string) => + api.post<{ token: string }>('/auth/login', { username, password }) +export const checkAuth = () => api.get('/auth/check') + export const getServerStatus = () => api.get('/status') export const getClients = () => api.get('/clients') export const getClient = (id: string) => api.get(`/client/${id}`) @@ -14,4 +47,15 @@ export const updateClient = (id: string, client: ClientConfig) => api.put(`/clie export const deleteClient = (id: string) => api.delete(`/client/${id}`) export const reloadConfig = () => api.post('/config/reload') +// 客户端控制 +export const pushConfigToClient = (id: string) => api.post(`/client/${id}/push`) +export const disconnectClient = (id: string) => api.post(`/client/${id}/disconnect`) +export const installPluginsToClient = (id: string, plugins: string[]) => + api.post(`/client/${id}/install-plugins`, { plugins }) + +// 插件管理 +export const getPlugins = () => api.get('/plugins') +export const enablePlugin = (name: string) => api.post(`/plugin/${name}/enable`) +export const disablePlugin = (name: string) => api.post(`/plugin/${name}/disable`) + export default api diff --git a/web/src/main.ts b/web/src/main.ts index 7b19912..60528d1 100644 --- a/web/src/main.ts +++ b/web/src/main.ts @@ -1,6 +1,10 @@ import { createApp } from 'vue' +import naive from 'naive-ui' import './style.css' import App from './App.vue' import router from './router' -createApp(App).use(router).mount('#app') +const app = createApp(App) +app.use(router) +app.use(naive) +app.mount('#app') diff --git a/web/src/router/index.ts b/web/src/router/index.ts index 32af3bb..462feee 100644 --- a/web/src/router/index.ts +++ b/web/src/router/index.ts @@ -1,8 +1,15 @@ import { createRouter, createWebHistory } from 'vue-router' +import { getToken } from '../api' const router = createRouter({ history: createWebHistory(), routes: [ + { + path: '/login', + name: 'login', + component: () => import('../views/LoginView.vue'), + meta: { public: true }, + }, { path: '/', name: 'home', @@ -13,7 +20,24 @@ const router = createRouter({ name: 'client', component: () => import('../views/ClientView.vue'), }, + { + path: '/plugins', + name: 'plugins', + component: () => import('../views/PluginsView.vue'), + }, ], }) +// 路由守卫 +router.beforeEach((to, _from, next) => { + const token = getToken() + if (!to.meta.public && !token) { + next('/login') + } else if (to.path === '/login' && token) { + next('/') + } else { + next() + } +}) + export default router diff --git a/web/src/style.css b/web/src/style.css index f691315..11b1210 100644 --- a/web/src/style.css +++ b/web/src/style.css @@ -1,79 +1,15 @@ -:root { - font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { - margin: 0; - display: flex; - place-items: center; - min-width: 320px; +#app { min-height: 100vh; } - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; -} -button:hover { - border-color: #646cff; -} -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; -} - -.card { - padding: 2em; -} - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; -} - -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/web/src/types/index.ts b/web/src/types/index.ts index 7f27bd5..f38f52e 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -4,17 +4,20 @@ export interface ProxyRule { local_ip: string local_port: number remote_port: number + type?: string } // 客户端配置 export interface ClientConfig { id: string + nickname?: string rules: ProxyRule[] } // 客户端状态 export interface ClientStatus { id: string + nickname?: string online: boolean last_ping?: string rule_count: number @@ -23,6 +26,7 @@ export interface ClientStatus { // 客户端详情 export interface ClientDetail { id: string + nickname?: string rules: ProxyRule[] online: boolean last_ping?: string @@ -36,3 +40,23 @@ export interface ServerStatus { } client_count: number } + +// 插件类型 +export const PluginType = { + Proxy: 'proxy', + App: 'app', + Service: 'service', + Tool: 'tool' +} as const + +export type PluginTypeValue = typeof PluginType[keyof typeof PluginType] + +// 插件信息 +export interface PluginInfo { + name: string + version: string + type: string + description: string + source: string + enabled: boolean +} diff --git a/web/src/views/ClientView.vue b/web/src/views/ClientView.vue index 560181f..d2bf982 100644 --- a/web/src/views/ClientView.vue +++ b/web/src/views/ClientView.vue @@ -1,24 +1,72 @@ - - diff --git a/web/src/views/HomeView.vue b/web/src/views/HomeView.vue index 71210cc..fc4d1cd 100644 --- a/web/src/views/HomeView.vue +++ b/web/src/views/HomeView.vue @@ -1,14 +1,12 @@ + + + + diff --git a/web/src/views/PluginsView.vue b/web/src/views/PluginsView.vue new file mode 100644 index 0000000..a0052a1 --- /dev/null +++ b/web/src/views/PluginsView.vue @@ -0,0 +1,137 @@ + + + diff --git a/web/vite.config.ts b/web/vite.config.ts index bbcf80c..aea7a65 100644 --- a/web/vite.config.ts +++ b/web/vite.config.ts @@ -1,7 +1,33 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import AutoImport from 'unplugin-auto-import/vite' +import Components from 'unplugin-vue-components/vite' +import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' // https://vite.dev/config/ export default defineConfig({ - plugins: [vue()], + plugins: [ + vue(), + AutoImport({ + imports: [ + 'vue', + { + 'naive-ui': ['useDialog', 'useMessage', 'useNotification', 'useLoadingBar'] + } + ] + }), + Components({ + resolvers: [NaiveUiResolver()] + }) + ], + build: { + chunkSizeWarningLimit: 1500, + rollupOptions: { + output: { + manualChunks: { + 'vue-vendor': ['vue', 'vue-router'], + } + } + } + } })